Subject: Re: Compiler bug building SDL
To: Gary Duzan <gary@duzan.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 10/23/2003 12:50:10
On Thursday, October 23, 2003, at 04:35  AM, Gary Duzan wrote:
> SDL_RLEaccel.c: In function `RLEClipBlit':
> SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
> SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
> SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
> gmake[3]: *** [SDL_RLEaccel.lo] Error 1
> ======================================================================= 
> ====
>
> Removing -O2 or changing it to -O3 allows it to compile normally. -O
> generates a similar message, but with only two "invalid `asm'"  
> messages.
>
>    Is this a known problem? Should I send-pr it or report it to the
> gcc folks?

How is this a compiler problem?  It could just as well be bogus asm()  
statements in the SDL source code (which are often affected by  
optimization level).

         -- Jason R. Thorpe <thorpej@wasabisystems.com>