This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix for Irix native compiler
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix for Irix native compiler
- From: waterson at netscape dot com (Chris Waterson)
- Date: Mon, 30 Jul 2001 16:18:38 -0700
gcc/cp/decl.c appears to break the native compiler on Irix. This patch
appears to fix it.
chris
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.747.2.33
diff -u -r1.747.2.33 decl.c
--- decl.c 2001/07/26 08:07:24 1.747.2.33
+++ decl.c 2001/07/30 23:12:05
@@ -478,7 +478,7 @@
/* The binding level currently in effect. */
#define current_binding_level \
- (cfun && cp_function_chain->bindings \
+ ((cfun && cp_function_chain->bindings) \
? cp_function_chain->bindings \
: scope_chain->bindings)