ref: 2a3b5ec079f3d0316712326b92dfd0bfb668244c
parent: ed55c242d161a9682c6d2f82a3cc0efc97b8ac5d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Sep 26 07:20:18 EDT 2016
[cc1] Fix definition of end of switch Cc2 expects 't' for end of switch, but we were emiting 'k'.
--- a/cc1/code.c
+++ b/cc1/code.c
@@ -60,7 +60,7 @@
[OLABEL] = "L%d\n",
[ODEFAULT] = "\tf\tL%d\n",
[OBSWITCH] = "\ts",
- [OESWITCH] = "\tk\tL%d\n",
+ [OESWITCH] = "\tt\tL%d\n",
[OCASE] = "\tv\tL%d",
[OJUMP] = "\tj\tL%d\n",
[OBRANCH] = "\ty\tL%d",
--- a/cc1/tests/test012.c
+++ b/cc1/tests/test012.c
@@ -14,7 +14,7 @@
s A3
v L5 #I0
L5
- k L4
+ t L4
L4
s A3
v L7 #I0
@@ -26,9 +26,9 @@
f L11
L11
h #I1
- k L8
+ t L8
L8
- k L6
+ t L6
L6
h #I2
L10
@@ -36,7 +36,7 @@
v L13 #I1
L13
h #I3
- k L12
+ t L12
L12
s A3
A3 #I2 :I
@@ -44,7 +44,7 @@
v L16 #I1
L16
h #I4
- k L14
+ t L14
L14
s A3
v L18 #I0
@@ -56,7 +56,7 @@
f L20
L20
h #I1
- k L17
+ t L17
L17
}
*/
--- a/cc1/tests/test036.c
+++ b/cc1/tests/test036.c
@@ -44,7 +44,7 @@
y L10 R7 #I1 :-I #I0 >I
b
L11
- k L8
+ t L8
L8
}
*/