PR bootstrap/44512
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jun 2010 15:20:20 +0000 (15:20 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Jun 2010 15:20:20 +0000 (15:20 +0000)
        * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
        for C++ standard compliance.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160922 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c

index 8c7eed1..fcf46b8 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
+
+       PR bootstrap/44512
+       * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
+       for C++ standard compliance.
+
 2010-06-16  Jason Merrill  <jason@redhat.com>
 
        * c.opt: Add -Wnoexcept.
index 77a92c3..1105ce5 100644 (file)
@@ -1022,7 +1022,8 @@ builtin_define_with_hex_fp_value (const char *macro,
       lazy_hex_fp_values[lazy_hex_fp_value_count].fp_suffix = fp_suffix;
       lazy_hex_fp_values[lazy_hex_fp_value_count].macro = node->value.macro;
       node->flags |= NODE_BUILTIN;
-      node->value.builtin = BT_FIRST_USER + lazy_hex_fp_value_count;
+      node->value.builtin
+       = (enum cpp_builtin_type) (BT_FIRST_USER + lazy_hex_fp_value_count);
       lazy_hex_fp_value_count++;
       return;
     }