From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13096 invoked by alias); 10 May 2018 17:53:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 13079 invoked by uid 89); 10 May 2018 17:53:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=contract X-HELO: smtp.ispras.ru Received: from bran.ispras.ru (HELO smtp.ispras.ru) (83.149.199.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 May 2018 17:53:12 +0000 Received: from monopod.intra.ispras.ru (monopod.intra.ispras.ru [10.10.3.121]) by smtp.ispras.ru (Postfix) with ESMTP id 3E6A4203C6; Thu, 10 May 2018 20:53:10 +0300 (MSK) Date: Thu, 10 May 2018 17:57:00 -0000 From: Alexander Monakov To: Richard Biener cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH 0/2] Introduce gcc_qsort In-Reply-To: <82E69EBE-92EB-41AB-8E1B-ADBD65516D73@gmail.com> Message-ID: References: <20180510155641.2950-1-amonakov@ispras.ru> <82E69EBE-92EB-41AB-8E1B-ADBD65516D73@gmail.com> User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2018-05/txt/msg00492.txt.bz2 On Thu, 10 May 2018, Richard Biener wrote: > > - signature-compatible to C qsort, but relaxed contract: > > - may apply the comparator to elements in a temporary buffer > > What consequences has this or rather how is this observable and makes comparators behave differently? The only serious consequence I'm aware of is this: the buffer must be sufficiently aligned to match the alignment requirement of elements being sorted Alexander