From patchwork Tue Mar 29 15:39:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Bridgman, John" X-Patchwork-Id: 8688781 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B5709F36E for ; Tue, 29 Mar 2016 16:13:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AF3A20351 for ; Tue, 29 Mar 2016 16:13:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B07DA2034C for ; Tue, 29 Mar 2016 16:13:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E570F6E6A5; Tue, 29 Mar 2016 16:13:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 2029 seconds by postgrey-1.35 at gabe; Tue, 29 Mar 2016 16:13:23 UTC Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0067.outbound.protection.outlook.com [157.56.111.67]) by gabe.freedesktop.org (Postfix) with ESMTPS id C09BC6E6A5 for ; Tue, 29 Mar 2016 16:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6wn2gImnXG/kp79QEw9tWNJH4ndUI8ffc+rpzRgtIl8=; b=D4Wds6Qa8ln5jWcnuAAHqiOeU3m7NkAKL8VkEy8w1s90BhUUYJzAskiRJOjvqCm1Ptt9fkA5dyDKgKyxgh3du/SujJUQw90VzG+9H+EIccMU7c8CLomU5L+NRHxVs8mPVGRnH8ezzTDs0Ffw+xniAurapLVQAezBwB7LoXI/cko= Received: from DM3PR12MB0905.namprd12.prod.outlook.com (10.164.7.151) by DM3PR12MB0908.namprd12.prod.outlook.com (10.164.7.154) with Microsoft SMTP Server (TLS) id 15.1.447.15; Tue, 29 Mar 2016 15:39:32 +0000 Received: from DM3PR12MB0905.namprd12.prod.outlook.com ([10.164.7.151]) by DM3PR12MB0905.namprd12.prod.outlook.com ([10.164.7.151]) with mapi id 15.01.0447.023; Tue, 29 Mar 2016 15:39:32 +0000 From: "Bridgman, John" To: "dri-devel@lists.freedesktop.org" Subject: [PATCH] hsakmt: allow building with gcc 4.x Thread-Topic: [PATCH] hsakmt: allow building with gcc 4.x Thread-Index: AQHRidATshIYfKCI7UePMo5Hi1nWfg== Date: Tue, 29 Mar 2016 15:39:31 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; x-originating-ip: [132.245.243.37] x-ms-office365-filtering-correlation-id: 5cb3a913-b2bb-48d4-18b7-08d357e852aa x-microsoft-exchange-diagnostics: 1; DM3PR12MB0908; 5:ksR+Ahc2GJR2EA7TZjPDsxATrZDK8B5QXQQ37ktnyLckEK/xorGGStMIv0nvMOPs5+aTB3lwTAQgNDw7Ey3zCveI/94Hm54PpxeYtR42Bv8tEUcnzRn7ZLSyZ1VeI395Q5QFG5K6BgIKhChUu16TOQ==; 24:vDU3gRBFKX+HjZK9k4KvhyI9xX2SNPSmvF7AROJ5dERNM6QjPmS8ZPX2q44Fj7m0rLA4VPy0ZJ675zE6i5Q0qNum5fYCKVo3g9Bl5qVzEEU=; 20:h2JMUhyoPrZpZclGhMDJRnvJcFRS2Og/aRYbnHzhiCNHO6boqhVsqc1lg4mKylQY0vJsaEZdKcVBVWFLO7tu18QtszGhT4EMy/lIFYfLrsPv4Dxuo1tWrRk+5e9PhFDEJiMc3Gy/boL2+gB3iM+J5pU4+1vGfI7ywy1CNVHnV84C3zFxwC1RtYI/lb3DSJjatNVzNeViL3dwOkQLKLk4890jI031mOjollLv+22/69CxUaAfwmeppfMmj/EoPoJH x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM3PR12MB0908; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:DM3PR12MB0908; BCL:0; PCL:0; RULEID:; SRVR:DM3PR12MB0908; x-forefront-prvs: 0896BFCE6C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(2501003)(3660700001)(450100001)(87936001)(74316001)(81166005)(189998001)(11100500001)(110136002)(107886002)(3280700002)(2906002)(122556002)(5008740100001)(66066001)(19580405001)(76576001)(86362001)(586003)(5003600100002)(106116001)(1220700001)(1096002)(33656002)(5004730100002)(92566002)(102836003)(6116002)(3846002)(19580395003)(2900100001)(229853001)(5002640100001)(77096005)(50986999)(54356999)(99286002)(2351001)(10400500002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR12MB0908; H:DM3PR12MB0905.namprd12.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Mar 2016 15:39:31.7780 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR12MB0908 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The hsakmt code requires c99 support, however gcc 4.x defaults to c89 while gcc 5 defaults to c11. Adding this macro provides c99 support on older gcc while not forcing gcc 5 back from c11 to c99. Signed-off-by: John Bridgman ---  configure.ac | 1 +  1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index b8e9bea..8f32cbb 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,7 @@ AC_CANONICAL_HOST  AC_PROG_AWK  test_CFLAGS=${CFLAGS+set} # We may override autoconf default CFLAGS.  AC_PROG_CC +AC_PROG_CC_STDC  AC_PROG_INSTALL  AC_PROG_LIBTOOL  AC_PROG_MAKE_SET