public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/25180]  New: ICE during kernel build.
@ 2005-11-30 12:55 pluto at agmk dot net
  2005-11-30 13:03 ` [Bug other/25180] " pluto at agmk dot net
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: pluto at agmk dot net @ 2005-11-30 12:55 UTC (permalink / raw)
  To: gcc-bugs

gcc-4.1.0-20051126 rev 107546

[builder2@forge linux-2.6.14.3]$ gcc attrib.i -c -O2
fs/ntfs/attrib.c: In function 'ntfs_attr_lookup':
fs/ntfs/attrib.c:1025: internal compiler error: Segmentation fault

$ gcc -v
Reading specs from /usr/lib/gcc/ppc-pld-linux/4.1.0/specs
Target: ppc-pld-linux
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man
--x-libraries=/usr/X11R6/lib --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-languages=c,c++,f95,objc,obj-c++,ada,java
--enable-c99 --enable-long-long --disable-multilib --enable-nls
--disable-werror --with-gnu-as --with-gnu-ld --with-demangler-in-ld
--with-system-zlib --with-slibdir=/lib --without-x --enable-cmath
--enable-libgcj --enable-libgcj-multifile --enable-libgcj-database
--enable-gtk-peer --enable-gtk-cairo --enable-jni --enable-xmlj --enable-alsa
--enable-dssi ppc-pld-linux
Thread model: posix
gcc version 4.1.0 20051126 (prerelease)


-- 
           Summary: ICE during kernel build.
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: ppc-linux
  GCC host triplet: ppc-linux
GCC target triplet: ppc-linux


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


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

* [Bug other/25180] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
@ 2005-11-30 13:03 ` pluto at agmk dot net
  2005-11-30 13:10 ` pluto at agmk dot net
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pluto at agmk dot net @ 2005-11-30 13:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2005-11-30 13:03 -------
Created an attachment (id=10365)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10365&action=view)
testcase


-- 


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


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

* [Bug other/25180] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
  2005-11-30 13:03 ` [Bug other/25180] " pluto at agmk dot net
@ 2005-11-30 13:10 ` pluto at agmk dot net
  2005-11-30 13:44 ` [Bug target/25180] [4.1 Regression] " rguenth at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pluto at agmk dot net @ 2005-11-30 13:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pluto at agmk dot net  2005-11-30 13:10 -------
Program received signal SIGSEGV, Segmentation fault.

(gdb) bt
#0  gen_peephole2_993 (curr_insn=Variable "curr_insn" is not available.)
    at rs6000.md:10847
#1  0x1020341c in peephole2_insns (x0=Variable "x0" is not available.)
    at rs6000.md:10838
#2  0x1026ac90 in peephole2_optimize (dump_file=Variable "dump_file"
    is not available.) at recog.c:3108
#3  0x102d5db4 in execute_one_pass (pass=0x1055f584) at passes.c:828
#4  0x102d5ebc in execute_pass_list (pass=0x1055f584) at passes.c:860
#5  0x102d5ed4 in execute_pass_list (pass=0x1055fda4) at passes.c:861
#6  0x102d5ed4 in execute_pass_list (pass=0x1055fd70) at passes.c:861
#7  0x1006a424 in tree_rest_of_compilation (fndecl=0x3057bb00)
    at tree-optimize.c:419
#8  0x1000b2bc in c_expand_body (fndecl=0x3057bb00) at c-decl.c:6641
#9  0x103199f0 in cgraph_expand_function (node=0x306148c0)
    at cgraphunit.c:1055
#10 0x1031a344 in cgraph_optimize () at cgraphunit.c:1121
#11 0x100115cc in c_write_global_declarations () at c-decl.c:7649
#12 0x102b0958 in toplev_main (argc=Variable "argc" is not available.)
    at toplev.c:1003
#13 0x100581d8 in main (argc=Variable "argc" is not available.)
    at main.c:35


-- 


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
  2005-11-30 13:03 ` [Bug other/25180] " pluto at agmk dot net
  2005-11-30 13:10 ` pluto at agmk dot net
@ 2005-11-30 13:44 ` rguenth at gcc dot gnu dot org
  2005-11-30 13:49 ` rguenth at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-11-30 13:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2005-11-30 13:44 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|other                       |target
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-30 13:44:11
               date|                            |
            Summary|ICE during kernel build.    |[4.1 Regression] ICE during
                   |                            |kernel build.
   Target Milestone|---                         |4.1.0


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2005-11-30 13:44 ` [Bug target/25180] [4.1 Regression] " rguenth at gcc dot gnu dot org
@ 2005-11-30 13:49 ` rguenth at gcc dot gnu dot org
  2005-11-30 14:10 ` rguenth at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-11-30 13:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2005-11-30 13:49 -------
(reducing)


-- 


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (3 preceding siblings ...)
  2005-11-30 13:49 ` rguenth at gcc dot gnu dot org
@ 2005-11-30 14:10 ` rguenth at gcc dot gnu dot org
  2005-11-30 15:29 ` [Bug target/25180] [4.1/4.2 " pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-11-30 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2005-11-30 14:10 -------
Created an attachment (id=10367)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10367&action=view)
reduced testcase

reduced testcase.


-- 


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


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

* [Bug target/25180] [4.1/4.2 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (4 preceding siblings ...)
  2005-11-30 14:10 ` rguenth at gcc dot gnu dot org
@ 2005-11-30 15:29 ` pinskia at gcc dot gnu dot org
  2005-11-30 15:31 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 15:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-11-30 15:29 -------
Caused by:
2005-08-23  Paolo Bonzini  <bonzini@gnu.org>

        * config/rs6000/predicates.md (equality_operator): New.
        * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
        comparison with a large constant.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gnu dot org


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


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

* [Bug target/25180] [4.1/4.2 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (5 preceding siblings ...)
  2005-11-30 15:29 ` [Bug target/25180] [4.1/4.2 " pinskia at gcc dot gnu dot org
@ 2005-11-30 15:31 ` pinskia at gcc dot gnu dot org
  2005-11-30 16:11 ` bonzini at gnu dot org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 15:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2005-11-30 15:31 -------
The peephole2 has logical_operand which means it accepts register so
simplify_const_binary_operation will fail as we have a register here and not
just an int.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.0.3


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


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

* [Bug target/25180] [4.1/4.2 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (6 preceding siblings ...)
  2005-11-30 15:31 ` pinskia at gcc dot gnu dot org
@ 2005-11-30 16:11 ` bonzini at gnu dot org
  2005-11-30 17:36 ` bonzini at gnu dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bonzini at gnu dot org @ 2005-11-30 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from bonzini at gnu dot org  2005-11-30 16:11 -------
Reduced testcase:

typedef unsigned long long u64;
extern u64 f (u64 x);
int g (unsigned x, u64 *z)
{
  u64 w = *z;
  u64 h = f (w) << 32;
  u64 l = f (w);
  u64 g = h | l;
  unsigned p = g;
  if (p == x)
    f (*z);
}


-- 


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


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

* [Bug target/25180] [4.1/4.2 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (7 preceding siblings ...)
  2005-11-30 16:11 ` bonzini at gnu dot org
@ 2005-11-30 17:36 ` bonzini at gnu dot org
  2005-12-01 15:54 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bonzini at gnu dot org @ 2005-11-30 17:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from bonzini at gnu dot org  2005-11-30 17:36 -------
Created an attachment (id=10369)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10369&action=view)
proposed patch

This patch enables the peephole2 only if operands[1] and operands[2] are
constant.  

An alternative patch would add a check for CONSTANT_P (operands[1]) &&
CONSTANT_P (operands[2]) in the peephole's C code.


-- 


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


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

* [Bug target/25180] [4.1/4.2 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (8 preceding siblings ...)
  2005-11-30 17:36 ` bonzini at gnu dot org
@ 2005-12-01 15:54 ` rguenth at gcc dot gnu dot org
  2005-12-05 17:21 ` [Bug target/25180] [4.1 " bonzini at gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-12-01 15:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2005-12-01 15:54 -------
Assigning to bonzini by request.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bonzini at gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (9 preceding siblings ...)
  2005-12-01 15:54 ` rguenth at gcc dot gnu dot org
@ 2005-12-05 17:21 ` bonzini at gnu dot org
  2005-12-18 15:55 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bonzini at gnu dot org @ 2005-12-05 17:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from bonzini at gnu dot org  2005-12-05 17:21 -------
Patch applied to mainline.  I will ask for 4.1 approval in a few days, most
likely at the beginning of next week.


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.1.0 4.2.0                 |4.1.0
      Known to work|4.0.3                       |4.0.3 4.2.0
            Summary|[4.1/4.2 Regression] ICE    |[4.1 Regression] ICE during
                   |during kernel build.        |kernel build.


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (10 preceding siblings ...)
  2005-12-05 17:21 ` [Bug target/25180] [4.1 " bonzini at gnu dot org
@ 2005-12-18 15:55 ` steven at gcc dot gnu dot org
  2005-12-19 14:24 ` bonzini at gnu dot org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-12-18 15:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from steven at gcc dot gnu dot org  2005-12-18 15:55 -------
Paolo, are you going to ask for approval for GCC 4.1 too?


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
   Last reconfirmed|2005-11-30 13:44:11         |2005-12-18 15:55:36
               date|                            |


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (11 preceding siblings ...)
  2005-12-18 15:55 ` steven at gcc dot gnu dot org
@ 2005-12-19 14:24 ` bonzini at gnu dot org
  2005-12-19 15:32 ` dje at watson dot ibm dot com
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bonzini at gnu dot org @ 2005-12-19 14:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from bonzini at gnu dot org  2005-12-19 14:24 -------
David, ok to commit to 4.1 now?


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu dot org


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (12 preceding siblings ...)
  2005-12-19 14:24 ` bonzini at gnu dot org
@ 2005-12-19 15:32 ` dje at watson dot ibm dot com
  2005-12-19 17:46 ` bonzini at gcc dot gnu dot org
  2005-12-19 17:46 ` bonzini at gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: dje at watson dot ibm dot com @ 2005-12-19 15:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from dje at watson dot ibm dot com  2005-12-19 15:32 -------
Subject: Re:  [4.1 Regression] ICE during kernel build. 

Okay.


-- 


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (13 preceding siblings ...)
  2005-12-19 15:32 ` dje at watson dot ibm dot com
@ 2005-12-19 17:46 ` bonzini at gcc dot gnu dot org
  2005-12-19 17:46 ` bonzini at gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-12-19 17:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from bonzini at gnu dot org  2005-12-19 17:46 -------
patch committed to 4.1 branch as well.


------- Comment #16 from bonzini at gnu dot org  2005-12-19 17:46 -------
Subject: Bug 25180

Author: bonzini
Date: Mon Dec 19 17:46:15 2005
New Revision: 108799

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108799
Log:
2005-12-19  Paolo Bonzini  <bonzini@gnu.org>

        PR target/25180
        * config/rs6000/predicates.md (logical_const_operand): Split
        out of logical_operand.
        (logical_operand): Use it.
        * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
        logical_const_operand.


Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/config/rs6000/predicates.md
    branches/gcc-4_1-branch/gcc/config/rs6000/rs6000.md


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug target/25180] [4.1 Regression] ICE during kernel build.
  2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
                   ` (14 preceding siblings ...)
  2005-12-19 17:46 ` bonzini at gcc dot gnu dot org
@ 2005-12-19 17:46 ` bonzini at gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: bonzini at gnu dot org @ 2005-12-19 17:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from bonzini at gnu dot org  2005-12-19 17:46 -------
patch committed to 4.1 branch as well.


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2005-12-19 17:46 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 12:55 [Bug other/25180] New: ICE during kernel build pluto at agmk dot net
2005-11-30 13:03 ` [Bug other/25180] " pluto at agmk dot net
2005-11-30 13:10 ` pluto at agmk dot net
2005-11-30 13:44 ` [Bug target/25180] [4.1 Regression] " rguenth at gcc dot gnu dot org
2005-11-30 13:49 ` rguenth at gcc dot gnu dot org
2005-11-30 14:10 ` rguenth at gcc dot gnu dot org
2005-11-30 15:29 ` [Bug target/25180] [4.1/4.2 " pinskia at gcc dot gnu dot org
2005-11-30 15:31 ` pinskia at gcc dot gnu dot org
2005-11-30 16:11 ` bonzini at gnu dot org
2005-11-30 17:36 ` bonzini at gnu dot org
2005-12-01 15:54 ` rguenth at gcc dot gnu dot org
2005-12-05 17:21 ` [Bug target/25180] [4.1 " bonzini at gnu dot org
2005-12-18 15:55 ` steven at gcc dot gnu dot org
2005-12-19 14:24 ` bonzini at gnu dot org
2005-12-19 15:32 ` dje at watson dot ibm dot com
2005-12-19 17:46 ` bonzini at gcc dot gnu dot org
2005-12-19 17:46 ` bonzini at 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).