aboutsummaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2005-10-04 16:54:38 -0700
committerJim Wilson <wilson@gcc.gnu.org>2005-10-04 16:54:38 -0700
commit063e53d657cc9989c08caf228b92dd129f14e5dd (patch)
treef0f593f2e0a946e2d96680db1b0b63b5df5f71d0 /libmudflap
parentf6cf6841d0b07efb1eb3a83afa31f8c8c6d8c1a8 (diff)
downloadgcc-063e53d657cc9989c08caf228b92dd129f14e5dd.zip
gcc-063e53d657cc9989c08caf228b92dd129f14e5dd.tar.gz
gcc-063e53d657cc9989c08caf228b92dd129f14e5dd.tar.bz2
This avoids small data/gp reloc overflow errors.
* 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
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog7
-rwxr-xr-xlibmudflap/configure4
-rw-r--r--libmudflap/configure.ac2
3 files changed, 10 insertions, 3 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index e125f01..306342a 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -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
diff --git a/libmudflap/configure b/libmudflap/configure
index b1f7c72..9e81180 100755
--- a/libmudflap/configure
+++ b/libmudflap/configure
@@ -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;
}
diff --git a/libmudflap/configure.ac b/libmudflap/configure.ac
index 039ff4e..51ed6e3 100644
--- a/libmudflap/configure.ac
+++ b/libmudflap/configure.ac
@@ -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"])