aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2002-03-20 02:37:21 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2002-03-19 21:37:21 -0500
commit0c2fdcdf7f583bc7061428813c01b7824f563349 (patch)
tree4a97dfe5c0dcb8ab5cc858439e0037d6d79913a5 /gcc/fold-const.c
parent15b5aef3e72ff167751f52111b7a7be3429aae14 (diff)
downloadgcc-0c2fdcdf7f583bc7061428813c01b7824f563349.zip
gcc-0c2fdcdf7f583bc7061428813c01b7824f563349.tar.gz
gcc-0c2fdcdf7f583bc7061428813c01b7824f563349.tar.bz2
* fold-const.c (fold): Delete #if 0 ARRAY_REF case.
From-SVN: r51061
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index feb3e5f..054cd45 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -4781,24 +4781,6 @@ fold (expr)
TREE_OPERAND (TREE_OPERAND (t, 0), 0));
return t;
-#if 0 /* This loses on &"foo"[0]. */
- case ARRAY_REF:
- {
- int i;
-
- /* Fold an expression like: "foo"[2] */
- if (TREE_CODE (arg0) == STRING_CST
- && TREE_CODE (arg1) == INTEGER_CST
- && compare_tree_int (arg1, TREE_STRING_LENGTH (arg0)) < 0)
- {
- t = build_int_2 (TREE_STRING_POINTER (arg0)[TREE_INT_CST_LOW (arg))], 0);
- TREE_TYPE (t) = TREE_TYPE (TREE_TYPE (arg0));
- force_fit_type (t, 0);
- }
- }
- return t;
-#endif /* 0 */
-
case COMPONENT_REF:
if (TREE_CODE (arg0) == CONSTRUCTOR)
{