[Bug tree-optimization/66163] [6 Regression] Not working Firefox built with LTO

hubicka at ucw dot cz gcc-bugzilla@gcc.gnu.org
Mon May 18 14:32:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66163

--- Comment #7 from Jan Hubicka <hubicka at ucw dot cz> ---
> According to -fsanitize=null, there are many places in Firefox that produce
> undefined behavior in followin way:
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=1165904
> 
> One common example:
> 
>     static size_t offsetOfThis() {
>         JitFrameLayout* base = nullptr;
>         return reinterpret_cast<size_t>(&base->argv()[0]);
>     }

Jason,
just to double check, this is indeed an undefined and offsetof is usable
only for POD?

Honza



More information about the Gcc-bugs mailing list