diff options
author | Per Bothner <per@bothner.com> | 2004-06-30 11:21:54 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-06-30 11:21:54 -0700 |
commit | 9506ac2be5e52ce7e184be3c52d31421355b7ab4 (patch) | |
tree | e54e6194b2452bb0b1eea27a54b905b6672b2f10 /gcc/sched-vis.c | |
parent | 6773e15fa5ac64bf67b19088e149f4d3cda2cf9a (diff) | |
download | gcc-9506ac2be5e52ce7e184be3c52d31421355b7ab4.zip gcc-9506ac2be5e52ce7e184be3c52d31421355b7ab4.tar.gz gcc-9506ac2be5e52ce7e184be3c52d31421355b7ab4.tar.bz2 |
Conditionally compile support for --enable-mapped_location.
* gengtype-lex.l: Temporary kludge to avoid duplicate typedef.
* gengtype.c: Update for now typdefs in input.h. More kludges.
* modulo-sched.c (sms_schedule): Use NOTE_EXPANDED_LOCATION macro.
* ra-debug.c (ra_print_rtl): Likewise.
* sched-rgn.c: Likewise.
* sched-vis.c: Likewise.
* rtl.h (gen_rtx_ASM_OPERANDS): Redefine if USE_MAPPED_LOCATION.
* stmt.c (expand_asm_operands): Adjust calls to gen_rtx_ASM_OPERANDS.
* tree-cfg.c: Use new macros and typedefs.
* tree-flow-inline.h: Likewise.
From-SVN: r83922
Diffstat (limited to 'gcc/sched-vis.c')
-rw-r--r-- | gcc/sched-vis.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/sched-vis.c b/gcc/sched-vis.c index b7544d2..8568306 100644 --- a/gcc/sched-vis.c +++ b/gcc/sched-vis.c @@ -787,8 +787,12 @@ print_insn (char *buf, rtx x, int verbose) break; case NOTE: if (NOTE_LINE_NUMBER (x) > 0) - sprintf (buf, "%4d note \"%s\" %d", INSN_UID (x), - NOTE_SOURCE_FILE (x), NOTE_LINE_NUMBER (x)); + { + expanded_location xloc; + NOTE_EXPANDED_LOCATION (xloc, x); + sprintf (buf, "%4d note \"%s\" %d", INSN_UID (x), + xloc.file, xloc.line); + } else sprintf (buf, "%4d %s", INSN_UID (x), GET_NOTE_INSN_NAME (NOTE_LINE_NUMBER (x))); |