shithub: scc

Download patch

ref: 5d431d137d9cf7a56cf435f0060a16585dc30f6d
parent: 76f51c1570cb8e07e4dff1cc67b364519ead4d8a
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Dec 16 08:22:45 EST 2016

[cc1-qbe] Make long double equal to double

Qbe does not support long doube at this moment, so the best option
is to emit DOUBLE for it. We will fix it later.

--- a/cc1/arch/qbe/arch.c
+++ b/cc1/arch/qbe/arch.c
@@ -155,11 +155,11 @@
 	},
 	{       /* 16 = ldoubletype */
 		.op = FLOAT,
-		.letter = L_LDOUBLE,
+		.letter = L_DOUBLE,
 		.prop = TDEFINED | TARITH,
-		.size = 16,
-		.align = 16,
-		.n.rank = RANK_LDOUBLE,
+		.size = 8,
+		.align = 8,
+		.n.rank = RANK_DOUBLE,
 	},
 	{       /* 17 = sizettype */
 		.op = INT,