1) Remove all -fvia-C options from the makefile in ghc/compiler.

We still have to compile with 5.02.x, so there might be some -fvia-Cs still required. Actually I don't have a 5.02.x build to test with, but I have a 5.04.x.

Ah. I forgot about that.

Well, the real reason that those options annoy me is that it interferes with dynamic linking - -fPIC -fvia-C currently only works on Mac OS X, so using a dynamically-linked GHC anywhere else requires modifying the Makefile.

2) Make -O no longer imply -fvia-C.

The only reason that -O still implies -fvia-C is that the NCG has a pretty drastic effect on floating pt performance on x86.

So our third option would be to keep the behaviour only on x86. This might generate additional confusion, though.


My real motive behind bringing this up now is, again, dynamic linking - I wasted some time in gdb trying to figure out why dynamic linking didn't work, before I found out that a few modules in GHC had a -O that overrode my previous -O -fasm.

Cheers,

Wolfgang

_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to