[Bug target/38617] ICE passing fixed point to function
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Dec 24 18:25:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list