From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DCEA3385B190; Tue, 29 Nov 2022 11:45:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DCEA3385B190 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669722326; bh=1Um6liUeqeClxPZ+KUf9W0GsKq80W0kvm3W9miEDd9A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wHydWqAyN9slWAQlc4fww7bLYCYDvEpGLDLd8DANaTpVMxHi5vbO//7T72UI9Vnn+ 3ub1q5FjMWG2y2a8D5D5JEqXqLmY+4ZGxexGDbN3MUwPnMWywVDd5Et4932t/uiFua l4wh8PW8du59xMuEFs1dgjUJFRkCrrifckUbJ6+g= From: "yann at droneaud dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/55899] GCC should provide built-ins in data types flavor/version/variation Date: Tue, 29 Nov 2022 11:45:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: yann at droneaud dot fr X-Bugzilla-Status: NEW 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: cc 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=3D55899 Yann Droneaud changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yann at droneaud dot fr --- Comment #2 from Yann Droneaud --- I stumbled upon this issue again when dealing with uint64_t as sometimes it= 's defined as unsigned long, sometimes it's defined as unsigned long long depending on the ABI. Having __builtin_ffs64(), __builtin_clz64(), __builtin_ctz64(), etc. would ease me making my code portable to unpleasant= ABI such as Microsoft Windows ones without having to use GCC's __builtin_types_compatible_p() (which is not supported when compiling C++),= or C11 _Generic() ...=