Add comments about ARM configure -fno-unwind-tables handling.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 11 Mar 2013 23:55:55 +0000 (23:55 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 11 Mar 2013 23:55:55 +0000 (23:55 +0000)
ports/ChangeLog.arm
ports/sysdeps/arm/preconfigure
ports/sysdeps/arm/preconfigure.in
ports/sysdeps/unix/sysv/linux/arm/configure
ports/sysdeps/unix/sysv/linux/arm/configure.in

index 9db0b1b8cdc8514f75fa488e79fbe62528597ec3..85361814f1b67abce327e9f4fb5e2476df344ddb 100644 (file)
@@ -1,3 +1,12 @@
+2013-03-11  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/arm/preconfigure.in: Add comment about
+       -fno-unwind-tables addition to CFLAGS.
+       * sysdeps/arm/preconfigure: Regenerated.
+       * sysdeps/unix/sysv/linux/arm/configure.in: Add comment about
+       -fno-unwind-tables removal from CFLAGS.
+       * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
+
 2013-03-11  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/arm/bits/setjmp.h: Test [!__ASSEMBLER__] rather than [!_ASM].
index 0042aaf240790c00f65d86af32c553edb79586f9..7ba17492ee6b4e7d6f2574efb6c0bc2b5d883454 100644 (file)
@@ -5,6 +5,11 @@ case "$machine" in
 arm*)
   case $config_os in
   linux-gnueabi*)
+    # If the compiler enables unwind tables by default, this causes
+    # problems with undefined symbols in -nostdlib link tests.  To
+    # avoid this, add -fno-unwind-tables here and remove it in
+    # sysdeps/unix/sysv/linux/arm/configure.in after those tests have
+    # been run.
     if  "${CFLAGS+set}" != "set" ; then
       CFLAGS="-g -O2"
     fi
index f3272f11cd7794847598415f19d54ee646430e18..99f21282fa3e517c7c77b1d51b7c0add04faae4d 100644 (file)
@@ -5,6 +5,11 @@ case "$machine" in
 arm*)
   case $config_os in
   linux-gnueabi*)
+    # If the compiler enables unwind tables by default, this causes
+    # problems with undefined symbols in -nostdlib link tests.  To
+    # avoid this, add -fno-unwind-tables here and remove it in
+    # sysdeps/unix/sysv/linux/arm/configure.in after those tests have
+    # been run.
     if [ "${CFLAGS+set}" != "set" ]; then
       CFLAGS="-g -O2"
     fi
index cb94cc5eb4f7d617e03aa5e69df3031434b2b8e1..f66b1582893108a63dda414e15896da0a6030546 100644 (file)
@@ -2,4 +2,5 @@
  # Local configure fragment for sysdeps/unix/sysv/linux/arm.
 
 libc_cv_gcc_unwind_find_fde=no
+# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.in.
 CFLAGS=${CFLAGS% -fno-unwind-tables}
index 3e67dee4252a9b0b677a55c46ae46b3fe0a1358b..8fffe940510531ac276696b91df41e10dd4f6544 100644 (file)
@@ -2,4 +2,5 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 # Local configure fragment for sysdeps/unix/sysv/linux/arm.
 
 libc_cv_gcc_unwind_find_fde=no
+# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.in.
 CFLAGS=${CFLAGS% -fno-unwind-tables}