public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] c++/modules: make bits_in/out move-constructible
@ 2024-04-13 20:12 Patrick Palka
  2024-04-14 14:59 ` Gerald Pfeifer
  2024-04-22  0:57 ` Christophe Lyon
  0 siblings, 2 replies; 4+ messages in thread
From: Patrick Palka @ 2024-04-13 20:12 UTC (permalink / raw)
  To: gcc-patches; +Cc: jason, Patrick Palka

Pushed as obvious after verifying C++11 bootstrap is restored.

-- >8 --

gcc/cp/ChangeLog:

	* module.cc (struct bytes_in::bits_in): Define defaulted
	move ctor.
	(struct bytes_out::bits_out): Likewise.
---
 gcc/cp/module.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index bbed82652d4..c6f71e11515 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -706,6 +706,7 @@ struct bytes_in::bits_in {
     bflush ();
   }
 
+  bits_in(bits_in&&) = default;
   bits_in(const bits_in&) = delete;
   bits_in& operator=(const bits_in&) = delete;
 
@@ -752,6 +753,7 @@ struct bytes_out::bits_out {
     bflush ();
   }
 
+  bits_out(bits_out&&) = default;
   bits_out(const bits_out&) = delete;
   bits_out& operator=(const bits_out&) = delete;
 
-- 
2.44.0.591.g8f7582d995


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pushed] c++/modules: make bits_in/out move-constructible
  2024-04-13 20:12 [pushed] c++/modules: make bits_in/out move-constructible Patrick Palka
@ 2024-04-14 14:59 ` Gerald Pfeifer
  2024-04-22  0:57 ` Christophe Lyon
  1 sibling, 0 replies; 4+ messages in thread
From: Gerald Pfeifer @ 2024-04-14 14:59 UTC (permalink / raw)
  To: Patrick Palka; +Cc: gcc-patches, Jason Merrill

On Sat, 13 Apr 2024, Patrick Palka wrote:
> Pushed as obvious after verifying C++11 bootstrap is restored.

Thank you, Patrick! x86_64-unknown-freebsd13.2 is back to bootstrap again 
as well (with clang version 16.0.6).

Gerald

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pushed] c++/modules: make bits_in/out move-constructible
  2024-04-13 20:12 [pushed] c++/modules: make bits_in/out move-constructible Patrick Palka
  2024-04-14 14:59 ` Gerald Pfeifer
@ 2024-04-22  0:57 ` Christophe Lyon
  2024-04-22 21:29   ` Patrick Palka
  1 sibling, 1 reply; 4+ messages in thread
From: Christophe Lyon @ 2024-04-22  0:57 UTC (permalink / raw)
  To: Patrick Palka; +Cc: gcc-patches, jason

Hi Patrick,

On Sat, 13 Apr 2024 at 22:12, Patrick Palka <ppalka@redhat.com> wrote:
>
> Pushed as obvious after verifying C++11 bootstrap is restored.

I guess this also fixes the bootstrap_ubsan breakage on aarch64
reported by Linaro CI?
See https://linaro.atlassian.net/browse/GNU-1199
(I think you also received a notification about this a few days ago?)

Thanks,

Christophe

>
> -- >8 --
>
> gcc/cp/ChangeLog:
>
>         * module.cc (struct bytes_in::bits_in): Define defaulted
>         move ctor.
>         (struct bytes_out::bits_out): Likewise.
> ---
>  gcc/cp/module.cc | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
> index bbed82652d4..c6f71e11515 100644
> --- a/gcc/cp/module.cc
> +++ b/gcc/cp/module.cc
> @@ -706,6 +706,7 @@ struct bytes_in::bits_in {
>      bflush ();
>    }
>
> +  bits_in(bits_in&&) = default;
>    bits_in(const bits_in&) = delete;
>    bits_in& operator=(const bits_in&) = delete;
>
> @@ -752,6 +753,7 @@ struct bytes_out::bits_out {
>      bflush ();
>    }
>
> +  bits_out(bits_out&&) = default;
>    bits_out(const bits_out&) = delete;
>    bits_out& operator=(const bits_out&) = delete;
>
> --
> 2.44.0.591.g8f7582d995
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pushed] c++/modules: make bits_in/out move-constructible
  2024-04-22  0:57 ` Christophe Lyon
@ 2024-04-22 21:29   ` Patrick Palka
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick Palka @ 2024-04-22 21:29 UTC (permalink / raw)
  To: Christophe Lyon; +Cc: Patrick Palka, gcc-patches, jason

On Mon, 22 Apr 2024, Christophe Lyon wrote:

> Hi Patrick,
> 
> On Sat, 13 Apr 2024 at 22:12, Patrick Palka <ppalka@redhat.com> wrote:
> >
> > Pushed as obvious after verifying C++11 bootstrap is restored.
> 
> I guess this also fixes the bootstrap_ubsan breakage on aarch64
> reported by Linaro CI?
> See https://linaro.atlassian.net/browse/GNU-1199
> (I think you also received a notification about this a few days ago?)

Yes, sorry for the breakage.  r14-9955-g436ab7e8e8b broke bootstrap
due to relying on C++17 copy elision semantics, and this followup
patch trivially fixed that.

> 
> Thanks,
> 
> Christophe
> 
> >
> > -- >8 --
> >
> > gcc/cp/ChangeLog:
> >
> >         * module.cc (struct bytes_in::bits_in): Define defaulted
> >         move ctor.
> >         (struct bytes_out::bits_out): Likewise.
> > ---
> >  gcc/cp/module.cc | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
> > index bbed82652d4..c6f71e11515 100644
> > --- a/gcc/cp/module.cc
> > +++ b/gcc/cp/module.cc
> > @@ -706,6 +706,7 @@ struct bytes_in::bits_in {
> >      bflush ();
> >    }
> >
> > +  bits_in(bits_in&&) = default;
> >    bits_in(const bits_in&) = delete;
> >    bits_in& operator=(const bits_in&) = delete;
> >
> > @@ -752,6 +753,7 @@ struct bytes_out::bits_out {
> >      bflush ();
> >    }
> >
> > +  bits_out(bits_out&&) = default;
> >    bits_out(const bits_out&) = delete;
> >    bits_out& operator=(const bits_out&) = delete;
> >
> > --
> > 2.44.0.591.g8f7582d995
> >
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-22 21:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-13 20:12 [pushed] c++/modules: make bits_in/out move-constructible Patrick Palka
2024-04-14 14:59 ` Gerald Pfeifer
2024-04-22  0:57 ` Christophe Lyon
2024-04-22 21:29   ` Patrick Palka

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).