public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/30024]  New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf
@ 2006-11-30  0:01 kkojima at gcc dot gnu dot org
  2006-11-30  0:03 ` [Bug target/30024] " pinskia at physics dot uc dot edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-11-30  0:01 UTC (permalink / raw)
  To: gcc-bugs

sh-elf compiler segfaults with a null argument for emit_move_insn
when compiling gcc.c-torture/compile/20000804-1.c with -O1.

The gdb backtrace is

#0  emit_move_insn (x=0xb7c89e20, y=0x0) at ../../ORIG/trunk/gcc/expr.c:3275
#1  0x08262d94 in rest_of_handle_life () at ../../ORIG/trunk/gcc/flow.c:1560
#2  0x083d3eaa in execute_one_pass (pass=0x85f70e0)
    at ../../ORIG/trunk/gcc/passes.c:871

Thus the problem occurs in rest_of_handle_life

1560    emit_move_insn (param.retval,
1561                    CONST0_RTX (GET_MODE (param.retval)));

where param.retval is (reg:CDI 174) and CONST0_RTX (CDImode) is
NULL on this target.


-- 
           Summary: [4.3 Regression] segfault with gcc.c-
                    torture/compile/20000804-1.c on sh-elf
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug target/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
@ 2006-11-30  0:03 ` pinskia at physics dot uc dot edu
  2006-11-30  0:03 ` [Bug target/30024] New: " Andrew Pinski
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2006-11-30  0:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at physics dot uc dot edu  2006-11-30 00:03 -------
Subject: Re:   New: [4.3 Regression] segfault with
gcc.c-torture/compile/20000804-1.c on sh-elf

> 
> sh-elf compiler segfaults with a null argument for emit_move_insn
> when compiling gcc.c-torture/compile/20000804-1.c with -O1.

I get this also for SPU-elf with gcc.c-torture/compile/20000804-1.c 
at -O3 -fomit-frame-pointer -funroll-loops.

Thanks,
Andrew Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* Re: [Bug target/30024]  New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
  2006-11-30  0:03 ` [Bug target/30024] " pinskia at physics dot uc dot edu
@ 2006-11-30  0:03 ` Andrew Pinski
  2006-11-30  0:04 ` [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Andrew Pinski @ 2006-11-30  0:03 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

> 
> sh-elf compiler segfaults with a null argument for emit_move_insn
> when compiling gcc.c-torture/compile/20000804-1.c with -O1.

I get this also for SPU-elf with gcc.c-torture/compile/20000804-1.c 
at -O3 -fomit-frame-pointer -funroll-loops.

Thanks,
Andrew Pinski


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

* [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
  2006-11-30  0:03 ` [Bug target/30024] " pinskia at physics dot uc dot edu
  2006-11-30  0:03 ` [Bug target/30024] New: " Andrew Pinski
@ 2006-11-30  0:04 ` pinskia at gcc dot gnu dot org
  2006-11-30  0:26 ` kkojima at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-30  0:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-11-30 00:03 -------
http://gcc.gnu.org/ml/gcc-testresults/2006-11/msg01285.html

Oh and it was the same emit_move_insn too.  So confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-11-30 00:03:59
               date|                            |
            Summary|[4.3 Regression] segfault   |[4.3 Regression] segfault
                   |with gcc.c-                 |with gcc.c-
                   |torture/compile/20000804-1.c|torture/compile/20000804-1.c
                   |on sh-elf                   |on sh-elf and spu-elf
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-11-30  0:04 ` [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf pinskia at gcc dot gnu dot org
@ 2006-11-30  0:26 ` kkojima at gcc dot gnu dot org
  2006-11-30  4:29 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-11-30  0:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kkojima at gcc dot gnu dot org  2006-11-30 00:26 -------
Thanks for the confirmation.  I've found that

#define CONST0_RTX(MODE) (const_tiny_rtx[0][(int) (MODE)])

and const_tiny_rtx[0][(int) CDImode] isn't initialized in
init_emit_once.  With adding

  for (mode = GET_CLASS_NARROWEST_MODE (MODE_COMPLEX_INT);
       mode != VOIDmode;
       mode = GET_MODE_WIDER_MODE (mode))
    const_tiny_rtx[0][(int) mode] = gen_rtx_raw_CONST_INT (mode, 0);

to init_emit_once, the segfault went away, though I'm not sure
whether it makes sense or not.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-11-30  0:26 ` kkojima at gcc dot gnu dot org
@ 2006-11-30  4:29 ` pinskia at gcc dot gnu dot org
  2006-12-11  2:46 ` kkojima at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-30  4:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-11-30 04:29 -------
(In reply to comment #3)
> Thanks for the confirmation.  
Well I am a maintainer of the SPU port so I really care about the failures and
how ever weird the testcase :).


> and const_tiny_rtx[0][(int) CDImode] isn't initialized in
> init_emit_once.  With adding
> 
>   for (mode = GET_CLASS_NARROWEST_MODE (MODE_COMPLEX_INT);
>        mode != VOIDmode;
>        mode = GET_MODE_WIDER_MODE (mode))
>     const_tiny_rtx[0][(int) mode] = gen_rtx_raw_CONST_INT (mode, 0);
> 
> to init_emit_once, the segfault went away, though I'm not sure
> whether it makes sense or not.

I have to look into this more to figure out why we are getting a non concat for
the complex mode.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-11-30  4:29 ` pinskia at gcc dot gnu dot org
@ 2006-12-11  2:46 ` kkojima at gcc dot gnu dot org
  2006-12-14  6:53 ` [Bug rtl-optimization/30024] segfault with gcc.c-torture/compile/20000804-1.c on spu-elf pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-12-11  2:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kkojima at gcc dot gnu dot org  2006-12-11 02:46 -------
It seems that this ICE has gone away on mainline after the patch

r119535 | hubicka | 2006-12-05 19:15:28 +0900 (Tue, 05 Dec 2006) | 3 lines

        * cfgexpand.c (expand_one_var): Guard expand_one_stack_var by
        really_expand.

for sh-elf at least.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug rtl-optimization/30024] segfault with gcc.c-torture/compile/20000804-1.c on spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-12-11  2:46 ` kkojima at gcc dot gnu dot org
@ 2006-12-14  6:53 ` pinskia at gcc dot gnu dot org
  2007-05-29  5:38 ` pinskia at gcc dot gnu dot org
  2007-06-30  2:22 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-14  6:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-12-14 06:53 -------
The spu-elf part of this bug is not a regression, the reason why we have CDI
here is because spu-elf supports subregs of TI mode for CDI so we get that
mode.  Note the dataflow branch gets rid of this bug.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|sh-elf, spu-elf             |spu-elf
            Summary|[4.3 Regression] segfault   |segfault with gcc.c-
                   |with gcc.c-                 |torture/compile/20000804-1.c
                   |torture/compile/20000804-1.c|on spu-elf
                   |on sh-elf and spu-elf       |
   Target Milestone|4.3.0                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug rtl-optimization/30024] segfault with gcc.c-torture/compile/20000804-1.c on spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-12-14  6:53 ` [Bug rtl-optimization/30024] segfault with gcc.c-torture/compile/20000804-1.c on spu-elf pinskia at gcc dot gnu dot org
@ 2007-05-29  5:38 ` pinskia at gcc dot gnu dot org
  2007-06-30  2:22 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-29  5:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-05-29 05:38 -------
I posted a patch for this:
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01949.html


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2007-
                   |                            |05/msg01949.html
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

* [Bug rtl-optimization/30024] segfault with gcc.c-torture/compile/20000804-1.c on spu-elf
  2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-05-29  5:38 ` pinskia at gcc dot gnu dot org
@ 2007-06-30  2:22 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-30  2:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2007-06-30 02:22 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024


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

end of thread, other threads:[~2007-06-30  2:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-30  0:01 [Bug target/30024] New: [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf kkojima at gcc dot gnu dot org
2006-11-30  0:03 ` [Bug target/30024] " pinskia at physics dot uc dot edu
2006-11-30  0:03 ` [Bug target/30024] New: " Andrew Pinski
2006-11-30  0:04 ` [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf pinskia at gcc dot gnu dot org
2006-11-30  0:26 ` kkojima at gcc dot gnu dot org
2006-11-30  4:29 ` pinskia at gcc dot gnu dot org
2006-12-11  2:46 ` kkojima at gcc dot gnu dot org
2006-12-14  6:53 ` [Bug rtl-optimization/30024] segfault with gcc.c-torture/compile/20000804-1.c on spu-elf pinskia at gcc dot gnu dot org
2007-05-29  5:38 ` pinskia at gcc dot gnu dot org
2007-06-30  2:22 ` 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).