summaryrefslogtreecommitdiffstats
path: root/gcc
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
parentbc68fcb47041d56999c7fe960f4e063e50e87c2a (diff)
downloadppe42-gcc-fd198dc9939ef2809022e2ca3ffe31f58e448503.tar.gz
ppe42-gcc-fd198dc9939ef2809022e2ca3ffe31f58e448503.zip
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')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/genattrtab.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2abe2da2bb..7286a0bb0c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jan 19 11:15:38 1998 Jim Wilson <wilson@cygnus.com>
+
+ * 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.
+
Mon Jan 19 10:14:55 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* unprotoize.c: Define UNPROTOIZE first, to actually take effect.
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:
OpenPOWER on IntegriCloud