This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ Patch] PR 4093
- From: Craig Rodrigues <rodrigc at attbi dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Feb 2002 12:49:58 -0500
- Subject: [C++ Patch] PR 4093
Hi,
This was patch was mentioned in PR 4093:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4093
PR 4093 mentions that for strict ANSI C compilers like
the one on HP-UX, it is necessary for the return types
for a conditional statement must be the same. This
patch solves one particular instance of this problem,
that was causing problems bootstrapping with HP's compiler.
Is it OK?
2002-02-24 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR c++/4093
* cp-tree.h (SET_BINFO_MARKED): Cast false part of condition
to void.
Index: cp-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
retrieving revision 1.680
diff -u -r1.680 cp-tree.h
--- cp-tree.h 2002/02/22 11:57:37 1.680
+++ cp-tree.h 2002/02/24 17:42:11
@@ -1586,7 +1586,7 @@
#define SET_BINFO_MARKED(NODE) \
(TREE_VIA_VIRTUAL(NODE) \
? SET_CLASSTYPE_MARKED (BINFO_TYPE (NODE)) \
- : (TREE_LANG_FLAG_0 (NODE) = 1))
+ : (void)(TREE_LANG_FLAG_0 (NODE) = 1))
#define CLEAR_BINFO_MARKED(NODE) \
(TREE_VIA_VIRTUAL (NODE) \
? CLEAR_CLASSTYPE_MARKED (BINFO_TYPE (NODE)) \
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@attbi.com