[Bug c/106823] New: #pragma GCC diagnostic ignored "-Wattribute-warning" doesn't work for -flto

2022-09-03 Thread jiangning.liu at amperecomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106823 Bug ID: 106823 Summary: #pragma GCC diagnostic ignored "-Wattribute-warning" doesn't work for -flto Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/106822] "Boolean-or" optimization opportunity not consistently used

2022-09-03 Thread benjamin.meier70 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106822 --- Comment #3 from Benjamin B. Meier --- > The reason for the difference is because in the case where there is an int in > the structure, the alignment is 4 bytes so a 2 or 4 byte read for a and b > will not cause an fault while in the first

[Bug tree-optimization/106822] "Boolean-or" optimization opportunity not consistently used

2022-09-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106822 --- Comment #2 from Andrew Pinski --- The reason for the difference is because in the case where there is an int in the structure, the alignment is 4 bytes so a 2 or 4 byte read for a and b will not cause an fault while in the first case where

[Bug c/106822] "Boolean-or" optimization opportunity not consistently used

2022-09-03 Thread benjamin.meier70 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106822 --- Comment #1 from Benjamin B. Meier --- It might also be worth to note that the following code always compiles without any jumps: bool f2(const MyStruct *s) { return s->a | s ->b; }

[Bug c/106822] New: "Boolean-or" optimization opportunity not consistently used

2022-09-03 Thread benjamin.meier70 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106822 Bug ID: 106822 Summary: "Boolean-or" optimization opportunity not consistently used Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug other/106814] [13 regression] r13-2266-g8bb1df032cc080 breaks some mpfr tests

2022-09-03 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106814 --- Comment #8 from seurer at gcc dot gnu.org --- I tried dae8b9e2bbb6017bf90d68c7b720c500125c8295, r13-2390-gdae8b9e2bbb601 and I am still seeing the failures.

[Bug c++/106820] internal compiler error: in function_and_variable_visibility [for std::dynamic_pointer_cast use via module]

2022-09-03 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106820 --- Comment #1 from Mark Millard --- (In reply to Mark Millard from comment #0) > Failing command sequence (from a FreeBSD context) for a reduced/small test > case: > > // g++12 -std=c++20 -fmodules-ts -xc++-system-header memory > // g++12

[Bug c++/103499] C++20 modules error: invalid use of non-static member function

2022-09-03 Thread markmigm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103499 --- Comment #2 from Mark Millard --- (In reply to Mark Millard from comment #1) > // g++12 -std=c++20 -fmodules-ts -xc++ -c gpp12_module_iostream_failure.cppm > // g++12 -freport-bug -std=c++20 -fmodules-ts -c >

[Bug fortran/100245] ICE on automatic reallocation

2022-09-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100245 --- Comment #5 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:504424f33771be0405454e7845219d5df1bb88bb commit r13-2391-g504424f33771be0405454e7845219d5df1bb88bb Author: José Rui Faustino de

[Bug tree-optimization/91645] Missed optimization with sqrt(x*x)

2022-09-03 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91645 --- Comment #8 from Jeffrey A. Law --- First, there's magic bits which turn a standard sqrt call into something like if (exceptional condition) call libm's sqrt else use hardware sqrt The primary goal is to get errno set properly for those

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #6 from Jakub Jelinek --- You can get a NaN with negative sign e.g. through copysign (__builtin_nan (""), -1.0).

[Bug tree-optimization/91645] Missed optimization with sqrt(x*x)

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91645 Aldy Hernandez changed: What|Removed |Added CC||aldyh at gcc dot gnu.org,

[Bug other/106814] [13 regression] r13-2266-g8bb1df032cc080 breaks some mpfr tests

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106814 --- Comment #7 from Aldy Hernandez --- (In reply to Aldy Hernandez from comment #6) > This may be a DUP of 106819. Does the patch in it solve this PR? Patch committed upstream btw...

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 Aldy Hernandez changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #4 from Aldy Hernandez --- (In reply to Jakub Jelinek from comment #1) > Global Exported: iftmp.2_6 = [frange] double [0.0, 0.0] !SIGN > Folding PHI node: iftmp.2_6 = PHI <0.0(4), Nan(5)> > Queued PHI for removal. Folds to: 0.0 >

[Bug other/106814] [13 regression] r13-2266-g8bb1df032cc080 breaks some mpfr tests

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106814 Aldy Hernandez changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 --- Comment #3 from Aldy Hernandez --- Created attachment 53532 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53532=edit patch in testing

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-03 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 Aldy Hernandez changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gnu.org

[Bug middle-end/106819] [13 Regression] NaN != NaN comparisons return false at -O2 since r13-2338

2022-09-03 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106819 Jakub Jelinek changed: What|Removed |Added Target Milestone|--- |13.0 Priority|P3

[Bug fortran/106817] clobber ordering problem when an actual intent(in) argument depends on the value of an intent(out) argument

2022-09-03 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106817 Mikael Morin changed: What|Removed |Added Last reconfirmed||2022-09-03 Ever confirmed|0