This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rfc: __builtin_syntax_error
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Geoff Keating <geoffk at geoffk dot org>,"Timothy J. Wood" <tjw at omnigroup dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 15 Jan 2002 15:42:22 -0500
- Subject: Re: rfc: __builtin_syntax_error
- References: <671CECDA-0952-11D6-B3E8-0030657CEB62@omnigroup.com> <jm66644awj.fsf@desire.geoffk.org> <20020115203434.GA20018@redhat.com>
On Tue, Jan 15, 2002 at 12:34:34PM -0800, Aldy Hernandez wrote:
> On Mon, Jan 14, 2002 at 06:15:40PM -0800, Geoff Keating wrote:
>
> > *puts on really tricky thinking hat*
> >
> > You could try
> >
> > __altivec_link_error_invalid_argument_on_line_##__LINE__ ()
> >
> > since this is in a macro. Then you have the prototyping problem of
> > course.
>
> we have a winner! i've implemented this.
>
> who cares about the prototype. now they'll get to errors instead of one.
>
> two is better than one :)
Did you try it? I bet you'll get the prototyping error/warning even if
the call to it is never emitted.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer