From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 34173385781D; Sun, 15 Aug 2021 08:42:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34173385781D From: "rimvydas.jas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects Date: Sun, 15 Aug 2021 08:42:35 +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: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rimvydas.jas at gmail dot com 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2021 08:42:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101918 --- Comment #1 from Rimvydas (RJ) --- Also several programs report spurious warnings: : warning: type of '__builtin_realloc' does not match original declaration [-Wlto-type-mismatch] /opt/nwp/gcc11/include/stdlib.h:550:14: note: type mismatch in parameter 1 550 | extern void *realloc (void *__ptr, size_t __size) | ^ /opt/nwp/gcc11/include/stdlib.h:550:14: note: 'realloc' was previously decl= ared here /opt/nwp/gcc11/include/stdlib.h:550:14: note: code may be misoptimized unle= ss '-fno-strict-aliasing' is used that seem to go away if arguments are swapped at gcc/fortran/f95-lang.c:982 ftype =3D build_function_type_list (pvoid_type_node, size_type_node, pvoid_type_node, <--- NULL_TREE); So far could not extract reasonably sized test-case.=