delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/07/01/06:09:42

Date: Thu, 1 Jul 1999 12:31:34 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jan Hubicka <hubicka AT ta DOT jcu DOT cz>
cc: djgpp-workers AT delorie DOT com, salvador <salvador AT inti DOT gov DOT ar>
Subject: Re: Regparm and asm statements.. what now?
In-Reply-To: <19990629185744.C4792@tabor.ta.jcu.cz>
Message-ID: <Pine.SUN.3.91.990701123119.10503F-100000@is>
MIME-Version: 1.0
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

On Tue, 29 Jun 1999, Jan Hubicka wrote:

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

I wasn't talking about programs that use regparm.  I was talking about
programs like this:

 extern int puts ();

 int main (void)
 {
   puts ("Hello world!");
 }

If the library is compiled with non-default parameter-passing, this
program will crash if compiled with no special switches.  ANSI C says
it should work.

- Raw text -


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