From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755372Ab3KVAe1 (ORCPT ); Thu, 21 Nov 2013 19:34:27 -0500 Received: from h1446028.stratoserver.net ([85.214.92.142]:60120 "EHLO mail.ahsoftware.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753756Ab3KVAe0 (ORCPT ); Thu, 21 Nov 2013 19:34:26 -0500 Message-ID: <528EA67D.5080901@ahsoftware.de> Date: Fri, 22 Nov 2013 01:34:05 +0100 From: Alexander Holler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Linus Torvalds CC: Mathieu Desnoyers , Jakub Jelinek , Richard Henderson , Linux Kernel Mailing List , Will Deacon , Catalin Marinas , Peter Zijlstra , lttng-dev@lists.lttng.org, Nathan Lynch , "Paul E. McKenney" , Andrew Morton , Luis Lozano , Bhaskar Janakiraman , Han Shen Subject: Re: current_thread_info() not respecting program order with gcc 4.8.x References: <52803E5D.3050109@mentor.com> <52851395.3010306@mentor.com> <67652521.68027.1384482849638.JavaMail.zimbra@efficios.com> <1691607547.70809.1384874952002.JavaMail.zimbra@efficios.com> <528E2E8E.8080004@ahsoftware.de> <528E94E2.3080102@ahsoftware.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 22.11.2013 01:17, schrieb Linus Torvalds: > On Thu, Nov 21, 2013 at 3:18 PM, Alexander Holler wrote: > Basically, your whole argument boils down to "if the function did > something else than what it does, then it wouldn't be const, so we > shouldn't mark it const". But that argument is BULLSHIT, because the > fact is, the function *doesn't* do what you try to claim it does. Maybe gcc just makes the same false conclusion as I did in my description. I read it as current_thread_info() returns "a pointer to something local" instead of returns "a pointer". Might be BULLSHIT but would explain the bug which seems to exist. Alexander Holler