[Bug c/95130] New: GCC ignoring attribute(format(gnu_printf)) on printf in mingw

2020-05-14 Thread martin at martin dot st
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at martin dot st Target Milestone: --- Since a long time (GCC 4.4?) GCC does support annotating functions with either the format attribute "gnu_printf" or "ms_printf&

[Bug c++/89087] New: Dllexport for explicit template instantiation with nested classes loses nested class

2019-01-28 Thread martin at martin dot st
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: martin at martin dot st Target Milestone: --- Created attachment 45537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45537&action=edit Sample code show

[Bug c++/89088] New: Dllexport for explicit template instantiation missing inline methods

2019-01-28 Thread martin at martin dot st
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: martin at martin dot st Target Milestone: --- Created attachment 45538 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45538&action=edit Sample code showing the issu

[Bug c++/89087] Dllexport for explicit template instantiation with nested classes loses nested class

2019-04-26 Thread martin at martin dot st
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89087 --- Comment #1 from Martin Storsjö --- FWIW, Clang (when operating in MinGW mode, where it tries to follow what GCC does) also had the same issue. There this issue was fixed by emitting definitions for nested classes even if a template instantiat

[Bug c++/89088] Dllexport for explicit template instantiation missing inline methods

2019-04-26 Thread martin at martin dot st
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89088 --- Comment #1 from Martin Storsjö --- FWIW, Clang (when operating in MinGW mode, where it tries to follow what GCC does) also had the same issue. There this issue was fixed by making dllexport export inline methods as well, for template instanti

[Bug c/103956] New: [10 Regression] -Wstringop-overflow= false positive on -O3 for writes to array

2022-01-09 Thread martin at martin dot st via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: martin at martin dot st Target Milestone: --- Since GCC 10.0, the following snippet produces warnings (various numbers of warnings with the same issue) for this reduced

[Bug target/103274] Remaining -freorder-blocks-and-partition/ glitch with Windows SEH

2021-11-16 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103274 Martin Storsjö changed: What|Removed |Added CC||martin at martin dot st --- Comment

[Bug target/103274] Remaining -freorder-blocks-and-partition/ glitch with Windows SEH

2021-11-16 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103274 --- Comment #4 from Martin Storsjö --- Also for additional context; with GCC 9.x, this testcase had the needed nop instruction between "call" and ".seh_endproc". In GCC 10.x (regressed in https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=095f78

[Bug target/103274] [10/11/12 regression] remaining -freorder-blocks-and-partition/ glitch with Windows SEH

2021-11-30 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103274 --- Comment #11 from Martin Storsjö --- (In reply to Eric Botcazou from comment #10) > Thanks for reporting the problem. Thanks for the fix! I can confirm that the version of the patch backported on the gcc-10 branch fixes the testcase at least

[Bug c/95130] GCC ignoring attribute(format(gnu_printf)) on printf in mingw

2022-10-25 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95130 --- Comment #8 from Martin Storsjö --- (In reply to Tomas Kalibera from comment #7) > I sent an updated version for the trunk, 12, 11 and 10 to the gcc-patches > mailing list in May: > > https://gcc.gnu.org/pipermail/gcc-patches/2022-May/594960.

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-06-05 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 Martin Storsjö changed: What|Removed |Added CC||martin at martin dot st --- Comment

[Bug target/105506] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2022-06-06 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #8 from Martin Storsjö --- (In reply to Brecht Sanders from comment #7) > So I guess the question that remains is: Where is -D__USE_MINGW_ACCES > missing in the configuration of GCC 12? > > It would seem to me the answer lies in cod

[Bug libstdc++/116159] undefined symbol: _ZSt21ios_base_library_initv with mingw/i686+lld

2024-09-10 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116159 --- Comment #2 from Martin Storsjö --- (In reply to Jakub Jelinek from comment #1) > Is mingw really using GNU symbol versioning? That ought to be an ELF only > thing and this is guarded with #ifdef _GLIBCXX_SYMVER_GNU. It's not actually using

[Bug libstdc++/116159] undefined symbol: _ZSt21ios_base_library_initv with mingw/i686+lld

2024-09-10 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116159 --- Comment #6 from Martin Storsjö --- (In reply to Jonathan Wakely from comment #4) > But is that even going to work on this target when the actual symbol has __Z > ? > > T __ZNSt8ios_base4InitC1Ev > > (why doesn't the alias give an

[Bug c/95130] GCC ignoring attribute(format(gnu_printf)) on printf in mingw

2024-04-19 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95130 --- Comment #25 from Martin Storsjö --- (In reply to Andrew Pinski from comment #23) > Note since MSVC 2015 runtime, printf has support %ll so ms_printf should be > fixed to incldue that. > > https://learn.microsoft.com/en-us/cpp/c-runtime-libra

[Bug target/114984] New: asm() renaming of symbols inconsistent with dllimport

2024-05-08 Thread martin at martin dot st via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: martin at martin dot st Target Milestone: --- A function declaration can use asm("") to point out that the function actually exists under a different symbol name. E.g. like this: $ cat call-bar.c e

[Bug target/114984] asm() renaming of symbols inconsistent with dllimport

2024-05-08 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114984 --- Comment #1 from Martin Storsjö --- The suggestion in https://sourceware.org/pipermail/cygwin/2007-February/154845.html was that for dllimported symbols, the string passed in asm("") should be entirely literal, i.e. no implicit "__imp_" prepe

[Bug target/114984] asm() renaming of symbols inconsistent with dllimport

2024-05-08 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114984 --- Comment #2 from Martin Storsjö --- To clarify the concern for changing whether "__imp_" is implied for asm("") on dllimported symbols or not; on all other mingw architectures than i386, there's no extra symbol prefix, so the current behaviou

[Bug libstdc++/110572] ld.lld: error: duplicate symbol: std::type_info::operator==(std::type_info const&) const

2024-06-03 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572 --- Comment #12 from Martin Storsjö --- (In reply to Jonathan Wakely from comment #11) > CC Martin Storsjo to see if changing Clang would be possible, or if he has a > better idea for the preprocessor check suggested in comment 9. > > It might

[Bug libstdc++/110572] ld.lld: error: duplicate symbol: std::type_info::operator==(std::type_info const&) const

2024-06-14 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572 --- Comment #14 from Martin Storsjö --- (In reply to GCC Commits from comment #13) > The master branch has been updated by Jonathan Wakely : > > https://gcc.gnu.org/g:6af8d8e618ed27dae3432c96484de4360bd893ab > > commit r15-1342-g6af8d8e618ed27

[Bug libstdc++/118003] New: std::filesystem::remove_all() hangs on Windows on directories containing a deep tree with long paths

2024-12-11 Thread martin at martin dot st via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: martin at martin dot st Target Milestone: --- To reproduce - create a deep tree where the total path name to the deepest folders exceed the

[Bug libstdc++/118003] std::filesystem::remove_all() hangs on Windows on directories containing a deep tree with long paths

2024-12-12 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118003 --- Comment #2 from Martin Storsjö --- > I also don't want to have to use Windows APIs here. How does that work within libstdc++ in general, with std::filesystem using wchar_t as std::filesystem::path::value_type? Are all paths converted to nar

[Bug libstdc++/118003] std::filesystem::remove_all() hangs on Windows on directories containing a deep tree with long paths

2024-12-12 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118003 --- Comment #7 from Martin Storsjö --- (In reply to Jonathan Wakely from comment #6) > I have zero interest in learning any native APIs and my employer isn't > interested in Windows support, so if I can't easily get it working with code > simila

[Bug libstdc++/118003] std::filesystem::remove_all() hangs on Windows on directories containing a deep tree with long paths

2024-12-12 Thread martin at martin dot st via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118003 --- Comment #5 from Martin Storsjö --- (In reply to Jonathan Wakely from comment #4) > (In reply to Martin Storsjö from comment #2) > > > I also don't want to have to use Windows APIs here. > > > > How does that work within libstdc++ in general