From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89ADB3858D1E; Wed, 29 Mar 2023 17:13:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89ADB3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680110030; bh=3XcsMEBMG71yQxWDEoGbzhrnHAbteViYM59R5uvGlRU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TEoRSXWcHveJ7FLRxseC25z2cXXvM0vup+8X8GmGtyOceagVa26nFciTztnidyET9 GyTQcy4jc8ehjULIDen7YjqZH98VwS1Pu4xBgiOHCby4GeT0OvkSVPucruGSH1zuxf SFl33seTUOsn6vkLj6THedw2wyrC/o4jlsQ0Diw8= From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109322] -fc-prototypes does not correctly translate INTEGER(KIND=C_SIZE_T), and other sizes Date: Wed, 29 Mar 2023 17:13:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_severity priority 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=3D109322 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Priority|P3 |P5 CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- You stated what you think gfortran ought to produce, but you did not articulate a "why?" What problem are you trying to fix? The prototype generated by -fc-prototypes correspond to the C companion processor, and may not be portable to other C processors such as tinyC or bcc. Also note, C_SIZE_T etc are simply named constants for kind type parameters. All of INTEGER, INTEGER(4), INTEGER(C_INT), and INTEGER(C_INT32_t) have the same value of 4 for the default integer kind on 32-bit architectures in the absence of any command line option (such as -finteger-4-integer-8).=