diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-02-04 19:03:19 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:06:22 -0700 |
commit | 50716970e1091709563bea8834665af27150c346 (patch) | |
tree | 92d3681311c088de0e9e4a28f8e2c939cc1ed447 /flow.c | |
parent | Make each instruction have a position of its own. (diff) | |
download | sparse-50716970e1091709563bea8834665af27150c346.tar.gz sparse-50716970e1091709563bea8834665af27150c346.tar.bz2 sparse-50716970e1091709563bea8834665af27150c346.zip |
Use the new per-instruction position information for better
error reporting.
Diffstat (limited to 'flow.c')
-rw-r--r-- | flow.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -584,7 +584,7 @@ void check_access(struct instruction *insn) struct symbol *sym = pseudo->sym; if (sym->bit_size > 0 && (offset < 0 || bit > sym->bit_size)) - warning(insn->bb->pos, "invalid access %s '%s' (%d %d)", + warning(insn->pos, "invalid access %s '%s' (%d %d)", offset < 0 ? "below" : "past the end of", show_ident(sym->ident), offset, sym->bit_size >> 3); } |