From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9FF723858412; Mon, 26 Feb 2024 14:54:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FF723858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708959242; bh=M9FxTdIgyABWFvQ4lenczLb++CL66xV8ic85YlXVCtA=; h=From:To:Subject:Date:From; b=LaXDIOEuRkD7mnf4ZedJDihiWN041DoZrXyHZoaebr4lidreby8a1/+Hb3gfS/UI7 8ECUnmXKKbonVzcdkoaMEZ/PcCVRCw61pO0hqyDlJDOaWq1PBYGQLWAGJ4tj80VDYB uO49yG3jt+YWz1fI7hOfb/vdkbzSnYQLbJ9XUWXs= From: "simon.marchi at polymtl dot ca" To: gdb-prs@sourceware.org Subject: [Bug sim/31417] New: sim: -Wstrict-prototypes not enabled due to bad configure check Date: Mon, 26 Feb 2024 14:54:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon.marchi at polymtl dot ca X-Bugzilla-Status: NEW 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31417 Bug ID: 31417 Summary: sim: -Wstrict-prototypes not enabled due to bad configure check Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: sim Assignee: unassigned at sourceware dot org Reporter: simon.marchi at polymtl dot ca CC: vapier at gentoo dot org Target Milestone: --- The sim directory attempts to enable the -Wstrict-prototypes compiler flag.= =20 While it is support in gcc, the flag is not enabled because the config check results in: configure:16654: ccache gcc -c -g3 -O0 -fsanitize=3Daddress -fmax-errors=3D1 -fdiagnostics-color=3Dalways -Werror -Wstrict-prototypes co nftest.c >&5 conftest.c:163:1: error: function declaration isn't a prototype [-Werror=3Dstrict-prototypes] 163 | main () | ^~~~ The main function in the config test is: | int | main () | { |=20 | ; | return 0; | } So yeah, the flag is not enabled because it finds in the config test exactly the kind of things it's meant to find :) --=20 You are receiving this mail because: You are on the CC list for the bug.=