[PATCH v2] Ada: hashed container Cursor type predefined equality non-conformance

Richard Wai richard@annexi-strayline.com
Wed Mar 10 15:07:12 GMT 2021


Please disregard this v2 patch. V1 is the correct patch.

Change log entries to be added for V1, to follow.

Richard

> -----Original Message-----
> From: Richard Wai <richard@annexi-strayline.com>
> Sent: March 9, 2021 4:26 PM
> To: 'Arnaud Charlet' <charlet@adacore.com>
> Cc: 'gcc-patches@gcc.gnu.org' <gcc-patches@gcc.gnu.org>; 'Bob Duff'
> <duff@adacore.com>
> Subject: [PATCH v2] Ada: hashed container Cursor type predefined equality
> non-conformance
> 
> Thanks for the pointer!
> 
> I think Eric was a little bit too generous last time and formatted the
commit
> log for me =P.
> 
> I have added the appropriate entries to the Changelog's, and have included
> those in the patch (attached), which is also updated to master/HEAD,
> hopefully that is the most helpful approach.
> 
> Cheers,
> 
> Richard
> 
> > -----Original Message-----
> > From: Arnaud Charlet <charlet@adacore.com>
> > Sent: March 9, 2021 10:51 AM
> > To: Richard Wai <richard@annexi-strayline.com>
> > Cc: gcc-patches@gcc.gnu.org; 'Bob Duff' <duff@adacore.com>; Arnaud
> > Charlet <charlet@adacore.com>
> > Subject: Re: [PATCH] Ada: hashed container Cursor type predefined
> > equality non-conformance
> >
> > > Oops, I wrote "effected" when I meant "affected". Of course, despite
> > > reading it several times before sending, I only noticed it after
sending.
> > >
> > > Edited version:
> > >
> > > ---
> > >
> > > * libgnat/a-cohase.ads, libgnat/a-cohase.adb, libgnat/a-cohama.ads,
> > > libgnat/a-cohama.adb, libgnat/a-cihama.ads, libgnat/a-cihama.adb:
> > > Ensure that Cursor objects always have their "Position" component
> > > set to ensure predefined equality works as required; synchronize
> > > comments for the Cursor type defintion across affected packages, and
> > > add comments to explain the importance of updating the Position
> component.
> > > * testsuite/gnat.dg/containers2.adb: New regression test to ensure
> > > that all hashed containers obey predefined equality requirements for
> > Cursor objects.
> >
> > OK. The commit log follows strict rules, and in particular you need to
> > list the functions (And types modified), e.g:
> >
> > 	* libgnat/a-cohase.ads, libgnat/a-cohase.adb, libgnat/a-cohama.ads,
> > 	libgnat/a-cohama.adb, libgnat/a-cihama.ads, libgnat/a-cihama.adb
> > (Cursor,
> > 	Insert, Find): ...
> >
> > See https://gcc.gnu.org/codingconventions.html#ChangeLogs for more
> > details.
> >
> > OK with the above commit log amended.
> >
> > Arno



More information about the Gcc-patches mailing list