[Bug rtl-optimization/108461] '-fcompare-debug' failure (length) w/ -mcpu=e500mc -O2 -ftrapv -fno-expensive-optimizations -fno-guess-branch-probability -fno-tree-dce -fno-tree-dse

2023-01-18 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108461 --- Comment #1 from Arseny Solokha --- Created attachment 54304 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54304&action=edit gkd diff w/ -m64 Compiling w/ -m64 instead of -m32 yields the attached gkd diff. This PR can be actually a d

[Bug rtl-optimization/108461] New: '-fcompare-debug' failure (length) w/ -mcpu=e500mc -O2 -ftrapv -fno-expensive-optimizations -fno-guess-branch-probability -fno-tree-dce -fno-tree-dse

2023-01-18 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108461 Bug ID: 108461 Summary: '-fcompare-debug' failure (length) w/ -mcpu=e500mc -O2 -ftrapv -fno-expensive-optimizations -fno-guess-branch-probability -fno-tree-dce -fn

[Bug fortran/108453] [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361

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

[Bug fortran/108451] [13 Regression] ICE in check_complete_insertion, at hash-table.h:578

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

[Bug fortran/108450] [12/13 Regression] ICE in sort_actual, at fortran/intrinsic.cc:4380

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

[Bug tree-optimization/108449] [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512

2023-01-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108449 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug tree-optimization/108449] [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512

2023-01-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108449 --- Comment #2 from Richard Biener --- OK, so early we still have vfork() 'static' and maybe_special_function_p returns false. But then check_global_declaration () comes along and does /* Warn about any function declared static but not defin

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

2023-01-18 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #43 from rguenther at suse dot de --- On Thu, 19 Jan 2023, xry111 at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 > > --- Comment #42 from Xi Ruoyao --- > (In reply to Richard Biener from comment #4

[Bug c++/96887] Excessive error output with member initializer list and array

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96887 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection Known to work|

[Bug c++/96419] Constant propoagation works on global variable, but not in a function

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96419 Andrew Pinski changed: What|Removed |Added URL|https://gcc.godbolt.org/z/c | |7E3P9

[Bug c++/95871] Duplicated error message : "the value is not usable in a constant expression"

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95871 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/95010] Recursive function template with function parameter of type decltype([]{}) is rejected

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95010 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-01-19 Status|UNCONFIRME

[Bug c++/70178] Loop-invariant memory loads from std::string innards are not hoisted

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70178 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 --- Comment #7 from Andrew Pinski --- I do notice some aliasing violations with y_map_index and y_strucon_handleErrorHelper y_vec* stack; ... y_map_existsStringKey_v(d->contexts, ("com.yzena.yc.error_handler"),

[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread gavin at yzena dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 --- Comment #6 from Gavin Howard --- Created attachment 54302 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54302&action=edit An Amalgamation to Reproduce I have managed to make an amalgamation that reproduces the bug. When you unzip the

[Bug c++/108460] -Wmissing-braces with ctad

2023-01-18 Thread tim at klingt dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108460 --- Comment #1 from tim blechmann --- possibly related to 95330?

[Bug c++/108460] New: -Wmissing-braces with ctad

2023-01-18 Thread tim at klingt dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108460 Bug ID: 108460 Summary: -Wmissing-braces with ctad Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assig

[Bug c++/55768] Use of unknown __attribute__ in function definition is flagged with an error

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

[Bug c++/53528] Support C++11 generalized attributes

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53528 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.8.0

[Bug c++/83932] No diagnostic issued for missing default argument in lambda-expression

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83932 --- Comment #2 from Andrew Pinski --- We do handle the default argument in other places correctly that is we reject: struct g { int operator()(int i = 1, int j){return 0;} };

[Bug c++/84373] g++ incorrectly resolves names for default parameters

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84373 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1787r6.html > > > Confirmed. I should note that paper clearifies this to the tea now: A parameter sha

[Bug c++/84373] g++ incorrectly resolves names for default parameters

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84373 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-01-19 Status|UNCONFIRME

[Bug middle-end/82325] worse code generated compared to clang when using a constexpr array

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82325 Andrew Pinski changed: What|Removed |Added Component|c++ |middle-end --- Comment #3 from Andrew Pi

[Bug debug/106746] [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks since r13-2041-g6624ad73064de241

2023-01-18 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106746 --- Comment #20 from Alexandre Oliva --- The bug is now either fixed or latent in the trunk, I'm not sure which, because I have not got as far as figuring out why removing unnecessary address cselib lookups in debug insns made a difference to me

[Bug c++/78040] Missed mangled names of class methods in the translation unit dump

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78040 Andrew Pinski changed: What|Removed |Added Target Milestone|8.0 |---

[Bug c++/78040] Missed mangled names of class methods in the translation unit dump

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

[Bug debug/106746] [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks since r13-2041-g6624ad73064de241

2023-01-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106746 --- Comment #19 from CVS Commits --- The master branch has been updated by Alexandre Oliva : https://gcc.gnu.org/g:3c99493bf39a7fef9213e6f5af94b78bb15fcfdc commit r13-5252-g3c99493bf39a7fef9213e6f5af94b78bb15fcfdc Author: Alexandre Oliva Date

[Bug c++/78040] Missed mangled names of class methods in the translation unit dump

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78040 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0 --- Comment #3 from Andrew Pinski -

[Bug c++/102213] virtual consteval is not being stored in the vtable

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102213 Andrew Pinski changed: What|Removed |Added Summary|Incorrect executable|virtual consteval is not

[Bug c++/106485] Can't use heap pointer in `static_assert`

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

[Bug c++/108458] Incorrect detection of constexpr heap usage in non-constexpr context

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

[Bug c++/106485] Can't use heap pointer in `static_assert`

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106485 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/55004] [meta-bug] constexpr issues

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 104512, which changed state. Bug 104512 Summary: [c++20] consteval constructor does not need to initialize all data members https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104512 What|Removed

[Bug c++/104512] [c++20] consteval constructor does not need to initialize all data members

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

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #11 from niXman --- Created attachment 54301 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54301&action=edit patch (In reply to niXman from comment #9) > although I think these two bugs have the same cause... right, it was th

[Bug c++/95968] error: 'args#0' is not a constant expression

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95968 Andrew Pinski changed: What|Removed |Added Keywords|rejects-valid | --- Comment #3 from Andrew Pinski ---

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

2023-01-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107608 --- Comment #42 from Xi Ruoyao --- (In reply to Richard Biener from comment #41) > We could fix the testcase with > > diff --git a/gcc/testsuite/gcc.dg/pr95115.c b/gcc/testsuite/gcc.dg/pr95115.c > index 69c4f83250c..09273e445d2 100644 > --- a/g

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

2023-01-18 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 --- Comment #15 from Jerry DeLisle --- Do we close this bug as invalid or do we need to adjustsomething?

[Bug c++/108458] Incorrect detection of constexpr heap usage in non-constexpr context

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108458 --- Comment #2 from Andrew Pinski --- Note GCC does implement consteval which allows for: static_assert([]() { if consteval { return std::vector{1, 2} == get_val(std::vector>{ {1, 2}, {3, 4}}); } }()

[Bug c++/108458] Incorrect detection of constexpr heap usage in non-constexpr context

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108458 --- Comment #1 from Andrew Pinski --- These all work too: static_assert([]()consteval {return std::vector{1, 2} == get_val(std::vector>{ {1, 2}, {3, 4}}); }()); static_assert([]()consteval {return std:

[Bug c++/104512] [c++20] consteval constructor does not need to initialize all data members

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104512 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > static_assert is an immediate function context static_assert is NOT an immediate function context sorry for the typo.

[Bug c++/104512] [c++20] consteval constructor does not need to initialize all data members

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104512 Andrew Pinski changed: What|Removed |Added See Also||https://github.com/llvm/llv

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-18 Thread already5chosen at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #23 from Michael_S --- (In reply to Jakub Jelinek from comment #19) > So, if stmxcsr/vstmxcsr is too slow, perhaps we should change x86 > sfp-machine.h > #define FP_INIT_ROUNDMODE \ > do {

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

2023-01-18 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 --- Comment #37 from H.J. Lu --- It is if ((__atomic_fetch_xor_4 ((volatile void *) a, (unsigned int) (1 << bit), 0) & (unsigned int) (1 << bit)) != 0) vs if ((__atomic_fetch_xor_4 ((volatile void *) a, 1 << bit, 0) >> bit & 1) != 0) Why do

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-18 Thread already5chosen at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #22 from Michael_S --- (In reply to Michael_S from comment #8) > (In reply to Thomas Koenig from comment #6) > > And there will have to be a decision about 32-bit targets. > > > > IMHO, 32-bit targets should be left in their current

[Bug tree-optimization/108447] [13 Regression] glibc math/test-*-iseqsig failures

2023-01-18 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108447 --- Comment #7 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #5) > I'm surprised by rr_union_table content. > // VREL_VARYING > { VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING, > VREL_VARYING, VREL_

[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-18 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 Attachment #54265|0 |1 is obsolete|

[Bug tree-optimization/108447] [13 Regression] glibc math/test-*-iseqsig failures

2023-01-18 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108447 --- Comment #6 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #4) > I see fold_using_range::relation_fold_and_or > which sees relation1 VREL_LE and relation2 VREL_GE and !is_and, and because > of > relation_union (relation1, rel

[Bug middle-end/108459] New: [OpenMP] ICE during GIMPLE pass: ompexp (segfault) in expand_omp_for_init_counts

2023-01-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108459 Bug ID: 108459 Summary: [OpenMP] ICE during GIMPLE pass: ompexp (segfault) in expand_omp_for_init_counts Product: gcc Version: 13.0 Status: UNCONFIRMED Keyword

[Bug c/108424] ICE in perform_integral_promotions with nullptr case and switch on int type

2023-01-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108424 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c/108424] ICE in perform_integral_promotions with nullptr case and switch on int type

2023-01-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108424 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:0f85ae6591c92b161693073c0931c7ca1d5d0c5a commit r13-5249-g0f85ae6591c92b161693073c0931c7ca1d5d0c5a Author: Marek Polacek Date: We

[Bug analyzer/108455] -Wanalyzer-deref-before-check false positive seen in git pack-revindex.c

2023-01-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108455 David Malcolm changed: What|Removed |Added Last reconfirmed||2023-01-18 Status|UNCONFIRM

[Bug middle-end/105469] [10/11/12/13 Regression] "execution reached an unreachable program point" with -flto since r5-7027-g0b986c6ac777aa4e

2023-01-18 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105469 --- Comment #18 from Jan Hubicka --- It should just make any bug to go latent. It surprises me it makes any difference given that things not cloned by ipa-cp should be all handled by ipa-sra.

[Bug c++/108458] New: Incorrect detection of constexpr heap usage in non-constexpr context

2023-01-18 Thread ajscimone at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108458 Bug ID: 108458 Summary: Incorrect detection of constexpr heap usage in non-constexpr context Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug fortran/108434] [12/13 Regression] ICE in class_allocatable, at fortran/expr.cc:5000

2023-01-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108434 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|

[Bug tree-optimization/108457] [13 Regression] tree-ssa-loop-niter.cc:2255:23: warning: variable 'mode' set but not used

2023-01-18 Thread dave.anglin at bell dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108457 --- Comment #2 from dave.anglin at bell dot net --- On 2023-01-18 4:07 p.m., pinskia at gcc dot gnu.org wrote: > Basically C[TL]Z_DEFINED_VALUE_AT_ZERO macro does not always use its arguments > so they don't get marked as used ... Yes.  PA uses t

[Bug target/107844] error: argument is not a field access for __builtin_preserve_field_info

2023-01-18 Thread david.faust at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107844 --- Comment #5 from David Faust --- (In reply to Andrew Pinski from comment #4) > (In reply to David Faust from comment #3) > > Thanks for the info Andrew. I'll look at __builtin_offsetof. > > > > As for the implementation in clang, I can point

[Bug tree-optimization/108457] [13 Regression] tree-ssa-loop-niter.cc:2255:23: warning: variable 'mode' set but not used

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108457 Andrew Pinski changed: What|Removed |Added Summary|tree-ssa-loop-niter.cc:2255 |[13 Regression] |:23:

[Bug bootstrap/108457] New: tree-ssa-loop-niter.cc:2255:23: warning: variable 'mode' set but not used

2023-01-18 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108457 Bug ID: 108457 Summary: tree-ssa-loop-niter.cc:2255:23: warning: variable 'mode' set but not used Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: norm

[Bug fortran/108454] ICE in gfc_trans_common, at fortran/trans-common.cc:1385

2023-01-18 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108454 anlauf at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2023-01-18 Statu

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

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #32 from niXman --- > Thanks. Your Windows related changes look good to me. great, thanks! > FYI, I am unsure about the need to change all backslashes to slashes and > wonder if this is a backwards incompatible change for users of

[Bug target/107844] error: argument is not a field access for __builtin_preserve_field_info

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107844 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/105506] [12/13 Regression] Error building GCC 12.1.0 against MinGW-w64: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory

2023-01-18 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105506 --- Comment #12 from Brecht Sanders --- I couldn't apply that patch. Is that for 12.2.0 ?

[Bug tree-optimization/108447] [13 Regression] glibc math/test-*-iseqsig failures

2023-01-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108447 --- Comment #5 from Jakub Jelinek --- I'm surprised by rr_union_table content. // VREL_VARYING { VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING, VREL_VARYING }, is obviously correct, sure,

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-18 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #21 from Wilco --- (In reply to Jakub Jelinek from comment #20) > __attribute__((noinline, optimize ("rounding-math"))) static int > round_to_nearest (void) { return 1.0f - __FLT_MIN__ == 1.0f + __FLT_MIN__; } Wouldn't that always s

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

2023-01-18 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #31 from Bill Zissimopoulos --- (In reply to niXman from comment #29) > Created attachment 54285 [details] > patch > > another version of the patch. Thanks. Your Windows related changes look good to me. FYI, I am unsure about the

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

2023-01-18 Thread gnu.org at billz dot fastmail.fm via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350 --- Comment #30 from Bill Zissimopoulos --- (In reply to niXman from comment #29) > Created attachment 54285 [details] > patch > > another version of the patch. Sorry for the delay. Will look at it now. (In reply to niXman from comment #28) >

[Bug tree-optimization/108447] [13 Regression] glibc math/test-*-iseqsig failures

2023-01-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108447 --- Comment #4 from Jakub Jelinek --- I see fold_using_range::relation_fold_and_or which sees relation1 VREL_LE and relation2 VREL_GE and !is_and, and because of relation_union (relation1, relation2) == VREL_VARYING fold it to 1. But for floatin

[Bug target/107844] error: argument is not a field access for __builtin_preserve_field_info

2023-01-18 Thread david.faust at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107844 --- Comment #3 from David Faust --- Thanks for the info Andrew. I'll look at __builtin_offsetof. As for the implementation in clang, I can point to some bits relevant to the builtin itself: llvm-project/clang/lib/CodeGen/CGBuiltin.cpp CodeGen

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #20 from Jakub Jelinek --- __attribute__((noinline, optimize ("rounding-math"))) static int round_to_nearest (void) { return 1.0f - __FLT_MIN__ == 1.0f + __FLT_MIN__; } and if (round_to_nearest ()) \ _fcw = FP_RND_NEAREST; \

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #19 from Jakub Jelinek --- So, if stmxcsr/vstmxcsr is too slow, perhaps we should change x86 sfp-machine.h #define FP_INIT_ROUNDMODE \ do {

[Bug tree-optimization/108449] [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108449 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0 Status|UNCONFIRMED

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #10 from niXman --- (In reply to Jakub Jelinek from comment #8) > As Joseph wrote, there were lots of strtod_l.c fixes since 2011 and most of > them weren't incorporated into libquadmath (unlike most of the math/ > functions which wer

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #9 from niXman --- although I think these two bugs have the same cause...

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

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

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-18 Thread wilco at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 Wilco changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- Comment #18 from W

[Bug target/107844] error: argument is not a field access for __builtin_preserve_field_info

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107844 --- Comment #2 from Andrew Pinski --- The reason why is folded is because some folks use the null pointer for offsetof (previously before GCC added __builtin_offsetof). I wonder if you could use __builtin_offsetof here. I also curious how this

[Bug tree-optimization/108447] [13 Regression] glibc math/test-*-iseqsig failures

2023-01-18 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108447 --- Comment #3 from Andrew Macleod --- Those specialized relations are handled within the floating point range-ops code iirc. We established that none of the other floating point relations needed to be exposed to non-floating point code. The f

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

2023-01-18 Thread hjl.tools at gmail dot com via Gcc-bugs
.cfi_endproc .LFE1: .size f2, .-f2 .ident "GCC: (GNU) 13.0.1 20230118 (experimental)" .section.note.GNU-stack,"",@progbits [hjl@gnu-skx-1 gcc]$

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #7 from niXman --- (In reply to niXman from comment #5) > because it's MinGW specific: I will paraphrase: this report is for MinGW. but another one - 87204, looks like NOT. but im unsure... will work on it too.

[Bug target/107844] error: argument is not a field access for __builtin_preserve_field_info

2023-01-18 Thread david.faust at oracle dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107844 --- Comment #1 from David Faust --- Looks like this is a result of the combination of how the bpf_core_field_exists macro is defined and some sort of optimization(?) happening in the C frontend. Consider: struct S { unsigned short x;

[Bug c++/108456] New: attribute deprecated on enum doesn't warn

2023-01-18 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108456 Bug ID: 108456 Summary: attribute deprecated on enum doesn't warn Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #6 from niXman --- (In reply to niXman from comment #3) > BTW, I have fixed it for x86_64-mingw32. trying to rebuild for i686-mingw32 > for check. yeah, it's fixed. works on x86_64 and i686 MinGW. will check it on Linux host too for

[Bug analyzer/108455] -Wanalyzer-deref-before-check false positive seen in git pack-revindex.c

2023-01-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108455 --- Comment #1 from David Malcolm --- Perhaps should only complain if the deref site dominates the check site in the supergraph (and both are in the same function?)

[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread gavin at yzena dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 --- Comment #5 from Gavin Howard --- As mentioned, it works at -O0, and UBSan reports nothing until the segfault. ASan also reports nothing. Valgrind also reports nothing. They all report nothing at -O0 and -O2. I keep my code clean of such thi

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread i.nixman at autistici dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #5 from niXman --- because it's MinGW specific: > Demo strtoflt128 error with some subnormals on Windows but another one - 87204, looks like NOT. but im unsure... will work on it too.

[Bug analyzer/108455] New: -Wanalyzer-deref-before-check false positive seen in git pack-revindex.c

2023-01-18 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108455 Bug ID: 108455 Summary: -Wanalyzer-deref-before-check false positive seen in git pack-revindex.c Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: norma

[Bug libquadmath/94756] strtoflt128 assigns some subnormals incorrectly on MS Windows

2023-01-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94756 --- Comment #4 from Jakub Jelinek --- I can reproduce it on x86_64-linux with -m32 too: f1: 0x0.00014707e947d757fbf6f7p-16382 f2: 0x0.00014707e946d257f2f674b9p-16382 but can't with -m64 nor when using glibc 2.35 strtof128 (in that case it

[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 --- Comment #4 from Andrew Pinski --- Does it work at -O0? Does -fsanitizer=address -fsanitizer=undefined report anything?

[Bug fortran/108454] New: ICE in gfc_trans_common, at fortran/trans-common.cc:1385

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108454 Bug ID: 108454 Summary: ICE in gfc_trans_common, at fortran/trans-common.cc:1385 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Prio

[Bug fortran/108453] New: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108453 Bug ID: 108453 Summary: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 Product: gcc Version: 13.0 Status: UNCONFIRMED Sever

[Bug fortran/108452] New: ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108452 Bug ID: 108452 Summary: ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Pri

[Bug fortran/108451] [13 Regression] ICE in check_complete_insertion, at hash-table.h:578

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108451 G. Steinmetz changed: What|Removed |Added Keywords||accepts-invalid, |

[Bug fortran/108451] New: [13 Regression] ICE in check_complete_insertion, at hash-table.h:578

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108451 Bug ID: 108451 Summary: [13 Regression] ICE in check_complete_insertion, at hash-table.h:578 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/108450] New: [12/13 Regression] ICE in sort_actual, at fortran/intrinsic.cc:4380

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108450 Bug ID: 108450 Summary: [12/13 Regression] ICE in sort_actual, at fortran/intrinsic.cc:4380 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread gavin at yzena dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 --- Comment #3 from Gavin Howard --- > Have you tried -fno-strict-aliasing ? I have a feeling like you have some > aliasing issues in this code ... Just tried it, same thing happens. I'll try to make a better test case, but in this case, the

[Bug c/108449] New: [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512

2023-01-18 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108449 Bug ID: 108449 Summary: [13 Regression] ICE in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: no

[Bug middle-end/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 --- Comment #2 from Andrew Pinski --- Have you tried -fno-strict-aliasing ? I have a feeling like you have some aliasing issues in this code ...

[Bug c/108448] GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c/108448] New: GCC Elides Assignment to Pointer and memcpy

2023-01-18 Thread gavin at yzena dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448 Bug ID: 108448 Summary: GCC Elides Assignment to Pointer and memcpy Product: gcc Version: 11.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

  1   2   >