| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| From: | Andris Pavenis <pavenis AT latnet DOT lv> |
| Subject: | Re: gcc-3.4 and djgpp/src/debug/common/dbgcom.c |
| Date: | Tue, 9 Nov 2004 10:22:08 +0200 |
| User-Agent: | KMail/1.7.1 |
| To: | djgpp-workers AT delorie DOT com |
| MIME-Version: | 1.0 |
| Message-Id: | <200411091022.08891.pavenis@latnet.lv> |
| X-Spam-Checker-Version: | SpamAssassin 2.64 (2004-01-11) on katosiko.hut.fi |
| X-TKK-Virus-Scanned: | by amavisd-new-2.1.2-hutcc at katosiko.hut.fi |
| Reply-To: | djgpp-workers AT delorie DOT com |
On Friday 29 October 2004 19:05, ams AT ludd DOT ltu DOT se wrote:
> According to Andris Pavenis:
> > On Wednesday 27 October 2004 19:43, DJ Delorie wrote:
> > > Can we put it as an input operand of that big asm? We don't have to
> > > use it, just add it.
> > >
> > > asm("
> > > ...
> > > " : "g" (forced_test));
> >
> > Unfortunatelly it doesn't work. Both gcc-3.4.2 and gcc-4.0.0 20041014
> > rejects extended inline assembler outside the procedures.
>
> I suspect that then you could put it in any function... But... Well...
> Is there any reason why we shouldn't use "__attribute__((unused))"?
> Or doesn't that work either?
Tested with gcc-3.4.3 and gcc-4.0.0 20041104.
In both cases __attribute__((unused)) didn't prevent it from optimized out.
Andris
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |