aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2004-03-19 17:38:23 +0000
committerRainer Orth <ro@gcc.gnu.org>2004-03-19 17:38:23 +0000
commit165c9b0468d5386d22855dd5f70340dad2aa8f78 (patch)
treefbabe86a4fb29f6a4398f2316d71c78592a888d0
parent59d35672142c7b555a1722f57e853fb1dbc51e84 (diff)
downloadgcc-165c9b0468d5386d22855dd5f70340dad2aa8f78.zip
gcc-165c9b0468d5386d22855dd5f70340dad2aa8f78.tar.gz
gcc-165c9b0468d5386d22855dd5f70340dad2aa8f78.tar.bz2
* verify.cc: Undef PC.
From-SVN: r79690
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/verify.cc5
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index a6d1dad..064ef33 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * verify.cc: Undef PC.
+
2004-03-18 Michael Koch <konqueror@gmx.de>
* java/nio/channels/spi/AbstractSelectableChannel.java
diff --git a/libjava/verify.cc b/libjava/verify.cc
index 236bc4d..7ba2ba4 100644
--- a/libjava/verify.cc
+++ b/libjava/verify.cc
@@ -19,6 +19,11 @@ details. */
#include <java-insns.h>
#include <java-interp.h>
+// On Solaris 10/x86, <signal.h> indirectly includes <ia32/sys/reg.h>, which
+// defines PC since g++ predefines __EXTENSIONS__. Undef here to avoid clash
+// with PC member of class _Jv_BytecodeVerifier below.
+#undef PC
+
#ifdef INTERPRETER
#include <java/lang/Class.h>