This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/39059] [4.3/4.4 regression] ICE with fixed-point type in inline-asm
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2009 17:26:55 -0000
- Subject: [Bug inline-asm/39059] [4.3/4.4 regression] ICE with fixed-point type in inline-asm
- References: <bug-39059-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2009-02-03 17:26 -------
Subject: Bug 39059
Author: jakub
Date: Tue Feb 3 17:26:28 2009
New Revision: 143900
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143900
Log:
PR inline-asm/39059
* c-parser.c (c_parser_postfix_expression): If fixed point is not
supported, don't accept FIXED_CSTs.
* c-decl.c (finish_declspecs): Error if fixed point is not supported
and _Sat is used without _Fract/_Accum. Set specs->type to
integer_type_node for cts_fract/cts_accum if fixed point is not
supported.
* parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.
* gcc.dg/nofixed-point-2.c: New test.
* g++.dg/ext/fixed1.C: Adjust expected diagnostics.
* g++.dg/ext/fixed2.C: Likewise.
* g++.dg/other/error25.C: Likewise.
* g++.dg/lookup/crash7.C: Likewise.
* g++.dg/cpp0x/decltype-38655.C: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/nofixed-point-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/c-parser.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
trunk/gcc/testsuite/g++.dg/ext/fixed1.C
trunk/gcc/testsuite/g++.dg/ext/fixed2.C
trunk/gcc/testsuite/g++.dg/lookup/crash7.C
trunk/gcc/testsuite/g++.dg/other/error25.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39059