[GHC] #14452: `-optc-O3` getting shadowed by automatically injected -O flags

GHC ghc-devs at haskell.org
Fri Nov 30 14:22:43 UTC 2018


#14452: `-optc-O3` getting shadowed by automatically injected -O flags
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:  make test
                                     |  TEST=T14452
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5318
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RolandSenn):

 * owner:  RolandSenn => (none)
 * status:  closed => new
 * resolution:  fixed =>


Comment:

 The test T14452 is broken under Windows. Under Windows all the parameters
 of ''gcc'' including the last (''-O3'') are quoted:


 {{{
 "C:\msys64\home\Roli\ghc\inplace\lib\../mingw/bin/gcc.exe" "-fno-stack-
 protector" "-DTABLES_NEXT_TO_CODE" "-x" "c"
 "C:\Users\Roli\AppData\Local\Temp\ghc7308_0\ghc_2.c" "-o"
 "C:\Users\Roli\AppData\Local\Temp\ghc7308_0\ghc_3.s" "-no-pie"
 "-Wimplicit" "-S" "-O2" "-include"
 "C:/msys64/home/Roli/ghc/includes\ghcversion.h" "-iquote."
 "-IC:\msys64\home\Roli\ghc\libraries\base\include"
 "-IC:\msys64\home\Roli\ghc\libraries\base\dist-install\build\include"
 "-IC:\msys64\home\Roli\ghc\libraries\integer-gmp\include"
 "-IC:\msys64\home\Roli\ghc\libraries\integer-gmp\dist-
 install\build\include" "-IC:/msys64/home/Roli/ghc/rts/dist/build"
 "-IC:/msys64/home/Roli/ghc/includes" "-IC:/msys64/home/Roli/ghc/includes
 /dist-derivedconstants/header" "-O3"
 }}}

 I'll create a better test.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14452#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list