rfc: __builtin_syntax_error

Richard Sandiford rsandifo@redhat.com
Wed Jan 16 03:50:00 GMT 2002


Aldy Hernandez <aldyh@redhat.com> writes:

> > Did you try it?  I bet you'll get the prototyping error/warning even if
> > the call to it is never emitted.
> 
> hmmm. you're right.  i've reverted to __altivec_link_error_invalid_argument
> and then having a dummy entry in altivec.h:
> 
> /* Dummy prototype.  */
> extern void __altivec_link_error_invalid_argument ();

Would this work?

    ({ \
       extern __altivec_link_error_invalid_argument_on_line_##__LINE__ (); \
       __builtin_choose_expr (...); \
    })



More information about the Gcc mailing list