public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/27044]  New: Loop variables incorrectly initialized with optimization on
@ 2006-04-05 14:16 ned at bike-nomad dot com
  2006-04-05 14:17 ` [Bug rtl-optimization/27044] " ned at bike-nomad dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ned at bike-nomad dot com @ 2006-04-05 14:16 UTC (permalink / raw)
  To: gcc-bugs

In the following code, in the loop at line 381 of jtagmkII.c (line 2586 of the
attached jtagmkII.i), msglen (and l, as I recall) contain incorrect values.
This only happens when optimization is turned on (-O2); it does not happen with
-O1. The code runs correctly when compiled with gcc-3.3 using optimization.


-- 
           Summary: Loop variables incorrectly initialized with optimization
                    on
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ned at bike-nomad dot com
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


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


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

* [Bug rtl-optimization/27044] Loop variables incorrectly initialized with optimization on
  2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
@ 2006-04-05 14:17 ` ned at bike-nomad dot com
  2006-04-05 14:26 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ned at bike-nomad dot com @ 2006-04-05 14:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ned at bike-nomad dot com  2006-04-05 14:17 -------
Created an attachment (id=11211)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11211&action=view)
Preprocessed source demonstrating bug

Bug is at line 2585/2586 of attached file


-- 


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


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

* [Bug rtl-optimization/27044] Loop variables incorrectly initialized with optimization on
  2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
  2006-04-05 14:17 ` [Bug rtl-optimization/27044] " ned at bike-nomad dot com
@ 2006-04-05 14:26 ` rguenth at gcc dot gnu dot org
  2006-04-05 18:27 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-04-05 14:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-04-05 14:26 -------
It's hard to verify with this big (non-executable) testcase.  Is there a chance
you can strengthen your claim?


-- 


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


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

* [Bug rtl-optimization/27044] Loop variables incorrectly initialized with optimization on
  2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
  2006-04-05 14:17 ` [Bug rtl-optimization/27044] " ned at bike-nomad dot com
  2006-04-05 14:26 ` rguenth at gcc dot gnu dot org
@ 2006-04-05 18:27 ` pinskia at gcc dot gnu dot org
  2006-04-07  2:50 ` ned at bike-nomad dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-05 18:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-04-05 18:27 -------
Can you try 4.0.3?  Otherwise just report this to Apple instead as you are
using Apple's hacked up Compiler.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug rtl-optimization/27044] Loop variables incorrectly initialized with optimization on
  2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
                   ` (2 preceding siblings ...)
  2006-04-05 18:27 ` pinskia at gcc dot gnu dot org
@ 2006-04-07  2:50 ` ned at bike-nomad dot com
  2006-04-07  3:18 ` pinskia at gcc dot gnu dot org
  2006-04-12  1:22 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ned at bike-nomad dot com @ 2006-04-07  2:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ned at bike-nomad dot com  2006-04-07 02:50 -------
Tried 4.0.3 (compiled from source via Darwinports); works OK there.


-- 


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


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

* [Bug rtl-optimization/27044] Loop variables incorrectly initialized with optimization on
  2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
                   ` (3 preceding siblings ...)
  2006-04-07  2:50 ` ned at bike-nomad dot com
@ 2006-04-07  3:18 ` pinskia at gcc dot gnu dot org
  2006-04-12  1:22 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-07  3:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-04-07 03:17 -------
Closing as fixed pre the reporter.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug rtl-optimization/27044] Loop variables incorrectly initialized with optimization on
  2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
                   ` (4 preceding siblings ...)
  2006-04-07  3:18 ` pinskia at gcc dot gnu dot org
@ 2006-04-12  1:22 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-12  1:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.3


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


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

end of thread, other threads:[~2006-04-12  1:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05 14:16 [Bug rtl-optimization/27044] New: Loop variables incorrectly initialized with optimization on ned at bike-nomad dot com
2006-04-05 14:17 ` [Bug rtl-optimization/27044] " ned at bike-nomad dot com
2006-04-05 14:26 ` rguenth at gcc dot gnu dot org
2006-04-05 18:27 ` pinskia at gcc dot gnu dot org
2006-04-07  2:50 ` ned at bike-nomad dot com
2006-04-07  3:18 ` pinskia at gcc dot gnu dot org
2006-04-12  1:22 ` 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).