Commit Graph

3142 Commits

Author SHA1 Message Date
Nicholas Nethercote
88dd3dcc0e Bug 1232219 (part 4) - Enable -Wunused for C code, except where it's too annoying. r=glandium. 2015-12-16 22:59:42 -08:00
Chris Peterson
47efb0f45a Bug 1235717 - Enable clang's -Wunreachable-code warnings. r=glandium 2015-12-28 00:17:02 -07:00
Mike Conley
ebaada53a6 Bug 1221846 - Get Task Tracer building on desktop r=cyu. 2015-12-02 20:55:38 -05:00
Nicholas Nethercote
89443a697b Bug 1232224 - Streamline setting of compile warnings in configure.in. r=glandium,cpeterson.
The main changes are to the warnings, which are as follows.

- Kept -Wall.

- Part of -Wall or on by default; remove all mentions:
  * -Waddress
  * -Wchar-subscripts
  * -Wcomment
  * -Wconversion-null
  * -Wendif-labels
  * -Wenum-compare
  * -Wimplicit-function-declaration
  * -Wint-to-pointer-cast
  * -Wmissing-braces
  * -Wmultichar
  * -Wnonnull
  * -Wparentheses
  * -Wpointer-sign
  * -Wpointer-to-int-cast (C only)
  * -Wreorder
  * -Wreturn-type
  * -Wsequence-point
  * -Wsign-compare (C++ only)
  * -Wswitch
  * -Wtrigraphs
  * -Wuninitialized
  * -Wunknown-pragmas
  * -Wunused-label
  * -Wunused-value
  * -Wwrite-strings (C++ only)

- Part of -Wextra; kept where present, added where missing:
  * -Wempty-body
  * -Wignored-qualifiers (not added for C++ code; many fixes needed to enable)
  * -Wtype-limits

- Part of -pedantic; kept where present, added where missing:
  * -pointer-arith

- C++ only, kept:
  * -Wno-invalid-offsetof
  * -Woverloaded-virtual

- Clang-only, kept:
  * -Wnon-literal-null-conversion (affected by a clang bug; see the big comment
    in the code)
  * -Wrange-loop-analysis (C++ only)
  * -Wno-unused-local-typedef

- This no longer exists?  I kept it to be safe:
  * -Winline-new-delete

A consequence of this is that, when --enable-warnings-as-errors is on, in
directories which have ALLOW_COMPILER_WARNINGS specified we no longer have any
fatal warnings. (We previously did have all the explicitly-mentioned
-Werror=foo ones.) This is a sensible change; if we are going to allow warnings
in a directory we should allow all of them, not just some of them.

Other changes:

- Some C warnings incorrectly used the CXX macros. Fixes that.

- Moves comments about warnings closer to the lines where they are defined, to
  make it easier to keep the comments consistent with the code.

- Reorders things a little, e.g. so that all enabled warnings are before all
  disabled warnings.

The C and C++ warnings are now very similar, in both configure.in and
js/src/configure.in.
2015-12-16 18:39:50 -08:00
Felix Janda
100705a4c7 Bug 1203272 - Fix build of nsMemoryReporterManager on linux systems without mallinfo(). r=glandium,njn. 2016-01-01 11:10:54 +01:00
Ryan VanderMeulen
f0dc54f9b2 Merge inbound to m-c. a=merge 2016-01-01 19:29:16 -05:00
Nick Alexander
2d12810664 Bug 1207890 - Post: Hacks to make --disable-compile-environment work on Mac OS X. r=glandium 2015-12-23 16:50:47 -08:00
Nick Alexander
5e6f69cdeb Bug 1216817 - Part 4: Add --enable-artifact-builds and MOZ_ARTIFACT_BUILDS. r=glandium
This is a clear statement of intent, where-as
--disable-compile-environment has other, non-artifact build, uses.
2015-10-30 13:35:35 -07:00
Lee Salzman
f8af005532 Bug 1234494 - part 2 - disable Skia GPU support by default on certain *BSDs, r=glandium 2015-12-30 12:17:06 -05:00
Phil Ringnalda
56c57ae873 Back out 6 changesets (bug 1214462) for Win PGO build bustage, reftest failures and mochitest failures
CLOSED TREE

Backed out changeset 803dba2adb27 (bug 1214462)
Backed out changeset e1b318c9c1db (bug 1214462)
Backed out changeset 3a421412b161 (bug 1214462)
Backed out changeset 2b388a17f4be (bug 1214462)
Backed out changeset 6a290f27f9bc (bug 1214462)
Backed out changeset 3dbf22bf17a4 (bug 1214462)
2015-12-30 20:37:08 -08:00
Jean-Yves Avenard
f715f2529c Bug 1214462: P5. Enable ffvpx compilation and use. r=glandium 2015-12-31 13:17:24 +11:00
Mike Hommey
122ab4c005 Bug 1235733 - Use absolute paths for include paths. r=gps
Limit ourselves to include paths for now, because there are tricky things
involved in making this globally.

While here, use shell_quote instead of manual quoting for those paths.
2015-12-31 08:10:02 +09:00
Mike Hommey
e27f35029e Bug 1235743 - Move compiler flags used for dependency generation to a separate variable. r=gps
This might seem like going in the opposite direction of what we tend to do
to move to moz.build land, but those flags are irrelevant in many situations
and are better separated out.
2015-12-31 07:35:04 +09:00
Birunthan Mohanathas
d14c0f3c71 Bug 1204752 - Disable thread-safe statics on VS2015 to fix WinXP startup crash. r=glandium
VS2015 added thread-safe statics, but it causes a startup crash on XP. The
suggested workaround provided by Microsoft is to disable the feature enitrely:
https://connect.microsoft.com/VisualStudio/feedback/details/1789709/visual-c-2015-runtime-broken-on-windows-server-2003-c-11-magic-statics

Note that thread-safe statics were not available in VS2013 so disabling them
should not be considered a regression.

With this patch, Firefox runs fine in XP SP2 and XP SP3.

DONTBUILD because VS2015-only change.
2015-12-29 10:21:07 +02:00
Ryan VanderMeulen
61b0fac901 Merge fx-team to m-c. a=merge 2015-12-25 20:33:39 -05:00
Nathan Froyd
0792407b40 Bug 1232772 - suppress numerous clang-style warnings when using clang-cl; r=glandium
Suppressing these warnings significantly cuts down the warning spam on
clang-cl builds.
2015-12-15 15:35:27 -05:00
Carsten "Tomcat" Book
8b8104669f merge mozilla-inbound to mozilla-central a=merge 2015-12-23 12:00:09 +01:00
Nick Alexander
8aca08bb0d Bug 1220500 - Set ANDROID_PACKAGE_NAME correctly from MOZ_APP_NAME. r=glandium 2015-12-21 20:07:30 -08:00
Mike Hommey
fe18085248 Bug 1234106 - Avoid symbolic links in various directories used by the build system. r=gps
This doesn't change calls to pwd on Windows or for subdirectories of the
directories already using pwd -P.
2015-12-22 07:55:47 +09:00
Carsten "Tomcat" Book
0eca0c54c3 Backed out changeset 8b4bffb2ce7c (bug 1133073) for bustage on Android 2015-12-21 11:07:48 +01:00
Jed Davis
ab50338407 Bug 1133073 - Use PR_DuplicateEnvironment to avoid post-fork malloc on all Linux platforms. r=dhylands
This removes the Android-only in-Gecko version of PR_DuplicateEnvironment from bug 773414.
2015-12-17 10:10:00 +01:00
Chris Peterson
f00443ad35 Bug 1232223 - Part 3: Remove MOZ_WAVE #ifdefs because Wave is always supported. r=jya 2015-12-18 00:51:16 -08:00
Chris Peterson
c01e25988e Bug 1232223 - Part 2: Remove MOZ_VPX #ifdefs because VPx is always supported, though not necessarily enabled. r=jya 2015-12-12 13:21:55 -05:00
Chris Peterson
e488d1191c Bug 1232223 - Part 1: Remove MOZ_WEBM #ifdefs because WebM is always supported, though not necessarily enabled. r=jya r=glandium 2015-12-12 13:49:07 -05:00
Swaroop Rao
7bf8ef95c8 Bug 1222607 - Remove MOZ_ANDROID_TAB_QUEUE build flag. r=sebastian 2015-12-17 08:58:00 +01:00
Jean-Yves Avenard
34ae9e3e42 Bug 1234092: P2. Remove GStreamer check from configure. r=glandium 2015-12-23 01:14:23 +11:00
Nathan Froyd
5a54e24be5 Bug 1233542 - re-export variables prior to running JS subconfigure; r=glandium
We need to do this for the same reason we do it for ICU: msys messes
with environment variables (as suggested in build/subconfigure.py).
2015-12-17 16:25:25 -05:00
Mike Hommey
01d9b7ed17 Bug 1232912 - Remove leftovers from bug 758595 after bug 1047584. r=mshal
Bug 758595 added a MOZ_SIGNING AC_DEFINE, used in the package manifest for
mac builds. Bug 1047584 changed mac signing in a way that removed the use
of MOZ_SIGNING, but the AC_DEFINE was left in configure.in, where it is now
unused. Remove it.
2015-12-18 15:57:12 +09:00
Botond Ballo
9a94f1ce0c Bug 1228597 - Remove the MOZ_SINGLE_PROCESS_APZ define. r=tn
Code previously guarded by this (added in bug 1224015) will now run
unconditionally.
2015-11-27 21:39:07 -05:00
Ralph Giles
5bd1f9e500 Bug 1228703 - Support rust on 32-bit Intel MacOS X. r=mshal
When we build universal binaries, we effectively cross-compile
from 64 to 32 bit darwin. Check for this and add the appropriate
target triplet to the definition of RUSTC.

Move the MacOS X 10.6 linkage check to after HAVE_64BIT_BUILD is defined.
2015-12-09 11:08:48 -05:00
Carsten "Tomcat" Book
d2634046fa merge mozilla-inbound to mozilla-central a=merge 2015-12-04 11:57:23 +01:00
Sebastian Kaspari
6c32aba33d Bug 1197720 - Introduce background service for downloadable content. r=rnewman
This patch introduces a background service for downloading content from a
catalog (bug 1200291). This catalog ships with the application and contains
only fonts in this first version (MOZ_ANDROID_EXCLUDE_FONTS).

For now this service is disabled by default (MOZ_ANDROID_DOWNLOAD_CONTENT_SERVICE).
2015-12-02 20:28:00 +01:00
Chris Peterson
7f4c4d76a4 Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc 2015-11-27 20:49:55 -08:00
Carsten "Tomcat" Book
c29d9679a2 merge mozilla-inbound to mozilla-central a=merge 2015-12-03 12:00:42 +01:00
Nick Alexander
b49f07d91d Bug 1220892 - Part 1: Remove MOZ_ANDROID_NATIVE_ACCOUNTS_UI. r=mcomella 2015-11-30 14:32:17 -08:00
Mike Hommey
65efc96588 Bug 1229541 - Turn NSPR_CFLAGS, NSS_CFLAGS, MOZ_JPEG_CFLAGS, MOZ_PNG_CFLAGS and MOZ_ZLIB_CFLAGS into AC_SUBST_LISTs. r=mshal 2015-12-02 11:24:34 +09:00
Kit Cambridge
410b8bd00c Bug 821291 - Move libmozgnome into libxul. r=glandium,karlt 2015-11-24 12:16:33 -08:00
Carsten "Tomcat" Book
c78dfb0a34 merge mozilla-inbound to mozilla-central a=merge 2015-12-01 15:25:14 +01:00
Dave Townsend
48f9e79f72 Bug 1226386: Remove most of the preprocessing from the add-ons manager. r=gps
For build speed, for correct line numbers in errors, for faster development, for so many reasons.
Still a couple of cases left mostly in XUL files for different strings on Windows.

Bonus: The new lexical scope means ADDON_SIGNING and REQUIRE_SIGNING can just
be declared as regular constants and outside code can't get to them easily.
2015-11-19 15:30:47 -08:00
Kalpesh Krishna
70c3fd0f45 Bug 1148028 - Remove MOZ_ANDROID_SHARE_OVERLAY. r=vivek,nalexander
Fennec ships the Share Overlay everywhere.
2015-11-27 12:51:02 -08:00
Mike Hommey
5579c98fc4 Bug 1227385 - Avoid make variable references in VISIBILITY_FLAGS and STL_FLAGS. r=mshal 2015-12-01 08:25:22 +09:00
Mike Hommey
b566f514f5 Bug 1227385 - Properly propagate $DIST from top-level after bug 1224490. r=mshal 2015-12-01 08:25:22 +09:00
Mike Hommey
0891588ae5 Bug 1228463 - Set MOZ_PIXMAN_{CFLAGS,LIBS} directly from PKG_CHECK_MODULES. r=mshal
PKG_CHECK_MODULES sets the values, and AC_SUBST_LISTs them on its own.
No need to duplicate the values to variables local to configure.in to
then AC_SUBST/AC_SUBST_LIST them. Also, since bug 1224452, MOZ_PIXMAN_CFLAGS
needs to be an AC_SUBST_LIST instead of AC_SUBST.
2015-12-01 08:25:22 +09:00
Randall Barker
cda88e8c60 Bug 1224015 - Part 3: ifdef changes to C++APZ so that they only apply to single process APZ. r=tnikkel
Added MOZ_SINGLE_PROCESS_APZ flag.
2015-11-26 20:51:13 -06:00
Mike Hommey
cff8b37cf2 Bug 1228256 - Move AC_DEFINE(ANDROID) in an Android-specific code-path. r=nalexander 2015-11-27 07:53:48 +09:00
Mike Hommey
fda82181a7 Bug 1224452 - Straighten up a couple things in some moz.builds. r=gps
We're going to change how e.g. CFLAGS are printed out in backend.mk, and
to fit that model, the data in the corresponding moz.build variables
need to be straightened up.
2015-11-26 08:50:52 +09:00
Mike Hommey
3d20ea6fce Backout changeset 0104f1c911ca (bug 1223530) because it breaks running on Windows XP on a CLOSED TREE 2015-11-26 08:38:16 +09:00
Ted Mielczarek
7038d7d62a bug 1223530 - Move MOZ_WINCONSOLE to configure. r=glandium
This patch moves the logic for selecting MOZ_WINCONSOLE out of individual
Makefile.in files and into configure. It also changes config.mk to only
pass -SUBSYSTEM:CONSOLE if MOZ_WINCONSOLE=1. The MSDN docs state that
in the absence of -SUBSYSTEM, the linker will select the proper subsystem
based on whether the program contains [w]main or [w]WinMain, so let it
do that.

One program (windbgdlg) needed a tweak to add a wmain for when MOZ_WINCONSOLE
is defined.

This patch leaves one instance in security/sandbox/win/wow_helper/Makefile.in,
that Makefile has its own separate bug.
2015-11-11 06:24:39 -05:00
Mike Hommey
afaad9471b Backout changeset 29c31b5cdc19 (bug 1227385) for Linux, Android and B2G bustage on a CLOSED TREE. 2015-11-25 09:33:48 +09:00
Mike Hommey
e42f182b75 Typo fix for bug 1224460 breaking Gtk+2 builds. r=me 2015-11-25 08:54:24 +09:00