From e33a1eae25b8a8744db2fea72e739d64799ca61f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 30 Apr 2020 11:49:40 +0200 Subject: --with-{documentation,changes}-root-url tweaks > , CHANGES_URL ("gcc-10/changes.html#empty_base"); > > where the macro would just use preprocessor string concatenation? Ok, the following patch implements it (doesn't introduce a separate macro and just uses CHANGES_ROOT_URL "gcc-10/changes.html#empty_base"), in addition adds the documentation Joseph requested. 2020-04-30 Jakub Jelinek * configure.ac (--with-documentation-root-url, --with-changes-root-url): Diagnose URL not ending with /, use AC_DEFINE_UNQUOTED instead of AC_SUBST. * opts.h (get_changes_url): Remove. * opts.c (get_changes_url): Remove. * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL or -DCHANGES_ROOT_URL. * doc/install.texi (--with-documentation-root-url, --with-changes-root-url): Document. * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call get_changes_url and free, change url variable type to const char * and set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base". * config/s390/s390.c (s390_function_arg_vector, s390_function_arg_float): Likewise. * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate): Likewise. * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate): Likewise. * config.in: Regenerate. * configure: Regenerate. --- gcc/config.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/config.in') diff --git a/gcc/config.in b/gcc/config.in index 01fb18dbbb5..809e7b26823 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -24,6 +24,12 @@ #endif +/* Define to the root for URLs about GCC changes. */ +#ifndef USED_FOR_TARGET +#undef CHANGES_ROOT_URL +#endif + + /* Define as the number of bits in a byte, if `limits.h' doesn't. */ #ifndef USED_FOR_TARGET #undef CHAR_BIT @@ -82,6 +88,12 @@ #endif +/* Define to the root for documentation URLs. */ +#ifndef USED_FOR_TARGET +#undef DOCUMENTATION_ROOT_URL +#endif + + /* Define 0/1 if static analyzer feature is enabled. */ #ifndef USED_FOR_TARGET #undef ENABLE_ANALYZER -- cgit v1.2.3