public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8040: g++ with -O3 produces duplicate symbol
@ 2002-09-26 20:18 rth
  0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-09-26 20:18 UTC (permalink / raw)
  To: bdubbs, gcc-bugs, gcc-prs, nobody

Synopsis: g++ with -O3 produces duplicate symbol

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Thu Sep 26 20:18:28 2002
State-Changed-Why:
    Not a bug.  You can't define symbols in inline assembly like that.

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


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

* Re: c++/8040: g++ with -O3 produces duplicate symbol
@ 2002-09-25 20:06 Andrew Pinski
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2002-09-25 20:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/8040; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: bdubbs@swbell.net, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/8040: g++ with -O3 produces duplicate symbol
Date: Wed, 25 Sep 2002 20:05:10 -0700

 Looks to be inlining the function rgb2yuv16bit_mmx422_row into x which  
 is valid but I think your use of asm is invalid.
 
 Thanks,
 Andrew Pinski
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=8040
 


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

* c++/8040: g++ with -O3 produces duplicate symbol
@ 2002-09-25  9:26 bdubbs
  0 siblings, 0 replies; 3+ messages in thread
From: bdubbs @ 2002-09-25  9:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8040
>Category:       c++
>Synopsis:       g++ with -O3 produces duplicate symbol
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 25 09:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bruce Dubbs
>Release:        GCC 3.2
>Organization:
>Environment:
i686 Pentium III (Coppermine)
>Description:
Compiler output:
x.s: Assembler messages:
x.s:33: Error: symbol `rgb2yuv16_422' is already defined

x.ii:
# 1 "x.cpp"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "x.cpp"
void x();
void rgb2yuv16bit_mmx422_row();
 
void x()
{
  rgb2yuv16bit_mmx422_row();
}
 
void rgb2yuv16bit_mmx422_row()
{
  __asm__ __volatile__ (
  "rgb2yuv16_422:\n"
  );
}
>How-To-Repeat:
g++ -O3  x.cpp -save-temps
>Fix:

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


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

end of thread, other threads:[~2002-09-27  3:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 20:18 c++/8040: g++ with -O3 produces duplicate symbol rth
  -- strict thread matches above, loose matches on Subject: below --
2002-09-25 20:06 Andrew Pinski
2002-09-25  9:26 bdubbs

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