public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__
@ 2003-10-27 21:38 reichelt at gcc dot gnu dot org
2003-10-27 21:46 ` [Bug c/12794] " reichelt at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-27 21:38 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
Summary: [tree-ssa] ICE with attribute __alias__
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,rth at redhat dot com
The following code snippet (from PR 7490) crashes tree-ssa:
void foo()
{
extern void bar () __attribute__ ((__alias__ ("BAR")));
bar ();
}
Compiled with "gcc -c" I get:
PR7490.c: In function `bar':
PR7490.c:11: internal compiler error: in tsi_stmt_ptr, at tree-iterator.h:116
Please submit a full bug report, [etc.]
Btw, the empty line after the first one is strange.
The regression appeared with Richard's patch
http://gcc.gnu.org/ml/gcc-cvs/2003-10/msg01062.html
Richard, could you please have a look?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
@ 2003-10-27 21:46 ` reichelt at gcc dot gnu dot org
2003-10-30 5:42 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-27 21:46 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-10-27 21:45 -------
Maybe related to PR 12795.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
2003-10-27 21:46 ` [Bug c/12794] " reichelt at gcc dot gnu dot org
@ 2003-10-30 5:42 ` pinskia at gcc dot gnu dot org
2003-11-03 5:05 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30 5:42 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-30 05:42:01
date| |
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
2003-10-27 21:46 ` [Bug c/12794] " reichelt at gcc dot gnu dot org
2003-10-30 5:42 ` pinskia at gcc dot gnu dot org
@ 2003-11-03 5:05 ` pinskia at gcc dot gnu dot org
2003-12-01 3:36 ` [Bug middle-end/12794] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-03 5:05 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |tree-ssa
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-11-03 5:05 ` pinskia at gcc dot gnu dot org
@ 2003-12-01 3:36 ` pinskia at gcc dot gnu dot org
2003-12-10 14:33 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-01 3:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-01 03:35 -------
I now get a seg fault:
#0 gimple_expand_calls_inline (stmt_p=0x40df0df4, id=0xbffff040) at /Volumes/UFS_Partition/
pinskia/src/gccssa/src/gcc/tree-inline.c:1618
#1 0x001c8fb4 in optimize_inline_calls (fn=0x40df0d98) at /Volumes/UFS_Partition/pinskia/src/
gccssa/src/gcc/tree-inline.c:1747
#2 0x001e2dac in cgraph_optimize_function (node=0x40df0d98) at /Volumes/UFS_Partition/
pinskia/src/gccssa/src/gcc/cgraphunit.c:473
#3 0x001e2d7c in cgraph_optimize_function (node=0x40df0e10) at /Volumes/UFS_Partition/
pinskia/src/gccssa/src/gcc/cgraphunit.c:477
#4 0x001e2df0 in cgraph_expand_function (node=0x40df0e88) at /Volumes/UFS_Partition/
pinskia/src/gccssa/src/gcc/cgraphunit.c:492
#5 0x001e2f00 in cgraph_assemble_pending_functions () at /Volumes/UFS_Partition/pinskia/src/
gccssa/src/gcc/cgraphunit.c:142
#6 0x001e4478 in cgraph_finalize_function (decl=0x40df0a50, nested=false) at /Volumes/
UFS_Partition/pinskia/src/gccssa/src/gcc/cgraphunit.c:221
#7 0x0001cba8 in finish_function () at /Volumes/UFS_Partition/pinskia/src/gccssa/src/gcc/c-
decl.c:6158
#8 0x00004f10 in yyparse () at c-parse.y:386
#9 0x000098b8 in c_parse_file () at c-parse.y:3033
#10 0x0004eb88 in c_common_parse_file (set_yydebug=1088359924) at /Volumes/UFS_Partition/
pinskia/src/gccssa/src/gcc/c-opts.c:1222
#11 0x000b1c1c in toplev_main (argc=5088092, argv=0x1) at /Volumes/UFS_Partition/pinskia/
src/gccssa/src/gcc/toplev.c:1861
#12 0x00001c5c in _start (argc=14, argv=0xbffffd20, envp=0xbffffd5c) at /SourceCache/Csu/
Csu-46/crt.c:267
#13 0x00001ad0 in start ()
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
Last reconfirmed|2003-10-30 05:42:01 |2003-12-01 03:36:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-12-01 3:36 ` [Bug middle-end/12794] " pinskia at gcc dot gnu dot org
@ 2003-12-10 14:33 ` reichelt at gcc dot gnu dot org
2004-01-14 10:06 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-12-10 14:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-12-10 14:33 -------
The bug was fixed by Jan's patch
http://gcc.gnu.org/ml/gcc-cvs/2003-12/msg00395.html
Shouldn't we add a testcase for this (probably to mainline)?
(The problem already appeared earlier as PR 7490, was fixed,
but AFAICT no testcase was added to the testsuite. And so the
problem reappeared on tree-ssa.)
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jh at suse dot cz
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-12-10 14:33 ` reichelt at gcc dot gnu dot org
@ 2004-01-14 10:06 ` reichelt at gcc dot gnu dot org
2004-02-18 16:40 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-01-14 10:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-01-14 10:05 -------
Just for the record: We now have a testcase (g++.dg/ext/attrib10.C) in the
testsuite.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-01-14 10:06 ` reichelt at gcc dot gnu dot org
@ 2004-02-18 16:40 ` reichelt at gcc dot gnu dot org
2004-02-18 19:42 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-02-18 16:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-02-18 16:39 -------
The segfault reappeared on tree-ssa with Richard's patch
http://gcc.gnu.org/ml/gcc-cvs/2004-02/msg00804.html
Richard, could you please have a look?
Btw, the testcase (g++.dg/ext/attrib10.C) I mentioned in my previous
comment doesn't fail because this is a C-only problem. Maybe we need
a C-version of that testcase, too.
--
What |Removed |Added
----------------------------------------------------------------------------
CC|jh at suse dot cz |
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-02-18 16:40 ` reichelt at gcc dot gnu dot org
@ 2004-02-18 19:42 ` pinskia at gcc dot gnu dot org
2004-02-26 0:45 ` rth at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-18 19:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-18 19:42 -------
Here is the backtrace:
#0 0x00309288 in finalize_nesting_tree_1 (root=0x41302720) at /Users/pinskia/src/gcc-tree-ssa/
gcc/gcc/tree-nested.c:1237
#1 0x00309390 in finalize_nesting_tree (root=0x41302720) at /Users/pinskia/src/gcc-tree-ssa/gcc/
gcc/tree-nested.c:1264
#2 0x00309388 in finalize_nesting_tree (root=0x41302680) at /Users/pinskia/src/gcc-tree-ssa/gcc/
gcc/tree-nested.c:1263
#3 0x003094dc in lower_nested_functions (fndecl=0x41466d14) at /Users/pinskia/src/gcc-tree-ssa/
gcc/gcc/tree-nested.c:1308
#4 0x0002f9f4 in finish_function () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/c-decl.c:6147
#5 0x00003da8 in yyparse () at c-parse.y:386
#6 0x0000ec60 in c_parse_file () at c-parse.y:3053
#7 0x00095fc4 in c_common_parse_file (set_yydebug=0) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/
c-opts.c:1227
#8 0x0011b160 in compile_file () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/toplev.c:1874
#9 0x00121cac in do_compile () at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/toplev.c:4728
#10 0x00121d90 in toplev_main (argc=2, argv=0xbffffca0) at /Users/pinskia/src/gcc-tree-ssa/gcc/
gcc/toplev.c:4768
#11 0x000c3dfc in main (argc=2, argv=0xbffffca0) at /Users/pinskia/src/gcc-tree-ssa/gcc/gcc/
main.c:35
Basically at this point sf is NULL:
sf = DECL_STRUCT_FUNCTION (root->context);
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|REOPENED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-02-18 19:42 ` pinskia at gcc dot gnu dot org
@ 2004-02-26 0:45 ` rth at gcc dot gnu dot org
2004-02-26 1:24 ` [Bug c/12794] " rth at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-02-26 0:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-02-26 00:45 -------
Looking at it. But do notice that this is illegal code.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-02-26 0:45 ` rth at gcc dot gnu dot org
@ 2004-02-26 1:24 ` rth at gcc dot gnu dot org
2004-02-26 1:26 ` cvs-commit at gcc dot gnu dot org
2004-02-26 1:29 ` rth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-02-26 1:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-02-26 01:24 -------
Front end bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-02-26 1:24 ` [Bug c/12794] " rth at gcc dot gnu dot org
@ 2004-02-26 1:26 ` cvs-commit at gcc dot gnu dot org
2004-02-26 1:29 ` rth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-26 1:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-26 01:26 -------
Subject: Bug 12794
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: rth@gcc.gnu.org 2004-02-26 01:26:49
Modified files:
gcc : ChangeLog c-common.c
Log message:
PR c/12794
* c-common.c (handle_alias_attribute): Reject the attribute if
current_function_decl is set.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.14646.2.138&r2=1.14646.2.139
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.344.2.61&r2=1.344.2.62
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/12794] [tree-ssa] ICE with attribute __alias__
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-02-26 1:26 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-26 1:29 ` rth at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-02-26 1:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-02-26 01:29 -------
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg02433.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12794
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-02-26 1:29 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27 21:38 [Bug c/12794] New: [tree-ssa] ICE with attribute __alias__ reichelt at gcc dot gnu dot org
2003-10-27 21:46 ` [Bug c/12794] " reichelt at gcc dot gnu dot org
2003-10-30 5:42 ` pinskia at gcc dot gnu dot org
2003-11-03 5:05 ` pinskia at gcc dot gnu dot org
2003-12-01 3:36 ` [Bug middle-end/12794] " pinskia at gcc dot gnu dot org
2003-12-10 14:33 ` reichelt at gcc dot gnu dot org
2004-01-14 10:06 ` reichelt at gcc dot gnu dot org
2004-02-18 16:40 ` reichelt at gcc dot gnu dot org
2004-02-18 19:42 ` pinskia at gcc dot gnu dot org
2004-02-26 0:45 ` rth at gcc dot gnu dot org
2004-02-26 1:24 ` [Bug c/12794] " rth at gcc dot gnu dot org
2004-02-26 1:26 ` cvs-commit at gcc dot gnu dot org
2004-02-26 1:29 ` rth 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).