[Bug tree-optimization/116523] [15 regression] ICE when building hardinfo-0.6_alpha_pre20221113

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116523 --- Comment #3 from Andrew Pinski --- Whoops wrong one. PR 116510 *** This bug has been marked as a duplicate of bug 116510 ***

[Bug middle-end/116510] [15 Regression] ice in decompose, at wide-int.h:1049

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116510 Andrew Pinski changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #

[Bug rtl-optimization/116516] [15 Regression] [lra] ICE in decompose_normal_address, at rtlanal.cc:6712 by r15-3213-g708ee71808ea61

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116516 Andrew Pinski changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #

[Bug tree-optimization/116523] [15 regression] ICE when building hardinfo-0.6_alpha_pre20221113

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116523 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug target/116521] missing optimization: xtensa sibcall with windowed ABI

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116521 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/116521] missing optimization: xtensa tail-call

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116521 --- Comment #1 from Andrew Pinski --- The default ABI for xtensa is to use windowed registers which does not currently support sibcalling. include/xtensa-config.h : #define XSHAL_ABI XTHAL_ABI_WINDOWED #define XTHAL_ABI_WI

[Bug tree-optimization/116520] Multiple condition lead to missing vectorization due to missing early break

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116520 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Severity|

[Bug rtl-optimization/116516] [15 Regression] [lra] ICE in decompose_normal_address, at rtlanal.cc:6712 by r15-3213-g708ee71808ea61

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116516 --- Comment #4 from Andrew Pinski --- Just for reference here is the code: ``` extern void my_func (int); typedef struct { int var; } info_t; extern void *_data_offs; void test() { info_t *info = (info_t *) ((void *)((void *)1) + ((unsigned

[Bug tree-optimization/116515] LTO link time prints warning for system headers

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

[Bug tree-optimization/116518] GCC does not optimize-out useless operations. Clang does.

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116518 --- Comment #2 from Andrew Pinski --- I tried to reduce it to: ``` struct s1 { struct { char t[1]; } t; unsigned long tt; }; struct s2 { char t[3]; }; int f() { s2 *t; { struct s1 a = {}; a.t.t[0] = 120; a.

[Bug tree-optimization/116518] GCC does not optimize-out useless operations. Clang does.

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

[Bug tree-optimization/116518] GCC does not optimize-out useless operations. Clang does.

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116518 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 116519, which changed state. Bug 116519 Summary: Arm64(?): undue array bounds warning https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116519 What|Removed |Added

[Bug tree-optimization/116519] Arm64(?): undue array bounds warning

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

[Bug target/116512] [12/13/14/15 Regression] vzeroupper emitted even though the upper half of the z registers are returned

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

[Bug target/116512] [12/13/14/15 Regression] vzeroupper emitted even though the upper half of the z registers are returned

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

[Bug target/116512] [12/13/14/15 Regression] vzeroupper emitted even though the upper half of the z registers are returned

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116512 Andrew Pinski changed: What|Removed |Added Known to work||7.1.0 Target Milestone|---

[Bug c++/116511] [14/15 Regression] ICE with enum value used in requires

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116511 --- Comment #3 from Andrew Pinski --- Reduced and cleaned up some more: ``` template struct s1 { enum { e1 = 1 }; }; template struct s2 { enum { e1 = s1::e1 }; s2() requires(0 != e1); }; s2<8> a; ```

[Bug c++/116511] [14/15 Regression] ICE with enum value used in requires

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116511 Andrew Pinski changed: What|Removed |Added Summary|ICE segmentation fault |[14/15 Regression] ICE with

[Bug c++/116511] ICE segmentation fault

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116511 --- Comment #1 from Andrew Pinski --- Back trace: #0 tree_class_check (__g=0x25daeef "to_wide", __l=6460, __f=0x25d20d9 "../../gcc/tree.h", __class=tcc_type, __t=0x0) at ../../gcc/tree.h:3786 #1 wi::to_wide (t=t@entry=0x772eee38) at ../../

[Bug middle-end/116510] [15 Regression] ice in decompose, at wide-int.h:1049

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116510 --- Comment #6 from Andrew Pinski --- #6 0x0187822c in gimple_simplify_226 (res_op=0x7fffcd00, seq=0x7fffced0, valueize=0xd13880 , type=0x7741cb28, captures=0x7fffa160, cmp=EQ_EXPR) at gimple-match-9.cc:1994 1994 if

[Bug tree-optimization/116510] [15 Regression] ice in decompose, at wide-int.h:1049

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116510 --- Comment #2 from Andrew Pinski --- There is a type mismatch going on ...

[Bug tree-optimization/116510] [15 Regression] ice in decompose, at wide-int.h:1049

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

[Bug tree-optimization/116510] [15 Regression] ice in decompose, at wide-int.h:1049

2024-08-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116510 Andrew Pinski changed: What|Removed |Added Component|c |tree-optimization Summary|ic

[Bug target/107533] Inefficient code sequence for fp16 testcase on aarch64

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107533 --- Comment #3 from Andrew Pinski --- (In reply to Ramana Radhakrishnan from comment #2) > yes the by-value parameters are a separate issue that I hope recent patches > on the list (I remember something flying past) should help correct. The pat

[Bug middle-end/116508] [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116508 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/116509] 128bit integer compares can be improved

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116509 --- Comment #1 from Andrew Pinski --- Created attachment 59018 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59018&action=edit What LLVM produces This is what LLVM produces. GCC should be able to do similarly.

[Bug target/116509] New: 128bit integer compares can be improved

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116509 Bug ID: 116509 Summary: 128bit integer compares can be improved Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement

[Bug middle-end/116508] [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116508 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > (In reply to Andrew Pinski from comment #2) > > part of the problem here is the use of OPTAB_DIRECT when it should use > > OPTAB_WIDEN instead. > > That fixes s

[Bug middle-end/116508] [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116508 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > part of the problem here is the use of OPTAB_DIRECT when it should use > OPTAB_WIDEN instead. That fixes short but for char looks like there is still some cost

[Bug middle-end/116508] [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116508 --- Comment #2 from Andrew Pinski --- part of the problem here is the use of OPTAB_DIRECT when it should use OPTAB_WIDEN instead.

[Bug target/116507] [15 Regression] movhi_aarch64 should use fmov if FP16

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116507 --- Comment #1 from Andrew Pinski --- Hmm, the whole `*mov_aarch64` set of patterns are a mess and looks like they need some cleanup too.

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug c++/85282] CWG 727 (full specialization in non-namespace scope)

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85282 Andrew Pinski changed: What|Removed |Added See Also||https://bugzilla.mozilla.or

[Bug target/116484] Allow constexpr expression in riscv_rvv_vector_bits attribute and arm_sve_vector_bits

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116484 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > (In reply to Andrew Pinski from comment #5) > > (In reply to J Lee from comment #4) > > > Is this error also related to the same 'const' issue? > > > > No that

[Bug target/116484] Allow constexpr expression in riscv_rvv_vector_bits attribute and arm_sve_vector_bits

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116484 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > (In reply to J Lee from comment #4) > > Is this error also related to the same 'const' issue? > > No that is unrelated to this attribute issue. Well the origin

[Bug target/116484] Allow constexpr expression in riscv_rvv_vector_bits attribute and arm_sve_vector_bits

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116484 --- Comment #5 from Andrew Pinski --- (In reply to J Lee from comment #4) > Is this error also related to the same 'const' issue? No that is unrelated to this attribute issue.

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/116508] [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804

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

[Bug middle-end/116508] New: [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116508 Bug ID: 116508 Summary: [15 Regression] `popcount(short) == 1` or char no longer expands to using `(arg ^ (arg - 1)) > arg - 1` trick after r15-2946-gfcc3af99498804 Product

[Bug target/116507] [15 Regression] movhi_aarch64 should use fmov if FP16

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116507 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug target/116507] New: [15 Regression] movhi_aarch64 should use fmov if FP16

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116507 Bug ID: 116507 Summary: [15 Regression] movhi_aarch64 should use fmov if FP16 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enha

[Bug testsuite/116500] gcc.dg/vect/vect-switch-ifcvt-1.c FAILs on sparc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116500 --- Comment #8 from Andrew Pinski --- (In reply to andi from comment #7) > Thanks. Updated patch. This one seems obvious so I'll commit soon. > > diff --git a/gcc/testsuite/gcc.dg/vect/vect-switch-ifcvt-1.c > b/gcc/testsuite/gcc.dg/vect/vect-sw

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Note after r15-2946-gfcc3af99498804, for: > ``` > int fc(unsigned char a) > { > return __builtin_popcountg(a) == 1; > } > ``` > > Without CSSC, GCC produces:

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #4 from Andrew Pinski --- Note after r15-2946-gfcc3af99498804, for: ``` int fc(unsigned char a) { return __builtin_popcountg(a) == 1; } ``` Without CSSC, GCC produces: ``` and w0, w0, 255 fmovd31, x0

[Bug testsuite/116500] gcc.dg/vect/vect-switch-ifcvt-1.c FAILs on sparc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116500 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |testsuite Last reconfirmed|

[Bug tree-optimization/116500] gcc.dg/vect/vect-switch-ifcvt-1.c FAILs

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116500 --- Comment #5 from Andrew Pinski --- (In reply to Andi Kleen from comment #4) > It seems sparc doesn't support comparisons in vectorization? I think you want to check vect_condition for this. (like bb-slp-69.c )

[Bug c++/112456] Diagnostic for [[nodiscard]] on a constructor could be improved

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112456 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org Se

[Bug target/115612] powerpc: define_insn_and_splits calling gen_reg_rtx unconditionally (-flate-combine disabled by default for powerpc port)

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115612 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/116505] ICE: in gen_reg_rtx, at emit-rtl.cc:1177 with -O -fprofile-arcs -fprofile-values -flate-combine-instructions on powerpc64le with basic code

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

[Bug target/115612] powerpc: define_insn_and_splits calling gen_reg_rtx unconditionally (-flate-combine disabled by default for powerpc port)

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115612 Andrew Pinski changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #4

[Bug c++/116502] [15 Regression] -Wunused-result warning cannot be suppressed if coroutine awaiter returns a reference after r15-2318-g2664c1bf83855b

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116502 Andrew Pinski changed: What|Removed |Added Summary|[15 Regression] |[15 Regression] |-Wun

[Bug c++/116499] [modules] Replace CMI term with BMI in documentation, commit messages, etc

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116499 --- Comment #1 from Andrew Pinski --- Note BMI is used as a x86_64 target instruction set; Bit manipulation instruction set .

[Bug tree-optimization/116501] wrong code with __builtin_sub_overflow_p() and _BitInt() at -O1

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116501 Andrew Pinski changed: What|Removed |Added Target|x86_64-pc-linux-gnu |x86_64-pc-linux-gnu |

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #14 from Andrew Pinski --- (In reply to andi from comment #13) > Or a test case for the intended register allocation benefits? > That's more complicated and won't be small. So what if it won't be small but it will be understanding t

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #5 from Andrew Pinski --- Musttail can never be used for correctness. Also lto deals deals just fine with localizing a function. But again you are making hacks what for? Code which is specific to one application rather than making

[Bug target/116497] static functions ABI should be improved for SSE caller saved registers

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #3 from Andrew Pinski --- >When writing threaded code interpreters by chaining functions with musttail >the normal ABI behavior of some caller saved registers can cause unnecessary >spills and fills compared to using indirect goto.

[Bug target/116497] static functions ABI should be improved for SSE caller saved registers

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/116497] Need no_caller_saved_registers with SSE support

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116497 --- Comment #2 from Andrew Pinski --- Sounds more like the attribute is not needed but gcc should figure out how to improve the abi for static functions instead, like what is done already for 32bit x86. I think even musttail is also a bogus way

[Bug c/97986] [12/13/14/15 Regression] ICE in force_constant_size when applying va_arg to VLA type since r6-91-gf8e89441bc5518f4

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97986 Andrew Pinski changed: What|Removed |Added CC||hnarkaytis at gmail dot com --- Comment

[Bug c/116495] Crash on va_arg with variable size type

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

[Bug c++/85973] [[nodiscard]] on class shall emit a warning for unused anonymous variable

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85973 Andrew Pinski changed: What|Removed |Added CC||leonid.satanovsky at gmail dot com ---

[Bug c++/116441] [[nodiscard]] attribute ignored in some cases

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

[Bug target/116493] widening reduction add could be better

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116493 --- Comment #1 from Andrew Pinski --- Forgot to mention this is at -O2 (or -O3).

[Bug target/116493] New: widening reduction add could be better

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116493 Bug ID: 116493 Summary: widening reduction add could be better Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement

[Bug c++/116492] inherited constructors with concept in subclass overrides constructor in subclass

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116492 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Slightly reduced: In this example if you comment out: ``` requires true_c ``` GCC does the correct thing.

[Bug c++/116492] inherited constructors with concept in subclass overrides constructor in subclass

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116492 --- Comment #2 from Andrew Pinski --- >The same does not happen in clang, and in gcc with similar examples from other >classes I have tried. So it comes down to the concept on the constructor which is why you didn't run into similar examples f

[Bug c++/116492] inherited constructors with concept in subclass overrides constructor in subclass

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116492 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-08-26 Summary|inherited

[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 --- Comment #7 from Andrew Pinski --- Or rather see https://cmake.org/cmake/help/latest/prop_tgt/CXX_EXTENSIONS.html#prop_tgt:CXX_EXTENSIONS . That is -std=c++17 vs -std=gnu++17. GCC defaults to gnu++17 in newer versions of GCC. So the bug is

[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 --- Comment #6 from Andrew Pinski --- (In reply to Sergey Markelov from comment #3) > This is not a duplicate. The macro is defined conditionally, this is not a > correct behavior. Yes and that is by design. -std=gnu++17 enables some non-standa

[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 --- Comment #5 from Andrew Pinski --- Specifically https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84400#c2

[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 --- Comment #4 from Andrew Pinski --- (In reply to Sergey Markelov from comment #3) > This is not a duplicate. The macro is defined conditionally, this is not a > correct behavior. Yes it is. Please read that one and pr84400 .

[Bug target/65128] remove "linux" and "unix" from preprocessor macros from cpp-5

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65128 Andrew Pinski changed: What|Removed |Added CC||mihaipop11 at gmail dot com --- Comment

[Bug c++/84400] “linux” string in path replaced with “1” when using “<>” angle brackets to include a header through a macro

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84400 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #5 from Andrew Pin

[Bug target/65128] remove "linux" and "unix" from preprocessor macros from cpp-5

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65128 Andrew Pinski changed: What|Removed |Added CC||sergio_nsk at yahoo dot de --- Comment #

[Bug c++/116491] GCC defines macro linux if -std is not set, and does not define otherwise

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116491 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c/116489] Conflict between noinit and section __attribute__ makes object files (and static libraries) unnecessarily large

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116489 --- Comment #2 from Andrew Pinski --- >In any case, the behavior seems to be undocumented: Well considering the documentation says: place sections with the .noinit prefix you can assume they conflict :). Also "prefix" is almost always added w

[Bug c/116489] Conflict between noinit and section __attribute__ makes object files (and static libraries) unnecessarily large

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

[Bug target/114224] popcount RTL cost seems wrong with cssc

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Interesting: > ``` > int h1(unsigned a) > { > return __builtin_popcountg(a) == 1; > } > ``` > works. > > > Anyways I will be adding POPCOUNT's rtl cos

[Bug rtl-optimization/116488] [15 Regression] wrong code at -O{s,2,3} with "-fno-forward-propagate" on x86_64-linux-gnu

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

[Bug rtl-optimization/116488] [15 Regression] wrong code at -O{s,2,3} with "-fno-forward-propagate" on x86_64-linux-gnu

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116488 Andrew Pinski changed: What|Removed |Added Version|unknown |15.0 Target Milestone|---

[Bug middle-end/116487] Miscompile with different optimization flags

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

[Bug middle-end/116486] [15 Regression] wrong code with __builtin_stdc_first_leading_one() at -O2 -fno-tree-ccp

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116486 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/116486] [15 Regression] wrong code with __builtin_stdc_first_leading_one() at -O2 -fno-tree-ccp

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

[Bug c/116483] RFE: a notion for asm goto to indicate all labels in the function may be jumped to

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116483 --- Comment #7 from Andrew Pinski --- (In reply to Alexander Monakov from comment #6) > with the caveats that you'd only get that for future gcc releases I think this caveat is fine as if adding the other feature to asm goto you would also have

[Bug tree-optimization/116485] CFG cleanup should prune unreachable switch cases

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

[Bug tree-optimization/116460] [14/15 Regression] LTO ICE with -g during GIMPLE pass: forwprop

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116460 --- Comment #22 from Andrew Pinski --- (In reply to Richard Biener from comment #20) > Unfortunately the following doesn't reproduce the issue. > > #include > #include > > void g(); > > void f(int nBands, double maxZErr) { > for (int i

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/116484] Allow constexpr expression in riscv_rvv_vector_bits attribute and arm_sve_vector_bits

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

[Bug target/116484] Allow constexpr expression in riscv_rvv_vector_bits attribute

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116484 Andrew Pinski changed: What|Removed |Added See Also||https://github.com/riscv-no

[Bug tree-optimization/116460] [14/15 Regression] LTO ICE with -g during GIMPLE pass: forwprop

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116460 --- Comment #16 from Andrew Pinski --- (In reply to Richard Biener from comment #14) > (In reply to Andrew Pinski from comment #13) > > (In reply to Andrew Pinski from comment #8) > > > ./a.ltrans6.ltrans.212t.forwprop4 > > > > > > Removing dea

[Bug c/116483] RFE: a notion for asm goto to indicate all labels in the function may be jumped to

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116483 --- Comment #3 from Andrew Pinski --- > But for satisfying some tools analyzing the generated machine code Also this sounds like a limitation in the tool analyzing the generated code and outside of gcc; I know helping the tool along is useful b

[Bug c/116483] RFE: a notion for asm goto to indicate all labels in the function may be jumped to

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

[Bug c++/116484] Allow constexpr expression in riscv_rvv_vector_bits attribute

2024-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116484 --- Comment #1 from Andrew Pinski --- This attribute is not documented so ...

[Bug tree-optimization/116481] [12/13/14/15 Regression] `arrays of functions are not meaningful` error message happens with -W -Wall -O2 even though there are no arrays of function types used

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 --- Comment #5 from Andrew Pinski --- (In reply to Bruno Haible from comment #4) > Why? This code is accessing read-only memory near the address of the 'tramp' > function. Why would it need 'volatile' when doing so? (I don't claim that > this is

[Bug tree-optimization/116460] [14/15 Regression] LTO ICE with -g during GIMPLE pass: forwprop

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116460 --- Comment #13 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > ./a.ltrans6.ltrans.212t.forwprop4 > > Removing dead stmt noDataCandVec$_M_start_888 = PHI <_1783(176), _577(186)> > ... > Removing dead stmt:_598 = _888 + 16;

[Bug tree-optimization/116481] [12/13/14/15 Regression] Compilation error caused by -Warray-bounds and -O2

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 Andrew Pinski changed: What|Removed |Added Known to fail||12.1.0 Last reconfirmed|

[Bug tree-optimization/116481] Compilation error caused by -Warray-bounds and -O2

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116481 Andrew Pinski changed: What|Removed |Added Blocks||56456 Target|hppa-linux-gnu

[Bug middle-end/116480] [15 Regression] ICE: in operand_subword_force, at emit-rtl.cc:1824 at -O2 with __builtin_stdc_has_single_bit() and _BitInt(65...128) on aarch64

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116480 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

[Bug tree-optimization/116463] [15 Regression] fast-math-complex-mls-{double,float}.c fail after r15-3087-gb07f8a301158e5

2024-08-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116463 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

<    1   2   3   4   5   6   7   8   9   10   >