[PATCH] sim: add arch prefix to sim_machs
Mike Frysinger
vapier@gentoo.org
Fri Sep 10 21:59:31 GMT 2021
ping ...
On 28 Jun 2021 21:37, Mike Frysinger via Cgen wrote:
> We want to namespace the sim_machs structure to avoid conflicts when
> linking multiple architectures into a single build.
> ---
> sim.scm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sim.scm b/sim.scm
> index ae61a0939cf0..c7fe822767c3 100644
> --- a/sim.scm
> +++ b/sim.scm
> @@ -1475,7 +1475,8 @@
>
> (define (/gen-mach-data)
> (string-append
> - "const SIM_MACH * const sim_machs[] =\n{\n"
> + "const SIM_MACH * const " (symbol->string (current-arch-name))
> + "_sim_machs[] =\n{\n"
> (string-map (lambda (mach)
> (gen-obj-sanitize
> mach
> --
> 2.31.1
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/cgen/attachments/20210910/1e81327a/attachment.sig>
More information about the Cgen
mailing list