public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18603] New: local label names can collide with function names
@ 2004-11-21 23:22 wolfgang dot thaller at gmx dot net
2004-11-21 23:58 ` [Bug target/18603] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: wolfgang dot thaller at gmx dot net @ 2004-11-21 23:22 UTC (permalink / raw)
To: gcc-bugs
GCC uses local label names .L1, .L2, etc. on this platform.
However these same assembly labels are used for functions named "L1" or "L2".
wolfgang@gorecki wolfgang $ cat L.c
int L2(int x)
{
if(x > 5)
return -42;
else
return 42;
}
wolfgang@gorecki wolfgang $ gcc -c L.c
/tmp/ccL2lhwX.s: Assembler messages:
/tmp/ccL2lhwX.s:26: Error: symbol `.L2' is already defined
Observed on gentoo powerpc64; also observed on a gcc-3.4.2 cross-compiling from powerpc-apple-
darwin to powerpc64-unknown-linux.
--
Summary: local label names can collide with function names
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wolfgang dot thaller at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc64-unknown-linux
GCC host triplet: powerpc64-unknown-linux
GCC target triplet: powerpc64-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18603
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/18603] local label names can collide with function names
2004-11-21 23:22 [Bug target/18603] New: local label names can collide with function names wolfgang dot thaller at gmx dot net
@ 2004-11-21 23:58 ` pinskia at gcc dot gnu dot org
2004-11-23 22:56 ` amodra at bigpond dot net dot au
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-21 23:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-21 23:58 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2004-11-21 23:58:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18603
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/18603] local label names can collide with function names
2004-11-21 23:22 [Bug target/18603] New: local label names can collide with function names wolfgang dot thaller at gmx dot net
2004-11-21 23:58 ` [Bug target/18603] " pinskia at gcc dot gnu dot org
@ 2004-11-23 22:56 ` amodra at bigpond dot net dot au
2004-11-23 23:20 ` [Bug target/18603] [3.4 only] " pinskia at gcc dot gnu dot org
2005-05-19 17:39 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-11-23 22:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2004-11-23 22:56 -------
This has been fixed on mainline. Note that you need a recent (2004-09) binutils
with support for new dot-symbol conventions when you configure and build GCC.
I can make a patch available for 3.4.3 if there's sufficient interest.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.4.3
Known to work| |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18603
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/18603] [3.4 only] local label names can collide with function names
2004-11-21 23:22 [Bug target/18603] New: local label names can collide with function names wolfgang dot thaller at gmx dot net
2004-11-21 23:58 ` [Bug target/18603] " pinskia at gcc dot gnu dot org
2004-11-23 22:56 ` amodra at bigpond dot net dot au
@ 2004-11-23 23:20 ` pinskia at gcc dot gnu dot org
2005-05-19 17:39 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-23 23:20 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|local label names can |[3.4 only] local label names
|collide with function names |can collide with function
| |names
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18603
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/18603] [3.4 only] local label names can collide with function names
2004-11-21 23:22 [Bug target/18603] New: local label names can collide with function names wolfgang dot thaller at gmx dot net
` (2 preceding siblings ...)
2004-11-23 23:20 ` [Bug target/18603] [3.4 only] " pinskia at gcc dot gnu dot org
@ 2005-05-19 17:39 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:39 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18603
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-05-19 17:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-21 23:22 [Bug target/18603] New: local label names can collide with function names wolfgang dot thaller at gmx dot net
2004-11-21 23:58 ` [Bug target/18603] " pinskia at gcc dot gnu dot org
2004-11-23 22:56 ` amodra at bigpond dot net dot au
2004-11-23 23:20 ` [Bug target/18603] [3.4 only] " pinskia at gcc dot gnu dot org
2005-05-19 17:39 ` mmitchel 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).