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: __builtin_va_list bug or feature


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~


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