public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/34225]  New: [4.3 Regression] ICE (segfault)
@ 2007-11-25 13:41 rguenth at gcc dot gnu dot org
  2007-11-25 13:41 ` [Bug target/34225] " rguenth at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-25 13:41 UTC (permalink / raw)
  To: gcc-bugs

./cc1 -fpreprocessed main.7.min.i -quiet -O2 -fstack-protector
-fno-strict-aliasing
main.7.min.i: In function 'main':
main.7.min.i:42: warning: incompatible implicit declaration of built-in
function 'strlen'
main.7.min.i:58: warning: incompatible implicit declaration of built-in
function 'sscanf'
main.7.min.i:74: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.


-- 
           Summary: [4.3 Regression] ICE (segfault)
           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: rguenth at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault)
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
@ 2007-11-25 13:41 ` rguenth at gcc dot gnu dot org
  2007-11-25 13:57 ` rguenth at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-25 13:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-11-25 13:41 -------
Created an attachment (id=14635)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14635&action=view)
reduced testcase


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault)
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
  2007-11-25 13:41 ` [Bug target/34225] " rguenth at gcc dot gnu dot org
@ 2007-11-25 13:57 ` rguenth at gcc dot gnu dot org
  2007-11-25 18:26 ` [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191 pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-25 13:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-11-25 13:57 -------
A cross to ppc64 shows

Program received signal SIGSEGV, Segmentation fault.
0x0000000000b7ff6a in adjacent_mem_locations (insn1=0x2b2889d519b0, 
    insn2=0x2b2889ce50f0)
    at /space/rguenther/src/svn/trunk/gcc/config/rs6000/rs6000.c:18191
18191         return ((REGNO (reg0) == REGNO (reg1))
(gdb) print reg0
$1 = (rtx) 0x2b28893626e0
(gdb) print reg1
$2 = (rtx) 0x2b28893626e0
(gdb) call debug_rtx (reg0)
(reg/f:DI 1 1)

huh?

(gdb) bt
#0  0x0000000000b7ff6a in adjacent_mem_locations (insn1=0x2b2889d519b0, 
    insn2=0x2b2889ce50f0)
    at /space/rguenther/src/svn/trunk/gcc/config/rs6000/rs6000.c:18191
#1  0x0000000000b80d2a in rs6000_sched_reorder2 (dump=0x2b2889cd6840, 
    sched_verbose=0, ready=0x137e998, pn_ready=0x7fff217a7000, clock_var=26)
    at /space/rguenther/src/svn/trunk/gcc/config/rs6000/rs6000.c:18735
#2  0x0000000000d2e240 in schedule_block (target_bb=0x7fff217a7190, 
    rgn_n_insns1=62) at /space/rguenther/src/svn/trunk/gcc/haifa-sched.c:2487
#3  0x00000000008461f6 in schedule_region (rgn=0)
    at /space/rguenther/src/svn/trunk/gcc/sched-rgn.c:2815
#4  0x0000000000846598 in schedule_insns ()
    at /space/rguenther/src/svn/trunk/gcc/sched-rgn.c:2935
#5  0x0000000000846fab in rest_of_handle_sched2 ()


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
  2007-11-25 13:41 ` [Bug target/34225] " rguenth at gcc dot gnu dot org
  2007-11-25 13:57 ` rguenth at gcc dot gnu dot org
@ 2007-11-25 18:26 ` pinskia at gcc dot gnu dot org
  2007-11-25 18:50 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-25 18:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-11-25 18:26 ` [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191 pinskia at gcc dot gnu dot org
@ 2007-11-25 18:50 ` pinskia at gcc dot gnu dot org
  2007-11-25 18:51 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-25 18:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-11-25 18:50 -------
18191         return ((REGNO (reg0) == REGNO (reg1))
18192                 && (val_diff == INTVAL (MEM_SIZE (a))
18193                     || val_diff == -INTVAL (MEM_SIZE (b))));
18194       }
18195
(gdb) p a
$1 = (rtx) 0x426fca60
(gdb) p b
$2 = (rtx) 0x426fb370
(gdb) p debug_rtx(a)
(mem/c:BLK (reg/f:DI 1 1) [0 A8])
$3 = void
(gdb) p debug_rtx(b)
(mem/c:DI (plus:DI (reg/f:DI 1 1)
        (const_int 120 [0x78])) [0 argv+0 S8 A8])


Confirmed.  a does not have a mem attributes.


-- 

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         |2007-11-25 18:50:20
               date|                            |


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-11-25 18:50 ` pinskia at gcc dot gnu dot org
@ 2007-11-25 18:51 ` pinskia at gcc dot gnu dot org
  2007-11-25 18:52 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-25 18:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-11-25 18:51 -------
(insn:TI 448 79 76 2 t.c:18 (set (mem/c:BLK (reg/f:DI 1 1) [0 A8])
        (unspec:BLK [
                (mem/c:BLK (reg/f:DI 1 1) [0 A8])
            ] 5)) 542 {stack_tie} (nil))


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-11-25 18:51 ` pinskia at gcc dot gnu dot org
@ 2007-11-25 18:52 ` pinskia at gcc dot gnu dot org
  2007-11-25 20:26 ` dje at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-25 18:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-11-25 18:52 -------
#1  0x00828329 in rs6000_emit_stack_tie () at
../../gcc/config/rs6000/rs6000.c:14974
14974     emit_insn (gen_stack_tie (mem));
(gdb) l
14969   rs6000_emit_stack_tie (void)
14970   {
14971     rtx mem = gen_frame_mem (BLKmode,
14972                              gen_rtx_REG (Pmode, STACK_POINTER_REGNUM));
14973
14974     emit_insn (gen_stack_tie (mem));


that is where the stack_tie is generated.


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-11-25 18:52 ` pinskia at gcc dot gnu dot org
@ 2007-11-25 20:26 ` dje at gcc dot gnu dot org
  2007-11-26 14:45 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dje at gcc dot gnu dot org @ 2007-11-25 20:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dje at gcc dot gnu dot org  2007-11-25 20:26 -------
It is not clear that the scheduling code should be considering stack_tie for
this particular conflict.  But the stack_tie MEM probably should have some
basic attributes using set_mem_attrs_from_reg.


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-11-25 20:26 ` dje at gcc dot gnu dot org
@ 2007-11-26 14:45 ` jakub at gcc dot gnu dot org
  2007-11-26 21:15 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-26 14:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2007-11-26 14:45 -------
Created an attachment (id=14641)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14641&action=view)
gcc43-pr34225-test.patch

Reduced testcase.


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-11-26 14:45 ` jakub at gcc dot gnu dot org
@ 2007-11-26 21:15 ` jakub at gcc dot gnu dot org
  2007-11-27 15:28 ` jakub at gcc dot gnu dot org
  2007-11-27 15:52 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-26 21:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-11-25 18:50:20         |2007-11-26 21:15:44
               date|                            |


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-11-26 21:15 ` jakub at gcc dot gnu dot org
@ 2007-11-27 15:28 ` jakub at gcc dot gnu dot org
  2007-11-27 15:52 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-27 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2007-11-27 15:28 -------
Subject: Bug 34225

Author: jakub
Date: Tue Nov 27 15:28:07 2007
New Revision: 130470

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130470
Log:
        PR target/34225
        * config/rs6000/rs6000.c (adjacent_mem_locations): Don't assume
        MEM_SIZE is set on all MEMs.

        * gcc.dg/pr34225.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr34225.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191
  2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2007-11-27 15:28 ` jakub at gcc dot gnu dot org
@ 2007-11-27 15:52 ` jakub at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-27 15:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jakub at gcc dot gnu dot org  2007-11-27 15:52 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-11-27 15:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-25 13:41 [Bug target/34225] New: [4.3 Regression] ICE (segfault) rguenth at gcc dot gnu dot org
2007-11-25 13:41 ` [Bug target/34225] " rguenth at gcc dot gnu dot org
2007-11-25 13:57 ` rguenth at gcc dot gnu dot org
2007-11-25 18:26 ` [Bug target/34225] [4.3 Regression] ICE (segfault) in adjacent_mem_locations at rs6000.c:18191 pinskia at gcc dot gnu dot org
2007-11-25 18:50 ` pinskia at gcc dot gnu dot org
2007-11-25 18:51 ` pinskia at gcc dot gnu dot org
2007-11-25 18:52 ` pinskia at gcc dot gnu dot org
2007-11-25 20:26 ` dje at gcc dot gnu dot org
2007-11-26 14:45 ` jakub at gcc dot gnu dot org
2007-11-26 21:15 ` jakub at gcc dot gnu dot org
2007-11-27 15:28 ` jakub at gcc dot gnu dot org
2007-11-27 15:52 ` jakub 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).