From patchwork Sun May 31 08:23:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikhail Maltsev X-Patchwork-Id: 478645 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FACC140F8C for ; Sun, 31 May 2015 18:23:49 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=c811XKVI; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=EQ71WvHlaIfvZcnbcC+y9nzN2AXRSK5A3h9bh5d3d5JQFH iI5UwiLFPm8/JkKwX5K5JR9ozNnLF7EJ5HE7Y+N8kW38jRtTrs66w9EqUp4DtJuK wCxBgSghJaFutyeocklNX1aTys5CNFItLC39VH/Dc/J2DqSVXo0TmDmtIodoI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=mfFx/EW5350aH1bG+0VuXhewMBU=; b=c811XKVIGqSO/Enfyi/c vpvz74h8U+Z+HrPda4LJRcOZcYXI+1Y8SzRFnppQq5hiDwemWj3I4H6n8PNFKDMp 9YY5lW9Mu0XEvpPkBfDQydVRBXU0gK3jGS4W9O3DyeDZh2tje8MLRVnlC2d4otY9 KE7i4wD0H4XFLfPte8gDMHs= Received: (qmail 14807 invoked by alias); 31 May 2015 08:23:41 -0000 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 Received: (qmail 14795 invoked by uid 89); 31 May 2015 08:23:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 31 May 2015 08:23:38 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58885) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1YyyWu-0000EB-Mq for gcc-patches@gnu.org; Sun, 31 May 2015 04:23:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyyWr-0002NE-FQ for gcc-patches@gnu.org; Sun, 31 May 2015 04:23:36 -0400 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:36079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyyWr-0002MZ-7Q for gcc-patches@gnu.org; Sun, 31 May 2015 04:23:33 -0400 Received: by lagv1 with SMTP id v1so82227881lag.3 for ; Sun, 31 May 2015 01:23:30 -0700 (PDT) X-Received: by 10.152.20.40 with SMTP id k8mr15566873lae.115.1433060610332; Sun, 31 May 2015 01:23:30 -0700 (PDT) Received: from [192.168.123.200] ([77.41.78.126]) by mx.google.com with ESMTPSA id wh9sm3075825lbb.45.2015.05.31.01.23.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 May 2015 01:23:29 -0700 (PDT) Message-ID: <556AC501.1060607@gmail.com> Date: Sun, 31 May 2015 11:23:29 +0300 From: Mikhail Maltsev User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: gcc-patches Subject: [PATCH] Fix C++11 compatibility X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22a X-IsSubscribed: yes Recently I noticed that there are several targets which can't be built with -Werror enabled during stage 1 build due to C++11 compatibility warning (whitespace between string literal and macro). Namely, all mingw32-* and cris-* (except cris-elf) targets. The attached patch fixes these warnings (I tested that build now succeeds). Committed as obvious. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9efdb9c..5625750 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-31 Mikhail Maltsev + + * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility + issue (add space between string literal and macro). + * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise. + 2015-05-30 Andreas Schwab * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index aa7dc17..1561cd1 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -134,7 +134,7 @@ extern int cris_cpu_version; %{!metrax*:\ %{!mcpu=*:\ %{!mtune=*:-D__tune_v" CRIS_DEFAULT_TUNE "}\ - -D__arch_v"CRIS_DEFAULT_TUNE\ + -D__arch_v" CRIS_DEFAULT_TUNE \ " -D__CRIS_arch_version=" CRIS_DEFAULT_TUNE "}}}" #endif diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index f139761..eef90fb 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -139,7 +139,7 @@ along with GCC; see the file COPYING3. If not see #undef REAL_LIBGCC_SPEC #define REAL_LIBGCC_SPEC \ "%{mthreads:-lmingwthrd} -lmingw32 \ - "SHARED_LIBGCC_SPEC" \ + " SHARED_LIBGCC_SPEC " \ -lmoldname -lmingwex -lmsvcrt" #undef STARTFILE_SPEC