-
- Downloads
diagnostics: Add %{...%} pretty-format support for URLs and use it in -Wpsabi diagnostics
The following patch attempts to use the diagnostics URL support if available to provide more information about the C++17 empty base and C++20 [[no_unique_address]] empty class ABI changes in -Wpsabi diagnostics. in GCC 10.1 at the end of the diagnostics is then in some terminals underlined with a dotted line and points to a (to be written) anchor in gcc-10/changes.html which we need to write anyway. 2020-04-29 Jakub Jelinek <jakub@redhat.com> * configure.ac (-with-changes-root-url): New configure option, defaulting to https://gcc.gnu.org/. * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for opts.c. * pretty-print.c (get_end_url_string): New function. (pp_format): Handle %{ and %} for URLs. (pp_begin_url): Use pp_string instead of pp_printf. (pp_end_url): Use get_end_url_string. * opts.h (get_changes_url): Declare. * opts.c (get_changes_url): New function. * config/rs6000/rs6000-call.c: Include opts.h. (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead of just in GCC 10.1 in diagnostics and add URL. * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise. * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate): Likewise. * config/s390/s390.c (s390_function_arg_vector, s390_function_arg_float): Likewise. * configure: Regenerated. * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}.
Showing
- gcc/ChangeLog 20 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 1 addition, 0 deletionsgcc/Makefile.in
- gcc/c-family/ChangeLog 4 additions, 0 deletionsgcc/c-family/ChangeLog
- gcc/c-family/c-format.c 2 additions, 0 deletionsgcc/c-family/c-format.c
- gcc/config/aarch64/aarch64.c 6 additions, 2 deletionsgcc/config/aarch64/aarch64.c
- gcc/config/arm/arm.c 6 additions, 2 deletionsgcc/config/arm/arm.c
- gcc/config/rs6000/rs6000-call.c 6 additions, 2 deletionsgcc/config/rs6000/rs6000-call.c
- gcc/config/s390/s390.c 12 additions, 8 deletionsgcc/config/s390/s390.c
- gcc/configure 23 additions, 2 deletionsgcc/configure
- gcc/configure.ac 14 additions, 0 deletionsgcc/configure.ac
- gcc/opts.c 10 additions, 0 deletionsgcc/opts.c
- gcc/opts.h 1 addition, 0 deletionsgcc/opts.h
- gcc/pretty-print.c 56 additions, 27 deletionsgcc/pretty-print.c
Loading
Please register or sign in to comment