diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-03-09 19:50:40 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-03-09 19:50:40 +0100 |
commit | bded9b70876ea62f78d51f623e511f33fb2d9ff5 (patch) | |
tree | 33318836aed935ea12f68695e25093d489c899d6 | |
parent | 4398467a10ce7c25357bf3dce287b2dd4c59302d (diff) | |
download | gcc-bded9b70876ea62f78d51f623e511f33fb2d9ff5.zip gcc-bded9b70876ea62f78d51f623e511f33fb2d9ff5.tar.gz gcc-bded9b70876ea62f78d51f623e511f33fb2d9ff5.tar.bz2 |
re PR debug/43293 (Invalid unwind info for i?86 -fpic)
PR debug/43293
* config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
* config/i386/i386.c: Include debug.h and dwarf2out.h.
(ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
and .cfi_endproc around the pic thunks.
(output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
all queued unwind info register saves are saved before the call.
For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
considered as sp-=4 for unwind info and the pop as sp+=4 which
also clobbers dest, but doesn't actually restore it.
From-SVN: r157314
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/config/i386/t-i386 | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 20a1e87..e348458 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,15 @@ -2010-03-09 Jakub Jelinek <jakub@redhat.com> +2010-03-08 Jakub Jelinek <jakub@redhat.com> + + PR debug/43293 + * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h. + * config/i386/i386.c: Include debug.h and dwarf2out.h. + (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc + and .cfi_endproc around the pic thunks. + (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure + all queued unwind info register saves are saved before the call. + For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is + considered as sp-=4 for unwind info and the pop as sp+=4 which + also clobbers dest, but doesn't actually restore it. PR debug/43290 * config/i386/i386.c (ix86_get_drap_rtx): Don't set diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386 index 87a25fb..55ddd1e 100644 --- a/gcc/config/i386/t-i386 +++ b/gcc/config/i386/t-i386 @@ -1,4 +1,4 @@ -# Copyright (C) 2008, 2009 Free Software Foundation, Inc. +# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. # # This file is part of GCC. # |