public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30215] New: FAIL: gcc.dg/pr23818.c (internal compiler error)
@ 2006-12-14 22:51 danglin at gcc dot gnu dot org
2006-12-14 23:22 ` [Bug middle-end/30215] " danglin at gcc dot gnu dot org
2008-02-10 0:36 ` danglin at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-12-14 22:51 UTC (permalink / raw)
To: gcc-bugs
Executing on host: /home/dave/gcc-4.3/objdir/gcc/xgcc
-B/home/dave/gcc-4.3/objdi
r/gcc/ /home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c -O2
-fno-tree-dom
inator-opts -fno-show-column -lm -o ./pr23818.exe (timeout = 300)
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c: In function 'foo':
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c:20: internal compiler
erro
r: in output_address, at final.c:3182
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c: In function 'foo':
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c:20: internal compiler
erro
r: in output_address, at final.c:3182
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
FAIL: gcc.dg/pr23818.c (internal compiler error)
FAIL: gcc.dg/pr23818.c (test for excess errors)
Starting program: /home/dave/gcc-4.3/objdir/gcc/cc1 `cat xx.sh`
GNU C version 4.3.0 20061213 (experimental) (hppa-linux)
compiled by GNU C version 4.3.0 20061213 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
options passed: -iprefix
/home/dave/gcc-4.3/objdir/gcc/../lib/gcc/hppa-linux/4.3.0/ -isystem
/home/dave/gcc-4.3/objdir/gcc/include
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c -auxbase-strip
./pr23818.s -O2 -fno-tree-dominator-opts -fno-show-column
options enabled: -falign-loops -fargument-alias -fbranch-count-reg
-fcaller-saves -fcommon -fcprop-registers -fcrossjumping
-fcse-follow-jumps -fdefer-pop -fdelayed-branch
-fdelete-null-pointer-checks -fearly-inlining
-feliminate-unused-debug-types -femit-class-debug-always
-fexpensive-optimizations -fforward-propagate -ffunction-cse -fgcse
-fgcse-lm -fguess-branch-probability -fident -fif-conversion
-fif-conversion2 -finline-functions-called-once -fipa-pure-const
-fipa-reference -fipa-type-escape -fivopts -fkeep-static-consts
-fleading-underscore -fmath-errno -fmerge-constants -fmove-loop-invariants
-fomit-frame-pointer -foptimize-register-move -foptimize-sibling-calls
-fpeephole -fpeephole2 -freg-struct-return -fregmove -freorder-blocks
-freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec
-fsched-stalled-insns-dep -fschedule-insns -fschedule-insns2
-fsplit-ivs-in-unroller -fstrict-aliasing -fthread-jumps
-ftoplevel-reorder -ftrapping-math -ftree-ccp -ftree-ch -ftree-copy-prop
-ftree-copyrename -ftree-dce -ftree-dse -ftree-fre -ftree-loop-im
-ftree-loop-ivcanon -ftree-loop-optimize -ftree-pre -ftree-salias
-ftree-sink -ftree-sra -ftree-store-ccp -ftree-store-copy-prop -ftree-ter
-ftree-vect-loop-version -ftree-vrp -funit-at-a-time -fvar-tracking
-fzero-initialized-in-bss -mbig-switch -mgas -mglibc -mno-space-regs
Compiler executable checksum: f865cc56161569c8f9e4f97e8e9517f1
foo main
Analyzing compilation unit
Performing interprocedural optimizations
Assembling functions:
foo
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c: In function 'foo':
/home/dave/gcc-4.3/gcc/gcc/testsuite/gcc.dg/pr23818.c:20: internal compiler
error: in output_address, at final.c:3182
Breakpoint 1, output_address (x=0x400aadd0) at ../../gcc/gcc/final.c:3182
3182 PRINT_OPERAND_ADDRESS (asm_out_file, x);
(gdb) p debug_rtx (x)
(plus:SI (const_int 0 [0x0])
(reg/v/f:SI 26 %r26 [orig:144 p ] [144]))
(gdb) p debug_rtx (insn)
(insn 75 78 87 (set (reg:SI 28 %r28 [151])
(mem:SI (plus:SI (const_int 0 [0x0])
(reg/v/f:SI 26 %r26 [orig:144 p ] [144])) [5 S4 A32])) 37
{*pa.md:2482} (nil)
(expr_list:REG_EQUIV (mem:SI (plus:SI (const_int 0 [0x0])
(reg/v/f:SI 26 %r26 [orig:144 p ] [144])) [5 S4 A32])
(nil)))
Seems to have been created by expand:
;; MEM[base: q, index: 0B] = MEM[base: p, index: 0B] + 10
(insn 75 73 76 (set (reg:SI 151)
(mem:SI (plus:SI (const_int 0 [0x0])
(reg/v/f:SI 144 [ p ])) [5 S4 A32])) -1 (nil)
(nil))
The PLUS isn't in canonical form.
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
{ rtx addr = ADDR; \
switch (GET_CODE (addr)) \
{ \
case REG: \
fprintf (FILE, "0(%s)", reg_names [REGNO (addr)]); \
break; \
case PLUS: \
gcc_assert (GET_CODE (XEXP (addr, 1)) == CONST_INT); \
fprintf (FILE, "%d(%s)", (int)INTVAL (XEXP (addr, 1)), \
reg_names [REGNO (XEXP (addr, 0))]); \
break; \
--
Summary: FAIL: gcc.dg/pr23818.c (internal compiler error)
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
GCC build triplet: hppa-unknown-linux-gnu
GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30215
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/30215] FAIL: gcc.dg/pr23818.c (internal compiler error)
2006-12-14 22:51 [Bug middle-end/30215] New: FAIL: gcc.dg/pr23818.c (internal compiler error) danglin at gcc dot gnu dot org
@ 2006-12-14 23:22 ` danglin at gcc dot gnu dot org
2008-02-10 0:36 ` danglin at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-12-14 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from danglin at gcc dot gnu dot org 2006-12-14 23:21 -------
This is the backtrace that creates the insn:
(gdb) bt
#0 emit_move_sequence (operands=0xc002d508, mode=SImode, scratch_reg=0x0)
at ../../gcc/gcc/config/pa/pa.c:1331
#1 0x002d4fa0 in gen_movsi (operand0=0x400aadf0, operand1=0x400aade0)
at ../../gcc/gcc/config/pa/pa.md:2428
#2 0x00246aa4 in emit_move_insn_1 (x=0x400aadf0, y=0x400aade0)
at ../../gcc/gcc/expr.c:3090
#3 0x00246fd0 in emit_move_insn (x=0x400aadf0, y=0x400aade0)
at ../../gcc/gcc/expr.c:3318
#4 0x0021e214 in copy_to_mode_reg (mode=SImode, x=0x400aade0)
at ../../gcc/gcc/explow.c:644
#5 0x002fa0bc in expand_binop (mode=<value optimized out>,
binoptab=0x400151e0, op0=0x400aade0, op1=0x4000f260, target=0x400aadc0,
unsignedp=0, methods=OPTAB_LIB_WIDEN) at ../../gcc/gcc/optabs.c:1361
#6 0x0023ad30 in expand_expr_real_1 (exp=0x400a9e38, target=0x400aadc0,
tmode=SImode, modifier=EXPAND_NORMAL, alt_rtl=0xc002d048)
at ../../gcc/gcc/expr.c:8845
#7 0x002467f0 in expand_expr_real (exp=0x400a9e38, target=0x400aade0,
tmode=SImode, modifier=1074442600, alt_rtl=0xc002d048)
at ../../gcc/gcc/expr.c:6717
#8 0x002366e0 in store_expr (exp=0x400a9e38, target=0x400aadc0,
call_param_p=0) at ../../gcc/gcc/expr.c:4371
#9 0x002377fc in expand_assignment (to=0x400a4508, from=0x400a9e38)
at ../../gcc/gcc/expr.c:4250
---Type <return> to continue, or q <return> to quit---
#10 0x0023bb98 in expand_expr_real_1 (exp=0x400a57b0, target=0x0,
tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0)
at ../../gcc/gcc/expr.c:8620
#11 0x002466d4 in expand_expr_real (exp=0x400a57b0, target=0x400aade0,
tmode=VOIDmode, modifier=1074442600, alt_rtl=0x0)
at ../../gcc/gcc/expr.c:6711
#12 0x00364ed0 in expand_expr_stmt (exp=0xc002d508) at ../../gcc/gcc/expr.h:496
#13 0x003b2374 in expand_gimple_basic_block (bb=0x400a03f0)
at ../../gcc/gcc/cfgexpand.c:1530
#14 0x003b31dc in tree_expand_cfg () at ../../gcc/gcc/cfgexpand.c:1800
#15 0x003ad398 in execute_one_pass (pass=0x5c9424)
at ../../gcc/gcc/passes.c:858
#16 0x003ad528 in execute_pass_list (pass=0x5c9424)
at ../../gcc/gcc/passes.c:903
#17 0x000c6290 in tree_rest_of_compilation (fndecl=0x400948c0)
at ../../gcc/gcc/tree-optimize.c:463
#18 0x0002a4d0 in c_expand_body (fndecl=0xc002d508)
at ../../gcc/gcc/c-decl.c:6855
#19 0x003fa850 in cgraph_expand_function (node=0x40013280)
at ../../gcc/gcc/cgraphunit.c:1096
#20 0x003fdd28 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1161
#21 0x00033454 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:7968
#22 0x00370d8c in toplev_main (argc=<value optimized out>,
---Type <return> to continue, or q <return> to quit---
argv=<value optimized out>) at ../../gcc/gcc/toplev.c:1040
#23 0x40721340 in __libc_start_main () from /lib/libc.so.6
#24 0x0001cca8 in _start () at ../sysdeps/hppa/elf/start.S:84
(gdb) frame 8
#8 0x002366e0 in store_expr (exp=0x400a9e38, target=0x400aadc0,
call_param_p=0) at ../../gcc/gcc/expr.c:4371
4371 temp = expand_expr_real (exp, target, GET_MODE (target),
(gdb) p debug_rtx (target)
(mem:SI (plus:SI (const_int 0 [0x0])
(reg/v/f:SI 142 [ q ])) [5 S4 A32])
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30215
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/30215] FAIL: gcc.dg/pr23818.c (internal compiler error)
2006-12-14 22:51 [Bug middle-end/30215] New: FAIL: gcc.dg/pr23818.c (internal compiler error) danglin at gcc dot gnu dot org
2006-12-14 23:22 ` [Bug middle-end/30215] " danglin at gcc dot gnu dot org
@ 2008-02-10 0:36 ` danglin at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-02-10 0:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from danglin at gcc dot gnu dot org 2008-02-10 00:35 -------
This is not failing anymore.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30215
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-10 0:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-14 22:51 [Bug middle-end/30215] New: FAIL: gcc.dg/pr23818.c (internal compiler error) danglin at gcc dot gnu dot org
2006-12-14 23:22 ` [Bug middle-end/30215] " danglin at gcc dot gnu dot org
2008-02-10 0:36 ` danglin 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).