Commit Graph

11984 Commits

Author SHA1 Message Date
Alexandre Lissy
e16cc4f6b1 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
0f3a88d758 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
e22c157b68 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
4a6837fecc 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
cfb1228210 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
25cd06f383 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
1b3162ba0b 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
22769d6e82 Backed out changeset 3f4fb9bf51b2 (bug 1924585) for causing android perma failures CLOSED TREE 2024-10-17 23:17:27 +03:00
Dana Keeler
034c21fd4a 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
b2d035e781 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
9030a6b878 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
3c61c59cbd 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
b598138205 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
ac439e0399 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
a7fe8cd3ce 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
3a0f4bde9c 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
01bee49d16 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
Nicolas Guichard
f057d1e067 Bug 1833695 - Reset DeclContext stack when analysing out-of-line templated function. r=asuth
Without this, OutOfLineTemplateShouldntHaveContextSym had two
definition target records that disagreed on the contextsym:
1. The first one was generated when traversing the declaration, because
   it forwards to the definition if out-of-line (see comment in
   TraverseFunctionDecl).
   We didn't reset CurDeclContext, so it looked as-if the definition
   appeared inside the declaration, leading to a bogus contextsym
   (pointing to the function itself).
2. The second one was generated later on when traversing the definition
   itself. This one had a correct contextsym (ie. none).

This introduces a ValueRollback helper to make sure we don't forget to
rollback CurDeclContext afterwards. (inspired by QScopedValueRollback)

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

Differential Revision: https://phabricator.services.mozilla.com/D224609
2024-10-04 20:16:38 +00:00
Nicolas Guichard
e7054d1d7f Bug 1912078 - Don't reformat huge macro expansions. r=asuth
This disables reformating macros that are longer than a given threshold
as they take too long to reformat (and too much memory when
ColumnLimit != 0).

The threshold is lower when the macro expansion in located in a file
that is likely to be included from multiple TUs.

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

Differential Revision: https://phabricator.services.mozilla.com/D224608
2024-10-04 20:16:37 +00:00
John Schanck
7a143038bb Bug 1921490 - land NSS f8a6e9557d1c UPGRADE_NSS_RELEASE, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D224149
2024-09-30 20:32:57 +00:00
Alex Franchuk
a0ca1d43b3 Bug 1521450 - Enable per-monitor DPI scaling V2 in the Windows GUI r=gsvelto,glandium
This is quite an improvement on the quirks of the previous GDI scaling.

It also mostly supports the windows 10+ "Make text bigger" setting: it
reads the value from the registry (albeit at an unofficial location),
but doesn't register a key change listener to update the value if it
changes while the application is open. I think this is very, very likely
to be good enough; I will be surprised if someone notices this
deficiency! The official API is part of UWP and is accessible through
C++ libraries, but not conveniently through win32 APIs, which is why I
use the registry.

Differential Revision: https://phabricator.services.mozilla.com/D221544
2024-09-27 17:18:58 +00:00
Mark Banner
1b9a4bcf9e Bug 1920970 - Move ESLint node_modules bundles away from tooltool and into the toolchain. r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D223647
2024-09-26 10:55:31 +00:00
Alex Franchuk
02822fce86 Bug 1743983 pt1 - Audits and vendoring for minidump-analyzer r=glandium,supply-chain-reviewers,profiler-reviewers,aabh
Differential Revision: https://phabricator.services.mozilla.com/D208390
2024-09-24 13:36:20 +00:00
KS
8a615c024c Bug 1919962 - Add MacOS 15.0 SDK. r=firefox-build-system-reviewers,glandium
This patch adds a new macOS sdk (15.0) toolchain.

Additionally, the SDK is updated for custom-car builds as those tasks
were previously failing on an outdated SDK.

Differential Revision: https://phabricator.services.mozilla.com/D223250
2024-09-24 12:00:00 +00:00
Norisz Fay
70233c5bb2 Backed out 6 changesets (bug 1743983) for causing xpcshell failures on test_crash_exc_guard.js
Backed out changeset 4c18ba39bd29 (bug 1743983)
Backed out changeset d752fefce387 (bug 1743983)
Backed out changeset 85fe08447584 (bug 1743983)
Backed out changeset 777d22bbe805 (bug 1743983)
Backed out changeset 60b418a167d7 (bug 1743983)
Backed out changeset a46c460ecb3a (bug 1743983)
2024-09-24 00:17:08 +03:00
Alex Franchuk
2d47639665 Bug 1743983 pt1 - Audits and vendoring for minidump-analyzer r=glandium,supply-chain-reviewers,profiler-reviewers,aabh
Differential Revision: https://phabricator.services.mozilla.com/D208390
2024-09-23 19:55:01 +00:00
Alex Franchuk
cfe9ad57d5 Bug 1912131 - Update minidump-writer to 0.10.1 r=gsvelto,glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D221977
2024-09-20 15:27:10 +00:00
Mike Hommey
f6134039f5 Bug 1916426 - Pass our LDFLAGS last to the linker command line cargo invokes r=firefox-build-system-reviewers,sergesanspaille
See https://github.com/llvm/llvm-project/issues/107365#issuecomment-2362516002
for an example of how things can go wrong when they are passed first.

I don't think there was a specific reason for them to have been put
first in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D222899
2024-09-20 06:56:25 +00:00
serge-sans-paille
e67878484c Bug 1913118 - Use -fstrict-flex-arrays=1 in hardened mode r=glandium
There's no point to activate -fstrict-flex-arrays=3 as there's a lot of
situation where the char [0] syntax is used, including in generated
code.

There's no point to activate -fstrict-flex-arrays=2 as at least sqlite
and icu use the char [1] syntax.

Differential Revision: https://phabricator.services.mozilla.com/D219851
2024-09-17 14:40:24 +00:00
Francesco Lodolo (:flod)
bff989650d Bug 1918304 - Fix l10n git repository cloning step in ./mach build installers-$AB_CD, r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D222111
2024-09-16 15:08:09 +00:00
Norisz Fay
c1127359c6 Backed out changeset 8cbe1aad4c5c (bug 1918304) for causing l10n and android bustages CLOSED TREE 2024-09-13 21:06:13 +03:00
Norisz Fay
02e6d94d31 Backed out changeset 2ff7570a00ed (bug 1912131) for causing NonZero related build bustage 2024-09-13 20:44:57 +03:00
Alex Franchuk
d444981893 Bug 1912131 - Update minidump-writer to 0.10.1 r=gsvelto,glandium,supply-chain-reviewers
This is using a git rev for now as a new version hasn't been released
yet.

Differential Revision: https://phabricator.services.mozilla.com/D221977
2024-09-13 16:40:28 +00:00
Francesco Lodolo (:flod)
67c24dfc03 Bug 1918304 - Fix l10n git repository cloning step in ./mach build installers-$AB_CD, r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D222111
2024-09-13 14:09:17 +00:00
John Schanck
2d1f694314 Bug 1915849 - land NSS bd893644373a UPGRADE_NSS_RELEASE, r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D222012
2024-09-12 19:24:34 +00:00
Mike Hommey
1a4e2a2844 Bug 1913543 - Apply the final upstream fix instead of our crude workaround. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D221568
2024-09-11 02:55:19 +00:00
Mike Hommey
966871c0ea Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers
As per mozglue/static/README:

> mozglue/static contains parts of the mozglue library that can/should be
> statically linked to e.g. js/Gecko.

The compression part of MFBT is a good candidate for this.

Differential Revision: https://phabricator.services.mozilla.com/D221565
2024-09-10 20:35:56 +00:00
Sandor Molnar
56248a993d Backed out changeset 3166cd757e83 (bug 1913118) for causing mass failures @ third_party/sqlite3/src/sqlite3.c CLOSED TREE 2024-09-10 15:18:36 +03:00
serge-sans-paille
5c69643eba Bug 1913118 - Use -fstrict-flex-arrays=2 in hardened mode r=glandium
There's no point to activate -fstrict-flex-arrays=3 as there's a lot of
situation where the char [0] syntax is used, including in generated
code.

Differential Revision: https://phabricator.services.mozilla.com/D219851
2024-09-10 11:02:17 +00:00
Paul Bone
ff1eb629d4 Bug 1885102 - Enable PHC on Android nightly builds r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D215467
2024-09-10 06:07:38 +00:00
Ben Dean-Kawamura
2491f6b3cc Bug 1914241 - Upgrade UniFFI to 0.28.1, r=glandium,supply-chain-reviewers
- Ran `cargo update -p glean`
- Removed build/rust/heck now that everything depends on 0.5.
- Ran `mach vendor rust`

Differential Revision: https://phabricator.services.mozilla.com/D219800
2024-09-09 15:42:32 +00:00
Ben Dean-Kawamura
98d9c11242 Bug 1915426 - Update clap/heck/darling/anstyle/strsim, r=glandium,supply-chain-reviewers
Updated:
  - heck 0.4.1 -> 0.5.0
  - clap 4.4.5 -> 4.5.16
  - darling v0.20.1 -> v0.20.10
  - strsim 0.10.0 -> 0.11.1
  - anstyle 1.0.3 -> 1.0.8

This is in preparation of the UniFFI 0.28 upgrade:
https://bugzilla.mozilla.org/show_bug.cgi?id=1914241

Differential Revision: https://phabricator.services.mozilla.com/D220437
2024-09-09 15:42:31 +00:00
Mike Hommey
a6967e28a5 Bug 1901892 - Update builders to rustc 1.81. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D221101
2024-09-06 22:26:49 +00:00
Francesco Lodolo (:flod)
426d95862d Bug 1917163 - Update rstcheck to 6.2.4, fix resulting errors in documents, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D221287
2024-09-06 15:04:10 +00:00
Norisz Fay
65697005c6 Backed out changeset 0387b1bfee8a (bug 1901892) for causing Valgrind-test failure CLOSED TREE 2024-09-06 17:19:57 +03:00
Cristina Horotan
fcdbf602e5 Backed out changeset 4e2df2c48e4b (bug 1917163) for causing mozlint failure. CLOSED TREE 2024-09-06 16:57:11 +03:00
Francesco Lodolo (:flod)
d62c1a8e25 Bug 1917163 - Update rstcheck to 6.2.4, fix resulting errors in documents, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D221287
2024-09-06 12:17:06 +00:00
Mike Hommey
afd6e2c0b7 Bug 1901892 - Update builders to rustc 1.81. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D221101
2024-09-06 08:09:51 +00:00
Stanca Serban
9feb6fff15 Backed out changeset 819d4c9682d4 (bug 1908630) as requested for working in the incorrect sandbox. CLOSED TREE 2024-09-05 21:37:26 +03:00
serge-sans-paille
097ce3ef3d Bug 1915847 - Remove unused set_config and set_define for MOZ_SIGNED_OVERFLOW_SANITIZE and MOZ_UNSIGNED_OVERFLOW_SANITIZE from configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D220698
2024-09-05 12:19:13 +00:00