From: IainS <developer@sandoe-acoustics.co.uk>
To: Ian Lance Taylor <iant@google.com>
Cc: GCC Development <gcc@gcc.gnu.org>
Subject: Re: specs question.
Date: Tue, 13 Apr 2010 08:55:00 -0000 [thread overview]
Message-ID: <4F670628-977A-4305-8E0B-1D64E95833EA@sandoe-acoustics.co.uk> (raw)
In-Reply-To: <mcr7hoc1ckj.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
On 13 Apr 2010, at 00:22, Ian Lance Taylor wrote:
>> if you put "-lm" on the c/l dsymutil doesn't get called.
>
> Note that in the specs language the %{.XXX: ...} is matched against
> the filename passed to the gcc driver. It doesn't know the source
> language of a .o file. So if you are linking, and passing .o files,
> then this approach won't work.
(I saw your post about java .. I wasn't grepping the right things .. )
Since we're tagged onto the LINK_COMMAND_SPEC - this will get
evaluated whenever that does.
... (not 100% sure when that is - when the driver is invoked or when
the collect phase is invoked.. ).
.. also in_files and out_files can exhibit gotchas (e.g. anything
beginning -l isn't eligible for treatments like %<lxx I found recently)
---
It clearly depends on something no-obvious.
gcc hello.c -g -o hc => dsymutils gets run (not expected from the
syntax, assuming that sources are irrelevant)
gcc hello.o -g -o hc => no dsymutils (expected from the absence of
'.o' in the list)
gcc hello.c -g -o hc -lm => no dsymutils... (not at all expected ... )
adding .for to the list does not result in dsymutils getting run ..
(expected by similarity, but not by logic)
removing the whole of the bracketed list - results in all of those
cases working.
I think the right local solution is to remove the expression (I'll run
that by Mike Stump)...
I'm pursuing this in case there's a latent bug that should be reported.
cheers,
Iain
next prev parent reply other threads:[~2010-04-13 0:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-11 17:49 IainS
2010-04-12 22:30 ` Ian Lance Taylor
2010-04-12 22:41 ` IainS
2010-04-12 23:26 ` Ian Lance Taylor
2010-04-12 23:44 ` IainS
2010-04-13 0:01 ` Ian Lance Taylor
2010-04-13 8:55 ` IainS [this message]
2010-04-13 18:14 ` Peter O'Gorman
2010-04-13 19:21 ` IainS
2022-05-27 10:25 Iain Sandoe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F670628-977A-4305-8E0B-1D64E95833EA@sandoe-acoustics.co.uk \
--to=developer@sandoe-acoustics.co.uk \
--cc=gcc@gcc.gnu.org \
--cc=iant@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).