public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100424] New: Inline virtual function not emitted with -fsanitize=undefined -O2
@ 2021-05-04 21:33 redi at gcc dot gnu.org
2021-08-12 22:42 ` [Bug ipa/100424] " pinskia at gcc dot gnu.org
2021-08-12 22:44 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-05-04 21:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100424
Bug ID: 100424
Summary: Inline virtual function not emitted with
-fsanitize=undefined -O2
Product: gcc
Version: 10.3.1
Status: UNCONFIRMED
Keywords: link-failure
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
Created attachment 50753
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50753&action=edit
Gzip compressed preprocessed source
The testcase
libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc fails to
link with -std=gnu++17 -fsanitize=undefined -O2
/usr/bin/ld: /tmp/ccrPcmjT.o: in function `test04()':
release.cc:(.text+0x63c9): undefined reference to
`std::pmr::monotonic_buffer_resource::do_allocate(unsigned long, unsigned
long)'
collect2: error: ld returned 1 exit status
The function is defined inline in that file, so should get emitted.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ipa/100424] Inline virtual function not emitted with -fsanitize=undefined -O2
2021-05-04 21:33 [Bug c++/100424] New: Inline virtual function not emitted with -fsanitize=undefined -O2 redi at gcc dot gnu.org
@ 2021-08-12 22:42 ` pinskia at gcc dot gnu.org
2021-08-12 22:44 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 22:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100424
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fno-devirtualize allows it to link.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ipa/100424] Inline virtual function not emitted with -fsanitize=undefined -O2
2021-05-04 21:33 [Bug c++/100424] New: Inline virtual function not emitted with -fsanitize=undefined -O2 redi at gcc dot gnu.org
2021-08-12 22:42 ` [Bug ipa/100424] " pinskia at gcc dot gnu.org
@ 2021-08-12 22:44 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 22:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100424
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |93115
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe the same as PR 93115.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93115
[Bug 93115] gcc fails to emit inline function on llvm-roc project: -O1 -fPIC
-fdevirtualize -fdevirtualize-speculatively -fipa-cp -fipa-cp-clone
-fvisibility-inlines-hidden
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-12 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 21:33 [Bug c++/100424] New: Inline virtual function not emitted with -fsanitize=undefined -O2 redi at gcc dot gnu.org
2021-08-12 22:42 ` [Bug ipa/100424] " pinskia at gcc dot gnu.org
2021-08-12 22:44 ` pinskia at gcc dot gnu.org
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).