public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/105648] New: .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le
@ 2022-05-18 16:11 giuliano.belinassi at gmail dot com
2022-05-19 6:12 ` [Bug target/105648] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: giuliano.belinassi at gmail dot com @ 2022-05-18 16:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105648
Bug ID: 105648
Summary: .cfi_startproc in wrong position when
-fpatchable-function-entry= is enabled on ppc64le
Product: gcc
Version: 11.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: giuliano.belinassi at gmail dot com
Target Milestone: ---
With the following input file:
```
int func(int x)
{
return x;
}
```
Saved as test.c, compiling with
> powerpc64le-suse-linux-gcc-11 -S -fpatchable-function-entry=1 test.c
results in an asm file with the following code:
```
func:
.section __patchable_function_entries,"awo",@progbits,func
.align 3
.8byte .LPFE1
.section ".text"
.LPFE1:
nop
.LFB0:
.cfi_startproc
<... more code ...>
```
The position of .cfi_startproc is incorrect. It should be positioned right
after the function label.
As an example, on x86_64:
```
func:
.LFB0:
.cfi_startproc
.section __patchable_function_entries,"awo",@progbits,func
.align 8
.quad .LPFE1
.text
.LPFE1:
nop
<... more code ...>
```
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/105648] .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le
2022-05-18 16:11 [Bug middle-end/105648] New: .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le giuliano.belinassi at gmail dot com
@ 2022-05-19 6:12 ` rguenth at gcc dot gnu.org
2022-05-19 7:10 ` linkw at gcc dot gnu.org
2022-05-19 13:22 ` giuliano.belinassi at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-19 6:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105648
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-05-19
Ever confirmed|0 |1
Target| |powerpc64le
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/105648] .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le
2022-05-18 16:11 [Bug middle-end/105648] New: .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le giuliano.belinassi at gmail dot com
2022-05-19 6:12 ` [Bug target/105648] " rguenth at gcc dot gnu.org
@ 2022-05-19 7:10 ` linkw at gcc dot gnu.org
2022-05-19 13:22 ` giuliano.belinassi at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: linkw at gcc dot gnu.org @ 2022-05-19 7:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105648
Kewen Lin <linkw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |linkw at gcc dot gnu.org
--- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> ---
Dup of PR99888?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/105648] .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le
2022-05-18 16:11 [Bug middle-end/105648] New: .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le giuliano.belinassi at gmail dot com
2022-05-19 6:12 ` [Bug target/105648] " rguenth at gcc dot gnu.org
2022-05-19 7:10 ` linkw at gcc dot gnu.org
@ 2022-05-19 13:22 ` giuliano.belinassi at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: giuliano.belinassi at gmail dot com @ 2022-05-19 13:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105648
--- Comment #3 from Giuliano Belinassi <giuliano.belinassi at gmail dot com> ---
Not sure if duplicate, but it certainly is related to PR99888 and PR98125.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-19 13:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 16:11 [Bug middle-end/105648] New: .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le giuliano.belinassi at gmail dot com
2022-05-19 6:12 ` [Bug target/105648] " rguenth at gcc dot gnu.org
2022-05-19 7:10 ` linkw at gcc dot gnu.org
2022-05-19 13:22 ` giuliano.belinassi at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).