From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id C6DB83858C83; Wed, 22 Feb 2023 11:45:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C6DB83858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 03986373A4; Wed, 22 Feb 2023 11:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1677066310; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f6+ywMBiwkLtzmjt7t/qBGPvY6mzP2mybI0zmpmp45o=; b=ApdREFOOdS5+tNJOVHZIT0vR5IEUmDr1MjgpGJDnTo68WhbE6KLUqXyjv16mYJk87+2QsF Buqd0A6nMoOfCG+fZS53iUsITQJGZ+JEyc7EKjxCD5DfZ0U6lHWEYZgb0LLQGcZz59garC 3RNtkq/KVEDwpywmG+G5SRZuUjtLxCQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1677066310; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f6+ywMBiwkLtzmjt7t/qBGPvY6mzP2mybI0zmpmp45o=; b=UieSeXhhrnJAtFJbgXjES85VuZ8FCjaB9ehbA+fm+9wyCNe3ibQU58lBsKpREg4aTAw/Bi fpTsppA1SRpMIIDg== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id DC7F42C141; Wed, 22 Feb 2023 11:45:09 +0000 (UTC) Date: Wed, 22 Feb 2023 11:45:09 +0000 (UTC) From: Richard Biener To: Thomas Schwinge cc: Jan-Benedict Glaw , gcc-patches@gcc.gnu.org, Gaius Mulley , arthur.cohen@embecosm.com, gcc-rust@gcc.gnu.org Subject: Re: Rust: In 'type_for_mode' langhook also consider all 'int_n' modes/types (was: Modula-2 / Rust: Many targets failing) In-Reply-To: <871qmi6iya.fsf@euler.schwinge.homeip.net> Message-ID: References: <20221219212344.ewtuzd2jtztm77x2@lug-owl.de> <871qmi6iya.fsf@euler.schwinge.homeip.net> User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1609957120-1477352219-1677066309=:27913" X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,SPF_HELO_NONE,SPF_PASS,TXREP,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1609957120-1477352219-1677066309=:27913 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Wed, 22 Feb 2023, Thomas Schwinge wrote: > Hi! > > Richard, you may remember your words from > "ICE: SIGSEGV in optab_for_tree_code (optabs.c:407) with -O -fno-tree-scev-cprop -ftree-vectorize": > > > Ideally we'd never use lang_hooks.types.type_for_mode (or _for_size) in the > > middle-end but had a pure middle-end based implementation. > > Is there a canonical PR or other discussion thread for that? No, not that I'm aware of. Richard. > Here's another instance of this issue: > > On 2022-12-19T22:23:45+0100, Jan-Benedict Glaw wrote: > > With the recent merges for Modula-2 and Rust, I see a good number of > > targets failing with --enable-languages=all, mostly due to issues with > > the Modula-2 driver. > > Thanks for reporting. > > > Modula-2 related issues > > [snipped] > > > Rust related issues > > ===================== > > > > --target=msp430-elfbare > > ~~~~~~~~~~~~~~~~~~~~~~~~~ > > /var/lib/laminar/run/gcc-msp430-elfbare/24/toolchain-build/./gcc/xgcc -B/var/lib/laminar/run/gcc-msp430-elfbare/24/toolchain-build/./gcc/ -xrust -frust-incomplete-and-experimental-compiler-do-not-use -nostdinc /dev/null -S -o /dev/null -fself-test=../../gcc/gcc/testsuite/selftests > > : internal compiler error: Segmentation fault > > 0xf2efbf crash_signal > > ../../gcc/gcc/toplev.cc:314 > > 0x120c8c7 build_function_type(tree_node*, tree_node*, bool) > > ../../gcc/gcc/tree.cc:7360 > > 0x120cc20 build_function_type_list(tree_node*, ...) > > ../../gcc/gcc/tree.cc:7442 > > 0x120d16b build_common_builtin_nodes() > > ../../gcc/gcc/tree.cc:9883 > > 0x8449b4 grs_langhook_init > > ../../gcc/gcc/rust/rust-lang.cc:132 > > 0x8427b2 lang_dependent_init > > ../../gcc/gcc/toplev.cc:1815 > > 0x8427b2 do_compile > > ../../gcc/gcc/toplev.cc:2110 > > Please submit a full bug report, with preprocessed source (by using -freport-bug). > > Please include the complete backtrace with any bug report. > > See for instructions. > > make[1]: *** [../../gcc/gcc/rust/Make-lang.in:275: s-selftest-rust] Error 1 > > See also > "Test failure on msp430-elfbare target". > > I confirm with both upstream GCC master branch and GCC/Rust master > branch: > > $ ../source-gcc/configure --target=msp430-elfbare --enable-languages=rust [...] > $ make all-gcc [...] > [...] > [...]/build-gcc/./gcc/xgcc -B[...]/build-gcc/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=../../source-gcc/gcc/testsuite/selftests > -fself-test: 57323 pass(es) in 0.420000 seconds > echo timestamp > s-selftest-c > [...]/build-gcc/./gcc/xgcc -B[...]/build-gcc/./gcc/ -xrust -frust-incomplete-and-experimental-compiler-do-not-use -nostdinc /dev/null -S -o /dev/null -fself-test=../../source-gcc/gcc/testsuite/selftests > : internal compiler error: Segmentation fault > 0xf51b9f crash_signal > ../../source-gcc/gcc/toplev.cc:314 > 0x12e6a3a build_function_type(tree_node*, tree_node*, bool) > ../../source-gcc/gcc/tree.cc:7447 > 0x12e6ee0 build_function_type_list(tree_node*, ...) > ../../source-gcc/gcc/tree.cc:7529 > 0x12e748e build_common_builtin_nodes() > ../../source-gcc/gcc/tree.cc:9977 > 0x7661c4 grs_langhook_init > ../../source-gcc/gcc/rust/rust-lang.cc:128 > 0x762ac9 lang_dependent_init > ../../source-gcc/gcc/toplev.cc:1815 > 0x762ac9 do_compile > ../../source-gcc/gcc/toplev.cc:2110 > Please submit a full bug report, with preprocessed source (by using -freport-bug). > Please include the complete backtrace with any bug report. > See for instructions. > make[1]: *** [s-selftest-rust] Error 1 > [...] > > OK to push the attached > "Rust: In 'type_for_mode' langhook also consider all 'int_n' modes/types"? > > > Grüße > Thomas > > > ----------------- > Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 > -- Richard Biener SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman; HRB 36809 (AG Nuernberg) ---1609957120-1477352219-1677066309=:27913--