diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 20:13:22 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 20:16:26 -0500 |
commit | 6003fe166df2cd80030ae4a228ac105ae13f477e (patch) | |
tree | 9d50df58ef62f89ed1f1ad1b9326f10a8c07c333 /sim/or1k | |
parent | c0e97c852595b9516d54688643c08918a446f36c (diff) | |
download | fsf-binutils-gdb-6003fe166df2cd80030ae4a228ac105ae13f477e.zip fsf-binutils-gdb-6003fe166df2cd80030ae4a228ac105ae13f477e.tar.gz fsf-binutils-gdb-6003fe166df2cd80030ae4a228ac105ae13f477e.tar.bz2 |
sim: mloop: add #line pragmas everywhere
This will make compiler diagnostics much better with generated code
so people can understand the original source file.
Diffstat (limited to 'sim/or1k')
-rw-r--r-- | sim/or1k/mloop.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/or1k/mloop.in b/sim/or1k/mloop.in index a1cb117..0b707ea 100644 --- a/sim/or1k/mloop.in +++ b/sim/or1k/mloop.in @@ -42,6 +42,7 @@ case "x$1" in xsupport) cat <<EOF +#line $LINENO "$0" #include <stdlib.h> static INLINE const IDESC * @@ -144,6 +145,7 @@ xinit) xextract-simple | xextract-scache) cat <<EOF +#line $LINENO "$0" { USI insn = GETIMEMUSI (current_cpu, pc); extract (current_cpu, pc, insn, sc, FAST_P); @@ -164,6 +166,7 @@ xextract-pbb) # SET_INSN_COUNT(n) must be called to record number of real insns. cat <<EOF +#line $LINENO "$0" { const IDESC *idesc; int icount = 0; @@ -222,6 +225,7 @@ xfull-exec-* | xfast-exec-*) # vpc is the virtual program counter. cat <<EOF +#line $LINENO "$0" #if (! FAST_P && WITH_SEM_SWITCH_FULL) || (FAST_P && WITH_SEM_SWITCH_FAST) #define DEFINE_SWITCH #ifdef WANT_CPU_OR1K32BF |