Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

use -O3 with some optimizations disabled on sparc w/ gcc #62

Merged

Conversation

binarycrusader
Copy link

No description provided.

A previous commit changed it so that rust's private copy of llvm was
always built with -O0 on sparc, as initially that was the only option
that produced a working compiler.  After further investigation, it was
discovered that applying -fno-delayed-branch and -fno-omit-frame-pointer
was sufficient to avoid all of the code generation issues initially
encountered while retaining -O3.  Investigation with gcc upstream
continues.
@binarycrusader
Copy link
Author

My apologies for the relatively quick followup pull request, but after experimenting with various compiler options today, I finally managed to narrow down the issue to two specific optimizations. This allows the restoration of -O3. I was able to build a full rust beta with these options in ~2 hours compared to ~9 hours it took with -O0, and I was able to bootstrap cargo nightly as well (0.18) and have built several crates and other programs. Thanks again for your patience.

@alexcrichton
Copy link
Member

Nice find!

@alexcrichton alexcrichton merged commit fa61789 into rust-lang:rust-llvm-2016-10-29 Feb 22, 2017
TimNN pushed a commit that referenced this pull request Apr 17, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
TimNN pushed a commit that referenced this pull request Apr 23, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
arielb1 pushed a commit that referenced this pull request Jun 27, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
TimNN added a commit that referenced this pull request Jul 20, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
TimNN added a commit that referenced this pull request Jul 20, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton pushed a commit that referenced this pull request Jul 30, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton pushed a commit that referenced this pull request Aug 4, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton pushed a commit that referenced this pull request Aug 15, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
alexcrichton pushed a commit that referenced this pull request Oct 10, 2017
use -O3 with some optimizations disabled on sparc w/ gcc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants