public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/108130] [13 Regression] LTO compile time hog seen on bootstrap-lto config since r13-4684-g7450b25566b7a7 Date: Wed, 21 Dec 2022 10:57:45 +0000 [thread overview] Message-ID: <bug-108130-4-l2QfbxZRUV@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108130-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108130 --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- I noticed one more issue starting with this revision and it's linker error when building systemd-mini package: https://build.opensuse.org/package/live_build_log/home:marxin:home:marxin:gcc-periodic-testing-v2/systemd-mini/openSUSE_Tumbleweed/x86_64 [ 114s] /usr/bin/cc -o src/boot/efi/linuxx64.elf.stub -DGNU_EFI_USE_MS_ABI -DSD_BOOT -ffreestanding -fshort-wchar -fvisibility=hidden -I /home/abuild/rpmbuild/BUILD/systemd-v252.3+suse.40.gbf3fef9988/src/fundamental -I /home/abuild/rpmbuild/BUILD/systemd-v252.3+suse.40.gbf3fef9988/src/boot/efi -include src/boot/efi/efi_config.h -include version.h -isystem /usr/include/efi/x86_64 -isystem /usr/include/efi -std=gnu11 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wno-maybe-uninitialized -Wno-unused-result -ftrivial-auto-var-init=zero -fno-stack-protector -fno-strict-aliasing -fpic -fwide-exec-charset=UCS2 -O1 -mno-red-zone -mno-sse -mno-mmx -O2 -flto=auto -fuse-ld=bfd -L /usr/lib64 -nostdlib -T /usr/lib64/elf_x86_64_efi.lds -Wl,--build-id=sha1 -Wl,--fatal-warnings -Wl,--no-undefined -Wl,--warn-common -Wl,-Bsymbolic -z nocombreloc /usr/lib64/crt0-efi-x86_64.o -Wl,--no-warn-execstack -Wl,--no-warn-rwx-segments -pie -Wl,--no-dynamic-linker src/boot/efi/bootspec-fundamental.c.o src/boot/efi/efivars-fundamental.c.o src/boot/efi/sha256.c.o src/boot/efi/string-util-fundamental.c.o src/boot/efi/tpm-pcr.c.o src/boot/efi/assert.c.o src/boot/efi/console.c.o src/boot/efi/devicetree.c.o src/boot/efi/disk.c.o src/boot/efi/efi-string.c.o src/boot/efi/graphics.c.o src/boot/efi/initrd.c.o src/boot/efi/measure.c.o src/boot/efi/pe.c.o src/boot/efi/secure-boot.c.o src/boot/efi/ticks.c.o src/boot/efi/util.c.o src/boot/efi/cpio.c.o src/boot/efi/linux.c.o src/boot/efi/splash.c.o src/boot/efi/stub.c.o src/boot/efi/linux_x86.c.o -lefi -lgnuefi -lgcc [ 114s] /usr/bin/ld.bfd: /tmp/ccfbAVRm.ltrans0.ltrans.o: in function `locate_sections.constprop.0': [ 114s] <artificial>:(.text+0x360c): undefined reference to `memcmp' [ 114s] collect2: error: ld returned 1 exit status note it's a freestanding environment and the symbol memcmp is defined by systemd. Note -flto-partition=one does not help us here. memcmp.part.0/2514 (memcmp.part.0) Type: function definition analyzed Visibility: semantic_interposition artificial References: Referring: Read from file: /tmp/ccnpwegs.ltrans0.o Function memcmp.part.0/2514 is inline copy in efi_main/1352 Clone of memcmp.part.0/2216 Unit id: 10 Function flags: count:29068074 (estimated locally) local split_part nonfreeing_fn Called by: memcmp.lto_priv.0/2513 (inlined) (29068074 (estimated locally),0.10 per call) Calls: memcmp.lto_priv.0/2513 (memcmp) Type: function definition analyzed Visibility: semantic_interposition public visibility:hidden References: Referring: Read from file: /tmp/ccnpwegs.ltrans0.o Function memcmp/2513 is inline copy in efi_main/1352 Clone of memcmp.lto_priv.0/503 Unit id: 10 Function flags: count:44042536 (estimated locally) local nonfreeing_fn Called by: is_direct_boot/1927 (inlined) (44042536 (estimated locally),0.15 per call) Calls: memcmp.part.0/2514 (inlined) (29068074 (estimated locally),0.10 per call) Unfortunately, I can't easily reduce a self-contained test-case. Please let me know on IRC and can debug it.
next prev parent reply other threads:[~2022-12-21 10:57 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-15 15:47 [Bug ipa/108130] New: " marxin at gcc dot gnu.org 2022-12-15 15:48 ` [Bug ipa/108130] " marxin at gcc dot gnu.org 2022-12-16 12:00 ` rguenth at gcc dot gnu.org 2022-12-19 12:03 ` marxin at gcc dot gnu.org 2022-12-21 10:57 ` marxin at gcc dot gnu.org [this message] 2023-01-05 16:11 ` jamborm at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-108130-4-l2QfbxZRUV@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).