From owner-freebsd-current Tue Jan 21 19:41:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.4) id TAA09430 for current-outgoing; Tue, 21 Jan 1997 19:41:32 -0800 (PST) Received: from sumatra.americantv.com (sumatra.americantv.com [199.184.181.250]) by freefall.freebsd.org (8.8.5/8.8.4) with ESMTP id TAA09423; Tue, 21 Jan 1997 19:41:26 -0800 (PST) Received: from right.PCS (right.pcs. [148.105.10.31]) by sumatra.americantv.com (8.7.6/8.7.3) with ESMTP id VAA12416; Tue, 21 Jan 1997 21:47:50 -0600 (CST) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id DAA17419; Wed, 22 Jan 1997 03:44:16 GMT Message-ID: 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... References: <7182.853589313@critter.dk.tfs.com> X-Mailer: Mutt 0.56e Mime-Version: 1.0 In-Reply-To: <7182.853589313@critter.dk.tfs.com>; from Poul-Henning Kamp on Jan 18, 1997 13:08:33 +0100 Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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