public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure)
@ 2003-10-12 15:05 falk at debian dot org
2003-10-12 17:49 ` [Bug c++/12587] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: falk at debian dot org @ 2003-10-12 15: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=12587
Summary: [tree-ssa] Segfault with __attribute__(pure)
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: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alphaev68-unknown-linux-gnu
GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu
falk@juist:/tmp% cat tmp.cc
int atoi(const char *) __attribute__ ((__pure__));
struct wxString {
~wxString();
operator const char *();
};
wxString ParseURL(wxString URL);
wxString GetPreferences(wxString Data) {
if (atoi(ParseURL(Data))) ;
}
falk@juist:/tmp% g++ -c -v tmp.cc
Reading specs from
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/specs
Configured with: ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.5-tree-ssa 20031009 (merged 20031005)
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/cc1plus -quiet -v -iprefix /usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/ tmp.cc -quiet -dumpbase tmp.cc -mcpu=ev67 -auxbase tmp -version -o /tmp/cc6KvSb9.s
ignoring nonexistent directory
"/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa/alphaev68-unknown-linux-gnu"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa/backward"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../alphaev68-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa/alphaev68-unknown-linux-gnu
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa/backward
/usr/local/stow/gcc-tree-ssa-2003.10.09/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/usr/include
End of search list.
GNU C++ version 3.5-tree-ssa 20031009 (merged 20031005)
(alphaev68-unknown-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20031009 (merged 20031005).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
tmp.cc: In function `wxString GetPreferences(wxString)':
tmp.cc:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12587] [tree-ssa] Segfault with __attribute__(pure)
2003-10-12 15:05 [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure) falk at debian dot org
@ 2003-10-12 17:49 ` pinskia at gcc dot gnu dot org
2003-10-17 14:31 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-12 17:49 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=12587
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-12 17:49:56
date| |
Target Milestone|--- |tree-ssa
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-12 17:49 -------
With higher optimizations, I get in 20030928:
pr12587.cc: In function `wxString GetPreferences(wxString)':
pr12587.cc:10: internal compiler error: in stmt_ann, at tree-flow-inline.h:54
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12587] [tree-ssa] Segfault with __attribute__(pure)
2003-10-12 15:05 [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure) falk at debian dot org
2003-10-12 17:49 ` [Bug c++/12587] " pinskia at gcc dot gnu dot org
@ 2003-10-17 14:31 ` pinskia at gcc dot gnu dot org
2003-10-18 17:34 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 14:31 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=12587
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-10-12 17:49:56 |2003-10-17 14:30:28
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 14:30 -------
Here is the backtrace:
expand_expr (exp=0x0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL) at /Users/
apinski/src/gccssa/src/gcc/expr.c:6623
6623 if (TREE_CODE (exp) == ERROR_MARK
(gdb) bt
#0 expand_expr (exp=0x0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL) at /
Users/apinski/src/gccssa/src/gcc/expr.c:6623
#1 0x0026ca00 in expand_expr_1 (exp=0x4189b348, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:7965
#2 0x0026ca00 in expand_expr_1 (exp=0x4189b348, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:7965
#3 0x002616cc in expand_expr (exp=0x0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:6647
#4 0x00261b58 in expand_expr_1 (exp=0x4189b348, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:8775
#5 0x00261644 in expand_expr (exp=0x0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:6654
#6 0x00263de4 in expand_expr_1 (exp=0x4189b348, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:7252
#7 0x002616cc in expand_expr (exp=0x0, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL) at /Users/apinski/src/gccssa/src/gcc/expr.c:6647
#8 0x001f683c in expand_expr_stmt_value (exp=0x0, want_value=0, maybe_last=0) at /Users/
apinski/src/gccssa/src/gcc/stmt.c:2222
#9 0x00141258 in expand_stmt_toplev (t=0x65) at /Users/apinski/src/gccssa/src/gcc/c-
semantics.c:903
#10 0x002ed524 in tree_rest_of_compilation (fndecl=0x4189c078, nested_p=false) at /Users/
apinski/src/gccssa/src/gcc/tree-optimize.c:334
#11 0x000fc9e4 in expand_body (fn=0x4189c078) at /Users/apinski/src/gccssa/src/gcc/cp/
semantics.c:2862
#12 0x002e2550 in cgraph_expand_function (node=0x4189cbb8) at /Users/apinski/src/gccssa/
src/gcc/cgraphunit.c:494
#13 0x002e1870 in cgraph_assemble_pending_functions () at /Users/apinski/src/gccssa/src/gcc/
cgraphunit.c:141
#14 0x002e1a3c in cgraph_finalize_function (decl=0x4189c078, nested=false) at /Users/apinski/
src/gccssa/src/gcc/cgraphunit.c:217
#15 0x000fcda0 in expand_or_defer_fn (fn=0x4189c078) at /Users/apinski/src/gccssa/src/gcc/
cp/semantics.c:2954
#16 0x000bdedc in cp_parser_function_definition_after_declarator (parser=0x41897168,
inline_p=1099546744) at /Users/apinski/src/gccssa/src/gcc/cp/parser.c:13605
#17 0x000bde40 in cp_parser_function_definition_from_specifiers_and_declarator
(parser=0x41897168, decl_specifiers=0x0, attributes=0x0, declarator=0x0) at /Users/apinski/
src/gccssa/src/gcc/cp/parser.c:13544
#18 0x000b8374 in cp_parser_init_declarator (parser=0x41897168, decl_specifiers=0x0,
prefix_attributes=0x0, function_definition_allowed_p=false, member_p=false,
declares_class_or_enum=0, function_definition_p=0x1) at /Users/apinski/src/gccssa/src/gcc/cp/
parser.c:9357
#19 0x000b4840 in cp_parser_simple_declaration (parser=0x41810ea0,
function_definition_allowed_p=1090460480) at /Users/apinski/src/gccssa/src/gcc/cp/parser.c:
6156
#20 0x000b46c0 in cp_parser_block_declaration (parser=0x40ff1b40, statement_p=1098976928)
at /Users/apinski/src/gccssa/src/gcc/cp/parser.c:6072
#21 0x000b4544 in cp_parser_declaration (parser=0x41897168) at /Users/apinski/src/gccssa/
src/gcc/cp/parser.c:5992
#22 0x000b43d0 in cp_parser_declaration_seq_opt (parser=0x41897168) at /Users/apinski/src/
gccssa/src/gcc/cp/parser.c:5901
#23 0x000b0350 in cp_parser_translation_unit (parser=0x41897168) at /Users/apinski/src/
gccssa/src/gcc/cp/parser.c:2163
#24 0x000bf650 in c_parse_file () at /Users/apinski/src/gccssa/src/gcc/cp/parser.c:14521
#25 0x001505fc in c_common_parse_file (set_yydebug=0) at /Users/apinski/src/gccssa/src/gcc/
c-opts.c:1221
#26 0x001864a0 in compile_file () at /Users/apinski/src/gccssa/src/gcc/toplev.c:1836
#27 0x0018b05c in do_compile () at /Users/apinski/src/gccssa/src/gcc/toplev.c:4543
#28 0x0018b19c in toplev_main (argc=1099526504, argv=0x5fbe78) at /Users/apinski/src/
gccssa/src/gcc/toplev.c:4583
#29 0x0015ee08 in main (argc=0, argv=0x0) at /Users/apinski/src/gccssa/src/gcc/main.c:35
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12587] [tree-ssa] Segfault with __attribute__(pure)
2003-10-12 15:05 [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure) falk at debian dot org
2003-10-12 17:49 ` [Bug c++/12587] " pinskia at gcc dot gnu dot org
2003-10-17 14:31 ` pinskia at gcc dot gnu dot org
@ 2003-10-18 17:34 ` pinskia at gcc dot gnu dot org
2003-11-17 0:41 ` jason at gcc dot gnu dot org
2003-12-01 4:32 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-18 17:34 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=12587
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-18 17:18 -------
>From Phil's regression hunter: Search converges between 2003-09-27-ssa (#93) and
2003-09-28-ssa (#94).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12587] [tree-ssa] Segfault with __attribute__(pure)
2003-10-12 15:05 [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure) falk at debian dot org
` (2 preceding siblings ...)
2003-10-18 17:34 ` pinskia at gcc dot gnu dot org
@ 2003-11-17 0:41 ` jason at gcc dot gnu dot org
2003-12-01 4:32 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2003-11-17 0:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12587
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12587] [tree-ssa] Segfault with __attribute__(pure)
2003-10-12 15:05 [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure) falk at debian dot org
` (3 preceding siblings ...)
2003-11-17 0:41 ` jason at gcc dot gnu dot org
@ 2003-12-01 4:32 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-01 4:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-01 04:32 -------
This is fixed on the tree-ssa (20031201).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12587
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-12-01 4:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-12 15:05 [Bug c++/12587] New: [tree-ssa] Segfault with __attribute__(pure) falk at debian dot org
2003-10-12 17:49 ` [Bug c++/12587] " pinskia at gcc dot gnu dot org
2003-10-17 14:31 ` pinskia at gcc dot gnu dot org
2003-10-18 17:34 ` pinskia at gcc dot gnu dot org
2003-11-17 0:41 ` jason at gcc dot gnu dot org
2003-12-01 4:32 ` 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).