public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26276]  New: remove condition check code BUG with -O2
@ 2006-02-14  9:05 inaoka dot kazuhiro at renesas dot com
  2006-02-14  9:08 ` [Bug c/26276] " inaoka dot kazuhiro at renesas dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-02-14  9:05 UTC (permalink / raw)
  To: gcc-bugs

This case resembles gcc.dg/20040123-1.c.


-- 
           Summary: remove condition check code BUG with -O2
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: inaoka dot kazuhiro at renesas dot com
GCC target triplet: m32r


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


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

* [Bug c/26276] remove condition check code BUG with -O2
  2006-02-14  9:05 [Bug c/26276] New: remove condition check code BUG with -O2 inaoka dot kazuhiro at renesas dot com
@ 2006-02-14  9:08 ` inaoka dot kazuhiro at renesas dot com
  2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-02-14  9:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from inaoka dot kazuhiro at renesas dot com  2006-02-14 09:08 -------
Created an attachment (id=10842)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10842&action=view)
Sample pattern

This is a sample pattern.


-- 


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


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

* [Bug c/26276] remove condition check code BUG with -O2
  2006-02-14  9:05 [Bug c/26276] New: remove condition check code BUG with -O2 inaoka dot kazuhiro at renesas dot com
  2006-02-14  9:08 ` [Bug c/26276] " inaoka dot kazuhiro at renesas dot com
  2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
@ 2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
  2006-02-14 12:24 ` [Bug target/26276] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-02-14  9:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from inaoka dot kazuhiro at renesas dot com  2006-02-14 09:10 -------
Created an attachment (id=10843)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10843&action=view)
Sample NG output

This is a sample output.
m32r-linux-gnu-gcc -S -O2 omm_kill.i

        beqz r5,.L101
        ld r5,@(12,r8)
        .balign 4
.L69:
        and3 r4,r5,#0x8
        bnez r4,.L71
        ldi r10,#-1     ; 0xffffffff
        .balign 4
                          <=== Fall through is NG!
                          Removed compare r10 with -1 and jump to .L79.
.L81:
        ld r8,@(172,r10)
        add3 r9,r10,#172
        beq r8,r9,.L83
        .balign 4
.L94:
        add3 r0,r8,#-180
        ld r5,@(120,r0)
        ld r4,@(120,r10)
        beq r5,r4,.L85
        bl oom_kill_task
        mv r12,r0
        bnez r0,.L79
        .balign 4
.L85:
        ld r8,@(r8)
        bne r8,r9,.L94
        .balign 4
.L83:
        mv r0,r10
        bl oom_kill_task
        mv r12,r0
        beqz r0,.L62
        .balign 4
.L79:
        ld24 r0,#tasklist_lock
        bl _read_unlock
        beqz r12,.L87
        mv r0,r12
        bl mmput
        bra .L87
        .balign 4
.L76:


-- 


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


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

* [Bug c/26276] remove condition check code BUG with -O2
  2006-02-14  9:05 [Bug c/26276] New: remove condition check code BUG with -O2 inaoka dot kazuhiro at renesas dot com
  2006-02-14  9:08 ` [Bug c/26276] " inaoka dot kazuhiro at renesas dot com
@ 2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
  2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
  2006-02-14 12:24 ` [Bug target/26276] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-02-14  9:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from inaoka dot kazuhiro at renesas dot com  2006-02-14 09:10 -------
Created an attachment (id=10844)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10844&action=view)
Sample NG output

This is a sample output.
m32r-linux-gnu-gcc -S -O2 omm_kill.i

        beqz r5,.L101
        ld r5,@(12,r8)
        .balign 4
.L69:
        and3 r4,r5,#0x8
        bnez r4,.L71
        ldi r10,#-1     ; 0xffffffff
        .balign 4
                          <=== Fall through is NG!
                          Removed compare r10 with -1 and jump to .L79.
.L81:
        ld r8,@(172,r10)
        add3 r9,r10,#172
        beq r8,r9,.L83
        .balign 4
.L94:
        add3 r0,r8,#-180
        ld r5,@(120,r0)
        ld r4,@(120,r10)
        beq r5,r4,.L85
        bl oom_kill_task
        mv r12,r0
        bnez r0,.L79
        .balign 4
.L85:
        ld r8,@(r8)
        bne r8,r9,.L94
        .balign 4
.L83:
        mv r0,r10
        bl oom_kill_task
        mv r12,r0
        beqz r0,.L62
        .balign 4
.L79:
        ld24 r0,#tasklist_lock
        bl _read_unlock
        beqz r12,.L87
        mv r0,r12
        bl mmput
        bra .L87
        .balign 4
.L76:


-- 


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


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

* [Bug target/26276] remove condition check code BUG with -O2
  2006-02-14  9:05 [Bug c/26276] New: remove condition check code BUG with -O2 inaoka dot kazuhiro at renesas dot com
                   ` (2 preceding siblings ...)
  2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
@ 2006-02-14 12:24 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-14 12:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

end of thread, other threads:[~2006-02-14 12:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14  9:05 [Bug c/26276] New: remove condition check code BUG with -O2 inaoka dot kazuhiro at renesas dot com
2006-02-14  9:08 ` [Bug c/26276] " inaoka dot kazuhiro at renesas dot com
2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
2006-02-14  9:10 ` inaoka dot kazuhiro at renesas dot com
2006-02-14 12:24 ` [Bug target/26276] " 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).