From patchwork Fri Oct 8 09:09:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Hainque X-Patchwork-Id: 67135 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 597A8B70A9 for ; Fri, 8 Oct 2010 20:09:37 +1100 (EST) Received: (qmail 1426 invoked by alias); 8 Oct 2010 09:09:35 -0000 Received: (qmail 1418 invoked by uid 22791); 8 Oct 2010 09:09:34 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL, BAYES_20, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Oct 2010 09:09:29 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 38349CB0272; Fri, 8 Oct 2010 11:09:27 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mKj5F9bByfPY; Fri, 8 Oct 2010 11:09:27 +0200 (CEST) Received: from cardhu.act-europe.fr (cardhu.act-europe.fr [10.10.0.168]) by mel.act-europe.fr (Postfix) with ESMTP id 1EE80CB01F0; Fri, 8 Oct 2010 11:09:27 +0200 (CEST) Received: by cardhu.act-europe.fr (Postfix, from userid 546) id F2F9F1D9; Fri, 8 Oct 2010 11:09:26 +0200 (CEST) Date: Fri, 8 Oct 2010 11:09:26 +0200 From: Olivier Hainque To: gcc-patches@gcc.gnu.org Cc: hainque@adacore.com Subject: restore powerpc AIX bootstrap Message-ID: <20101008090926.GA30229@cardhu.act-europe.fr> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.1i X-IsSubscribed: yes 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 Broken by the changes issued for PR 45837: rs6000.h #ifndef TARGET_AIX_OS #define TARGET_AIX_OS 0 #endif then aix.h #define TARGET_AIX_OS 1 ../src/gcc/config/rs6000/aix.h:29:0: error: "TARGET_AIX_OS" redefined [-Werror] ../src/gcc/config/rs6000/rs6000.h:50:0: ... location of the previous definition Fixed by prepending #undef in aix.h OK ? Thanks in advance, Olivier 2010-10-08 Olivier Hainque * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define. Index: aix.h =================================================================== --- config/rs6000/aix.h (revision 165110) +++ config/rs6000/aix.h (working copy) @@ -26,6 +26,7 @@ /* Linux64.h wants to redefine TARGET_AIX based on -m64, but it can't be used in the #if conditional in options-default.h, so provide another macro. */ +#undef TARGET_AIX_OS #define TARGET_AIX_OS 1 /* AIX always has a TOC. */