aboutsummaryrefslogtreecommitdiff
path: root/sim/iq2000
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-19 20:13:22 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 20:16:26 -0500
commit6003fe166df2cd80030ae4a228ac105ae13f477e (patch)
tree9d50df58ef62f89ed1f1ad1b9326f10a8c07c333 /sim/iq2000
parentc0e97c852595b9516d54688643c08918a446f36c (diff)
downloadgdb-6003fe166df2cd80030ae4a228ac105ae13f477e.zip
gdb-6003fe166df2cd80030ae4a228ac105ae13f477e.tar.gz
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/iq2000')
-rw-r--r--sim/iq2000/mloop.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/iq2000/mloop.in b/sim/iq2000/mloop.in
index e0ec847..1d3df32 100644
--- a/sim/iq2000/mloop.in
+++ b/sim/iq2000/mloop.in
@@ -40,6 +40,7 @@ case "x$1" in
xsupport)
cat <<EOF
+#line $LINENO "$0"
#include <stdlib.h>
static INLINE const IDESC *
@@ -139,6 +140,7 @@ xextract-simple | xextract-scache)
# Outputs: sc filled in
cat <<EOF
+#line $LINENO "$0"
{
CGEN_INSN_INT insn = GETIMEMUSI (current_cpu, CPU2INSN(vpc));
extract (current_cpu, vpc, insn, SEM_ARGBUF (sc), FAST_P);
@@ -159,6 +161,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;
@@ -224,6 +227,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