Commit Graph

12017 Commits

Author SHA1 Message Date
Mike Hommey
63b80fdaef Bug 1932296 - Refresh config.guess and config.sub from upstream. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D229574
2024-11-21 06:22:48 +00:00
John Schanck
2f9dddb161 Bug 1927888 - land NSS NSS_3_107_BETA1 UPGRADE_NSS_RELEASE, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D229396
2024-11-18 20:02:58 +00:00
Andrew Sutherland
bb9798ff28 Bug 1931631 - C++ indexer should treat constructor member initializer list field uses as having a contextsym of the constructor
This is propagating the upstream
https://github.com/mozsearch/mozsearch/pull/835 which was reviewed by
:arai.

Differential Revision: https://phabricator.services.mozilla.com/D229242
2024-11-16 21:21:11 +00:00
serge-sans-paille
0536eb3b9a Bug 1929826 - Add reversed(...) to the list of default sandboxed builtin r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D228294
2024-11-15 09:07:30 +00:00
Mike Hommey
00955409ff Bug 1931230 - Adjust revert-llvmorg-16-init-11301-g163bb6d64e5f patch for clang trunk. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D229072
2024-11-15 04:15:13 +00:00
serge-sans-paille
5df06598e8 Bug 1928633 - Better hinting for global variable linter r=arai
Differential Revision: https://phabricator.services.mozilla.com/D228991
2024-11-14 15:24:37 +00:00
Norisz Fay
5dd128abb4 Backed out changeset 76200f16a497 (bug 1644983) for causing Bug 1930798, Bug 1930799, Bug 1930791 and other CacheFileIOManager related crashes CLOSED TREE 2024-11-13 06:23:51 +02:00
Valentin Gosu
5d3e7ab00e Bug 1644983 - Make CacheIOThread a regular XPCOM thread and register thread with profiler r=necko-reviewers,dragana,profiler-reviewers,julienw,kershaw
I had big issues with this patch as it was causing random crashes
when run with MOZ_PROFILER_STARTUP=1 and breaking browser_xpcom_graph_wait.js
which does the same.
I tried to get around that by avoiding the IOInterposer registration
in CacheIOThread, but that was also problematic.

Eventually it seems there's no longer a good reason to keep calling
PR_CreateThread manually instead of NS_NewNamedThread, so I switched
to that and all of the previous issues are gone.

The stack is now twice as big, but hopefully that's not a major issue.
All other behaviour should stay the same.

Differential Revision: https://phabricator.services.mozilla.com/D132381
2024-11-12 19:12:43 +00:00
Mike Hommey
d3c419aff0 Bug 1928572 - Adjust revert-llvmorg-16-init-11301-g163bb6d64e5f patch for clang trunk. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D228143
2024-11-12 00:48:41 +00:00
Nicolas Guichard
2059f55557 Bug 1453506 - Forward type-dependent news to template call locations. r=asuth
This provides a way to make type-dependent statements appear as-if they
were located at the template call site.

During the analysis of the template, this first registers all type-dependent
function call locations in ForwardedTemplateLocations (we don't have more
information at this point).

Then when analyzing the template instantiations, we link the actual
type-resolved statements to the template instantiation.

Then when emitting the analysis data for a template call, we also (recursively)
emit all the analysis data for the forwarded items at the call site.

Differential Revision: https://phabricator.services.mozilla.com/D228449
2024-11-08 16:04:31 +00:00
serge-sans-paille
d8a80fdff3 Bug 1915191 - Provide a minimal linter for configure help r=glandium,geckoview-reviewers,owlish
Currently makes sure all help message begins with an uppercase letter
and does *not* end with a dot.

Differential Revision: https://phabricator.services.mozilla.com/D220283
2024-11-07 10:43:43 +00:00
serge-sans-paille
57a1535604 Bug 1925623 - Die on configure if optimization flags actually don't trigger any optimization r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D227469
2024-11-07 09:54:07 +00:00
Andrew Halberstadt
d161130b46 Bug 1928709 - Remove build/tests/cram, r=firefox-build-system-reviewers,ahochheiden,nalexander
This is being removed because:
1. It it the last remaining cram test in-tree
2. It doesn't run in any CI tasks
3. It doesn't appear to be a particularly high value test

Once this is removed, the cramtest harness can also be removed.

Differential Revision: https://phabricator.services.mozilla.com/D227868
2024-11-06 19:03:15 +00:00
Alexandre Lissy
4c7aaa0e8f Bug 1928084 - Add dbus-python and python-dbusmock wheels r=ahal,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D227342
2024-11-06 13:42:54 +00:00
Alexandru Marc
b14bbdd93c Backed out changeset ecc23a1b68eb (bug 1928084) for causing Docker Images build bustages. CLOSED TREE 2024-11-06 15:24:28 +02:00
Alexandre Lissy
c946438ef1 Bug 1928084 - Add dbus-python and python-dbusmock wheels r=ahal,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D227342
2024-11-06 13:06:00 +00:00
Sylvestre Ledru
d35ba16a18 Bug 1918098 - ruff: fix the errors identified by 0.6.4 r=linter-reviewers,taskgraph-reviewers,releng-reviewers,webdriver-reviewers,perftest-reviewers,migration-reviewers,jmaher,whimboo,sparky,xpcom-reviewers,beth,ahal,mconley
Differential Revision: https://phabricator.services.mozilla.com/D221874
2024-11-06 12:51:32 +00:00
Alexandre Lissy
bf4989dfb6 Bug 1908630 - Override LLVM Profiling for manual handling r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D218428
2024-11-05 06:30:49 +00:00
Sylvestre Ledru
cd289bcb06 Bug 1921433 - reformat with black 24.8.0 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,taskgraph-reviewers,releng-reviewers,dom-storage-reviewers,janv,jmaher,whimboo,afinder,ahal
Differential Revision: https://phabricator.services.mozilla.com/D223963
2024-11-03 20:28:59 +00:00
Mike Hommey
8d8376cce5 Bug 1927983 - Clean-up in-tree mozconfigs. r=firefox-build-system-reviewers,geckoview-reviewers,sergesanspaille,m_kato
-gline-tables-only is better passed to --enable-debug or
--enable-debug-symbols than via abuse of --enable-optimize.

--enable-optimize was being passed -O2 because passing
-gline-tables-only would have removed optimizations. This has the side
effect of changing the optimization level on macOS, though, so there
we keep the override.

--disable-debug is the default, remove it.
--enable-project=browser is the default, remove it.
--enable-optimize is the default, remove it.
--enable-debug-symbols is the default, remove it.
--disable-sandbox is the default on tsan builds, remove it.
--enable-optimize="-O2 -g" is, essentially, the default, remove it.
--with-android-min-sdk=21 is the default, remove it.

X11 builds only have the X11 headers, so technically speaking the
cairo-gtk3 toolkit is fine because it does the right fallback, but
using cairo-gtk3-x11-only is more explicit and would avoid surprises.

MOZ_DEBUG_SYMBOLS has been a no-op for essentially forever.

Differential Revision: https://phabricator.services.mozilla.com/D227311
2024-10-31 23:39:04 +00:00
serge-sans-paille
91112db840 Bug 1270832 - Activate standard c++ library hardening r=glandium
For both libc++ and libstdc++, they have different macro to activate
those, and different feature check.

This is a debug-only feature, given the overhead.

Differential Revision: https://phabricator.services.mozilla.com/D220934
2024-10-31 06:53:40 +00:00
Alex Franchuk
a1d55b1ff2 Bug 1923782 - Include minidump-analyzer library on android r=glandium,geckoview-reviewers,owlish,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D225787
2024-10-30 16:54:27 +00:00
serge-sans-paille
eec5191498 Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium
This patch both:

1. Provides a static checker to detect global variables which may not be
   initialized at compile-time

2. Verify that variables flagged as MOZ_RUNINIT are indeed
   initialized at runtime

3. In case of variables whose initialisation status varies based on
   macro definition or template parameters, just flag them as
   MOZ_GLOBINIT.

Differential Revision: https://phabricator.services.mozilla.com/D223342
2024-10-30 11:05:25 +00:00
Cristian Tuns
a34e6f55ed Backed out changeset cd086554b496 (bug 1923782) for causing build bustages in /lib.cpp CLOSED TREE 2024-10-29 23:48:27 -04:00
Alex Franchuk
ff9a771deb Bug 1923782 - Include minidump-analyzer library on android r=glandium,geckoview-reviewers,owlish,gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D225787
2024-10-30 03:05:37 +00:00
Mike Hommey
0750ac3e5a Bug 1926473 - Consider x86_64-apple-ios as a simulator target. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D226581
2024-10-24 07:47:31 +00:00
Mike Hommey
d401094841 Bug 1926471 - Validate that the iOS SDK can be used for the given target. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D226580
2024-10-24 07:47:31 +00:00
Mike Hommey
2ae41f5a95 Bug 1926148 - Default to iOS Simulator builds. r=nika
As running on a device is more involved, we might as well default to
building for the simulator for now.

Differential Revision: https://phabricator.services.mozilla.com/D226411
2024-10-24 07:47:30 +00:00
Mike Hommey
2adab0f33c Bug 1926139 - Add clang version mappings for more versions of Xcode. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D226406
2024-10-22 02:23:11 +00:00
Mike Hommey
6f46dbe419 Bug 1923321 - Apply compiler-rt patches for ASan interception on Windows 11 24H2. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D226404
2024-10-22 02:15:31 +00:00
KS
cfcd66bac9 Bug 1925145 - Add updated Windows SDK and fix CaR builds. r=firefox-build-system-reviewers,glandium
The windows chromium-as-release (CaR) builds recently updated the
minimum windows SDK version required to complete the builds. This patch
adds this new sdk toolchain and also keeps it separate for just these
builds.

Differential Revision: https://phabricator.services.mozilla.com/D226332
2024-10-21 22:29:32 +00:00
mcarare
9ee1749f3c Bug 1881685 - Target SDK 35. r=pollymce,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D225655
2024-10-21 17:08:34 +00:00
Paul Adenot
06fb4d6f70 Bug 1717448 - Exclude {fmt} from gecko-specific checks. r=glandium,nika
It looks like the excluding logic around ThirdPartyPaths.txt works on include
paths, and not on the path of files on disk, so it's necessary to explicitly
exclude files in `fmt/`. Two checks fail as things stand today:

- the one that checks that `explicit` is used for single-arg ctors, this is used
throughout `{fmt}`
- the one that checks that `val != val` isn't used to check for NaN. This is
used in `{fmt}` because `std::isnan` doesn't have an overload for `__float128`.
This check is now ignoring third-party code.

Differential Revision: https://phabricator.services.mozilla.com/D217960
2024-10-21 12:54:54 +00:00
Alexandre Lissy
40d584728f Bug 1925274 - Suppress valgrind new suspected leaks related to ForkServer argv handling r=jld
Differential Revision: https://phabricator.services.mozilla.com/D225975
2024-10-21 06:05:44 +00:00
Butkovits Atila
156b2012dc Backed out 8 changesets (bug 1918596, bug 1917575, bug 1874689, bug 1925181, bug 1917844, bug 1925274, bug 1915152) for causing failures at Sandbox.cpp. CLOSED TREE
Backed out changeset ce2138248319 (bug 1874689)
Backed out changeset fbe9fbb6ae72 (bug 1925181)
Backed out changeset c9896c8962cb (bug 1925274)
Backed out changeset 6eddbad5949c (bug 1918596)
Backed out changeset b9bf86fa1c74 (bug 1917844)
Backed out changeset 1d4cd83d1a39 (bug 1917844)
Backed out changeset 264a5140fbcb (bug 1917575)
Backed out changeset 87b8512c67c9 (bug 1915152)
2024-10-19 23:27:56 +03:00
Alexandre Lissy
4f03f0d84b Bug 1925274 - Suppress valgrind new suspected leaks related to ForkServer argv handling r=jld
Differential Revision: https://phabricator.services.mozilla.com/D225975
2024-10-19 08:55:34 +00:00
Tamas Szentpeteri
6e1a798714 Backed out 13 changesets (bug 1717448) for causing gtest failures on iofwrite.c
Backed out changeset 4254666ea8a7 (bug 1717448)
Backed out changeset 41c8a260d55b (bug 1717448)
Backed out changeset 670256c85479 (bug 1717448)
Backed out changeset 37ab78b00a4f (bug 1717448)
Backed out changeset 5e5b42a7cde1 (bug 1717448)
Backed out changeset 8295836348fb (bug 1717448)
Backed out changeset aebf794911ca (bug 1717448)
Backed out changeset 4381f24f8495 (bug 1717448)
Backed out changeset f0ca736c051b (bug 1717448)
Backed out changeset 993a64fd729a (bug 1717448)
Backed out changeset 2e17fb168eaf (bug 1717448)
Backed out changeset 47ed151719a4 (bug 1717448)
Backed out changeset adef9b3b6231 (bug 1717448)
2024-10-18 20:03:47 +03:00
Paul Adenot
aa41c924e9 Bug 1717448 - Exclude {fmt} from gecko-specific checks. r=glandium,nika
It looks like the excluding logic around ThirdPartyPaths.txt works on include
paths, and not on the path of files on disk, so it's necessary to explicitly
exclude files in `fmt/`. Two checks fail as things stand today:

- the one that checks that `explicit` is used for single-arg ctors, this is used
throughout `{fmt}`
- the one that checks that `val != val` isn't used to check for NaN. This is
used in `{fmt}` because `std::isnan` doesn't have an overload for `__float128`.
This check is now ignoring third-party code.

Differential Revision: https://phabricator.services.mozilla.com/D217960
2024-10-18 11:35:20 +00:00
Sandor Molnar
7a0bce5f97 Backed out 2 changesets (bug 1909343, bug 1890886) for causing crashes. CLOSED TREE
Backed out changeset 9f36338ef1de (bug 1909343)
Backed out changeset 4e30cef2e71c (bug 1890886)
2024-10-18 06:49:42 +03:00
Mike Hommey
c6c2f98c3a Bug 1890886 - Update builders to clang 19. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D225713
2024-10-17 20:38:20 +00:00
Sandor Molnar
9912f02c3d Backed out changeset 3f4fb9bf51b2 (bug 1924585) for causing android perma failures CLOSED TREE 2024-10-17 23:17:27 +03:00
Dana Keeler
00713799fe Bug 1924585 - add telemetry to measure hyphens in domain names causing compatibility issues r=Gijs,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D225561
2024-10-17 18:32:58 +00:00
Mike Hommey
b52439b6c6 Bug 1923542 - Pass -fno-sized-deallocation and -fno-aligned-new C++ compiler flags through rust even when only passing base flags. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D225009
2024-10-09 20:17:30 +00:00
Mike Hommey
1487fa209f Bug 1923217 - Upgrade zstandard to 0.23.0. r=firefox-build-system-reviewers,mach-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D224850
2024-10-09 02:26:05 +00:00
Mike Hommey
7f9d69c32b Bug 1923252 - Patch clang to avoid error in Android NDK headers. r=firefox-build-system-reviewers,sergesanspaille
Upstream is not interested in fixing this or even providing a flag to
disable the error, so let's patch our compiler until we can upgrade to
NDK r28 (which is not released yet).

Differential Revision: https://phabricator.services.mozilla.com/D224893
2024-10-08 07:55:26 +00:00
Nicolas Guichard
b366717a41 Bug 1922888 - Fix IndexConsumer::getContext(SourceLocation) when Ctxt->Decl is null. r=asuth
Bug 1856762 added support for traversing the implicit declarations
created for lambdas. When traversing a lambda, a new context is pushed
to the AutoSetContext stack to set the VisitImplicit flag. This context
has Decl == nullptr because the lambda is not a NamedDecl.

I modified IndexConsumer::getContext(Decl *D) to support that case, but
forgot to modify getContext(SourceLocation Loc) to support it too.

Differential Revision: https://phabricator.services.mozilla.com/D224629
2024-10-05 16:12:20 +00:00
Mike Hommey
38816aa9f7 Bug 1915571 - Move mac and windows clang stage 2 build to cross-compiles. r=firefox-build-system-reviewers,sergesanspaille
By doing so, we don't really need a stage 1 clang for mac and windows
(with the downside that the final PGOed clang becomes the
clang-toolchain artifact on those platforms), and cross-compiling stage
2 is much faster as a cross-compile, leaving only stage 3 to be native.

While here, for the one build type that still does stage 2 and 3 in one
task, we actually prefer taking the llvm-profdata from stage 1, as it
doesn't contain profile instrumentation (it should actually have been
this way since the beginning).

Differential Revision: https://phabricator.services.mozilla.com/D220654
2024-10-04 20:26:33 +00:00
Mike Hommey
f1e77139a3 Bug 1915571 - Disable name compression on cross-compiled profile-gen builds. r=firefox-build-system-reviewers,sergesanspaille
We do this as of bug 1620166 for Firefox, and we need something similar
when building clang, for the same reason.

Differential Revision: https://phabricator.services.mozilla.com/D224405
2024-10-04 20:26:33 +00:00
Mike Hommey
65a28d900c Bug 1915571 - Use the right clang runtime when cross-compiling profile-gen for windows. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D224404
2024-10-04 20:26:32 +00:00
Nicolas Guichard
5d13637768 Bug 1856762 - Visit implicit code inside lambdas. r=asuth
This reuses the AutoSetContext machinery initially implemented for
constructors to visit the implicit code generated for lambdas too,
giving us the data required to understand the template-dependent code
in lambdas.

AutoSetContext is adapted to support AutoSetContext::Decl == nullptr
because, contrary to CXXConstructorDecl, LambdaExprs aren't NamedDecls.

See https://github.com/mozsearch/mozsearch/pull/821

Differential Revision: https://phabricator.services.mozilla.com/D224610
2024-10-04 20:16:38 +00:00