public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45052] New: [4.5 regression] volatile ignored
@ 2010-07-24 10:51 a dot kaiser at gmx dot net
2010-07-24 10:52 ` [Bug c/45052] " a dot kaiser at gmx dot net
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: a dot kaiser at gmx dot net @ 2010-07-24 10:51 UTC (permalink / raw)
To: gcc-bugs
"volatile" seems to have no effect. ReadByte should be called 4 times with
results merged in a word, instead it is called once and replicated 4 times.
arm-none-eabi-gcc -S -Os -mcpu=arm926ej-s src.c
-O0, -O2, -O3 are fine, -O1 and -Os are bad.
--
Summary: [4.5 regression] volatile ignored
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: a dot kaiser at gmx dot net
GCC host triplet: yagarto 01.05.2010
GCC target triplet: arm-none-eabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/45052] [4.5 regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
@ 2010-07-24 10:52 ` a dot kaiser at gmx dot net
2010-07-24 10:54 ` a dot kaiser at gmx dot net
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: a dot kaiser at gmx dot net @ 2010-07-24 10:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from a dot kaiser at gmx dot net 2010-07-24 10:52 -------
Created an attachment (id=21297)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21297&action=view)
Source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/45052] [4.5 regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
2010-07-24 10:52 ` [Bug c/45052] " a dot kaiser at gmx dot net
@ 2010-07-24 10:54 ` a dot kaiser at gmx dot net
2010-07-24 11:44 ` a dot kaiser at gmx dot net
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: a dot kaiser at gmx dot net @ 2010-07-24 10:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from a dot kaiser at gmx dot net 2010-07-24 10:53 -------
Created an attachment (id=21298)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21298&action=view)
Bad result
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/45052] [4.5 regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
2010-07-24 10:52 ` [Bug c/45052] " a dot kaiser at gmx dot net
2010-07-24 10:54 ` a dot kaiser at gmx dot net
@ 2010-07-24 11:44 ` a dot kaiser at gmx dot net
2010-07-24 14:37 ` [Bug tree-optimization/45052] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: a dot kaiser at gmx dot net @ 2010-07-24 11:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from a dot kaiser at gmx dot net 2010-07-24 11:44 -------
Also fine: -Os -fno-ipa-pure-const
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/45052] [4.5/4.6 Regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
` (2 preceding siblings ...)
2010-07-24 11:44 ` a dot kaiser at gmx dot net
@ 2010-07-24 14:37 ` rguenth at gcc dot gnu dot org
2010-07-26 9:27 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-24 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-24 14:37 -------
Confirmed. I have a patch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Component|c |tree-optimization
Ever Confirmed|0 |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2010-07-24 14:37:40
date| |
Summary|[4.5 regression] volatile |[4.5/4.6 Regression]
|ignored |volatile ignored
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/45052] [4.5/4.6 Regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
` (3 preceding siblings ...)
2010-07-24 14:37 ` [Bug tree-optimization/45052] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-07-26 9:27 ` rguenth at gcc dot gnu dot org
2010-07-31 9:35 ` [Bug tree-optimization/45052] [4.5 " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-26 9:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-07-26 09:27 -------
Subject: Bug 45052
Author: rguenth
Date: Mon Jul 26 09:26:43 2010
New Revision: 162528
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162528
Log:
2010-07-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45052
* ipa-pure-const.c (check_stmt): Check volatileness.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-pure-const.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/45052] [4.5 Regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
` (4 preceding siblings ...)
2010-07-26 9:27 ` rguenth at gcc dot gnu dot org
@ 2010-07-31 9:35 ` rguenth at gcc dot gnu dot org
2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31 9:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-31 09:30 -------
GCC 4.5.1 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.1 |4.5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/45052] [4.5 Regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
` (6 preceding siblings ...)
2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
@ 2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31 12:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-07-31 12:12 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.5.0 |4.5.0 4.5.1
Known to work|4.3.2 4.4.1 4.4.2 4.6.0 |4.3.2 4.4.1 4.4.2 4.5.2
| |4.6.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/45052] [4.5 Regression] volatile ignored
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
` (5 preceding siblings ...)
2010-07-31 9:35 ` [Bug tree-optimization/45052] [4.5 " rguenth at gcc dot gnu dot org
@ 2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31 12:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2010-07-31 12:13 -------
Subject: Bug 45052
Author: rguenth
Date: Sat Jul 31 12:12:43 2010
New Revision: 162781
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162781
Log:
2010-07-31 Richard Guenther <rguenther@suse.de>
PR tree-optimization/45052
* ipa-pure-const.c (check_stmt): Check volatileness.
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/ipa-pure-const.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-07-31 12:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-24 10:51 [Bug c/45052] New: [4.5 regression] volatile ignored a dot kaiser at gmx dot net
2010-07-24 10:52 ` [Bug c/45052] " a dot kaiser at gmx dot net
2010-07-24 10:54 ` a dot kaiser at gmx dot net
2010-07-24 11:44 ` a dot kaiser at gmx dot net
2010-07-24 14:37 ` [Bug tree-optimization/45052] [4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
2010-07-26 9:27 ` rguenth at gcc dot gnu dot org
2010-07-31 9:35 ` [Bug tree-optimization/45052] [4.5 " rguenth at gcc dot gnu dot org
2010-07-31 12:13 ` rguenth at gcc dot gnu dot org
2010-07-31 12:13 ` rguenth 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).