RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1502794 - Backport a few wrong-code fixes
Summary: Backport a few wrong-code fixes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gcc
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Marek Polacek
QA Contact: Michael Petlan
Vladimír Slávik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-16 17:16 UTC by Marek Polacek
Modified: 2018-04-10 15:11 UTC (History)
5 users (show)

Fixed In Version: gcc-4.8.5-22.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-04-10 15:09:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0849 0 None None None 2018-04-10 15:11:25 UTC

Description Marek Polacek 2017-10-16 17:16:36 UTC
This is a BZ to track several backports from the gcc-5-branch.

Preliminary list:
r253734 - PR82274, libgcc parts
r252926 - PR80362, PR68528, PR64516 (fold-const.c parts)
r249707 - PR80692
r248662 - PR80129
r248635 - PR77767
r248626 - PR78416
r248623 - PR78378 (minus formatting)

Comment 2 Marek Polacek 2017-10-16 17:50:46 UTC
Also r248608.

Comment 7 Michael Petlan 2018-02-20 13:29:17 UTC
All related tests passed with gcc-4.8.5-28.el7, except that on aarch64, there were the following FAILs:

FAIL: g++.dg/torture/pr68184.C  -O2 -flto -flto-partition=none  (test for excess errors)
UNRESOLVED: g++.dg/torture/pr68184.C  -O2 -flto -flto-partition=none  compilation failed to produce executable
FAIL: g++.dg/torture/pr68184.C  -O2 -flto  (test for excess errors)
UNRESOLVED: g++.dg/torture/pr68184.C  -O2 -flto  compilation failed to produce executable

gcc.sum:FAIL: gcc.dg/torture/pr80362.c  -O2 -flto -flto-partition=none  (test for excess errors)
gcc.sum:UNRESOLVED: gcc.dg/torture/pr80362.c  -O2 -flto -flto-partition=none  compilation failed to produce executable
gcc.sum:FAIL: gcc.dg/torture/pr80362.c  -O2 -flto  (test for excess errors)
gcc.sum:UNRESOLVED: gcc.dg/torture/pr80362.c  -O2 -flto  compilation failed to produce executable

gcc.sum:FAIL: gcc.dg/torture/pr78416.c  -O2 -flto -flto-partition=none  (test for excess errors)
gcc.sum:UNRESOLVED: gcc.dg/torture/pr78416.c  -O2 -flto -flto-partition=none  compilation failed to produce executable
gcc.sum:FAIL: gcc.dg/torture/pr78416.c  -O2 -flto  (test for excess errors)
gcc.sum:UNRESOLVED: gcc.dg/torture/pr78416.c  -O2 -flto  compilation failed to produce executable

gcc.sum:FAIL: gcc.c-torture/execute/pr77767.c compilation,  -O2 -flto -flto-partition=none
gcc.sum:UNRESOLVED: gcc.c-torture/execute/pr77767.c execution,  -O2 -flto -flto-partition=none
gcc.sum:FAIL: gcc.c-torture/execute/pr77767.c compilation,  -O2 -flto 
gcc.sum:UNRESOLVED: gcc.c-torture/execute/pr77767.c execution,  -O2 -flto

gcc.sum:FAIL: gcc.c-torture/execute/pr78378.c compilation,  -O2 -flto -flto-partition=none
gcc.sum:UNRESOLVED: gcc.c-torture/execute/pr78378.c execution,  -O2 -flto -flto-partition=none
gcc.sum:FAIL: gcc.c-torture/execute/pr78378.c compilation,  -O2 -flto
gcc.sum:UNRESOLVED: gcc.c-torture/execute/pr78378.c execution,  -O2 -flto 

g++.sum:FAIL: g++.dg/torture/pr80129.C  -O2 -flto -flto-partition=none  (test for excess errors)
g++.sum:UNRESOLVED: g++.dg/torture/pr80129.C  -O2 -flto -flto-partition=none  compilation failed to produce executable
g++.sum:FAIL: g++.dg/torture/pr80129.C  -O2 -flto  (test for excess errors)
g++.sum:UNRESOLVED: g++.dg/torture/pr80129.C  -O2 -flto  compilation failed to produce executable

All of the above fails look like the following:

Executing on host: /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/xgcc -B/mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8
.5-20150702/obj-aarch64-redhat-linux/gcc/ /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/gcc/testsuite/gcc.c-torture/execute/pr78378.c  -fno-diagnostics-show-caret -fdiagnostics-color=never  -w  -O2 -flto -flto-partition=none   -lm   -o /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/testsuite/gcc3/pr78378.x7    (timeout = 300)
spawn -ignore SIGHUP /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/xgcc -B/mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/ /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/gcc/testsuite/gcc.c-torture/execute/pr78378.c -fno-diagnostics-show-caret -fdiagnostics-color=never -w -O2 -flto -flto-partition=none -lm -o /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/testsuite/gcc3/pr78378.x7
/usr/bin/ld: /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/liblto_plugin.so: error loading plugin: /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/liblto_plugin.so: cannot restore segment prot after reloc: Permission denied
collect2: error: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/bin/ld: /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/liblto_plugin.so: error loading plugin: /mnt/tests/tools/gcc/Sanity/upstream-suite2/TMP/my_rpmbuild/BUILD/gcc-4.8.5-20150702/obj-aarch64-redhat-linux/gcc/liblto_plugin.so: cannot restore segment prot after reloc: Permission denied
collect2: error: ld returned 1 exit status

In my opinion they are not a big deal, however pasting it here to not lose it. In case the fails might be a problem, let's file another bug for it.

I think we can move this to VERIFIED.

Comment 10 errata-xmlrpc 2018-04-10 15:09:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0849


Note You need to log in before you can comment on or make changes to this bug.