Opened 8 months ago

#16174 new bug

GhcEnableTablesNextToCode=NO breaks NCG on macOS

Reported by: angerman Owned by:
Priority: high Milestone: 8.6.2
Component: Compiler (CodeGen) Version: 8.6.3
Keywords: NCG, TNCT, TablesNextToCode Cc: bgamari, carter, terrorjack
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


It appears as if GhcEnableTablesNextToCode=NO breaks the NCG on macOS as early as GHC 8.4.

Running the following

git reset --hard HEAD
git clean -xfd
git submodule update --init --recursive
git clean -xfd
sed -E "s/^#BuildFlavour[ ]+= quick-cross$/BuildFlavour = quick/" < mk/ > mk/
echo "GhcEnableTablesNextToCode=NO" >> mk/
./boot && ./configure --silent && make -s -j9

on macOS with the 8.4 and 8.6 generated duplicate symbols in the assembly file.

Something like

.align 3
        jmp Lc4u
.align 3
.align 0
        .quad   Lc4l
        .quad   259
        .long   30
        .long   0

which causes the assembler to choke.

Change History (0)

Note: See TracTickets for help on using tickets.