This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rfc: __builtin_syntax_error


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 (...); \
    })


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]