summaryrefslogtreecommitdiff
path: root/lang/gpc/files/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gpc/files/patch-ac')
-rw-r--r--lang/gpc/files/patch-ac33
1 files changed, 33 insertions, 0 deletions
diff --git a/lang/gpc/files/patch-ac b/lang/gpc/files/patch-ac
new file mode 100644
index 000000000000..32b12cc475b7
--- /dev/null
+++ b/lang/gpc/files/patch-ac
@@ -0,0 +1,33 @@
+*** convert.c.orig Thu Aug 7 13:44:17 1997
+--- convert.c Thu Mar 23 14:54:56 2000
+***************
+*** 288,294 ****
+--- 288,299 ----
+
+ /* Can't do arithmetic in enumeral types
+ so use an integer type that will hold the values. */
++ #ifdef GPC
++ if (TREE_CODE (typex) == ENUMERAL_TYPE
++ || TREE_CODE (typex) == BOOLEAN_TYPE)
++ #else /* not GPC */
+ if (TREE_CODE (typex) == ENUMERAL_TYPE)
++ #endif /* not GPC */
+ typex = type_for_size (TYPE_PRECISION (typex),
+ TREE_UNSIGNED (typex));
+
+***************
+*** 326,332 ****
+--- 331,343 ----
+
+ /* Can't do arithmetic in enumeral types
+ so use an integer type that will hold the values. */
++ #ifdef GPC
++ if (TREE_CODE (typex) == ENUMERAL_TYPE
++ || TREE_CODE (typex) == CHAR_TYPE
++ || TREE_CODE (typex) == BOOLEAN_TYPE)
++ #else /* not GPC */
+ if (TREE_CODE (typex) == ENUMERAL_TYPE)
++ #endif /* not GPC */
+ typex = type_for_size (TYPE_PRECISION (typex),
+ TREE_UNSIGNED (typex));
+