[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#714841: [gcc-4.7] gcc generates wrong code for global register variables



On Wed, Jul 03, 2013 at 12:05:45PM +0200, Volkmar Sieh wrote:
> The define "-DFAIL" only adds an empty asm statement which shouldn't make any 
> difference (see below).

Please fix the compiler errors first:

| test.c: In function ‘main’:
| test.c:37:1: error: bp cannot be used in asm here

> register unsigned long *env asm ("rbp");

rbp is no free to use register. It is the stack base.

If I fix this problem, I see no bug with 4.7.3-4. Please note that the current
version in Debian unstable is 4.8.

Also please show that the code in question is valid at all.

Bastian

-- 
You!  What PLANET is this!
		-- McCoy, "The City on the Edge of Forever", stardate 3134.0


Reply to: