8sa1-binutils-gdb/sim/mips
Simon Marchi 2b8d134be4 sim: set ASAN_OPTIONS=detect_leaks=0 when running igen and opc2c
The igen/dgen and opc2c tools leak their heap-allocated memory (on
purpose) at program exit, which makes AddressSanitizer fail the tool
execution.  This breaks the build, as it makes the tool return a
non-zero exit code.

Fix that by disabling leak detection through the setting of that
environment variable.

I also changed the opc2c rules for m32c to go through a temporary file.
What happened is that the failing opc2c would produce an incomplete file
(probably because ASan exits the process before stdout is flushed).
This meant that further make attempts didn't try to re-create the file,
as it already existed.  A "clean" was therefore necessary.  This can
also happen in regular builds if the user interrupts the build (^C) in
the middle of the opc2c execution and tries to resume it.  Going to a
temporary file avoids this issue.

sim/m32c/ChangeLog:

	* Makefile.in: Set ASAN_OPTIONS when running opc2c.

sim/mips/ChangeLog:

	* Makefile.in: Set ASAN_OPTIONS when running igen.

sim/mn10300/ChangeLog:

	* Makefile.in: Set ASAN_OPTIONS when running igen.

sim/ppc/ChangeLog:

	* Makefile.in: Set ASAN_OPTIONS when running igen.

sim/v850/ChangeLog:

	* Makefile.in: Set ASAN_OPTIONS when running igen.

Change-Id: I00f21d4dc1aff0ef73471925d41ce7c23e83e082
2021-04-08 09:49:30 -04:00
..
aclocal.m4 sim: unify toolchain settings 2021-04-02 23:31:14 -04:00
ChangeLog sim: set ASAN_OPTIONS=detect_leaks=0 when running igen and opc2c 2021-04-08 09:49:30 -04:00
config.in sim: clean up C11 header includes 2021-01-11 08:05:54 -05:00
configure sim: unify toolchain settings 2021-04-02 23:31:14 -04:00
configure.ac sim: common: split up acinclude.m4 into individual m4 files 2021-02-21 02:20:19 -05:00
cp1.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cp1.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dsp2.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dsp.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dsp.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-tx3904cpu.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-tx3904irc.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-tx3904sio.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dv-tx3904tmr.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
interp.c sim: mips: Add handlers to simulator monitor for unlink, lseek and stat 2021-04-04 16:44:21 +05:30
m16.dc Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
m16.igen [PATCH] Add micromips support to the MIPS simulator 2015-09-25 15:52:18 +01:00
m16e.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
m16run.c sim: replace CIA_{GET,SET} with CPU_PC_{GET,SET} 2015-04-17 02:44:30 -04:00
Makefile.in sim: set ASAN_OPTIONS=detect_leaks=0 when running igen and opc2c 2021-04-08 09:49:30 -04:00
mdmx.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mdmx.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
micromips16.dc [PATCH] Add micromips support to the MIPS simulator 2015-09-25 15:52:18 +01:00
micromips.dc [PATCH] Add micromips support to the MIPS simulator 2015-09-25 15:52:18 +01:00
micromips.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
micromipsdsp.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
micromipsrun.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips3d.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips3264r2.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mips.dc Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
mips.igen sim: mips: fix builds for r3900 cpus due to missing check_u64 2016-11-11 01:28:36 -05:00
sb1.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
sim-main.c sim/mips/sim-main.c: Include <stdlib.h> (for abort() declaration) 2020-12-31 08:14:36 +04:00
sim-main.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
smartmips.igen Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
tx.igen import gdb-1999-09-08 snapshot 1999-09-09 00:02:17 +00:00
vr.igen 2005-05-26 David Ung <davidu@mips.com> 2005-05-26 21:31:57 +00:00