aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-03 02:54:37 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-03 03:32:08 -0500
commit7811c75893c4078d9b81f05d1642d7833c0ca400 (patch)
treebb4cfc4d09b17d21e1615a6285d9404973899930 /sim/ppc/local.mk
parent339e44f8c0bcd4c9d8cf10faddff61fbb39cb201 (diff)
downloadgdb-7811c75893c4078d9b81f05d1642d7833c0ca400.zip
gdb-7811c75893c4078d9b81f05d1642d7833c0ca400.tar.gz
gdb-7811c75893c4078d9b81f05d1642d7833c0ca400.tar.bz2
sim: ppc: unify igen line number output modules
The common igen code was forked from the ppc long ago. The lf module is still pretty similar in API, so we can unfork them with a little bit of effort. Some of the generated ppc code is now slightly different, but that's because of fixes the common igen code has gained, but not the ppc igen code (e.g. fixing of #line numbers). The ppc code retains lf_print__c_code because the common igen code rewrote the logic to a new table.c API. Let's delay that in the ppc code to at least unfork all this code.
Diffstat (limited to 'sim/ppc/local.mk')
-rw-r--r--sim/ppc/local.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/ppc/local.mk b/sim/ppc/local.mk
index f6da1c2..d872014 100644
--- a/sim/ppc/local.mk
+++ b/sim/ppc/local.mk
@@ -100,7 +100,7 @@ MOSTLYCLEANFILES += %D%/defines.h %D%/stamp-defines
EXTRA_LIBRARIES += %D%/libigen.a
%C%_libigen_a_SOURCES = \
%D%/table.c \
- %D%/lf.c \
+ %D%/lf-ppc.c \
%D%/dumpf.c \
%D%/ld-decode.c \
%D%/ld-cache.c \
@@ -114,6 +114,7 @@ EXTRA_LIBRARIES += %D%/libigen.a
%D%/gen-support.c
%C%_libigen_a_LIBADD = \
igen/filter_host.o \
+ igen/lf.o \
igen/misc.o
%C%_igen_SOURCES = %D%/igen.c