From patchwork Thu May 1 13:02:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan-Benedict Glaw X-Patchwork-Id: 344510 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 D3B5D140115 for ; Thu, 1 May 2014 23:03:01 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=H2s31D0A3y3hRUHvYi1sqJ7XW3kWm9fJQFWDVstqwTud7XnH3Y HcMhJpkKC1zEHObDm2GCAWIBIgJRRE9klFnFVHymuhXIxGdWCKNMjdP7oKzxszPC yE53gT8lG9emS83e8/gwHzxNurmHMZyTvbc25/Lg0b8ss1Ew4C8NN6T+Q= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=j1EcuF6OYbWRhJXUDlDDeFgtdGc=; b=jdl1fWek9pLqtV72omS9 7sVhNORyfMVwlUC2KBdGXsn6eYVdB3/GLJ/3Fskcg0FU6Fk/OTF+ufR3FPNneETA 4+4pyhrXWl09ZVHyEFTFMK/xt4ufHxpJ8KE4VPPmJBnm4HkJPpDQnfWWMSgyknYU F5dr2oWCpDH1pwByOArHAxE= Received: (qmail 32529 invoked by alias); 1 May 2014 13:02:53 -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 32518 invoked by uid 89); 1 May 2014 13:02:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: lug-owl.de Received: from lug-owl.de (HELO lug-owl.de) (195.71.106.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 01 May 2014 13:02:51 +0000 Received: by lug-owl.de (Postfix, from userid 1001) id 3C8CDF021B; Thu, 1 May 2014 15:02:47 +0200 (CEST) Date: Thu, 1 May 2014 15:02:47 +0200 From: Jan-Benedict Glaw To: gcc-patches@gcc.gnu.org Cc: Joern Rennecke Subject: arc: Fix warning about redefinition of TARGET_LRA_P Message-ID: <20140501130246.GN20482@lug-owl.de> MIME-Version: 1.0 Content-Disposition: inline X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net X-Echelon-Enable: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-TKUeV: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi! The attached patch (committed as obvious) fixes this warning (see eg. build http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=214621): g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/vaxbuild/repos/gcc/gcc -I/home/vaxbuild/repos/gcc/gcc/. -I/home/vaxbuild/repos/gcc/gcc/../include -I/home/vaxbuild/repos/gcc/gcc/../libcpp/include -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libbacktrace -o arc.o -MT arc.o -MMD -MP -MF ./.deps/arc.TPo /home/vaxbuild/repos/gcc/gcc/config/arc/arc.c /home/vaxbuild/repos/gcc/gcc/config/arc/arc.c:553:0: warning: "TARGET_LRA_P" redefined [enabled by default] #define TARGET_LRA_P arc_lra_p ^ In file included from ./tm.h:14:0, from /home/vaxbuild/repos/gcc/gcc/config/arc/arc.c:34: ./options.h:4220:0: note: this is the location of the previous definition #define TARGET_LRA_P(target_flags) ((target_flags & MASK_LRA) != 0) ^ 2014-05-01 Jan-Benedict Glaw * config/arc/arc.c (TARGET_LRA_P): Undef before redefine. 2014-05-01 Yuri Rumyantsev Index: config/arc/arc.c =================================================================== --- config/arc/arc.c (revision 209978) +++ config/arc/arc.c (working copy) @@ -550,6 +550,7 @@ #define TARGET_INSN_LENGTH_PARAMETERS arc_insn_length_parameters +#undef TARGET_LRA_P #define TARGET_LRA_P arc_lra_p #define TARGET_REGISTER_PRIORITY arc_register_priority /* Stores with scaled offsets have different displacement ranges. */