This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix some test failures


Fixes some testsuite failures.  Actually, the mn10200 change fixes one
test and causes others to fail, but that's better than silently
generating bad code.  I suspect no one is particularly interested in
this port anyway.

gas/ChangeLog
	* config/tc-i960.c (line_comment_chars): Add '#'.
	* config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.

Index: gas/config/tc-i960.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i960.c,v
retrieving revision 1.16
diff -u -p -r1.16 tc-i960.c
--- gas/config/tc-i960.c	16 Dec 2002 09:57:49 -0000	1.16
+++ gas/config/tc-i960.c	11 Jun 2003 05:56:39 -0000
@@ -206,7 +206,7 @@ const char comment_chars[] = "#";
 
 /* Also note that comments started like this one will always work.  */
 
-const char line_comment_chars[] = "";
+const char line_comment_chars[] = "#";
 
 const char line_separator_chars[] = ";";
 
Index: gas/config/tc-mn10200.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mn10200.c,v
retrieving revision 1.11
diff -u -p -r1.11 tc-mn10200.c
--- gas/config/tc-mn10200.c	12 Dec 2002 22:09:12 -0000	1.11
+++ gas/config/tc-mn10200.c	11 Jun 2003 05:56:39 -0000
@@ -1233,6 +1233,21 @@ tc_gen_reloc (seg, fixp)
   arelent *reloc;
   reloc = (arelent *) xmalloc (sizeof (arelent));
 
+  if (fixp->fx_subsy != NULL)
+    {
+      /* FIXME: We should resolve difference expressions if possible
+	 here.  At least this is better than silently ignoring the
+	 subtrahend.  */
+      as_bad_where (fixp->fx_file, fixp->fx_line,
+		    _("can't resolve `%s' {%s section} - `%s' {%s section}"),
+		    fixp->fx_addsy ? S_GET_NAME (fixp->fx_addsy) : "0",
+		    segment_name (fixp->fx_addsy
+				  ? S_GET_SEGMENT (fixp->fx_addsy)
+				  : absolute_section),
+		    S_GET_NAME (fixp->fx_subsy),
+		    segment_name (S_GET_SEGMENT (fixp->fx_addsy)));
+    }
+
   reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
   if (reloc->howto == (reloc_howto_type *) NULL)
     {

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]