From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com
[205.220.165.32])
by sourceware.org (Postfix) with ESMTPS id BE2B7384A8AC
for ; Fri, 10 Sep 2021 14:36:28 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BE2B7384A8AC
Received: from pps.filterd (m0246627.ppops.net [127.0.0.1])
by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18AE07n8002784;
Fri, 10 Sep 2021 14:36:22 GMT
Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80])
by mx0b-00069f02.pphosted.com with ESMTP id 3aytx4t37u-1
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
Fri, 10 Sep 2021 14:36:22 +0000
Received: from pps.filterd (userp3030.oracle.com [127.0.0.1])
by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 18AEYv2L057130;
Fri, 10 Sep 2021 14:36:21 GMT
Received: from nam02-dm3-obe.outbound.protection.outlook.com
(mail-dm3nam07lp2049.outbound.protection.outlook.com [104.47.56.49])
by userp3030.oracle.com with ESMTP id 3aytfu03d4-1
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
Fri, 10 Sep 2021 14:36:20 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=B5ZK2+P/M7aoSdQdLavgpHBax4AotsxhHPIomJC/E/L0cb1Id2yvuJ+hMSS+XJl7JZEyGQ/a2Qhw9mmkvTdfoKZkDWej2u49cr8PI0B3UHG9ersj0kxyoI4ncEocSIr1m9BYscrki/JnkhuRGinDDT+UiXVd/qvZDkD20z4jyJYNdB/7tVJ9Qcxx8jnZvdlON35PKdfNMZON1IfyGchGYLVxJMP+ia6L0ng0IPMmt3XnZL3AMyVnNGgIIMqmhzJKjUqqr5OeYVs59DhMc7kJ1Vdl69aMjEWIzna5XzB7LbbO5FQ48iF+j27SF07Vwq1IzQ9Wl6kZOtywfy1iGQKnlg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
bh=CZmBXOGPAkkqhEMRzqzdsXiwy+6HvEr/SEL0BbdSPVw=;
b=EoKqUjadJxFEDu3DmEZQmVRam5ecVAGgrd63dhh0OxcpfKgpGOQfVEw0OFRtMkD9U8RNiWscrLDuyrzg7nKTQjp6k65L5XM4qmeQodpmro7xL8kpLbdegGypUj579aMQ8s6FOvnK0sJARAk3cI+cv8CXlTm1804aZNUsc0qC04PUU8eMSSi66q7d4HEVf6tI6aBBT1fjJeVoS6zmXIl/GZ7PPAEu3QczZSSHm0h+EGYpscFzQFkRrW3BFyHmhCxJW8fGYOmLQ9p+O9OC20IjSpMBEkNSWFBbFpvAGH31TUkmpttjywRsd3l3nHGVqFPewt+9kdfN3R8eDADd9gmqig==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com;
dkim=pass header.d=oracle.com; arc=none
Received: from CH2PR10MB4344.namprd10.prod.outlook.com (2603:10b6:610:af::19)
by CH0PR10MB5290.namprd10.prod.outlook.com (2603:10b6:610:dc::14)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep
2021 14:36:19 +0000
Received: from CH2PR10MB4344.namprd10.prod.outlook.com
([fe80::25f8:eaf:a3b9:fe86]) by CH2PR10MB4344.namprd10.prod.outlook.com
([fe80::25f8:eaf:a3b9:fe86%4]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021
14:36:19 +0000
From: Qing Zhao
To: Jose Marchesi , Richard Biener
, Kees Cook
CC: Richard Sandiford , gcc-patches Nick Alcock via
Subject: Re: [COMMITTED][patch][version 9]add -ftrivial-auto-var-init and
variable attribute "uninitialized" to gcc
Thread-Topic: [COMMITTED][patch][version 9]add -ftrivial-auto-var-init and
variable attribute "uninitialized" to gcc
Thread-Index: AQHXpczoiTssnqQqaUyxgEmND5ytaKucVAyAgACJ7QCAAGtEzIAADZcA
Date: Fri, 10 Sep 2021 14:36:19 +0000
Message-ID:
References:
<202109091605.8168A6AB4@keescook>
<87v938sfus.fsf@oracle.com>
In-Reply-To: <87v938sfus.fsf@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3608.120.23.2.7)
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 7a9561c4-bb0a-4406-78a5-08d974685a78
x-ms-traffictypediagnostic: CH0PR10MB5290:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs:
x-ms-oob-tlc-oobclassifiers: OLM:3276;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: m03KgKJ5rYdn8MDNcj4u1uGOHYcs7cQqLLKKGek56Xvpph6ktUXOwhZxpVEPW7gfrKiw5fdcD5R+r9UsyfRVG71CcQa/eLNO3RzO9w0dYI35ypJEOVuiV/lTJ59m9l2bcag+K+YDD8O9PbH8KflIZpZaEdeC/ruxMBG/UoJoy9+KyCEuRIMBMOfEZpM113O+l4H5lAg0wcFhF10058YSvFBH56hbQmBIMwqxph5pToDh+4Zum+MpQdT4ZDb//1KDT+7U8Sc/Ky+ywXRlBWBpu/SerhAJGc07ytJY7iS1xbJlg7svyy3iWocgYvwTBxe/cmMaM8oiynw1q6B7yoG7c11HumjhCGbkxufudSz16tm9+3D5mdKJl4n7SZ3Y22Zfr8IloVHDMPuhJBZvH68DnL14h+OFsdz9mFWgN5n4swp+RZvQs3zEugzQQjzYsuxAsk9wjGPy72erc9pSSPiBmVuq7EWBuBAx8XVJe9g56hrAgR0UfJ6LQaEvGiJU5osm0Dp5xbPxHgsbaXwnkLCL+mDxcQ+n9hBajMFy2eDZrbtbL2trtSgzhrQl1gW/nOHGorFqB/3A64bcmSXVZ7vTumSGtLG5BgD9cyv7AtwV7J4Jbq+LxIWT4NVg6c/AztQBaIiHg3X3Y1bmU3lVh45CAnY5pE2Nnthh8HG/V2ZVJLCedXvQPHcqmnkV3CmGQr5QcJL9sB9mQyyCcGI98LkzVeYfcIUW1OjB5jWKqTP45q8yL+Tp9hq0FFRJ0UFokczFx7HoP+6gEStpygFtmvWJyDzKYkxfMnGUPRXDGZDDP+D6oSLv4YuJxg3vbc7aLOUx
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:CH2PR10MB4344.namprd10.prod.outlook.com; PTR:; CAT:NONE;
SFS:(39860400002)(136003)(376002)(396003)(346002)(366004)(6486002)(316002)(478600001)(966005)(54906003)(33656002)(2906002)(122000001)(38100700002)(8676002)(5660300002)(66476007)(71200400001)(110136005)(66446008)(64756008)(66556008)(53546011)(6506007)(86362001)(2616005)(91956017)(4743002)(83380400001)(8936002)(6512007)(36756003)(66946007)(186003)(38070700005)(76116006)(166002)(44832011)(4326008)(45980500001);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?G7xlOM8FQMGl5PkmFJDWRHXWqoQQWp9cWL9JWErZYnC2hNbrg2LdncA9708h?=
=?us-ascii?Q?RkK/4Pfh8LcWrJXWImyL5Q0oF6CrZUZ7nZIh4dOX7UGzYhKAokIf1gjCifKY?=
=?us-ascii?Q?RG5x0ln1a1yVNtTsFFwHO62tSuCGJVr0WFWXJPDWPg9j4GDpBXHARP9PcUqz?=
=?us-ascii?Q?ZFn7AYwWx3OzWauThoBY/Pgmdqilokj1BNwdIsJ8DD9TBuLKBRmYJVdisoaB?=
=?us-ascii?Q?SeLOT0caeHIYHrtEiaZN5vrSjpAC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1hbswuAr?=
=?us-ascii?Q?2shk3Vmru+fkMMO4ZarlT3VaNZTVoPMuPwo6zYk5vA3xNkD0BKAPA+xfQBpd?=
=?us-ascii?Q?j4/eMp1Ijd2Ae+/Eg57M+tY/nRtQombzd1KMijU53QKmz+NHTGAHoMXz2otY?=
=?us-ascii?Q?cuIw3yeE7SlG4Mh8w9Nu+LTOLF6sjpfXLuxMUiRpOti16o9j50hYairZPk/p?=
=?us-ascii?Q?xdDAY/qW/bPzmPOWSXKbSh6l3MhxWbjAhslxnE7Q4Sj8MIcBkayXWxWXxQZR?=
=?us-ascii?Q?HQBEPl4=3D?=
Content-Type: text/plain; charset="us-ascii"
Content-ID:
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: oracle.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4344.namprd10.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7a9561c4-bb0a-4406-78a5-08d974685a78
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2021 14:36:19.2015 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: VWKORBwMfg38gkhUPlcRl3k5UjdH4V0tlnxKQeau5zJyf1NHkNLHXFpuMR4iLYVDukexnOByCeYriktZDXSsnw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5290
X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10103
signatures=668682
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0
bulkscore=0 phishscore=0
spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999
classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001
definitions=main-2109100083
X-Proofpoint-ORIG-GUID: uR5ANcg7TUPzRqW5nBpIqrGedF233KYj
X-Proofpoint-GUID: uR5ANcg7TUPzRqW5nBpIqrGedF233KYj
X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT,
RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Fri, 10 Sep 2021 14:36:30 -0000
Hi, Richard, Jose,
Yes, we will try to come up with a patch to gcc-12/changes.html for this fe=
ature.
Thanks.
Qing
> On Sep 10, 2021, at 8:46 AM, Jose E. Marchesi via Gcc-patches wrote:
>=20
>=20
> Hi Richard.
>=20
>> On Thu, 9 Sep 2021, Kees Cook wrote:
>>=20
>>> On Thu, Sep 09, 2021 at 10:49:11PM +0000, Qing Zhao wrote:
>>>> Hi, FYI
>>>>=20
>>>> I just committed the following patch to gcc upstream:
>>>>=20
>>>>=20
>>>> https://gcc.gnu.org/pipermail/gcc-cvs/2021-September/353195.html
>>>=20
>>> Hurray! Thank you so much for working on this, and thanks also to the
>>> reviewers and everyone else poking at it.
>>>=20
>>> I will go update my Linux Plumbers slides to say "supported" instead of
>>> "proposed". :)
>>=20
>> Can you two work on wording to add to gcc-12/changes.html for this
>> feature? I think it deserves a release note. Likewise the CTF/BTF
>> support btw.
>=20
> What about something like this for the BPF, CTF and BTF changes..
>=20
> commit 3826495d1a2c265954d5da13ca71925eea390060 (HEAD -> master)
> Author: Jose E. Marchesi
> Date: Fri Sep 10 15:44:30 2021 +0200
>=20
> gcc-12/changes.html: BPF, CTF and BTF update
>=20
> * htdocs/gcc-12/changes.html (BPF): Item about the CO-RE suppo=
rt.
> (Debugging formats): New section with items about the support =
for
> CTF and BTF.
>=20
> diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html
> index 946faa49..936af979 100644
> --- a/htdocs/gcc-12/changes.html
> +++ b/htdocs/gcc-12/changes.html
> @@ -143,6 +143,15 @@ a work-in-progress.
>=20
>
>=20
> +BPF
> +
> + - Support for CO-RE (compile-once, run-everywhere) has been added
> + to the BPF backend. CO-RE allows to compile portable BPF
> + programs that are able to run among different versions of the
> + Linux kernel.
> +
> +
> +
>
>=20
>
> @@ -210,7 +219,25 @@ a work-in-progress.
>
>=20
>
> +Other significant improvements
> +
> +Debugging formats
> +
> +
> + - GCC can now generate debugging information
> + in CTF, a lightweight debugging
> + format that provides information about C types and the
> + association between functions and data symbols and types. This
> + format is designed to be embedded in ELF files and to be very
> + compact and simple. A new command-line
> + option
-gctf
enables the generation of CTF.
> +
> + - GCC can now generate debugging information in BTF. This is a
> + debugging format mainly used in BPF programs and the Linux
> + kernel. The compiler can generate BTF for any target, when
> + enabled with the command-line option
-gbtf
> +
> +
>=20
>=20
>