This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38617] ICE passing fixed point to function
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2008 18:24:37 -0000
- Subject: [Bug target/38617] ICE passing fixed point to function
- References: <bug-38617-16746@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from hjl dot tools at gmail dot com 2008-12-24 18:24 -------
This works for me:
--- ./c-lex.c.fixed 2008-08-21 05:32:03.000000000 -0700
+++ ./c-lex.c 2008-12-24 10:23:52.000000000 -0800
@@ -612,7 +612,15 @@ interpret_float (const cpp_token *token,
/* Decode _Fract and _Accum. */
if (flags & CPP_N_FRACT || flags & CPP_N_ACCUM)
- return interpret_fixed (token, flags);
+ {
+ if (targetm.fixed_point_supported_p ())
+ return interpret_fixed (token, flags);
+ else
+ {
+ error ("fixed-point constant not supported for this target");
+ return error_mark_node;
+ }
+ }
/* Decode type based on width and properties. */
if (flags & CPP_N_DFLOAT)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38617