shithub: scc

Download patch

ref: dfa7978c258ec6e3bc7e495e1c2c880638587423
parent: 4f2c1d31306ca66b75de52c0c424a61d56566e91
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Aug 17 10:12:16 EDT 2016

[cc2-qbe] Add support for OCOMMA

Like I already have said, the most difficult operator ever.

--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
@@ -502,6 +502,8 @@
 		return assign(&aux2, ret);
 	case OASK:
 		return ternary(np, ret);
+	case OCOMMA:
+		return rhs(np, ret);
 	default:
 		abort();
 	}