Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 1997 21:44:16 -0600
From:      jlemon@americantv.com (Jonathan Lemon)
To:        phk@freebsd.org
Cc:        current@freebsd.org
Subject:   Re: GCC or TEXINFO bug...
Message-ID:  <Mutt.19970121214416.jlemon@right.PCS>
In-Reply-To: <7182.853589313@critter.dk.tfs.com>; from Poul-Henning Kamp on Jan 18, 1997 13:08:33 %2B0100
References:  <7182.853589313@critter.dk.tfs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> compiling /src/contrib/texinfo/makeinfo/makeinfo.c with -O3 on a -current
> system results in a makeinfo program that coredumps with a sig 11.
> 
> Any Gcc hackers on the list that want to debug this one ?

Compiling with -O3 inlines functions.  However the function that is being
inlined in makeinfo.c (add_word_args()) is a vararg function and must not be 
inlined. 

The code in question is K&R style, and AFIK, there is no way for the compiler
to determine that the function uses vararg.  Either change the code to use
prototypes, or use stdarg, or add a directive to prevent inlining.
--
Jonathan 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970121214416.jlemon>