PR optimization/8396
* tree-inline.c (initialize_inlined_parameters): Make sure the value
of read-only constant arguments is passed with the right type.
From-SVN: r64362
+2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ PR optimization/8396
+ * tree-inline.c (initialize_inlined_parameters): Make sure the value
+ of read-only constant arguments is passed with the right type.
+
2003-03-14 Andreas Jaeger <aj@suse.de>
- * config/i386/linux64.h (CPP_SPEC): Define __LP64__ and _LP64 for
+ * config/i386/linux64.h (CPP_SPEC): Define __LP64__ and _LP64 for
64-bit.
2003-03-12 Richard Henderson <rth@redhat.com>
+2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * gcc.c-torture/compile/20030314-1.c: New test.
+
2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/decl-3.c: New test.
if (DECL_P (value))
value = build1 (NOP_EXPR, TREE_TYPE (value), value);
+ /* If this is a constant, make sure it has the right type. */
+ else if (TREE_TYPE (value) != TREE_TYPE (p))
+ value = fold (build1 (NOP_EXPR, TREE_TYPE (p), value));
+
splay_tree_insert (id->decl_map,
(splay_tree_key) p,
(splay_tree_value) value);