[LTO] Fix C++ thunks

Richard Guenther richard.guenther@gmail.com
Mon Dec 29 19:44:00 GMT 2008


On Mon, Dec 29, 2008 at 7:11 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Mon, Dec 29, 2008 at 1:10 PM, Andrew Pinski <pinskia@gmail.com> wrote:
>> Also the suggestion of __builtin_va_arg_pack, that only works with
>> inline functions and is not able to expand to something correct IIRC.
>
>    case BUILT_IN_VA_ARG_PACK:
>      /* All valid uses of __builtin_va_arg_pack () are removed during
>         inlining.  */
>      error ("%Kinvalid use of %<__builtin_va_arg_pack ()%>", exp);
>      return const0_rtx;

But you can simply inline the trunked function in this case.

Richard.

> Thanks,
> Andrew Pinski
>



More information about the Gcc-patches mailing list