This is the mail archive of the
mailing list for the GCC project.
target attributes, pragmas and preprocessor macros
- From: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Cc: Christian Bruel <christian dot bruel at st dot com>
- Date: Wed, 13 May 2015 16:43:50 +0100
- Subject: target attributes, pragmas and preprocessor macros
- Authentication-results: sourceware.org; auth=none
Are target attributes supposed to redefine the preprocessor macros available?
For example, on aarch64 if the file is compiled with floating point support
the __ARM_FEATURE_FMA predefine is available. If the user adds to a function
a target attribute disabling floating point, then is __ARM_FEATURE_FMA supposed
to be undefined in the body of that function?
Looking at some backends, it seems that only #pragmas are supposed to have that effect,
but I just wanted to confirm.