X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Message-Id: <200410291605.i9TG5pwR022734@speedy.ludd.ltu.se> Subject: Re: gcc-3.4 and djgpp/src/debug/common/dbgcom.c In-Reply-To: <200410282119.28711.pavenis@latnet.lv> "from Andris Pavenis at Oct 28, 2004 09:19:28 pm" To: djgpp-workers AT delorie DOT com Date: Fri, 29 Oct 2004 18:05:51 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL78 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-ltu-MailScanner-Information: Please contact the ISP for more information X-ltu-MailScanner: Found to be clean X-MailScanner-From: ams AT ludd DOT ltu DOT se Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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? Right, MartinS