This is the mail archive of the gcc-help@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: Using __attribute__((target("arm"))) on ARM cross compiler: warning: target attribute is not supported on this machine [-Wattributes]



On 31/05/16 14:59, Gabriel Marcano wrote:
This was added for GCC 6.1. So if you want to use target attributes
you'll have to use that version. They are not supported in GCC 5.3.

Oh. I swore I had read about the target attribute in earlier
documentation, but I guess I was wrong. Looks like I am going to have
to learn how to compile a cross-compiler.

GCC 5.3 supports some function attributes
(see https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc/Function-Attributes.html#Function-Attributes)
like "interrupt", but not _target_ attributes like "arm" or "thumb".

Kyrill

Thanks.

Gabriel E. Marcano


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