* varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
(compare_constant): Likewise.
(output_addressed_constants): Likewise.
* g++.dg/opt/vt1.C: New test.
From-SVN: r54461
+2002-06-10 Jakub Jelinek <jakub@redhat.com>
+
+ * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
+ (compare_constant): Likewise.
+ (output_addressed_constants): Likewise.
+
2002-06-10 Jakub Jelinek <jakub@redhat.com>
* cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
* gcc.c-torture/compile/20020605-1.c: New test.
+ * g++.dg/opt/vt1.C: New test.
+
2002-05-29 Hans-Peter Nilsson <hp@axis.com>
* gcc.c-torture/execute/20020529-1.c: New test.
}
case ADDR_EXPR:
+ case FDESC_EXPR:
{
struct addr_const value;
}
case ADDR_EXPR:
+ case FDESC_EXPR:
{
struct addr_const value;
switch (TREE_CODE (exp))
{
case ADDR_EXPR:
+ case FDESC_EXPR:
/* Go inside any operations that get_inner_reference can handle and see
if what's inside is a constant: no need to do anything here for
addresses of variables or functions. */