mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-06 02:20:34 +08:00
Revert earlier fix for PR 14029
2004-08-22 Andrew Pinski <apinski@apple.com> Revert: 2004-08-22 Andrew Pinski <apinski@apple.com> PR c++/14029 * typeck.c (build_unary_op): Use &a.b if the foldded lowered expression is not constant. [[Split portion of a mixed commit.]] From-SVN: r86431.2
This commit is contained in:
parent
39dca114a9
commit
cbaa1b7442
@ -1,3 +1,11 @@
|
||||
2004-08-22 Andrew Pinski <apinski@apple.com>
|
||||
|
||||
Revert:
|
||||
2004-08-22 Andrew Pinski <apinski@apple.com>
|
||||
PR c++/14029
|
||||
* typeck.c (build_unary_op): Use &a.b if the foldded lowered
|
||||
expression is not constant.
|
||||
|
||||
2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* name-lookup.c (pushdecl): Rename build_type_copy call.
|
||||
|
@ -4123,11 +4123,6 @@ build_unary_op (enum tree_code code, tree xarg, int noconvert)
|
||||
addr = fold (build2 (PLUS_EXPR, argtype, rval,
|
||||
cp_convert (argtype,
|
||||
byte_position (field))));
|
||||
|
||||
/* If the folded PLUS_EXPR is not a constant address, wrap
|
||||
it in an ADDR_EXPR. */
|
||||
if (!TREE_CONSTANT (addr))
|
||||
addr = build_address (arg);
|
||||
}
|
||||
|
||||
if (TREE_CODE (argtype) == POINTER_TYPE
|
||||
|
Loading…
x
Reference in New Issue
Block a user