mangler fails with gcc-4.3.x and gcc-4.1.2 on sparc; suggest disabling -fvia-C
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.
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Driver |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |