public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* middle-end/10557: [3.4 regression] [m68k] ICE in subreg_offset_representable_p
@ 2003-04-29 22:36 schwab
  0 siblings, 0 replies; 2+ messages in thread
From: schwab @ 2003-04-29 22:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jh


>Number:         10557
>Category:       middle-end
>Synopsis:       [3.4 regression] [m68k] ICE in subreg_offset_representable_p
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 22:36:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Schwab
>Release:        3.4 20030429 (experimental)
>Organization:
>Environment:
System: Linux whitebox 2.4.20-ben10 #1 Thu Apr 3 23:52:29 CEST 2003 ppc unknown unknown GNU/Linux
Architecture: ppc

	
host: powerpc-unknown-linux-gnu
build: powerpc-unknown-linux-gnu
target: m68k-unknown-linux-gnu
configured with: ../gcc/configure --host=powerpc-linux --prefix=/usr/local/m68k-linux --enable-languages=c,c++ --target=m68k-linux --enable-shared --enable-clocale=gnu --enable-__cxa_atexit --with-as=/usr/local/m68k-linux/m68k-linux/bin/as --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-gcc-version-trigger=/home/andreas/src/gcc/gcc/gcc/version.c --no-create --no-recursion : (reconfigured) 
>Description:
find_equiv_reg calls operand_subword on a XFmode const_double, but
subreg_offset_representable_p doesn't like that.
>How-To-Repeat:
$ cat qefgcvt_r.i
void
qfcvt_r (long double value, int *decpt)
{
  if (*decpt == 1 && value != 0.0)
    --*decpt;
}
$ m68k-linux-gcc -O2 -c qefgcvt_r.i -v
Reading specs from /usr/local/m68k-linux/lib/gcc-lib/m68k-linux/3.4/specs
Configured with: ../gcc/configure --host=powerpc-linux --prefix=/usr/local/m68k-linux --enable-languages=c,c++ --target=m68k-linux --enable-shared --enable-clocale=gnu --enable-__cxa_atexit --with-as=/usr/local/m68k-linux/m68k-linux/bin/as --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-gcc-version-trigger=/home/andreas/src/gcc/gcc/gcc/version.c --no-create --no-recursion
Thread model: posix
gcc version 3.4 20030426 (experimental)
 /usr/local/m68k-linux/lib/gcc-lib/m68k-linux/3.4/cc1 -fpreprocessed qefgcvt_r.i -quiet -dumpbase qefgcvt_r.i -auxbase qefgcvt_r -O2 -version -o /tmp/cckgpch4.s
GNU C version 3.4 20030426 (experimental) (m68k-linux)
	compiled by GNU C version 3.3 20030328 (prerelease) (SuSE Linux).
GGC heuristics: --param ggc-min-expand=46 --param ggc-min-heapsize=31787
qefgcvt_r.i: In function `qfcvt_r':
qefgcvt_r.i:6: internal compiler error: in subreg_offset_representable_p, at rtlanal.c:3442
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x1032bc54 "../../gcc/gcc/rtlanal.c", line=3442, function=0x1032bdc0 "subreg_offset_representable_p") at ../../gcc/gcc/diagnostic.c:1367
#1  0x102217d4 in subreg_offset_representable_p (xregno=271760468, xmode=96, offset=0, ymode=SImode) at ../../gcc/gcc/rtlanal.c:3442
#2  0x100e13d8 in subreg_hard_regno (x=0x3048e4b0, check_mode=3442) at ../../gcc/gcc/emit-rtl.c:1085
#3  0x1022a714 in simplify_subreg (outermode=SImode, op=0x304865a0, innermode=XFmode, byte=0) at ../../gcc/gcc/simplify-rtx.c:2918
#4  0x1022aadc in simplify_gen_subreg (outermode=SImode, op=0x304865a0, innermode=271760832, byte=0) at ../../gcc/gcc/simplify-rtx.c:2998
#5  0x100e2318 in operand_subword (op=0x304865a0, offset=3442, validate_address=0, mode=SImode) at ../../gcc/gcc/emit-rtl.c:1741
#6  0x10208264 in find_equiv_reg (goal=0x3044c210, insn=0x30484c60, class=GENERAL_REGS, other=-1, reload_reg_p=0x0, goalreg=96, mode=SImode) at ../../gcc/gcc/reload.c:6612
#7  0x10213a48 in choose_reload_regs (chain=0x4) at ../../gcc/gcc/reload1.c:5661
#8  0x102101fc in reload_as_needed (live_known=0) at ../../gcc/gcc/reload1.c:3918
#9  0x1020ab3c in reload (first=0x304848d0, global=1) at ../../gcc/gcc/reload1.c:1105
#10 0x102c91b4 in global_alloc (file=0x10390000) at ../../gcc/gcc/global.c:585
#11 0x10246e9c in rest_of_compilation (decl=0x30487ee0) at ../../gcc/gcc/toplev.c:3433
#12 0x10024b4c in c_expand_body_1 (fndecl=0x30487ee0, nested_p=3442) at ../../gcc/gcc/c-decl.c:6395
#13 0x10024524 in finish_function (nested=271908864, can_defer_p=1) at ../../gcc/gcc/c-decl.c:6261
#14 0x100039d4 in yyparse () at c-parse.y:406
#15 0x10054b1c in c_common_parse_file (set_yydebug=271760468) at ../../gcc/gcc/c-opts.c:1630
#16 0x102450c0 in compile_file () at ../../gcc/gcc/toplev.c:2204
#17 0x1024b030 in do_compile () at ../../gcc/gcc/toplev.c:5579
#18 0x1024b0b8 in toplev_main (argc=4, argv=0x7ffff394) at ../../gcc/gcc/toplev.c:5610
#19 0x10079f8c in main (argc=271760468, argv=0xd72) at ../../gcc/gcc/main.c:37
(gdb) f 6
#6  0x10208264 in find_equiv_reg (goal=0x3044c210, insn=0x30484c60, class=GENERAL_REGS, other=-1, reload_reg_p=0x0, goalreg=96, mode=SImode) at ../../gcc/gcc/reload.c:6612
(gdb) pr goal
(const_int 0 [0x0])
(gdb) pr insn
(insn 21 30 24 2 0x30484870 (set (mem:SI (reg/v/f:SI 8 %a0 [orig:30 decpt ] [30]) [4 S4 A16])
        (const_int 0 [0x0])) 28 {movsi_const0} (nil)
    (expr_list:REG_DEAD (reg/v/f:SI 8 %a0 [orig:30 decpt ] [30])
        (nil)))
(gdb) pr p
(insn 13 28 14 1 0x30484870 (set (reg:XF 16 %fp0 [32])
        (float_extend:XF (const_double:SF 0 [0x0] 0.0 [0x0.0p+0]))) 394 {extendsfxf2} (nil)
    (expr_list:REG_EQUIV (const_double:XF 0 [0x0] 0.0 [0x0.0p+0])
        (nil)))
(gdb) 
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: middle-end/10557: [3.4 regression] [m68k] ICE in subreg_offset_representable_p
@ 2003-05-10  0:26 Dara Hazeghi
  0 siblings, 0 replies; 2+ messages in thread
From: Dara Hazeghi @ 2003-05-10  0:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR middle-end/10557; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: middle-end/10557: [3.4 regression] [m68k] ICE in subreg_offset_representable_p
Date: Fri, 9 May 2003 17:23:31 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=10557
 
 Hello,
 
 this testcase still fails on mainline (20030508) and 3.3 branch,
 
 Dara
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-10  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-29 22:36 middle-end/10557: [3.4 regression] [m68k] ICE in subreg_offset_representable_p schwab
2003-05-10  0:26 Dara Hazeghi

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).