Decoupling -O from -fvia-C

Wolfgang Thaller wolfgang.thaller at gmx.net
Fri Dec 1 12:13:31 EST 2006


On 1-Dec-06, at 3:51 PM, Bulat Ziganshin wrote:

> mingw32 platform shouldn't be affected by problems specific to macs.
> while via-C is faster here, it should be used. you can change mac's
> compilation settings independently

I never said that this was a mac-specific problem. It affects all  
position-independent code generation on x86.

Also, via-C compilation has other slight differences from fasm  
compilation, like for example the need for prototypes for FFI- 
imported functions. Having those things change implicitly with -O has  
led to confusion in the past; having them change implicitly on some  
platforms but not on others is even worse.

Cheers,

Wolfgang




More information about the Cvs-ghc mailing list