This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Committed sim/mips: Exit early when igen fails for multi
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 8 Jul 2011 05:49:48 +0200
- Subject: Committed sim/mips: Exit early when igen fails for multi
When you edit igen files and compile-and-test for a sim_gen=MULTI
MIPS target, this is the difference between a single error and a
cascade of igen errors and possibly compile errors. The single
"exit" exits with the exit code of the previous command. No other
sim/mips igen calls needed this, being single makefile commands.
Tested by rebuilding mipsisa32r2-elf mips-elf mips64vrel-elf,
committed.
sim/mips:
* Makefile.in (tmp-mach-multi): Exit early when igen fails.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/sim/mips/Makefile.in,v
retrieving revision 1.14
diff -p -u -r1.14 Makefile.in
--- Makefile.in 25 Jun 2007 11:21:53 -0000 1.14
+++ Makefile.in 8 Jul 2011 02:56:11 -0000
@@ -352,7 +352,7 @@ tmp-mach-multi: $(IGEN_INSN) $(IGEN_DC)
-n $${p}_support.c -f tmp-support.c \
-n $${p}_engine.h -he tmp-engine.h \
-n $${p}_engine.c -e tmp-engine.c \
- ; \
+ || exit; \
$(SHELL) $(srcdir)/../../move-if-change tmp-icache.h $${p}_icache.h ; \
$(SHELL) $(srcdir)/../../move-if-change tmp-icache.c $${p}_icache.c ; \
$(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h $${p}_idecode.h ; \
brgds, H-P