This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fix for Irix native compiler


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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]