Ticket #709 (closed bug: fixed)
"Fixup too large" error with -fasm on PowerPC
| Reported by: | simonmar | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 6.8.1 |
| Component: | Compiler (NCG) | Version: | 7.7 |
| Keywords: | Cc: | pho@… | |
| Operating System: | Unknown/Multiple | Architecture: | powerpc |
| Type of failure: | Building GHC failed | Difficulty: | Moderate (less than a day) |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
The native code generator on PowerPC can sometimes generate code that doesn't pass the assembler. The error is "Fixup too large" from the assembler.
Workaround is to use -fvia-C.
Wolfgang Thaller says this: Conditional branches on the PowerPC only have 16 bits for the displacement. I have been reluctant to fix this so far because it means either slowing down all conditional branches or actually checking the size of the generated code before deciding what branch instructions to use, which I'm afraid would add an additional pass to the NCG.
Change History
Note: See
TracTickets for help on using
tickets.
