[Bug fortran/59104] Wrong result with SIZE specification expression

2024-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59104

--- Comment #7 from GCC Commits  ---
The master branch has been updated by Paul Thomas :

https://gcc.gnu.org/g:ccaa39a268bef2a1d8880022696ff2dcaa6af941

commit r15-1468-gccaa39a268bef2a1d8880022696ff2dcaa6af941
Author: Paul Thomas 
Date:   Thu Jun 20 08:01:36 2024 +0100

Fortran: Auto array allocation with function dependencies [PR59104]

2024-06-20  Paul Thomas  

gcc/fortran
PR fortran/59104
* dependency.cc (dependency_fcn, gfc_function_dependency): New
functions to detect dependency in array bounds and character
lengths on old style function results.
* dependency.h : Add prototype for gfc_function_dependency.
* error.cc (error_print): Remove trailing space.
* gfortran.h : Remove dummy_order and add fn_result_spec.
* symbol.cc : Remove declaration of next_dummy_order..
(gfc_set_sym_referenced): remove setting of symbol dummy order.
* trans-array.cc (gfc_trans_auto_array_allocation): Detect
non-dummy symbols with function dependencies and put the
allocation at the end of the initialization code.
* trans-decl.cc : Include dependency.h.
(decl_order): New function that determines uses the location
field of the symbol 'declared_at' to determine the order of two
declarations.
(gfc_defer_symbol_init): Call gfc_function_dependency to put
dependent symbols in the right part of the tlink chain. Use
the location field of the symbol declared_at to determine the
order of declarations.
(gfc_trans_auto_character_variable): Put character length
initialization of dependent symbols at the end of the chain.
* trans.cc (gfc_add_init_cleanup): Add boolean argument with
default false that determines whther an expression is placed at
the back or the front of the initialization chain.
* trans.h : Update the prototype for gfc_add_init_cleanup.

gcc/testsuite/
PR fortran/59104
* gfortran.dg/dependent_decls_2.f90: New test.

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
Bug 53947 depends on bug 114413, which changed state.

Bug 114413 Summary: BB SLP sub-graph merging fails to CSE nodes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114413

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

[Bug tree-optimization/114413] BB SLP sub-graph merging fails to CSE nodes

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114413

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |15.0
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Richard Biener  ---
This should be largely fixed now, the missing piece that might be important in
some cases is CSE of permutes (or two-operator nodes) and of extern CTORs.

[Bug target/114829] No fcsel produced for fp16

2024-06-20 Thread ramana at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114829

Ramana Radhakrishnan  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
 CC||ramana at gcc dot gnu.org
   Last reconfirmed||2024-06-20

--- Comment #1 from Ramana Radhakrishnan  ---
Confirmed.

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code

2024-06-20 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528

--- Comment #14 from Jürgen Reuter  ---
(In reply to Jürgen Reuter from comment #13)
> The daily bump in the morning of Friday, June 14, 
> https://gcc.gnu.org/git/?p=gcc.git;a=commit;
> h=028cd77db322d21312680c9a0a7c30565854f577
> shows the segmentation fault, so the culprit comment must have happened on
> Thursday, June 13, my guess would be that it's one of these two:
> 6 days agoRichard Biener  tree-optimization/115385 - handle more gaps with
> peelin... commit | commitdiff | tree
> 6 days agoRichard Biener  tree-optimization/114107 - avoid peeling for 
> gaps
> in... commit | commitdiff | tree

This was still fine on Thu June 13, 05:08:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=64cd70e315ed2cf0653cfdde96ae80c3f90a07f4

[Bug target/115554] New: RISC-V: ICE in case of multiple target-arch attributes

2024-06-20 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115554

Bug ID: 115554
   Summary: RISC-V: ICE in case of multiple target-arch attributes
   Product: gcc
   Version: 15.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: cmuellner at gcc dot gnu.org
  Target Milestone: ---

Minimal reproducers (for target-arch):

extern
__attribute__((target("arch=+zba")))
__attribute__((target("arch=+zbb")))
void foo(void);

extern
__attribute__((target("arch=+zbb")))
__attribute__((target("arch=+zbb")))
void bar(void);

The ICE is a bug.
If multiple target-arch attributes should not be allowed,
then an error message is the right solution.

Allowing multiple target-X attributes is problematic, as can be seen for baz().
I.e., does the second attribute amend or replace the previous one?
However, accepting multiple target-X attributes if they are equal (like for
bar)
could be done.

The assertion was added in the GCC 14 cycle (commit 9941f0295a1).
GCC 14 and 15 are affected. GCC 13 is not affected (we don't have RISC-V
target-arch
attributes in GCC 13).

The ICE looks like this:
$ riscv64-unknown-linux-gnu-gcc bar.c -c
bar.c:4:1: internal compiler error: in riscv_func_target_put, at
common/config/riscv/riscv-common.cc:521
4 | void foo(void);
  | ^~~~
0xc15306 riscv_func_target_put(tree_node*, std::__cxx11::basic_string, std::allocator >)
   
/home/cm/src/gcc/riscv-mainline/gcc/common/config/riscv/riscv-common.cc:521
0x18234d3 riscv_process_target_attr
   
/home/cm/src/gcc/riscv-mainline/gcc/config/riscv/riscv-target-attr.cc:370
0x182334c riscv_process_target_attr
   
/home/cm/src/gcc/riscv-mainline/gcc/config/riscv/riscv-target-attr.cc:314
0x182363d riscv_option_valid_attribute_p(tree_node*, tree_node*, tree_node*,
int)
   
/home/cm/src/gcc/riscv-mainline/gcc/config/riscv/riscv-target-attr.cc:389
0xd560ee handle_target_attribute
/home/cm/src/gcc/riscv-mainline/gcc/c-family/c-attribs.cc:5915
0xc24d04 decl_attributes(tree_node**, tree_node*, int, tree_node*)
/home/cm/src/gcc/riscv-mainline/gcc/attribs.cc:900
0xc2bbed c_decl_attributes
/home/cm/src/gcc/riscv-mainline/gcc/c/c-decl.cc:5501
0xc43b77 start_decl(c_declarator*, c_declspecs*, bool, tree_node*, bool,
unsigned int*)
/home/cm/src/gcc/riscv-mainline/gcc/c/c-decl.cc:5647
0xcb4d73 c_parser_declaration_or_fndef
/home/cm/src/gcc/riscv-mainline/gcc/c/c-parser.cc:2773
0xcc158b c_parser_external_declaration
/home/cm/src/gcc/riscv-mainline/gcc/c/c-parser.cc:2053
0xcc1fb5 c_parser_translation_unit
/home/cm/src/gcc/riscv-mainline/gcc/c/c-parser.cc:1907
0xcc1fb5 c_parse_file()
/home/cm/src/gcc/riscv-mainline/gcc/c/c-parser.cc:27303
0xd3b9c1 c_common_parse_file()
/home/cm/src/gcc/riscv-mainline/gcc/c-family/c-opts.cc:1322

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551

--- Comment #3 from Tobias Burnus  ---
As we want to have a >= 0, I tried to convey it differently for the example in
comment 0:

(a) __attribute__((assume(ch >= 0)));
(b) 'unsigned ch' (instead of 'int ch')

but it didn't help.  Thus, it looks as if it could be implemented for:
  c1 << (a + c2)
if (a >= 0 and c2 >= 0) doing then the conversion
  (c1 << c2) << a

Whether Ranger handles abs(c2) > c3 >= 0 → a >= 0 for 'c1 << (a*c2 + c3)', I
don't know, but the variant above with unsigned and 'assume(a >= 0)' should be
implementable and seems to make sense.

[Bug target/115554] RISC-V: ICE in case of multiple target-arch attributes

2024-06-20 Thread cmuellner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115554

--- Comment #1 from Christoph Müllner  ---
Forgot to mention:
The ICE is triggered by an assertion in riscv_func_target_put(), which ensures
we don't have more than one target-arch attribute in one function declaration.

[Bug libstdc++/115308] std::experimental::simd is not convertible to NEON intrinsic type with Clang

2024-06-20 Thread mkretz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115308

Matthias Kretz (Vir)  changed:

   What|Removed |Added

   Target Milestone|--- |12.5

--- Comment #6 from Matthias Kretz (Vir)  ---
Yes, this was simply bad timing. The patch hit the GCC 12.4 freeze. I already
regtested it. Only waiting for 12.4 to be done. I have not yet checked whether
the patch makes sense on GCC 11.

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551

--- Comment #4 from Richard Biener  ---
all same for right-shifts (both logical and arithmetic).

Note that 1 << (a + 5) might be cheaper than (1<<5) << a due to constraints
on immediates but for GIMPLE the latter is definitely more canonical.

[Bug target/115554] RISC-V: ICE in case of multiple target-arch attributes

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115554

Richard Biener  changed:

   What|Removed |Added

 Target||riscv
   Keywords||ice-on-valid-code

--- Comment #2 from Richard Biener  ---
target and optimize attributes "accumulate"

[Bug middle-end/115528] [15 regression] segmentation fault in legacy F77 code

2024-06-20 Thread juergen.reuter at desy dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528

--- Comment #15 from Jürgen Reuter  ---
I fund the culprit commit in the gcc master, it is:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=1fe55a1794863b5ad9eeca5062782834716016b2
by Richard Biener on the tree-optimization. Now I will try helping to get a
smaller reproducer.

[Bug middle-end/115555] New: [Ranger] deduce 'a >= 0' from 'b << a'

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11

Bug ID: 11
   Summary: [Ranger] deduce 'a >= 0' from  'b << a'
   Product: gcc
   Version: 15.0
Status: UNCONFIRMED
  Keywords: missed-optimization
  Severity: normal
  Priority: P3
 Component: middle-end
  Assignee: unassigned at gcc dot gnu.org
  Reporter: burnus at gcc dot gnu.org
CC: aldyh at gcc dot gnu.org
  Target Milestone: ---

Stumbled over this when looking at PR 115551.

C has for the bitwise shift operators:

"If the value of the right operand is negative or is greater than or equal to
the
width of the promoted left operand, the behavior is undefined."

Thus, it seems as if the ranger should be able to deduce 'a >= 0' in the
following, such that both conditions can be optimized away:

int f (int a, float *b) {
   *b = a >= 0 ? 1.0 : 2.0;
   int mask1 = 1U << a;  // 'a' must be >= 0 → '*b=1.0' above and 'return -1'
below
   if (a >= 0)
 return -1;
   return mask1;
}

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #5 from Jakub Jelinek  ---
We should also verify that it doesn't stand in the way of shift sanitization,
because
unsigned int a;
...
1 << (5 + a);
is well defined only for a in [0, 26] while once we optimize it to
(1 << 5) << a;
that would be well defined for a in [0, 31].  I think the shift sanitization is
done early, so just something to be verified in a testcase next to the patch.

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551

--- Comment #6 from Tobias Burnus  ---
Crossref: New Bug 11 is for the range analysis to deduce from 'x << a' that
'a' must be nonnegative.

[Bug driver/115440] unrecognized command-line option '--c++17'; did you mean '--stdc++17'?

2024-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115440

--- Comment #5 from GCC Commits  ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:74a58c39c701b3bce884d4fb71cd59b9da145f1c

commit r14-10326-g74a58c39c701b3bce884d4fb71cd59b9da145f1c
Author: Jakub Jelinek 
Date:   Mon Jun 17 22:02:46 2024 +0200

diagnostics: Fix add_misspelling_candidates [PR115440]

The option_map array for most entries contains just non-NULL opt0
{ "-Wno-", NULL, "-W", false, true },
{ "-fno-", NULL, "-f", false, true },
{ "-gno-", NULL, "-g", false, true },
{ "-mno-", NULL, "-m", false, true },
{ "--debug=", NULL, "-g", false, false },
{ "--machine-", NULL, "-m", true, false },
{ "--machine-no-", NULL, "-m", false, true },
{ "--machine=", NULL, "-m", false, false },
{ "--machine=no-", NULL, "-m", false, true },
{ "--machine", "", "-m", false, false },
{ "--machine", "no-", "-m", false, true },
{ "--optimize=", NULL, "-O", false, false },
{ "--std=", NULL, "-std=", false, false },
{ "--std", "", "-std=", false, false },
{ "--warn-", NULL, "-W", true, false },
{ "--warn-no-", NULL, "-W", false, true },
{ "--", NULL, "-f", true, false },
{ "--no-", NULL, "-f", false, true }
and so add_misspelling_candidates works correctly for it, but 3 out of
these,
{ "--machine", "", "-m", false, false },
{ "--machine", "no-", "-m", false, true },
and
{ "--std", "", "-std=", false, false },
use non-NULL opt1.  That says that
--machine foo
should map to
-mfoo
and
--machine no-foo
should map to
-mno-foo
and
--std c++17
should map to
-std=c++17
add_misspelling_canidates was not handling this, so it hapilly
registered say
--stdc++17
or
--machineavx512
(twice) as spelling alternatives, when those options aren't recognized.
Instead we support
--std c++17
or
--machine avx512
--machine no-avx512

The following patch fixes that.  On this particular testcase, we no longer
suggest anything, even when among the suggestion is say that
--std c++17
or
-std=c++17
etc.

2024-06-17  Jakub Jelinek  

PR driver/115440
* opts-common.cc (add_misspelling_candidates): If opt1 is non-NULL,
add a space and opt1 to the alternative suggestion text.

* g++.dg/cpp1z/pr115440.C: New test.

(cherry picked from commit 96db57948b50f45235ae4af3b46db66cae7ea859)

[Bug tree-optimization/115544] ICE: in lower_complexexpr_stmt, at gimple-lower-bitint.cc:4719 with -O -fno-tree-fre -fno-tree-ccp -fno-tree-forwprop and _BitInt() __builtin_mul_overflow()

2024-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115544

--- Comment #6 from GCC Commits  ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:f79e909a11672f2c5b04239d8d9376b900c5b295

commit r14-10327-gf79e909a11672f2c5b04239d8d9376b900c5b295
Author: Jakub Jelinek 
Date:   Wed Jun 19 21:10:39 2024 +0200

bitint: Fix up lowering of COMPLEX_EXPR [PR115544]

We don't really support _Complex _BitInt(N), the only place we use
bitint complex types is for the .{ADD,SUB,MUL}_OVERFLOW internal function
results and COMPLEX_EXPR in the usual case should be either not present
yet because the ifns weren't folded and will be lowered, or optimized
into something simpler, because normally the complex bitint should be
used just for extracting the 2 subparts from it.
Still, with disabled optimizations it can occassionally happen that it
appears in the IL and that is why there is support for lowering those,
but it doesn't handle optimizing those too much, so if it uses SSA_NAME,
it relies on them having a backing VAR_DECL during the lowering.
This is normally achieves through the
  && ((is_gimple_assign (use_stmt)
   && (gimple_assign_rhs_code (use_stmt)
   != COMPLEX_EXPR))
  || gimple_code (use_stmt) == GIMPLE_COND)
hunk in gimple_lower_bitint, but as the following testcase shows, there
is one thing I've missed, the load optimization isn't guarded by the
above stuff.  So, either we'd need to add support for loads to
lower_complexexpr_stmt, or because they should be really rare, this
patch just disables the load optimization if at least one load use is
a COMPLEX_EXPR (like we do already for PHIs, calls, asm).

2024-06-19  Jakub Jelinek  

PR tree-optimization/115544
* gimple-lower-bitint.cc (gimple_lower_bitint): Disable optimizing
loads used by COMPLEX_EXPR operands.

* gcc.dg/bitint-107.c: New test.

(cherry picked from commit 25860fd2a674373a6476af5ff0bd92354fc53d06)

[Bug tree-optimization/115544] ICE: in lower_complexexpr_stmt, at gimple-lower-bitint.cc:4719 with -O -fno-tree-fre -fno-tree-ccp -fno-tree-forwprop and _BitInt() __builtin_mul_overflow()

2024-06-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115544

Jakub Jelinek  changed:

   What|Removed |Added

   Target Milestone|--- |14.2
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #7 from Jakub Jelinek  ---
Fixed for 14.2+ and 15.1+.

[Bug driver/115440] unrecognized command-line option '--c++17'; did you mean '--stdc++17'?

2024-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115440

--- Comment #6 from GCC Commits  ---
The releases/gcc-13 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:e216eb16ef740c4e820a24c73e7d7e97a12d93c3

commit r13-8859-ge216eb16ef740c4e820a24c73e7d7e97a12d93c3
Author: Jakub Jelinek 
Date:   Mon Jun 17 22:02:46 2024 +0200

diagnostics: Fix add_misspelling_candidates [PR115440]

The option_map array for most entries contains just non-NULL opt0
{ "-Wno-", NULL, "-W", false, true },
{ "-fno-", NULL, "-f", false, true },
{ "-gno-", NULL, "-g", false, true },
{ "-mno-", NULL, "-m", false, true },
{ "--debug=", NULL, "-g", false, false },
{ "--machine-", NULL, "-m", true, false },
{ "--machine-no-", NULL, "-m", false, true },
{ "--machine=", NULL, "-m", false, false },
{ "--machine=no-", NULL, "-m", false, true },
{ "--machine", "", "-m", false, false },
{ "--machine", "no-", "-m", false, true },
{ "--optimize=", NULL, "-O", false, false },
{ "--std=", NULL, "-std=", false, false },
{ "--std", "", "-std=", false, false },
{ "--warn-", NULL, "-W", true, false },
{ "--warn-no-", NULL, "-W", false, true },
{ "--", NULL, "-f", true, false },
{ "--no-", NULL, "-f", false, true }
and so add_misspelling_candidates works correctly for it, but 3 out of
these,
{ "--machine", "", "-m", false, false },
{ "--machine", "no-", "-m", false, true },
and
{ "--std", "", "-std=", false, false },
use non-NULL opt1.  That says that
--machine foo
should map to
-mfoo
and
--machine no-foo
should map to
-mno-foo
and
--std c++17
should map to
-std=c++17
add_misspelling_canidates was not handling this, so it hapilly
registered say
--stdc++17
or
--machineavx512
(twice) as spelling alternatives, when those options aren't recognized.
Instead we support
--std c++17
or
--machine avx512
--machine no-avx512

The following patch fixes that.  On this particular testcase, we no longer
suggest anything, even when among the suggestion is say that
--std c++17
or
-std=c++17
etc.

2024-06-17  Jakub Jelinek  

PR driver/115440
* opts-common.cc (add_misspelling_candidates): If opt1 is non-NULL,
add a space and opt1 to the alternative suggestion text.

* g++.dg/cpp1z/pr115440.C: New test.

(cherry picked from commit 96db57948b50f45235ae4af3b46db66cae7ea859)

[Bug middle-end/78391] g++ (any version) at O0 (for O1, O2, O3 is ok) doesn't warn when class members are used uninitialized.

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78391

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #13 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug driver/115440] unrecognized command-line option '--c++17'; did you mean '--stdc++17'?

2024-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115440

--- Comment #7 from GCC Commits  ---
The releases/gcc-12 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:c60dd0eb28eff3deaa389b0aafa689d423fc12f1

commit r12-10569-gc60dd0eb28eff3deaa389b0aafa689d423fc12f1
Author: Jakub Jelinek 
Date:   Mon Jun 17 22:02:46 2024 +0200

diagnostics: Fix add_misspelling_candidates [PR115440]

The option_map array for most entries contains just non-NULL opt0
{ "-Wno-", NULL, "-W", false, true },
{ "-fno-", NULL, "-f", false, true },
{ "-gno-", NULL, "-g", false, true },
{ "-mno-", NULL, "-m", false, true },
{ "--debug=", NULL, "-g", false, false },
{ "--machine-", NULL, "-m", true, false },
{ "--machine-no-", NULL, "-m", false, true },
{ "--machine=", NULL, "-m", false, false },
{ "--machine=no-", NULL, "-m", false, true },
{ "--machine", "", "-m", false, false },
{ "--machine", "no-", "-m", false, true },
{ "--optimize=", NULL, "-O", false, false },
{ "--std=", NULL, "-std=", false, false },
{ "--std", "", "-std=", false, false },
{ "--warn-", NULL, "-W", true, false },
{ "--warn-no-", NULL, "-W", false, true },
{ "--", NULL, "-f", true, false },
{ "--no-", NULL, "-f", false, true }
and so add_misspelling_candidates works correctly for it, but 3 out of
these,
{ "--machine", "", "-m", false, false },
{ "--machine", "no-", "-m", false, true },
and
{ "--std", "", "-std=", false, false },
use non-NULL opt1.  That says that
--machine foo
should map to
-mfoo
and
--machine no-foo
should map to
-mno-foo
and
--std c++17
should map to
-std=c++17
add_misspelling_canidates was not handling this, so it hapilly
registered say
--stdc++17
or
--machineavx512
(twice) as spelling alternatives, when those options aren't recognized.
Instead we support
--std c++17
or
--machine avx512
--machine no-avx512

The following patch fixes that.  On this particular testcase, we no longer
suggest anything, even when among the suggestion is say that
--std c++17
or
-std=c++17
etc.

2024-06-17  Jakub Jelinek  

PR driver/115440
* opts-common.cc (add_misspelling_candidates): If opt1 is non-NULL,
add a space and opt1 to the alternative suggestion text.

* g++.dg/cpp1z/pr115440.C: New test.

(cherry picked from commit 96db57948b50f45235ae4af3b46db66cae7ea859)

[Bug libstdc++/82178] bootstrap fails on ppc64 for --enable-symvers=gnu-versioned-namespace

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82178

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #4 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/82601] missing uninitialized warning for INTENT(OUT) argument with -O0 / -Og

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82601

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug rtl-optimization/87763] [11/12/13/14/15 Regression] aarch64 target testcases fail after r265398 (gcc.target/aarch64/insv_1.c left/xfailed)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87763

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #74 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug testsuite/97680] [12/13/14/15 Regression] new test case c-c++-common/zero-scratch-regs-10.c in r11-4578 has excess errors

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97680

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #19 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/87489] [11/12/13/14/15 Regression] Spurious -Wnonnull warning

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87489

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #21 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c/115290] [12 Regression] tree check fail in c_tree_printer, at c/c-objc-common.cc:330

2024-06-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115290

--- Comment #7 from GCC Commits  ---
The releases/gcc-12 branch has been updated by Jakub Jelinek
:

https://gcc.gnu.org/g:8f612e6559b39569747894ec0f8b4694b96492a7

commit r12-10568-g8f612e6559b39569747894ec0f8b4694b96492a7
Author: Jakub Jelinek 
Date:   Mon Jun 17 19:24:05 2024 +0200

c-family: Fix -Warray-compare warning ICE [PR115290]

The warning code uses %D to print the ARRAY_REF first operands.
That works in the most common case where those operands are decls, but
as can be seen on the following testcase, they can be other expressions
with array type.
Just changing %D to %E isn't enough, because then the diagnostics can
suggest something like
note: use '&(x) != 0 ? (int (*)[32])&a : (int (*)[32])&b[0] == &(y) != 0 ?
(int (*)[32])&a : (int (*)[32])&b[0]' to compare the addresses
which is a bad suggestion, the %E printing doesn't know that the
warning code will want to add & before it and [0] after it.
So, the following patch adds ()s around the operand as well, but does
that only for non-decls, for decls keeps it as &arr[0] like before.

2024-06-17  Jakub Jelinek  

PR c/115290
* c-warn.cc (do_warn_array_compare): Use %E rather than %D for
printing op0 and op1; if those operands aren't decls, also print
parens around them.

* c-c++-common/Warray-compare-3.c: New test.

(cherry picked from commit b63c7d92012f92e0517190cf263d29bbef8a06bf)

[Bug tree-optimization/101909] [12/13/14/15 Regression] 73% regression on tfft benchmark for -O2 -ftree-loop-vectorize compared to -O2 on zen hardware

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101909

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c/90036] [11/12/13/14/15 Regression] false positive: directive argument is null [-Werror=format-overflow=]

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90036

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #15 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c++/102261] [12/13/14/15 Regression] ICE: Segmentation fault (in build_this_conversion) since r12-3346-g47543e5f9d1fc502

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102261

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #6 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/99987] [12/13/14/15 Regression] missed optimization for dead code elimination at -O3 (vs. -O2)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99987

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug libstdc++/99995] [11/12/13/14/15 Regression] should not include in c++20 mode

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=5

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/101456] Unnecessary vzeroupper when upper bits of YMM registers already zero

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101456

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #13 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/102758] [12/13/14/15 Regression] Failure to use registers optimally with return values (2 operands related and subreg)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102758

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/100756] [12 Regression] vect: Superfluous epilog created on s390x

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100756

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug sanitizer/99179] asan failures with -Os on x86_64-apple-darwin

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99179

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/102772] [12/13/14/15 regression] g++.dg/torture/pr80334.C FAILs

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102772

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #53 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c++/102454] coroutines: ICE in gimplify_var_or_parm_decl, at gimplify.c:2958

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102454

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #11 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c++/102378] missing -Waddress in template code at definition time rather than instantiation

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102378

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/102756] [12/13/14/15 Regression] Complete unrolling is too senative to PRE; c-c++-common/torture/vector-compare-2.c

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102756

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/103069] cmpxchg isn't optimized

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103069

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #25 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/102459] [12/13/14/15 Regression] ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3549 since r12-1108-g9a5de4d5af1c10a8

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102459

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #5 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/82968] gfortran.dg/ieee/ieee_6.f90 fails at -O0

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82968

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/103115] [12/13/14/15 Regression] reallocation of character array fails when appending a constant size 4 array

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103115

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #11 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/98218] [TARGET_MMX_WITH_SSE] Implement 64bit vector compares (AVX512 masked compares missing)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98218

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #20 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/102879] [12/13/14/15 Regression] Dead Code Elimination Regression at -O3

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102879

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/115485] CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at config/arm/arm.c:7855

2024-06-20 Thread gang.peng at aclsemi dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485

--- Comment #9 from Gang Peng  ---
Dear Andrew,

I have compiler the GNU Arm Embedded Toolchain 10.3-2021.10, the call stack is
as follow:

CASEServer.cpp: In member function 'virtual CHIP_ERROR
chip::CASEServer::_ZThn4_N4chip10CASEServer28OnUnsolicitedMessageReceivedERKNS_13PayloadHeaderERPNS_9Messaging16ExchangeDelegateE(const
chip::PayloadHeader&, chip::Messaging::ExchangeDelegate*&)':
CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at
config/arm/arm.c:7852
  203 | } // namespace chip
  | ^
0x152ba73 diagnostic_impl
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/../libcpp/include/line-map.h:1309
0x152c5bc internal_error(char const*, ...)
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/../libcpp/include/line-map.h:1711
0x62f5db fancy_abort(char const*, int, char const*)
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/../libcpp/include/line-map.h:1778
0x622c16 require_pic_register
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:7852
0x622c16 legitimize_pic_address(rtx_def*, machine_mode, rtx_def*, rtx_def*,
bool)
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:7981
0x122373c gen_movsi(rtx_def*, rtx_def*)
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/poly-int.h:6428
0x97c5eb insn_gen_fn::operator()(rtx_def*, rtx_def*) const
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/poly-int.h:317
0x97c5eb emit_move_insn_1(rtx_def*, rtx_def*)
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/expr.c:3759
0x97c993 emit_move_insn(rtx_def*, rtx_def*)
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/expr.c:3855
0xf6efef arm32_output_mi_thunk
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:28546
0xf6efef arm_output_mi_thunk
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/config/arm/thumb1.md:28582
0x8a9bc0 cgraph_node::expand_thunk(bool, bool)
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:1934
0x8aac76 cgraph_node::assemble_thunks_and_aliases()
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2226
0x8aad15 cgraph_node::assemble_thunks_and_aliases()
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2248
0x8aaf32 cgraph_node::expand()
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2369
0x8ac25f expand_all_functions
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2474
0x8ac25f symbol_table::compile()
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2837
0x8ae40c symbol_table::compile()
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:2750
0x8ae40c symbol_table::finalize_compilation_unit()
   
/home/grant/Code/gcc-arm-none-eabi-10.3-2021.10/src/gcc/gcc/cgraphunit.c:3017
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

Could you kindly help to have a look, how can I fix this issue? Thank you very
mcuh!

BRs
Gang Peng

[Bug tree-optimization/102705] [12/13/14/15 Regression] Dead Code Elimination Regression at -O3 since r12-2637-g145bc41dae7c7bfa093d61e77346f98e6a595a0e

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102705

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug testsuite/102954] [12/13/14/15 regression] gcc.dg/vect/pr33804.c XPASSes

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102954

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug libstdc++/101527] The implementation of std::common_iterator and std::counted_iterator's operator== seems to be wrong

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101527

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug ipa/102982] [12/13/14/15 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c++/101990] [12/13/14/15 Regression] ICE after parse error with concepts

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101990

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #6 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/102058] [12/13/14/15 regression] 450.soplex regressed on x86_64 with -Ofast -march=generic (by 8-15%)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102058

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/102697] [12/13/14/15 Regression] overflow warning missing after -O2 vectorization

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102697

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/102314] [12/13/14/15 Regression] ICE in verify_ssa, at tree-ssa.c:1076 since r12-1319-gd4d38135b3137f1d – with deferred-length character variable

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102314

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/103548] Identical MMA assemble quads are incorrectly combined

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103548

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug ipa/103819] [11/12/13/14/15 Regression] ICE in redirect_callee, at cgraph.c:1389 with __attribute__((flatten)) and -O2 since r11-7940-ge7fd3b783238d034

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103819

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c/102416] ICE in gimplify_expr, at gimplify.c:15570 since r12-1108-g9a5de4d5af1c10a8

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102416

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #5 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/103253] Unused COND_MUL isn't removed by DCE even with -fno-trapping-math

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103253

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #17 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/103139] [12/13/14/15 Regression] ICE in fold_convert_loc, at fold-const.c:2573 since r12-4464-g017665f63047ce47

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103139

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug objc/102537] Objective-C: can't use >= USE_FIXUP_BEFORE paths on non-Darwin

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102537

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug d/103944] [12/13/14/15 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103944

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #16 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug testsuite/103298] [12 regressions] regressions on arm after r12-5301

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103298

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug ipa/103223] [12/13/14/15 regression] Access attribute dropped when ipa-sra is applied

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103223

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #15 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/104151] [11/12/13/14/15 Regression] x86: excessive code generated for 128-bit byteswap

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104151

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #19 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

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

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102587

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #14 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/103388] [12/13/14/15 Regression] missed optimization for dead code elimination at -O3 (trunk vs 11.2.0)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103388

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #11 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/104178] [12 Regreession] -fcompare-debug failure at -O3 -m32

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104178

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/104165] [12 Regression] -Warray-bounds for unreachable code inlined from std::sort()

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104165

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #14 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/103483] [12/13/14/15 regression] context-sensitive ranges change triggers stringop-overread

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103483

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #27 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c++/104620] FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104620

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #15 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug go/104290] [12/13 Regression] trunk 20220214 fails to build libgo on i686-gnu

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #36 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/104200] [12/13/14/15 Regression] FAIL: gcc.target/aarch64/atomic-inst-cas.c (test for excess errors) fails

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104200

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/105329] [12/13/14/15 Regression] Bogus restrict warning when assigning 1-char string literal to std::string since r12-3347-g8af8abfbbace49e6

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #32 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/104696] [OpenMP] component/array-ref/component (x.r[1].d) should use 'x' for GOMP_MAP_STRUCT (not yield 'x.r[1]' for nonptr 'x.r')

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104696

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/104912] [12/13/14/15 Regression] 416.gamess regression after r12-7612-g69619acd8d9b58

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104912

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #16 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/104986] [12/13/14/15 Regression] bogus writing 1 byte into a region of size 0 with -fwrapv and -O2 -fpeel-loops since r12-4698-gf6d012338bf87f42

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104986

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #14 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/105216] [12/13/14/15 regression] 8% regression for m-queens compared to gcc11 O2 on CLX. since r12-3876-g4a960d548b7d7d94

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105216

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #18 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/103416] [OpenMP] Double mapping via firstprivate(n) map(to:n [len: 4][implicit]) of loop bounds

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103416

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/102981] [12/13/14/15 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102981

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #11 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/105010] [12/13/14/15 regression] GCC 12 after 20220227 fails to build on powerpc64-freebsd with Error: invalid mfcr mask

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #25 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug libstdc++/105440] c++20: std::string's destructor not a constant expression when it should

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105440

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #4 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/105651] [12 Regression] bogus "may overlap" memcpy warning with std::string and operator+ at -O3

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105651

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #30 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/105275] [12/13/14/15 regression] 525.x264_r and 538.imagick_r regressed on x86_64 at -O2 with PGO after r12-7319-g90d693bdc9d718

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105275

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #5 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/105918] [12/13/14/15 Regression] Spurious Warray-bounds in std::to_chars since r12-2132-ga110855667782dac

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105918

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #6 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/103370] [12/13/14/15 Regression] Assembler error building glibc for ColdFire soft-float

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103370

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #12 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug c++/106434] [12 Regression] Spurious -Wnull-dereference when using std::unique_copy() since r12-5187-g1ae8edf5f73ca5c3

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106434

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #13 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/106069] [12/13/14/15 Regression] wrong code with -O -fno-tree-forwprop -maltivec on ppc64le

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106069

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #39 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/103637] [12/13/14/15 Regression] missing warning writing past the end of one of multiple elements of the same array

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103637

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #5 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug ipa/106783] [12/13/14/15 Regression] ICE in ipa-modref.cc:analyze_function since r12-5247-ga34edf9a3e907de2

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106783

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #4 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug target/105617] [12/13/14/15 Regression] Slp is maybe too aggressive in some/many cases

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105617

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #22 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug analyzer/106206] [12/13/14/15 Regression] ICE: canonical types differ for identical types 'int(...)' and 'int(...)' since r12-1931-ge61ffa201403e3

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106206

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #4 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/104088] [12/13/14/15 Regression] '-O2' (or higher) GCN offloading (only) 'libgomp.oacc-c-c++-common/vprop.c' excess errors: 'warning: writing 1 byte into a region of size 0 [-Wstringop

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104088

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/106786] [12/13/14/15 Regression] SRA regression causes extra instructions sometimes since r12-1529-gd7deee423f993bee

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106786

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #7 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/105679] [12 Regression] extra -Warray-bounds warning added with -fsanitize=shift due to jump threading

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105679

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #13 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug middle-end/106208] [12 Regression] ICE in branch_prob, at profile.cc:1459 since r12-5275-gbcebd05720540e25

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106208

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #8 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug fortran/104130] [12/13 Regression] ICE in gfc_add_class_array_ref, at fortran/class.c:274 since r12-4467-g64f9623765da3306

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104130

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #6 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/106842] [12 Regression] misleading warning : iteration X invokes undefined behavior

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106842

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #9 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug ipa/105682] [12/13/14/15 Regression] Both `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` on same function since r12-5177-g494bdadf28d0fb35

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105682

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #10 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

[Bug tree-optimization/106238] [12 regression] Inline optimization causes dangling pointer warning on "include/c++/12.1.0/bits/stl_tree.h"

2024-06-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106238

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|12.4|12.5

--- Comment #12 from Richard Biener  ---
GCC 12.4 is being released, retargeting bugs to GCC 12.5.

  1   2   3   4   5   >