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

2013-07-03 Thread Bastian Blank
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 > regis

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

2013-07-03 Thread Volkmar Sieh
Package: gcc-4.7 Version: 4.7.2-5 Severity: normal --- Please enter the report below this line. --- When I compile and run the small program below using gcc -O2 -o test test.c ./test I get the (correct) output 1 When I compile and run the small program below using gcc -DFAIL -O2