This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: statement expressions and extended asm bug?
- From: kaih at khms dot westfalen dot de (Kai Henningsen)
- To: gcc at gcc dot gnu dot org
- Date: 16 Mar 2004 21:56:00 +0200
- Subject: Re: statement expressions and extended asm bug?
- Comment: Unsolicited commercial mail will incur an US$100 handling fee per received mail.
- Organization: Organisation? Me?! Are you kidding?
- References: <20040315112744.GA86063@lorien.int.gecko.de>
gni@gecko.de (Gunther Nikl) wrote on 15.03.04 in <20040315112744.GA86063@lorien.int.gecko.de>:
> #define f1() \
> ({ register int _d0 __asm("d0"); \
> __asm volatile ("moveq #11,d0" : "=r" (_d0) : /**/ : "fp0", "fp1", "cc",
> "memory"); \ _d0; })
If the problem is the possibility of returning lvalues from statement
expressions, what would happen with the following?
#define f1() \
({ register int _d0 __asm("d0"); \
__asm volatile ("moveq #11,d0" : "=r" (_d0) : /**/ : "fp0", "fp1", "cc",
"memory"); \ _d0 + 0; })
(The only change is at the end.)
MfG Kai