delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/06/29/12:56:52

Message-ID: <19990629185744.C4792@tabor.ta.jcu.cz>
Date: Tue, 29 Jun 1999 18:57:44 +0200
From: Jan Hubicka <hubicka AT ta DOT jcu DOT cz>
To: djgpp-workers AT delorie DOT com, salvador <salvador AT inti DOT gov DOT ar>
Subject: Re: Regparm and asm statements.. what now?
References: <3778E043 DOT D8D5F4 AT inti DOT gov DOT ar> <Pine DOT SUN DOT 3 DOT 91 DOT 990629184054 DOT 18841S-100000 AT is>
Mime-Version: 1.0
X-Mailer: Mutt 0.93i
In-Reply-To: <Pine.SUN.3.91.990629184054.18841S-100000@is>; 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

> 
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019