From: amylaar Date: Thu, 17 Jun 2010 15:20:20 +0000 (+0000) Subject: PR bootstrap/44512 X-Git-Tag: upstream/4.9.2~28641 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d74003b4a7b98182328918bab3eeba6087f8726e;p=platform%2Fupstream%2Flinaro-gcc.git PR bootstrap/44512 * 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 --- 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 + + PR bootstrap/44512 + * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast + for C++ standard compliance. + 2010-06-16 Jason Merrill * 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; }