This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Using __attribute__((target("arm"))) on ARM cross compiler: warning: target attribute is not supported on this machine [-Wattributes]
- From: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>
- To: Gabriel Marcano <gabemarcano at yahoo dot com>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 31 May 2016 15:04:44 +0100
- Subject: Re: Using __attribute__((target("arm"))) on ARM cross compiler: warning: target attribute is not supported on this machine [-Wattributes]
- Authentication-results: sourceware.org; auth=none
- References: <2143393256 dot 1510941 dot 1464673890382 dot JavaMail dot yahoo dot ref at mail dot yahoo dot com> <2143393256 dot 1510941 dot 1464673890382 dot JavaMail dot yahoo at mail dot yahoo dot com> <574D4924 dot 40301 at foss dot arm dot com> <1526932607 dot 1727960 dot 1464703154304 dot JavaMail dot yahoo at mail dot yahoo dot com>
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