From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0D27386F439; Tue, 9 Jun 2020 20:53:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0D27386F439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591735990; bh=ByFErN5nsjsm+dFGYq7UTVtObgpKtWI/WG8kb9AWEPc=; h=From:To:Subject:Date:From; b=rBsdRNLfrvKTed/PJ4068oppRo0Acyf8rZvkTOZ4HXqYfIr3z2oQmNVwjBoUt8NpP 5DXdm35AZ7rLADigmJzsnxmmaVIpDuVwtYuUD/b6U15E+aJJddxBly9AjUCME2/RSF Vs6riJhgz/VKY762bBagZc7lv9mpKxyhk1AUPLNk= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/95620] New: [10/11 Regression] relocation truncated to fit: R_X86_64_PC32 against `.bss' Date: Tue, 09 Jun 2020 20:53:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: Tue, 09 Jun 2020 20:53:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95620 Bug ID: 95620 Summary: [10/11 Regression] relocation truncated to fit: R_X86_64_PC32 against `.bss' Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- It's a test-case reduced from opa-ff project: $ cat intel.i double a[353783808]; int b, c, d; int main() { for (; b;) #pragma omp parallel a[c] =3D 1; for (;; b++) if (a[c]) d++; } $ gcc intel.i -mcmodel=3Dmedium -O2 -fopenmp $ gcc intel.i -mcmodel=3Dmedium -O2 -flto -fopenmp /tmp/ccaU2BEX.ltrans0.ltrans.o: in function `main': :(.text.startup+0x2): relocation truncated to fit: R_X86_64_PC32 against `.bss' :(.text.startup+0x22): relocation truncated to fit: R_X86_64_PC= 32 against `.bss' collect2: error: ld returned 1 exit status They have a huge .bss array (~350MB). Since r10-5244-g6d8fd122c4f856e9 we can't handle it, the maximum value supported by LTO is ~270MB.=