[PATCH] rust: Fix rust-tree.cc compilation on SPARC

Arthur Cohen arthur.cohen@embecosm.com
Mon Feb 20 10:37:54 GMT 2023


Thanks Rainer!

Ok for trunk :)

Kindly,

-- 
Arthur

On 2/20/23 11:36, Rainer Orth wrote:
> This patch
> 
> commit 27a89f84c458ae938bc3eb92ad0d594c06fc3b42
> Author: Thomas Schwinge <thomas@codesourcery.com>
> Date:   Fri Feb 17 23:36:20 2023 +0100
> 
>      '#include "tm_p.h"' in 'gcc/rust/backend/rust-tree.cc'
> 
> broke rust bootstrap on SPARC:
> 
> In file included from ./tm_p.h:4,
>                   from /vol/gcc/src/hg/master/local/gcc/rust/backend/rust-tree.cc:38:
> /vol/gcc/src/hg/master/local/gcc/config/sparc/sparc-protos.h:46:47: error: use of enum 'memmodel' without previous declaration
>     46 | extern void sparc_emit_membar_for_model (enum memmodel, int, int);
>        |                                               ^~~~~~~~
> 
> Fixed by including memmodel.h.  Tested on sparc-sun-solaris2.11 and
> i386-pc-solaris2.11.
> 
> Ok for trunk?
> 
> I'd usually commit the patch as obvious, but have no idea how rust
> patches are handled.
> 
> 	Rainer
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x1B3465B044AD9C65.asc
Type: application/pgp-keys
Size: 3143 bytes
Desc: OpenPGP public key
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20230220/d814129a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20230220/d814129a/attachment.sig>


More information about the Gcc-patches mailing list