From: Christopher Li <sparse@chrisli.org>
To: linux-sparse@vger.kernel.org
Cc: Josh Triplett <josh@freedesktop.org>
Subject: [PATCH 10] Marking anonymous string.
Date: Tue, 16 Jan 2007 18:45:45 -0800 [thread overview]
Message-ID: <20070117024545.GK962@chrisli.org> (raw)
The back end need to generate some storage for anonymous string.
This simplify testing of anonymous string.
Signed-off-by: Christopher Li <sparse@chrisli.org>
Index: sparse/symbol.h
===================================================================
--- sparse.orig/symbol.h 2006-12-12 02:04:05.000000000 -0800
+++ sparse/symbol.h 2006-12-12 02:05:24.000000000 -0800
@@ -118,7 +118,8 @@ struct symbol {
initialized:1,
examined:1,
expanding:1,
- evaluated:1;
+ evaluated:1,
+ string:1;
struct expression *array_size;
struct ctype ctype;
struct symbol_list *arguments;
Index: sparse/evaluate.c
===================================================================
--- sparse.orig/evaluate.c 2006-12-12 02:04:05.000000000 -0800
+++ sparse/evaluate.c 2006-12-12 02:05:24.000000000 -0800
@@ -74,6 +74,7 @@ static struct symbol *evaluate_string(st
sym->array_size = alloc_const_expression(expr->pos, length);
sym->bit_size = bits_in_char * length;
sym->ctype.alignment = 1;
+ sym->string = 1;
sym->ctype.modifiers = MOD_STATIC;
sym->ctype.base_type = array;
sym->initializer = initstr;
next reply other threads:[~2007-01-17 3:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-17 2:45 Christopher Li [this message]
2007-01-27 9:32 ` [PATCH 10] Marking anonymous string Josh Triplett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070117024545.GK962@chrisli.org \
--to=sparse@chrisli.org \
--cc=josh@freedesktop.org \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).