[PATCH 04/12] sim/testsuite/cris/c: Use -sim3 but only for newlib targets
Hans-Peter Nilsson
hp@axis.com
Wed Feb 16 06:09:06 GMT 2022
> Date: Wed, 16 Feb 2022 00:39:09 -0500
> From: Mike Frysinger <vapier@gentoo.org>
> On 15 Feb 2022 00:02, Hans-Peter Nilsson via Gdb-patches wrote:
> > But, save and restore CFLAGS_FOR_TARGET around the modification and
> > use where needed, to not have the CRIS-specific modification affect a
> > continuing test-run (possibly for other targets).
>
> this part isn't needed by design. every .exp file calls `sim_init` which in
> turn calls `sim_init_toolchain` which fully initializes the toolchain for the
> current file. so as soon as c.exp finishes running, whatever comes next is
> going to reset the flags you saved.
> -mike
I know, I just didn't want to rely on that being the case.
brgds, H-P
More information about the Gdb-patches
mailing list