This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, avr] Propagate -mrelax gcc driver flag to assembler


2014-05-16 14:02 GMT+04:00 Georg-Johann Lay <avr@gjlay.de>:
> Am 05/15/2014 09:55 AM, schrieb Senthil Kumar Selvaraj:
>
>> On Wed, May 14, 2014 at 12:56:54PM +0200, Rainer Orth wrote:
>>>
>>> Georg-Johann Lay <avr@gjlay.de> writes:
>>>
>>>> Or what about simply that, which works for me:
>>>>
>>>>
>>>> Index: config/avr/avr.h
>>>> ===================================================================
>>>> --- config/avr/avr.h    (revision 210276)
>>>> +++ config/avr/avr.h    (working copy)
>>>> @@ -512,7 +512,11 @@ extern const char *avr_device_to_sp8 (in
>>>>       %{!fenforce-eh-specs:-fno-enforce-eh-specs} \
>>>>       %{!fexceptions:-fno-exceptions}"
>>>>
>>>> +#ifdef HAVE_AS_AVR_LINK_RELAX_OPTION
>>>> +#define ASM_SPEC "%:device_to_as(%{mmcu=*:%*}) %{mrelax:-mlink-relax} "
>>>> +#else
>>>>   #define ASM_SPEC "%:device_to_as(%{mmcu=*:%*}) "
>>>> +#endif
>>>>
>>>>   #define LINK_SPEC "\
>>>>   %{mrelax:--relax\
>>>
>>>
>>> Better yet something like
>>>
>>> #ifdef HAVE_AS_AVR_LINK_RELAX_OPTION
>>> #define LINK_RELAX_SPEC "%{mrelax:-mlink-relax} "
>>> #else
>>> #define LINK_RELAX_SPEC ""
>>> #endif
>>>
>>> #define ASM_SPEC "%:device_to_as(%{mmcu=*:%*}) " LINK_RELAX_SPEC
>>>
>>
>> Does this look ok? I don't have commit access, so could someone commit
>> this please?
>
>
> Hi, looks fine to me.  Thanks


I'm on vacation until the 24-may.

Denis.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]