Mercury Bugs - mercury
View Issue Details
0000495mercuryBugpublic2020-02-04 14:022020-10-06 21:33
Assigned Tozs 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000495: -O<n> options not additive
DescriptionThe -O<n> options are not additive in that they will reset certain options to default values, e.g. in

    mmc --optimise-constructor-last-call -O5 -C list.m

the --optimise-constructor-last-call option has no effect.

While the behaviour could be defended, I hit the problem trying to enable -O5 on the standard library by adding:


to Mmake.params. This silently disabled the --optimise-constructor-last-call option present in library/LIB_FLAGS. It turns out you need to write this instead:

    MCFLAGS += -O5
TagsNo tags attached.
Attached Files

2020-10-06 21:33   
Feature implemented by 2020 september 29.

Issue History
2020-02-04 14:02wangpNew Issue
2020-09-17 03:52zsAssigned To => zs
2020-09-17 03:52zsStatusnew => assigned
2020-10-06 21:33zsStatusassigned => resolved
2020-10-06 21:33zsResolutionopen => fixed
2020-10-06 21:33zsNote Added: 0001107