public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c
@ 2010-02-06 3:22 howarth at nitro dot med dot uc dot edu
2010-02-06 3:46 ` [Bug c/42982] " howarth at nitro dot med dot uc dot edu
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-06 3:22 UTC (permalink / raw)
To: gcc-bugs
The gcc.dg/profile-generate-3.c test case no longer compiles on
*-apple-darwin*. On x86_64-apple-darwin10 the test case produces the error...
Executing on host:
/sw/src/fink.build/gcc45-4.4.999-20100205/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc45-4.4.999-20100205/darwin_objdir/gcc/
/sw/src/fink.build/gcc45-4.4.999-20100205/gcc-4.5-20100205/gcc/testsuite/gcc.dg/profile-generate-3.c
-fprofile-generate=. -lm -o profile-generate-3.exe (timeout = 300)
Undefined symbols:
"___gcov_merge_add", referenced from:
__data@0 in cc6Pfi4X.o
"___gcov_indirect_call_profiler", referenced from:
_main in cc6Pfi4X.o
global constructors keyed to 65535_0_profile_generate_3.c in cc6Pfi4X.o
"___gcov_init", referenced from:
global constructors keyed to 65535_0_profile_generate_3.c in cc6Pfi4X.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
Undefined symbols:
"___gcov_merge_add", referenced from:
__data@0 in cc6Pfi4X.o
"___gcov_indirect_call_profiler", referenced from:
_main in cc6Pfi4X.o
global constructors keyed to 65535_0_profile_generate_3.c in cc6Pfi4X.o
"___gcov_init", referenced from:
global constructors keyed to 65535_0_profile_generate_3.c in cc6Pfi4X.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
FAIL: gcc.dg/profile-generate-3.c (test for excess errors)
Excess errors:
Undefined symbols:
"___gcov_merge_add", referenced from:
__data@0 in cc6Pfi4X.o
"___gcov_indirect_call_profiler", referenced from:
_main in cc6Pfi4X.o
global constructors keyed to 65535_0_profile_generate_3.c in cc6Pfi4X.o
"___gcov_init", referenced from:
global constructors keyed to 65535_0_profile_generate_3.c in cc6Pfi4X.o
ld: symbol(s) not found
Last reported revision that worked was r155525 and first reported revision that
failed was r155604.
--
Summary: regression in gcc.dg/profile-generate-3.c
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: *-apple-darwin*
GCC host triplet: *-apple-darwin*
GCC target triplet: *-apple-darwin*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42982
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/42982] regression in gcc.dg/profile-generate-3.c
2010-02-06 3:22 [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c howarth at nitro dot med dot uc dot edu
@ 2010-02-06 3:46 ` howarth at nitro dot med dot uc dot edu
2010-02-06 3:49 ` howarth at nitro dot med dot uc dot edu
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-06 3:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from howarth at nitro dot med dot uc dot edu 2010-02-06 03:46 -------
Could this be a side-effect of r155534...
2009-12-31 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR target/41605
* config/darwin.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
for target.
(LINK_SPEC): Replace dynamic libraries by static equivalents where
necessary.
* config/darwin9.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
for target.
I find that if I explicitly add -lgcov to the linkage then
gcc.dg/profile-generate-3.c links fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42982
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/42982] regression in gcc.dg/profile-generate-3.c
2010-02-06 3:22 [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c howarth at nitro dot med dot uc dot edu
2010-02-06 3:46 ` [Bug c/42982] " howarth at nitro dot med dot uc dot edu
@ 2010-02-06 3:49 ` howarth at nitro dot med dot uc dot edu
2010-02-06 5:34 ` howarth at nitro dot med dot uc dot edu
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-06 3:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from howarth at nitro dot med dot uc dot edu 2010-02-06 03:49 -------
Is this a typo in the committed patch?
- %(link_libgcc) %o %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \
to
+ %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov}
\
Notice that the * after fprofile-generate has been dropped after the patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42982
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/42982] regression in gcc.dg/profile-generate-3.c
2010-02-06 3:22 [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c howarth at nitro dot med dot uc dot edu
2010-02-06 3:46 ` [Bug c/42982] " howarth at nitro dot med dot uc dot edu
2010-02-06 3:49 ` howarth at nitro dot med dot uc dot edu
@ 2010-02-06 5:34 ` howarth at nitro dot med dot uc dot edu
2010-02-12 17:35 ` [Bug target/42982] " davek at gcc dot gnu dot org
2010-03-10 3:23 ` howarth at nitro dot med dot uc dot edu
4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-06 5:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from howarth at nitro dot med dot uc dot edu 2010-02-06 05:34 -------
Index: gcc/config/darwin.h
===================================================================
--- gcc/config/darwin.h (revision 156530)
+++ gcc/config/darwin.h (working copy)
@@ -272,7 +272,7 @@
%{A} %{e*} %{m} %{r} %{x} \
%{o*}%{!o:-o a.out} \
%{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
- %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov}
\
+ %{L*} %(link_libgcc) %o
%{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \
%{fopenmp|ftree-parallelize-loops=*: \
%{static|static-libgcc|static-libstdc++|static-libgfortran: libgomp.a%s;
: -lgomp } } \
%{!nostdlib:%{!nodefaultlibs: %(link_ssp) %G %L }} \
Index: gcc/config/darwin9.h
===================================================================
--- gcc/config/darwin9.h (revision 156530)
+++ gcc/config/darwin9.h (working copy)
@@ -31,7 +31,7 @@
%{A} %{e*} %{m} %{r} %{x} \
%{o*}%{!o:-o a.out} \
%{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
- %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov}
\
+ %{L*} %(link_libgcc) %o
%{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \
%{fopenmp|ftree-parallelize-loops=*: \
%{static|static-libgcc|static-libstdc++|static-libgfortran: libgomp.a%s;
: -lgomp } } \
%{!nostdlib:%{!nodefaultlibs: %(link_ssp) %G %L }} \
eliminates the failure of gcc.dg/profile-generate-3.c as expected on
x86_64-apple-darwin10.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42982
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/42982] regression in gcc.dg/profile-generate-3.c
2010-02-06 3:22 [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c howarth at nitro dot med dot uc dot edu
` (2 preceding siblings ...)
2010-02-06 5:34 ` howarth at nitro dot med dot uc dot edu
@ 2010-02-12 17:35 ` davek at gcc dot gnu dot org
2010-03-10 3:23 ` howarth at nitro dot med dot uc dot edu
4 siblings, 0 replies; 6+ messages in thread
From: davek at gcc dot gnu dot org @ 2010-02-12 17:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from davek at gcc dot gnu dot org 2010-02-12 17:35 -------
Subject: Bug 42982
Author: davek
Date: Fri Feb 12 17:35:18 2010
New Revision: 156736
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156736
Log:
2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
Jack Howarth <howarth@bromo.med.uc.edu>
Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR target/42982
Partial revert of unintended change in fix for PR41605.
* gcc/config/darwin.h: Fix typo.
* gcc/config/darwin9.h: Same.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/darwin.h
trunk/gcc/config/darwin9.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42982
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/42982] regression in gcc.dg/profile-generate-3.c
2010-02-06 3:22 [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c howarth at nitro dot med dot uc dot edu
` (3 preceding siblings ...)
2010-02-12 17:35 ` [Bug target/42982] " davek at gcc dot gnu dot org
@ 2010-03-10 3:23 ` howarth at nitro dot med dot uc dot edu
4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-03-10 3:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from howarth at nitro dot med dot uc dot edu 2010-03-10 03:23 -------
Fixed with r156736.
--
howarth at nitro dot med dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42982
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-10 3:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06 3:22 [Bug c/42982] New: regression in gcc.dg/profile-generate-3.c howarth at nitro dot med dot uc dot edu
2010-02-06 3:46 ` [Bug c/42982] " howarth at nitro dot med dot uc dot edu
2010-02-06 3:49 ` howarth at nitro dot med dot uc dot edu
2010-02-06 5:34 ` howarth at nitro dot med dot uc dot edu
2010-02-12 17:35 ` [Bug target/42982] " davek at gcc dot gnu dot org
2010-03-10 3:23 ` howarth at nitro dot med dot uc dot edu
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).