summaryrefslogtreecommitdiff
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-19 11:16:37 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-01-19 11:16:37 +0000
commitfd198dc9939ef2809022e2ca3ffe31f58e448503 (patch)
tree0294398de7c3e83b5c5cc416915e22867812a137 /gcc/genattrtab.c
parentbc68fcb47041d56999c7fe960f4e063e50e87c2a (diff)
downloadgcc-fd198dc9939ef2809022e2ca3ffe31f58e448503.tar.gz
Fix time/space problem when (const_int 1) occurs in conflict_list.
* genattrtab.c (find_and_mark_used_attributes): Handle CONST_INT. (add_values_to_cover): Revert last change (which had no ChangeLog entry). (simplify_with_current_value_aux): Handle CONST_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index 63d64e9f97c..9149c12d6eb 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -3711,6 +3711,7 @@ find_and_mark_used_attributes (exp, terms, nterms)
MEM_VOLATILE_P (exp) = 1;
}
case CONST_STRING:
+ case CONST_INT:
return 1;
case IF_THEN_ELSE:
@@ -3780,7 +3781,7 @@ add_values_to_cover (dim)
abort ();
else if (nalt == dim->num_values)
; /* Ok. */
- else if (nalt * 2 >= dim->num_values)
+ else if (nalt * 2 < dim->num_values * 3)
{
/* Most all the values of the attribute are used, so add all the unused
values. */
@@ -3916,6 +3917,7 @@ simplify_with_current_value_aux (exp)
else
return true_rtx;
case CONST_STRING:
+ case CONST_INT:
return exp;
case IF_THEN_ELSE: