[cfe-dev] Unused attribute warnings for target-specific attributes
Anton Korobeynikov
anton at korobeynikov.info
Thu Sep 20 02:16:26 PDT 2012
Hello
> Wattributes apparently warns about
> __attribute__((__force_align_arg_pointer__)) being unused when
> building for ARM. As far as I understand, __force_align_arg_pointer__
> is a x86-only attribute. What's the right fix here? Should application
> code make sure to only use the attribute when building for x86? Or
> should clang not warn about unused attributes that are for different
> architectures from the current target?
Application definitely should not use target attribute on other
target. After all, handling this is simple preprocessor thing.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the cfe-dev
mailing list