Skip to content
This repository has been archived by the owner. It is now read-only.

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

Merged

Conversation

Projects
None yet
2 participants
@binarycrusader
Copy link

binarycrusader commented Feb 22, 2017

No description provided.

use -O3 with some optimizations disabled on sparc w/ gcc
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

This comment has been minimized.

Copy link
Author

binarycrusader commented Feb 22, 2017

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

This comment has been minimized.

Copy link
Member

alexcrichton commented Feb 22, 2017

Nice find!

@alexcrichton alexcrichton merged commit fa61789 into rust-lang:rust-llvm-2016-10-29 Feb 22, 2017

TimNN added a commit that referenced this pull request Apr 17, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

TimNN added a commit that referenced this pull request Apr 23, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

arielb1 added a commit that referenced this pull request Jun 27, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

TimNN added a commit that referenced this pull request Jul 20, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

TimNN added a commit that referenced this pull request Jul 20, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

alexcrichton added a commit that referenced this pull request Jul 30, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

alexcrichton added a commit that referenced this pull request Aug 4, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

alexcrichton added a commit that referenced this pull request Aug 15, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
use -O3 with some optimizations disabled on sparc w/ gcc

alexcrichton added a commit that referenced this pull request Oct 10, 2017

Merge pull request #62 from binarycrusader/llvm-sparc
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.
You can’t perform that action at this time.