[Bug tree-optimization/108385] [12 Regression] false positive -Wfree-nonheap-object

2023-01-13 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108385 Martin Liška changed: What|Removed |Added Summary|false positive |[12 Regression] false

[Bug c++/108390] ICE in fold_convert_loc, at fold-const.cc:2504 partial ordering between array types since r8-4678-g6296cf8e099aae43

2023-01-13 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108390 Martin Liška changed: What|Removed |Added Summary|ICE in fold_convert_loc, at |ICE in fold_convert_loc, at

[Bug tree-optimization/108385] [12 Regression] false positive -Wfree-nonheap-object

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108385 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.3 Blocks|

[Bug tree-optimization/108385] [12 Regression] false positive -Wfree-nonheap-object

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108385 --- Comment #5 from Richard Biener --- [E]VRP testcase which shows the odd 'off' range on the false edge: void bar(char *); void foo (char *p, char *pp, int off) { char *q = p + off; if (q != p) bar (q); char *qq = pp + off; if (qq

[Bug c++/108390] [10/11/12/13 Regression] ICE in fold_convert_loc, at fold-const.cc:2504 partial ordering between array types since r8-4678-g6296cf8e099aae43

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108390 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Target Miles

[Bug modula2/108144] m2 does not respect --enable-version-specific-runtime-libs

2023-01-13 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108144 --- Comment #4 from Martin Liška --- May I please ping this?

[Bug tree-optimization/108385] [12 Regression] false positive -Wfree-nonheap-object

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108385 --- Comment #6 from Richard Biener --- (In reply to Richard Biener from comment #5) > [E]VRP testcase which shows the odd 'off' range on the false edge: > > void bar(char *); > > void foo (char *p, char *pp, int off) > { > char *q = p + off;

[Bug bootstrap/107950] partial LTO linking of libbackend.a: gcc/gcc-rich-location.cc:207: undefined reference to `range_label_for_type_mismatch::get_text(unsigned int) const'

2023-01-13 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107950 --- Comment #6 from Martin Liška --- (In reply to Andrew Pinski from comment #5) > It might be the case the object files were unused in the archive so they are > not linked in the LTO front-end but now with using LTO partial linking, they > are

[Bug c/105180] [10/11/12/13 Regression] K&R style definition does not evaluate array size

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105180 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2

[Bug libstdc++/108391] New: Operator '::operator delete(void*, size_t)' was not found when clang compiled stdlibc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 Bug ID: 108391 Summary: Operator '::operator delete(void*, size_t)' was not found when clang compiled stdlibc++ Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug tree-optimization/108387] [13 Regression] ICE in VN_INFO with multiple and shifts producing 0 at -O2/s/3

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108387 --- Comment #4 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:adbee4a197c7b735a3dd58cfac8933f70069f71d commit r13-5136-gadbee4a197c7b735a3dd58cfac8933f70069f71d Author: Richard Biener Date:

[Bug tree-optimization/108387] [13 Regression] ICE in VN_INFO with multiple and shifts producing 0 at -O2/s/3

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

[Bug target/107209] [13 Regression] ICE: verify_gimple failed (error: statement marked for throw, but doesn't)

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107209 --- Comment #7 from CVS Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:3893c9c0a16832f55d8d0827f50c48a56c52f6e7 commit r13-5137-g3893c9c0a16832f55d8d0827f50c48a56c52f6e7 Author: Richard Biener Date:

[Bug target/107209] [13 Regression] ICE: verify_gimple failed (error: statement marked for throw, but doesn't)

2023-01-13 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107209 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resoluti

[Bug target/107131] [11/12/13 Regression] wrong code with -Os -fno-ipa-vrp -fno-tree-bit-ccp

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107131 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:add71b95dd27d73d64eee0a9c8f748672b7050f5 commit r13-5139-gadd71b95dd27d73d64eee0a9c8f748672b7050f5 Author: Jakub Jelinek Date: F

[Bug target/107565] [12/13 Regression] -Wanalyzer-use-of-uninitialized-value false positive with rdrand

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107565 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.3

[Bug middle-end/107719] 14% regression on TSVC s3113 on znve4 compared to GCC 7.5

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107719 Richard Biener changed: What|Removed |Added Target||x86_64-*-* --- Comment #2 from Richard

[Bug analyzer/107943] [11/12/13 Regression] gcc -fanalyzer hangs in openssl curve25519.c since r11-3840-gaf66094d03779377

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107943 Richard Biener changed: What|Removed |Added Target Milestone|--- |11.4

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #14 from Bill Zissimopoulos --- (In reply to niXman from comment #13) > I figured out the building problem. > > it seems to work as it should for symlink, but it doesn't work for hardlink. This is good news. Unless I misunderstand

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #15 from niXman --- > There is no way to resolve a hardlink to a "real" path, all hardlinked paths > are "real". according to this link: https://stackoverflow.com/questions/10260676/programmatically-finding-the-target-of-a-windows

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #16 from niXman --- Created attachment 54264 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54264&action=edit patch the patch for `lrealpath()` for win32.

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #17 from Bill Zissimopoulos --- (In reply to niXman from comment #15) > > There is no way to resolve a hardlink to a "real" path, all hardlinked > > paths are "real". > > according to this link: > https://stackoverflow.com/question

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #18 from Bill Zissimopoulos --- (In reply to niXman from comment #16) > Created attachment 54264 [details] > patch > > the patch for `lrealpath()` for win32. Thanks for patch. Looking at it now.

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 --- Comment #4 from Tobias Burnus --- Created attachment 54265 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54265&action=edit WIP patch (with one WIP testcase) This patch should address the issues of this PR reported so far. But there

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 --- Comment #5 from Tobias Burnus --- For completeness, the C testcase to previous comment (comment 3) is as follows. Contrary to Fortran, I put a 'lastprivate' to all variables – to match the current patch (→ see (A) in comment 3). int n,m,p

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #19 from Bill Zissimopoulos --- Comment on attachment 54264 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54264 patch Many thanks for the patch. Please consider the following: LINES 144-152: I would change the CreateFile ca

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 --- Comment #6 from Jakub Jelinek --- I think there are multiple issues. For the do i = 1, 9, 1 case, the bug is that we: gfc_init_se (&se, NULL); gfc_conv_expr_val (&se, code->ext.iterator->end); gfc_add_block_to_block (pbloc

[Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 --- Comment #36 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:426a9f5570d74040176f81e7cf6806b36ebc907f commit r13-5141-g426a9f5570d74040176f81e7cf6806b36ebc907f Author: Richard Biener Date:

[Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522 --- Comment #35 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:0bf7131e539de4ca66b3c0eb72aa0afbd8f006dc commit r13-5140-g0bf7131e539de4ca66b3c0eb72aa0afbd8f006dc Author: Richard Biener Date:

[Bug driver/108350] Windows: invoking gcc via symlink does not work

2023-01-13 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #20 from Bill Zissimopoulos --- Regarding LINE 192: I would add that if somehow the path returned by GetFinalPathNameByHandle does not conform to the \\?\X: or \\?\UNC\ pattern I would fall back to GetFullPathName.

[Bug middle-end/106805] [13 Regression] Undue optimisation of floating-point comparisons

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106805 Richard Biener changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/106805] [13 Regression] Undue optimisation of floating-point comparisons

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106805 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug c/108375] [10/11/12/13 Regression] Some variably modified types not detected as such

2023-01-13 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108375 Eric Botcazou changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Commen

[Bug tree-optimization/107129] [13 Regression] False positive -Wstringop-overflow warning with -O2 or -O3 since r13-137-gee1cb43bc76de800

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107129 Richard Biener changed: What|Removed |Added Keywords||needs-bisection --- Comment #3 from Ri

[Bug analyzer/107396] [13 regression] new test case gcc.dg/analyzer/pipe-glibc.c in r13-3466-g792f039fc37faa fails with excess errors

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107396 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug c/107405] [13 Regression] enum change causing Linux kernel to fail to build due to Linux depending on old behavior

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107405 --- Comment #21 from Richard Biener --- I think this is WONTFIX on the GCC side? Maybe changes.html or porting_to.html should mention this issue.

[Bug c++/107461] [12/13 Regression] ambiguity error for friend with templated constexpr argument

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107461 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 Tobias Burnus changed: What|Removed |Added Keywords||accepts-invalid --- Comment #7 from Tob

[Bug tree-optimization/107467] [12/13 Regression] Miscompilation involing -Os , -flto and -fno-strict-aliasing since r12-656-ga564da506f52be66

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107467 Richard Biener changed: What|Removed |Added Last reconfirmed|2022-10-30 00:00:00 |2023-1-13 Priority|P3

[Bug fortran/108369] FM509 Fails to compile with error

2023-01-13 Thread ben.brewer at codethink dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 --- Comment #11 from Ben Brewer --- So I was using "-x f77" which I would expect to instruct the compiler to run in a mode compatible with Fortran 77, it seems non-intuitive to have to enable -std=legacy to compile the very tests which define f7

[Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107424 --- Comment #8 from Jakub Jelinek --- For the non-simple loops, I guess the questions are if do i = x, y, 1 is equivalent to for (i = x; i <= y; i += 1) or not (especially regarding the in C UB cases of y being above INT_MAX - 1), an

[Bug ada/107475] [10/11/12/13 Regression] libgnat fails to link libgnat.so on systems with older glibc on x86_64-linux-gnux32

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107475 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug c++/107516] [10/11/12/13 Regression] ICE with -fwide-exec-charset=latin1 since r9-2891-g5ec9f8cff333bbe9

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107516 Richard Biener changed: What|Removed |Added Priority|P3 |P2 --- Comment #3 from Richard Biener

[Bug tree-optimization/107129] [13 Regression] False positive -Wstringop-overflow warning with -O2 or -O3 since r13-137-gee1cb43bc76de800

2023-01-13 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107129 --- Comment #4 from Martin Liška --- (In reply to Richard Biener from comment #3) > We no longer warn, not sure what fixed it? r13-4598-gf8d136e50e6f82cb

[Bug c++/107532] [13 Regression] -Werror=dangling-reference false positives in libcamera-0.0.1

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug c++/107516] [10/11/12/13 Regression] ICE with -fwide-exec-charset=latin1 since r9-2891-g5ec9f8cff333bbe9

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107516 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug c/107557] [12/13 Regression] ICE -fsanitize=undefined and VLA as argument type to a function

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107557 Richard Biener changed: What|Removed |Added Priority|P3 |P2 --- Comment #4 from Richard Biener

[Bug tree-optimization/107129] [13 Regression] False positive -Wstringop-overflow warning with -O2 or -O3 since r13-137-gee1cb43bc76de800

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107129 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 107129, which changed state. Bug 107129 Summary: [13 Regression] False positive -Wstringop-overflow warning with -O2 or -O3 since r13-137-gee1cb43bc76de800 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107129 W

[Bug c++/107558] [10/11/12/13 Regression] ICE in fld_incomplete_type_of with -fmerge-all-constants and openmp and LTO since r11-16-ga2f32550a085984f

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107558 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/107561] [13 Regression] g++.dg/pr71488.C and [g++.dg/warn/Warray-bounds-16.C -m32] regression due to -Wstringop-overflow problem

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107561 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug analyzer/107565] [12/13 Regression] -Wanalyzer-use-of-uninitialized-value false positive with rdrand

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107565 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Component|target

[Bug tree-optimization/107740] [12/13 Regression] if-to-switch conversion happens for simple predicate function when compiled with gcc but not with g++

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107740 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/108197] [12/13 Regression] -Wstringop-overread emitted on simple boost small_vector code

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108197 --- Comment #3 from Richard Biener --- (In reply to Stephen from comment #2) > Richard, are you saying this a bug in the boost code? It's not quite clear > to me from your message. Can you be more specific about what the bug is in > that case?

[Bug rtl-optimization/108274] [13 Regression] ICE in df_refs_verify during arm_reorg pass with -fipa-icf

2023-01-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108274 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #1 from Jonathan Wakely --- (In reply to jinci kang from comment #0) > * The reason is that clang does not define the macro > __cpp_sized_deallocation. Well then that's a clang bug. It shouldn't be trying to use sized delete if it h

[Bug middle-end/88345] -Os overrides -falign-functions=N on the command line

2023-01-13 Thread mark at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88345 --- Comment #11 from Mark Rutland --- Further, at `-O1` and above GCC seems to silently drop the alignment of any implementation of abort(), apparently implicitly marking it as cold. I assume that may be true for other special functions. For ex

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #2 from Jonathan Wakely --- Oh clang isn't using it, you're using it explicitly. So then that's a bug in your code. You shouldn't use it unless the macro is defined to say that it's usable.

[Bug modula2/108344] Many tests time out: isatty called in a tight loop

2023-01-13 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108344 --- Comment #1 from ro at CeBiTec dot Uni-Bielefeld.DE --- To gather more information, I've tried a -g3 -O0 build. The failures still occur, but the failure mode is slightly different: all the 64-bit tests in gm2/iso/pass now SEGV in cc1gm2: C

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #3 from jinci kang --- (In reply to Jonathan Wakely from comment #2) > Oh clang isn't using it, you're using it explicitly. So then that's a bug in > your code. You shouldn't use it unless the macro is defined to say that it's > usab

[Bug ipa/108383] g++ ICE with -O3 and -flto and -fdeclone-ctor-dtor on simple function

2023-01-13 Thread eebssk1 at godaftwithebk dot pub via Gcc-bugs
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.

[Bug tree-optimization/108377] Unexpected 'exceeds maximum object size' diagnostic, wrong-code?

2023-01-13 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108377 --- Comment #4 from Thomas Schwinge --- Thanks, Andrew, for looking into this. (In reply to Andrew Pinski from comment #2) > If calc_n(259) returns (__SIZE_TYPE__)-1 (aka 18446744073709551615) [...] > the warning is correct ([...]) in some sens

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #5 from jinci kang --- (In reply to Jakub Jelinek from comment #4) > No, but: > #include > > int main() { > void* p = ::operator new[](2); > #if __cpp_sized_deallocation >= 201309 > ::operator delete[](p, 2); > #else > ::oper

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-13 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #29 from Aldy Hernandez --- (In reply to Jakub Jelinek from comment #27) > "elide an overflow" should be probably "elide an overflow or division by > zero" I think, > because finite / 0.0 returns infinity and raises FE_DIVBYZERO rath

[Bug ipa/108383] g++ ICE with -O3 and -flto and -fdeclone-ctor-dtor on simple function

2023-01-13 Thread eebssk1 at godaftwithebk dot pub via Gcc-bugs
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 src/dxgi/dxgi.dll.p/dxgi_enums.cpp.

[Bug tree-optimization/108392] New: Unexpected optimization in presence of '__attribute__((noipa))'

2023-01-13 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108392 Bug ID: 108392 Summary: Unexpected optimization in presence of '__attribute__((noipa))' Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/107608] [13 Regression] Failure on fold-overflow-1.c and pr95115.c

2023-01-13 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 Aldy Hernandez changed: What|Removed |Added Attachment #54253|0 |1 is obsolete|

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 Jonathan Wakely changed: What|Removed |Added Resolution|--- |MOVED Status|UNCONFIRMED

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #7 from Jakub Jelinek --- Grep shows that clang predefines that macro if -fsized-deallocation is used. But why that option doesn't default to on for C++14 is hard to understand.

[Bug libstdc++/108331] [13 Regression] ABI break of std::__c_file and std::fstream for win32 thread model of GCC for windows

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108331 --- Comment #6 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:e2fc12a5dafadf15d804e1d2541528296e97a847 commit r13-5143-ge2fc12a5dafadf15d804e1d2541528296e97a847 Author: Jonathan Wakely Date:

[Bug libstdc++/86419] codecvt::in() and out() incorrectly return ok in some cases.

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86419 --- Comment #14 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:02dab998665dda0f6df31740e8897c42de3d740f commit r13-5144-g02dab998665dda0f6df31740e8897c42de3d740f Author: Dimitrij Mijoski Date

[Bug libstdc++/108331] [13 Regression] ABI break of std::__c_file and std::fstream for win32 thread model of GCC for windows

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108331 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #8 from jinci kang --- (In reply to Jakub Jelinek from comment #7) > Grep shows that clang predefines that macro if -fsized-deallocation is used. > But why that option doesn't default to on for C++14 is hard to understand. Clang has

[Bug libstdc++/86419] codecvt::in() and out() incorrectly return ok in some cases.

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86419 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |13.0 Status|NEW

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #9 from jinci kang --- This issue can be closed, but I don't know how to close this, can you help me to close it.Thanks.

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #10 from Jonathan Wakely --- I've already closed it

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #11 from jinci kang --- OK redi at gcc dot gnu.org 于2023年1月13日周五 21:53写道: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 > > --- Comment #10 from Jonathan Wakely --- > I've already closed it > > -- > You are receiving this

[Bug c++/108393] New: circular concept false-positive

2023-01-13 Thread nikolasklauser at berlin dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108393 Bug ID: 108393 Summary: circular concept false-positive Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug target/107131] [11/12/13 Regression] wrong code with -Os -fno-ipa-vrp -fno-tree-bit-ccp

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107131 --- Comment #7 from Jakub Jelinek --- If I change the testcase to: /* PR target/107131 */ /* { dg-do run } */ /* { dg-options "-Os -fno-ipa-vrp -fno-tree-bit-ccp -Wno-psabi" } */ typedef unsigned char C; typedef unsigned long long __attribute__

[Bug tree-optimization/108392] Unexpected optimization in presence of '__attribute__((noipa))'

2023-01-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108392 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #12 from Jonathan Wakely --- (In reply to jinci kang from comment #8) > Clang has a problem with ABI breaking. > https://reviews.llvm.org/D8467 Ah yes. The most recent attempt to fix it is at: https://reviews.llvm.org/D112921

[Bug testsuite/108394] New: aarch64/cpunative/native_cpu_18.c fails in GCC 11 and 12

2023-01-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
/aarch64/cpunative/native_cpu_18.c scan-assembler \\.arch armv8.6-a\\+crc\\+fp16\\+aes\\+sha3\\+rng === gcc Summary === # of expected passes1 # of unexpected failures1 /home/polacek/x/trunk/gcc/xgcc version 12.2.1 20230113 (GCC) # GCC_CPUINFO=info_18 gcc -mcpu

[Bug c/108395] New: [C2x] Bogus -Wunused-but-set-variable when returning constexpr variable

2023-01-13 Thread pexu--- via Gcc-bugs
-but-set-variable. Using version `13.0.0 20230113 (experimental)'. # echo 'int f() { constexpr int v = 0; return v; }' | gcc -c -xc -std=c2x -Wall -Wextra - : In function 'f': :1:25: warning: variable 'v' set but not used [-Wunused-but-set-variable] As a

[Bug fortran/108369] FM509 Fails to compile with error

2023-01-13 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 --- Comment #12 from Steve Kargl --- On Fri, Jan 13, 2023 at 11:49:44AM +, ben.brewer at codethink dot co.uk wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 > > --- Comment #11 from Ben Brewer --- > So I was using "-x f77" whi

[Bug libstdc++/108391] '::operator delete(void*, size_t)' was not found when clang compiled libstdc++

2023-01-13 Thread jincikang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108391 --- Comment #13 from jinci kang --- (In reply to Jonathan Wakely from comment #12) > (In reply to jinci kang from comment #8) > > Clang has a problem with ABI breaking. > > https://reviews.llvm.org/D8467 > > Ah yes. The most recent attempt to f

[Bug c++/108393] circular concept false-positive

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108393 --- Comment #1 from Jonathan Wakely --- The concept C checks whether S satisfies the constraint for the iterator_traits specialization. That performs ADL for operator== with S and unreachable_sentinel_t as associated classes. That finds the hidd

[Bug c++/108393] circular concept false-positive

2023-01-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108393 --- Comment #2 from Jonathan Wakely --- Specifically, ADL for __t == __u finds this function: template friend constexpr bool operator==(unreachable_sentinel_t, const _Iter&) noexcept; making it an overload resolution candidate. It's not vi

[Bug target/108396] New: PPCLE: vec_vsubcuq missing

2023-01-13 Thread jens.seifert at de dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108396 Bug ID: 108396 Summary: PPCLE: vec_vsubcuq missing Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target As

[Bug target/107131] [11/12/13 Regression] wrong code with -Os -fno-ipa-vrp -fno-tree-bit-ccp

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107131 Jakub Jelinek changed: What|Removed |Added CC||hjl.tools at gmail dot com,

[Bug c++/108393] circular concept false-positive

2023-01-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108393 Patrick Palka changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/107131] [11/12/13 Regression] wrong code with -Os -fno-ipa-vrp -fno-tree-bit-ccp

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107131 --- Comment #9 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:254cf9552ffb1693f0bc74f6d25601dafafbc144 commit r13-5150-g254cf9552ffb1693f0bc74f6d25601dafafbc144 Author: Jakub Jelinek Date: F

[Bug target/107131] [11/12 Regression] wrong code with -Os -fno-ipa-vrp -fno-tree-bit-ccp

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107131 Jakub Jelinek changed: What|Removed |Added Summary|[11/12/13 Regression] wrong |[11/12 Regression] wrong

[Bug tree-optimization/108397] New: Missed optimization with [0, 0][-1U,-1U] range arithmetics

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108397 Bug ID: 108397 Summary: Missed optimization with [0, 0][-1U,-1U] range arithmetics Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: wrong-code

[Bug middle-end/106805] [13 Regression] Undue optimisation of floating-point comparisons

2023-01-13 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106805 --- Comment #8 from Vincent Lefèvre --- Isn't it the same as PR56020, which is due to the fact that the STDC FENV_ACCESS pragma is not implemented and assumed to be OFF (PR34678)?

[Bug ipa/108250] [12/13 regression] llvm-tblgen miscompiled on powerpc-unknown-linux-gnu since r12-5383-g22c242342e38eb

2023-01-13 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108250 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org --- Comm

[Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc

2023-01-13 Thread jdx at o2 dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108221 --- Comment #19 from Jan Dubiec --- (In reply to Jonathan Wakely from comment #17) > (but I still get the assembler errors for h8300-elf using > latest binutils). This is strange. I have just successfully built binutils edf64cd2 and then gcc 42

[Bug fortran/108369] FM509 Fails to compile with error

2023-01-13 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 --- Comment #13 from Jerry DeLisle --- Created attachment 54267 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54267&action=edit FM509 that I have here. This morning I also recall there was one NIST test that had an error. I contacted the

[Bug c++/108285] [13 Regression] error: conversion from ‘long double’ to ‘double’ may change value [-Werror=float-conversion] since r13-3291-g16ec267063c8ce60

2023-01-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108285 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:3456db4de8940235b303ca38a689353854c9239f commit r13-5152-g3456db4de8940235b303ca38a689353854c9239f Author: Jakub Jelinek Date: F

[Bug c++/108285] [13 Regression] error: conversion from ‘long double’ to ‘double’ may change value [-Werror=float-conversion] since r13-3291-g16ec267063c8ce60

2023-01-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108285 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

  1   2   >