From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73FB63858C39; Wed, 9 Nov 2022 16:43:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73FB63858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668012233; bh=43K1ox3CN1cb/frsSDZ5npI2ZiPymlu49E3O2Zkaz/U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vJSBph0X/AQOX8HoVdU4AH3+QvZ9QzVr6iXAkLRM+nfYoYn0Q+SAzrH22KcnJvTYA L8A01qCzCh+qhYNB64Yb9GY331SnjnUwcJDLWW2fqv+/4VlVgzY2cgP5eFf4oL5KdY LGVEDlwrzMcghSTiyXzEPFMVFifd0g+oAbnIfy9A= From: "jskumari at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100799] Stackoverflow in optimized code on PPC Date: Wed, 09 Nov 2022 16:43:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jskumari at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jskumari at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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=3D100799 Surya Kumari Jangala changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |WAITING --- Comment #21 from Surya Kumari Jangala --- There are two options to resolve the issue: 1. Use the BIND(C) directive on the fortran callee (DGEBAL) to make it interoperable with the caller which is written in C. As described in comment 19, using this directive removed accesses to the caller's frame. 2. As described in (https://gcc.gnu.org/onlinedocs/gfortran/Argument-passing-conventions.html), since the first parameter to DGEBAL is of type CHARACTER, there is an extra hidden argument. Change the call to DGEBAL from dgebal (the flexiBLAS wrapp= er routine) to take an extra argument. This causes the compiler to allocate a parameter save area in dgebal's frame, as there are now 9 parameters but on= ly 8 parameter registers.=