public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/15401] New: [3.15p/3.4 regression] -O2 or higher generates wrong code
@ 2004-05-13 11:13 ludovic dot brenta at insalien dot org
  2004-05-13 11:22 ` [Bug ada/15401] [3.4/3.5? " pinskia at gcc dot gnu dot org
  2004-06-08  9:15 ` charlet at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ludovic dot brenta at insalien dot org @ 2004-05-13 11:13 UTC (permalink / raw)
  To: gcc-bugs

with text_io;
   procedure Test_103 is
      function one return integer is
      begin
         return 1;
      end;

      type T1 is record
         name : string (1..4);
      end record;

       x : T1 := (name => "bill");
   begin
      x.name(one) := 'j';
      if x.name /= "jill"
         then text_io.put_line("failed");
      end if;
      text_io.put_line(x.name);
   end Test_103;


With GNAT 3.15p, I get the correct answer "jill" with -O0, -O1, -O2 and -O3.

With 3.4, at -O2 or higher, the output is "failed".

-- 
           Summary: [3.15p/3.4 regression] -O2 or higher generates wrong
                    code
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug ada/15401] [3.4/3.5? regression] -O2 or higher generates wrong code
  2004-05-13 11:13 [Bug ada/15401] New: [3.15p/3.4 regression] -O2 or higher generates wrong code ludovic dot brenta at insalien dot org
@ 2004-05-13 11:22 ` pinskia at gcc dot gnu dot org
  2004-06-08  9:15 ` charlet at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 11:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|[3.15p/3.4 regression] -O2  |[3.4/3.5? regression] -O2 or
                   |or higher generates wrong   |higher generates wrong code
                   |code                        |


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


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

* [Bug ada/15401] [3.4/3.5? regression] -O2 or higher generates wrong code
  2004-05-13 11:13 [Bug ada/15401] New: [3.15p/3.4 regression] -O2 or higher generates wrong code ludovic dot brenta at insalien dot org
  2004-05-13 11:22 ` [Bug ada/15401] [3.4/3.5? " pinskia at gcc dot gnu dot org
@ 2004-06-08  9:15 ` charlet at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: charlet at gcc dot gnu dot org @ 2004-06-08  9:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at gcc dot gnu dot org  2004-06-08 09:13 -------
Works fine for me at all opt levels with mainline.

Arno

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-06-08  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-13 11:13 [Bug ada/15401] New: [3.15p/3.4 regression] -O2 or higher generates wrong code ludovic dot brenta at insalien dot org
2004-05-13 11:22 ` [Bug ada/15401] [3.4/3.5? " pinskia at gcc dot gnu dot org
2004-06-08  9:15 ` charlet 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).