public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: ada/9519: gnat-3.2: clash of assembler symbols for overloaded names
@ 2003-05-13  6:27 steven
  0 siblings, 0 replies; 3+ messages in thread
From: steven @ 2003-05-13  6:27 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, oliver.kellogg

Synopsis: gnat-3.2: clash of assembler symbols for overloaded names

State-Changed-From-To: open->closed
State-Changed-By: steven
State-Changed-When: Tue May 13 06:27:41 2003
State-Changed-Why:
    Reported fixed for 3.3, 3.4
    Go A380

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9519


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

* Re: ada/9519: gnat-3.2: clash of assembler symbols for overloaded names
@ 2003-05-13  0:36 Dara Hazeghi
  0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-05-13  0:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR ada/9519; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org, oliver.kellogg@sysde.eads.net, nobody@gcc.gnu.org
Cc:  
Subject: Re: ada/9519: gnat-3.2: clash of assembler symbols for overloaded names
Date: Mon, 12 May 2003 17:32:31 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=9519
 
 Hello,
 
 I was able to reproduce this problem on gcc 3.2, but on 3.3 branch and  
 mainline (20030510) on i686-linux, the testcase compiled an assembled  
 fine, so it appears that this bug has been fixed.
 
 Dara
 


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

* ada/9519: gnat-3.2: clash of assembler symbols for overloaded names
@ 2003-01-31 10:46 oliver.kellogg
  0 siblings, 0 replies; 3+ messages in thread
From: oliver.kellogg @ 2003-01-31 10:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9519
>Category:       ada
>Synopsis:       gnat-3.2: clash of assembler symbols for overloaded names
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 31 10:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Kellogg
>Release:        gcc-3.2 and 3.2.1
>Organization:
>Environment:
RedHat Linux 8.0 (i686)
>Description:
This is a regression.
With gnat-3.13p, correct assembler names are generated:

$ nm ovrlod.o
00000418 T ovrlod__subprog
00000850 T ovrlod__subprog__2
00000000 t ovrlod__subprog__io__get.0
000000fc t ovrlod__subprog__io__get__2.1
00000534 t ovrlod__subprog__io__get__2.7
00000634 t ovrlod__subprog__io__get__3.10
000001fc t ovrlod__subprog__io__get__3.4
00000434 t ovrlod__subprog__io__get.6
00000368 t ovrlod__subprog__io__put.2
00000390 t ovrlod__subprog__io__put__2.3
000007c8 t ovrlod__subprog__io__put__2.9
000007f4 t ovrlod__subprog__io__put__3.11
000003bc t ovrlod__subprog__io__put__3.5
000007a0 t ovrlod__subprog__io__put.8

gnat-3.2 and 3.2.1 generate assembler names
that are liable to clash:

$ gcc -c ovrlod.adb
/tmp/ccBg9i2E.s: Assembler messages:
/tmp/ccBg9i2E.s:422: Error: symbol `ovrlod__subprog__io__get__2' is already defined
/tmp/ccBg9i2E.s:497: Error: symbol `ovrlod__subprog__io__get__3' is already defined
/tmp/ccBg9i2E.s:610: Error: symbol `ovrlod__subprog__io__put__2' is already defined
/tmp/ccBg9i2E.s:629: Error: symbol `ovrlod__subprog__io__put__3' is already defined
>How-To-Repeat:
Compile the body of this package:

-- file: ovrlod.ads
package Ovrlod is

   procedure Subprog;
   function Subprog return String;

end Ovrlod;


-- file: ovrlod.adb
with Text_IO;

package body Ovrlod is

   procedure Subprog is
      package Io is new Text_Io.Integer_Io (Integer);
   begin
      null;
   end Subprog;

   function Subprog return String is
      package Io is new Text_Io.Integer_Io (Integer);
   begin
      return "";
   end Subprog;

end Ovrlod;

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-13  6:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13  6:27 ada/9519: gnat-3.2: clash of assembler symbols for overloaded names steven
  -- strict thread matches above, loose matches on Subject: below --
2003-05-13  0:36 Dara Hazeghi
2003-01-31 10:46 oliver.kellogg

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).