diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-11-16 22:59:46 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-11-16 22:59:46 +0000 |
commit | e13c552619f4d03723b6056b15257c629ba92bb2 (patch) | |
tree | 53aa65be418b9e4394f132ac9c3a0c6a3a795e82 /gcc | |
parent | 268399cd7f8fbfd0cc82fa15c5c195e40b12f7a4 (diff) | |
download | gcc-e13c552619f4d03723b6056b15257c629ba92bb2.zip gcc-e13c552619f4d03723b6056b15257c629ba92bb2.tar.gz gcc-e13c552619f4d03723b6056b15257c629ba92bb2.tar.bz2 |
gensupport.c (process_rtx): Don't assume filename is the first argument of any rtl.
* gensupport.c (process_rtx): Don't assume filename is the first
argument of any rtl.
From-SVN: r47111
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gensupport.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1bff544..713b6b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-16 Alexandre Oliva <aoliva@redhat.com> + + * gensupport.c (process_rtx): Don't assume filename is the first + argument of any rtl. + 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca> * vax-protos.h (reg_was_0_p): New prototype. diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 3bff170..26cf3cb 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -324,8 +324,6 @@ process_rtx (desc, lineno) rtx desc; int lineno; { - const char *filename = XSTR (desc, 0); - switch (GET_CODE (desc)) { case DEFINE_INSN: @@ -342,7 +340,11 @@ process_rtx (desc, lineno) case INCLUDE: if (process_include (desc, lineno) == FATAL_EXIT_CODE) - message_with_line (lineno, "include file at %s not found\n", filename); + { + const char *filename = XSTR (desc, 0); + message_with_line (lineno, "include file at %s not found\n", + filename); + } break; case DEFINE_INSN_AND_SPLIT: |