From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 849333858291; Sun, 24 Jul 2022 19:25:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 849333858291 From: "pavel.morozkin at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29399] New: Wrong definition of setjmp Date: Sun, 24 Jul 2022 19:25:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pavel.morozkin at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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 cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2022 19:25:33 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29399 Bug ID: 29399 Summary: Wrong definition of setjmp Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: pavel.morozkin at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- The setjmp is defined as: #define setjmp(env) _setjmp (env) This is wrong because it breaks the following code: #include void f(void) { struct { int x; } _setjmp; jmp_buf x; setjmp(x); } In file included from :1: : In function 'f': :7:5: error: called object '_setjmp' is not a function or function pointer 7 | setjmp(x); | ^~~~~~ :5:23: note: declared here 5 | struct { int x; } _setjmp; | ^~~~~~~ Compiler returned: 1 --=20 You are receiving this mail because: You are on the CC list for the bug.=