aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2022-12-06 19:33:56 +0000
committerGaius Mulley <gaiusmod2@gmail.com>2022-12-06 19:33:56 +0000
commite487d6fa028f890260b2d4a514e1ac1d997793a5 (patch)
treeac71a99b46ed9a6987e47633c804e7efe7515d87 /gcc
parent98b201a33be33a60e10e67fb7f6c9d0fc5da00fc (diff)
downloadgcc-e487d6fa028f890260b2d4a514e1ac1d997793a5.zip
gcc-e487d6fa028f890260b2d4a514e1ac1d997793a5.tar.gz
gcc-e487d6fa028f890260b2d4a514e1ac1d997793a5.tar.bz2
Create namespace for modula2 debug tree routines.
gcc/m2/ChangeLog: * m2/m2pp.cc: Create namespace modula2. * m2/m2pp.h: Create namespace modula2. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/m2/m2pp.cc8
-rw-r--r--gcc/m2/m2pp.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/m2/m2pp.cc b/gcc/m2/m2pp.cc
index 6b9846c..8d6dad6 100644
--- a/gcc/m2/m2pp.cc
+++ b/gcc/m2/m2pp.cc
@@ -42,6 +42,8 @@ along with GNU Modula-2; see the file COPYING3. If not see
#define M2PP_C
#include "m2/m2pp.h"
+namespace modula2 {
+
#undef DEBUGGING
typedef struct pretty_t
@@ -342,7 +344,7 @@ pv (tree t)
m2pp_print (state, ", abstract origin = ");
m2pp_identifier (state, DECL_ABSTRACT_ORIGIN (t));
m2pp_print (state, ">\n");
- pv (DECL_ABSTRACT_ORIGIN (t));
+ modula2::pv (DECL_ABSTRACT_ORIGIN (t));
}
killPretty (state);
}
@@ -361,7 +363,7 @@ pv (tree t)
m2pp_print (state, ", abstract origin = ");
m2pp_identifier (state, DECL_ABSTRACT_ORIGIN (t));
m2pp_print (state, "> *)\n");
- pv (DECL_ABSTRACT_ORIGIN (t));
+ modula2::pv (DECL_ABSTRACT_ORIGIN (t));
}
killPretty (state);
}
@@ -2641,3 +2643,5 @@ m2pp_component_ref (pretty *s, tree t)
m2pp_print (s, ".");
m2pp_simple_expression (s, TREE_OPERAND (t, 1));
}
+
+}
diff --git a/gcc/m2/m2pp.h b/gcc/m2/m2pp.h
index 5bef049..67419c6 100644
--- a/gcc/m2/m2pp.h
+++ b/gcc/m2/m2pp.h
@@ -28,6 +28,7 @@ along with GNU Modula-2; see the file COPYING3. If not see
# define EXTERN extern
# endif
+namespace modula2 {
/* These functions allow a maintainer to dump the trees in Modula-2. */
EXTERN void pf (tree t);
@@ -36,7 +37,7 @@ EXTERN void pt (tree t);
EXTERN void ptl (tree t);
EXTERN void pv (tree t);
EXTERN void ptcl (tree t);
-
+}
# undef EXTERN
#endif