[3/4] alpha: Enable unwind tables for backtrace.c
Commit Message
---
ChangeLog | 3 +++
sysdeps/alpha/Makefile | 5 +++++
2 files changed, 8 insertions(+)
Comments
On 17 April 2014 05:49, Richard Henderson <rth@twiddle.net> wrote:
> +ifeq ($(subdir),debug)
> +# Consider making this GCC's default...
> +CFLAGS-backtrace.c = -fasynchronous-unwind-tables
> +endif
Hi Richard, The i386 target adds -fexceptions and all of the others
add -funwind-tables... is there a particular reason alpha needs
-fasync-unwind-tables?
Cheers
/Marcus
On 04/17/2014 02:40 AM, Marcus Shawcroft wrote:
> On 17 April 2014 05:49, Richard Henderson <rth@twiddle.net> wrote:
>
>> +ifeq ($(subdir),debug)
>> +# Consider making this GCC's default...
>> +CFLAGS-backtrace.c = -fasynchronous-unwind-tables
>> +endif
>
>
> Hi Richard, The i386 target adds -fexceptions and all of the others
> add -funwind-tables... is there a particular reason alpha needs
> -fasync-unwind-tables?
No. I grepped the build log and a-u-t was the most common flag already in use
is all.
r~
@@ -1,5 +1,8 @@
2014-04-16 Richard Henderson <rth@redhat.com>
+ * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
+ unwind tables.
+
* sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
const from the non-libc, non-ldso copy.
@@ -20,6 +20,11 @@ ifeq ($(subdir),db2)
CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_ALPHA=1
endif
+ifeq ($(subdir),debug)
+# Consider making this GCC's default...
+CFLAGS-backtrace.c = -fasynchronous-unwind-tables
+endif
+
ifeq ($(subdir),gmon)
sysdep_routines += _mcount
endif