delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/02/14:58:52

From: Hans-Bernhard Broeker <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: inline trouble
Date: 2 Feb 2000 18:03:51 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 38
Message-ID: <879ri7$a04$1@nets3.rz.RWTH-Aachen.DE>
References: <86i0tf$jnf$1 AT inf6serv DOT rug DOT ac DOT be> <86i2ub$jn8$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <86pm0u$325jc$1 AT fu-berlin DOT de>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 949514631 10244 137.226.32.75 (2 Feb 2000 18:03:51 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 2 Feb 2000 18:03:51 GMT
User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586))
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Dieter Buerssner <buers AT gmx DOT de> wrote:
> broeker AT acp3bf DOT physik DOT rwth-aachen DOT de (Hans-Bernhard Broeker) wrote in 
> <86i2ub$jn8$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>:
>>Hans Yperman <hyperman AT eduserv1 DOT rug DOT ac DOT be> wrote:

[...]

>>It's not a question of DJGPP, but of gcc version. 

> Yes. So this forum may not be the correct one to discuss this, but ...

>>gcc-2.95.2 is
>>considerably less forgiving regarding not quite correct extended
>>inline assembly than old gcc-2.8.1 was. You're not allowed to mark the
>>same register both as 'input' and 'dirty', IIRC. 

> I believe, you are correct. But it seems stupid to me, and is 
> not compatible with older versions. 

According to the explanation on the GCC web pages, the old method that
tolerated this was simply too broken to let it live. It could confuse
the optimizer into producing incorrect code, for some rare, but
existing cases. They claim they had no choice but to break backwards
compatibility, once and for all.

[...]
>>The GCC home page has more details on this.

> Do you have an URL for this?

http://org.gnu.de/software/gcc/gcc.html   --- GCC home mirror in Germany.
http://gcc.gnu.org/fom_serv/cache/23.html

The second is the page inside the GCC FAQ that discusses this particular
issue.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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