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