aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/c-family/ChangeLog6
-rw-r--r--gcc/c-family/c-cppbuiltin.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 8c7eed1..fcf46b8 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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.
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
index 77a92c3..1105ce5 100644
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -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;
}