public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2003-05-15 18:46 Daniel Jacobowitz
  0 siblings, 0 replies; 11+ messages in thread
From: Daniel Jacobowitz @ 2003-05-15 18:46 UTC (permalink / raw)
  To: rearnsha; +Cc: gcc-prs

The following reply was made to PR optimization/8896; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@mvista.com>
To: Richard Earnshaw <rearnsha@arm.com>
Cc: gcc-gnats@gcc.gnu.org, enrico.scholz@informatik.tu-chemnitz.de,
	gcc-bugs@gcc.gnu.org
Subject: Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
Date: Thu, 15 May 2003 14:36:28 -0400

 On Thu, Dec 12, 2002 at 03:14:52PM +0000, Richard Earnshaw wrote:
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896
 > 
 > I've attached what I believe to be the fix to the above PR.  It would be 
 > helpful if you could give it a whirl.
 
 I've added an updated testcase (produced after much labor by Russell
 King) which shows the problem in 3.2.3.  The testcase is extremely
 delicate.  It doesn't show the problem in 3.3 or HEAD, but I wouldn't
 be at all surprised if the problem was still there.  Making a
 testcase to show it is beyond me though.
 
 For the curious, here's a diff of the first differing dump with and
 without Richard's patch, using the 3.2 CVS branch.  It fails using
 only "-march=armv4 -O2".
 
 --- 32.s.22.postreload	2003-05-15 14:29:58.000000000 -0400
 +++ 32p.s.22.postreload	2003-05-15 14:29:59.000000000 -0400
 @@ -155,18 +155,25 @@
  (note 79 843 95 NOTE_INSN_DELETED)
  
  (insn 95 79 107 (set (reg/v:SI 11 fp [47])
 -        (const_int 2 [0x2])) 175 {*arm_movsi_insn} (insn_list:REG_DEP_ANTI 79 (nil))
 -    (nil))
 +        (const_int 1 [0x1])) 175 {*arm_movsi_insn} (insn_list:REG_DEP_ANTI 79 (nil))
 +    (expr_list:REG_EQUAL (const_int 1 [0x1])
 +        (nil)))
 +
 +(note 107 95 117 NOTE_INSN_DELETED)
  
 -(note 107 95 129 NOTE_INSN_DELETED)
 +(insn 117 107 129 (set (reg/v:SI 11 fp [47])
 +        (plus:SI (reg/v:SI 11 fp [47])
 +            (reg/f:SI 11 fp))) 4 {*arm_addsi3} (insn_list:REG_DEP_ANTI 107 (insn_list 95 (nil)))
 +    (expr_list:REG_EQUAL (const_int 2 [0x2])
 +        (nil)))
  
 -(note 129 107 135 NOTE_INSN_DELETED)
 +(note 129 117 135 NOTE_INSN_DELETED)
  
  (note 135 129 137 NOTE_INSN_DELETED)
  
  (insn 137 135 141 (set (reg/v:SI 11 fp [47])
          (plus:SI (reg/v:SI 11 fp [47])
 -            (reg/f:SI 11 fp))) 4 {*arm_addsi3} (insn_list:REG_DEP_ANTI 129 (insn_list 117 (nil)))
 +            (const_int 1 [0x1]))) 4 {*arm_addsi3} (insn_list:REG_DEP_ANTI 129 (insn_list 117 (nil)))
      (expr_list:REG_EQUAL (const_int 3 [0x3])
          (nil)))
  
 @@ -177,7 +184,7 @@
  
  (insn 197 141 221 (set (reg/v:SI 11 fp [47])
          (plus:SI (reg/v:SI 11 fp [47])
 -            (const_int 2 [0x2]))) 4 {*arm_addsi3} (insn_list:REG_DEP_ANTI 141 (insn_list:REG_DEP_OUTPUT 137 (insn_list 135 (nil))))
 +            (const_int 3 [0x3]))) 4 {*arm_addsi3} (insn_list:REG_DEP_ANTI 141 (insn_list:REG_DEP_OUTPUT 137 (insn_list 135 (nil))))
      (expr_list:REG_EQUAL (const_int 6 [0x6])
          (nil)))
  
 
 
 -- 
 Daniel Jacobowitz
 MontaVista Software                         Debian GNU/Linux Developer


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2003-05-14 17:46 Dara Hazeghi
  0 siblings, 0 replies; 11+ messages in thread
From: Dara Hazeghi @ 2003-05-14 17:46 UTC (permalink / raw)
  To: rearnsha; +Cc: gcc-prs

The following reply was made to PR optimization/8896; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, rearnsha@gcc.gnu.org
Cc: enrico.scholz@informatik.tu-chemnitz.de
Subject: Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
Date: Wed, 14 May 2003 10:44:01 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=8896
 
 Hello,
 
 this PR has a patch that seems not to have been applied yet. Is this  
 the case? Richard, would it be possible try to get this patch reviewed  
 and checked in soon? Thanks,
 
 Dara
 


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2003-03-22 13:54 steven
  0 siblings, 0 replies; 11+ messages in thread
From: steven @ 2003-03-22 13:54 UTC (permalink / raw)
  To: enrico.scholz, gcc-bugs, gcc-prs, rearnsha

Synopsis: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code

State-Changed-From-To: closed->analyzed
State-Changed-By: steven
State-Changed-When: Sat Mar 22 13:54:13 2003
State-Changed-Why:
    The patch was never commited.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2'  generates wrong code
@ 2003-03-22 13:36 Richard Earnshaw
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Earnshaw @ 2003-03-22 13:36 UTC (permalink / raw)
  To: rearnsha; +Cc: gcc-prs

The following reply was made to PR optimization/8896; it has been noted by GNATS.

From: Richard Earnshaw <rearnsha@arm.com>
To: steven@gcc.gnu.org, enrico.scholz@informatik.tu-chemnitz.de,
        gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, rearnsha@gcc.gnu.org,
        gcc-gnats@gcc.gnu.org
Cc: Richard.Earnshaw@arm.com
Subject: Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' 
 generates wrong code
Date: Sat, 22 Mar 2003 13:28:25 +0000

 > Synopsis: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
 > 
 > State-Changed-From-To: analyzed->closed
 > State-Changed-By: steven
 > State-Changed-When: Sat Mar 22 10:05:37 2003
 > State-Changed-Why:
 >     Fixed according to reporter.  Richard Earnshaw posted a patch for this months ago -- apparently without mentioning the PR in the ChangeLog.
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896
 
 That's 'cos I never got around to committing the patch...
 
 R.
 


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2003-03-22 13:36 Steven Bosscher
  0 siblings, 0 replies; 11+ messages in thread
From: Steven Bosscher @ 2003-03-22 13:36 UTC (permalink / raw)
  To: rearnsha; +Cc: gcc-prs

The following reply was made to PR optimization/8896; it has been noted by GNATS.

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: Richard.Earnshaw@arm.com
Cc: steven@gcc.gnu.org, enrico.scholz@informatik.tu-chemnitz.de,
	gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, rearnsha@gcc.gnu.org,
	gcc-gnats@gcc.gnu.org
Subject: Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2'
	generates wrong code
Date: 22 Mar 2003 14:33:14 +0100

 Op za 22-03-2003, om 14:28 schreef Richard Earnshaw:
 > > Synopsis: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
 > > 
 > > State-Changed-From-To: analyzed->closed
 > > State-Changed-By: steven
 > > State-Changed-When: Sat Mar 22 10:05:37 2003
 > > State-Changed-Why:
 > >     Fixed according to reporter.  Richard Earnshaw posted a patch for this months ago -- apparently without mentioning the PR in the ChangeLog.
 > > 
 > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896
 > 
 > That's 'cos I never got around to committing the patch...
 > 
 > R.
 
 Ah, that explains why I couldn't find the PR in the ChangeLog.
 Should I re-open the PR?
 
 Greetz
 Steven
 
 


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2003-03-22 10:05 steven
  0 siblings, 0 replies; 11+ messages in thread
From: steven @ 2003-03-22 10:05 UTC (permalink / raw)
  To: enrico.scholz, gcc-bugs, gcc-prs, rearnsha

Synopsis: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code

State-Changed-From-To: analyzed->closed
State-Changed-By: steven
State-Changed-When: Sat Mar 22 10:05:37 2003
State-Changed-Why:
    Fixed according to reporter.  Richard Earnshaw posted a patch for this months ago -- apparently without mentioning the PR in the ChangeLog.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2002-12-16 10:06 Enrico Scholz
  0 siblings, 0 replies; 11+ messages in thread
From: Enrico Scholz @ 2002-12-16 10:06 UTC (permalink / raw)
  To: rearnsha; +Cc: gcc-prs

The following reply was made to PR optimization/8896; it has been noted by GNATS.

From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   enrico.scholz@informatik.tu-chemnitz.de, gcc-bugs@gcc.gnu.org,
   rearnsha@gcc.gnu.org
Cc:  
Subject: Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
Date: 16 Dec 2002 18:59:14 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896
 
 The patch fixes the testcase, the kernel is running fine with it
 and I have not seen other/new errors since using it.
 
 
 Thanks for the fast fix
 Enrico


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2002-12-12  7:16 Richard Earnshaw
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Earnshaw @ 2002-12-12  7:16 UTC (permalink / raw)
  To: rearnsha; +Cc: gcc-prs

The following reply was made to PR optimization/8896; it has been noted by GNATS.

From: Richard Earnshaw <rearnsha@arm.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
        enrico.scholz@informatik.tu-chemnitz.de, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates
 wrong code
Date: Thu, 12 Dec 2002 15:14:52 +0000

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896
 
 I've attached what I believe to be the fix to the above PR.  It would be 
 helpful if you could give it a whirl.
 
 R.
 


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2002-12-12  7:03 rearnsha
  0 siblings, 0 replies; 11+ messages in thread
From: rearnsha @ 2002-12-12  7:03 UTC (permalink / raw)
  To: enrico.scholz, gcc-bugs, gcc-prs, nobody, rearnsha

Synopsis: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code

Responsible-Changed-From-To: unassigned->rearnsha
Responsible-Changed-By: rearnsha
Responsible-Changed-When: Thu Dec 12 07:03:41 2002
Responsible-Changed-Why:
    .

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896


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

* Re: optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2002-12-11  9:57 rearnsha
  0 siblings, 0 replies; 11+ messages in thread
From: rearnsha @ 2002-12-11  9:57 UTC (permalink / raw)
  To: enrico.scholz, gcc-bugs, gcc-prs, nobody

Synopsis: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code

State-Changed-From-To: open->analyzed
State-Changed-By: rearnsha
State-Changed-When: Wed Dec 11 09:57:33 2002
State-Changed-Why:
    Confirmed.  The same bug does not occur with the latest compiler, but I think that's because an earlier pass of the compiler has optimized the problem away before it trips the bug.  
    
    Initial investigation suggests this is a problem with reload_combine().

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8896


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

* optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
@ 2002-12-10 15:46 enrico.scholz
  0 siblings, 0 replies; 11+ messages in thread
From: enrico.scholz @ 2002-12-10 15:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8896
>Category:       optimization
>Synopsis:       '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 10 15:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Enrico Scholz
>Release:        gcc-3.2.1
>Organization:
>Environment:
Reading specs from /usr/lib/gcc-lib/arm-linux/3.2.1/specs
Configured with: ../configure --host=i386-redhat-linux --target=arm-linux --prefix=/usr --mandir=/usr/share/man --disable-checking --with-cpu=strongarm1100 --enable-languages=c
Thread model: posix
gcc version 3.2.1
>Description:
The arm-linux-gcc miscompiles XScale linux-kernels (the attached testcase is derived from fs/binfmt_elf.c of linux-2.5.49 + various ARM patches).

Because of other environment-problems, I do not have a complete test-program, but the miscompilation is visible in the disassembled .o-file. The interesting code is:

 ---- objdump -d binfmt_elf.o
  70:   e3a04002        mov     r4, #2  ; 0x2
  7c:   e0844004        add     r4, r4, r4
  84:   e1a0e004        mov     lr, r4
  e0:   e50be0b0        str     lr, [fp, -#176]


These statements are the result of:

|  60          elf_info[ei_index++] =  3; ...

which is wrong. Other ELF-tags are incorrect too, but this is the most obvious one.
>How-To-Repeat:
Compile the testprogram with

| arm-linux-gcc -O2 -fno-strict-aliasing -mcpu=xscale -c binfmt_elf.c

Watch the output with 'objdump -d binfmt_elf.o'
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="binfmt_elf.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="binfmt_elf.c"

dHlwZWRlZiBzdHJ1Y3QgZWxmMzJfaGRyewogIHVuc2lnbmVkIGludCBlX2VudHJ5OwogIHVuc2ln
bmVkIGludCBlX3Bob2ZmOwogIHVuc2lnbmVkIHNob3J0IGVfcGhudW07Cn0gRWxmMzJfRWhkcjsK
CmV4dGVybiB1bnNpZ25lZCBpbnQgZWxmX2h3Y2FwOwpleHRlcm4gY2hhciBlbGZfcGxhdGZvcm1b
XTsKCnN0cnVjdCBsaW51eF9iaW5wcm17CiAgICAgICAgdW5zaWduZWQgbG9uZyBwOwogICAgICAg
IGludCBhcmdjLCBlbnZjOwp9OwoKc3RydWN0IHRhc2tfc3RydWN0IHsKICAgICAgICB1bnNpZ25l
ZCBpbnQgdWlkLGV1aWQ7CiAgICAgICAgdW5zaWduZWQgaW50IGdpZCxlZ2lkOwp9OwoKc3RydWN0
IHRocmVhZF9pbmZvIHsKICAgICAgICBzdHJ1Y3QgdGFza19zdHJ1Y3QgKnRhc2s7Cn07CgpzdGF0
aWMgaW5saW5lIHN0cnVjdCB0aHJlYWRfaW5mbyAqY3VycmVudF90aHJlYWRfaW5mbyh2b2lkKQp7
CiAgICAgICAgcmVnaXN0ZXIgdW5zaWduZWQgbG9uZyBzcCBhc20gKCJzcCIpOwogICAgICAgIHJl
dHVybiAoc3RydWN0IHRocmVhZF9pbmZvICopKHNwICYgfjB4MWZmZik7Cn0KCnN0YXRpYyBpbmxp
bmUgc3RydWN0IHRhc2tfc3RydWN0ICpnZXRfY3VycmVudCh2b2lkKQp7I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5zaWduZWQgbG9uZykgKGdldF9jdXJyZW50
KCkpLT5lZ2lkOwogICAgICAgIGlmIChrX3BsYXRmb3JtKSB7CiAgICAgICAgICAgICAgICBlbGZf
aW5mb1tlaV9pbmRleCsrXSA9IDE1OyBlbGZfaW5mb1tlaV9pbmRleCsrXSA9ICh1bnNpZ25lZCBs
b25nKShsb25nKXVfcGxhdGZvcm07CiAgICAgICAgfQogICAgICAgIGVsZl9pbmZvW2VpX2luZGV4
KytdID0gIDA7IGVsZl9pbmZvW2VpX2luZGV4KytdID0gMDsKCiAgICAgICAgc3AgPSAoKHVuc2ln
bmVkIGxvbmcgKikocCkgLSAoZWlfaW5kZXgpKTsKCiAgICAgICAgaXRlbXMgPSAoYXJnYyArIDEp
ICsgKGVudmMgKyAxKTsKICAgICAgICBpZiAoaW50ZXJwX2FvdXQpIHsKICAgICAgICAgICAgICAg
IGl0ZW1zICs9IDM7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIGl0ZW1zICs9IDE7
CiAgICAgICAgfQogICAgICAgIGJwcm0tPnAgPSAoKCh1bnNpZ25lZCBsb25nKSAoc3AgLSBpdGVt
cykpICZ+IDE1VUwpOwoKCWRvaXQoZWxmX2luZm8pOwp9Cg==


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

end of thread, other threads:[~2003-05-15 18:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15 18:46 optimization/8896: '-mcpu=xscale -fno-strict-aliasing -O2' generates wrong code Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2003-05-14 17:46 Dara Hazeghi
2003-03-22 13:54 steven
2003-03-22 13:36 Richard Earnshaw
2003-03-22 13:36 Steven Bosscher
2003-03-22 10:05 steven
2002-12-16 10:06 Enrico Scholz
2002-12-12  7:16 Richard Earnshaw
2002-12-12  7:03 rearnsha
2002-12-11  9:57 rearnsha
2002-12-10 15:46 enrico.scholz

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).