public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
@ 2011-09-04 0:22 kkojima at gcc dot gnu.org
2011-09-04 8:58 ` [Bug tree-optimization/50287] [4.7 Regression] " rguenth at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: kkojima at gcc dot gnu.org @ 2011-09-04 0:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
Bug #: 50287
Summary: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c
compilation, -O2 -flto
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: kkojima@gcc.gnu.org
Target: arm-eabi sh*-*-*
Several gcc.c-torture/execute/builtins/*-chk.c tests fail for ARM and SH
with -O2 -flto:
gcc/testsuite/gcc.c-torture/execute/builtins/lib/chk.c: In function
'__vsnprintf_chk':
gcc/testsuite/gcc.c-torture/execute/builtins/lib/chk.c:398:1: error: number of
operands and imm-links don't agree in statement
# .MEM_57 = VDEF <.MEM_22>
ap = ap_18(D);
gcc/testsuite/gcc.c-torture/execute/builtins/lib/chk.c:398:1: internal compiler
error: verify_ssa failed
A reduced testcase for arm-eabi:
static char buf[4096];
int __attribute__((format(printf,4,0)))
foo (char *str, unsigned int len, unsigned int size, const char *fmt,
__builtin_va_list ap);
int
foo (char *str, unsigned int len, unsigned int size, const char *fmt,
__builtin_va_list ap)
{
if (!size)
return 0;
if (size < len)
bar (str, buf, size + 1);
else
bar (str, buf, len - 1);
return 0;
}
It has started to fail after revision 178386. It seems that
the fix for PR49886 reveals this issue.
-fno-partial-inlining makes the ICE go away.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
@ 2011-09-04 8:58 ` rguenth at gcc dot gnu.org
2011-09-06 11:21 ` rsandifo at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-09-04 8:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjambor at suse dot cz
Target Milestone|--- |4.7.0
Summary|FAIL: |[4.7 Regression] FAIL:
|gcc.c-torture/execute/built |gcc.c-torture/execute/built
|ins/vsnprintf-chk.c |ins/vsnprintf-chk.c
|compilation, -O2 -flto |compilation, -O2 -flto
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-04 08:57:37 UTC ---
It seems we are creating an SSA name for a non-register variable. We can't do
this. In fact if we encounter an unused param we'd like to pass to the split
part we need to pass it in non-SSA form.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
2011-09-04 8:58 ` [Bug tree-optimization/50287] [4.7 Regression] " rguenth at gcc dot gnu.org
@ 2011-09-06 11:21 ` rsandifo at gcc dot gnu.org
2011-09-06 12:55 ` ramana at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2011-09-06 11:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
rsandifo@gcc.gnu.org <rsandifo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rsandifo at gcc dot gnu.org
--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2011-09-06 11:20:52 UTC ---
Same on mipsisa32-elf.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
2011-09-04 8:58 ` [Bug tree-optimization/50287] [4.7 Regression] " rguenth at gcc dot gnu.org
2011-09-06 11:21 ` rsandifo at gcc dot gnu.org
@ 2011-09-06 12:55 ` ramana at gcc dot gnu.org
2011-09-06 18:24 ` jamborm at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-09-06 12:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|arm-eabi sh*-*-* |arm-eabi,sh*-*-*,
| |arm-linux-gnueabi
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-09-06
CC| |ramana at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #3 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-09-06 12:55:30 UTC ---
Also prima-facie appears to break eglibc builds for arm-linux-gnueabi.
eglibc/misc/error.o
err.c: In function 'vwarnx':
err.c:94:1: error: number of operands and imm-links don't agree in statement
# .MEM_58 = VDEF <.MEM_25>
ap = ap_41(D);
err.c:94:1: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Ramana
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (2 preceding siblings ...)
2011-09-06 12:55 ` ramana at gcc dot gnu.org
@ 2011-09-06 18:24 ` jamborm at gcc dot gnu.org
2011-09-06 18:29 ` jamborm at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-09-06 18:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-09-06 18:19:57 UTC ---
Created attachment 25207
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25207
Testcase for i686 (and probably x86_64 too)
Testcase that fails on i686-linux for me.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (3 preceding siblings ...)
2011-09-06 18:24 ` jamborm at gcc dot gnu.org
@ 2011-09-06 18:29 ` jamborm at gcc dot gnu.org
2011-09-06 18:31 ` jamborm at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-09-06 18:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|arm-eabi,sh*-*-*, |arm-eabi,sh*-*-*,
|arm-linux-gnueabi |arm-linux-gnueabi,
| |i686-linux
Status|NEW |ASSIGNED
CC| |jamborm at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jamborm at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (4 preceding siblings ...)
2011-09-06 18:29 ` jamborm at gcc dot gnu.org
@ 2011-09-06 18:31 ` jamborm at gcc dot gnu.org
2011-09-07 0:35 ` kkojima at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-09-06 18:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doko at gcc dot gnu.org
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-09-06 18:27:30 UTC ---
*** Bug 50295 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (5 preceding siblings ...)
2011-09-06 18:31 ` jamborm at gcc dot gnu.org
@ 2011-09-07 0:35 ` kkojima at gcc dot gnu.org
2011-09-08 9:21 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu.org @ 2011-09-07 0:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
--- Comment #6 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2011-09-07 00:26:13 UTC ---
(In reply to comment #4)
> Testcase that fails on i686-linux for me.
FYI, the testcase is failing also for arm-eabi, mips-elf and sh-elf.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (6 preceding siblings ...)
2011-09-07 0:35 ` kkojima at gcc dot gnu.org
@ 2011-09-08 9:21 ` rguenth at gcc dot gnu.org
2011-09-08 13:15 ` jamborm at gcc dot gnu.org
2011-09-09 9:59 ` jamborm at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-09-08 9:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-08 09:17:13 UTC ---
*** Bug 50307 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (7 preceding siblings ...)
2011-09-08 9:21 ` rguenth at gcc dot gnu.org
@ 2011-09-08 13:15 ` jamborm at gcc dot gnu.org
2011-09-09 9:59 ` jamborm at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-09-08 13:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-09-08 13:09:43 UTC ---
Author: jamborm
Date: Thu Sep 8 13:09:38 2011
New Revision: 178688
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178688
Log:
2011-09-08 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/50287
* ipa-split.c (split_function): Do not create SSA names for
non-gimple-registers.
* testsuite/gcc.dg/torture/pr50287.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr50287.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-split.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/50287] [4.7 Regression] FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
` (8 preceding siblings ...)
2011-09-08 13:15 ` jamborm at gcc dot gnu.org
@ 2011-09-09 9:59 ` jamborm at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jamborm at gcc dot gnu.org @ 2011-09-09 9:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50287
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-09-09 09:36:50 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-09-09 9:37 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-04 0:22 [Bug tree-optimization/50287] New: FAIL: gcc.c-torture/execute/builtins/vsnprintf-chk.c compilation, -O2 -flto kkojima at gcc dot gnu.org
2011-09-04 8:58 ` [Bug tree-optimization/50287] [4.7 Regression] " rguenth at gcc dot gnu.org
2011-09-06 11:21 ` rsandifo at gcc dot gnu.org
2011-09-06 12:55 ` ramana at gcc dot gnu.org
2011-09-06 18:24 ` jamborm at gcc dot gnu.org
2011-09-06 18:29 ` jamborm at gcc dot gnu.org
2011-09-06 18:31 ` jamborm at gcc dot gnu.org
2011-09-07 0:35 ` kkojima at gcc dot gnu.org
2011-09-08 9:21 ` rguenth at gcc dot gnu.org
2011-09-08 13:15 ` jamborm at gcc dot gnu.org
2011-09-09 9:59 ` jamborm at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).