Bug 1272394 - llvm.spec configures build with -O3: needs explanation comment or removal
llvm.spec configures build with -O3: needs explanation comment or removal
Product: Fedora
Classification: Fedora
Component: llvm (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Adam Jackson
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-10-16 06:24 EDT by Jens Petersen
Modified: 2016-06-05 08:38 EDT (History)
7 users (show)

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

Attachments (Terms of Use)

  None (edit)
Description Jens Petersen 2015-10-16 06:24:22 EDT
Description of problem:
The llvm.spec file configures the Fedora llvm build with -O3.
This is probably not a problem as such but there should really
be some explanation of why this is done, or if it is not really
needed it might be better just to drop it?

It seems to have been introduced in this commit:

commit be655c46e5d3707531fb8bef5430a9c064653197
Author: Jan Vcelak <jvcelak@fedoraproject.org>
Date:   Tue Nov 12 21:48:50 2013 +0100

    update to 3.3, add compiler-rt and lldb

This was noticed while reviewing the llvm35 package.
Comment 1 Jan Včelák 2015-10-18 16:27:13 EDT
Jens, my comment I sent you on 13 November 2014 in an e-mail:

> I vaguelly remember that the option was mentioned in somewhere in LLVM
> or Clang installation documentation, including some recommended
> values. I don't think this was my invention as Fedora uses -O2 by
> default and I think that's reasonable. However I didn't manage to find
> the documentation now. I think you can safely drop the option.
Comment 2 Jens Petersen 2015-10-18 23:19:06 EDT
Thank you, Jan, sorry I had forgotten I asked you this before:
appreciate the follow up. :)

Then if no options I propose we drop the -O2 for Fedora 24.
Comment 3 Jens Petersen 2015-10-18 23:19:44 EDT
(In reply to Jens Petersen from comment #2)
> Then if no options I propose we drop the -O2 for Fedora 24.

Ugh, oops I meant "drop -O3" of course.
Comment 4 Jens Petersen 2015-10-18 23:35:11 EDT
(I had also forgotten that I did actually drop -O3 from the llvm34 package
at that time - I will probably do the same for llvm35 and maybe nalimilan wants to also for llvm33.)
Comment 5 Jens Petersen 2015-10-18 23:37:08 EDT
(In reply to Jens Petersen from comment #2)
> Then if no options I propose we drop the -O2 for Fedora 24.

Oh dear (I really must check my comments more carefully before posting sorry)

-> "if no objections I propose ..."
Comment 6 Milan Bouchet-Valat 2015-10-19 03:49:07 EDT
I also agree that dropping the -03 option in rawhide is a good idea. For existing releases, better leave things as they are.
Comment 7 Milan Bouchet-Valat 2015-10-25 16:44:06 EDT
I've just discovered that LLVM is using -O2 by default, so maybe that's justified after all. Maybe only an explanatory comment is needed.
Comment 8 Jens Petersen 2015-10-26 02:49:24 EDT
Milan, sorry, I didn't get your point?
Comment 9 Milan Bouchet-Valat 2015-10-26 08:05:25 EDT
Damn, I meant "LLVM is using -O3 by default".
Comment 10 Jan Kurik 2016-02-24 08:51:01 EST
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:

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