]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This avoids small data/gp reloc overflow errors.
authorJames E Wilson <wilson@specifixinc.com>
Tue, 4 Oct 2005 23:54:38 +0000 (16:54 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 4 Oct 2005 23:54:38 +0000 (16:54 -0700)
* configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare
$name as array of characters with unknown bound.  Also store into the
array.
* configure: Regenerate.

From-SVN: r104964

libmudflap/ChangeLog
libmudflap/configure
libmudflap/configure.ac

index e125f01b159a3f8ce14984ecd8001b499d3cc929..306342adddc1800647717948ea8a0af6b6f608a6 100644 (file)
@@ -1,3 +1,10 @@
+2005-10-04  James E Wilson  <wilson@specifix.com>
+
+       * configure.ac (mudflap_cv_entry_point): Use quadrigraphs to declare
+       $name as array of characters with unknown bound.  Also store into the
+       array.
+       * configure: Regenerate.
+
 2005-09-30  James E. Wilson  <wilson@specifix.com>
 
        * configure.ac (pthread.h): Use AC_CHECK_HEADERS instead of
index b1f7c72e4017a63714a3ffe90e3b016ade84c3b7..9e811802127d1cc5755ef8e50d43f890a864146a 100755 (executable)
@@ -6926,11 +6926,11 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-extern char $name;
+extern char $name[];
 int
 main ()
 {
-$name = 0;
+$name[0] = 0;
   ;
   return 0;
 }
index 039ff4e5f5c44774fa5c6331bd08bc4ff877408d..51ed6e3bf4a8894b05422676b3cb725e670d8478 100644 (file)
@@ -241,7 +241,7 @@ AC_SUBST(SECTION_FLAGS)
 AC_CACHE_CHECK([for the name of the symbol used for the entry point],
   [mudflap_cv_entry_point], [
 for name in _start __start unknown; do
-  AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name;], [$name = 0;])],
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name@<:@@:>@;], [$name@<:@0@:>@ = 0;])],
                 [break])
 done
 mudflap_cv_entry_point="$name"])