From patchwork Wed Jun 9 09:40:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FX Coudert X-Patchwork-Id: 55064 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 A8CF9B7D5B for ; Wed, 9 Jun 2010 19:41:02 +1000 (EST) Received: (qmail 12560 invoked by alias); 9 Jun 2010 09:41:00 -0000 Received: (qmail 12547 invoked by uid 22791); 9 Jun 2010 09:40:59 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Jun 2010 09:40:55 +0000 Received: by wyi11 with SMTP id 11so46986wyi.20 for ; Wed, 09 Jun 2010 02:40:52 -0700 (PDT) Received: by 10.227.157.133 with SMTP id b5mr2351810wbx.99.1276076452322; Wed, 09 Jun 2010 02:40:52 -0700 (PDT) Received: from [192.168.0.5] (chp150.enscp.fr [193.51.253.150]) by mx.google.com with ESMTPS id q6sm7314752wbc.23.2010.06.09.02.40.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Jun 2010 02:40:51 -0700 (PDT) From: FX Subject: [fortran] Fix comment in f95-lang.c Date: Wed, 9 Jun 2010 11:40:51 +0200 Message-Id: <2A7D0E8D-951E-4067-B128-2D605CC82233@gmail.com> Cc: gcc-patches@gcc.gnu.org To: Fortran List Mime-Version: 1.0 (Apple Message framework v1078) 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 Since I'm currently working on the topic of builtins in the Fortran front-end: To close PR43040 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43040), I've checked that the comment below in f95-lang.c is incorrect. We do indeed define the family of round() builtins with the same prototype as in C, so there is not a problem. OK to commit and close PR43040? FX 2010-06-09 Francois-Xavier Coudert PR fortran/43040 * f95-lang.c (gfc_init_builtin_functions): Remove comment. Index: f95-lang.c =================================================================== --- f95-lang.c (revision 160457) +++ f95-lang.c (working copy) @@ -755,8 +755,6 @@ gfc_init_builtin_functions (void) #include "mathbuiltins.def" - /* We define these separately as the fortran versions have different - semantics (they return an integer type) */ gfc_define_builtin ("__builtin_roundl", mfunc_longdouble[0], BUILT_IN_ROUNDL, "roundl", true); gfc_define_builtin ("__builtin_round", mfunc_double[0],