From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B18C3858423; Thu, 30 Nov 2023 08:45:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B18C3858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701333947; bh=yJCXL3lsVkcvsxmSEXWeXvr53TtNCyWo6PzxTHtiA1w=; h=From:To:Subject:Date:From; b=chVFXrb8vIkIJdqvGjhoLIKGU+NmORn/OQuCWmwlxBijQYYhtegtKt3GBbaH1Rf19 zAUU0oLEM40faKDUBMaUSLLrmXldOLju09tbxQncSskkfyYkrgzpfmhYIwg1GaPoZM 1YhDave8vNvjGO56lM85xQLZYwOYx3jXS/T8HSEo= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/31099] New: [gdb/build] -DNDEBUG missing in python flags of release build Date: Thu, 30 Nov 2023 08:45:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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 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=3D31099 Bug ID: 31099 Summary: [gdb/build] -DNDEBUG missing in python flags of release build Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Before commit db6878ac553 ("Move sourcing of development.sh to GDB_AC_COMMO= N") we have: ... . $srcdir/../bfd/development.sh ... $development || tentative_python_cflags=3D"$tentative_python_cflags -DN= DEBUG" ... but after: ... $development || tentative_python_cflags=3D"$tentative_python_cflags -DN= DEBUG" ... . $srcdir/../bfd/development.sh ... Curiously, while this gives an error: ... $ && echo bla bash: syntax error near unexpected token `&&' $ || echo bla bash: syntax error near unexpected token `||' ... an empty var seems to be handled similar to ':' or 'true': ... $ $empty && echo bla bla $ $empty || echo bla $=20 ... So, the -DNDEBUG is not added in a release branch. Regression since gdb 10. --=20 You are receiving this mail because: You are on the CC list for the bug.=