public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11322] New: SH profiler outputs multiple definitions of symbol
@ 2003-06-26 1:00 marcus at mc dot pp dot se
2003-07-05 20:33 ` [Bug target/11322] " dhazeghi at yahoo dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: marcus at mc dot pp dot se @ 2003-06-26 1:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
Summary: SH profiler outputs multiple definitions of symbol
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at mc dot pp dot se
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: shl-unknown-netbsdelf1.6T
GCC host triplet: shl-unknown-netbsdelf1.6T
GCC target triplet: shl-unknown-netbsdelf1.6T
When I compile anything with profiling enabled, the assembler
complains that a symbol is doubly defined:
doreimon:~% cat foo.c
void foo() { }
doreimon:~% gcc -c -pg foo.c
/var/tmp//ccqt8nci.s: Assembler messages:
/var/tmp//ccqt8nci.s:19: Error: symbol `.LP3' is already defined
doreimon:~%
Looking at the generated assembler code, this is indeed the case:
.file "foo.c"
.text
.little
.text
.align 1
.global foo
.type foo, @function
foo:
.data
.align 2
.LP3:
.long 0
.text
mov.l .LP3,r1
mova .LP3r,r0
jmp @r1
nop
.align 2
.LP3: .long __mcount
.LP3r:
mov.l r14,@-r15
mov r15,r14
mov r14,r15
mov.l @r15+,r14
rts
nop
.size foo, .-foo
.ident "GCC: (GNU) 3.3"
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
@ 2003-07-05 20:33 ` dhazeghi at yahoo dot com
2003-08-04 20:58 ` pinskia at physics dot uc dot edu
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-05 20:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2003-07-05 20:33:59
date| |
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-05 20:33 -------
Confirmed on gcc 3.3 branch and mainline (20030705). Configuration was unsupported in gcc
3.2.3, so this isn't a regression.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
2003-07-05 20:33 ` [Bug target/11322] " dhazeghi at yahoo dot com
@ 2003-08-04 20:58 ` pinskia at physics dot uc dot edu
2003-08-24 17:39 ` dhazeghi at yahoo dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-04 20:58 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
2003-07-05 20:33 ` [Bug target/11322] " dhazeghi at yahoo dot com
2003-08-04 20:58 ` pinskia at physics dot uc dot edu
@ 2003-08-24 17:39 ` dhazeghi at yahoo dot com
2003-11-25 8:40 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-24 17:39 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thorpej at wasabisystems dot
| |com
GCC build triplet|shl-unknown-netbsdelf1.6T |
GCC host triplet|shl-unknown-netbsdelf1.6T |
------- Additional Comments From dhazeghi at yahoo dot com 2003-08-24 17:39 -------
Jason, have you seen this problem before. Any ideas how to fix it? Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
` (2 preceding siblings ...)
2003-08-24 17:39 ` dhazeghi at yahoo dot com
@ 2003-11-25 8:40 ` pinskia at gcc dot gnu dot org
2003-11-30 16:37 ` uwe at netbsd dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-25 8:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-25 08:40 -------
The problem is that netbsd.h forgots to set NO_PROFILE_COUNTERS to 1, I cannot test
the patch to fix this but if someone wants to can.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-07-05 20:33:59 |2003-11-25 08:40:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
` (3 preceding siblings ...)
2003-11-25 8:40 ` pinskia at gcc dot gnu dot org
@ 2003-11-30 16:37 ` uwe at netbsd dot org
2003-11-30 21:35 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: uwe at netbsd dot org @ 2003-11-30 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From uwe at netbsd dot org 2003-11-30 16:37 -------
This has been fixed in the NetBSD tree quite some time ago
gnu/dist/gcc/gcc/config/sh/netbsd-elf.h
revision 1.2
date: 2003/08/04 00:52:43; author: uwe; state: Exp; lines: +5 -0
#define NO_PROFILE_COUNTERS as we don't need them. Otherwise both the
code to emit profile counters and the FUNCTION_PROFILER macro in this
file emit/define the same label. For gcc 2.95.3 it used to work
because FUNCTION_PROFILER used local numeric labels instead of using
LABELNO, so it caused no conflict.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
` (4 preceding siblings ...)
2003-11-30 16:37 ` uwe at netbsd dot org
@ 2003-11-30 21:35 ` pinskia at gcc dot gnu dot org
2003-12-05 4:42 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-30 21:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-30 21:35 -------
Patch is easy then, I will commit one next week as obvious.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
` (5 preceding siblings ...)
2003-11-30 21:35 ` pinskia at gcc dot gnu dot org
@ 2003-12-05 4:42 ` cvs-commit at gcc dot gnu dot org
2003-12-05 4:43 ` cvs-commit at gcc dot gnu dot org
2003-12-05 4:45 ` [Bug target/11322] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-05 4:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-05 04:42 -------
Subject: Bug 11322
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: pinskia@gcc.gnu.org 2003-12-05 04:42:20
Modified files:
gcc/config/sh : netbsd-elf.h
gcc : ChangeLog
Log message:
+ PR target/11322
+ * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
+
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/netbsd-elf.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.4&r2=1.4.14.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.826&r2=1.16114.2.827
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
` (6 preceding siblings ...)
2003-12-05 4:42 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-05 4:43 ` cvs-commit at gcc dot gnu dot org
2003-12-05 4:45 ` [Bug target/11322] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-05 4:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-05 04:43 -------
Subject: Bug 11322
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2003-12-05 04:43:33
Modified files:
gcc/config/sh : netbsd-elf.h
gcc : ChangeLog
Log message:
+ PR target/11322
+ * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
+
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/netbsd-elf.h.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1919&r2=2.1920
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/11322] [3.3/3.4 Regression] SH profiler outputs multiple definitions of symbol
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
` (7 preceding siblings ...)
2003-12-05 4:43 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-05 4:45 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-05 4:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-05 04:45 -------
This is a 3.3 and 3.4 regression from 2.95.3.
Fixed for 3.3.3 and 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Summary|SH profiler outputs multiple|[3.3/3.4 Regression] SH
|definitions of symbol |profiler outputs multiple
| |definitions of symbol
Target Milestone|3.4 |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11322
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-12-05 4:45 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-26 1:00 [Bug target/11322] New: SH profiler outputs multiple definitions of symbol marcus at mc dot pp dot se
2003-07-05 20:33 ` [Bug target/11322] " dhazeghi at yahoo dot com
2003-08-04 20:58 ` pinskia at physics dot uc dot edu
2003-08-24 17:39 ` dhazeghi at yahoo dot com
2003-11-25 8:40 ` pinskia at gcc dot gnu dot org
2003-11-30 16:37 ` uwe at netbsd dot org
2003-11-30 21:35 ` pinskia at gcc dot gnu dot org
2003-12-05 4:42 ` cvs-commit at gcc dot gnu dot org
2003-12-05 4:43 ` cvs-commit at gcc dot gnu dot org
2003-12-05 4:45 ` [Bug target/11322] [3.3/3.4 Regression] " pinskia 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).