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] Fix misuse of always_inline attribute in 3 hotpatch tests


On Mon, Jun 01, 2015 at 10:39:34AM +0200, Jakub Jelinek wrote:
> always_inline attribute is meaningful only for functions declared
> inline, and the compiler even warns about this, so it is unclear
> to me why the tests are attempting to use that.

Since Gcc emits just a cryptic warning and not an error, many
people seem to have missed that always_inline's behaviour is
undefined for functions without "inline".  There are many more
test cases that forget the "inline" and filter the warning with
"-Wno-attributes".  I'll post an add-on patch later after testing
it.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany


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