This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, C/C++] Add -fno-float to forbid floating point data types
- From: Marek Polacek <polacek at redhat dot com>
- To: "Thomas Preud'homme" <thomas dot preudhomme at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Aug 2014 11:45:15 +0200
- Subject: Re: [PATCH, C/C++] Add -fno-float to forbid floating point data types
- Authentication-results: sourceware.org; auth=none
- References: <000701cfb60f$5b859700$1290c500$ at arm dot com>
On Tue, Aug 12, 2014 at 05:25:25PM +0800, Thomas Preud'homme wrote:
> @@ -10078,6 +10078,10 @@ finish_declspecs (struct c_declspecs *specs)
> }
> else if (specs->complex_p)
> {
> + if (flag_no_float)
> + error_at (specs->locations[cdw_complex],
> + "use of floating points forbidden in this translation "
> + "unit (-fno-float)");
Please drop the " (-fno-float)" part (and elsewhere too).
Marek