Ticket #7065 (closed bug: fixed)

Opened 11 months ago

Last modified 11 months ago

x86 : Pattern match fail in an equation for `freeReg': freeReg 5 = ...

Reported by: erikd Owned by:
Priority: normal Milestone: 7.6.1
Component: Compiler Version: 7.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: x86
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This is failing on git HEAD (4450cc7f05c65544514c28aca12a79f78ecf75fb)

  HC [stage 0] compiler/stage1/build/X86/Regs.o

compiler/nativeGen/X86/Regs.hs:471:1:
    Warning: Pattern match(es) are overlapped
             In an equation for `freeReg': freeReg 5 = ...

Attachments

0002-Fix-compile-for-non-x86-x86-64.-7065.patch Download (1.0 KB) - added by erikd 11 months ago.
Fixes this so it compiles on PowerPC. Tested on x86 and x86-64 as well.

Change History

Changed 11 months ago by pcapriotti

  • owner set to pcapriotti
  • difficulty set to Unknown
  • milestone set to 7.6.1

Fix is on the way.

Changed 11 months ago by p.capriotti@…

commit 6ed684b35af3045a41e34b4f8a0b6dd05a6eb700

Author: Paolo Capriotti <p.capriotti@gmail.com>
Date:   Tue Jul 10 10:36:03 2012 +0100

    Fix overlapping patterns warning (#7065)

 compiler/nativeGen/X86/Regs.hs |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

Changed 11 months ago by pcapriotti

  • status changed from new to closed
  • resolution set to fixed

Changed 11 months ago by erikd

  • owner pcapriotti deleted
  • status changed from closed to new
  • resolution fixed deleted

With the above patch it now fails to compile on powerpc. Error is:

compiler/nativeGen/X86/Regs.hs:407:10:
    The type signature for `freeRegBase' lacks an accompanying binding

Currently testing a patch to fix it.

Changed 11 months ago by erikd

Fixes this so it compiles on PowerPC. Tested on x86 and x86-64 as well.

Changed 11 months ago by p.capriotti@…

commit 5b93af461498db8352045b16ccdd90efcd6b8023

Author: Paolo Capriotti <p.capriotti@gmail.com>
Date:   Wed Jul 11 14:07:19 2012 +0100

    Fix build for non x86/x86_64 (#7065)

 compiler/nativeGen/X86/Regs.hs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Changed 11 months ago by pcapriotti

  • status changed from new to closed
  • resolution set to fixed

Fixed by removing the freeRegBase function in non-x86 builds.

Note: See TracTickets for help on using tickets.