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

https://gcc.gnu.org/g:a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2

commit a6c5dbadc3c9023821244bd4af4e78ad9d8f63f2
Merge: b02824c6a79 b4587fb281d
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Fri Jan 21 16:19:30 2022 +0000

    Merge #879
    
    879: Record correct location when compiling ADT types r=philberty a=dafaust
    
    When compiling struct and union types, we were using the wrong HirId
    to lookup location information. The resulting GIMPLE nodes therefore
    had no source location information, which made them indistinguishable
    as user-declarations versus decls created by the compiler. As a result,
    the type names were not shown in GIMPLE dumps, e.g. using
    -fdump-tree-gimple.
    
    Fix the location lookup, so these types are properly printed, and add a
    simple test checking as much.
    
    Fixes: #877
    
    
    
    Co-authored-by: David Faust <david.faust@oracle.com>

Diff:

 gcc/rust/backend/rust-compile-type.cc             |  2 +-
 gcc/testsuite/rust/compile/torture/struct_decl.rs | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)


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

only message in thread, other threads:[~2022-06-08 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:00 [gcc/devel/rust/master] Merge #879 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).