[Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905

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

[Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-11-04 Ever confirmed|0

[Bug ipa/103073] [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578 since r12-4401-gfecd145359fc981b

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

[Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p with -O1 -frounding-math and int to float conversion with multiply

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug middle-end/102464] Miss optimization for (_Float16) sqrtf ((float) f16)

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102464 --- Comment #11 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:22ce7382fccc15ce2355306b3f5be7afc00f81f4 commit r12-4881-g22ce7382fccc15ce2355306b3f5be7afc00f81f4 Author: liuhongt Date: Wed Nov

[Bug target/101989] Fail to optimize (a & b) | (c & ~b) to vpternlog instruction.

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101989 --- Comment #7 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:bc9c8e5f8af08c513a4a4c329c50ba6559ff6d5c commit r12-4882-gbc9c8e5f8af08c513a4a4c329c50ba6559ff6d5c Author: liuhongt Date: Wed Nov

[Bug tree-optimization/103072] Folding common switch code

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

[Bug target/71617] rs6000.c:8483:32: warning: comparison is always true due to limited range of data type [-Wtype-limits]

2021-11-04 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71617 Mathieu Malaterre changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

gcc-bugs@gcc.gnu.org

2021-11-04 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68891 --- Comment #1 from Mathieu Malaterre --- Here is the output from clang++: error: cannot specify any part of a return type in the declaration of a conversion function; use a typedef to declare a conversion to 'double (&)[3]' % clang++ --versio

[Bug web/103077] New: This flag is enabled by default at -O3 and by -ftree-vectorize

2021-11-04 Thread mathieu.malaterre at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103077 Bug ID: 103077 Summary: This flag is enabled by default at -O3 and by -ftree-vectorize Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/103077] [12 Regression] -ftree-loop-vectorize and -ftree-slp-vectorize are enabled at -O2 but their documentation says they are only enabled at -O3 and above

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103077 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-11-04 Status|UNCONFIRM

[Bug c++/103078] New: ICE canonical types differ for identical types since r12-1822-gf9c80eb12c58126a

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103078 Bug ID: 103078 Summary: ICE canonical types differ for identical types since r12-1822-gf9c80eb12c58126a Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords

[Bug c++/103078] [11/12 Regression] ICE canonical types differ for identical types since r12-1822-gf9c80eb12c58126a

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103078 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work|

[Bug c++/103078] [11/12 Regression] ICE canonical types differ for identical types since r12-1822-gf9c80eb12c58126a

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

[Bug c++/101715] [11/12 Regression] ICE with noexcept and canonical types differ for identical types

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101715 Andrew Pinski changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #

[Bug tree-optimization/103062] [12 Regression] ICE: SIGSEGV in gimple_simplify_CONVERT_EXPR with -O2 -fno-tree-forwprop since r12-4694-gcb153222404e2e14

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103062 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug c++/101715] [11/12 Regression] ICE with noexcept and canonical types differ for identical types

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101715 --- Comment #11 from Martin Liška --- @Marek: Can you please take a look?

[Bug tree-optimization/103063] [9/10/11/12 Regression] Wrong code while using -O3 since r7-2373-g69b806f6a60efcf1

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103063 Richard Biener changed: What|Removed |Added Priority|P3 |P2 CC|

[Bug target/103074] [11/12 Regression] ICE in lra_assign, at lra-assigns.c:1649 since r11-5066-gbe39636d9f68c437

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103074 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org,

[Bug middle-end/103071] Missed optimization for symmetric subset: (a & b) == a || (a & b) == b

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103071 --- Comment #1 from Richard Biener --- So a _Bool EitherIsSubset (unsigned long v0, unsigned long v1) { return (v0 & v1) == v0 || (v0 & v1) == v1; } is compiled to EitherIsSubset: .LFB0: .cfi_startproc movq%rdi, %rdx

[Bug tree-optimization/103072] Folding common switch code

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103072 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-11-04 Status|UNCONFIR

[Bug ipa/103073] [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578 since r12-4401-gfecd145359fc981b

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103073 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug target/103074] [11/12 Regression] ICE in lra_assign, at lra-assigns.c:1649 since r11-5066-gbe39636d9f68c437

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103074 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---

[Bug middle-end/103071] Missed optimization for symmetric subset: (a & b) == a || (a & b) == b

2021-11-04 Thread steinar+gcc at gunderson dot no via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103071 --- Comment #2 from Steinar H. Gunderson --- EitherIsSubset() in the example calls foo or bar (but with a redundant test that I can't get easily rid of). I agree that if you just return 0/1, the cmp+sete+or variant is probably as good, but that'

[Bug tree-optimization/103076] slp vectorizer failed to try smaller size for generic vectors with word_mode

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103076 Richard Biener changed: What|Removed |Added Summary|slp vectorizer failed to|slp vectorizer failed to

[Bug libstdc++/102912] [12 Regression] Not full support of const arguments in std::variant

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102912 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:7551a9957437f20254be41d396962b9ccc46cee6 commit r12-4888-g7551a9957437f20254be41d396962b9ccc46cee6 Author: Jonathan Wakely Date:

[Bug tree-optimization/103079] New: wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs)

2021-11-04 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
--enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20211104 (experimental) [master r12-4879-g3fd0723f0a3] (GCC) [603] % [603] % gcctk -O1 small.c; ./a.out [604] % [604] % gcctk -Os small.c [605] % timeout -s 9 10 ./a.out Killed

gcc-bugs@gcc.gnu.org

2021-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68891 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug libstdc++/102912] [12 Regression] Not full support of const arguments in std::variant

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

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 Martin Liška changed: What|Removed |Added Summary|wrong code at -Os and -O2 |[12 Regression] wrong code

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 Martin Liška changed: What|Removed |Added Keywords||wrong-code See Also|

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #3 from Andrew Pinski --- The problem is latent though. The issue is reassociatation introduces an unconditional use of an uninitilized vairable: Before if (b.1_3 != 0) goto ; [34.00%] else goto ; [66.00%] [local coun

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > The problem is latent though. The issue is reassociatation introduces an > unconditional use of an uninitilized vairable: Whoops that is not the issue here thou

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #5 from Martin Liška --- > static int c() { > if (b) > return b; > } Yes, one can use the return value as long as the function returns a value. This means, c() can be used iff b != 0.

[Bug fortran/102460] fortran internal compile error in coverage.c

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102460 Martin Liška changed: What|Removed |Added Assignee|marxin at gcc dot gnu.org |unassigned at gcc dot gnu.org --

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #6 from Andrew Pinski --- VRP2: Predicate evaluates to: DON'T KNOW Matching expression match.pd:1972, gimple-match.c:819 Matching expression match.pd:1975, gimple-match.c:892 Matching expression match.pd:1982, gimple-match.c:952 Not

[Bug ipa/103073] [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578 since r12-4401-gfecd145359fc981b

2021-11-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103073 Jan Hubicka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |hubicka at gcc dot gnu.org

[Bug other/103011] fatal error: process.h: No such file or directory when canadian compile x86_64-w64-mingw32

2021-11-04 Thread pexu--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103011 --- Comment #8 from Pekka S --- Created attachment 51734 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51734&action=edit For CPP_FOR_BUILD use $(CC_FOR_BUILD) -E instead of $(CPP). The problem is that when $(CPP) is not defined it is set

[Bug testsuite/103051] [12 regression] new test case gcc.dg/vect/tsvc/vect-tsvc-s112.c fails in r12-4840

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103051 --- Comment #4 from Martin Liška --- All right, so I would ideally use: /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { has_arch_pwr7 } } } } */ but I see the following problem with detection of the target: 78 E

[Bug tree-optimization/103062] [12 Regression] ICE: SIGSEGV in gimple_simplify_CONVERT_EXPR with -O2 -fno-tree-forwprop since r12-4694-gcb153222404e2e14

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103062 --- Comment #2 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:bb27f5e9ec3c7ab0f5c859d90c59dd4573b53d97 commit r12-4891-gbb27f5e9ec3c7ab0f5c859d90c59dd4573b53d97 Author: Aldy Hernandez Date:

[Bug tree-optimization/103062] [12 Regression] ICE: SIGSEGV in gimple_simplify_CONVERT_EXPR with -O2 -fno-tree-forwprop since r12-4694-gcb153222404e2e14

2021-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103062 Aldy Hernandez changed: What|Removed |Added CC||aldyh at gcc dot gnu.org Resol

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-11-04 Thread jbeulich at suse dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 jbeulich at suse dot com changed: What|Removed |Added CC||jbeulich at suse dot com ---

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #7 from Richard Biener --- === BB 2 Imports: b.0_1 t_4(D) Exports: b.0_1 t_4(D) _6 _6 : b.0_1(I) t_4(D)(I) t_4(D) UNDEFINED [local count: 176285970]: b.0_1 = b; _6 = b.0_1 | t_4(D);

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #8 from Richard Biener --- Btw, I find the vrp-details dump not really useful with all the ranger "debug" appearing _after_ the folding of stmts. Can we instead have this somehow interleaved?

[Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p with -O1 -frounding-math and int to float conversion with multiply

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d13603501680fcdbb933cb086cd01fcc39be1908 commit r12-4898-gd13603501680fcdbb933cb086cd01fcc39be1908 Author: Richard Biener Date:

[Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p with -O1 -frounding-math and int to float conversion with multiply

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

[Bug tree-optimization/103072] Folding common switch code

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103072 --- Comment #2 from Martin Liška --- Or we can alternatively merge all the case blocks into one..

[Bug target/101981] GCC10 produces bigger asm for simple switch than GCC7 - cortexM4 since r8-2701-g9dc3d6a96167b4c8

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101981 Martin Liška changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEW

[Bug testsuite/103042] gcc.dg/vect/complex/bb-slp-complex-add-pattern-unsigned-long.c etc. FAIL

2021-11-04 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103042 Tamar Christina changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #9 from Andrew Macleod --- Created attachment 51735 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51735&action=edit patch for the undefined bit (In reply to Richard Biener from comment #7) > === BB 2 > Im

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #10 from Andrew Macleod --- That patch wont generally work until rangeops op1_range routines are adjusted to deal with undefined being passed in.. I think it assumes until now that its been trimmed out. (In reply to Richard Biener

[Bug testsuite/103042] gcc.dg/vect/complex/bb-slp-complex-add-pattern-unsigned-long.c etc. FAIL

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103042 --- Comment #3 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:5914a7b5c637c9007283226f200dcab8b745abc8 commit r12-4900-g5914a7b5c637c9007283226f200dcab8b745abc8 Author: Tamar Christina Date:

[Bug ipa/103080] New: LTO alters the ordering of static constructors/destructors in pass_ipa_cdtor_merge.

2021-11-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103080 Bug ID: 103080 Summary: LTO alters the ordering of static constructors/destructors in pass_ipa_cdtor_merge. Product: gcc Version: 12.0 Status: UNCONFIRMED Seve

[Bug testsuite/103042] gcc.dg/vect/complex/bb-slp-complex-add-pattern-unsigned-long.c etc. FAIL

2021-11-04 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103042 Tamar Christina changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ipa/103080] LTO alters the ordering of static constructors/destructors in pass_ipa_cdtor_merge.

2021-11-04 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103080 --- Comment #1 from hubicka at kam dot mff.cuni.cz --- The cdtor merging code is predating LTO - it is also used for collect2 path on targets w/o cdtor sections. I guess the DECL_UID compare is not very safe things to do since it depends on the

[Bug c++/103081] New: [ICE] with "using enum"

2021-11-04 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103081 Bug ID: 103081 Summary: [ICE] with "using enum" Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee

[Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 --- Comment #15 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:5ea1ce43b6070aaa94882e8b15f3340344aaa6b2 commit r12-4903-g5ea1ce43b6070aaa94882e8b15f3340344aaa6b2 Author: Aldy Hernandez Date:

[Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 --- Comment #16 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:e4411622690654cdc530c6262c7115a9e15dc359 commit r12-4904-ge4411622690654cdc530c6262c7115a9e15dc359 Author: Aldy Hernandez Date:

[Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 --- Comment #17 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:6a9678f0b30d36ae13259ad635e175a1e24917a1 commit r12-4905-g6a9678f0b30d36ae13259ad635e175a1e24917a1 Author: Aldy Hernandez Date:

[Bug tree-optimization/103072] Folding common switch code

2021-11-04 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103072 --- Comment #3 from Jeremy R. --- (In reply to Jakub Jelinek from comment #1) > So maybe the switchconv pass could be > improved not to do just the linear etc. expression handling, but also > consider code sequences that are the same except for

[Bug c++/103081] [ICE] with "using enum"

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103081 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug ipa/103080] LTO alters the ordering of static constructors/destructors in pass_ipa_cdtor_merge.

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103080 --- Comment #2 from Richard Biener --- IIRC there is also an older bug about CTOR/DTOR order across multiple TUs where with -flto be behave differently than without where I said it might be nice to preserve linker command line order (we have tha

[Bug c++/103081] [ICE] with "using enum"

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103081 --- Comment #2 from Marek Polacek --- Started with r11-5003.

[Bug c++/103081] [ICE] with "using enum"

2021-11-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103081 --- Comment #3 from Richard Biener --- Confirmed on the GCC 11 branch head and trunk. clang complains: > clang++-11 -S t.C -std=c++20 t.C:4:9: error: expected unqualified-id using enum Pig; ^ t.C:10:18: error: no member named 'OINK'

[Bug ipa/103082] New: [12 Regression] gcc/poly-int.h:1162:5: runtime error: left shift of negative value -40

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103082 Bug ID: 103082 Summary: [12 Regression] gcc/poly-int.h:1162:5: runtime error: left shift of negative value -40 Product: gcc Version: 12.0 Status: UNCONFIRMED S

[Bug ipa/103082] [12 Regression] gcc/poly-int.h:1162:5: runtime error: left shift of negative value -40

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103082 Martin Liška changed: What|Removed |Added Known to fail||12.0 Target Milestone|---

[Bug c++/101715] [11/12 Regression] ICE with noexcept and canonical types differ for identical types

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101715 --- Comment #12 from Marek Polacek --- OK, I'd totally forgotten about this PR.

[Bug ipa/103080] LTO alters the ordering of static constructors/destructors in pass_ipa_cdtor_merge.

2021-11-04 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103080 --- Comment #3 from Iain Sandoe --- (In reply to hubicka from comment #1) > The cdtor merging code is predating LTO - it is also used for collect2 > path on targets w/o cdtor sections. Even so, I do not see how it can work there either*** - wit

[Bug c++/103081] [ICE] with "using enum"

2021-11-04 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103081 --- Comment #4 from M Welinder --- That version of clang does not do "using enum" at all. clang 13 accepts this code, but it has other issues with "using enum".

[Bug ipa/103083] New: Wrong code due to ipa-cp's value range propagation

2021-11-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103083 Bug ID: 103083 Summary: Wrong code due to ipa-cp's value range propagation Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 Aldy Hernandez changed: What|Removed |Added Depends on||103058 --- Comment #18 from Aldy Herna

[Bug ipa/103083] [10/11/12 Regression] Wrong code due to ipa-cp's value range propagation since r10-5538-gc7ac9a0c7e3916f1

2021-11-04 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103083 Martin Liška changed: What|Removed |Added Summary|Wrong code due to ipa-cp's |[10/11/12 Regression] Wrong

[Bug ipa/103083] [10/11/12 Regression] Wrong code due to ipa-cp's value range propagation since r10-5538-gc7ac9a0c7e3916f1

2021-11-04 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103083 Martin Jambor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jamborm at gcc dot gnu.org

[Bug ipa/103058] [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r

2021-11-04 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 --- Comment #4 from hubicka at kam dot mff.cuni.cz --- Hi, I am testing the following to unbreak fortran. However the real bug is that binds_to_current_def should work on whole WPA and be independent of partitioning. I remember I had patch fixin

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-11-04 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 --- Comment #4 from Martin Sebor --- The expression pa->c is only valid if pa points to a valid object.

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-11-04 Thread jbeulich at suse dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 --- Comment #5 from jbeulich at suse dot com --- (In reply to Martin Sebor from comment #4) > The expression pa->c is only valid if pa points to a valid object. Well, yes, you may not deref pa if it's NULL, i.e. I agree for pa->c. But is &pa->c

[Bug ipa/103058] [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 --- Comment #5 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:d3f7a2fa64f8777cb7eae1b99ff80fbe717095ac commit r12-4914-gd3f7a2fa64f8777cb7eae1b99ff80fbe717095ac Author: Jan Hubicka Date: Thu N

[Bug target/102961] Build fails for AIX 6.1

2021-11-04 Thread John.Parke at alebra dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102961 --- Comment #3 from John Parke --- I think the problem is caused by: >> 0711-738 ERROR: Input file /usr/gcc-11.2.0-build/./gcc/ppc64/crtcxa_s.o: See below: XCOFF32 object files are not allowed in 64-bit mode. # @multilib_flags@ is sti

[Bug c/102967] confusing location in -Waddress for a subexpression of a ternary expression

2021-11-04 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 --- Comment #6 from Andreas Schwab --- &*E is allowed for E == NULL, but I don't think this can be generalized to &E->m.

[Bug ipa/103082] [12 Regression] gcc/poly-int.h:1162:5: runtime error: left shift of negative value -40

2021-11-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103082 Jan Hubicka changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

Re: [Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-04 Thread Jan Hubicka via Gcc-bugs
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 > > Aldy Hernandez changed: > >What|Removed |Added > > Depends on||103058 > > --- Comment #

[Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-04 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 --- Comment #19 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 > > Aldy Hernandez changed: > >What|Removed |Added >

[Bug fortran/103058] [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r

2021-11-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 Jan Hubicka changed: What|Removed |Added Component|ipa |fortran --- Comment #6 from Jan Hubicka

[Bug ipa/103073] [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578 since r12-4401-gfecd145359fc981b

2021-11-04 Thread vsevolod.livinskij at frtk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103073 --- Comment #4 from Vsevolod Livinskiy --- (In reply to Martin Liška from comment #2) > Started with r12-4401-gfecd145359fc981b. > > @Vsevolod: Is it a yarpgen test-case? Yes. I've added stencil support recently, but it was a surprise to trigg

[Bug c++/103084] New: Accepts invalid using enum declaration with an invalid elaborated-type-specifier

2021-11-04 Thread aaron at aaronballman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103084 Bug ID: 103084 Summary: Accepts invalid using enum declaration with an invalid elaborated-type-specifier Product: gcc Version: 12.0 Status: UNCONFIRMED Severit

[Bug ipa/93385] [10/11 Regression] wrong code with u128 modulo at -O2 -fno-dce -fno-ipa-cp -fno-tree-dce

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385 --- Comment #48 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:1ece90ffa9ce63b416296bd662b8117d9b538913 commit r12-4920-g1ece90ffa9ce63b416296bd662b8117d9b538913 Author: Martin Jambor Date: T

[Bug c++/103084] Accepts invalid using enum declaration with an invalid elaborated-type-specifier

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103084 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/103085] New: [12 Regression] -fPIC and -fstack-protector-strong broken AArch64

2021-11-04 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103085 Bug ID: 103085 Summary: [12 Regression] -fPIC and -fstack-protector-strong broken AArch64 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 --- Comment #11 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:004afb984beb6efbe25f44a5857b1c27ebc2ec82 commit r12-4921-g004afb984beb6efbe25f44a5857b1c27ebc2ec82 Author: Andrew MacLeod Date:

[Bug tree-optimization/103079] [12 Regression] wrong code at -Os and -O2 on x86_64-linux-gnu (the generated code hangs) since r12-4871-g502ffb1f389011b2

2021-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libstdc++/103086] New: [11/12 Regression] std::unique_ptr printer gets confused by [[no_unique_address]] in tuple

2021-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103086 Bug ID: 103086 Summary: [11/12 Regression] std::unique_ptr printer gets confused by [[no_unique_address]] in tuple Product: gcc Version: 11.2.1 Status: UNCONFIRMED

[Bug libstdc++/103086] [11/12 Regression] std::unique_ptr printer gets confused by [[no_unique_address]] in tuple

2021-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103086 Jonathan Wakely changed: What|Removed |Added Known to fail||11.2.1, 12.0 Target Milestone|---

[Bug c++/103087] New: "using enum" possibly incorrectly accepted

2021-11-04 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103087 Bug ID: 103087 Summary: "using enum" possibly incorrectly accepted Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/103087] "using enum" possibly incorrectly accepted

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103087 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Res

[Bug c++/103084] Accepts invalid using enum declaration with an invalid elaborated-type-specifier

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103084 Marek Polacek changed: What|Removed |Added CC||terra at gnome dot org --- Comment #2 f

[Bug ada/103070] [12 regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669

2021-11-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103070 Jan Hubicka changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug ipa/103073] [12 Regression] ICE in insert_access, at ipa-modref-tree.h:578 since r12-4401-gfecd145359fc981b

2021-11-04 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103073 Jan Hubicka changed: What|Removed |Added CC||rguenther at suse dot de --- Comment #5 f

[Bug c++/103084] Accepts invalid using enum declaration with an invalid elaborated-type-specifier

2021-11-04 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103084 --- Comment #3 from M Welinder --- I actually think gcc is right there. http://eel.is/c++draft/dcl.type.elab#nt:elaborated-enum-specifier There are requirements for elaborated-type-specifier, but none for elaborated-enum-specifier. It's a se

[Bug target/103028] ICE in extract_constrain_insn, at recog.c:2670

2021-11-04 Thread krebbel at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103028 --- Comment #3 from Andreas Krebbel --- So I think what is needed is something like this: diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 017944f4f79a..1f5b9476ac2e 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -4341,7 +4341,8 @@ find_if_header (b

[Bug c++/103084] Accepts invalid using enum declaration with an invalid elaborated-type-specifier

2021-11-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103084 --- Comment #4 from Marek Polacek --- But elaborated-enum-specifier is an elaborated-type-specifier, so [dcl.type.elab]#6 should still apply, right?

  1   2   >