From patchwork Thu Jun 17 14:09:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: RFA: Fix bootstrap/44512 (2/2) From: Joern Rennecke X-Patchwork-Id: 56051 Message-Id: <20100617100925.0a3tvw6iq044c4wg-nzlynne@webmail.spamcop.net> To: gcc-patches@gcc.gnu.org Date: Thu, 17 Jun 2010 10:09:25 -0400 This fixes the "invalid conversion from 'int' to 'cpp_builtin_type'" issue. bootstrapped and regtested in trunk revision 160890. 2010-06-17 Joern Rennecke PR bootstrap/44512 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast for C++ standard compliance. Index: c-family/c-cppbuiltin.c =================================================================== --- c-family/c-cppbuiltin.c (revision 160890) +++ c-family/c-cppbuiltin.c (working copy) @@ -1022,7 +1022,8 @@ builtin_define_with_hex_fp_value (const 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; }