summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-14 12:39:09 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-14 12:39:09 +0000
commit0e0202184e3b823574e5a2647bf12c3d4ec096e5 (patch)
tree64dfd052541a93e27fdd0ce2a8bf2535491bcced /gcc/tree-ssa.c
parent72210aa1570903d9376eee87916fa828a6a02ef0 (diff)
downloadgcc-0e0202184e3b823574e5a2647bf12c3d4ec096e5.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168781 138bc75d-0d04-0410-961f-82ee72b054a4
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 aa797e22bec..7bd01f8d4db 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))