[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: Re: [sparse] PATCH: minor fix for initializer assign
From: Christopher Li <sparse () chrisli ! org>
Date: 2004-04-17 23:50:43
Message-ID: 20040417235043.GA23191 () 64m ! dyndns ! org
[Download RAW message or body]
On Sun, Apr 18, 2004 at 12:21:51AM -0700, Christopher Li wrote:
> So I add that in evaluate.c, it seems fix the problem.
> Then feeding linearize.c can run all the way. I am sure the initializer
OOPS, not so fast. That is too early a claim. less eat the segment fault.
I need to make bitfield to pass the test.
Chris
There is more to come.
> need to count as assign, but I am not sure this patch cover all the case
> correctly.
>
> Thanks,
>
> Chris
>
> Index: sparse-be/evaluate.c
> ===================================================================
> --- sparse-be.orig/evaluate.c 2004-04-17 21:57:53.000000000 -0700
> +++ sparse-be/evaluate.c 2004-04-17 22:47:46.000000000 -0700
> @@ -1224,6 +1224,8 @@
> rtype = degenerate(expr, rtype, ep);
> expr = *ep;
> compatible_assignment_types(expr, ctype, ep, rtype, "initializer");
> + if (ctype->type == SYM_NODE)
> + ctype->ctype.modifiers |= MOD_ASSIGNED;
> /* strings are special: char arrays */
> if (rtype->type == SYM_ARRAY)
> size = get_expression_value(rtype->array_size);
> -
> To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic