OSDN Git Service

gcc/
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Feb 2012 10:16:39 +0000 (10:16 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Feb 2012 10:16:39 +0000 (10:16 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184503 138bc75d-0d04-0410-961f-82ee72b054a4

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 48488af..11d53e0 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 0c6170c..a394847 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 2833211..9b8d206 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 bb48c70..ade9fcd 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 4bca790..94b33ce 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 61d9b59..379b858 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 6384899..cfb54d3 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 a904af9..9ee1517 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