This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Are there an option to pass assembler option to lto wrapper?
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Konstantin Vladimirov <konstantin dot vladimirov at gmail dot com>
- Cc: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Thu, 11 Apr 2013 11:14:52 +0200
- Subject: Re: Are there an option to pass assembler option to lto wrapper?
- References: <CADn89gQP3wig1WXGtdN9hfoY-Vwtu_wirif9cAhfot_O5_kFEQ at mail dot gmail dot com>
On Thu, Apr 11, 2013 at 11:02 AM, Konstantin Vladimirov
<konstantin.vladimirov@gmail.com> wrote:
> Hi,
>
> When I am running:
>
> gcc -Wa,--some-custom-option
>
> everything is ok.
>
> But when I am running:
>
> gcc -flto -Wa,--some-custom-option
>
> then this option is not passed to assembler, when lto wrapper calls
> it. I need somehow pass this option to every assembler call, including
> calls under LTO.
>
> I am wondering:
>
> 1) Are there any standard way to do this? (question to gcc-help)
> 2) Can I do this, redefining some specs in my custom backend? (question to gcc)
>
> My experiments so far were in vain.
I don't think there is a way to do that. The assembler options are already
split out by the GCC driver before invocating lto-wrapper with the linker
arguments. You'd need to teach it to not do that.
Richard.
> ---
> With best regards, Konstantin