[Bug tree-optimization/95845] Failure to optimize vector load made in separate operations to single load

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95845 --- Comment #3 from Richard Biener --- It's now vectorized at -O3 or with -ftree-slp-vectorize. In particular vect_slp_check_for_constructors now matches else if (code == BIT_INSERT_EXPR && VECTOR_TYPE_P (TREE_TYPE (rhs))

[Bug c++/102116] structured binding is returned from a function as rvalue in C++20 mode

2021-09-02 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102116 --- Comment #3 from Fedor Chelnokov --- Thanks a lot, it is clear now.

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

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

[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 Bug 102162 depends on bug 88085, which changed state. Bug 88085 Summary: User alignments on var decls not respected if smaller than type alignment https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 What|Removed

[Bug c++/102116] structured binding is returned from a function as rvalue in C++20 mode

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

[Bug target/95969] Use of __builtin_aarch64_im_lane_boundsi in AArch64 arm_neon.h interferes with gimple optimisation

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95969 --- Comment #3 from Andrew Pinski --- Created attachment 51396 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51396&action=edit Patch Simple patch which adds both generic and gimple level folding for __builtin_aarch64_im_lane_boundsi. In t

[Bug tree-optimization/102131] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu

2021-09-02 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102131 --- Comment #6 from Jiu Fu Guo --- Drafted a patch as below. With this patch, those cases can pass. diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 7af92d1c893..a400c42919b 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/

[Bug middle-end/25186] (short)(((int)short_var) <<1) should be folded so that the shift is done in the short type

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25186 Richard Biener changed: What|Removed |Added Keywords||easyhack Last reconfirmed|2021-08-21

[Bug target/30813] Numerical error--#define value differs from declared variable value

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30813 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug middle-end/323] optimized code gives strange floating point results

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323 Andrew Pinski changed: What|Removed |Added CC||kevin.glass at pnl dot gov --- Comment #22

[Bug tree-optimization/102155] LIM fill_always_executed_in handles contains_call incorrectly

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

[Bug target/102171] New: vget_low_*/vget_high_* intrinsics should become BIT_FIELD_REF during gimple

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102171 Bug ID: 102171 Summary: vget_low_*/vget_high_* intrinsics should become BIT_FIELD_REF during gimple Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: mi

[Bug target/44987] *mmintrin.h files incompatible with partial __attribute__((target("sse...")))

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44987 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.9.0 Resolution|---

[Bug target/44073] x86 constants could be unduplicated for -Os

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44073 Andrew Pinski changed: What|Removed |Added Summary|x86 constants could be |x86 constants could be

[Bug c/102172] New: ice in determine_exit_conditions, at tree-ssa-loop-manip.c:1049

2021-09-02 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102172 Bug ID: 102172 Summary: ice in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/59625] asm goto and TARGET_FOUR_JUMP_LIMIT

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59625 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c/102172] ice in determine_exit_conditions, at tree-ssa-loop-manip.c:1049

2021-09-02 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102172 --- Comment #1 from David Binderman --- That's only 35 revisions, I'll have a go at a git bisect.

[Bug c/102172] ice in determine_exit_conditions, at tree-ssa-loop-manip.c:1049

2021-09-02 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102172 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #2

[Bug c/102172] [12 Regression] ICE in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67

2021-09-02 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102172 Martin Liška changed: What|Removed |Added Ever confirmed|0 |1 Summary|ice in

[Bug tree-optimization/102172] [12 Regression] ICE in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67

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

[Bug target/102146] [11 regression] several test cases fails after r11-8940

2021-09-02 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102146 --- Comment #1 from HaoChen Gui --- For pr81348.c, it was already fixed by r11-8941. Segher backported it. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100952#c12 PASS: gcc.target/powerpc/pr81348.c (test for excess errors) PASS: gcc.target/pow

[Bug target/95969] Use of __builtin_aarch64_im_lane_boundsi in AArch64 arm_neon.h interferes with gimple optimisation

2021-09-02 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95969 ktkachov at gcc dot gnu.org changed: What|Removed |Added CC||ktkachov at gcc dot gnu.org

[Bug target/67129] x86: erratic parsing of "#pragma GCC target ("...")"

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67129 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #6 from Andrew Pi

[Bug target/67129] x86: erratic parsing of "#pragma GCC target ("...")"

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67129 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug target/67129] x86: erratic parsing of "#pragma GCC target ("...")"

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67129 --- Comment #8 from Andrew Pinski --- (In reply to Dominik Vogt from comment #4) > Unlike > global_options, the structure global_options_set is never saved or restored, > so any target pragma or attribute may change the structure for the rest of

[Bug target/95969] Use of __builtin_aarch64_im_lane_boundsi in AArch64 arm_neon.h interferes with gimple optimisation

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95969 Andrew Pinski changed: What|Removed |Added Attachment #51396|0 |1 is obsolete|

[Bug other/81242] Clear-to-EOL in diagnostics colorization corrupts output

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

[Bug other/90411] Colored diagnostics can omit characters

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90411 Andrew Pinski changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #5 fro

[Bug other/90411] Colored diagnostics can omit characters

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90411 --- Comment #6 from Andrew Pinski --- Another reference of the problem. http://invisible-island.net/xterm/xterm.faq.html#grep_colors

[Bug rtl-optimization/98438] Rather bad optimization of midpoint implementation for __int128 (and other types)

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98438 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2020-12-31 00:00:00 |2021-9-2 --- Comment #8 from Andrew Pins

[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

2021-09-02 Thread arnd at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 --- Comment #27 from Arnd Bergmann --- The linux kernel instance from arch/parisc/ looks like a bug we fixed in arch/arm a few years ago, by adding the required alignment directive to the linker script. If changing the linker script is not poss

[Bug testsuite/50670] GCC testsuite try to execute sse2 code on non-sse2 machines

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50670 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug testsuite/50704] FAIL: gcc.target/i386/warn-vect-op-1.c

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50704 Andrew Pinski changed: What|Removed |Added Component|middle-end |testsuite Target Milestone|---

[Bug testsuite/50704] FAIL: gcc.target/i386/warn-vect-op-1.c

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

[Bug testsuite/52249] FAIL: gfortran.dg/vect/pr32380.f

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52249 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug fortran/60236] gfortran.dg/vect/pr32380.f fails on ARM

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60236 Andrew Pinski changed: What|Removed |Added CC||Greta.Yorsh at arm dot com --- Comment #

[Bug tree-optimization/102172] [12 Regression] ICE in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102172 --- Comment #3 from Richard Biener --- there are duplicates of this bug already

[Bug testsuite/51693] New XPASSes in vectorizer testsuite on powerpc64-suse-linux

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51693 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #11 from Petro Karashchenko --- Sorry but based on @cindex @code{aligned} variable attribute @item aligned @itemx aligned (@var{alignment}) The @code{aligned} attribute specifies a MINIMUM alignment for the variable or structure fie

[Bug tree-optimization/102172] [12 Regression] ICE in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67

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

[Bug tree-optimization/102087] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102087 --- Comment #11 from Andrew Pinski --- *** Bug 102172 has been marked as a duplicate of this bug. ***

[Bug testsuite/70316] FAIL: gcc.dg/tree-ssa/pr68714.c scan-tree-dump-times optimized " <= " 1

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70316 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug tree-optimization/99591] Improving __builtin_add_overflow performance on x86-64

2021-09-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99591 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2af6dd77ea742d4ee911f466878624972929508a commit r12-3312-g2af6dd77ea742d4ee911f466878624972929508a Author: Jakub Jelinek Date: Th

[Bug tree-optimization/99591] Improving __builtin_add_overflow performance on x86-64

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

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #12 from Richard Biener --- (In reply to Petro Karashchenko from comment #11) > Sorry but based on > > @cindex @code{aligned} variable attribute > @item aligned > @itemx aligned (@var{alignment}) > The @code{aligned} attribute specif

[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

2021-09-02 Thread deller at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 --- Comment #28 from deller at gmx dot de --- Arnd, there are various calls to the get_unaligned_X() functions in all kernel bootloaders, specifically in the kernel decompression routines: [deller@ls3530 linux-2.6]$ grep get_unaligned lib/decomp

[Bug c++/61061] FAIL: g++.dg/inherit/covariant7.C

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61061 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRME

[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 --- Comment #29 from Andrew Pinski --- (In reply to deller from comment #28) > Arnd, > there are various calls to the get_unaligned_X() functions in all kernel > bootloaders, specifically in the kernel decompression routines: get_unaligned_ fu

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #13 from Petro Karashchenko --- Sorry that I brought some confusion. I was reading some latest comments and didn't fully payed attention to a ticket description. The reason for my comment is https://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug target/68275] bb-slp-38 FAILs on armeb

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68275 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2015-11-11 00:00:00 |2021-9-2 --- Comment #5 from Andrew Pins

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #14 from Petro Karashchenko --- Probably I need to fill a ticket to allow "packed" to be applied for variables and not only to a types of structure fields.

[Bug middle-end/52450] FAIL: gcc.dg/torture/pr52402.c at -O1 and above

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52450 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.8.0 See Also|

[Bug tree-optimization/97352] gcc.dg/vect/bb-slp-pr78205.c fails to vectorize all opportunities with AVX

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97352 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/98792] Fail to use SHRN instructions for narrowing shift on aarch64

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98792 --- Comment #3 from Andrew Pinski --- We do produce shrn2 but not shrn now: .L2: ldp q0, q1, [x0] add x0, x0, 32 ushrv0.4s, v0.4s, 3 xtn v0.4h, v0.4s shrn2 v0.8h, v1.4s, 3 str

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #15 from rguenther at suse dot de --- On Thu, 2 Sep 2021, petro.karashchenko at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 > > --- Comment #13 from Petro Karashchenko > --- > Sorry that I brought som

[Bug target/95969] Use of __builtin_aarch64_im_lane_boundsi in AArch64 arm_neon.h interferes with gimple optimisation

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95969 --- Comment #6 from Andrew Pinski --- There are two bugs with this change. First is in the change itself; I forgot to check to make sure totalsize and elementsize are non-zero. I have that fixed. The second issue is some gimple level passes are n

[Bug target/102173] New: [12 Regression] ICEs gcc.target/aarch64/sve/acle/general-c/type_redef_1.c after recent error recovery patch

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102173 Bug ID: 102173 Summary: [12 Regression] ICEs gcc.target/aarch64/sve/acle/general-c/type_redef_1.c after recent error recovery patch Product: gcc Version: 12.0

[Bug target/102173] [12 Regression] ICEs gcc.target/aarch64/sve/acle/general-c/type_redef_1.c after recent error recovery patch

2021-09-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102173 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Assignee|unassigned at gcc

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #16 from Petro Karashchenko --- Again based on your description even if we go with putting "tolerance" on the type should not work because in "typedef int tolerant_int __attribute__((aligned(1)));" the "int" default alignment is 4 an

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #17 from rguenther at suse dot de --- On Thu, 2 Sep 2021, petro.karashchenko at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 > > --- Comment #16 from Petro Karashchenko > --- > Again based on your desc

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #18 from Petro Karashchenko --- Yes. So I just checked GCC man and see that The aligned attribute can only increase the alignment; but you can decrease it by specifying packed as well. See below. Note that the effectiveness of alig

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #19 from Petro Karashchenko --- Sorry my bad again. Just checked with GCC 11 man page When used on a struct, or struct member, the aligned attribute can only increase the alignment; in order to decrease it, the packed attribute must

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #21 from Rimvydas (RJ) --- After long poking with gdb the tree t1 and t2 structures in lto-symtab.c:warn_type_compatibility_p() just before "lev |5" is returned, it looks like trees are are almost identical except for t1->decl_common

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #22 from Rimvydas (RJ) --- Created attachment 51398 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51398&action=edit proposed patch

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread petro.karashchenko at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #20 from Petro Karashchenko --- I just checked next case typedef int tolerant_int __attribute__((aligned(1))); tolerant_int var; int foo(void) { return var; } -- arm-none-eabi-gcc -save-temps -Wall

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #23 from Rimvydas (RJ) --- Created attachment 51399 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51399&action=edit additional patch, for previous behavior

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #24 from Rimvydas (RJ) --- Created attachment 51400 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51400&action=edit alog() intrinsic testcases

[Bug c++/102174] New: Unused result of undefined behavior arithmetic is accepted during constant evaluation

2021-09-02 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102174 Bug ID: 102174 Summary: Unused result of undefined behavior arithmetic is accepted during constant evaluation Product: gcc Version: 12.0 Status: UNCONFIRMED Ke

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #25 from Rimvydas (RJ) --- Created attachment 51401 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51401&action=edit testcase with ice deep in rtl code for sign extend

[Bug c++/102175] New: Error comparing the pointers on static class fields in static_assert

2021-09-02 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102175 Bug ID: 102175 Summary: Error comparing the pointers on static class fields in static_assert Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/88085] User alignments on var decls not respected if smaller than type alignment

2021-09-02 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 --- Comment #21 from rguenther at suse dot de --- On Thu, 2 Sep 2021, petro.karashchenko at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88085 > > --- Comment #20 from Petro Karashchenko > --- > I just checked next case

[Bug tree-optimization/102176] New: BB SLP scalar costing is off with extern promoted nodes

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102176 Bug ID: 102176 Summary: BB SLP scalar costing is off with extern promoted nodes Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prior

[Bug tree-optimization/102176] BB SLP scalar costing is off with extern promoted nodes

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102176 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug tree-optimization/102176] BB SLP scalar costing is off with extern promoted nodes

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102176 --- Comment #1 from Richard Biener --- So in this case we have _2 = _1 * a_11(D) still pure_slp even though it does not participate in any vectorized SLP node. Unfortunately marking of PURE_SLP_STMTs happens before analyzing operations (the vec

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #6 from Jason Merrill --- Created attachment 51402 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51402&action=edit patch to silence constexpr issues with erroneous functions Here are a couple of other commits I tried to reduce

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #7 from Jason Merrill --- Created attachment 51403 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51403&action=edit patch to stop compiling a function after static_assert

[Bug target/102173] [12 Regression] ICEs gcc.target/aarch64/sve/acle/general-c/type_redef_1.c after recent error recovery patch

2021-09-02 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102173 Christophe Lyon changed: What|Removed |Added CC||clyon at gcc dot gnu.org --- Comment

[Bug tree-optimization/102176] BB SLP scalar costing is off with extern promoted nodes

2021-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102176 --- Comment #2 from Richard Biener --- Created attachment 51404 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51404&action=edit patch This brute-force approach of re-computing something like PURE_SLP_STMT minus the set of defs used in ex

[Bug c++/96286] Unhelpful errors after a failed static_assert

2021-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96286 --- Comment #8 from Jonathan Wakely --- (In reply to Jason Merrill from comment #5) > I get better results if I add the static_assert to __uninitialized_copy_a, > so we hit it before queuing any further instantiations. I actually need to check t

[Bug pch/71934] pch cannot be disabled so gcc cannot be position independent

2021-09-02 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934 Iain Sandoe changed: What|Removed |Added CC||iains at gcc dot gnu.org --- Comment #6 fr

[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

2021-09-02 Thread deller at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 --- Comment #30 from deller at gmx dot de --- Created attachment 51405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51405&action=edit Linux kernel patch to add compiler optimization barrier Linux kernel boots sucessfully with this patch

[Bug middle-end/102162] Byte-wise access optimized away at -O1 and above

2021-09-02 Thread deller at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 --- Comment #31 from deller at gmx dot de --- Richard suggested that adding a compiler optimization barrier (__asm__ ("" : "+r" (__pptr))) might fix the problem. I tested the attached patch and it works nicely.

[Bug c++/102177] New: Implement C++17 P0418R2

2021-09-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102177 Bug ID: 102177 Summary: Implement C++17 P0418R2 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee:

[Bug c++/102177] Implement C++17 P0418R2

2021-09-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102177 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2021-09-02 Ever confirmed|0

[Bug target/61359] GCC Bootstrap comparison failures on hppa2.0w-hp-hpux11.23

2021-09-02 Thread me at larbob dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61359 --- Comment #7 from Larkin Nickle --- For anyone finding this in the future, I'm guessing 32-bit builds of GCC on HP-UX+PA-RISC were just broken for a while. Building 5.5.0 with libquadmath enabled worked fine.

[Bug c++/102177] Implement C++17 P0418R2

2021-09-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102177 Jakub Jelinek changed: What|Removed |Added CC||dje at gcc dot gnu.org --- Comment #1 f

[Bug c++/102177] Implement C++17 P0418R2

2021-09-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102177 --- Comment #2 from Jakub Jelinek --- Created attachment 51406 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51406&action=edit gcc12-pr102177.patch Untested patch to remove the warning and just use maximum for success if weaker than fail

[Bug testsuite/37182] [4.4 Regression] Revision 139286 caused gcc.dg/pr17506.c and gcc.dg/uninit-15.c

2021-09-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37182 --- Comment #6 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:9695e1c23be5b5c55d572ced152897313ddb96ae commit r12-3315-g9695e1c23be5b5c55d572ced152897313ddb96ae Author: Martin Sebor Date: Thu

[Bug tree-optimization/17506] [4.0/4.1 Regression] warning about uninitialized variable points to wrong location

2021-09-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506 --- Comment #37 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:9695e1c23be5b5c55d572ced152897313ddb96ae commit r12-3315-g9695e1c23be5b5c55d572ced152897313ddb96ae Author: Martin Sebor Date: Thu

[Bug tree-optimization/95187] Failure to optimize bool check into consecutive literals

2021-09-02 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95187 --- Comment #3 from Gabriel Ravier --- Seems to be fixed since GCC 11

[Bug tree-optimization/102178] New: SPECFP 2006 470.lbm regressions on AMD Zen CPUs after r12-897-gde56f95afaaa22

2021-09-02 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102178 Bug ID: 102178 Summary: SPECFP 2006 470.lbm regressions on AMD Zen CPUs after r12-897-gde56f95afaaa22 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/96615] Failure to optimize out loop that eventually ends but has no side effects involving decrease of loop counter using an unsigned operation and the loop being done through r

2021-09-02 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96615 --- Comment #3 from Gabriel Ravier --- It seems to be optimized into nothing as of right now

[Bug target/96127] ICE in extract_insn, at recog.c:2294

2021-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96127 --- Comment #3 from Jonathan Wakely --- Andreas, do you need to backport this, or should it be closed as fixed for 11.0?

[Bug target/102154] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-3277-gd2874d905647a1d146dafa60199d440e837adc4d

2021-09-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102154 --- Comment #13 from Jonathan Wakely --- Is this also the cause of several libstdc++ FAILs on ppc64le? /home/jwakely/build/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:2936: error: unrecognizable insn: (insn 11 10 12 2 (set

[Bug target/87198] ICE in extract_insn, at recog.c:2304

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

[Bug pch/71934] pch cannot be disabled so gcc cannot be position independent

2021-09-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #7

[Bug c++/102177] Implement C++17 P0418R2

2021-09-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102177 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:dba1ab212292839572fda60df00965e094a11252 commit r12-3317-gdba1ab212292839572fda60df00965e094a11252 Author: Jonathan Wakely Date:

[Bug target/102154] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-3277-gd2874d905647a1d146dafa60199d440e837adc4d

2021-09-02 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102154 --- Comment #14 from Segher Boessenkool --- (In reply to Jonathan Wakely from comment #13) > Is this also the cause of several libstdc++ FAILs on ppc64le? Yes. I have asked for reversion of g:d2874d905647:

[Bug fortran/93834] [9/10/11/12 Regression] ICE in trans_caf_is_present, at fortran/trans-intrinsic.c:8469

2021-09-02 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93834 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|anlauf at gcc dot gnu.org |unassigned at gcc dot

[Bug target/101849] MMA built-in dies with a verify_gimple failed error

2021-09-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101849 --- Comment #7 from CVS Commits --- The releases/gcc-11 branch has been updated by Peter Bergner : https://gcc.gnu.org/g:585667735e9fb7a38357a84d4d25206a8ccec576 commit r11-8951-g585667735e9fb7a38357a84d4d25206a8ccec576 Author: Peter Bergner

  1   2   >