diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-10 14:42:05 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-10 14:42:05 +0000 |
commit | c55d3fa54434276d8db9e5f980a906f3b6ec14df (patch) | |
tree | c68a8dcc34b9744826ef8bc4e707ebafa99ba49c /gcc/rtl-error.c | |
parent | 87004871d7faa3b7a55311e4e7c47c12d85cdce2 (diff) | |
download | gcc-c55d3fa54434276d8db9e5f980a906f3b6ec14df.tar.gz |
error_for_asm and warning_for_asm take const rtx_insn *
gcc/ChangeLog:
2014-09-10 David Malcolm <dmalcolm@redhat.com>
* final.c (this_is_asm_operands): Strengthen this variable from
rtx to const rtx_insn *.
* output.h (this_is_asm_operands): Likewise.
* rtl-error.c (location_for_asm): Strengthen param "insn" from
const_rtx to const rtx_insn *.
(diagnostic_for_asm): Likewise.
* rtl-error.h (error_for_asm): Likewise.
(warning_for_asm): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl-error.c')
-rw-r--r-- | gcc/rtl-error.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/rtl-error.c b/gcc/rtl-error.c index d8d9363654f..e8766099d2a 100644 --- a/gcc/rtl-error.c +++ b/gcc/rtl-error.c @@ -29,12 +29,13 @@ along with GCC; see the file COPYING3. If not see #include "intl.h" #include "diagnostic.h" -static location_t location_for_asm (const_rtx); -static void diagnostic_for_asm (const_rtx, const char *, va_list *, diagnostic_t) ATTRIBUTE_GCC_DIAG(2,0); +static location_t location_for_asm (const rtx_insn *); +static void diagnostic_for_asm (const rtx_insn *, const char *, va_list *, + diagnostic_t) ATTRIBUTE_GCC_DIAG(2,0); /* Figure the location of the given INSN. */ static location_t -location_for_asm (const_rtx insn) +location_for_asm (const rtx_insn *insn) { rtx body = PATTERN (insn); rtx asmop; @@ -65,7 +66,7 @@ location_for_asm (const_rtx insn) of the insn INSN. This is used only when INSN is an `asm' with operands, and each ASM_OPERANDS records its own source file and line. */ static void -diagnostic_for_asm (const_rtx insn, const char *msg, va_list *args_ptr, +diagnostic_for_asm (const rtx_insn *insn, const char *msg, va_list *args_ptr, diagnostic_t kind) { diagnostic_info diagnostic; @@ -76,7 +77,7 @@ diagnostic_for_asm (const_rtx insn, const char *msg, va_list *args_ptr, } void -error_for_asm (const_rtx insn, const char *gmsgid, ...) +error_for_asm (const rtx_insn *insn, const char *gmsgid, ...) { va_list ap; @@ -86,7 +87,7 @@ error_for_asm (const_rtx insn, const char *gmsgid, ...) } void -warning_for_asm (const_rtx insn, const char *gmsgid, ...) +warning_for_asm (const rtx_insn *insn, const char *gmsgid, ...) { va_list ap; |