Message-ID: <19990629185744.C4792@tabor.ta.jcu.cz> Date: Tue, 29 Jun 1999 18:57:44 +0200 From: Jan Hubicka To: djgpp-workers AT delorie DOT com, salvador Subject: Re: Regparm and asm statements.. what now? References: <3778E043 DOT D8D5F4 AT inti DOT gov DOT ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i In-Reply-To: ; from Eli Zaretskii on Tue, Jun 29, 1999 at 06:42:46PM +0300 Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > What happens if someone compiles a program without including the headers > that declare the prototype? > > According to ANSI C, users can legitimately do that, and still assume > they get a working program. You will get broken program with regparm anyways, because the function with variable number of arguments are called using stack convention. So you need to include stdio to get regparmized hello world working. I am not sure if this is OK and later this can be fixed in gcc2.96. It will require some nasty hacks to varrargs stuff. Honza