[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Fixes for attributes __const__, __pure__ and type __QI__
From: Alt <alt () altamiranus ! info>
Date: 2010-01-23 6:24:31
Message-ID: c3c4992a1001222224g5da12056p520df68c770140d6 () mail ! gmail ! com
[Download RAW message or body]
Hi there,
I filed a number of bugs in JIRA today, and I am sending what I think
are fixes for PCC-110, PCC-111 and PCC-113. These should enable
building PCC on NetBSD 5.0.1 x86.
---- cut here ----
--- cc/ccom/gcc_compat.c 2010-01-06 20:57:53.000000000 -0800
+++ cc/ccom/gcc_compat.c 2009-01-22 21:32:10.000000000 -0800
@@ -219,6 +219,8 @@
[GCC_ATYP_MALLOC] = { A_0ARG, "malloc" },
[GCC_ATYP_NOTHROW] = { A_0ARG, "nothrow" },
[GCC_ATYP_MODE] = { A_1ARG|A1_NAME, "mode" },
+ [GCC_ATYP_CONST] = { A_0ARG, "const" },
+ [GCC_ATYP_PURE] = { A_0ARG, "pure" },
#else
{ 0, NULL },
{ A_0ARG|A_1ARG, "aligned" },
@@ -356,7 +358,9 @@
break;
case GCC_ATYP_MODE:
- if (strcmp(gap->ga[num].a1.sarg, "__SI__") == 0) {
+ if (strcmp(gap->ga[num].a1.sarg, "__QI__") == 0) {
+ gap->ga[num].a1.iarg = CHAR;
+ } else if (strcmp(gap->ga[num].a1.sarg, "__SI__") == 0) {
gap->ga[num].a1.iarg = INT;
} else if (strcmp(gap->ga[num].a1.sarg, "__HI__") == 0) {
gap->ga[num].a1.iarg = SHORT;
--- cc/ccom/pass1.h 2010-01-05 07:23:51.000000000 -0800
+++ cc/ccom/pass1.h 2009-01-22 21:30:31.000000000 -0800
@@ -420,6 +420,8 @@
GCC_ATYP_GNU_INLINE,
GCC_ATYP_MALLOC,
GCC_ATYP_NOTHROW,
+ GCC_ATYP_CONST,
+ GCC_ATYP_PURE,
/* other stuff */
GCC_ATYP_BOUNDED, /* OpenBSD extra boundary checks */
---- cut here ----
--
.alt.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic