From patchwork Thu Jun 17 14:09:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 56051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A6747B7D5E for ; Fri, 18 Jun 2010 00:09:36 +1000 (EST) Received: (qmail 29870 invoked by alias); 17 Jun 2010 14:09:33 -0000 Received: (qmail 29861 invoked by uid 22791); 17 Jun 2010 14:09:32 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from c60.cesmail.net (HELO c60.cesmail.net) (216.154.195.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Jun 2010 14:09:28 +0000 Received: from unknown (HELO webmail2) ([192.168.1.183]) by c60.cesmail.net with ESMTP; 17 Jun 2010 10:09:27 -0400 Received: from 89.240.194.79 ([89.240.194.79]) by webmail.spamcop.net (Horde MIME library) with HTTP; Thu, 17 Jun 2010 10:09:25 -0400 Message-ID: <20100617100925.0a3tvw6iq044c4wg-nzlynne@webmail.spamcop.net> Date: Thu, 17 Jun 2010 10:09:25 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: RFA: Fix bootstrap/44512 (2/2) MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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; }