Closed Bug 1166325 Opened 9 years ago Closed 9 years ago

valgrind mozconfigs should use same optimization settings as our normal builds

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
Tracking Status
firefox41 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(1 file, 1 obsolete file)

I have a patchset that compiles cleanly on our linux64 builders, but errors out with an uninitialized variable warning/error on our valgrind build.  It's worth noting that our linux64 builders *do* issue a similar warning, but in the valgrind case, it's a -Wuninitialized warning (which is an error), and in the linux64 case, it's a -Wmaybe-uninitialized warning (not a hard error due to false positives).

My best guess is that this is caused by the different optimization settings; our normal linux64 builds default to -Os deep in the bowels of configure, whereas our valgrind builds use -O:

http://mxr.mozilla.org/mozilla-central/source/browser/config/mozconfigs/linux64/valgrind#8

I think the valgrind builds should be using the same optimization settings as our normal builds, so that we avoid running into problems like this.
(I should also note that the error comes from a part of the code that I didn't touch, which makes it doubly frustrating.)
This patch solves my problem, at least.  I think it makes more sense to have
matching optimization settings between valgrind and the default builds.

I have no ideas on how to maintain the optimization settings in sync, though...
Attachment #8607631 - Flags: review?(ted)
Comment on attachment 8607631 [details] [diff] [review]
use -Os in valgrind mozconfigs to match the default optimization settings

Review of attachment 8607631 [details] [diff] [review]:
-----------------------------------------------------------------

As discussed on IRC, these optimization flags appear to be the defaults for linux-gcc nowadays, so I think we can safely remove these lines entirely:
https://hg.mozilla.org/mozilla-central/annotate/ac277e615f8f/configure.in#l2132
Attachment #8607631 - Flags: review?(ted)
Assignee: nobody → nfroyd
Hooray for deleting code rather than changing it.
Attachment #8607631 - Attachment is obsolete: true
Attachment #8608082 - Flags: review?(ted)
Attachment #8608082 - Flags: review?(ted) → review+
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: