From patchwork Tue Dec 15 21:37:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 1416749 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=p43+Mh89; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CwWn76Zp6z9sTK for ; Wed, 16 Dec 2020 08:37:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A0A4C3857C73; Tue, 15 Dec 2020 21:37:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by sourceware.org (Postfix) with ESMTPS id 6FB353858D29 for ; Tue, 15 Dec 2020 21:37:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6FB353858D29 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nathanmsidwell@gmail.com Received: by mail-qk1-x733.google.com with SMTP id p14so11568738qke.6 for ; Tue, 15 Dec 2020 13:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=qdGyVsRYedQmYLxNxAN/dKzI8hY+EBDHI+otTIKtluE=; b=p43+Mh89/wfrFqGrg+CyPIZZj4SWC68ls9Qj7F0AwykbOtdOiDBrJTEpDQCD5TRH4V 8442DYf52KDrls+Gad+Mc0sjKiGZzxhAQ2Q1AwbGYg0yWcuJk62vbMCZWyZqjgMShF09 3ZV9MNLfcRdpJs+Qi9dO5SXBprY9tArcsa+/QV5QOgrB/SX89BD9rfRnjHfv2fsP2n46 /ArA0kVhvwxscC2Nf6Hv+vDOIWD8JcLrhsJDqj/DlQtIxPSW4DRE8fCCDWouqn6ySreo HzXaFtyobnT+icFwfSb4vDvdCVwat6GpctYUkQdy5aR3Dc2uVtUvGzeM9h4QcPtWX7VL 514g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=qdGyVsRYedQmYLxNxAN/dKzI8hY+EBDHI+otTIKtluE=; b=q0BFj4wFdmKDxD37m5/921aWKZFBBsmDALRvCCw0a/TPzFaGMryU4BQAt1W37xxlzk 4vGhEvpD6WWQ5TSo3EKpU5UFLJC6lJm9siya3PABf0ENi8WUgKOG1t6vNBHXxflWCPi5 sQ+sXnxhchBaSY1loDzsauAd+7LRZIOOZdcAnj0Kc5SneD3/uVXd5XCpqGkURj/iySAd XZ/a5NiPJAeR7wGkOJafkIra3rw5MwdDq9UXKO1BfOC5jUPFNnvKJtfo3delY4wiNFz1 MoEWKYOaQi/Gx3pDU+jE+93K7N3DKOMlvsLiRIP4fIRFielRwYIe50ckQHpd5pfnVk7U pkAA== X-Gm-Message-State: AOAM533cOJAvRbpkLhk42NIxk8lmHYVzANslD7XdBRCKO3q+X8V/S/oy x0HHYDVfNENJZyi4YeFfQCI= X-Google-Smtp-Source: ABdhPJwxZwSQnWOwhAuh4iDUL0BpGeGhJFJGWSrHersl0d3xZyC9JOGH8TBTwKZzjZ366Q0vpu34iQ== X-Received: by 2002:ae9:ef12:: with SMTP id d18mr42103064qkg.473.1608068226679; Tue, 15 Dec 2020 13:37:06 -0800 (PST) Received: from ?IPv6:2620:10d:c0a8:1102:58ca:9b62:2bcb:bb64? ([2620:10d:c091:480::1:a32c]) by smtp.googlemail.com with ESMTPSA id y10sm14229651qkb.115.2020.12.15.13.37.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Dec 2020 13:37:05 -0800 (PST) To: GCC Patches , Christophe Lyon From: Nathan Sidwell Subject: libcody: Work with older gccs Message-ID: <2f596517-43fc-46d4-828e-654be65852f5@acm.org> Date: Tue, 15 Dec 2020 16:37:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Older GCCs don't have all the exciting options we have now. let's just turn them off. Makefile.in: Disable some flags From 98b960b40ba4934bdbd8d87d9432475e148d1022 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 15 Dec 2020 13:34:26 -0800 Subject: [PATCH] libcody: Work with older gccs Older GCCs don't have all the exciting options we have now. let's just turn them off. Makefile.in: Disable some flags --- libcody/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libcody/Makefile.in b/libcody/Makefile.in index 7b8a6418027..4b457adc3a4 100644 --- a/libcody/Makefile.in +++ b/libcody/Makefile.in @@ -66,7 +66,10 @@ ifeq ($(filter -fdebug-prefix-map=%,$(CXXOPTS)),) CXXOPTS += -fdebug-prefix-map=${srcdir}/= endif # Warning options -CXXOPTS += -W -Wall -Woverloaded-virtual -Wshadow +CXXOPTS += -W -Wall +ifeq (no,) +# just turn off for now +CXXOPTS += -Woverloaded-virtual -Wshadow CXXOPTS += -Wno-invalid-offsetof -Wno-unused-variable CXXOPTS += -Wno-missing-field-initializers # Diagnostic options, look at controlling terminal so that piping @@ -76,6 +79,7 @@ ifneq (,$(MLEN)) CXXOPTS += -fmessage-length=$(MLEN) endif CXXOPTS += -fdiagnostics-color=always -fno-diagnostics-show-option +endif else ifeq ($(notdir $(firstword $(CXX))),clang++) CXXOPTS += -fno-stack-protector -fno-threadsafe-statics -- 2.27.0