From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 811843858D39; Wed, 10 Apr 2024 02:11:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 811843858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712715090; bh=G+7iF1un+DekMw95uplYcXXMI9jz8NFkBZ2hiROqvx0=; h=From:To:Subject:Date:From; b=mMTWJSSt9k4mifSmQY9+p4V2jvz/h0kVDKeJ2C1XmyuXELqvIeZF1IkyYxR/ZQPZO 3+9Ml6sBznhctVR0PrpstCJEri95oQRvoV5yopMfnY29LY5xUB6of93IWrMSaPYT6g 0DYLGLS7YPR710hFf43AE7DGYJ4njC5VGVR0R9jE= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114671] New: [RISC-V] -fvar-tracking -gas-locview-support -ggdb emits a non-constant .uleb128 Date: Wed, 10 Apr 2024 02:11:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick at rivosinc dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114671 Bug ID: 114671 Summary: [RISC-V] -fvar-tracking -gas-locview-support -ggdb emits a non-constant .uleb128 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: patrick at rivosinc dot com Target Milestone: --- Testcase: int main() { int a =3D 0; } Backtrace: > /scratch/tc-testing/tc-apr-9/build-rv64gcv/bin/riscv64-unknown-linux-gnu-= gcc -fvar-tracking -gas-locview-support -ggdb red.c -o red.out /scratch/tmp/ccEGxw5q.s: Assembler messages: /scratch/tmp/ccEGxw5q.s:174: Error: .uleb128 only supports constant or subt= ract expressions /scratch/tmp/ccEGxw5q.s:175: Error: .uleb128 only supports constant or subt= ract expressions Godbolt: https://godbolt.org/z/Pao7459f3 I'm not sure if this is the intended behavior of these flags since -gas-locview-support tells the compiler that gas has support for "view assignment and reset assertion checking in .loc directives". AFAICT risc-v = GAS doesn't have support for this.=