This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Fix PR 10300
Mark Mitchell <mark at codesourcery dot com> writes:
|> > I'm getting a mysterious failure on ia64-linux while compiling libstdc++:
|> >
|> > ../../../../libstdc++-v3/src/ios.cc:373: error: parse error at end of input
|> >
|> > This patch is the only change since yesterday and reverting it makes this
|> > error go away.
|>
|> That sounds like a miscompilation of cc1plus, more likely than not.
Either compiling cp/init.c with -O0 or applying this patch (which should
actually change nothing) makes the error go away:
--- gcc/cp/init.c.~1.299.2.5.~ 2003-04-14 10:01:06.000000000 +0200
+++ gcc/cp/init.c 2003-04-14 18:21:38.000000000 +0200
@@ -2507,7 +2507,7 @@ build_new_1 (exp)
tree ifexp;
null_node = convert (TREE_TYPE (alloc_node),
- cookie_size ? cookie_size : size_zero_node);
+ use_cookie ? cookie_size : size_zero_node);
ifexp = cp_build_binary_op (NE_EXPR, alloc_node, null_node);
rval = build_conditional_expr (ifexp, rval, alloc_node);
}
Andreas.
--
Andreas Schwab, SuSE Labs, schwab at suse dot de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."