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

Re: Commit: RX: Add support for detecting string insn use


> From: Nick Clifton <nickc@redhat.com>
> Date: Thu, 9 Apr 2015 13:47:28 +0200

> gas/ChangeLog
> 2015-04-09  Nick Clifton  <nickc@redhat.com>
> 
> 	* config/tc-rx.c (enum options): Add OPTION_DISALLOW_STRING_INSNS.
> 	(md_longopts): Add -mno-allow-string-insns.
> 	(md_parse_option): Handle -mno-allow-string-insns.
> 	(md_show_usage): Mention -mno-allow-string-insns.
> 	(rx_note_string_insn_use): New function.  Produces an error
> 	message if a string insn is used when it is not allowed.
> 	* config/rx-parse.y (SCMPU): Call rx_note_string_insn_use.
> 	(SMOVU, SMOVB, SMOVF, SUNTIL, SWHILE, RMPA): Likewise.
> 	* config/rx-defs.h (rx_note_string_insn_use): Prototype.
> 	* doc/c-rx.texi: Document -mno-allow-string-insns.

$ ./src-release.sh -b binutils
...
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:119: @code expected braces.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:119: Misplaced {.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:119: Misplaced }.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: @code expected braces.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: Misplaced {.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: Misplaced }.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: @code expected braces.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: Misplaced {.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: Misplaced }.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: @code missing close brace.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:120: @code missing close brace.
/tmp/hpautotest-binutils/bsrc/src/gas/doc//c-rx.texi:119: @code missing close brace.
makeinfo: Removing output file `as.info' due to errors; use --force to preserve.
make[1]: *** [as.info] Error 1
make[1]: Leaving directory `/tmp/hpautotest-binutils/bsrc/src/gas/doc'
make: *** [info-recursive] Error 1

$ makeinfo --version
makeinfo (GNU texinfo) 4.13
...

I checked in the following as an obvious fix.

gas:
	* doc/c-rx.texi: Fix markup typos in last change.

diff --git a/gas/doc/c-rx.texi b/gas/doc/c-rx.texi
index abf15cd..3fe2dd6 100644
--- a/gas/doc/c-rx.texi
+++ b/gas/doc/c-rx.texi
@@ -116,8 +116,8 @@ indicated cpu type will result in an error message being generated.
 @item -mno-allow-string-insns
 This option tells the assembler to mark the object file that it is
 building as one that does not use the string instructions
-@code{SMOVF}, @code{SCMPU}, @code {SMOVB}, @code{SMOVU}, @code{SUNTIL} 
-@code {SWHILE} or the @code {RMPA} instruction.  In addition the mark
+@code{SMOVF}, @code{SCMPU}, @code{SMOVB}, @code{SMOVU}, @code{SUNTIL}
+@code{SWHILE} or the @code{RMPA} instruction.  In addition the mark
 tells the linker to complain if an attempt is made to link the binary
 with another one that does use any of these instructions.
 
brgds, H-P


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