This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/8040: g++ with -O3 produces duplicate symbol
- From: bdubbs at swbell dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 25 Sep 2002 16:24:41 -0000
- Subject: c++/8040: g++ with -O3 produces duplicate symbol
- Reply-to: bdubbs at swbell dot net
>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: