This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: src/gas ChangeLog config/tc-mips.c
- To: binutils at sources dot redhat dot com
- Subject: Re: src/gas ChangeLog config/tc-mips.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 11 Jun 2001 09:37:04 -0700
- References: <20010609052440.25257.qmail@sourceware.cygnus.com> <siu21nghm1.fsf@daffy.airs.com>
On Mon, Jun 11, 2001 at 08:29:26AM -0700, Ian Lance Taylor wrote:
>
> This seems to add an option. That must be documented in
> gas/doc/c-mips.texi; how else will anybody know about it? Did you
> update md_show_usage? It also seems to change behaviour. That should
> probably be documented in gas/NEWS.
>
> Ian
How about this?
BTW, does anyone know why we have to duplicate the machine specific
usage in both doc/as.texinfo and gas/doc/c-arch.texi? Shouldn't the
one in doc/as.texinfo be enough?
Thanks.
H.J.
----
2001-06-11 H.J. Lu <hjl@gnu.org>
* NEWS: Updated for the new -n option for the MIPS assembler.
* config/tc-mips.c (md_show_usage): Add -n.
* doc/as.texinfo: Document the new -n option.
* doc/c-mips.texi: Likewise.
* doc/as.1: Regnerated.
Index: NEWS
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/NEWS,v
retrieving revision 1.1.1.15
diff -u -p -r1.1.1.15 NEWS
--- NEWS 2001/01/23 18:59:58 1.1.1.15
+++ NEWS 2001/06/11 16:29:42
@@ -1,5 +1,9 @@
-*- text -*-
+The MIPS assembler no longer issues a warning by default when it
+generates a nop instruction from a macro. The new command line option
+-n will turn on the warning.
+
Changes in 2.11:
x86 gas now supports the full Pentium4 instruction set.
Index: config/tc-mips.c
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/config/tc-mips.c,v
retrieving revision 1.41
diff -u -p -r1.41 tc-mips.c
--- config/tc-mips.c 2001/06/10 17:31:48 1.41
+++ config/tc-mips.c 2001/06/11 16:29:43
@@ -9331,6 +9331,7 @@ MIPS options:\n\
fprintf (stream, _("\
-O0 remove unneeded NOPs, do not swap branches\n\
-O remove unneeded NOPs and swap branches\n\
+-n warn NOPs generated from macros\n\
--[no-]construct-floats [dis]allow floating point values to be constructed\n\
--trap, --no-break trap exception on div by 0 and mult overflow\n\
--break, --no-trap break exception on div by 0 and mult overflow\n"));
Index: doc/as.1
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/doc/as.1,v
retrieving revision 1.1.1.8
diff -u -p -r1.1.1.8 as.1
--- doc/as.1 2001/04/24 16:13:08 1.1.1.8
+++ doc/as.1 2001/06/11 16:29:43
@@ -1,5 +1,5 @@
.\" Automatically generated by Pod::Man version 1.02
-.\" Fri Apr 13 11:27:39 2001
+.\" Mon Jun 11 09:28:09 2001
.\"
.\" Standard preamble:
.\" ======================================================================
@@ -137,7 +137,7 @@
.\" ======================================================================
.\"
.IX Title "AS 1"
-.TH AS 1 "binutils-2.11.90" "2001-04-13" "GNU"
+.TH AS 1 "binutils-2.11.90" "2001-06-11" "GNU"
.UC
.SH "NAME"
\&\s-1AS\s0 \- the portable \s-1GNU\s0 assembler.
@@ -192,7 +192,7 @@ as [ \-a[cdhlns][=file] ] [ \-D ] [ \-\
[ \-mips1 ] [ \-mips2 ] [ \-mips3 ] [ \-mips4 ] [ \-mips5 ]
[ \-mips32 ] [ \-mips64 ]
[ \-m4650 ] [ \-no-m4650 ]
- [ \-\-trap ] [ \-\-break ]
+ [ \-\-trap ] [ \-\-break ] [ \-n ]
[ \-\-emulation=\fIname\fR ]
[ \*(-- | \fIfiles\fR ... ]
.SH "DESCRIPTION"
@@ -677,6 +677,10 @@ Control how to deal with multiplication
(and only work for Instruction Set Architecture level 2 and higher);
\&\fB\*(--break\fR or \fB\*(--no-trap\fR (also synonyms, and the default) take a
break exception.
+.Ip "\f(CW\*(C`\-n\*(C'\fR" 4
+.IX Item "-n"
+When this option is used, \f(CW\*(C`as\*(C'\fR will issue a warning every
+time it generates a nop instruction from a macro.
.PP
The following options are available when as is configured for
an MCore processor.
Index: doc/as.texinfo
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/doc/as.texinfo,v
retrieving revision 1.24
diff -u -p -r1.24 as.texinfo
--- doc/as.texinfo 2001/03/27 16:55:14 1.24
+++ doc/as.texinfo 2001/06/11 16:29:43
@@ -332,7 +332,7 @@ gcc(1), ld(1), and the Info entries for
[ -mips1 ] [ -mips2 ] [ -mips3 ] [ -mips4 ] [ -mips5 ]
[ -mips32 ] [ -mips64 ]
[ -m4650 ] [ -no-m4650 ]
- [ --trap ] [ --break ]
+ [ --trap ] [ --break ] [ -n ]
[ --emulation=@var{name} ]
@end ifset
[ -- | @var{files} @dots{} ]
@@ -829,6 +829,10 @@ Control how to deal with multiplication
(and only work for Instruction Set Architecture level 2 and higher);
@samp{--break} or @samp{--no-trap} (also synonyms, and the default) take a
break exception.
+
+@item -n
+When this option is used, @code{@value{AS}} will issue a warning every
+time it generates a nop instruction from a macro.
@end table
@end ifset
Index: doc/c-mips.texi
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/doc/c-mips.texi,v
retrieving revision 1.1.1.9
diff -u -p -r1.1.1.9 c-mips.texi
--- doc/c-mips.texi 2001/03/09 19:17:15 1.1.1.9
+++ doc/c-mips.texi 2001/06/11 16:29:43
@@ -189,6 +189,10 @@ are only supported at Instruction Set Ar
@itemx --no-trap
Generate code to take a break exception rather than a trap exception when an
error is detected. This is the default.
+
+@item -n
+When this option is used, @code{@value{AS}} will issue a warning every
+time it generates a nop instruction from a macro.
@end table
@node MIPS Object