This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, lto]: Handle *tm regparm attribute
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Dec 2011 16:33:00 +0100
- Subject: Re: [PATCH, lto]: Handle *tm regparm attribute
- References: <CAFULd4YkkX0PJXvFwn5iPhkNF5T=U8DK4BV4Kz3iXVxA-mNcOA@mail.gmail.com> <20111130170338.GA997@atrey.karlin.mff.cuni.cz>
On Wed, Nov 30, 2011 at 6:03 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> Hello!
>>
>> Attached patch handles "*tm regparm" attribute, to avoid "*tm regparm"
>> attribute ignored warnings in lto compile on non-x86 targets.
>>
>> 2011-11-30 ?Uros Bizjak ?<ubizjak@gmail.com>
>>
>> ? ? ? * lto-lang.c (lto_attribute_table): Handle *tm regparm.
>> ? ? ? (ignore_attribute): New.
>>
>> Tested on alphaev68-pc-linux-gnu and x86_64-pc-linux-gnu {,-m32}.
>>
>> OK for mainline?
>
> Won't similar change be needed for other tm attributes? ?Perhaps we could just
> silence the warning with in_lto_p predicate.
Doesn't it need to be handled as well, not just ignored?
Richard.
> Honza