Joseph Myers 0b8693fc87 c: Update nullptr_t comparison checks
WG14 has agreed to allow equality comparisons between pointers and
nullptr_t values that are not null pointer constants (this was
previously an exceptional case where such nullptr_t values were
handled differently from null pointer constants; other places in the
standard allowed nullptr_t values, whether or not those values are
null pointer constants, in the same contexts as null pointer
constants); see the wording at the end of N3077.  Update GCC's
implementation to match this change.

There are also changes to allow null pointer constants of integer or
pointer type to be converted to nullptr_t (by assignment, cast or
conversion as if by assignment), which I'll deal with separately.

Bootstrapped with no regressions for x86_64-pc-linux-gnu.

gcc/c/
	* c-typeck.cc (build_binary_op): Allow comparisons between
	pointers and nullptr_t values that are not null pointer constants.

gcc/testsuite/
	* gcc.dg/c2x-constexpr-3.c: Do not expect comparison of nullptr_t
	and pointer to be disallowed.
	* gcc.dg/c2x-nullptr-1.c: Test comparisons of nullptr_t and
	pointers are allowed.
	* gcc.dg/c2x-nullptr-3.c: Do not test that comparisons of
	nullptr_t and pointers are disallowed.
2023-02-02 23:29:45 +00:00
2023-01-20 00:17:40 +00:00
2023-01-22 00:17:27 +00:00
2023-02-02 23:29:45 +00:00
2023-01-16 11:52:17 +01:00
2023-01-17 00:18:06 +00:00
2023-01-21 00:16:20 +00:00
2023-01-17 00:18:06 +00:00
2023-01-23 00:16:34 +00:00
2023-01-31 00:18:44 +00:00
2023-01-19 00:17:35 +00:00
2023-02-02 00:17:43 +00:00
2023-01-18 00:17:21 +00:00
2023-02-01 00:18:50 +00:00
2014-11-16 14:07:13 +00:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
S
Description
Yggdrasil port of the GNU Compiler Collection
Readme 978 MiB
Languages
C++ 33%
C 27.4%
Ada 13%
Go 7.1%
D 7%
Other 12.1%