public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/38394]  New: clashing assembler symbols
@ 2008-12-04  9:26 michael dot voelske at medien dot uni-weimar dot de
  2008-12-04 10:54 ` [Bug ada/38394] [4.3/4.4 regression] " laurent at guerby dot net
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: michael dot voelske at medien dot uni-weimar dot de @ 2008-12-04  9:26 UTC (permalink / raw)
  To: gcc-bugs

The following program results in clashing assembler symbols when compiled
with gnat-4.3.  This does not happen when using gnat-4.2.

-- file: pkg.ads --
package Pkg is
   procedure Foo;

   Max : Natural := 1;
   type Arr is array(Natural range 0..Max) of Natural;

   type T is record
         A : Arr := (others => 0); 
      end record;
end;

-- file: pkg.adb --
package body Pkg is
   procedure Foo is
      X, Y : T;
   begin
      null;
   end;
end;

-- compilation --

gcc-4.3 -c pkg.adb
/tmp/ccP5RYSw.s: Assembler messages:
/tmp/ccP5RYSw.s:76: Error: symbol `pkg__foo__T3scc___U' is already defined
End of compilation
gnatmake: "pkg.adb" compilation error


-- 
           Summary: clashing assembler symbols
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot voelske at medien dot uni-weimar dot de


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


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

end of thread, other threads:[~2010-05-24 21:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-04  9:26 [Bug ada/38394] New: clashing assembler symbols michael dot voelske at medien dot uni-weimar dot de
2008-12-04 10:54 ` [Bug ada/38394] [4.3/4.4 regression] " laurent at guerby dot net
2008-12-11 23:11 ` pinskia at gcc dot gnu dot org
2008-12-11 23:12 ` pinskia at gcc dot gnu dot org
2008-12-12  1:03 ` jakub at gcc dot gnu dot org
2009-01-24 10:27 ` rguenth at gcc dot gnu dot org
2009-05-28 18:24 ` [Bug ada/38394] [4.3/4.4/4.5 " michael dot voelske at medien dot uni-weimar dot de
2009-05-28 19:30 ` [Bug ada/38394] [4.3/4.4 " laurent at guerby dot net
2009-08-04 12:45 ` rguenth at gcc dot gnu dot org
2010-05-22 18:27 ` rguenth at gcc dot gnu dot org
2010-05-24 21:44 ` ebotcazou at gcc dot gnu dot org
2010-05-24 21:46 ` ebotcazou at gcc dot gnu dot org
2010-05-24 21:49 ` ebotcazou 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).