On Sun, May 20, 2007 at 05:03:57PM +0200, Dag-Erling Smørgrav wrote:
> Alexander Kabaev <[EMAIL PROTECTED]> writes:
> > there were several reports of OpenSSL being broken when compiled with
> > GCC 4.2. It turns out OpenSSL uses function casting feature that was
> > aggressively de-supported by GCC 4.2 and GCC goes as far as inserting
> > invalid instructions ON PURPOSE to discourage the practice.
> 
> Is there a web page somewhere (or an archived mailing list discussion,
> or whatever) which discusses the issue and explains the rationale for
> intentionally generating incorrect code?

It happened in the past, e.g. with va_arg. In that case gcc creates
explicit abort() calls, because it can't refuse the code (syntactically correct
C), but the runtime behaviour is completely implementation defined.

Joerg
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to