--- Comment #23 from jakub at gcc dot gnu dot org 2010-09-03 14:47 ---
Subject: Bug 45484
Author: jakub
Date: Fri Sep 3 14:46:39 2010
New Revision: 163823
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163823
Log:
PR middle-end/45484
* dwarf2out.c
--- Comment #24 from jakub at gcc dot gnu dot org 2010-09-03 14:50 ---
Subject: Bug 45484
Author: jakub
Date: Fri Sep 3 14:50:20 2010
New Revision: 163824
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163824
Log:
PR middle-end/45484
* dwarf2out.c
--- Comment #25 from howarth at nitro dot med dot uc dot edu 2010-09-03
23:37 ---
Fixed at r163823.
--
howarth at nitro dot med dot uc dot edu changed:
What|Removed |Added
--- Comment #14 from hjl dot tools at gmail dot com 2010-09-02 13:52
---
On Linux/x86, -fPIC triggered invalid memory access:
[...@gnu-6 gcc]$ valgrind --tool=memcheck ./cc1 -fpreprocessed
/tmp/sprintf-chk.i -quiet -dumpbase sprintf-chk.i -m32 -mtune=generic
-march=x86-64 -auxbase
--- Comment #15 from hjl dot tools at gmail dot com 2010-09-02 14:22
---
A smaller testcase:
---
extern void abort (void);
extern void *chk_fail_buf[];
extern volatile int chk_fail_allowed;
void
test3 (void)
{
chk_fail_allowed = 1;
if (__builtin_setjmp (chk_fail_buf) == 0)
--- Comment #16 from hjl dot tools at gmail dot com 2010-09-02 14:40
---
output_set_got in i386.c has
#ifdef DWARF2_UNWIND_INFO
/* Ensure all queued register saves are flushed before the
call. */
if (dwarf2out_do_frame ())
{
rtx insn;
--- Comment #17 from hjl dot tools at gmail dot com 2010-09-02 14:43
---
No idea if it is correct:
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b550d86..decfd65 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -8121,6 +8121,7 @@ output_set_got
--- Comment #18 from hjl dot tools at gmail dot com 2010-09-02 14:49
---
It is very likely that the stack usage change triggers this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45484
--- Comment #19 from howarth at nitro dot med dot uc dot edu 2010-09-02
15:21 ---
(In reply to comment #17)
No idea if it is correct:
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b550d86..decfd65 100644
--- a/gcc/config/i386/i386.c
+++
--- Comment #20 from ebotcazou at gcc dot gnu dot org 2010-09-02 15:27
---
It is very likely that the stack usage change triggers this bug.
Not clear what you mean by this exactly, but I can reproduce the valgrind error
with the revision 163629 compiler.
--
--- Comment #21 from jakub at gcc dot gnu dot org 2010-09-02 16:16 ---
Created an attachment (id=21670)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21670action=view)
gcc46-pr45484.patch
The last valgrind error is my fault, we don't need a BARRIER there, any
instruction that
--- Comment #22 from howarth at nitro dot med dot uc dot edu 2010-09-02
17:39 ---
(In reply to comment #21)
Created an attachment (id=21670)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21670action=view) [edit]
gcc46-pr45484.patch
...
Jakub,
Thanks. This patch when
12 matches
Mail list logo