[Bug analyzer/109577] -Wanalyzer-allocation-size mishandles __builtin_mul_overflow

2024-05-11 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577 --- Comment #9 from nightstrike --- (In reply to David Malcolm from comment #8) > Should be fixed for GCC 13 (for the upcoming GCC 13.3) by the above patches. Did you miss my comment #5 highlighting the need to adjust the declaration of malloc

[Bug analyzer/110014] -Wanalyzer-allocation-size mishandles realloc (..., .... * sizeof (object))

2024-05-11 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110014 --- Comment #6 from nightstrike --- (In reply to David Malcolm from comment #5) > Should be fixed for GCC 13 (for the upcoming GCC 13.3) by the above patch. Did you miss my comment #3 that highlighted the problem due to assuming that size_t ==

[Bug c++/114534] New: Feature request: extend VLA support in C++

2024-03-30 Thread nightstrike at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- See https://gcc.gnu.org/pipermail/gcc-help/2024-March/143369.html for reference. The documentation at https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html states that VLAs

[Bug other/108644] Format string warnings related to longs under MigW-W64/MSYS2 on Windows 10

2024-02-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108644 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/43613] Some architecture-dependent codes

2024-02-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43613 --- Comment #10 from nightstrike --- Patch thread started here: https://gcc.gnu.org/pipermail/gcc-patches/2024-February/644674.html https://inbox.sourceware.org/gcc-patches/4700e066-1b50-4e7b-92f7-d8c33a330...@gmail.com/ and ended with this

[Bug analyzer/105755] -Wanalyzer-null-dereference regression compiling Emacs

2024-02-16 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105755 --- Comment #6 from nightstrike --- (In reply to nightstrike from comment #5) > If I open your godbolt links, they aren't using a Windows target compiler, > so they aren't exercising an LLP64 target. For instance:

[Bug analyzer/105755] -Wanalyzer-null-dereference regression compiling Emacs

2024-02-16 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105755 --- Comment #5 from nightstrike --- (In reply to David Malcolm from comment #4) > Looks like this was fixed sometime in GCC 13; resolving as WORKSFORME. > > Feel free to reopen if you have a reproducer that triggers on a more recent > GCC.

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-02-11 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #35 from nightstrike --- (In reply to anlauf from comment #34) > Are you sure that it finds the right new libgfortran? Good call. I did a make install first and re-ran it, and they all pass now. Sorry for the noise, this is an

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-02-11 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #33 from nightstrike --- I modified the test further to just print which ones would have called stop. Almost, but not all, do: stop 2 stop 3 stop 4 stop 7 stop 8 stop 9 stop 10 stop 11 stop 12 stop 13 stop 15 stop 20

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-02-11 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 --- Comment #32 from nightstrike --- (In reply to anlauf from comment #31) > (In reply to nightstrike from comment #30) > > (In reply to GCC Commits from comment #29) > > > * gfortran.dg/pr111022.f90: New test. > > > > This new

[Bug libfortran/111022] ES0.0E0 format gave ES0.dE0 output with d too high.

2024-02-11 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111022 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug c++/113624] FAIL: g++.dg/ext/dllimport4.C, ICE on windows targets

2024-01-29 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113624 nightstrike changed: What|Removed |Added Known to fail||11.3.0, 12.2.0, 13.0, 14.0 --- Comment

[Bug analyzer/105755] -Wanalyzer-null-dereference regression compiling Emacs

2024-01-28 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105755 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug analyzer/109577] -Wanalyzer-allocation-size mishandles __builtin_mul_overflow

2024-01-28 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109577 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug analyzer/110014] -Wanalyzer-allocation-size mishandles realloc (..., .... * sizeof (object))

2024-01-28 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110014 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug testsuite/113634] New: FAIL: gcc.dg/Wfree-nonheap-object-7.c, incorrect declaration for calloc()

2024-01-27 Thread nightstrike at gmail dot com via Gcc-bugs
: testsuite-fail Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- This test uses an incorrect declaration for calloc(): void *calloc(long, long

[Bug target/113633] New: FAIL: gcc.dg/bf-ms-attrib.c execution test, wrong size for ms_struct

2024-01-27 Thread nightstrike at gmail dot com via Gcc-bugs
, testsuite-fail Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com CC: ktietz at gcc dot gnu.org Target Milestone: --- Target: *-*-mingw

[Bug c/113631] New: FAIL: gcc.dg/pr7356.c, fix still fails with #pragma

2024-01-27 Thread nightstrike at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com CC: dmalcolm at gcc dot gnu.org Target Milestone: --- The original PR7356 highlighted a problem where a diagnostic

[Bug c++/113624] New: FAIL: g++.dg/ext/dllimport4.C, ICE on windows targets

2024-01-26 Thread nightstrike at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 57235 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57235=edit output of -freport-bug A test from the testsuite is failing for ex

[Bug c++/113591] New: FAIL: g++.dg/cpp0x/lambda/lambda-ice15.C

2024-01-24 Thread nightstrike at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- See PR 67846. The original PR highlighted an ICE, and we do not ICE on Windows, but we don't error out either. We can achieve the Linux behavior with -fno-ms-extensions

[Bug libstdc++/113589] New: FAIL: experimental/filesystem/operations/absolute.cc on Windows

2024-01-24 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- (Probably related to PR4) The absolute.cc test fails this assertion: VERIFY( absolute(p).is_absolute() ); on the second

[Bug target/100058] -Wpadded is inconsistent using -mms-bitfields

2024-01-23 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100058 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/113549] float simd crash on windows in gcc.dg/vect/vect-simd-clone-16b.c

2024-01-22 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113549 --- Comment #4 from nightstrike --- (In reply to Andrew Pinski from comment #3) > Either the stack size or the stack alignment issue. > > I am suspecting a stack alignement issue. Possibly related: PR110273

[Bug testsuite/113548] gcc.dg/vect/vect-ifcvt-19.c ICEs on LLP64 target

2024-01-22 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113548 --- Comment #3 from nightstrike --- Seeing as how this is a testsuite issue, it seems that the crash in the same location applies to the following: FAIL: gcc.dg/vect/vect-ifcvt-19.c (internal compiler error: in build2, at tree.cc:5097) FAIL:

[Bug target/113549] float simd crash on windows in gcc.dg/vect/vect-simd-clone-16b.c

2024-01-22 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113549 --- Comment #2 from nightstrike --- Test 16e uses double instead of float, which also crashes.

[Bug target/113549] float simd crash on windows in gcc.dg/vect/vect-simd-clone-16b.c

2024-01-22 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113549 --- Comment #1 from nightstrike --- Created attachment 57188 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57188=edit Failing source for easier copying

[Bug target/113549] New: float simd crash on windows in gcc.dg/vect/vect-simd-clone-16b.c

2024-01-22 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 57187 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57187=edit Assembly output The vect-simd-clone-16

[Bug tree-optimization/113548] New: ICE vect-ifcvt-19 in build2, at tree.cc:5097

2024-01-22 Thread nightstrike at gmail dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 57186 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57186=edit Preprocessed source from -freport-bug ICE during testsuite

[Bug libstdc++/107603] checking for ld that supports -Wl,--gc-sections... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. for i686-w64-mingw32 target at canadian compilation

2024-01-19 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107603 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/59425] ICE - seg fault building ISL on Windows

2024-01-19 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59425 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug ada/113516] New: POLLPRI redefined on windows building ada

2024-01-19 Thread nightstrike at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com CC: dkm at gcc dot gnu.org Target Milestone: --- g:r11-4313-gd08d481912b9a2 defined POLLPRI to zero on Windows, stating in the commit message "Define POLLPRI as zero on Wi

[Bug libstdc++/65257] cin not working with empty string when _GLIBCXX_DEBUG is defined on Windows

2024-01-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65257 --- Comment #2 from nightstrike --- I should clarify that I tested this with mingw-w64, not mingw.org where the bug was originally reported.

[Bug libstdc++/65257] cin not working with empty string when _GLIBCXX_DEBUG is defined on Windows

2024-01-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65257 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/43613] Some architecture-dependent codes

2024-01-15 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43613 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug libstdc++/110167] New: excessive compile time when optimizing std::to_array

2023-06-07 Thread nightstrike at gmail dot com via Gcc-bugs
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- #include int f[262144]; auto g(void) { return std::to_array(f); } (Thanks to Andrew for help reducing!) Baseline run: $ time g++ test.cc -std=gnu++20 -O0

[Bug target/69639] [10/11/12/13 Regression] FAIL: gcc.c-torture/compile/limits-exprparen.c

2023-03-04 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69639 --- Comment #18 from nightstrike --- (In reply to nightstrike from comment #9) > This affects 8-trunk on x86_64 cygwin, as well. The default size of the > stack for cc1 is: > > $ peflags -x /tmp/b2/gcc/cc1.exe > /tmp/b2/gcc/cc1.exe: stack

[Bug c/108942] New: ICE in build2, at tree.c: 5096 for gcc/testsuite/gcc.dg/torture/ssa-fre-7.c:23:3

2023-02-27 Thread nightstrike at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 54541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54541=edit preprocessed source f

[Bug middle-end/83286] internal compiler error: Illegal instruction

2023-02-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83286 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/90458] [10/11/12/13 Regression] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection

2023-02-14 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 --- Comment #8 from nightstrike --- FYI, this is the same as the failure in gcc/testsuite/gcc.dg/stack-check-16.c: (running this under Wine) during RTL pass: final gcc.dg/stack-check-16.c:36:1: internal compiler error: in

[Bug testsuite/108675] FAIL: gcc.c-torture/execute/builtins/*printf.c when stdio.h includes definitions

2023-02-10 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108675 --- Comment #9 from nightstrike --- I understand it's not ideal based on comment #6, but this fixes all the tests: diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/fprintf.c

[Bug testsuite/108709] FAIL: gcc.dg/analyzer/pipe-glibc.c

2023-02-07 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108709 --- Comment #1 from nightstrike --- Perhaps these are separate bugs, but: 1) gcc.dg/analyzer/pipe-manpages.c will need similar improvements 2) gcc.dg/analyzer/pipe-void-return.c passes with an incorrect declaration for pipe(), implying that

[Bug analyzer/108709] New: FAIL: gcc.dg/analyzer/pipe-glibc.c

2023-02-07 Thread nightstrike at gmail dot com via Gcc-bugs
Assignee: dmalcolm at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- This test fails on Windows for lack of fork. It actually fails for not having pipe(), also, but _pipe() does the job well enough, so that fix is a simple #define. It is not very

[Bug analyzer/108708] New: __analyzer_dump_named_constant fails with derived values

2023-02-07 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- The analyzer test fd-access-mode-target-headers.c fails on mingw-w64 due to the following: FAIL: gcc.dg/analyzer/fd-access-mode-target

[Bug testsuite/107602] dump-noaddr testcases fail when running the testsuite with already built installed toolchain

2023-02-07 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107602 --- Comment #2 from nightstrike --- Better link(In reply to nightstrike from comment #1) > Reverting 186d43a78e945ebe9fbe217fc341847af7f95d30 fixes this problem at > least for me Better link: r255433

[Bug testsuite/107602] dump-noaddr testcases fail when running the testsuite with already built installed toolchain

2023-02-07 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107602 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug testsuite/108675] FAIL: gcc.c-torture/execute/builtins/*printf.c when stdio.h includes definitions

2023-02-06 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108675 --- Comment #8 from nightstrike --- (In reply to LIU Hao from comment #7) > (In reply to nightstrike from comment #5) > > (In reply to LIU Hao from comment #4) > > > Does it make any sense to remove `#include ` from > > >

[Bug testsuite/108675] FAIL: gcc.c-torture/execute/builtins/*printf.c when stdio.h includes definitions

2023-02-06 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108675 --- Comment #5 from nightstrike --- (In reply to LIU Hao from comment #4) > Does it make any sense to remove `#include ` from > 'gcc.c-torture/execute/builtins/lib/fprintf.c' ? That will prevent the FILE type from existing, so the replacement

[Bug testsuite/108675] FAIL: gcc.c-torture/execute/builtins/*printf.c when stdio.h includes definitions

2023-02-06 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108675 --- Comment #2 from nightstrike --- (In reply to Richard Biener from comment #1) > These tests are known to be a bit awkwardly implemented to check for > optimizations done ... How would you do it if you were writing the test today? > There

[Bug testsuite/108675] New: FAIL: gcc.c-torture/execute/builtins/*printf.c when stdio.h includes definitions

2023-02-04 Thread nightstrike at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Failing tests: gcc.c-torture/execute/builtins/printf.c gcc.c-torture/execute/builtins/fprintf.c gcc.c-torture

[Bug target/90826] Weak symbol does not work reliably on windows

2023-01-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90826 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug testsuite/108427] New: bitfield tests fail with missing warnings

2023-01-16 Thread nightstrike at gmail dot com via Gcc-bugs
: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Both bitfield-3.m and bitfield-5.m appear to fail for the same reason on x86_64-w64-mingw32 (cross compiled from linux, if it matters). The tests each contain multiple

[Bug d/108408] New: libphobos: Support building on *-*-cygwin

2023-01-14 Thread nightstrike at gmail dot com via Gcc-bugs
Assignee: ibuclaw at gdcproject dot org Reporter: nightstrike at gmail dot com Target Milestone: --- See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99794 for reference. This PR is tracking the state of building libphobos on cygwin using 11.3, the last compiler that can

[Bug middle-end/108300] `abort()` macro cause bootstrap failure on *-w64-mingw32

2023-01-14 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108300 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/82028] Windows x86_64 should not pass float aggregates in xmm

2023-01-14 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82028 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/90256] Optimizer with interrupt routines

2023-01-14 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90256 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug d/99794] libphobos: Support building on *-*mingw*

2023-01-12 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99794 --- Comment #3 from nightstrike --- Hm, looks like it *IS* in 11. I was confused by the PR being open and the version stating 11, thinking that it still wasn't applied. So the remaining issues then are building on cygwin. But at least on a

[Bug d/99794] libphobos: Support building on *-*mingw*

2023-01-12 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99794 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug testsuite/108204] pr84973-2.C fails with wrong error on mingw

2023-01-09 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108204 --- Comment #4 from nightstrike --- (In reply to Richard Biener from comment #3) > I'd suggest to add a dg-additional-options -fno-ms-extensions to the test > then. We certainly can (well, Jon can :P), but shouldn't the ms extensions

[Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base

2023-01-09 Thread nightstrike at gmail dot com via Gcc-bugs
, ||nightstrike at gmail dot com --- Comment #5 from nightstrike --- (In reply to cqwrteur from comment #4) > (In reply to Andrew Pinski from comment #3) > > cygwin was improved here: > > https://sourceware.org/git/gitweb.cgi?p=newlib-cy

[Bug testsuite/108192] g++.dg/cet-notrack-1.C searching for wrong function on mingw

2023-01-07 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108192 --- Comment #3 from nightstrike --- Created attachment 54209 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54209=edit Patch to change printf to puts so it works everywhere

[Bug testsuite/108152] gcc.dg/pr71558.c fails for LLP64

2022-12-29 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108152 nightstrike changed: What|Removed |Added CC||10walls at gmail dot com --- Comment #3

[Bug preprocessor/107974] compiler can't find source file in path that is longer than 255 characters

2022-12-28 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107974 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug testsuite/108150] gcc.dg/attr-aligned.c fails with incorrect max alignment

2022-12-27 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108150 nightstrike changed: What|Removed |Added CC||10walls at gmail dot com --- Comment #2

[Bug target/102993] -fcf-protection=full produces segfaulting code when targeting 32-bit x86 (i686)

2022-12-26 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102993 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug target/103327] Do not search MINGW in the search dir

2022-12-26 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103327 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug bootstrap/100427] canadian compile for mingw-w64 copies the wrong dlls for mingw-w64 multilibs

2022-12-26 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100427 --- Comment #11 from nightstrike --- Possible duplicate of PR39947

[Bug bootstrap/100427] canadian compile for mingw-w64 copies the wrong dlls for mingw-w64 multilibs

2022-12-26 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100427 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug c++/106395] [12/13 regression] [mingw] "redeclared without dllimport attribute: previous dllimport ignored" on C++ friend since r12-299-ga0fdff3cf33f72

2022-12-26 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106395 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

[Bug libstdc++/108210] error: 'mutex' does not name a type; did you mean 'minutes'? for x86_64-w64-mingw32 target with win32 thread model

2022-12-26 Thread nightstrike at gmail dot com via Gcc-bugs
, ||nightstrike at gmail dot com --- Comment #2 from nightstrike --- Is this before or after this patch set was applied? https://gcc.gnu.org/pipermail/gcc-patches/2022-December/609116.html

[Bug c++/108207] ICE in testcase g++.dg/other/ptrmem8.C on mingw

2022-12-23 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108207 --- Comment #1 from nightstrike --- Ah, Andrew, before you beat me to it... this doesn't ICE if you pass -fno-ms-extensions, and it does ICE on Linux if you pass -fms-extensions

[Bug c++/108207] New: ICE in testcase g++.dg/other/ptrmem8.C on mingw

2022-12-23 Thread nightstrike at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- All variants of this test fail (98, 14, 17, 20) // Target: x86_64-w64-mingw32 // Configured with: ../configure --disable-nls --with-sysroot=/tmp/rtmingw --target=x86_64

[Bug c++/108204] pr84973-2.C fails with wrong error on mingw

2022-12-22 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108204 --- Comment #2 from nightstrike --- (In reply to Andrew Pinski from comment #1) > Try with -fno-ms-extensions or try -fms-extension on Linux. Hey, we have a winner! -fms-extension on Linux results in the bad error, and -fno-ms-extensions on

[Bug c++/108204] New: pr84973-2.C fails with wrong error on mingw

2022-12-22 Thread nightstrike at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- All of the pr84973-2.C tests fail on mingw. They give the output: g++.dg/template/pr84973-2.C: In instantiation of 'void a()::c::b() [with int = 0]': g++.dg/template

[Bug c++/108203] New: Format string checking with __USE_MINGW_ANSI_STDIO

2022-12-22 Thread nightstrike at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Circa v4.5, some mingw-w64 users discovered an issue with printf functions and g++. Addressing this resulted in a kludge on the mingw-w64 headers side, but this should

[Bug tree-optimization/101854] [11 Regression] Invalid warning -Wstringop-overflow wrong argument

2022-12-21 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101854 --- Comment #11 from nightstrike --- (In reply to Martin Sebor from comment #9) > Fixed for GCC 12. The patch is far too intrusive to backport but the > following should fix the problem in GCC 11: Would you mind applying it to 11? Thanks!

[Bug testsuite/108192] g++.dg/cet-notrack-1.C searching for wrong function on mingw

2022-12-21 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108192 --- Comment #2 from nightstrike --- (In reply to H.J. Lu from comment #1) > Since Windows doesn't support IBT, this test can be limited to Linux. I don't know what IBT is, but if I change the two printf's to puts(), the tests pass. So, maybe

[Bug testsuite/108192] New: g++.dg/cet-notrack-1.C searching for wrong function on mingw

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 54139 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54139=edit cet-notrack-1.s g++.dg/cet-notrack-

[Bug testsuite/108190] g++.target/i386/*pr54700*.C testcases fail on x86_64-mingw

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108190 --- Comment #5 from nightstrike --- Created attachment 54138 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54138=edit avx512vl-pr54700-1b.s

[Bug testsuite/108190] g++.target/i386/*pr54700*.C testcases fail on x86_64-mingw

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108190 --- Comment #4 from nightstrike --- Created attachment 54137 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54137=edit avx512vl-pr54700-1a.s

[Bug testsuite/108190] g++.target/i386/*pr54700*.C testcases fail on x86_64-mingw

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108190 --- Comment #3 from nightstrike --- Created attachment 54136 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54136=edit avx2-pr54700-1.s

[Bug testsuite/108190] Various testsuite asm fails

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108190 --- Comment #1 from nightstrike --- Created attachment 54135 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54135=edit avx-pr54700-1.s

[Bug testsuite/108190] New: Various testsuite asm fails

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 54134 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54134=edit asm output 1 The following are a collection of failures from running PR54700 tests on a li

[Bug testsuite/108152] gcc.dg/pr71558.c fails for LLP64

2022-12-20 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108152 --- Comment #2 from nightstrike --- (In reply to Andrew Pinski from comment #1) > { dg-options "" } That would remove every option, no? Do others matter, like -pedantic, or whatever else is there?

[Bug testsuite/108150] gcc.dg/attr-aligned.c fails with incorrect max alignment

2022-12-19 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108150 --- Comment #1 from nightstrike --- Ok, that was dumb.. WINT_MAX is wide int max... hah. So maybe test for __CYGWIN__ || __WIN32__

[Bug testsuite/108161] New: gcc.dg/ipa/pr96040.c fails with incorrect size_t assumption (snprintf, strspn)

2022-12-17 Thread nightstrike at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- gcc.dg/ipa/pr96040.c assumes that size_t is unsigned long, which it isn't for LLP64. The following definitions

[Bug testsuite/108160] gcc.dg/format/ms_attr-3.c testsuite failure, missed update from r9-4163-g1d24950977c730

2022-12-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108160 --- Comment #1 from nightstrike --- It looks like the other testsuite changes (attr-8.c, the objc/c++ tests, etc.) should be evaluated and ported over also, so this isn't a complete fix. Alternatively, maybe this would scale better in the

[Bug testsuite/108160] New: gcc.dg/format/ms_attr-3.c testsuite failure, missed update from r9-4163-g1d24950977c730

2022-12-17 Thread nightstrike at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Created attachment 54120 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54120=edit Sugges

[Bug testsuite/108159] gcc.dg/format/ms-format2.c fails due to warning message change

2022-12-17 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108159 --- Comment #1 from nightstrike --- Andrew pointed out that this is the better fix, and it does indeed work: diff --git a/gcc/testsuite/gcc.dg/format/ms-format2.c b/gcc/testsuite/gcc.dg/format/ms-format2.c index 5c950522a7c..9d21d108642 100644

[Bug testsuite/108159] New: gcc.dg/format/ms-format2.c fails due to warning message change

2022-12-17 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- This is presumably a regression, as the test worked when it first went in. However, the warning message being tested for has

[Bug testsuite/108152] New: gcc.dg/pr71558.c fails for LLP64

2022-12-16 Thread nightstrike at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- gcc.dg/pr71558.c has the following lines: __SIZE_TYPE__ strlen (const char *); void *malloc (__SIZE_TYPE__); __SIZE_TYPE__ b = strlen (a); These are good in that they support

[Bug testsuite/108151] New: gcc.dg/pr64536.c stores pointers in a long, broken for llp64

2022-12-16 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- gcc/testsuite/gcc.dg/pr64536.c contains lines such as the following: struct S { long q; } *h; long a, b, g, j, k, *c, *d, *e, *f

[Bug c/108150] New: gcc.dg/attr-aligned.c fails with incorrect max alignment

2022-12-16 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- On Windows targets, the max alignment is 8192. However, this test winds up assuming the max alignment is much larger, causing multiple

[Bug c/107754] New: Confusing -Warray-bounds warning with strcpy

2022-11-18 Thread nightstrike at gmail dot com via Gcc-bugs
: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Metabug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=warray-bounds // Compile with GCC 12.2.0 with -O2: //warning: ‘strcpy’ offset 0 is out of the bounds [0, 0

[Bug c++/107531] List of references calls destructors, add warning?

2022-11-04 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107531 --- Comment #2 from nightstrike --- It looks like you're right. The root cause of the problem is that in my non-reduced case, I didn't have a copy constructor, but I had a non-default destructor that was releasing resources twice. So it's

[Bug c++/107531] New: List of references calls destructors, add warning?

2022-11-04 Thread nightstrike at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- The following code results in a destructor being calling twice: #include struct S { S() { __builtin_printf("ctor\n"); } ~S() { __builtin_prin

[Bug c++/107463] New: Better error request for invalid initializer list of aggregate

2022-10-30 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- struct S { struct Config { int x; }; S(Config const & cfg); }; void f() { S s({ .y

[Bug c/103996] New: Enhancement: Better diagnostic for invalid reuse of a function name

2022-01-12 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Related email thread: https://gcc.gnu.org/pipermail/gcc-help/2022-January/141117.html I recently hit this problem: #include void f

[Bug other/102060] New: -Wprio-ctor-dtor underlines the wrong part of the source line

2021-08-25 Thread nightstrike at gmail dot com via Gcc-bugs
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- We get a warning when building for windows that should be fixed, but it highlights that the warning is slightly mistaken about where

[Bug analyzer/102052] New: analyser testsuite failures with LLP64 model

2021-08-24 Thread nightstrike at gmail dot com via Gcc-bugs
: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- Additional details here: https://gcc.gnu.org/pipermail/gcc/2021-August/237158.html pr98969.c:9:19: warning: cast to pointer from integer of different size [-Wint

[Bug c/102010] New: ICE in stack-check-8.c in i386_pe_seh_unwind_emit

2021-08-22 Thread nightstrike at gmail dot com via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nightstrike at gmail dot com Target Milestone: --- See related PR97795 and PR90458 The testsuite test stack-check-8.c fails thusly: spawn -ignore SIGHUP /tmp/_/build/gc/gcc/xgcc -B/tmp/_/build/gc/gcc/ /tmp/_/src/gcc-git

  1   2   3   4   >