discuss-gnustep
[Top][All Lists]
Advanced

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

file-specific optimization options?


From: Stephen Brandon
Subject: file-specific optimization options?
Date: Tue, 06 Nov 2001 14:26:03 +0000

Hi,

gcc-2.95.3/Cygwin/MinGW/Win32
Latest CVS GNUstep

I have a file which refuses to compile with -O2. It gives
the appended error.

I found advice on the net to the effect that removing
optimization can help -- it did, and now the file compiles
perfectly.

However I don't want to lose optimization for the entire
project!

On NeXTSTEP you used to be able to use #pragma CC_OPT_OFF
and CC_OPT_RESTORE to turn optimization on and off within a
file. I've looked at the gcc sources and that is definitely
NeXTSTEP specific, and does not work on my setup. I don't
see any other replacement for it on other platforms.

Does anyone know (i) if there is a portable replacement for
this pragma, or (ii) if there is support in gnustep-make for
file-specific CC options? If not, can anyone suggest a
workaround?

Cheers,
Stephen Brandon
stephen@brandonitconsulting.co.uk


parseScore.m: In function `eval':
parseScore.m:1473: Unable to generate reloads for:
(insn 1663 1661 1664 (parallel[
            (set (subreg:SI (reg/v:DI 3 %ebx) 0)
                (fix:SI (fix:DF (subreg:DF (reg/v:DI 3 %ebx)
0))))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -6 [0xfffffffa])) 0))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -8 [0xfffffff8])) 0))
            (clobber (mem:SI (plus:SI (reg:SI 6 %ebp)
                        (const_int -4 [0xfffffffc])) 0))
            (clobber (scratch:HI))
        ] ) 149 {fix_truncdfsi2+1} (nil)
    (expr_list:REG_UNUSED (scratch:HI)
        (nil)))
make[1]: *** [shared_obj/ix86/mingw32/gnu-gnu-gnu/parseScore.o]
Error 1
make: *** [libMusicKit.all.library.variables] Error 2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]