public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/105649] New: Wrong .localentry address on powerpc64le with -fpatchable-function-entry=1
@ 2022-05-18 19:56 giuliano.belinassi at gmail dot com
  2022-05-19  6:13 ` [Bug target/105649] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: giuliano.belinassi at gmail dot com @ 2022-05-18 19:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105649

            Bug ID: 105649
           Summary: Wrong .localentry address on powerpc64le with
                    -fpatchable-function-entry=1
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: giuliano.belinassi at gmail dot com
  Target Milestone: ---

(this bug triggered PR105647)

With the following input file:
```
struct WinsockInterfaceClass
{
    WinsockInterfaceClass(void);


    virtual int Get_Protocol(void)
    {
        return 0;
    };
};

WinsockInterfaceClass::WinsockInterfaceClass(void)
{
}
```
Saved as test.C, compiling with

> powerpc64le-suse-linux-gcc-11 -c -fpatchable-function-entry=1 test.C

Results in the following error:
```
/tmp/cczW6LfZ.s: Assembler messages:
/tmp/cczW6LfZ.s:56: Error: .localentry expression for
`_ZN21WinsockInterfaceClassC2Ev' is not a valid power of 2
```

The reason for that maybe is because the addition of nops cause the address of
.localentry to be shifted according to how many nops inserted.

OTOH

> powerpc64le-suse-linux-gcc-11 -c -fpatchable-function-entry=2 test.C

works.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-30 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 19:56 [Bug target/105649] New: Wrong .localentry address on powerpc64le with -fpatchable-function-entry=1 giuliano.belinassi at gmail dot com
2022-05-19  6:13 ` [Bug target/105649] " rguenth at gcc dot gnu.org
2022-05-19 13:23 ` giuliano.belinassi at gmail dot com
2022-09-30 12:18 ` cvs-commit at gcc dot gnu.org
2022-09-30 12:34 ` linkw at gcc dot gnu.org

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).