On Sun, Dec 13, 2009 at 02:48:59PM +0100, Anders Magnusson wrote:
>
> Module Name: pcc
> Committed By: ragge
> Date: Sun Dec 13 13:48:59 UTC 2009
>
> Modified Files:
> pcc/cc/ccom: gcc_compat.c
>
> Log Message:
> Handling of attribute strings was broken; they were treated as names.
> Reported by Michael Shalayeff who provided a diff, but fixed in a more
> common way.
But the debugging bits left in break things :)
Index: cc/ccom/gcc_compat.c
===================================================================
RCS file: /cvsroot/pcc/cc/ccom/gcc_compat.c,v
retrieving revision 1.39
diff -u -p -r1.39 gcc_compat.c
--- cc/ccom/gcc_compat.c 13 Dec 2009 13:48:59 -0000 1.39
+++ cc/ccom/gcc_compat.c 13 Dec 2009 14:34:45 -0000
@@ -237,8 +237,6 @@ amatch(char *s)
static void
setaarg(int str, union gcc_aarg *aa, NODE *p)
{
-printf("setaarg:\n");
-fwalk(p, eprint, 0);
if (str) {
if (((str & (A1_STR|A2_STR|A3_STR)) && p->n_op != STRING) ||
((str & (A1_NAME|A2_NAME|A3_NAME)) && p->n_op != NAME))
@@ -260,8 +258,6 @@ gcc_attribs(NODE *p, void *arg)
char *name = NULL;
int num, cw, attr, narg;
-printf("gcc_attribs\n");
-fwalk(p, eprint, 0);
if (p->n_op == NAME) {
name = (char *)p->n_sp;
} else if (p->n_op == CALL || p->n_op == UCALL) {