Red Hat Bugzilla – Bug 1292746
microblaze cross compiler with -O3 loops forever
Last modified: 2016-11-24 10:51:26 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):
Steps to Reproduce:
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'
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.
Still broken in fedora 25, for gcc version 6.1.1, dated 20160621