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


On Mon, Jan 14, 2002 at 03:31:42PM -0800, Richard Henderson wrote:
> On Mon, Jan 14, 2002 at 03:26:06PM -0800, Aldy Hernandez wrote:
> > On Mon, Jan 14, 2002 at 01:00:21PM -0800, Richard Henderson wrote:
> > > 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.
> 
> Does my suggestion not work?

i didn't read far enough through your mail b4 responding.  however...

if this is what you mean (for the void function), then no.

culebra:/build/t3/gcc$ cat b.c  
main() {
        __builtin_choose_expr(1, 5,  (0 = 0));
}
culebra:/build/t3/gcc$ ./cc1 -quiet b.c
b.c: In function `main':
b.c:2: invalid lvalue in assignment


Cheers.
Aldy
--
Aldy Hernandez                  E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.


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