[commit: ghc] master: Call gcc with '-x assembler-with-cpp' instead of '-x assembler'. (eec4c10)

Erik de Castro <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/eec4c10819ac1402555570c00688b39da136313e

>---------------------------------------------------------------

commit eec4c10819ac1402555570c00688b39da136313e
Author: Erik de Castro Lopo <[email protected]>
Date:   Sun Dec 16 04:22:17 2012 +1100

    Call gcc with '-x assembler-with-cpp' instead of '-x assembler'.
    
    On x86 and powerpc, the second form above was ignoring all the CPP
    lines and hence trying to compile x86 asm on powerpc and powerpc asm
    on x86.

>---------------------------------------------------------------

 compiler/main/DriverPipeline.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index a216370..849532d 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1241,7 +1241,7 @@ runPhase As input_fn dflags
                            then [SysTools.Option "-mcpu=v9"]
                            else [])
 
-                       ++ [ SysTools.Option "-x", SysTools.Option "assembler"
+                       ++ [ SysTools.Option "-x", SysTools.Option "assembler-with-cpp"
                           , SysTools.Option "-c"
                           , SysTools.FileOption "" inputFilename
                           , SysTools.Option "-o"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.