Bug #18116 2011-05-17 15:29

pir-uk

Optimisation flags are 'reversed'

With gcc, the order of the optimisation flags passed to the compiler is 'reversed' compared to the expected top-down ordering of the check-box list. So if both the -O1 and -O2 flags are checked, these are passed to the compiler in the order O2 then O1, thus producing only O1 level optimsation.

(I know passing O1 and O2 is unnecessary since O2 implies all the O1 optimisations, but this produces a confusing result. There may well be other flags which are over-ridden by later flags in which case there is the potential for other confusions. The ordering of the check-box list looks right, in the sense of 'increasing' effects of the flags they invoke. Can the order in which they are passed to the compiler be made to correspond to their top-to-bottom ordering?)

Category
Compiler
Group
 
Status
Open
Close date
 
Assigned to