From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BBA8C3858404; Sat, 3 Feb 2024 18:54:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBA8C3858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706986482; bh=FVx1F4lGmPIzl+zHbfZ1MyNbh3X9zWLax8kQwXti5yg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DNxhRwzD24xhjI9CRw5TJ/je78rrTjz0Chp0lYFrRsSQTtoX3w935wAsEpJh8oQRN O/nQrxuhY8hPb2Zt4E0Av3qbrI9glPzyQ5UnN3EP5yPfn3N9ddMrUhRggOQ2tKdeP0 CMshAxKrIv3UGmGq8A17Cqej+MG3n7GtGXw3b0T0= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113727] csmith: differences from nothing to -O1 Date: Sat, 03 Feb 2024 18:54:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113727 --- Comment #12 from Xi Ruoyao --- (In reply to David Binderman from comment #11) > Created attachment 57310 [details] > C source code static uint32_t (safe_mul_func_uint32_t_u_u)(uint32_t ui1, uint32_t ui2 ) {= =20 } This thing is UB if you use its return value (in C; in C++ it will be an UB even if the return value is not used). Better adding -Werror=3Dreturn-type to cvise.=