From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67932 invoked by alias); 11 Jul 2017 13:52:00 -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 67515 invoked by uid 89); 11 Jul 2017 13:51:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=5753 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Jul 2017 13:51:56 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3x6NmT5TFcz1qsF6; Tue, 11 Jul 2017 15:51:53 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3x6NmT2wyhz3jgYK; Tue, 11 Jul 2017 15:51:53 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Uu0Oxw3Z5Lsp; Tue, 11 Jul 2017 15:51:51 +0200 (CEST) X-Auth-Info: 9TulPP7fM07M4smtAken731ogEOYbOyd1m2m0QCeGGwOooYGd0ORHDdNiWt4iM6X Received: from hawking (nat.nue.novell.com [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 11 Jul 2017 15:51:50 +0200 (CEST) From: Andreas Schwab To: Maxim Ostapenko Cc: GCC Patches , Jakub Jelinek , Marek Polacek , Yuri Gribov Subject: Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs =?utf-8?Q?sanitization=2E=E2=80=8B?= References: <591C40E9.7030307@samsung.com> <59365A82.2070806@samsung.com> <593FD67C.5040607@samsung.com> <87k23ihijg.fsf@linux-m68k.org> <596330E6.6070200@samsung.com> X-Yow: They collapsed.... like nuns in the street... they had no teen appeal! Date: Tue, 11 Jul 2017 13:52:00 -0000 In-Reply-To: <596330E6.6070200@samsung.com> (Maxim Ostapenko's message of "Mon, 10 Jul 2017 10:46:46 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-07/txt/msg00524.txt.bz2 On Jul 10 2017, Maxim Ostapenko wrote: > diff --git a/gcc/asan.c b/gcc/asan.c > index 95004d7..89c2731 100644 > --- a/gcc/asan.c > +++ b/gcc/asan.c > @@ -1567,9 +1567,10 @@ asan_emit_allocas_unpoison (rtx top, rtx bot, rtx_insn *before) > else > start_sequence (); > rtx ret = init_one_libfunc ("__asan_allocas_unpoison"); > + top = convert_memory_address (ptr_mode, top); > + bot = convert_memory_address (ptr_mode, bot); > ret = emit_library_call_value (ret, NULL_RTX, LCT_NORMAL, ptr_mode, 2, top, > - TYPE_MODE (pointer_sized_int_node), bot, > - TYPE_MODE (pointer_sized_int_node)); > + ptr_mode, bot, ptr_mode); There is another similar occurence: /opt/gcc/gcc-20170711/gcc/testsuite/gcc.dg/asan/pr80168.c:7:1: internal compiler error: in emit_library_call_value_1, at calls.c:4555 0x701577 emit_library_call_value_1 ../../gcc/calls.c:4554 0x7068d7 emit_library_call_value(rtx_def*, rtx_def*, libcall_type, machine_mode, int, ...) ../../gcc/calls.c:5159 0x6f2307 expand_asan_emit_allocas_unpoison ../../gcc/builtins.c:4978 0x6f2307 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/builtins.c:6787 0x81fa6f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10841 0x716517 expand_expr ../../gcc/expr.h:276 0x716517 expand_call_stmt ../../gcc/cfgexpand.c:2664 0x716517 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3583 0x716517 expand_gimple_stmt ../../gcc/cfgexpand.c:3749 0x719077 expand_gimple_basic_block ../../gcc/cfgexpand.c:5753 0x71dfc7 execute ../../gcc/cfgexpand.c:6360 Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."