diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-02 15:23:55 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-02 15:23:55 +0000 |
commit | a217eb614007708e37e64dde0e08c53672cb4ce8 (patch) | |
tree | a62894572a4c16deff12aa8a4292fec0e424af08 /gcc/c-convert.c | |
parent | 61087bee65377ecf20720addf51ff00fbefded1b (diff) | |
download | gcc-a217eb614007708e37e64dde0e08c53672cb4ce8.tar.gz |
2009-04-02 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r145451
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@145454 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-convert.c')
-rw-r--r-- | gcc/c-convert.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-convert.c b/gcc/c-convert.c index d7e2e5d04bc..f6bf5deb893 100644 --- a/gcc/c-convert.c +++ b/gcc/c-convert.c @@ -1,6 +1,6 @@ /* Language-level data type conversion for GNU C. - Copyright (C) 1987, 1988, 1991, 1998, 2002, 2003, 2004, 2005, 2007, 2008 - Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1991, 1998, 2002, 2003, 2004, 2005, 2007, 2008, + 2009 Free Software Foundation, Inc. This file is part of GCC. @@ -86,6 +86,8 @@ convert (tree type, tree expr) if (type == TREE_TYPE (expr)) return expr; + STRIP_TYPE_NOPS (e); + if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (expr))) return fold_convert (type, expr); if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK) |