From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96763 invoked by alias); 20 Dec 2018 17:26:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 96648 invoked by uid 89); 20 Dec 2018 17:26:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2 spammy=CXX, cxx, ld, H*M:ericsson X-HELO: sessmg22.ericsson.net Received: from sessmg22.ericsson.net (HELO sessmg22.ericsson.net) (193.180.251.58) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Dec 2018 17:26:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1545326764; x=1547918764; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2k8XrNrhP9lYbh9CYNt6vp5gZz4owHUlKmfL7gm8cfM=; b=bjZXkoiFfxX5nuSrzwIeA2dkp6/M4QmFXoCxqEQq0u//IiOkXjpSnSlcFzaCWthS X106dSC4SNCWpvPrhKM2ux5DNELAp3RrRmFb3OqLoiolZvRfQgY8YTX1z2cAZNbp DHNBiNuxoXncTteWSHNwzEZk0yDNshMIuq0sPnAAghc=; Received: from ESESBMB503.ericsson.se (Unknown_Domain [153.88.183.116]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id FF.B9.26412.CA0DB1C5; Thu, 20 Dec 2018 18:26:04 +0100 (CET) Received: from ESESBMR505.ericsson.se (153.88.183.201) by ESESBMB503.ericsson.se (153.88.183.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 20 Dec 2018 18:26:04 +0100 Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESBMR505.ericsson.se (153.88.183.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 20 Dec 2018 18:26:04 +0100 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Thu, 20 Dec 2018 18:26:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2k8XrNrhP9lYbh9CYNt6vp5gZz4owHUlKmfL7gm8cfM=; b=O6JW9z/mbuwClhQdO7g+Qnu/nGUBl4GVS0gIOzD1Kb0J4hfE0tvFcVfSVwumEgZ5I/LOwvho4ZVvb2WlRXnaXqmTUqb0UanIfIj6PK+dPLnMQcez8nva/wMUiYJG2os2+h9xxLQBX3CYJqplbKNBaRS5vgs3RrR0TXwH3EgsIik= Received: from BYAPR15MB2390.namprd15.prod.outlook.com (52.135.198.30) by BYAPR15MB2694.namprd15.prod.outlook.com (20.179.156.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.18; Thu, 20 Dec 2018 17:26:01 +0000 Received: from BYAPR15MB2390.namprd15.prod.outlook.com ([fe80::a143:f30c:dd42:3af9]) by BYAPR15MB2390.namprd15.prod.outlook.com ([fe80::a143:f30c:dd42:3af9%4]) with mapi id 15.20.1425.025; Thu, 20 Dec 2018 17:26:01 +0000 From: Simon Marchi To: Andrew Burgess CC: GDB Patches Subject: riscv-tdep.c in 32-bits build Date: Thu, 20 Dec 2018 17:26:00 -0000 Message-ID: <6948b903-63f2-b0d2-4f66-738b95b51385@ericsson.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon.marchi@ericsson.com; received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts) Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Return-Path: simon.marchi@ericsson.com X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00236.txt.bz2 SGkgQW5kcmV3LA0KDQpJIGp1c3Qgbm90aWNlZCB0aGlzIGVycm9yIHdoZW4g YnVpbGRpbmcgZm9yIGkzODYtbGludXgtZ251Lg0KDQogIENYWCAgICByaXNj di10ZGVwLm8NCi9ob21lL2VtYWlzaW4vc3JjL2JpbnV0aWxzLWdkYi9nZGIv cmlzY3YtdGRlcC5jOiBJbiBmdW5jdGlvbiDigJhDT1JFX0FERFIgcmlzY3Zf c2Nhbl9wcm9sb2d1ZShnZGJhcmNoKiwgQ09SRV9BRERSLCBDT1JFX0FERFIs IHJpc2N2X3Vud2luZF9jYWNoZSop4oCZOg0KL2hvbWUvZW1haXNpbi9zcmMv YmludXRpbHMtZ2RiL2dkYi9yaXNjdi10ZGVwLmM6MTU0ODo0MzogZXJyb3I6 IGZvcm1hdCDigJglbGTigJkgZXhwZWN0cyBhcmd1bWVudCBvZiB0eXBlIOKA mGxvbmcgaW504oCZLCBidXQgYXJndW1lbnQgNCBoYXMgdHlwZSDigJhDT1JF X0FERFIge2FrYSBsb25nIGxvbmcgdW5zaWduZWQgaW50feKAmSBbLVdlcnJv cj1mb3JtYXQ9XQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIG9mZnNldCk7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgXg0KSSBsb29rZWQgYXQgaXQgYSBiaXQgYW5kIGRlY2lk ZWQgdG8gbGV0IHlvdSBjaG9vc2UgaG93IHlvdSB3YW50ZWQgdG8gZml4DQpp dC4gIFNpbmNlIHRoaXMgaXMgYSBDT1JFX0FERFIsIEkgZmlyc3QgdGhvdWdo dCB3ZSBzaG91bGQgY2FsbCBwYWRkcmVzcy4NCkJ1dCB0aGlzIHZhcmlhYmxl IHJlcHJlc2VudHMgYW4gb2Zmc2V0LCBub3QgYW4gYWJzb2x1dGUgYWRkcmVz cywgc28gSSBhbQ0Kbm90IHN1cmUgaWYgcGFkZHJlc3MgaXMgcmVhbGx5IGFw cHJvcHJpYXRlLg0KDQpTaW1vbg0K >From gdb-patches-return-152895-listarch-gdb-patches=sources.redhat.com@sourceware.org Thu Dec 20 18:35:29 2018 Return-Path: Delivered-To: listarch-gdb-patches@sources.redhat.com Received: (qmail 48871 invoked by alias); 20 Dec 2018 18:35:28 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 48164 invoked by uid 89); 20 Dec 2018 18:35:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=irc, IRC X-HELO: mail-ot1-f66.google.com Received: from mail-ot1-f66.google.com (HELO mail-ot1-f66.google.com) (209.85.210.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Dec 2018 18:35:26 +0000 Received: by mail-ot1-f66.google.com with SMTP id n8so2830786otl.6 for ; Thu, 20 Dec 2018 10:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devkitpro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4gMLOd1Jb3ZiFVNJ2CzD2IlULlsk2TRn8YlolLB3oSg=; b=D8Bx9KHO6qxYvRv/UMKjDaN0oN5aZJfSTCVBcG+zY3UsvmDQSPT/AkTN/1Vpl1lPUD Mf0HUs73md9v0tAWYPvBjfL+DXkoYiyOd+Big2LlIPZ2h4z104/ocaj6zhyDO97wj50o JSlh9VGkTwNcoWHnIrzyGJzZLhelyxKUZGYBc= MIME-Version: 1.0 References: In-Reply-To: From: Dave Murphy Date: Thu, 20 Dec 2018 18:35:00 -0000 Message-ID: Subject: Re: [PATCH] fix compile error with clang To: gdb-patches@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00237.txt.bz2 Content-length: 1246 Updated changelog per advice from simark on IRC 2018-12-20 Dave Murphy * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero initialise. * probe.c (any_static_probe_ops): Ditto. * record-btrace.c (record_btrace_thread_observer_token): Ditto. * stap-probe.c (stap_static_probe_ops): Ditto. * tui/tui-hooks.c (tui_observers_token): Ditto. * unittests/observable-selftests.c (token1, token2, token3): Ditto. On Thu, Dec 20, 2018 at 5:25 PM Dave Murphy wrote: > > Cross compiling for macOS using osxcross gives errors of the form > "error: default initialization of an object of ... without a > user-provided default constructor" > > Fixed by attached patch, tested compile with mingw-w64, osxcross and > linux native builds. > > 2018-12-20 Dave Murphy > > * gdb/dtrace-probe.c (dtrace_static_probe_ops): explicit zero initialise. > * gdb/probe.c (any_static_probe_ops): ditto > * gdb/record-btrace.c (record_btrace_thread_observer_token): ditto > * gdb/stap-probe.c (stap_static_probe_ops): ditto > * gdb/tui/tui-hooks.c (tui_observers_token): ditto > * gdb/unittests/observable-selftests.c (token1, token2, token3): ditto