From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R89RN-00085g-Kn for qemu-devel@nongnu.org; Mon, 26 Sep 2011 07:33:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R89RM-0000FD-Dm for qemu-devel@nongnu.org; Mon, 26 Sep 2011 07:33:41 -0400 Received: from mail-yi0-f45.google.com ([209.85.218.45]:62480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R89RM-0000F9-BG for qemu-devel@nongnu.org; Mon, 26 Sep 2011 07:33:40 -0400 Received: by yib2 with SMTP id 2so5458073yib.4 for ; Mon, 26 Sep 2011 04:33:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E805923.50806@siemens.com> References: <4E802DDD.8090100@siemens.com> <4E805923.50806@siemens.com> Date: Mon, 26 Sep 2011 12:33:38 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v2] tcg: Remove stack protection from helper functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Blue Swirl , Laurent Desnogues , Anthony Liguori , Mulyadi Santosa , qemu-devel On 26 September 2011 11:51, Jan Kiszka wrote: > This increases the overhead of frequently executed helpers. We need to > move rule past QEMU_CFLAGS assignment to ensure that the required simple > assignment picks up all bits. The signal workaround is moved just for > the sake of consistency. > +# NOTE: Must be after the last QEMU_CFLAGS assignment > +op_helper.o user-exec.o: QEMU_CFLAGS := $(subst -fstack-protector-all,,$(QEMU_CFLAGS)) $(HELPER_CFLAGS) Why also user-exec.o ? Why not the other source files with helpers in? This doesn't seem very consistent. Maybe the right answer is to have some of the offending helper functions inline instead? (Or to not have -fstack-protector-all globally?) -- PMM