[PATCH] Fix PR64078

Marek Polacek polacek@redhat.com
Mon Sep 7 10:41:00 GMT 2015


On Sun, Sep 06, 2015 at 07:21:13PM +0200, Bernd Edlinger wrote:
> Hi,
> 
> we observed sporadic failures of the following two test cases (see PR64078):
> c-c++-common/ubsan/object-size-9.c and c-c++-common/ubsan/object-size-10.c
> 
> For object-size-9.c this happens in a reproducible way when -fpic option is used:
> If that option is used, it is slightly less desirable to inline the functions, but if an explicit
> "inline" is added, the function is still in-lined, even if -fpic is used.

So if we rely on the function being inlined I think it would be better to add
the always_inline attribute.

	Marek



More information about the Gcc-patches mailing list