Mikhail Maltsev 7a37fa9070 re PR c/48956 (-Wconversion should warn when a complex value is assigned to a real result)
PR c/48956

gcc/c-family/
* c-common.c (int_safely_convertible_to_real_p): Define.
(unsafe_conversion_p): Check conversions involving complex types.
(conversion_warning): Add new warning message for conversions which
discard imaginary component.
* c-common.h: (enum conversion_safety): Add new enumerator for such
conversions.

gcc/testsuite/
* gcc.dg/Wconversion-complex-c99.c: New test.
* gcc.dg/Wconversion-complex-gnu.c: New test.

From-SVN: r223223
2015-05-15 18:02:50 +00:00
2015-05-13 21:15:31 +00:00
2015-05-13 10:59:14 +00:00
2015-05-13 10:37:11 +00:00
2015-05-13 11:00:37 +00:00
2015-05-13 11:23:24 +00:00
2015-05-13 11:25:28 +00:00
2015-05-13 21:15:31 +00:00
2015-05-13 11:26:12 +00:00
2015-05-13 21:15:31 +00:00
2015-05-13 11:12:39 +00:00
2015-05-13 11:28:41 +00:00
2015-05-13 11:31:32 +00:00
2015-05-11 20:09:35 +02:00
2015-05-11 20:09:35 +02:00
2015-03-10 09:37:41 +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.
Description
No description provided
Readme 2.1 GiB
Languages
C++ 31.9%
C 31.3%
Ada 12%
D 6.5%
Go 6.4%
Other 11.5%