public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39115]  New: [4.3 Regression] Value of variable is not read again
@ 2009-02-05 22:56 mt at debian dot org
  2009-02-05 23:01 ` [Bug target/39115] " mt at debian dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: mt at debian dot org @ 2009-02-05 22:56 UTC (permalink / raw)
  To: gcc-bugs

[The bug has been reported to the Debian BTS before:
http://bugs.debian.org/491137]

On s390, when using -O2, the attached code fails to throw an exception,
apparently because it does not re-evaluate the value of a variable. If the
variable is marked volatile, the code works as expected.

Best,
Michael


-- 
           Summary: [4.3 Regression] Value of variable is not read again
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mt at debian dot org
 GCC build triplet: s390-unknown-linux-gnu
  GCC host triplet: s390-unknown-linux-gnu
GCC target triplet: s390-unknown-linux-gnu


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
@ 2009-02-05 23:01 ` mt at debian dot org
  2009-02-05 23:02 ` mt at debian dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: mt at debian dot org @ 2009-02-05 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mt at debian dot org  2009-02-05 23:01 -------
Created an attachment (id=17255)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17255&action=view)
Not fully preprocessed source (includes <string>), compile with -DVOLATILE to
see the correct behaviour


-- 


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
  2009-02-05 23:01 ` [Bug target/39115] " mt at debian dot org
@ 2009-02-05 23:02 ` mt at debian dot org
  2009-02-05 23:04 ` mt at debian dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: mt at debian dot org @ 2009-02-05 23:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mt at debian dot org  2009-02-05 23:02 -------
Created an attachment (id=17256)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17256&action=view)
Fully preprocessed source, compile with -O2 to see wrong behaviour


-- 


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
  2009-02-05 23:01 ` [Bug target/39115] " mt at debian dot org
  2009-02-05 23:02 ` mt at debian dot org
@ 2009-02-05 23:04 ` mt at debian dot org
  2009-03-04 11:26 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: mt at debian dot org @ 2009-02-05 23:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mt at debian dot org  2009-02-05 23:04 -------
I should have added that this worked fine on 4.2 and was broken as of 4.3.1 at
least, earlier versions (> 4.2) untested.


-- 


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
                   ` (2 preceding siblings ...)
  2009-02-05 23:04 ` mt at debian dot org
@ 2009-03-04 11:26 ` rguenth at gcc dot gnu dot org
  2009-03-13 22:58 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-04 11:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.4


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
                   ` (3 preceding siblings ...)
  2009-03-04 11:26 ` rguenth at gcc dot gnu dot org
@ 2009-03-13 22:58 ` rguenth at gcc dot gnu dot org
  2009-03-16  8:27 ` mt at debian dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-13 22:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-03-13 22:58 -------
Does it work with GCC 4.4?


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.2.4


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
                   ` (4 preceding siblings ...)
  2009-03-13 22:58 ` rguenth at gcc dot gnu dot org
@ 2009-03-16  8:27 ` mt at debian dot org
  2009-03-16  9:30 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: mt at debian dot org @ 2009-03-16  8:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mt at debian dot org  2009-03-16 08:27 -------
Indeed, seems to be fixed in 4.4.0 (tested using Debian's gcc-snapshot, g++
(Debian 20090224-1) 4.4.0 20090224 (experimental)). Sorry for not testing using
a fresh build from 4.4 sources, but I hope that is helpful nevertheless.

Best,
Michael


-- 


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
                   ` (5 preceding siblings ...)
  2009-03-16  8:27 ` mt at debian dot org
@ 2009-03-16  9:30 ` rguenth at gcc dot gnu dot org
  2009-08-04 12:48 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:31 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-03-16  9:30 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.3.3
      Known to work|4.2.4                       |4.2.4 4.4.0
           Priority|P3                          |P2


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
                   ` (6 preceding siblings ...)
  2009-03-16  9:30 ` rguenth at gcc dot gnu dot org
@ 2009-08-04 12:48 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:31 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
  2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
                   ` (7 preceding siblings ...)
  2009-08-04 12:48 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:31 ` rguenth at gcc dot gnu dot org
  8 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

* [Bug target/39115] [4.3 Regression] Value of variable is not read again
       [not found] <bug-39115-4@http.gcc.gnu.org/bugzilla/>
@ 2011-06-27 12:03 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 12:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |
         Resolution|                            |FIXED
   Target Milestone|4.3.6                       |4.4.0

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 11:47:54 UTC ---
Fixed for 4.4.0.


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

end of thread, other threads:[~2011-06-27 12:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 22:56 [Bug c++/39115] New: [4.3 Regression] Value of variable is not read again mt at debian dot org
2009-02-05 23:01 ` [Bug target/39115] " mt at debian dot org
2009-02-05 23:02 ` mt at debian dot org
2009-02-05 23:04 ` mt at debian dot org
2009-03-04 11:26 ` rguenth at gcc dot gnu dot org
2009-03-13 22:58 ` rguenth at gcc dot gnu dot org
2009-03-16  8:27 ` mt at debian dot org
2009-03-16  9:30 ` rguenth at gcc dot gnu dot org
2009-08-04 12:48 ` rguenth at gcc dot gnu dot org
2010-05-22 18:31 ` rguenth at gcc dot gnu dot org
     [not found] <bug-39115-4@http.gcc.gnu.org/bugzilla/>
2011-06-27 12:03 ` rguenth at gcc dot gnu.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).