__builtin_va_list bug or feature

Richard Henderson rth@redhat.com
Fri Apr 25 22:02:00 GMT 2003


On Fri, Apr 25, 2003 at 08:02:04PM +0200, Gisle Vanem wrote:
> I'd rather prefer wrong output than a generated trap. Which neither
> MingW nor djgpp have handlers for.  Seems gcc is biased towards Linux
> in this case.

I'm surprised there's no handler installed to generate 
some sort of signal in this case -- seems like a point
that could be improved for mingw and djgpp.

Anyway, if you'd rather we call abort instead, you can
comment out the following pattern in gcc/config/i386/i386.md:

	(define_insn "trap"
	  [(trap_if (const_int 1) (const_int 5))]
	  ""
	  "int\t$5")


r~



More information about the Gcc mailing list