mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-16 09:30:38 +08:00
For PR java/6520:
* fold-const.c (fold_convert): Don't modify existing tree's type. From-SVN: r54529
This commit is contained in:
parent
f288d4aa2c
commit
0797e4720f
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-11 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
For PR java/6520:
|
||||||
|
* fold-const.c (fold_convert): Don't modify existing tree's type.
|
||||||
|
|
||||||
2002-06-11 Geoffrey Keating <geoffk@redhat.com>
|
2002-06-11 Geoffrey Keating <geoffk@redhat.com>
|
||||||
|
|
||||||
* config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
|
* config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
|
||||||
|
@ -1596,8 +1596,10 @@ fold_convert (t, arg1)
|
|||||||
{
|
{
|
||||||
if (REAL_VALUE_ISNAN (TREE_REAL_CST (arg1)))
|
if (REAL_VALUE_ISNAN (TREE_REAL_CST (arg1)))
|
||||||
{
|
{
|
||||||
t = arg1;
|
/* We make a copy of ARG1 so that we don't modify an
|
||||||
TREE_TYPE (arg1) = type;
|
existing constant tree. */
|
||||||
|
t = copy_node (arg1);
|
||||||
|
TREE_TYPE (t) = type;
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user