From patchwork Mon Aug 30 00:37:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 62982 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 61FC3B70EE for ; Mon, 30 Aug 2010 10:38:07 +1000 (EST) Received: (qmail 21184 invoked by alias); 30 Aug 2010 00:38:05 -0000 Received: (qmail 21176 invoked by uid 22791); 30 Aug 2010 00:38:04 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Aug 2010 00:37:56 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 29 Aug 2010 17:37:55 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by fmsmga002.fm.intel.com with ESMTP; 29 Aug 2010 17:37:55 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id C7AE5224F5; Sun, 29 Aug 2010 17:37:54 -0700 (PDT) Date: Sun, 29 Aug 2010 17:37:54 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Maxim Kuvyrkov Subject: PATCH: Replace | with || in TARGET_HAS_SINCOS Message-ID: <20100830003754.GA27228@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) 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 Hi, Is there a reason to use | instead of || in TARGET_HAS_SINCOS? This patch replaces | with ||. OK for trunk? Thanks. H.J. --- 2010-08-29 H.J. Lu * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||. diff --git a/gcc/config/linux.h b/gcc/config/linux.h index e283a9a..7c0ca95 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -160,6 +160,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define TARGET_C99_FUNCTIONS (OPTION_GLIBC) /* Whether we have sincos that follows the GNU extension. */ -#define TARGET_HAS_SINCOS (OPTION_GLIBC | OPTION_BIONIC) +#define TARGET_HAS_SINCOS (OPTION_GLIBC || OPTION_BIONIC) #define TARGET_POSIX_IO