From patchwork Tue Oct 10 09:09:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "REIX, Tony" X-Patchwork-Id: 823750 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-463847-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="fzAtza4Y"; dkim-atps=neutral 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 3yBBBw5M1hz9sPm for ; Tue, 10 Oct 2017 20:09:43 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=RyeLIIxXcM832lo9RThLqL7iXC8oCUCSV2r5zC1dE7eYda8MsG w/n4R8JcyF9ZWFnhljq5oKT3pKlNi6SPwyksRZRpxGoKfUbpfa/Ti1WRqz9FyRIn mdnYp3hBqPAP+gPqwam5Lmgx1kpw0Q1PGdVxwDo8+btV/a62GVYjN6Vro= 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:from :to:cc:subject:date:message-id:content-type:mime-version; s= default; bh=JbbRUpcV2qvqtXWqBCQE/odHwIQ=; b=fzAtza4YBqHsCwtKK+7/ cgd4igcEeWDPp/kWFqM+W763rzGQ5UbeG5sSI6/0hx6ueSG4e7eODWTvGQLMgzgD OZpGUDayHv44uo586/XyH4SG/ikJ/lnIpxeHl9DmWIaUqUYU4SFIkn+uB+xWk0k0 AC+/Up/GBR/Sp9gvNaOYL/4= Received: (qmail 75376 invoked by alias); 10 Oct 2017 09:09:34 -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 75361 invoked by uid 89); 10 Oct 2017 09:09:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=H*MI:solutions, H*M:solutions, cordialement, 2212 X-HELO: smtppost.atos.net Received: from smtppost.atos.net (HELO smtppost.atos.net) (193.56.114.164) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Oct 2017 09:09:32 +0000 Received: from mail3-ext.my-it-solutions.net (mail3-ext.my-it-solutions.net) by smarthost5.atos.net with smtp (TLS: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-GCM-SHA384) id 760c_2ffd_32953d41_7a2c_436d_95be_9b5b073996f8; Tue, 10 Oct 2017 11:09:27 +0200 Received: from mail2-int.my-it-solutions.net ([10.92.32.13]) by mail3-ext.my-it-solutions.net (8.15.2/8.15.2) with ESMTPS id v9A99PSN031562 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 Oct 2017 11:09:25 +0200 Received: from FRCRPVV9ET2MSX.ww931.my-it-solutions.net ([172.23.231.43]) by mail2-int.my-it-solutions.net (8.15.2/8.15.2) with ESMTPS id v9A99OeQ005945 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 10 Oct 2017 11:09:25 +0200 Received: from FRCRPVV9EX3MSX.ww931.my-it-solutions.net ([169.254.6.102]) by FRCRPVV9ET2MSX.ww931.my-it-solutions.net ([172.23.231.43]) with mapi id 14.03.0361.001; Tue, 10 Oct 2017 11:09:24 +0200 From: "REIX, Tony" To: "gcc-patches@gcc.gnu.org" CC: "dje.gcc@gmail.com" Subject: [PATCH,AIX] Fix issue with PRI*64 on AIX. Date: Tue, 10 Oct 2017 09:09:23 +0000 Message-ID: MIME-Version: 1.0 Description: * This patch enables to build on AIX. Tests: * AIX: Build: SUCCESS - build made by means of gmake within GCC 8 trunk. ChangeLog: * go-system.h : Enable to build on AIX. (fix issue with PRIx64 and PRIu64) Cordialement, Tony Reix Bull - ATOS IBM Coop Architect & Technical Leader Office : +33 (0) 4 76 29 72 67 1 rue de Provence - 38432 Échirolles - France www.atos.net --- ./gcc/go/go-system.h.ORIGIN 2017-10-06 09:36:56 -0500 +++ ./gcc/go/go-system.h 2017-10-06 15:51:26 -0500 @@ -22,6 +22,12 @@ #include "config.h" +// Define this so that inttypes.h defines the PRI?64 macros even +// when compiling with a C++ compiler. Define it here so in the +// event inttypes.h gets pulled in by another header it is already +// defined. +#define __STDC_FORMAT_MACROS + // These must be included before the #poison declarations in system.h. #include --- ./gcc/go/ChangeLog.ORIGIN 2017-10-10 10:59:01 -0500 +++ ./gcc/go/ChangeLog 2017-10-10 10:59:16 -0500 @@ -1,3 +1,8 @@ +2017-10-09 Tony Reix + + * go-system.h : Enable to build on AIX. + (fix issue with PRIx64 and PRIu64) + 2017-08-30 Richard Sandiford Alan Hayward David Sherwood