aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1992-08-02 21:42:35 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1992-08-02 21:42:35 -0400
commit3da3fb2f61c0ba9fc62c4aa3e7d53af332b6c4a4 (patch)
tree5c3fd92d47b9dee3088a1581868ff74b9c4591bd
parentb61b1c9177598d1061c409de13ef1a665151e7e2 (diff)
downloadgcc-3da3fb2f61c0ba9fc62c4aa3e7d53af332b6c4a4.zip
gcc-3da3fb2f61c0ba9fc62c4aa3e7d53af332b6c4a4.tar.gz
gcc-3da3fb2f61c0ba9fc62c4aa3e7d53af332b6c4a4.tar.bz2
(NOTE_BLOCK_NUMBER): Change definition to simpler form.
(SET_NOTE_BLOCK_NUMBER): Deleted. From-SVN: r1755
-rw-r--r--gcc/rtl.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index c9db9c5..c724b66 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1,6 +1,5 @@
-
/* Register Transfer Language (RTL) definitions for GNU C-Compiler
- Copyright (C) 1987, 1991 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1991, 1992 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -315,9 +314,13 @@ extern char *reg_note_name[];
#define LINE_NUMBER NOTE
/* In a NOTE that is a line number, this is a string for the file name
- that the line is in. */
+ that the line is in. We use the same field to record block numbers
+ temporarily in NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes.
+ (We avoid lots of casts between ints and pointers if we use a
+ different macro for the bock number.) */
#define NOTE_SOURCE_FILE(INSN) ((INSN)->fld[3].rtstr)
+#define NOTE_BLOCK_NUMBER(INSN) ((INSN)->fld[3].rtint)
/* In a NOTE that is a line number, this is the line number.
Other kinds of NOTEs are identified by negative numbers here. */
@@ -357,11 +360,6 @@ extern char *reg_note_name[];
#define NOTE_INSN_DELETED_LABEL -12
/* Don't forget to change note_insn_name in rtl.c. */
-/* These macros are for recording block numbers temporarily
- in NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes. */
-#define NOTE_BLOCK_NUMBER(INSN) ((int) NOTE_SOURCE_FILE (INSN))
-#define SET_NOTE_BLOCK_NUMBER(INSN, NUMBER) \
- (NOTE_SOURCE_FILE (INSN) = (char *) (NUMBER))
#if 0 /* These are not used, and I don't know what they were for. --rms. */
#define NOTE_DECL_NAME(INSN) ((INSN)->fld[3].rtstr)
@@ -577,6 +575,9 @@ extern rtx plus_constant_wide (), plus_constant_for_output_wide ();
extern rtx gen_rtx ();
extern char *xmalloc ();
+extern char *xrealloc ();
+extern char *oballoc ();
+extern char *permalloc ();
extern void free ();
extern rtx rtx_alloc ();
extern rtvec rtvec_alloc ();