------- 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

Reply via email to