OSDN Git Service

Backported from mainline
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2012 16:04:19 +0000 (16:04 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2012 16:04:19 +0000 (16:04 +0000)
commitea60047dd29feae48d491da900ec143df70a7db3
tree0f2ed1afb006e61b03f389280ab219ec7f65ca2c
parenta519a6a745c1d33c1de86311994db51efa7d6c7b
Backported from mainline
2012-08-31  Jakub Jelinek  <jakub@redhat.com>

PR c/54428
* c-convert.c (convert): Don't call fold_convert_loc if
TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
COMPLEX_TYPE -> COMPLEX_TYPE conversion.

* gcc.c-torture/compile/pr54428.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@190899 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr54428.c [new file with mode: 0644]