aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-01-14 12:39:09 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-01-14 12:39:09 +0000
commit8f66db3b32436cd7902dc553cc013dddf5b26b79 (patch)
tree64dfd052541a93e27fdd0ce2a8bf2535491bcced /gcc/tree-ssa.c
parent6c0c92e6b37e27b14dc3fb8a02ee4e0e8c33b658 (diff)
downloadgcc-8f66db3b32436cd7902dc553cc013dddf5b26b79.zip
gcc-8f66db3b32436cd7902dc553cc013dddf5b26b79.tar.gz
gcc-8f66db3b32436cd7902dc553cc013dddf5b26b79.tar.bz2
re PR middle-end/47281 (error: non-trivial conversion at assignment)
2011-01-14 Richard Guenther <rguenther@suse.de> PR middle-end/47281 Revert 2011-01-11 Richard Guenther <rguenther@suse.de> PR tree-optimization/46076 * tree-ssa.c (useless_type_conversion_p): Conversions from unprototyped to empty argument list function types are useless. * gcc.dg/torture/pr47281.c: New testcase. * gcc.dg/tree-ssa/pr46076.c: XFAIL. From-SVN: r168781
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index aa797e2..7bd01f8 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -1410,11 +1410,6 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
if (!prototype_p (outer_type))
return true;
- /* A conversion between unprototyped and empty argument list is ok. */
- if (TYPE_ARG_TYPES (outer_type) == void_list_node
- && !prototype_p (inner_type))
- return true;
-
/* If the unqualified argument types are compatible the conversion
is useless. */
if (TYPE_ARG_TYPES (outer_type) == TYPE_ARG_TYPES (inner_type))