diff options
author | Sven Schnelle <svens@stackframe.org> | 2012-06-22 08:53:36 +0200 |
---|---|---|
committer | Mathias Krause <minipli@googlemail.com> | 2012-06-22 09:19:37 +0200 |
commit | efb479c08bc1b03838c6493324d11d6164c78861 (patch) | |
tree | 572014183b6420c8474bb17373a6f1af6d9216bf | |
parent | d8a6680073179e1f7a357ee02e3d9d5103b78eb4 (diff) |
ROMCC: fix unused attribute lookup
commit 57cd1dd29679918afa650c2a7e82a474765f357d added this attribute,
but with wrong length, so it actually never matched.
Change-Id: Ibcc7816b5fa895faa66710cc29de38f129be6a2b
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/1133
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
Reviewed-by: Mathias Krause <minipli@googlemail.com>
-rw-r--r-- | util/romcc/romcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c index b0f6198e5a..15e950cc67 100644 --- a/util/romcc/romcc.c +++ b/util/romcc/romcc.c @@ -24992,7 +24992,7 @@ static void compile(const char *filename, state.i_noinline = lookup(&state, "noinline", 8); state.i_always_inline = lookup(&state, "always_inline", 13); state.i_noreturn = lookup(&state, "noreturn", 8); - state.i_unused = lookup(&state, "unused", 8); + state.i_unused = lookup(&state, "unused", 6); /* Process the command line macros */ process_cmdline_macros(&state); |