[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-16 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #3 from Franz Sirl --- (In reply to Segher Boessenkool from comment #1) > The -many is problematic, that is the whole point of this. As in this > example: on different subtargets there are different machine code > translations for t

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-16 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #4 from Franz Sirl --- Created attachment 51164 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51164&action=edit Half-baken trial patch How about something along this patch? It's not fully done (no good idea about SPEC stuff l

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-21 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 Franz Sirl changed: What|Removed |Added Attachment #51164|0 |1 is obsolete|

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-21 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #9 from Franz Sirl --- (In reply to Segher Boessenkool from comment #8) > I don't think it is a good idea to add workaround upon workaround to avoid > some of the not-so-useful behaviours of -many. Instead, we should just > not use

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-22 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #12 from Franz Sirl --- The emitted .machine is easy to fix, what's not so easy to fix is the intention behind Segher's change that caused the wrong .machine. Consider this source compiled with -mcpu=7400: void ppcaltivecfunc (void

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-22 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #15 from Franz Sirl --- (In reply to Segher Boessenkool from comment #14) > (In reply to Franz Sirl from comment #12) > > The emitted .machine is easy to fix, what's not so easy to fix is the > > intention behind Segher's change that

[Bug target/101393] PowerPC32 inline assembly broken by commit 2d94f7dea9c73ef3c116a0ddc722724578a860fe

2021-07-22 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101393 --- Comment #16 from Franz Sirl --- Created attachment 51199 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51199&action=edit Patch version with minimum changes against GCC10 This is the minimum version of the patch, it fixes this PR but

[Bug middle-end/110857] aarch64-linux-gnu profiledbootstrap broken

2023-08-02 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110857 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/110458] [14 Regression] -Warray-bounds=2 new false positive

2023-08-09 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110458 --- Comment #3 from Franz Sirl --- Actually Comment 2 is only true for the original testcode (which was quite fragile to reproduce). The reduced testcode started to fail with the backwards jump threader rewrite in r12-2591-g2e96b5f14e4025691b57d

[Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets

2023-09-14 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #7

[Bug ipa/111283] [14 Regression] gnat profilebootstrap broken on trunk 20230902 on 32bit targets

2023-09-14 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111283 --- Comment #8 from Franz Sirl --- I see a similar profiledbootstrap failing with x86_64-linux-gnu: /home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-x86_64-suse-linux/./prev-gcc/xg++ -B/home/fsirl/rpmbuild/BUILD/gcc-14.0.0+gitr14+3924/obj-

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-24 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #3

[Bug gcov-profile/111559] [14 regression] ICE when building Python with PGO

2023-09-28 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111559 --- Comment #8 from Franz Sirl --- The proposed patch on top of r14-4307 fixes the profiled bootstrap here.

[Bug sanitizer/116449] New: Miscompilation with UBSAN

2024-08-21 Thread sirl at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- Hi, compiling this example with g++-trunk -c

[Bug c++/116449] Miscompilation and missing bounds check with UBSAN with pointer to member functions and array accesses

2024-08-22 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116449 --- Comment #3 from Franz Sirl --- Isn't the missing bounds check on parr[c] on purpose? It's added with -fsanitize=bounds-strict.

[Bug c++/116449] Miscompilation and missing bounds check with UBSAN with pointer to member functions and array accesses

2024-08-24 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116449 --- Comment #5 from Franz Sirl --- This small change fixes the bug and passes bootstrap and regtests on x86_64. --- a/gcc/cp/typeck.cc +++ b/gcc/cp/typeck.cc @@ -4195,7 +4195,7 @@ get_member_function_from_ptrfunc (tree *instance_ptrptr, tree fu

[Bug c++/116533] New: Possibly missing SAVE_EXPR in get_member_function_from_ptrfunc()

2024-08-29 Thread sirl at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- This came up during the discussion of PR 116449. get_member_function_from_ptrfunc() generates a statement with repeated expressions, but

[Bug debug/109354] New: [arm32] Parameter stored on stack gets wrong debug info with -Og or higher

2023-03-31 Thread sirl at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- Hi, this small testcase class c1 { struct s1 { unsigned int m_n1; }; struct s2 { s1 sM1; s1 sM2; }; s2 m_s2

[Bug sanitizer/112727] New: UBSAN creates GIMPLE path with uninitialized variable

2023-11-27 Thread sirl at gcc dot gnu.org via Gcc-bugs
Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone

[Bug c/110458] New: -Warray-bounds=2 new false positive

2023-06-28 Thread sirl at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- Created attachment 55412 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55412&action=edit testcase Since somewhere between r14-1870 and r14-2097 a new -Warray-bounds=2 false p

[Bug tree-optimization/110458] -Warray-bounds=2 new false positive

2023-06-29 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110458 --- Comment #2 from Franz Sirl --- This has been exposed by commit r14-2013-gfb0447b1f6b7373f57cb3a3d17a46803cfd9909d "Hide IVOPTs strip_offset".

[Bug tree-optimization/110496] New: ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654

2023-06-30 Thread sirl at gcc dot gnu.org via Gcc-bugs
Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- This testcase (reduced with cvise): long

[Bug tree-optimization/110496] ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654

2023-06-30 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110496 --- Comment #2 from Franz Sirl --- Forget to mention, needs -O2 or higher to reproduce. Was exposed by r14-2150-gfe48f2651334bc4d96b6df6b2bb6b29fcb732a83 .

[Bug c/68845] -Werror=array-bounds=[12] doesn't turn warning into error

2024-06-13 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68845 Franz Sirl changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug ipa/105690] [12/13/14/15 regression] -Warray-bounds sensitive false positive with -O2

2024-07-26 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105690 --- Comment #4 from Franz Sirl --- The testcode started to fail with the backwards jump threader rewrite in r12-2591-g2e96b5f14e4025691b57d2301d71aa6092ed44bc and a simple -Warray-bounds. This is proven by the fact that compiling the testcase wi

[Bug tree-optimization/110458] [14/15 Regression] -Warray-bounds=2 new false positive

2024-07-26 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110458 --- Comment #5 from Franz Sirl --- I wrongly added c#3 here, should have been PR 105690, sorry!

[Bug sanitizer/117259] [12/13/14/15 Regression] warning: 'j.6' may be used uninitialized [-Wmaybe-unitialized] with -fsanitize=undefined

2024-10-22 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #5

[Bug c++/116449] Miscompilation and missing bounds check with UBSAN with pointer to member functions and array accesses

2024-10-02 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116449 --- Comment #11 from Franz Sirl --- The fix works nicely here, thanks! As a fun fact, we gain a warning for this likely undefined code: ``` class BaseC { public: virtual ~BaseC() {} }; class C : public BaseC { public: virtual

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #27 from Franz Sirl --- Maybe silly question, but since the changelog is only talking about __fentry__, why couldn't you make the decision based on flag_fentry?

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-21 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #33 from Franz Sirl --- Yes, that works. Now the only question remains whether PLT or GOT is the right thing to do for mcount. I still wonder if there is too much guessing going on here and if reusing common flags is the right thing

[Bug target/119386] New: [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread sirl at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- Hi, compiling even the simplest code to a shared library with profiling is broken since r14-811

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #3 from Franz Sirl --- The option -mdirect-extern-access is enabled by default since it was added in r12-7126-ab0b5fbfe90168d2e470aefb19e0cf31526290bc . I didn't even know about this option before I ran into this problem.

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 --- Comment #4 from Franz Sirl --- > Note that the GCC man page is pretty clear about this: > > -mdirect-extern-access > -mno-direct-extern-access > > Do not use or use GOT to access external symbols. The default is > -mno-direct-extern-acces

[Bug target/119386] [14/15 Regression][x64] Shared libraries can no longer be compiled with profiling

2025-03-20 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386 Franz Sirl changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment #7

[Bug c++/120940] New: [15 Regression] False positive -Wduplicated-branches warning

2025-07-03 Thread sirl at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- This small code snippet warns with r15-9900 (r15-9866 was still OK): static const char Names[16][8]= { "ac0", "ac1"

[Bug c++/120954] New: [15 Regression] False positive -Warray-bounds=2 warning

2025-07-04 Thread sirl at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sirl at gcc dot gnu.org Target Milestone: --- This small code snippet warns with r15-9921 (r15-9866 was still OK): static const int map01[32] = { 11, 12, 13, 14, 15 }; static const int map02

[Bug c++/121244] Wsfinae-incomplete very unhelpfull and probably false positives

2025-07-28 Thread sirl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121244 Franz Sirl changed: What|Removed |Added CC||sirl at gcc dot gnu.org --- Comment #3

<    1   2