public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
@ 2004-06-09 16:24 trentalg at aston dot ac dot uk
2004-06-09 16:30 ` [Bug tree-optimization/15899] [3.5 Regression] " trentalg at aston dot ac dot uk
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: trentalg at aston dot ac dot uk @ 2004-06-09 16:24 UTC (permalink / raw)
To: gcc-bugs
I get the following fatal error while trying to compile glibc from CVS (20040609):
dl-load.c:206: internal compiler error: tree check: expected ssa_name, have
var_decl in verify_ssa, at tree-ssa.c:402
Please submit a full bug report,
with preprocessed source if appropriate.
Also, severel warning about functions not being inline-able are reported with
the same source file (dl-load.c):
dl-load.c: In function `_dl_map_object_from_fd':
../sysdeps/i386/i486/bits/string.h:315: warning: inlining failed in call to
'__memset_ccn_by4': function not inlinable
dl-load.c:1197: warning: called from here
../sysdeps/i386/i486/bits/string.h:346: warning: inlining failed in call to
'__memset_ccn_by2': function not inlinable
dl-load.c:1197: warning: called from here
../sysdeps/i386/i486/bits/string.h:122: warning: inlining failed in call to
'__memcpy_g': function not inlinable
dl-load.c:1234: warning: called from here
GCC is version 3.5.0 from CVS 20040608.
--
Summary: internal compiler error: tree check: expected ssa_name,
have var_decl in verify_ssa
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trentalg at aston dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
@ 2004-06-09 16:30 ` trentalg at aston dot ac dot uk
2004-06-09 16:30 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: trentalg at aston dot ac dot uk @ 2004-06-09 16:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 16:29 -------
Can you attach the preprocessed source?
------- Additional Comments From trentalg at aston dot ac dot uk 2004-06-09 16:29 -------
Created an attachment (id=6505)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6505&action=view)
Pre-processor output
--
What |Removed |Added
----------------------------------------------------------------------------
Component|inline-asm |tree-optimization
Keywords| |ice-on-valid-code
Summary|internal compiler error: |[3.5 Regression] internal
|tree check: expected |compiler error: tree check:
|ssa_name, have var_decl in |expected ssa_name, have
|verify_ssa |var_decl in verify_ssa
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
2004-06-09 16:30 ` [Bug tree-optimization/15899] [3.5 Regression] " trentalg at aston dot ac dot uk
@ 2004-06-09 16:30 ` pinskia at gcc dot gnu dot org
2004-06-09 16:34 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 16:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 16:29 -------
Can you attach the preprocessed source?
------- Additional Comments From trentalg at aston dot ac dot uk 2004-06-09 16:29 -------
Created an attachment (id=6505)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6505&action=view)
Pre-processor output
--
What |Removed |Added
----------------------------------------------------------------------------
Component|inline-asm |tree-optimization
Keywords| |ice-on-valid-code
Summary|internal compiler error: |[3.5 Regression] internal
|tree check: expected |compiler error: tree check:
|ssa_name, have var_decl in |expected ssa_name, have
|verify_ssa |var_decl in verify_ssa
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
2004-06-09 16:30 ` [Bug tree-optimization/15899] [3.5 Regression] " trentalg at aston dot ac dot uk
2004-06-09 16:30 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 16:34 ` pinskia at gcc dot gnu dot org
2004-06-09 16:43 ` trentalg at aston dot ac dot uk
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 16:34 -------
What options are you passing to gcc?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (2 preceding siblings ...)
2004-06-09 16:34 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 16:43 ` trentalg at aston dot ac dot uk
2004-06-09 17:44 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: trentalg at aston dot ac dot uk @ 2004-06-09 16:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From trentalg at aston dot ac dot uk 2004-06-09 16:43 -------
Glibc build was configured with the following command:
AS=/usr/bin/as LD=/usr/bin/ld CFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2
-msse -mmmx" CXXFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -msse -mmmx"
../../libc/configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var
--enable-omitfp=yes --enable-kernel=2.6.4 --enable-add-ons=nptl --with-tls
Gcc itself was compiled using:
CFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -msse -mmmx -pthread"
CXXFLAGS="-O3 -march=pentium4 -mfpmath=sse -msse2 -msse -mmmx -pthread"
../gcc/configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
--infodir=/usr/share/info --mandir=/usr/share/man --with-gnu-as --with-gnu-ld
--enable-threads=posix --with-arch=pentium4 --with-tune=pentium4
--with-gmp-dir=/mnt/source/cvs/gmp-4.1.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (3 preceding siblings ...)
2004-06-09 16:43 ` trentalg at aston dot ac dot uk
@ 2004-06-09 17:44 ` pinskia at gcc dot gnu dot org
2004-06-09 18:05 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 17:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 17:44 -------
Just a note I can confirm this at -O2 -finline-functions -fno-unit-at-a-time (the -fno-unit-at-a-time is
there is reducing it can do it easier).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (4 preceding siblings ...)
2004-06-09 17:44 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 18:05 ` pinskia at gcc dot gnu dot org
2004-06-09 18:22 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 18:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 18:05 -------
This happens after SSAPRE.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (5 preceding siblings ...)
2004-06-09 18:05 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 18:22 ` pinskia at gcc dot gnu dot org
2004-06-09 18:35 ` belyshev at lubercy dot com
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 18:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 18:22 -------
Created an attachment (id=6506)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6506&action=view)
Much reduced source
Reduced to 164 lines.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (6 preceding siblings ...)
2004-06-09 18:22 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 18:35 ` belyshev at lubercy dot com
2004-06-09 18:50 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: belyshev at lubercy dot com @ 2004-06-09 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-06-09 18:35 -------
Small testcase:
-------------------------------------------------------------------------------
void foo (char *name)
{
if (*name)
name ++;
while (name);
asm ("hello, world" : "=r" (name));
}
-------------------------------------------------------------------------------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
Priority|P1 |P2
Last reconfirmed|0000-00-00 00:00:00 |2004-06-09 18:35:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (7 preceding siblings ...)
2004-06-09 18:35 ` belyshev at lubercy dot com
@ 2004-06-09 18:50 ` pinskia at gcc dot gnu dot org
2004-06-09 18:53 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 18:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 18:50 -------
Note Serge's source is filed in PR 15902 because it is not exactly the reduced source for this example
but still a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (8 preceding siblings ...)
2004-06-09 18:50 ` pinskia at gcc dot gnu dot org
@ 2004-06-09 18:53 ` pinskia at gcc dot gnu dot org
2004-06-10 16:14 ` dberlin at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 18:53 -------
And here is the right reduced source:
void foo (char *name)
{
if (*name)
name ++;
while (name[0]);
asm ("hello, world" : "=r" (name));
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (9 preceding siblings ...)
2004-06-09 18:53 ` pinskia at gcc dot gnu dot org
@ 2004-06-10 16:14 ` dberlin at gcc dot gnu dot org
2004-06-12 0:19 ` cvs-commit at gcc dot gnu dot org
2004-06-12 3:31 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2004-06-10 16:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2004-06-09 18:35:41 |2004-06-10 16:14:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (10 preceding siblings ...)
2004-06-10 16:14 ` dberlin at gcc dot gnu dot org
@ 2004-06-12 0:19 ` cvs-commit at gcc dot gnu dot org
2004-06-12 3:31 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-12 0:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-12 00:18 -------
Subject: Bug 15899
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: dberlin@gcc.gnu.org 2004-06-12 00:18:36
Modified files:
gcc : ChangeLog tree-dfa.c tree-flow-inline.h
tree-flow.h tree-ssa-dce.c tree-ssa-pre.c
tree.h
gcc/testsuite/gcc.dg/tree-ssa: ssa-pre-1.c ssa-pre-2.c
Added files:
gcc/testsuite/gcc.c-torture/compile: 20040611-1.c
Log message:
2004-06-11 Steven Bosscher <stevenb@suse.de>
* tree-ssa-dce.c (mark_control_dependent_edges_necessary):
Don't try to mark anything control dependent on the entry or
exit blocks.
2004-06-11 Daniel Berlin <dberlin@dberlin.org>
Fix Bug 15899
Fix Bug 15460
* tree.h (SSA_NAME_VALUE): New macro.
(struct tree_ssa_name): Add value_handle member.
* tree-ssa-pre.c: Replaced.
* tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
(struct cst_ann_d): New.
(struct expr_ann_d): New.
(union tree_ann_d): Add cst_ann, expr_ann.
* tree-dfa.c (create_cst_ann): New function.
(create_expr_ann): Ditto.
* tree-flow-inline.h (cst_ann): New function.
(expr_ann): Ditto.
(get_cst_ann): Ditto.
(get_expr_ann): Ditto..
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3934&r2=2.3935
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-dfa.c.diff?cvsroot=gcc&r1=2.7&r2=2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-flow-inline.h.diff?cvsroot=gcc&r1=2.4&r2=2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-flow.h.diff?cvsroot=gcc&r1=2.7&r2=2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-dce.c.diff?cvsroot=gcc&r1=2.5&r2=2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-pre.c.diff?cvsroot=gcc&r1=2.6&r2=2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.510&r2=1.511
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/20040611-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-2.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/15899] [3.5 Regression] internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
` (11 preceding siblings ...)
2004-06-12 0:19 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-12 3:31 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-12 3:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-12 03:31 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15899
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-06-12 3:31 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-09 16:24 [Bug inline-asm/15899] New: internal compiler error: tree check: expected ssa_name, have var_decl in verify_ssa trentalg at aston dot ac dot uk
2004-06-09 16:30 ` [Bug tree-optimization/15899] [3.5 Regression] " trentalg at aston dot ac dot uk
2004-06-09 16:30 ` pinskia at gcc dot gnu dot org
2004-06-09 16:34 ` pinskia at gcc dot gnu dot org
2004-06-09 16:43 ` trentalg at aston dot ac dot uk
2004-06-09 17:44 ` pinskia at gcc dot gnu dot org
2004-06-09 18:05 ` pinskia at gcc dot gnu dot org
2004-06-09 18:22 ` pinskia at gcc dot gnu dot org
2004-06-09 18:35 ` belyshev at lubercy dot com
2004-06-09 18:50 ` pinskia at gcc dot gnu dot org
2004-06-09 18:53 ` pinskia at gcc dot gnu dot org
2004-06-10 16:14 ` dberlin at gcc dot gnu dot org
2004-06-12 0:19 ` cvs-commit at gcc dot gnu dot org
2004-06-12 3:31 ` pinskia at gcc dot gnu dot 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).