This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Add -fno-asynchronous-unwind-tables to initfini.s for i386
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 12 Aug 2010 12:37:23 -0700
- Subject: PATCH: Add -fno-asynchronous-unwind-tables to initfini.s for i386
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Gcc 4.6 will default to
-fomit-frame-pointer -fasynchronous-unwind-tables
on i386. We need to have
CFLAGS-pt-initfini.s += -fno-asynchronous-unwind-tables
similar to x86-64. Tested with adding
-fomit-frame-pointer -fasynchronous-unwind-tables
to glibc build.
H.J.
---
glibc/
2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/i386/elf/Makefile: New.
glibc/nptl/
2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
* nptl/sysdeps/unix/sysv/linux/i386/Makefile: New.
--- /dev/null 2010-08-11 15:57:03.635230126 -0700
+++ glibc/sysdeps/i386/elf/Makefile 2010-07-15 11:14:39.274413884 -0700
@@ -0,0 +1,4 @@
+ifeq ($(subdir),csu)
+# Turn off -fasynchronous-unwind-tables
+CFLAGS-initfini.s += -fno-asynchronous-unwind-tables
+endif
--- /dev/null 2010-08-11 15:57:03.635230126 -0700
+++ glibc/nptl/sysdeps/unix/sysv/linux/i386/Makefile 2010-07-15 11:15:03.393532081 -0700
@@ -0,0 +1,3 @@
+ifeq ($(subdir),nptl)
+CFLAGS-pt-initfini.s += -fno-asynchronous-unwind-tables
+endif