[Bug rtl-optimization/49169] ARM: optimisations strip the Thumb/ARM mode bit off function pointers

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Thu May 26 07:59:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49169

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-05-26 07:56:05 UTC ---
Try passing the function pointer through an opaque identity transform:

    asm("" : "=r"(p) : "0"(main));
    if ((uintptr_t)p & 1) /* do thumb case */



More information about the Gcc-bugs mailing list