Files
binutils-gdb/opcodes
Jens Remus aa4fbe8859 s390: Do not generate incomplete opcode table
The s390 opcode table s390-opc.tbl is generated from s390-opc.txt
using the s390-mkopc utility using output redirection.  If s390-mkopc
fails with a non-zero return code, e.g. due to a warning or error, an
incomplete opcode table may be generated in the build directory.  A
subsequent invocation of make then assumes that incomplete opcode
table to be up to date.  Depending on the s390-mkopc issue the build
may then proceed without any follow-on warnings or errors, causing
the preceding error or warning to go unnoticed.

Generate the s390 opcode table into an intermediate temporary file
s390-opc.tbl.tmp in the build directory and only move it to the final
target s390-opc.tbl if the generation was successful.

Tested by appending an unsupported inline comment "# TEST" to one of
the instructions defined in s390-opc.txt.

opcodes/
	* Makefile.am (s390-opc.tab): Use an intermediate temporary file
	to prevent updating of the target on error/warning.
	* Makefile.in: Regenerated.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
2025-10-30 14:39:59 +01:00
..
2025-07-13 08:35:45 +01:00
2025-08-07 22:14:49 +09:30
2025-01-14 10:30:40 +08:00
2025-10-10 09:26:24 +02:00
2025-06-13 13:46:30 +02:00
2025-10-06 13:31:30 +10:30
2025-07-09 09:35:07 +09:30
2025-07-09 09:35:07 +09:30