From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11713 Path: news.gmane.org!.POSTED!not-for-mail From: Pascal Cuoq Newsgroups: gmane.linux.lib.musl.general Subject: patch: sequence points in memset Date: Mon, 10 Jul 2017 14:39:07 +0000 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_002_CF3F2019214F487BA7DC7E88B0F2D4A1trustinsoftcom_" X-Trace: blaine.gmane.org 1499697555 32695 195.159.176.226 (10 Jul 2017 14:39:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 14:39:15 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-11726-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 10 16:39:11 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dUZq8-00088q-Bo for gllmg-musl@m.gmane.org; Mon, 10 Jul 2017 16:39:08 +0200 Original-Received: (qmail 26599 invoked by uid 550); 10 Jul 2017 14:39:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26550 invoked from network); 10 Jul 2017 14:39:09 -0000 Thread-Topic: patch: sequence points in memset Thread-Index: AQHS+YpIugGgVzNee06AyYRg6ARuDw== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [86.247.14.108] Xref: news.gmane.org gmane.linux.lib.musl.general:11713 Archived-At: --_002_CF3F2019214F487BA7DC7E88B0F2D4A1trustinsoftcom_ Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable Following a recent discussion of statements shaped like x =3D x =3D c;, the= attached patch introduces additional sequence points in musl's implementat= ion of memset, because no realistic target platform benefits from the lack = of sequence points in the current version, and if a hypothetical target (VL= IW maybe?) was designed to benefit from the lack of sequence point, the lac= k of sequence point might just as well cause harm. Pascal --_002_CF3F2019214F487BA7DC7E88B0F2D4A1trustinsoftcom_ Content-Type: application/octet-stream; name="memset_sp.patch" Content-Description: memset_sp.patch Content-Disposition: attachment; filename="memset_sp.patch"; size=632; creation-date="Mon, 10 Jul 2017 14:39:07 GMT"; modification-date="Mon, 10 Jul 2017 14:39:07 GMT" Content-ID: Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9zdHJpbmcvbWVtc2V0LmMgYi9zcmMvc3RyaW5nL21lbXNldC5jDQpp bmRleCBmNDM4YjA3Li41NjEzYTE0IDEwMDY0NA0KLS0tIGEvc3JjL3N0cmluZy9tZW1zZXQuYw0K KysrIGIvc3JjL3N0cmluZy9tZW1zZXQuYw0KQEAgLTExLDEyICsxMSwxNiBAQCB2b2lkICptZW1z ZXQodm9pZCAqZGVzdCwgaW50IGMsIHNpemVfdCBuKQ0KIAkgKiBvZmZzZXRzIGFyZSB3ZWxsLWRl ZmluZWQgYW5kIGluIHRoZSBkZXN0IHJlZ2lvbi4gKi8NCiANCiAJaWYgKCFuKSByZXR1cm4gZGVz dDsNCi0Jc1swXSA9IHNbbi0xXSA9IGM7DQorCXNbMF0gPSBjOw0KKwlzW24tMV0gPSBjOw0KIAlp ZiAobiA8PSAyKSByZXR1cm4gZGVzdDsNCi0Jc1sxXSA9IHNbbi0yXSA9IGM7DQotCXNbMl0gPSBz W24tM10gPSBjOw0KKwlzWzFdID0gYzsNCisJc1syXSA9IGM7DQorCXNbbi0yXSA9IGM7DQorCXNb bi0zXSA9IGM7DQogCWlmIChuIDw9IDYpIHJldHVybiBkZXN0Ow0KLQlzWzNdID0gc1tuLTRdID0g YzsNCisJc1szXSA9IGM7DQorCXNbbi00XSA9IGM7DQogCWlmIChuIDw9IDgpIHJldHVybiBkZXN0 Ow0KIA0KIAkvKiBBZHZhbmNlIHBvaW50ZXIgdG8gYWxpZ24gaXQgYXQgYSA0LWJ5dGUgYm91bmRh cnksDQo= --_002_CF3F2019214F487BA7DC7E88B0F2D4A1trustinsoftcom_--