This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rfc: __builtin_syntax_error
On Mon, Jan 14, 2002 at 01:00:21PM -0800, Richard Henderson wrote:
> On Mon, Jan 14, 2002 at 11:00:58AM -0800, Aldy Hernandez wrote:
> > __builtin_choose_expr (__builtin_types_compatible (typeof(a), char),
> > something_char(a),
> > check for int.... something_int(a)
> > check for float.. something_float(a)
> > default:
> > __builtin_syntax_error("invalid type", __LINE__)
>
> How about (void)0 as the last entry? What would prevent the
> result from being used. If the "function" is already a void,
> you could try (0 = 0) or something.
how about a store instruction: store(a, b)
b <-- a
...where there is no result. it will quietly fail.
aldy