]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of HAVE_INITFINI_ARRAY to work...
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 23 Feb 2012 10:16:39 +0000 (10:16 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 23 Feb 2012 10:16:39 +0000 (10:16 +0000)
gcc/
* acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
HAVE_INITFINI_ARRAY to work around namespace pollution in
certain versions of newlib system headers.
* config.in: Regenerate.
* configure: Regenerate.
* config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
instead of HAVE_INITFINI_ARRAY.

libgcc/
* config/ia64/crtbegin.S: Use HAVE_INITFINI_ARRAY_SUPPORT
instead of HAVE_INITFINI_ARRAY.
* config/ia64/crtend.S: Likewise.

From-SVN: r184503

gcc/ChangeLog
gcc/acinclude.m4
gcc/config.in
gcc/config/initfini-array.h
gcc/configure
libgcc/ChangeLog
libgcc/config/ia64/crtbegin.S
libgcc/config/ia64/crtend.S

index 48488afcf01a81c178b1c3a3361dbe55be3942e2..11d53e02ddf46acdad502caa2aa1fa7bbb4f0410 100644 (file)
@@ -1,3 +1,13 @@
+2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
+       HAVE_INITFINI_ARRAY to work around namespace pollution in
+       certain versions of newlib system headers.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
+       instead of HAVE_INITFINI_ARRAY.
+
 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/52330
index 0c6170ca143ff2e27aa5f23b00d74a184905c909..a39484710486e281b6aebb6cb5166993bef35d56 100644 (file)
@@ -486,7 +486,7 @@ changequote([,])dnl
   enable_initfini_array=$gcc_cv_initfini_array
 ])
 if test $enable_initfini_array = yes; then
-  AC_DEFINE(HAVE_INITFINI_ARRAY, 1,
+  AC_DEFINE(HAVE_INITFINI_ARRAY_SUPPORT, 1,
     [Define .init_array/.fini_array sections are available and working.])
 fi])
 
index 28332110dbbaf86d3b65a7614052511a27142c1a..9b8d206c98d7d96fd35168d4d2c6cc396f9fa517 100644 (file)
 
 /* Define .init_array/.fini_array sections are available and working. */
 #ifndef USED_FOR_TARGET
-#undef HAVE_INITFINI_ARRAY
+#undef HAVE_INITFINI_ARRAY_SUPPORT
 #endif
 
 
index bb48c70a9209a8ea76c626bc1091ca3a763547ab..ade9fcd634cd792dd18f2f1972f6de7533ddef11 100644 (file)
@@ -19,7 +19,7 @@
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */
 
-#ifdef HAVE_INITFINI_ARRAY
+#ifdef HAVE_INITFINI_ARRAY_SUPPORT
 
 #define USE_INITFINI_ARRAY
 
index 4bca79075c4d35b6b612736254944673057de17f..94b33cee6b7ab4b851d417e8c8035bf50b1b5c05 100755 (executable)
@@ -22515,7 +22515,7 @@ fi
 
 if test $enable_initfini_array = yes; then
 
-$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
+$as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
 
 fi
 
index 61d9b591702d4e2f7ca700b1fc2c1fcf69a51014..379b858c0df65d339a0d55a70d92757eababd9a4 100644 (file)
@@ -1,3 +1,9 @@
+2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * config/ia64/crtbegin.S: Use HAVE_INITFINI_ARRAY_SUPPORT
+       instead of HAVE_INITFINI_ARRAY.
+       * config/ia64/crtend.S: Likewise.
+
 2012-02-20  Kai Tietz  <ktietz@redhat.com>
 
        PR libstdc++/52300
index 638489990d517f9b1cc01465ca54ce7ad127bdc1..cfb54d310a873014cb2d38d4dacaf65156a46157 100644 (file)
@@ -61,7 +61,7 @@ __dso_handle:
        .hidden __dso_handle
 
 
-#ifdef HAVE_INITFINI_ARRAY
+#ifdef HAVE_INITFINI_ARRAY_SUPPORT
 
 .section .fini_array, "a"
        data8 @fptr(__do_global_dtors_aux)
@@ -70,7 +70,7 @@ __dso_handle:
        data8 @fptr(__do_jv_register_classes)
        data8 @fptr(__do_global_ctors_aux)
 
-#else /* !HAVE_INITFINI_ARRAY */
+#else /* !HAVE_INITFINI_ARRAY_SUPPORT */
 /*
  * Fragment of the ELF _fini routine that invokes our dtor cleanup.
  *
@@ -117,7 +117,7 @@ __dso_handle:
          mov b6 = r2
          br.call.sptk.many b0 = b6
        }
-#endif /* !HAVE_INITFINI_ARRAY */
+#endif /* !HAVE_INITFINI_ARRAY_SUPPORT */
 
 .section .text
        .align  32
index a904af9cfd9d7cada093096631fe17db3caf0fb9..9ee151711c52954ed90a7877b9d42986b3b2ba74 100644 (file)
@@ -39,10 +39,10 @@ __DTOR_END__:
 __JCR_END__:
        data8   0
 
-#ifdef HAVE_INITFINI_ARRAY
+#ifdef HAVE_INITFINI_ARRAY_SUPPORT
        .global __do_global_ctors_aux
        .hidden __do_global_ctors_aux
-#else /* !HAVE_INITFINI_ARRAY */
+#else /* !HAVE_INITFINI_ARRAY_SUPPORT */
 /*
  * Fragment of the ELF _init routine that invokes our dtor cleanup.
  *
@@ -71,7 +71,7 @@ __JCR_END__:
          br.call.sptk.many b0 = b6
          ;;
        }
-#endif /* !HAVE_INITFINI_ARRAY */
+#endif /* !HAVE_INITFINI_ARRAY_SUPPORT */
 
 .text
        .align 32