From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C6DF3858C83; Mon, 7 Feb 2022 08:18:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C6DF3858C83 From: "mathieu.malaterre at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104363] hppa: __asm__ directive .global and multiple .symver not supported Date: Mon, 07 Feb 2022 08:18:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mathieu.malaterre at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2022 08:18:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104363 --- Comment #8 from Mathieu Malaterre = --- Dear John, (In reply to John David Anglin from comment #6) > For context, see: > https://github.com/smuellerDD/libkcapi/issues/133#issuecomment-1024349323 >=20 > Note that the following commit fixes the symbol issue on hppa with gcc-11: > https://github.com/smuellerDD/libkcapi/commit/ > 71d80bcffca26373149121e026d612146b4695d5 As mentionned in the commit message, this is an alternate solution (use of gcc-10 new attribute for `symver`). > The patch predates the hppa issue and it doesn't have anything to do > with hppa. It does mention -flto but this doesn't seem to apply here. Use of -flto seems to confict with the use of asm .symver directive, which = is solved by using gcc attribute. > As far as I remember, support for symbol versioning is done in generic co= de. >=20 > If I was to guess, I suspect the problem is with asm. Maybe a '\t' > is needed before .symver on hppa. The hppa assembler wants white space > before directives. That would not explain the regression gcc-10 -> gcc-11 AFAIK.=