https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108389
--- Comment #4 from BBK ---
I managed to save the /tmp/*.res file generated by plugin,and there's no such
entry mention strnlen in it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108389
--- Comment #3 from BBK ---
Also since the libraries are built with fat objects,build the program with
-fno-lto does success.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108389
--- Comment #2 from BBK ---
It truly looks like a plugin problem.
See the output
eebssk1@dEBianKb:~/a$ ~/mingw-gcc/i686-w64-mingw32/bin/i686-w64-mingw32-gcc-nm
*strnlen*
T _strnlen
eebssk1@dEBianKb:~/a$
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #6 from BBK ---
I will try modify gcc's code to simply return instead of assert error if the
condition does not match to allow the compilation, and then check if the result
binary still woking as expected. This is only solution I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #4 from eebssk1 at godaftwithebk dot pub ---
The problem occurs at final linking.
x86_64-w64-mingw32-g++ -o src/dxgi/dxgi.dll src/dxgi/dxgi.dll.p/version.o
src/dxgi/dxgi.dll.p/dxgi_adapter.cpp.obj
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #3 from eebssk1 at godaftwithebk dot pub ---
Exactly same problem with -Os on lto.(Seems reflect the problem in that github
issue)
The project seems only supports mingw target.
I'll get back when have more information.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108389
--- Comment #1 from eebssk1 at godaftwithebk dot pub ---
binutils version 2.39
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108389
Bug ID: 108389
Summary: LTO(plugin) can not find lto-ed symbols
Product: gcc
Version: 12.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #1 from eebssk1 at godaftwithebk dot pub ---
It looks like my issue is caused by a extra inconspicuous flag
"-fdeclone-ctor-dtor". The program compiled succefully without it.
I do use this flag on other projects,never have such
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
Bug ID: 108383
Summary: g++ ICE with -O3 and -flto on simple function
Product: gcc
Version: 12.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component:
10 matches
Mail list logo