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

https://gcc.gnu.org/g:7a94948e65db2fef6fd93c94e70ead168b71513d

commit 7a94948e65db2fef6fd93c94e70ead168b71513d
Merge: a4455d8f522 1a04c501e41
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Thu May 26 18:50:14 2022 +0000

    Merge #1283
    
    1283: const folding in gccrs: remove ConstCtx class. r=philberty a=abbasfaisal
    
    Card: [Link](https://github.com/Rust-GCC/gccrs/projects/16#card-82300522)
    
    This class had potential to hinder porting further const folding code from C++. This edit makes it easy to copy code from constexpr.cc to rust-constexpr.cc and so on.
    
    Structs `constexpr_ctx` and `constexpr_global_ctx` have been copied as well as to keep `constexpr_ops_count` after removing the class. These structs will be filled further as the port carries on. The prototypes inside ConstCtx have been copied over to rust-constexpr.cc as static prototypes.
    
    
    Co-authored-by: Faisal Abbas <90.abbasfaisal@gmail.com>

Diff:

 gcc/rust/backend/rust-compile-base.cc         |  4 +-
 gcc/rust/backend/rust-compile-expr.cc         |  2 +-
 gcc/rust/backend/rust-compile-expr.h          |  2 +-
 gcc/rust/backend/rust-compile-pattern.cc      |  6 +-
 gcc/rust/backend/rust-compile-resolve-path.cc |  2 +-
 gcc/rust/backend/rust-compile-type.cc         |  2 +-
 gcc/rust/backend/rust-constexpr.cc            | 86 ++++++++++++++++++---------
 gcc/rust/backend/rust-constexpr.h             | 17 +-----
 8 files changed, 67 insertions(+), 54 deletions(-)


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

only message in thread, other threads:[~2022-06-08 12:50 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:50 [gcc/devel/rust/master] Merge #1283 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).