#3817: -fvia-C / mangler fails with gcc-4.3.x on sparc; suggest disabling
-fvia-C
---------------------------------+------------------------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Driver | Version: 6.12.1
Keywords: | Difficulty: Easy (less than 1 hour)
Os: Unknown/Multiple | Testcase:
Architecture: sparc | Failure: Runtime crash
---------------------------------+------------------------------------------
The Evil Mangler does not grok the output of gcc-4.3.x on Sparc systems
(Linux or Solaris). Results look like:
{{{
[1 of 1] Compiling Main ( Main.hs, Main.o )
/tmp/ghc19196_0/ghc19196_0.hc: In function ‘rhT_entry’:
/tmp/ghc19196_0/ghc19196_0.hc:38:0:
note: if this code is reached, the program will abort
}}}
And that which it prophesies does come to pass
{{{
$ ./Main
Illegal instruction
}}}
I don't suggest anyone actually fix the Evil Mangler. Instead we could
just disable -fvia-C (registerised). Have sparc be the first arch to make
the switch! Alternatively, if we're feeling generous, only enable support
for registerised -fvia-C if ./configure detects gcc version 4.2 or less.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3817>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs