summaryrefslogtreecommitdiff
path: root/gcc/gensupport.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-16 22:59:46 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-16 22:59:46 +0000
commit9d0c621f290986ebfed536a064da545cdc7c9cb6 (patch)
tree53aa65be418b9e4394f132ac9c3a0c6a3a795e82 /gcc/gensupport.c
parentdfad6f4700f7f5482817bc934c9d665ea581a22c (diff)
downloadgcc-9d0c621f290986ebfed536a064da545cdc7c9cb6.tar.gz
* gensupport.c (process_rtx): Don't assume filename is the first
argument of any rtl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47111 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r--gcc/gensupport.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index 3bff1708295..26cf3cb23d2 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: