Bug 1292746 - microblaze cross compiler with -O3 loops forever
microblaze cross compiler with -O3 loops forever
Status: NEW
Product: Fedora
Classification: Fedora
Component: cross-gcc (Show other bugs)
All Linux
unspecified Severity medium
: ---
: ---
Assigned To: David Howells
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-12-18 04:27 EST by David Binderman
Modified: 2016-11-24 10:51 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
C source code (2.05 MB, text/plain)
2015-12-18 04:27 EST, David Binderman
no flags Details

  None (edit)
Description David Binderman 2015-12-18 04:27:32 EST
Created attachment 1107055 [details]
C source code

Description of problem:

The attached code, derived from Linux kernel linux-4.4-rc5,
when cross compiled with flag -O2 for microblaze on x86_64 compiles
in about 3 seconds. 

I changed the compile flag -O2 to -O3 then it wouldn't compile in an hour.

$ microblaze-linux-gnu-gcc   -nostdinc     -fno-strict-aliasing -fno-common  -st
d=gnu89 -ffixed-r31 -mcpu=v7.10.d -fno-delete-null-pointer-checks -O3  --param=a
llow-store-data-races=0 -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlin
ing  -fno-stack-protector  -fno-var-tracking-assignments -pg -fno-inline-functio
ns-called-once  -fno-strict-overflow -fconserve-stack     -fprofile-arcs -ftest-
coverage     -c bug258.c

$ microblaze-linux-gnu-gcc -v
gcc version 5.2.1 20151104 (Red Hat Cross 5.2.1-4) (GCC) 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 1 Fedora End Of Life 2016-11-24 09:19:57 EST
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 2 David Binderman 2016-11-24 10:51:26 EST
Still broken in fedora 25, for gcc version 6.1.1, dated 20160621

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