public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1337
@ 2022-06-25  9:33 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-25  9:33 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5bab921fc018bfaae00d2739e5c4e5912673823a

commit 5bab921fc018bfaae00d2739e5c4e5912673823a
Merge: fa57ab9f136 7e6424852e2
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Fri Jun 24 15:45:38 2022 +0000

    Merge #1337
    
    1337: Actually set TYPE_PACKED for type_record r=dafaust a=CohenArthur
    
    When bootstrapping with --enable-checking=no you'll get:
    
    gcc/rust/backend/rust-compile-type.cc: In member function
    ‘virtual void Rust::Compile::TyTyResolveCompile::visit(const Rust::TyTy::ADTType&)’:
    gcc/tree.h:2312:59: error: statement has no effect [-Werror=unused-value]
     2312 | #define TYPE_PACKED(NODE) (TYPE_CHECK (NODE)->base.u.bits.packed_flag)
          |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
    gcc/rust/backend/rust-compile-type.cc:315:7:
      note: in expansion of macro ‘TYPE_PACKED’
      315 |       TYPE_PACKED (type_record);
          |       ^~~~~~~~~~~
    
    We need to actually set a value for the packed_flag.
    
    
    Co-authored-by: Mark Wielaard <mark@klomp.org>

Diff:

 gcc/rust/backend/rust-compile-type.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-25  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-25  9:33 [gcc/devel/rust/master] Merge #1337 Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).