Roger Sayle 40f6e59122 PR c/106264: Silence warnings from __builtin_modf et al.
This middle-end patch resolves PR c/106264 which is a spurious warning
regression caused by the tree-level expansion of modf, frexp and remquo
producing "expression has no-effect" when the built-in function's result
is ignored.  When these built-ins were first expanded at tree-level,
fold_builtin_n would blindly set TREE_NO_WARNING for all built-ins. Now
that we're more discerning, we should precisely call suppress_warning
selectively on those COMPOUND_EXPRs that need them.

2022-07-19  Roger Sayle  <roger@nextmovesoftware.com>
	    Richard Biener  <rguenther@suse.de>

gcc/ChangeLog
	PR c/106264
	* builtins.cc (fold_builtin_frexp): Call suppress_warning on
	COMPOUND_EXPR to silence spurious warning if result isn't used.
	(fold_builtin_modf): Likewise.
	(do_mpfr_remquo): Likewise.

gcc/testsuite/ChangeLog
	PR c/106264
	* gcc.dg/pr106264.c: New test case.
2022-07-19 08:39:43 +01:00
2022-03-19 00:16:22 +00:00
2022-06-02 00:16:32 +00:00
2022-07-05 00:16:36 +00:00
2022-02-28 00:16:17 +00:00
2022-02-14 00:16:23 +00:00
2022-07-13 00:16:33 +00:00
2021-11-30 00:16:44 +00:00
2022-01-03 10:42:10 +01:00
2022-06-03 00:16:40 +00:00
2022-07-09 00:16:54 +00:00
2022-06-28 00:16:58 +00:00
2022-06-04 00:16:27 +00:00
2022-07-16 00:16:30 +00:00
2022-05-21 00:16:32 +00:00
2021-11-16 00:16:31 +00:00
2022-07-19 00:16:32 +00:00
2022-06-30 00:16:46 +00:00
2022-07-13 00:16:33 +00:00
2022-07-15 00:16:22 +00:00
2022-06-03 00:16:40 +00:00
2022-01-03 10:42:10 +01:00
2022-07-05 00:16:36 +00:00
2022-07-07 00:16:46 +00:00
2022-01-12 00:16:39 +00:00
2022-01-03 10:42:10 +01:00
2022-07-19 00:16:32 +00:00
2022-01-03 10:42:10 +01:00
2022-07-15 00:16:22 +00:00
2022-05-21 00:16:32 +00:00
2021-12-17 00:16:20 +00:00
2022-05-28 09:38:29 -06:00
2022-07-16 00:16:30 +00:00
2021-12-21 09:10:57 +01:00
2022-06-28 09:41:07 -03: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%