Commit 3740bda6 by Paulo Matos Committed by Paulo Matos

tree-streamer.c (record_common_node): Assert we don't record nodes with type double.

2014-03-04  Paulo Matos  <paulo@matos-sorge.com>

        * tree-streamer.c (record_common_node): Assert we don't record
        nodes with type double.
        (preload_common_node): Skip type double, complex double and
        double pointer since it is now frontend dependent due to
        fshort-double option.

2014-03-04  Paulo Matos  <paulo@matos-sorge.com>

        * gcc.dg/lto/pr55113_0.c: New testcase.

From-SVN: r208312
parent 91856735
2014-03-04 Paulo Matos <paulo@matos-sorge.com>
* tree-streamer.c (record_common_node): Assert we don't record
nodes with type double.
(preload_common_node): Skip type double, complex double and
double pointer since it is now frontend dependent due to
fshort-double option.
2014-03-04 Richard Biener <rguenther@suse.de>
PR lto/60405
......
2014-03-04 Paulo Matos <paulo@matos-sorge.com>
* gcc.dg/lto/pr55113_0.c: New testcase.
2014-03-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60376
......
/* PR 55113 */
/* { dg-lto-do link } */
/* { dg-lto-options { { -flto -fshort-double -O0 } } }*/
/* { dg-skip-if "PR60410" { { x86_64-*-* i?86-*-* } && lp64 } } */
int
main(void)
{
float a = 1.0;
float b = 2.0;
double f = a + b * 1e-12;
return (int)f - 1;
}
......@@ -264,7 +264,8 @@ record_common_node (struct streamer_tree_cache_d *cache, tree node)
gcc_checking_assert (node != boolean_type_node
&& node != boolean_true_node
&& node != boolean_false_node);
&& node != boolean_false_node
&& node != double_type_node);
/* We have to make sure to fill exactly the same number of
elements for all frontends. That can include NULL trees.
......@@ -315,10 +316,14 @@ preload_common_nodes (struct streamer_tree_cache_d *cache)
record_common_node (cache, sizetype_tab[i]);
for (i = 0; i < TI_MAX; i++)
/* Skip boolean type and constants, they are frontend dependent. */
/* Skip boolean type and constants. They are frontend dependent.
Skip double type, frontend dependent due to -fshort-double. */
if (i != TI_BOOLEAN_TYPE
&& i != TI_BOOLEAN_FALSE
&& i != TI_BOOLEAN_TRUE)
&& i != TI_BOOLEAN_TRUE
&& i != TI_DOUBLE_TYPE
&& i != TI_COMPLEX_DOUBLE_TYPE
&& i != TI_DOUBLE_PTR_TYPE)
record_common_node (cache, global_trees[i]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment