[Bug c++/102600] [modules] ICE Segmentation fault during GIMPLE pass evrp

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102600 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/102593] [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102593 Richard Biener changed: What|Removed |Added Keywords||ice-on-valid-code Priority|P

[Bug target/102591] Failure to optimize search for value in vector-sized area to use SIMD

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102591 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org Ever co

[Bug tree-optimization/102540] [12 Regression] Dead Code Elimination Regression at -O3 since r12-476-gd846f225c25c5885

2021-10-04 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102540 --- Comment #7 from rguenther at suse dot de --- On Mon, 4 Oct 2021, amacleod at redhat dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102540 > > --- Comment #6 from Andrew Macleod --- > > > > > > It removes a > > > relation

[Bug c++/84469] GCC rejects valid code in structured binding in range-based-for in template

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84469 Andrew Pinski changed: What|Removed |Added CC||1997.rajatjain at gmail dot com --- Comm

[Bug c++/102590] structured binding inside for all loop thinks it is type depedent when it is not (inside a template)

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102590 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/102590] structured binding inside for all loop thinks it is type depedent when it is not.

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102590 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 H.J. Lu changed: What|Removed |Added Attachment #51549|0 |1 is obsolete|

[Bug libgcc/102601] [maybe not a bug] libgcc requires pthread.h even i use --disable-thread --without-headers --disable-shared

2021-10-04 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102601 cqwrteur changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug libgcc/102601] [maybe not a bug] libgcc requires pthread.h even i use --disable-thread --without-headers --disable-shared

2021-10-04 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102601 --- Comment #1 from cqwrteur --- In file included from ../../../../../../gcc/libgcc/gthr.h:148, from ../../../../../../gcc/libgcc/libgcov-interface.c:27: ./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory

[Bug libgcc/102601] New: [maybe not a bug] libgcc requires pthread.h even i use --disable-thread --without-headers --disable-shared

2021-10-04 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102601 Bug ID: 102601 Summary: [maybe not a bug] libgcc requires pthread.h even i use --disable-thread --without-headers --disable-shared Product: gcc Version: 12.0 Status: UN

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

2021-10-04 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100427 --- Comment #6 from cqwrteur --- (In reply to cqwrteur from comment #5) > actually a lot of dlls are not copied correctly. > > libstdc++-6.dll libatomic.dll libquadmath.dll libssp.dll are all copied with > 32 bit dlls. > > And libgcc_seh.dll i

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #12 from Thiago Macieira --- Commit 7e0c0500808d58bca5b8e23cbd474022c32234e4 + your patch.

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #11 from Thiago Macieira --- $ for ((i=0;i<32;++i)); do ~/dev/gcc/bin/gcc "-DCONSTANT=(1<<$i)" -S -o - -O2 /tmp/test.cpp | grep bts; done lock btsl $0, (%rdi) lock btsl $1, (%rdi) lock btsl

[Bug tree-optimization/95185] Failure to optimize specific kind of sign comparison check

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95185 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/95185] Failure to optimize specific kind of sign comparison check

2021-10-04 Thread arjun.is at lostca dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95185 Arjun Shankar changed: What|Removed |Added CC||arjun.is at lostca dot se --- Comment #3

[Bug c++/102600] New: [modules] ICE Segmentation fault during GIMPLE pass evrp

2021-10-04 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102600 Bug ID: 102600 Summary: [modules] ICE Segmentation fault during GIMPLE pass evrp Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 H.J. Lu changed: What|Removed |Added Attachment #51543|0 |1 is obsolete|

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 --- Comment #28 from qinzhao at gcc dot gnu.org --- (In reply to Richard Biener from comment #21) > Reduced testcase: > > int > qy (void) > { > int tw = 4; > int fb[tw]; > return fb[2]; > } For this reduced testing case, if compiled with

[Bug fortran/102599] Wrong simplification of inquiry parameters for complex arrays

2021-10-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102599 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-valid-code --- Commen

[Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588 Andrew Pinski changed: What|Removed |Added URL|https://buildd.debian.org/s | |tatus/fetch.php?pkg

[Bug c++/102593] [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102593 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.4

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 qinzhao at gcc dot gnu.org changed: What|Removed |Added Resolution|FIXED |--- Status|RESO

[Bug fortran/102596] [11/12 Regression] ICE in gfc_omp_clause_default_ctor, at fortran/trans-openmp.c:713

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102596 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.3

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 --- Comment #26 from qinzhao at gcc dot gnu.org --- (In reply to qinzhao from comment #25) > (In reply to Richard Biener from comment #22) > > Hmm, my proposed patch seems to work. I've adjusted it to not regress > > previously correctly handled

[Bug fortran/93148] Pointer-function-result as LVALUE variable – function called multiple times with copy-in/out

2021-10-04 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93148 --- Comment #3 from Tobias Burnus --- Additionally, it seems as if the contiguous check used for gfortran.dg/contiguous_10.f90 currently unconditionally copies in the data – which causes a problem when the pointer address escapes. (Okay, whether

[Bug fortran/102599] New: Wrong simplification of inquiry parameters for complex arrays

2021-10-04 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102599 Bug ID: 102599 Summary: Wrong simplification of inquiry parameters for complex arrays Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c++/102528] Unused out-of-line functions emitted for trivial coroutines

2021-10-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102528 --- Comment #5 from Iain Sandoe --- hmm let me see if I can reproduce this (I didn't see it in my earlier tests): .L41: ud2 test(): ret which would make things look somewhat strange indeed (the functions are all TU-local - so

[Bug fortran/93148] Pointer-function-result as LVALUE variable – function called multiple times with copy-in/out

2021-10-04 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93148 --- Comment #2 from Tobias Burnus --- Also when looking at gfc_conv_subref_array_arg – the function is called seemingly up to 3 times – once per: * gfc_conv_loop_setup (&loop, &expr->where); which calls gfc_conv_loop_setup → gfc_conv_loop_set

[Bug c++/102528] Unused out-of-line functions emitted for trivial coroutines

2021-10-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102528 --- Comment #4 from Iain Sandoe --- note I looked at master (trunk) and 11.2.

[Bug c++/102528] Unused out-of-line functions emitted for trivial coroutines

2021-10-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102528 --- Comment #3 from Iain Sandoe --- (In reply to Mathias Stearn from comment #0) > https://godbolt.org/z/aoab9W4xG > > This should all compile away, and test() should just be a single ret > instruction. That is not what happens now, even w

[Bug c++/102528] Unused out-of-line functions emitted for trivial coroutines

2021-10-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102528 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2021-10-04 Ever confirmed|0

[Bug c++/102598] [modules] ICE in pp_string, at pretty-print.c

2021-10-04 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102598 --- Comment #1 from Johel Ernesto Guerrero Peña --- Attempts to reduce another wrong-code bug lead to this.

[Bug c++/33925] [10/11/12 Regression] gcc -Waddress lost some useful warnings

2021-10-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33925 Martin Sebor changed: What|Removed |Added Keywords||patch Known to fail|

[Bug tree-optimization/102571] FAIL: libgomp.c/../libgomp.c-c++-common/atomic-21.c execution test

2021-10-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102571 Jakub Jelinek changed: What|Removed |Added Component|libgomp |tree-optimization --- Comment #1 from J

[Bug c++/102598] New: [modules] ICE in pp_string, at pretty-print.c

2021-10-04 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102598 Bug ID: 102598 Summary: [modules] ICE in pp_string, at pretty-print.c Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal

[Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243

2021-10-04 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102597 Bug ID: 102597 Summary: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/102596] New: [11/12 Regression] ICE in gfc_omp_clause_default_ctor, at fortran/trans-openmp.c:713

2021-10-04 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102596 Bug ID: 102596 Summary: [11/12 Regression] ICE in gfc_omp_clause_default_ctor, at fortran/trans-openmp.c:713 Product: gcc Version: 12.0 Status: UNCONFIRMED Sev

[Bug tree-optimization/102385] [12 Regression] ICE: in single_pred_edge, at basic-block.h:350 under "-O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tr

2021-10-04 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102385 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED Assign

[Bug fortran/102595] New: ICE in var_element, at fortran/decl.c:298

2021-10-04 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102595 Bug ID: 102595 Summary: ICE in var_element, at fortran/decl.c:298 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortra

[Bug c++/102594] New: ICE in decay_conversion, at cp/typeck.c:2311

2021-10-04 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102594 Bug ID: 102594 Summary: ICE in decay_conversion, at cp/typeck.c:2311 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/102548] [9/10/11/12 Regression] ICE with cdecl attribute on a builtin function since r7-4737-g48330c9355e32a41

2021-10-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102548 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/102593] New: [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561

2021-10-04 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102593 Bug ID: 102593 Summary: [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug target/102485] -Wa,-many no longer has any effect

2021-10-04 Thread pc at us dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102485 --- Comment #2 from Paul Clarke --- GCC putting the base ".machine" directive at the beginning of the file makes any command-line use of "-many" (-Wa,-many) be ignored. Is that OK? "-many" is supposed to make those black boxes just work. This

[Bug target/102485] -Wa,-many no longer has any effect

2021-10-04 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102485 Peter Bergner changed: What|Removed |Added CC||amodra at gcc dot gnu.org,

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 --- Comment #25 from qinzhao at gcc dot gnu.org --- (In reply to Richard Biener from comment #22) > Hmm, my proposed patch seems to work. I've adjusted it to not regress > previously correctly handled cases and will test it fully. I guess the r

[Bug tree-optimization/102540] [12 Regression] Dead Code Elimination Regression at -O3 since r12-476-gd846f225c25c5885

2021-10-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102540 --- Comment #6 from Andrew Macleod --- > > > It removes a > > relationship between c_10 and _2. The reason ranger no longer can fold _2 > > == 0 > > is because the sequence is now: > > > > a.0_1 = a; > > _2 = (unsigned int) a.0_1; >

[Bug d/102574] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library

2021-10-04 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574 Iain Buclaw changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/102587] ICE in tree_to_uhwi, at tree.h:4668

2021-10-04 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102587 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug d/102574] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574 --- Comment #4 from CVS Commits --- The releases/gcc-9 branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:a5b9ac0301c850a02d045b5630aa08b4ceab20c1 commit r9-9756-ga5b9ac0301c850a02d045b5630aa08b4ceab20c1 Author: Iain Buclaw Date:

[Bug d/102574] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574 --- Comment #3 from CVS Commits --- The releases/gcc-10 branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:41e21afc427ffe4a320616d4a454144b1e93a670 commit r10-10167-g41e21afc427ffe4a320616d4a454144b1e93a670 Author: Iain Buclaw Dat

[Bug d/102574] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574 --- Comment #2 from CVS Commits --- The releases/gcc-11 branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:dd6098467ff83351948435efc826e1c4b4b27f99 commit r11-9068-gdd6098467ff83351948435efc826e1c4b4b27f99 Author: Iain Buclaw Date

[Bug target/102544] GCN offloading not working for 'amdgcn-amd-amdhsa--gfx906:sramecc+:xnack-'

2021-10-04 Thread miko at predsci dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102544 --- Comment #9 from miko at predsci dot com --- Both the C and Fortran versions returned "-1".

[Bug c++/97573] Implement C++20 [depr.arith.conv.enum]

2021-10-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97573 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/97573] Implement C++20 [depr.arith.conv.enum]

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97573 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:2dda00b734888d3b53ac91160083b5c6cd5ca5c8 commit r12-4148-g2dda00b734888d3b53ac91160083b5c6cd5ca5c8 Author: Marek Polacek Date: Wed

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #9 from Thiago Macieira --- Looks like it doesn't work for the sign bit. $ cat /tmp/test.cpp #include bool tbit(std::atomic &i) { return i.fetch_or(CONSTANT, std::memory_order_relaxed) & CONSTANT; } $ ~/dev/gcc/bin/gcc -DCONST

[Bug target/85730] complex code for modifying lowest byte in a 4-byte vector

2021-10-04 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85730 --- Comment #7 from Segher Boessenkool --- (In reply to Richard Biener from comment #5) > Not sure whether targets should have a special-case pattern here or whether > that's for combine to un-canonicalize it? Is the shift defined anywhere as th

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread thiago at kde dot org via Gcc-bugs
4tbitRSt6atomicIiE, .-_Z4tbitRSt6atomicIiE .ident "GCC: (GNU) 12.0.0 20211004 (experimental)" .section.note.GNU-stack,"",@progbits +1

[Bug sanitizer/102515] UBSAN misses signed division instrumentation

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102515 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug d/102574] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574 --- Comment #1 from CVS Commits --- The master branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:c86a16b07b76604a8e3d556f135babab80e2b747 commit r12-4146-gc86a16b07b76604a8e3d556f135babab80e2b747 Author: Iain Buclaw Date: Sun O

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2021-10-04 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #7 from Thiago Macieira --- (In reply to H.J. Lu from comment #5) > Created attachment 51536 [details] > A patch > > Please try this. Give me an hour (will try v2).

[Bug ipa/102554] [10/11 Regression] Inlining missed at -O3 with non-default --param=early-inlining-insns and pragma optimize

2021-10-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102554 --- Comment #4 from Martin Liška --- > I can confirm I am seeing g:r12-4038-g6de9f0c13b27c343 resolve the issue. > > Is it possible to get this applied into the upcoming 10.4, 11.3 releases? Sorry, but it won't be possible. It's a pretty sign

[Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper

2021-10-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588 --- Comment #3 from Martin Liška --- Reduced test-case: namespace std { typedef int size_t; template class vector { public: typedef size_t size_type; }; } // namespace std typedef int quint32; typedef double qreal; class QPointF { qreal yp

[Bug tree-optimization/102570] missed fully redudant with internal function of add_overflow in FRE

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102570 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Target Milestone|---

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/102570] missed fully redudant with internal function of add_overflow in FRE

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102570 --- Comment #2 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:55a3be2f5255d69e740d61b2c5aaba1ccbc643b8 commit r12-4143-g55a3be2f5255d69e740d61b2c5aaba1ccbc643b8 Author: Richard Biener Date:

[Bug target/49244] __sync or __atomic builtins will not emit 'lock bts/btr/btc'

2021-10-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49244 Jakub Jelinek changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #

[Bug ipa/102554] [10/11 Regression] Inlining missed at -O3 with non-default --param=early-inlining-insns and pragma optimize

2021-10-04 Thread jschoen4 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102554 John S changed: What|Removed |Added Known to fail|12.0| --- Comment #3 from John S --- (In reply to

[Bug libstdc++/102592] [11/12 Regression] heap-use-after-free when constructing std::filesystem::path from iterator pair

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102592 Jonathan Wakely changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---

[Bug libstdc++/102592] [11/12 Regression] heap-use-after-free when constructing std::filesystem::path from iterator pair

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102592 Jonathan Wakely changed: What|Removed |Added Summary|heap-use-after-free when|[11/12 Regression]

[Bug libstdc++/102592] New: heap-use-after-free when constructing std::filesystem::path from iterator pair

2021-10-04 Thread dean.gcc.bugzilla at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102592 Bug ID: 102592 Summary: heap-use-after-free when constructing std::filesystem::path from iterator pair Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severit

[Bug c++/102482] Winit-list-lifetime false positive for temporaries with std::initializer_list

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102482 Jonathan Wakely changed: What|Removed |Added Keywords||patch --- Comment #8 from Jonathan Wa

[Bug libstdc++/100444] std::random_device isn't random on AMD

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100444 --- Comment #14 from Jonathan Wakely --- Created attachment 51547 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51547&action=edit Proposed patch

[Bug target/102591] New: Failure to optimize search for value in vector-sized area to use SIMD

2021-10-04 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102591 Bug ID: 102591 Summary: Failure to optimize search for value in vector-sized area to use SIMD Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/102587] ICE in tree_to_uhwi, at tree.h:4668

2021-10-04 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102587 rsandifo at gcc dot gnu.org changed: What|Removed |Added CC||rsandifo at gcc dot gnu.or

[Bug target/102544] GCN offloading not working for 'amdgcn-amd-amdhsa--gfx906:sramecc+:xnack-'

2021-10-04 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102544 --- Comment #8 from Andrew Stubbs --- Did you get the C version to return anything other than "-1"? (The expected result is "2".) I'm still trying to determine if the device is compatible, but the mapping problem looks like a different issue.

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2021-10-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #4 from Jakub Jelinek --- Seems in the C++ FE it is CLASSTYPE_AS_BASE, so shall clear_padding_type for FIELD_DECLs where DECL_SIZE_UNIT (fld) is smaller than TYPE_SIZE_UNIT (TREE_TYPE (fld)) call some new langhook which for C++ would

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 --- Comment #23 from Richard Biener --- I do have to check the result before this fix attempt but at least with it the overall testsuite state isn't so great. You can do make check RUNTESTFLAGS="--target_board=unix/-ftrivial-auto-var-init=zer"

[Bug target/93183] SVE does not use neg as conditional

2021-10-04 Thread prathamesh3492 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93183 --- Comment #3 from prathamesh3492 at gcc dot gnu.org --- (In reply to rsand...@gcc.gnu.org from comment #2) > (In reply to Andrew Pinski from comment #1) > > We get: > > .L3: > > ld1bz0.b, p0/z, [x1, x3] > > movprfx z2, z0 > >

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2021-10-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c++/102590] Templated operations on variables in structured binding don't work when templated functions/lambdas require type deduction

2021-10-04 Thread 1997.rajatjain at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102590 --- Comment #2 from Rajat Jain <1997.rajatjain at gmail dot com> --- Yeah .template works as well. This is in the latest release too. I wasn't sure whether I should write the oldest version that this is in (since other 8.x releases would need a p

[Bug target/85730] complex code for modifying lowest byte in a 4-byte vector

2021-10-04 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85730 --- Comment #6 from Uroš Bizjak --- (In reply to Richard Biener from comment #5) > The GIMPLE IL is now using BIT_INSERT_EXPRs consistently for all cases and > combine does > > Trying 8 -> 11: > 8: {r90:SI=r89:SI<<0x1;clobber flags:CC;} >

[Bug tree-optimization/102560] [12 Regression] g++.dg/Walloca1.C ICE with aggressive GC

2021-10-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102560 Aldy Hernandez changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/102560] [12 Regression] g++.dg/Walloca1.C ICE with aggressive GC

2021-10-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102560 --- Comment #7 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:fa3ccf8bfe9940b439d6cc2c38ee8da134b0ff2d commit r12-4139-gfa3ccf8bfe9940b439d6cc2c38ee8da134b0ff2d Author: Aldy Hernandez Date:

[Bug c++/102319] ICE in cpp_atomic_builtins, at c-family/c-cppbuiltin.c:746 since r12-3495-g76b75018b3d053a8

2021-10-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102319 --- Comment #3 from Martin Liška --- @Jason: May I please ping this issue. It's still not addressed after g:4320a4b717dcccddf230d0b944bfc5a7ae282508.

[Bug c++/102590] Templated operations on variables in structured binding don't work when templated functions/lambdas require type deduction

2021-10-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102590 --- Comment #1 from Andrew Pinski --- My bet is gcc mistaken it for being a dependent type which meaning you can use the template keyword to workaround the issue. Also gcc 8.x series is over 3 years old so this might be fixed already in a newer

[Bug c++/102590] New: Templated operations on variables in structured binding don't work when templated functions/lambdas require type deduction

2021-10-04 Thread 1997.rajatjain at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102590 Bug ID: 102590 Summary: Templated operations on variables in structured binding don't work when templated functions/lambdas require type deduction Product: gcc V

[Bug libstdc++/102589] spaceship: std::map does not use specialised operator< for value

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102589 --- Comment #2 from Jonathan Wakely --- Overloading < for shared_ptr like that is a bit questionable anyway. You can use std::lexicographical_compare with a custom comparison function if you want the custom less-than behaviour: if (std::le

[Bug libstdc++/102589] spaceship: std::map does not use specialised operator< for value

2021-10-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102589 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRME

[Bug target/85730] complex code for modifying lowest byte in a 4-byte vector

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85730 Richard Biener changed: What|Removed |Added CC||segher at gcc dot gnu.org --- Comment #

[Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper

2021-10-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-10-04 Ever confirmed|0

[Bug libstdc++/102589] New: spaceship: std::map does not use specialised operator< for value

2021-10-04 Thread gjasny at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102589 Bug ID: 102589 Summary: spaceship: std::map does not use specialised operator< for value Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 --- Comment #22 from Richard Biener --- Hmm, my proposed patch seems to work. I've adjusted it to not regress previously correctly handled cases and will test it fully.

[Bug other/89863] [meta-bug] Issues in gcc that other static analyzers (cppcheck, clang-static-analyzer, PVS-studio) find that gcc misses

2021-10-04 Thread charlet at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89863 Bug 89863 depends on bug 102073, which changed state. Bug 102073 Summary: gcc/ada/socket.c: 2 * missing return https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102073 What|Removed |Added

[Bug ada/102073] gcc/ada/socket.c: 2 * missing return

2021-10-04 Thread charlet at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102073 Arnaud Charlet changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug target/102588] ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper

2021-10-04 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588 --- Comment #1 from John Paul Adrian Glaubitz --- Created attachment 51545 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51545&action=edit Preprocessed source.

[Bug target/102588] New: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper

2021-10-04 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102588 Bug ID: 102588 Summary: ICE: in smallest_mode_for_size, at stor-layout.c:356 when building openorienteering-mapper Product: gcc Version: 10.3.0 URL: https://buildd.de

[Bug middle-end/102285] New flag -ftrivial-auto-var-init=zero causes crash in pr82421.c

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102285 --- Comment #21 from Richard Biener --- Reduced testcase: int qy (void) { int tw = 4; int fb[tw]; return fb[2]; }

[Bug tree-optimization/102587] ICE in tree_to_uhwi, at tree.h:4668

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102587 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/102587] ICE in tree_to_uhwi, at tree.h:4668

2021-10-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102587 --- Comment #3 from Richard Biener --- The ICE is fixed, but VLA registers are uninitialized.

  1   2   >