[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32

2023-02-14 Thread franke at computer dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 --- Comment #4 from Christian Franke --- I get similar results with x86_64-pc-cygwin-gcc (aka gcc) 11.3.0 and x86_64-w64-mingw32-gcc 11.3.0, both from current Cygwin distro and with x86_64-w64-mingw32-gcc (aka gcc) 12.2.0 from current MSYS2 dist

[Bug target/108673] ICE with -fstack-clash-protection and noreturn attribute on x86_64-w64-mingw32

2023-02-04 Thread franke at computer dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108673 Christian Franke changed: What|Removed |Added CC||franke at computer dot org

[Bug middle-end/97336] False positive -Wstring-compare warning for strncmp()

2020-10-09 Thread franke at computer dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97336 --- Comment #2 from Christian Franke --- Sorry, but I disagree that this report is INVALID. Unlike for example -Wstringop-overflow, warnings like -Wstring-compare should IMO only occur if the warning condition holds for *all* function calls gene

[Bug middle-end/97336] New: False positive -Wstring-compare warning for strncmp()

2020-10-08 Thread franke at computer dot org via Gcc-bugs
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: franke at computer dot org Target Milestone: --- Testcase: $ uname -srvmo CYGWIN_NT-10.0 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin $ cygcheck -f /usr/bin/gcc gcc-core-10.2.0-1 $ gcc --version gcc (GCC

[Bug other/91989] libssp/spp.c: __[stack_]chk_fail() may run arbitrary code if __builtin_trap() returns

2020-02-02 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91989 --- Comment #2 from Christian Franke --- If the builtin is also noreturn on the other (non-x86) platforms, a cosmetic issue remains only: libssp/ssp.c contains dead code with a misleading comment which suggests that __builtin_trap() may return un

[Bug other/91989] New: libssp/spp.c: __[stack_]chk_fail() may run arbitrary code if __builtin_trap() returns

2019-10-04 Thread franke at computer dot org
Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: franke at computer dot org Target Milestone: --- Issue found in MinGW-w64 GCC 7.4.0 from current Cygwin package, but still applies to current SVN trunk (r276567

[Bug libstdc++/86138] [7/8 Regression] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-29 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #25 from Christian Franke --- (In reply to Jonathan Wakely from comment #23) > What if you test with -D_GLIBCXX_ASSERTIONS ? > > (I expect you'll get a crash for either c++14 or c++17) Yes. Fixed with patch from r262167. New Cygw

[Bug libstdc++/86138] [7/8 Regression] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-22 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #18 from Christian Franke --- With patch from r261873, crash on -std=c++17 does no longer occur with testcase from comment #3. Same for a wchar_t version of the testcase. According to objdump -p, executable now imports _S_empty_rep_s

[Bug libstdc++/86138] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-21 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #13 from Christian Franke --- This patch prevents duplicate _S_empty_rep_storage[] even on Cygwin (char only, wchar_t missing). Testcase works as expected then: --- basic_string.tcc.orig 2018-05-03 06:22:46.0 +0200 +++

[Bug libstdc++/86138] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-20 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #12 from Christian Franke --- (In reply to Jonathan Wakely from comment #7) > OK, so then this is the whack Windows linker model, where every DLL has its > own address space, and probably the same as PR 81522. Yes. Likely also affect

[Bug libstdc++/86138] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-20 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #11 from Christian Franke --- (In reply to Jonathan Wakely from comment #8) > You still haven't explained why declaring the specialization is bogus. The > explicit specialization is defined at > https://gcc.gnu.org/git/?p=gcc.git;a=b

[Bug libstdc++/86138] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-19 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #6 from Christian Franke --- (In reply to Jonathan Wakely from comment #4) > Could you please debug this to find where it's crashing and why? It segfaults with a bogus pointer below std::string::_Rep::_M_dispose(). A comparison of as

[Bug libstdc++/86138] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-19 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #5 from Christian Franke --- (In reply to Jonathan Wakely from comment #4) > (In reply to Christian Franke from comment #3) > > > The extern templates are disabled because std::basic_string has additional > > > member functions in C++

[Bug libstdc++/86138] C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-18 Thread franke at computer dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 --- Comment #3 from Christian Franke --- (In reply to Jonathan Wakely from comment #1) > Why is the one in the DLL not compatible? I don't know. > The extern templates are disabled because std::basic_string has additional > member functions in C

[Bug libstdc++/86138] New: C++17: getline(istream, string) crashes on Cygwin because incompatible C++14 function is called

2018-06-13 Thread franke at computer dot org
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: franke at computer dot org Target Milestone: --- The function std::getline(istream &, string &, char) crashes if build with Cygwin gcc-g++

[Bug c++/56747] New: throw segfaults on 64bit Cygwin if -O2 (-freorder-blocks) is used with g++ 4.8.0

2013-03-26 Thread franke at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56747 Bug #: 56747 Summary: throw segfaults on 64bit Cygwin if -O2 (-freorder-blocks) is used with g++ 4.8.0 Classification: Unclassified Product: gcc Version: unknown