gensupport.c (process_rtx): Don't assume filename is the first argument of any rtl.
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 16 Nov 2001 22:59:46 +0000 (22:59 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 16 Nov 2001 22:59:46 +0000 (22:59 +0000)
* gensupport.c (process_rtx): Don't assume filename is the first
argument of any rtl.

From-SVN: r47111

gcc/ChangeLog
gcc/gensupport.c

index 1bff544d13390126cb1d3a58a91243352800e5e7..713b6b8904ac4be1ed77e7bb9f181203068f73e3 100644 (file)
@@ -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.
index 3bff170829537bc98185002b238a63d1ec97badc..26cf3cb23d2bd277f9c2e4956e7768c1e96e1e00 100644 (file)
@@ -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: