* symbols.c (report_op_error): Fix pasto. Don't use as_bad_where
authorAlan Modra <amodra@gmail.com>
Mon, 17 Jul 2006 12:49:50 +0000 (12:49 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 17 Jul 2006 12:49:50 +0000 (12:49 +0000)
when file and line unknown.

gas/ChangeLog
gas/symbols.c

index a55f841b8caec6227282614c577f27a69af11738..80c46cd276cd2f791328318d2b1a17344a78b27b 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-17  Mat Hostetter  <mat@lcs.mit.edu>
+
+       * symbols.c (report_op_error): Fix pasto.  Don't use as_bad_where
+       when file and line unknown.
+
 2006-07-17  Thiemo Seufer  <ths@mips.com>
 
        * read.c (s_struct): Use IS_ELF.
index 499e8c4d31b3bf43d517034758f70a18de2c9367..117d1220e670fb81fe088271be387976a388b910 100644 (file)
@@ -925,13 +925,11 @@ report_op_error (symbolS *symp, symbolS *left, symbolS *right)
          && seg_right != undefined_section)
        {
          if (right)
-           as_bad_where (file, line,
-                         _("invalid sections for operation on `%s' and `%s' setting `%s'"),
-                         S_GET_NAME (left), S_GET_NAME (right), S_GET_NAME (symp));
+           as_bad (_("invalid sections for operation on `%s' and `%s' setting `%s'"),
+                   S_GET_NAME (left), S_GET_NAME (right), S_GET_NAME (symp));
          else
-           as_bad_where (file, line,
-                         _("invalid section for operation on `%s' setting `%s'"),
-                         S_GET_NAME (left), S_GET_NAME (symp));
+           as_bad (_("invalid section for operation on `%s' setting `%s'"),
+                   S_GET_NAME (left), S_GET_NAME (symp));
        }
     }
 }