This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch,darwin] Fix LINK_COMMAND_SPEC for -fprofile-generate
- From: FX <fxcoudert at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dalej at apple dot com, mrs at apple dot com, Eric Christopher <echristo at apple dot com>, stanshebs at earthlink dot net
- Date: Thu, 11 Jun 2009 12:15:05 +0200
- Subject: [patch,darwin] Fix LINK_COMMAND_SPEC for -fprofile-generate
Hi all,
gcc.dg/profile-generate-3.c currently fails on darwin, because of a
slight error in the specs:
gcc/gcc.c has in LINK_COMMAND_SPEC the following: %{fprofile-arcs|
fprofile-generate*|coverage:-lgcov}
In config/darwin/darwin.h and config/darwin/darwin9.h, we have: %
{fprofile-arcs|fprofile-generate|coverage:-lgcov}
The following patch, bordering on the obvious, fixes it by adding the
missing "*".
Bootstrapped and regtested on i686-darwin. OK to commit?
FX
Attachment:
profile_generate.ChangeLog
Description: Binary data
Attachment:
profile_generate.diff
Description: Binary data