aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-07-20 20:57:14 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-07-20 20:57:14 +0200
commit1b47fe3fe5a6ddc89896e73a8ec831750bcf69b0 (patch)
tree5e4dd2dece1355e8bad35ec9543a36c0a9f8dc7a /gcc/cfgexpand.c
parentb0b01eb01cdca5510f5ea8913431b74aa73bdfc0 (diff)
downloadgcc-1b47fe3fe5a6ddc89896e73a8ec831750bcf69b0.zip
gcc-1b47fe3fe5a6ddc89896e73a8ec831750bcf69b0.tar.gz
gcc-1b47fe3fe5a6ddc89896e73a8ec831750bcf69b0.tar.bz2
re PR debug/45006 (Failed to bootstrap)
PR debug/45006 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of operand's type if exp is tcc_unary class tree. From-SVN: r162348
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 3d7bdd0..fef3190 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2427,7 +2427,9 @@ expand_debug_expr (tree exp)
op0 = simplify_gen_subreg (mode, op0, inner_mode,
subreg_lowpart_offset (mode,
inner_mode));
- else if (TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (exp, 0))))
+ else if (TREE_CODE_CLASS (TREE_CODE (exp)) == tcc_unary
+ ? TYPE_UNSIGNED (TREE_TYPE (TREE_OPERAND (exp, 0)))
+ : unsignedp)
op0 = gen_rtx_ZERO_EXTEND (mode, op0);
else
op0 = gen_rtx_SIGN_EXTEND (mode, op0);