public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40468]  New: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution,  -Os
@ 2009-06-16 23:38 danglin at gcc dot gnu dot org
  2009-06-17  1:15 ` [Bug target/40468] " danglin at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-06-16 23:38 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /home/dave/gnu/gcc-4.5/objdir/gcc/xgcc
-B/home/dave/gnu/gcc-4.5/objdir/gcc/
/home/dave/gnu/gcc-4.5/gcc/gcc/testsuite/gcc.c-torture/execute/20061031-1.c  -w
 -Os   -lm   -o /home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/2
0061031-1.x7    (timeout = 300)
PASS: gcc.c-torture/execute/20061031-1.c compilation,  -Os Setting
LD_LIBRARY_PATH to
:/home/dave/gnu/gcc-4.5/objdir/gcc::/home/dave/gnu/gcc-4.5/objdir/gcc:/home/dave/gnu/gcc-4.5/objdir/hppa-linux/libstdc++-v3/.libs:/home/dave/gnu/gcc-4.5/objdir/hppa-linux/libmudflap/.libs:/home/dave/gnu/gcc-4.5/objdir/hppa-linux/libssp/.libs:/home/dave/gnu/gcc-4.5/objdir/hppa-linux/libgomp/.l
ibs:/home/dave/gnu/gcc-4.5/objdir/./gcc:/home/dave/gnu/gcc-4.5/objdir/./prev-gcc
FAIL: gcc.c-torture/execute/20061031-1.c execution,  -Os 

dave@hiauly6:~/gnu/gcc-4.5/objdir/gcc$ ./xgcc -B./ -v
Reading specs from ./specs
Target: hppa-linux
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared
--prefix=/home/dave/opt/gnu/gcc/gcc-4.4.0
--with-local-prefix=/home/dave/opt/gnu --enable-threads=posix
--enable-__cxa_atexit --build=hppa-linux --enable-clocale=gnu
--enable-java-gc=boehm --enable-java-awt=xlib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
Thread model: posix
gcc version 4.5.0 20090616 (experimental) [trunk revision 148510] (GCC) 

The problem is the following assembly code:

0x000104e4 <f+56>:      cmpb,<>,n ret0,r19,0x104e8 <f+60>
0x000104e8 <f+60>:      b,l 0x104a8 <ff>,rp
0x000104ec <f+64>:      ldi 1,r26

This is not supposed to happen:

  /* A conditional branch to the following instruction (e.g. the delay slot)
     is asking for a disaster.  This can happen when not optimizing and
     when jump optimization fails.

     While it is usually safe to emit nothing, this can fail if the
     preceding instruction is a nullified branch with an empty delay
     slot and the same branch target as this branch.  We could check
     for this but jump optimization should eliminate nop jumps.  It
     is always safe to emit a nop.  */
  if (next_real_insn (JUMP_LABEL (insn)) == next_real_insn (insn))
    return "nop";


-- 
           Summary: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-
                    1.c execution,  -Os
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        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=40468


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

* [Bug target/40468] [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution,  -Os
  2009-06-16 23:38 [Bug target/40468] New: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution, -Os danglin at gcc dot gnu dot org
@ 2009-06-17  1:15 ` danglin at gcc dot gnu dot org
  2009-06-17 15:02 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-06-17  1:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from danglin at gcc dot gnu dot org  2009-06-17 01:15 -------
The rtl looks like this:

(gdb) p debug_rtx_list (insn, 10)
(jump_insn:TI 18 16 19
/home/dave/gnu/gcc-4.5/gcc/gcc/testsuite/gcc.c-torture/execute/20061031-1.c:19
(set (pc)
        (if_then_else (ne (reg:SI 19 %r19 [109])
                (reg:SI 28 %r28 [111]))
            (label_ref 21)
            (pc))) 25 {*pa.md:1329} (expr_list:REG_BR_PRED (const_int 5 [0x5])
        (expr_list:REG_DEAD (reg:SI 28 %r28 [111])
            (expr_list:REG_DEAD (reg:SI 19 %r19 [109])
                (expr_list:REG_EQUAL (if_then_else (ne (reg:SI 19 %r19 [109])
                            (const_int 17 [0x11]))
                        (label_ref 21)
                        (pc))
                    (expr_list:REG_BR_PROB (const_int 7200 [0x1c20])
                        (nil)))))))

(note 19 18 20 [bb 3] NOTE_INSN_BASIC_BLOCK)

(insn:TI 20 19 21
/home/dave/gnu/gcc-4.5/gcc/gcc/testsuite/gcc.c-torture/execute/20061031-1.c:20
(asm_input/v ("") 2518) -1 (nil))

(code_label 21 20 22 3 "" [1 uses])

(note 22 21 63 [bb 4] NOTE_INSN_BASIC_BLOCK)

(insn 63 22 25
/home/dave/gnu/gcc-4.5/gcc/gcc/testsuite/gcc.c-torture/execute/20061031-1.c:18
(sequence [
            (call_insn:TI 24 22 23
/home/dave/gnu/gcc-4.5/gcc/gcc/testsuite/gcc.c-torture/execute/20061031-1.c:18
(parallel [
                        (call (mem:SI (symbol_ref/v:SI ("@ff") [flags 0x203]
<function_decl 0x40185400 ff>) [0 S4 A32])
                            (const_int 16 [0x10]))
                        (clobber (reg:SI 1 %r1))
                        (clobber (reg:SI 2 %r2))
                        (use (const_int 0 [0x0]))
                    ]) 206 {call_symref} (expr_list:REG_DEAD (reg:SI 26 %r26)
                    (expr_list:REG_EH_REGION (const_int 0 [0x0])
                        (nil)))
                (expr_list:REG_DEP_TRUE (use (reg:SI 26 %r26))
                    (nil)))
            (insn:TI 23 24 25 (set (reg:SI 26 %r26)
                    (const_int 1 [0x1])) 37 {*pa.md:2101} (nil))
        ]) -1 (nil))


-- 


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


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

* [Bug target/40468] [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution,  -Os
  2009-06-16 23:38 [Bug target/40468] New: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution, -Os danglin at gcc dot gnu dot org
  2009-06-17  1:15 ` [Bug target/40468] " danglin at gcc dot gnu dot org
@ 2009-06-17 15:02 ` jsm28 at gcc dot gnu dot org
  2009-06-26  0:41 ` danglin at gcc dot gnu dot org
  2009-06-26  1:01 ` danglin at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-06-17 15:02 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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


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

* [Bug target/40468] [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution,  -Os
  2009-06-16 23:38 [Bug target/40468] New: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution, -Os danglin at gcc dot gnu dot org
  2009-06-17  1:15 ` [Bug target/40468] " danglin at gcc dot gnu dot org
  2009-06-17 15:02 ` jsm28 at gcc dot gnu dot org
@ 2009-06-26  0:41 ` danglin at gcc dot gnu dot org
  2009-06-26  1:01 ` danglin at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-06-26  0:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from danglin at gcc dot gnu dot org  2009-06-26 00:41 -------
Subject: Bug 40468

Author: danglin
Date: Fri Jun 26 00:40:55 2009
New Revision: 148959

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148959
Log:
        PR target/40468
        * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
        (output_cbranch): Use new functions.
        (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
        Likewise.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/pa.c


-- 


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


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

* [Bug target/40468] [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution,  -Os
  2009-06-16 23:38 [Bug target/40468] New: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution, -Os danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-06-26  0:41 ` danglin at gcc dot gnu dot org
@ 2009-06-26  1:01 ` danglin at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-06-26  1:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from danglin at gcc dot gnu dot org  2009-06-26 01:01 -------
Fixed.


-- 

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=40468


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

end of thread, other threads:[~2009-06-26  1:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-16 23:38 [Bug target/40468] New: [4.5 Regression] FAIL: gcc.c-torture/execute/20061031-1.c execution, -Os danglin at gcc dot gnu dot org
2009-06-17  1:15 ` [Bug target/40468] " danglin at gcc dot gnu dot org
2009-06-17 15:02 ` jsm28 at gcc dot gnu dot org
2009-06-26  0:41 ` danglin at gcc dot gnu dot org
2009-06-26  1:01 ` 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).