public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error)
@ 2014-06-27 13:27 schwab@linux-m68k.org
2014-06-27 15:03 ` [Bug rtl-optimization/61629] " schwab@linux-m68k.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2014-06-27 13:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61629
Bug ID: 61629
Summary: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal
compiler error)
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: schwab@linux-m68k.org
CC: hubicka at gcc dot gnu.org
Target: m68k-*-*
Broken by r212007.
(gdb) r -O ../../gcc/testsuite/gcc.dg/20020312-2.c
Program received signal SIGSEGV, Segmentation fault.
true_regnum (x=x@entry=0x0) at ../../gcc/jump.c:1893
(gdb) bt
#0 true_regnum (x=x@entry=0x0) at ../../gcc/jump.c:1893
#1 0x0000000000c0000b in m68k_secondary_reload_class (
rclass=rclass@entry=ALL_REGS, mode=mode@entry=VOIDmode, x=x@entry=0x0)
at ../../gcc/config/m68k/m68k.c:5197
#2 0x000000000095a79e in default_secondary_reload (in_p=<optimized out>,
x=0x0, reload_class_i=7, reload_mode=VOIDmode, sri=0x7fffffffd880)
at ../../gcc/targhooks.c:908
#3 0x00000000008eb57a in secondary_reload_class (in_p=in_p@entry=false,
rclass=rclass@entry=7, mode=mode@entry=VOIDmode, x=<optimized out>)
at ../../gcc/reload.c:526
#4 0x00000000008e3322 in memory_move_secondary_cost (mode=VOIDmode,
rclass=7, in=false) at ../../gcc/reginfo.c:581
#5 0x000000000095b28c in default_memory_move_cost (mode=<optimized out>,
rclass=<optimized out>, in=<optimized out>) at ../../gcc/targhooks.c:1357
#6 0x000000000080951d in setup_class_subset_and_memory_move_costs ()
at ../../gcc/ira.c:584
#7 ira_init () at ../../gcc/ira.c:1711
#8 0x00000000008e3295 in reinit_regs () at ../../gcc/reginfo.c:536
#9 0x00000000008e396d in globalize_reg (decl=decl@entry=
<var_decl 0x7ffff6b02360 reg>, i=i@entry=13) at ../../gcc/reginfo.c:806
#10 0x0000000000be5790 in make_decl_rtl (
decl=decl@entry=<var_decl 0x7ffff6b02360 reg>) at ../../gcc/varasm.c:1354
#11 0x00000000008b293b in rest_of_decl_compilation (
decl=decl@entry=<var_decl 0x7ffff6b02360 reg>,
top_level=top_level@entry=1, at_end=at_end@entry=0)
at ../../gcc/passes.c:215
#12 0x00000000004e617a in finish_decl (
decl=decl@entry=<var_decl 0x7ffff6b02360 reg>, init_loc=init_loc@entry=0,
init=<optimized out>, init@entry=<tree 0x0>,
origtype=origtype@entry=<tree 0x0>, asmspec_tree=<optimized out>,
asmspec_tree@entry=<string_cst 0x7ffff6b05b10>)
at ../../gcc/c/c-decl.c:4535
#13 0x0000000000543c43 in c_parser_declaration_or_fndef (
parser=parser@entry=0x7ffff6b13000, fndef_ok=false, fndef_ok@entry=true,
static_assert_ok=static_assert_ok@entry=true,
empty_ok=empty_ok@entry=true, nested=nested@entry=false,
start_attr_ok=start_attr_ok@entry=true,
objc_foreach_object_declaration=objc_foreach_object_declaration@entry=0x0,
omp_declare_simd_clauses=..., omp_declare_simd_clauses@entry=...)
at ../../gcc/c/c-parser.c:1824
#14 0x0000000000548a46 in c_parser_external_declaration (
parser=0x7ffff6b13000) at ../../gcc/c/c-parser.c:1400
#15 0x00000000005494fa in c_parser_translation_unit (parser=0x7ffff6b13000)
at ../../gcc/c/c-parser.c:1287
#16 c_parse_file () at ../../gcc/c/c-parser.c:14092
#17 0x000000000059e463 in c_common_parse_file ()
at ../../gcc/c-family/c-opts.c:1115
#18 0x000000000095d268 in compile_file () at ../../gcc/toplev.c:548
#19 0x000000000095f431 in do_compile () at ../../gcc/toplev.c:1946
#20 toplev_main (argc=3, argv=0x7fffffffdd98) at ../../gcc/toplev.c:2022
#21 0x00007ffff6c38be5 in __libc_start_main (main=
0x4d7d70 <main(int, char**)>, argc=3, argv=0x7fffffffdd98,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7fffffffdd88) at libc-start.c:269
#22 0x00000000004d7de1 in _start () at ../sysdeps/x86_64/start.S:122
(gdb) f 4
#4 0x00000000008e3322 in memory_move_secondary_cost (mode=VOIDmode,
rclass=7, in=false) at ../../gcc/reginfo.c:581
(gdb) p default_target_rtl.x_top_of_stack[mode]
$1 = (nil)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/61629] [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error)
2014-06-27 13:27 [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error) schwab@linux-m68k.org
@ 2014-06-27 15:03 ` schwab@linux-m68k.org
2014-07-07 13:49 ` ro at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2014-06-27 15:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61629
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.10.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/61629] [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error)
2014-06-27 13:27 [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error) schwab@linux-m68k.org
2014-06-27 15:03 ` [Bug rtl-optimization/61629] " schwab@linux-m68k.org
@ 2014-07-07 13:49 ` ro at gcc dot gnu.org
2014-07-16 6:56 ` rsandifo at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2014-07-07 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61629
Rainer Orth <ro at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|m68k-*-* |m68k-*-*,
| |sparc-sun-solaris2*
CC| |ro at gcc dot gnu.org
--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> ---
Same on Solaris/SPARC:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/20020312-2.c:112:1: internal
compiler error: Segmentation Fault
0x7110e3 crash_signal
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:337
0x9f5bc8 sparc_secondary_reload
/vol/gcc/src/hg/trunk/local/gcc/config/sparc/sparc.c:12376
0x67f7cf secondary_reload_class(bool, int, machine_mode, rtx_def*)
/vol/gcc/src/hg/trunk/local/gcc/reload.c:526
0x675f43 memory_move_secondary_cost(machine_mode, int, bool)
/vol/gcc/src/hg/trunk/local/gcc/reginfo.c:581
0x70eb73 default_memory_move_cost(machine_mode, int, bool)
/vol/gcc/src/hg/trunk/local/gcc/targhooks.c:1357
0x675edf memory_move_cost(machine_mode, int, bool)
/vol/gcc/src/hg/trunk/local/gcc/reginfo.c:566
0x57f09f setup_class_subset_and_memory_move_costs
/vol/gcc/src/hg/trunk/local/gcc/ira.c:584
0x57f09f ira_init()
/vol/gcc/src/hg/trunk/local/gcc/ira.c:1711
0x675e5b reinit_regs()
/vol/gcc/src/hg/trunk/local/gcc/reginfo.c:536
0x9d494b make_decl_rtl(tree_node*)
/vol/gcc/src/hg/trunk/local/gcc/varasm.c:1354
0x63eb8b rest_of_decl_compilation(tree_node*, int, int)
/vol/gcc/src/hg/trunk/local/gcc/passes.c:215
0x1f3b0b finish_decl(tree_node*, unsigned int, tree_node*, tree_node*,
tree_node*)
/vol/gcc/src/hg/trunk/local/gcc/c/c-decl.c:4542
0x25b933 c_parser_declaration_or_fndef
/vol/gcc/src/hg/trunk/local/gcc/c/c-parser.c:1820
0x262e2f c_parser_external_declaration
/vol/gcc/src/hg/trunk/local/gcc/c/c-parser.c:1400
0x26393f c_parser_translation_unit
/vol/gcc/src/hg/trunk/local/gcc/c/c-parser.c:1287
0x26393f c_parse_file()
/vol/gcc/src/hg/trunk/local/gcc/c/c-parser.c:14083
0x2bb4cb c_common_parse_file()
/vol/gcc/src/hg/trunk/local/gcc/c-family/c-opts.c:1115
Rainer
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/61629] [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error)
2014-06-27 13:27 [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error) schwab@linux-m68k.org
2014-06-27 15:03 ` [Bug rtl-optimization/61629] " schwab@linux-m68k.org
2014-07-07 13:49 ` ro at gcc dot gnu.org
@ 2014-07-16 6:56 ` rsandifo at gcc dot gnu.org
2014-07-24 15:18 ` rsandifo at gcc dot gnu.org
2014-07-24 15:36 ` rsandifo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-07-16 6:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61629
rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-07-16
CC| |rsandifo at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |rsandifo at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
I see the same thing on MIPS for different testcases (e.g.
gcc.dg/tree-ssa/pr43491.c). As you probably know, it's caused by:
https://gcc.gnu.org/ml/gcc-patches/2014-06/msg01584.html
Testing a fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/61629] [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error)
2014-06-27 13:27 [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error) schwab@linux-m68k.org
` (2 preceding siblings ...)
2014-07-16 6:56 ` rsandifo at gcc dot gnu.org
@ 2014-07-24 15:18 ` rsandifo at gcc dot gnu.org
2014-07-24 15:36 ` rsandifo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-07-24 15:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61629
--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Thu Jul 24 15:17:54 2014
New Revision: 213003
URL: https://gcc.gnu.org/viewcvs?rev=213003&root=gcc&view=rev
Log:
gcc/
PR rtl-optimization/61629
* reginfo.c (reinit_regs): Only call ira_init and recog_init if
they have already been initialized.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/reginfo.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/61629] [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error)
2014-06-27 13:27 [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error) schwab@linux-m68k.org
` (3 preceding siblings ...)
2014-07-24 15:18 ` rsandifo at gcc dot gnu.org
@ 2014-07-24 15:36 ` rsandifo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-07-24 15:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61629
rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Patch applied.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-24 15:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-27 13:27 [Bug rtl-optimization/61629] New: [4.10 regression] FAIL: gcc.dg/20020312-2.c (internal compiler error) schwab@linux-m68k.org
2014-06-27 15:03 ` [Bug rtl-optimization/61629] " schwab@linux-m68k.org
2014-07-07 13:49 ` ro at gcc dot gnu.org
2014-07-16 6:56 ` rsandifo at gcc dot gnu.org
2014-07-24 15:18 ` rsandifo at gcc dot gnu.org
2014-07-24 15:36 ` rsandifo 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).