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/cris | |
parent | c0e97c852595b9516d54688643c08918a446f36c (diff) | |
download | binutils-6003fe166df2cd80030ae4a228ac105ae13f477e.zip binutils-6003fe166df2cd80030ae4a228ac105ae13f477e.tar.gz binutils-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/cris')
-rw-r--r-- | sim/cris/mloop.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in index 21cbb69..d0f3ee5 100644 --- a/sim/cris/mloop.in +++ b/sim/cris/mloop.in @@ -42,6 +42,7 @@ case "x$1" in xsupport) cat <<EOF +#line $LINENO "$0" #include <stdlib.h> /* It seems we don't have a templated header file corresponding to @@ -142,6 +143,7 @@ EOF xinit) cat <<EOF +#line $LINENO "$0" /* This seemed the only sane location to emit a call to a model-specific init function. It may not work for all simulator types. FIXME: Introduce a model-init hook. */ @@ -160,6 +162,7 @@ xextract-simple | xextract-scache) # Outputs: sc filled in cat <<EOF +#line $LINENO "$0" { CGEN_INSN_INT insn = GETIMEMUHI (current_cpu, vpc); extract (current_cpu, vpc, insn, SEM_ARGBUF (sc), FAST_P); @@ -179,6 +182,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; @@ -276,6 +280,7 @@ xfull-exec-* | xfast-exec-*) # vpc contains the address of the next insn to execute cat <<EOF +#line $LINENO "$0" { #if (! FAST_P && WITH_SEM_SWITCH_FULL) || (FAST_P && WITH_SEM_SWITCH_FAST) #define DEFINE_SWITCH |