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> 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.
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.
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.
(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.
(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.)
(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 ..."
I also agree that dropping the -03 option in rawhide is a good idea. For existing releases, better leave things as they are.
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. See: https://llvm.org/svn/llvm-project/support/trunk/make/Makefile.common
Milan, sorry, I didn't get your point?
Damn, I meant "LLVM is using -O3 by default".
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: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase