Commit 97459791 by Jason Merrill Committed by Jason Merrill

cppexp.c (num_equality_op): Use a temporary variable to work around gcc 3.0.4 bug.

        * cppexp.c (num_equality_op): Use a temporary variable to work
        around gcc 3.0.4 bug.

From-SVN: r54339
parent 4b1d52c7
2002-06-07 Jason Merrill <jason@redhat.com>
* cppexp.c (num_equality_op): Use a temporary variable to work
around gcc 3.0.4 bug.
2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com> 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
* diagnostic.c (diagnostic_build_prefix): Tidy. * diagnostic.c (diagnostic_build_prefix): Tidy.
......
...@@ -1128,9 +1128,11 @@ num_equality_op (pfile, lhs, rhs, op) ...@@ -1128,9 +1128,11 @@ num_equality_op (pfile, lhs, rhs, op)
cpp_num lhs, rhs; cpp_num lhs, rhs;
enum cpp_ttype op; enum cpp_ttype op;
{ {
lhs.low = num_eq (lhs, rhs); /* Work around a 3.0.4 bug; see PR 6950. */
bool eq = num_eq (lhs, rhs);
if (op == CPP_NOT_EQ) if (op == CPP_NOT_EQ)
lhs.low = !lhs.low; eq = !eq;
lhs.low = eq;
lhs.high = 0; lhs.high = 0;
lhs.overflow = false; lhs.overflow = false;
lhs.unsignedp = false; lhs.unsignedp = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment