From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by sourceware.org (Postfix) with ESMTPS id BE0593851C09 for ; Thu, 18 Jun 2020 11:32:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BE0593851C09 Received: by mail-qv1-xf41.google.com with SMTP id x16so2577505qvr.3 for ; Thu, 18 Jun 2020 04:32:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GBelr4aYQk/fa0iS7vgjQbYUKK2x3R45KfkkFP/65+o=; b=qi7OhfdGtQiPfr4z8d7y4w6afXOH2aOx/OFzukvfNKum85jTnbR3B5RY9Ja4v7dsvA JI2hmdO7PdN30r1+RNoDHhHhhZkKzGlsuMgDjGIZQhrG7+/9+SwzJtGaSRxgUphwZNsw VeK5Zkwkr9dP1fEEc1wD8iXwEs6scUbmNJlRLbVID1WwYjkkaHHBSGMzTmTvykY6WDGh jlT4zOZwV4VAG2gs8pa+YktzurSIw95R7NvTdO8n4dlOK2AlOLLsEabZkAPGhnsdCo6B s1135fRW5tcKoL/WLtptIM0gRRikKRvRRmsVEOruKOT+kbS6J8OVTQi605nRtOpVAzTp 6Xuw== X-Gm-Message-State: AOAM5322NqtONmCELz4NUOyh+iMF622URdau48SQqS8WUdjmh9X2dvgU qGOhMHMobo+OUoX7HG6/ylOEiw== X-Google-Smtp-Source: ABdhPJwaHtj3f1GpqbFEKM59Xs1ecs3Vn93nELyLa0W2nUCk+At0IVUq0Jc4pyBNcpdfNAk7pNHgAQ== X-Received: by 2002:ad4:5665:: with SMTP id bm5mr3241651qvb.250.1592479970328; Thu, 18 Jun 2020 04:32:50 -0700 (PDT) Received: from [192.168.0.185] ([191.34.92.22]) by smtp.gmail.com with ESMTPSA id e9sm2467269qkm.7.2020.06.18.04.32.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 04:32:49 -0700 (PDT) Subject: Re: [stage1][PATCH] Add gcc_assert that &global_options are not dirty modified. To: law@redhat.com, =?UTF-8?Q?Martin_Li=c5=a1ka?= , Jakub Jelinek Cc: gcc-patches@gcc.gnu.org, Jan Hubicka References: <20200319090931.GP2156@tucnak> <8847e7b1-4f65-1109-7014-086a763d3e94@suse.cz> <312fd3c4-cc7c-5389-4ae7-615aad0761f3@gmail.com> <63194d6e-cd33-8563-03fc-f2a86b4bf4ca@suse.cz> <20200320154357.GW2156@tucnak> <313d9009-038e-654d-056e-a95b3695efd2@suse.cz> <4142bd038cd10606a1d9dabcc46ebe6a9a7e3662.camel@redhat.com> From: Luis Machado Message-ID: <4ee4da50-70b6-9a27-1e54-693a1a6ba390@linaro.org> Date: Thu, 18 Jun 2020 08:32:45 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <4142bd038cd10606a1d9dabcc46ebe6a9a7e3662.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2020 11:32:52 -0000 FTR, I'm running into this ICE when attempting to build the Linux Kernel for arm64. More specifically: /repos/linux-arm/kernel/bpf/core.c:1368:1: internal compiler error: ‘global_options’ are modified in local context 1368 | { | ^ 0xc0554b cl_optimization_compare(gcc_options*, gcc_options*) /build/gcc-master/gcc/options-save.c:9786 0x7812df handle_optimize_attribute ../../../repos/gcc/gcc/c-family/c-attribs.c:4475 0x666477 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../../repos/gcc/gcc/attribs.c:714 0x688c9b start_function(c_declspecs*, c_declarator*, tree_node*) ../../../repos/gcc/gcc/c/c-decl.c:9177 0x6f85f3 c_parser_declaration_or_fndef ../../../repos/gcc/gcc/c/c-parser.c:2434 0x7038af c_parser_external_declaration ../../../repos/gcc/gcc/c/c-parser.c:1773 0x7044c7 c_parser_translation_unit ../../../repos/gcc/gcc/c/c-parser.c:1646 0x7044c7 c_parse_file() ../../../repos/gcc/gcc/c/c-parser.c:21822 0x764897 c_common_parse_file() ../../../repos/gcc/gcc/c-family/c-opts.c:1190 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. I don't have a reduced testcase for this, but I thought I'd check if this is known/being worked on before filing a bug. On 6/9/20 6:01 PM, Jeff Law via Gcc-patches wrote: > On Thu, 2020-05-21 at 14:04 +0200, Martin Liška wrote: >> PING^1 >> >> On 3/20/20 4:55 PM, Martin Liška wrote: >>> Ok, it would be possible, but if you take a look at options-save.c there's no >>> function that will leverage that. It's a generated code so I guess we can >>> live with that? > Given the size increase is under control now, I think this is fine for the trunk. > > jeff >