This is the mail archive of the binutils@sourceware.cygnus.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]

sparc: gas recognizing -xarch ?


Hi.

There seems to be partial support for recognizing Sun's as -xarch flag
in gas, but limited to v8plus and v8plusa.  I fail to see why this is
a good idea.  The appended patch makes it work for all supported
architectures.

/assar

Index: tc-sparc.c
===================================================================
RCS file: /cvs/binutils/binutils/gas/config/tc-sparc.c,v
retrieving revision 1.1.1.1
diff -u -w -u -w -r1.1.1.1 tc-sparc.c
--- tc-sparc.c	1999/05/03 07:28:43	1.1.1.1
+++ tc-sparc.c	1999/05/14 01:41:15
@@ -421,12 +421,6 @@
 
     case OPTION_XARCH:
       /* This is for compatibility with Sun's assembler.  */
-      if (strcmp (arg, "v8plus") != 0
-	  && strcmp (arg, "v8plusa") != 0)
-	{
-	  as_bad (_("invalid architecture -xarch=%s"), arg);
-	  return 0;
-	}
 
       /* fall through */
 

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