Commit graph

752 commits

Author SHA1 Message Date
Xin Li
b81f48ee02 Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" 2019-02-20 16:26:00 +00:00
Dan Albert
6b3956d122 Merge "Revert "Remove armv7-a without neon support"" am: 48db2b15fb am: ecbadc5b6c
am: 856c8234f2

Change-Id: Ica4d9b0b474c6be9dd273dab71f33f013abaf6dc
2019-02-20 05:39:39 -08:00
Dan Albert
856c8234f2 Merge "Revert "Remove armv7-a without neon support"" am: 48db2b15fb
am: ecbadc5b6c

Change-Id: Ib59fed4c3f2d6405c64224152e055280fd455f51
2019-02-20 05:27:20 -08:00
Dan Albert
ecbadc5b6c Merge "Revert "Remove armv7-a without neon support""
am: 48db2b15fb

Change-Id: I3f0bd183bb1dfe36fd9f6221c264c3c26d13e72f
2019-02-20 05:10:09 -08:00
Dan Albert
8818f49989 Revert "Remove armv7-a without neon support"
Unfortunately we still need to build the NDK sysroot as non-NEON
since that's still supported, though it's no longer the default.

This reverts commit f4e0601c7e.

Test: treehugger
Test: rebuilt NDK sysroot and imported into the NDK, ran NDK tests
Bug: None
2019-02-19 13:53:01 -08:00
Pirama Arumuga Nainar
2933c50de6 Merge "Switch to clang-r349610" am: 42b87a2e56 am: 8edd1c3632
am: 06b240368e

Change-Id: I22b72f4a260e0438248da7a1401b61a49b1dc26a
2019-02-01 12:14:22 -08:00
Pirama Arumuga Nainar
06b240368e Merge "Switch to clang-r349610" am: 42b87a2e56
am: 8edd1c3632

Change-Id: I92713c576b5c9c9bf7ee16d0016c0f9aa495a3e7
2019-02-01 11:27:22 -08:00
Pirama Arumuga Nainar
8edd1c3632 Merge "Switch to clang-r349610"
am: 42b87a2e56

Change-Id: If67d4fd64234ae0ab727556121a6a4cc21941631
2019-02-01 11:07:54 -08:00
Pirama Arumuga Nainar
03b58e2210 Switch to clang-r349610
Bug: http://b/122481018

The '-keep' option of llvm-strip has changed to '-keep-section'.  Update
scripts/strip.sh accordingly.

Test: Tested on various targets in AOSP and internal branch.  Googlers
      see http://go/clang-r349610-testing
Change-Id: Ibfc97ecdcdc305c97a4169cead1e1e3cddda9c4c
2019-01-31 16:32:34 +00:00
George Burgess IV
6e55ec9f03 Merge "config: swap to glibc 2.17" am: f4803454b0 am: 5106157118
am: 1b9ee9d55e

Change-Id: I84e406ac79693d62c784d18ae7dc5e5fb0556444
2019-01-29 15:11:25 -08:00
George Burgess IV
1b9ee9d55e Merge "config: swap to glibc 2.17" am: f4803454b0
am: 5106157118

Change-Id: If14fbfc6a66f39f36a2d8c626576a2e0582c630a
2019-01-29 14:47:13 -08:00
George Burgess IV
5106157118 Merge "config: swap to glibc 2.17"
am: f4803454b0

Change-Id: I7671fe1c1a8bd380aa338cc981cca954fa7d59b6
2019-01-29 14:39:52 -08:00
George Burgess IV
f4803454b0 Merge "config: swap to glibc 2.17" 2019-01-29 22:24:58 +00:00
Orion Hodson
50ecc4d730 Merge "Remove libnativehelper from global includes" am: 6703e6f390 am: 2946369186
am: d5325cde0a

Change-Id: Ib2d861763ff3612fa4f81a16fa1b6d7142bba557
2019-01-29 07:03:10 -08:00
Orion Hodson
d5325cde0a Merge "Remove libnativehelper from global includes" am: 6703e6f390
am: 2946369186

Change-Id: I2a4368d191d443fff15e385c6ef89a9af6cb9f03
2019-01-29 06:51:53 -08:00
Orion Hodson
2946369186 Merge "Remove libnativehelper from global includes"
am: 6703e6f390

Change-Id: I2c35da64b0886c0a6a0d24f8432ef9f8ff92319a
2019-01-29 06:41:33 -08:00
Orion Hodson
1e7c3d63a9 Remove libnativehelper from global includes
Bug: 119840313
Test: m checkbuild
Change-Id: Id80e26a396c2e289dcd2596a5b799e251d9ccf1b
2019-01-27 11:11:01 +00:00
Dan Willemsen
e525783992 Merge "Remove armv7-a without neon support" am: e4f12785db am: cf71b8ca86
am: 89cfde3026

Change-Id: I0b79b14d47e778d4dce4f886cbc0d528a53be3fa
2019-01-24 20:13:33 -08:00
Dan Willemsen
89cfde3026 Merge "Remove armv7-a without neon support" am: e4f12785db
am: cf71b8ca86

Change-Id: Ib20a7fa4a78d90fccb24a1ae9ea8e571d3f6447a
2019-01-24 20:09:32 -08:00
Dan Willemsen
cf71b8ca86 Merge "Remove armv7-a without neon support"
am: e4f12785db

Change-Id: I2529ec9417cf4f49e70a424dd7a37441fb884624
2019-01-24 19:57:47 -08:00
Dan Willemsen
e4f12785db Merge "Remove armv7-a without neon support" 2019-01-25 03:52:17 +00:00
Doug Horn
4faa6d2488 Support building for Fuchsia. am: c32c6b0d79 am: ac2925f410
am: b85599e803

Change-Id: I6ef28e11e3fbe3dc3217ae7b1c05f39ada1ebbd3
2019-01-24 16:14:20 -08:00
Doug Horn
b85599e803 Support building for Fuchsia. am: c32c6b0d79
am: ac2925f410

Change-Id: I29ce80cb8ba76835b97cbdd24c0e3da625dfa83e
2019-01-24 16:06:17 -08:00
Doug Horn
ac2925f410 Support building for Fuchsia.
am: c32c6b0d79

Change-Id: Ic180340f6f508e4a897e0464e3e0bc2f3d22c87c
2019-01-24 15:58:35 -08:00
Dan Willemsen
f4e0601c7e Remove armv7-a without neon support
Test: treehugger
Change-Id: I8565d84224daedb6a6dde6dfb9c0fe5f5fabb0f6
2019-01-24 15:51:26 -08:00
Doug Horn
c32c6b0d79 Support building for Fuchsia.
This CL adds configs for the arm64 and x64 fuchsia
device targets, sets up the necessary linker flags,
and disables some functionality that is not currently
supported on Fuchsia.

Bug: 119831161
Test: Compile walleye, internal validation against
fuchsia_arm64-eng and fuchsia_x86_64-eng.
Change-Id: I2881b99d2e3a1995e2d8c00a2d86ee101a972c94
2019-01-24 18:59:29 +00:00
George Burgess IV
7294cdced0 config: swap to glibc 2.17
**Please do not revert this change without consulting with either
srhines@ or gbiv@ first. It's a large change, and if it only causes
simple/small breakages, we plan to fix those as they pop up.**

This CL swaps the host Android Linux toolchain to gcc 4.8.3 + glibc
2.17, landed in Ieeed444801160e3d288bbad7d871067e81411118.

Bug: 111358231
Test: We've done extensive testing on internal master. Please see
      Ieeed444801160e3d288bbad7d871067e81411118.
Change-Id: If991a603a3dce33b55086672c27a11992f0f3123
2019-01-23 14:02:10 -08:00
Jerome Gaillard
fa88a39496 Merge "Add Skia deps to the list of available Windows libraries" am: 13a539c009 am: c5c22a4f86
am: 784c73f883

Change-Id: Ib7fd5b0da822203e4b5577abd67f3c70e1accc3f
2019-01-21 12:30:00 -08:00
Jerome Gaillard
784c73f883 Merge "Add Skia deps to the list of available Windows libraries" am: 13a539c009
am: c5c22a4f86

Change-Id: Ie97f8c6a0a1dbd77dbed2d512d1267cf783435da
2019-01-21 12:17:36 -08:00
Jerome Gaillard
c5c22a4f86 Merge "Add Skia deps to the list of available Windows libraries"
am: 13a539c009

Change-Id: I45c4f8d8305b9ef8f296d50b374d778fabdaf362
2019-01-21 12:13:31 -08:00
Jerome Gaillard
7f7f34f81a Add Skia deps to the list of available Windows libraries
Building Skia for Windows requires linking some Windows libraries that
were not in the list of available ones. This adds the necessary
libraries.

Test: N/A
Change-Id: I803b7b05f47163316c6f03866145dc50656a6bef
2019-01-21 11:34:46 +00:00
Jaewoong Jung
cd9925d0fd Merge "Move arch variants registering code to arch.go." am: d4a393466a am: 9dec005b6b
am: 68b63d96ac

Change-Id: I4a3f0e986a823cd4cf6a144949ad1e5ebc407a0a
2019-01-17 07:47:16 -08:00
Jaewoong Jung
68b63d96ac Merge "Move arch variants registering code to arch.go." am: d4a393466a
am: 9dec005b6b

Change-Id: I74ca7e25eaa9c5f282a5be4596330b6ab9129efa
2019-01-17 07:43:10 -08:00
Jaewoong Jung
9dec005b6b Merge "Move arch variants registering code to arch.go."
am: d4a393466a

Change-Id: I58e957455a7bcfdcf40e3b4454a0195921b54f20
2019-01-17 07:38:47 -08:00
Jaewoong Jung
e46114c11b Move arch variants registering code to arch.go.
This enables using arch-dependent property values in modules defined in
android/.

Bug: 122332178
Test: Soong tests + TreeHugger
Change-Id: I89869e395fabf0e69f505b77eab8a4221384124e
2019-01-16 18:29:03 -08:00
Dan Willemsen
1b12302bf4 Configure the default arch variant features per-OS am: 01a3c25ed7 am: ea53a95e10
am: fc9dff9965

Change-Id: Ice73a2b174b25f0d197621f08bcd2994575c6feb
2019-01-14 17:29:06 -08:00
Dan Willemsen
fc9dff9965 Configure the default arch variant features per-OS am: 01a3c25ed7
am: ea53a95e10

Change-Id: Id1d2733acaa48287da535394c65e9200a67bb72f
2019-01-14 17:18:24 -08:00
Dan Willemsen
ea53a95e10 Configure the default arch variant features per-OS
am: 01a3c25ed7

Change-Id: Icb12a09355a8b418667eef9ec6668dbd4f240525
2019-01-14 17:09:56 -08:00
Dan Willemsen
01a3c25ed7 Configure the default arch variant features per-OS
The minimum set of supported features are different between Android and
Linux with X86_64. So while the list of variants and features are still
technically correct, and may be shared more in the future, the default
needs to be configured differently.

Bug: 120208462
Test: add `host_supported: true` to libopus; m libopus
Change-Id: Ib79707d17b852f77341026085230c026b6386b78
2019-01-15 00:53:28 +00:00
Stephen Hines
705357a798 Merge "Switch to clang-r346389c." am: db89aa2c1d am: 053e24087b
am: f1d56697e8

Change-Id: Icd9ddb694fd6591efbb4eae89da04c855ac0dd8f
2019-01-14 14:45:19 -08:00
Stephen Hines
f1d56697e8 Merge "Switch to clang-r346389c." am: db89aa2c1d
am: 053e24087b

Change-Id: I861a7a8b5ff491f84c27f0c546afbcaf80e8da32
2019-01-14 14:34:03 -08:00
Stephen Hines
053e24087b Merge "Switch to clang-r346389c."
am: db89aa2c1d

Change-Id: I93384b066fc2a6aafd89e46ad7c20b80f2e7010d
2019-01-14 14:04:15 -08:00
Stephen Hines
db89aa2c1d Merge "Switch to clang-r346389c." 2019-01-14 21:47:17 +00:00
Yi Kong
61bf801cee Merge "Move -Wno-null-dereference to external only" am: 98975c301e am: 52e8b1e270
am: 92071899bd

Change-Id: I625b6d560ed0c8c49c1064a3bedb2d3c7b6858bd
2019-01-13 17:58:29 -08:00
Yi Kong
92071899bd Merge "Move -Wno-null-dereference to external only" am: 98975c301e
am: 52e8b1e270

Change-Id: I39e74436a541b308c88cc09995a7887e5f3680a5
2019-01-13 17:53:37 -08:00
Yi Kong
52e8b1e270 Merge "Move -Wno-null-dereference to external only"
am: 98975c301e

Change-Id: Iaeb4dfe5dd99f8b368b4aaeea94868e434653d75
2019-01-13 17:49:15 -08:00
Stephen Hines
c0042a2c77 Switch to clang-r346389c.
This cherry-pick update picks up a few patches to improve hwasan, ELF
tls, and LLD for kernel builds.

Bug: http://b/122549771
Test: make checkbuild, boot
Change-Id: I8a90282af41ad4c74df819484ba2c3507e20100f
2019-01-11 09:21:46 -08:00
Yi Kong
fae5dac8fd Move -Wno-null-dereference to external only
Test: m checkbuild
Bug: 29823425
Change-Id: Icd675e451b2a2a8e3f489706e533f92d991de9c0
2018-12-21 14:51:41 -08:00
Yi Kong
393bbbfe66 Merge "Move -Wno-null-pointer-arithmetic to external only" am: df76efe524
am: 3b47a3bd02

Change-Id: Id9623315759a50ee0480c10aebfa560cee47a7a1
2018-12-14 16:57:06 -08:00
Yi Kong
3b47a3bd02 Merge "Move -Wno-null-pointer-arithmetic to external only"
am: df76efe524

Change-Id: I71ba1b6dbd242eaf7614750076b565419ca8dae6
2018-12-14 16:44:58 -08:00
Yi Kong
c9f6db50d3 Move -Wno-null-pointer-arithmetic to external only
Test: m checkbuild
Bug: 72331524
Change-Id: I9c49a8cef547f6c840001fd203a0abecaeef44d5
Merged-In: I9c49a8cef547f6c840001fd203a0abecaeef44d5
(cherry picked from commit 3e88cb0399)
2018-12-13 18:36:19 -08:00
Yi Kong
3e88cb0399 Move -Wno-null-pointer-arithmetic to external only
Test: m checkbuild
Bug: 72331524
Change-Id: I9c49a8cef547f6c840001fd203a0abecaeef44d5
2018-12-13 03:55:29 -08:00
Jerome Gaillard
d2cf2bf5af Merge "Upgrade Windows default build version from Vista to 7" am: ff42f04af8 am: 475b7d7fb7
am: b49619f48c

Change-Id: I9ab059679cad1e9986441be1c7c65bb3a218800d
2018-12-12 06:22:47 -08:00
Jerome Gaillard
b49619f48c Merge "Upgrade Windows default build version from Vista to 7" am: ff42f04af8
am: 475b7d7fb7

Change-Id: Ibde618c5677e708944eae7b72f76c2db647582c7
2018-12-12 06:16:42 -08:00
Jerome Gaillard
475b7d7fb7 Merge "Upgrade Windows default build version from Vista to 7"
am: ff42f04af8

Change-Id: I5bbcb61e74a847918867a7b26f9fc295c387b99d
2018-12-12 06:11:39 -08:00
Jerome Gaillard
ff42f04af8 Merge "Upgrade Windows default build version from Vista to 7" 2018-12-12 13:59:56 +00:00
Yi Kong
f22c336bcf Merge "Remove unneeded -Wno-expansion-to-defined flag" am: e2025abe96 am: 353bdb292f
am: 127d96dd4f

Change-Id: I6412a9832fced1bd8517b26ebc83f3fbcf1e0788
2018-12-11 19:03:09 -08:00
Yi Kong
127d96dd4f Merge "Remove unneeded -Wno-expansion-to-defined flag" am: e2025abe96
am: 353bdb292f

Change-Id: I80c01c4875530e7b93bc51b4af5b527f040f9ed0
2018-12-11 18:57:01 -08:00
Yi Kong
353bdb292f Merge "Remove unneeded -Wno-expansion-to-defined flag"
am: e2025abe96

Change-Id: If7726e9e4b70134c9551dd36d54bdd14baefcc2d
2018-12-11 18:51:52 -08:00
Yi Kong
4603b9f411 Remove unneeded -Wno-expansion-to-defined flag
Test: m checkbuild
Bug: 29823425
Change-Id: I8c9c7cc92757af20d3a3bbcebeb6360d1df91530
2018-12-10 04:55:51 -08:00
Yi Kong
10c9528557 Remove unneeded -Wno-deprecated-register flag am: 02c0ad48ba am: b8506d246e
am: a62c5ac2f1

Change-Id: I132fcfa5b629531df91e5d19334f904b724ec76e
2018-12-08 20:58:40 -08:00
Yi Kong
a62c5ac2f1 Remove unneeded -Wno-deprecated-register flag am: 02c0ad48ba
am: b8506d246e

Change-Id: I29f8ee1d895b078d2640fb7fb1603b301f8c0342
2018-12-08 20:54:36 -08:00
Yi Kong
b8506d246e Remove unneeded -Wno-deprecated-register flag
am: 02c0ad48ba

Change-Id: I129ebec38b7d8c99d72affb3ea0a97cfaaefd7e7
2018-12-08 20:50:34 -08:00
Yi Kong
02c0ad48ba Remove unneeded -Wno-deprecated-register flag
Test: m checkbuild
Change-Id: I030a66b8a484673caf3a96a844dc26954e08071a
2018-12-09 04:41:38 +00:00
Yi Kong
b57fd16dbd Revert "Revert "Remove unneeded -Wno-constant-logical-operand flag"" am: 4a7400be79 am: 11c39a728a
am: e05613dd70

Change-Id: Ic296135ed6591571aedf6b31d9f3a7a2afe7632e
2018-12-07 15:20:44 -08:00
Yi Kong
e05613dd70 Revert "Revert "Remove unneeded -Wno-constant-logical-operand flag"" am: 4a7400be79
am: 11c39a728a

Change-Id: I880489b16e51cb6e43ed94f54394ae403a0e4fea
2018-12-07 15:16:29 -08:00
Yi Kong
11c39a728a Revert "Revert "Remove unneeded -Wno-constant-logical-operand flag""
am: 4a7400be79

Change-Id: I5bce78df06270134ebf3f9ac00b176f1fd80304e
2018-12-07 15:12:26 -08:00
Yi Kong
bca848a420 Merge "Remove unneeded -Wno-dangling-field flag" am: 3412046caf am: a9d3b3a947
am: a2eae4dfe7

Change-Id: I64c0f10bb4254291ce6ed49d9c8c1232faf79137
2018-12-07 14:29:15 -08:00
Yi Kong
a2eae4dfe7 Merge "Remove unneeded -Wno-dangling-field flag" am: 3412046caf
am: a9d3b3a947

Change-Id: Ibbd5e1cff74266844feb3b3c4c02f51d00ad7d40
2018-12-07 14:25:10 -08:00
Yi Kong
a9d3b3a947 Merge "Remove unneeded -Wno-dangling-field flag"
am: 3412046caf

Change-Id: If82dad79f357ba4c59a0e24f7b15b6285051a511
2018-12-07 14:21:07 -08:00
Yi Kong
4a7400be79 Revert "Revert "Remove unneeded -Wno-constant-logical-operand flag""
This reverts commit f993e7797d.

Build breakage fixed.

Test: m checkbuild
2018-12-07 22:00:57 +00:00
Yi Kong
3412046caf Merge "Remove unneeded -Wno-dangling-field flag" 2018-12-07 21:59:21 +00:00
Chih-hung Hsieh
2a5ec750cf Merge "Switch to clang-r346389b." am: 98f91d4f72 am: 7a43111d0f
am: 9a0bf162ab

Change-Id: Id0cb76bdf1ebcbd95e1a4ae35d63a280a9702dc4
2018-12-07 12:42:25 -08:00
Chih-hung Hsieh
9a0bf162ab Merge "Switch to clang-r346389b." am: 98f91d4f72
am: 7a43111d0f

Change-Id: I0b91738943b3b334bc095c58fcf3f08386850072
2018-12-07 12:36:24 -08:00
Chih-hung Hsieh
7a43111d0f Merge "Switch to clang-r346389b."
am: 98f91d4f72

Change-Id: Iefcb7128460c336642f22440e0de22111913c586
2018-12-07 12:31:18 -08:00
Chih-hung Hsieh
98f91d4f72 Merge "Switch to clang-r346389b." 2018-12-07 20:19:09 +00:00
Yi Kong
d218df1b2f Remove unneeded -Wno-dangling-field flag
Test: m checkbuild
Change-Id: I4867fb80ffa901d4fef96b315cd114e6f9b82476
2018-12-06 16:43:55 -08:00
Chih-Hung Hsieh
50e09ac14f Undo workaround of flag filtering. am: 1017b37654 am: 058cd51ebb
am: 25a972280f

Change-Id: I61ced46a2177308f0830b0f5fbba82dae32b7ab0
2018-12-06 16:18:57 -08:00
Chih-Hung Hsieh
25a972280f Undo workaround of flag filtering. am: 1017b37654
am: 058cd51ebb

Change-Id: Ib5fed3a392a0e7e6f5bd25ed583ce2db1daf37ba
2018-12-06 16:11:42 -08:00
Chih-Hung Hsieh
058cd51ebb Undo workaround of flag filtering.
am: 1017b37654

Change-Id: I1645934dad7001555a2ac32e4fe17cd72aa540c4
2018-12-06 16:07:04 -08:00
Chih-Hung Hsieh
1017b37654 Undo workaround of flag filtering.
* Now header-abi-dumper does not complain about -fno-sanitize=implicit-integer-sign-change

Bug: 119558057
Test: make checkbuild
Change-Id: I80be08dd5aa184498bdbb83b42b877dbec152165
2018-12-06 12:12:41 -08:00
Chih-Hung Hsieh
a910d83a41 Switch to clang-r346389b.
Bug: 120551946
Test: make checkbuild, boot, go/clang-r346389b-testing
Change-Id: I71e28ee97cb02b6be71847b53fbb05007c936e34
2018-12-06 11:18:28 -08:00
Martin Stjernholm
7dd9a4e841 Merge "Revert "Remove unneeded -Wno-constant-logical-operand flag"" am: 53afe27ef9 am: ae0f414646
am: 9c1fb0502d

Change-Id: I0aa94da6b150d8efc7afe43757152efd89c306df
2018-12-06 05:02:48 -08:00
Martin Stjernholm
9c1fb0502d Merge "Revert "Remove unneeded -Wno-constant-logical-operand flag"" am: 53afe27ef9
am: ae0f414646

Change-Id: Ib4fca3dc896396ff4e5af6e0894913bdcf9d0db0
2018-12-06 04:54:48 -08:00
Martin Stjernholm
ae0f414646 Merge "Revert "Remove unneeded -Wno-constant-logical-operand flag""
am: 53afe27ef9

Change-Id: Id9e853048df0ead63df11f5460289dd96aac622b
2018-12-06 04:51:37 -08:00
Jerome Gaillard
82bb8b1359 Upgrade Windows default build version from Vista to 7
This is needed to build libicui18n on Windows, as it depends on APIs
created in Windows 7 (ResolveLocaleName).

Test: sdk build
Change-Id: If64510a262f7f1d4d356b1a9960ceea114cfa78a
2018-12-06 12:39:12 +00:00
Martin Stjernholm
f993e7797d Revert "Remove unneeded -Wno-constant-logical-operand flag"
This reverts commit 4f0ce757aa.

Reason for revert: Breaks several targets in internal git_master, e.g. http://ab/5165971.

Test: Build failing library
Change-Id: I02a5ade05a76b24020586c55a4e8f441ca7708a9
2018-12-06 12:17:40 +00:00
Yi Kong
85ab538ef3 Merge "Remove unneeded -Wno-constant-logical-operand flag" am: a7a432fb82 am: 3c861d1b33
am: 608217f1e0

Change-Id: I611dc689333bb1a1383c920600463fc31a5393aa
2018-12-05 20:47:54 -08:00
Yi Kong
608217f1e0 Merge "Remove unneeded -Wno-constant-logical-operand flag" am: a7a432fb82
am: 3c861d1b33

Change-Id: I5a5a77ff4f3e68f34dccfe95097b9980a1954b70
2018-12-05 20:42:22 -08:00
Yi Kong
3c861d1b33 Merge "Remove unneeded -Wno-constant-logical-operand flag"
am: a7a432fb82

Change-Id: I5dcc954fc139d9ab43a1f399fefe61ce7ceef2f1
2018-12-05 20:38:17 -08:00
Yi Kong
4f0ce757aa Remove unneeded -Wno-constant-logical-operand flag
Test: m checkbuild
Change-Id: If1ec62b6d88b8260c9ec39e0d63a379e7ae573e9
2018-12-06 00:18:05 +00:00
Chih-hung Hsieh
dc19885cf3 Merge "Switch to clang-r346389." am: 89dbee61ff am: 644df40b33
am: 022595785e

Change-Id: I6a3dacb6ea2ef4758bb1c16e64c4869135240a51
2018-12-05 11:11:44 -08:00
Chih-hung Hsieh
022595785e Merge "Switch to clang-r346389." am: 89dbee61ff
am: 644df40b33

Change-Id: I929e08b8da5863abe41a814f06fb3c4400635438
2018-12-05 11:07:26 -08:00
Chih-hung Hsieh
644df40b33 Merge "Switch to clang-r346389."
am: 89dbee61ff

Change-Id: I18befe8152bb455cee18852a5b494256c0c175be
2018-12-05 10:53:03 -08:00
Chih-hung Hsieh
89dbee61ff Merge "Switch to clang-r346389." 2018-12-05 18:24:12 +00:00
Haibo Huang
854339fa3c Remove denver from soong am: 47c9d4c8a3 am: 9223081372
am: 9ae1005f63

Change-Id: I52b984e4d27bd960da9ceb06656d5caa41b99fa1
2018-12-04 23:41:47 -08:00
Haibo Huang
9ae1005f63 Remove denver from soong am: 47c9d4c8a3
am: 9223081372

Change-Id: I9a6f28e148340cc0700fda13bfc065fe32682fa4
2018-12-04 23:37:39 -08:00
Haibo Huang
9223081372 Remove denver from soong
am: 47c9d4c8a3

Change-Id: Ie63b19efa16354b8e6003bca7e4330cd03c2981c
2018-12-04 23:29:36 -08:00
Haibo Huang
47c9d4c8a3 Remove denver from soong
Test: build
Change-Id: If740c2aaa321dee01f5d99c37171390e15f62c62
2018-12-04 19:39:48 -08:00
Haibo Huang
c1cebc9772 Remove denver64 from soong am: f46b1cb06e am: 238f6c330d
am: 7ae1eb16f1

Change-Id: I39d74f1813ea8d6a9297ccfbb999523e245b52c9
2018-12-04 17:01:25 -08:00
Haibo Huang
7ae1eb16f1 Remove denver64 from soong am: f46b1cb06e
am: 238f6c330d

Change-Id: I640a9e965b47ae5269818a2076ca1389e0a748ff
2018-12-04 16:44:14 -08:00
Haibo Huang
238f6c330d Remove denver64 from soong
am: f46b1cb06e

Change-Id: I400a0bcabbb3ebd63136a28e6cf58314f4b499e8
2018-12-04 16:35:13 -08:00
Haibo Huang
f46b1cb06e Remove denver64 from soong
Test: build
Bug: 73545680
Change-Id: I6b213a1d83275c566fd6142a07550094240528c4
2018-12-04 21:01:50 +00:00
Chih-Hung Hsieh
3567e62f97 Switch to clang-r346389.
* Add -fno-sanitize=implicit-integer-sign-change when
  there is any integer related sanitizer, and this check
  is not explicitly specified.
  Android core does not boot with this new sanitizer yet.
* Filter out -fno-sanitize=implicit-integer-sign-change
  from tooling flags.

Bug: 119329758
Bug: 119557795
Test: make checkbuild, boot, go/clang-r346389-testing
Change-Id: I709de569cb73d070fc4958e2b4387f4041bc5438
2018-12-04 19:50:45 +00:00
Yi Kong
26a8e315f0 Merge "Revert "Revert "Remove unnecessary warning suppression""" am: 3a33fe535e am: 9d256a5aa1
am: b910379c91

Change-Id: I55f4a983fe7783a43c8b7fc1b2ada3e6e24f7fba
2018-12-04 01:57:17 -08:00
Yi Kong
b910379c91 Merge "Revert "Revert "Remove unnecessary warning suppression""" am: 3a33fe535e
am: 9d256a5aa1

Change-Id: I76bdf7af21564068168fa3cad9b3934f7d6f2bf4
2018-12-04 01:52:57 -08:00
Yi Kong
9d256a5aa1 Merge "Revert "Revert "Remove unnecessary warning suppression"""
am: 3a33fe535e

Change-Id: I81421f5340798c181c7f9b72faea5bc433bc0ed5
2018-12-04 01:47:51 -08:00
Yi Kong
3a33fe535e Merge "Revert "Revert "Remove unnecessary warning suppression""" 2018-12-04 09:30:54 +00:00
Yi Kong
734a07c66d Revert "Revert "Remove unnecessary warning suppression""
This reverts commit afedf3bdc9.

Build failure fixed.

Change-Id: I46e7e222c2b5bfa5b1846f3fe87444afb70f1b31
2018-12-04 00:42:27 +00:00
Zhizhou Yang
14f162a3e7 Merge "Do not generate SHT_RELR relocations before API 28" am: 89df00c216 am: e74941431e
am: 9759e5e76a

Change-Id: I86833768d148bb1afbf0dc9135cb5d5665cfb058
2018-12-03 13:10:35 -08:00
Zhizhou Yang
9759e5e76a Merge "Do not generate SHT_RELR relocations before API 28" am: 89df00c216
am: e74941431e

Change-Id: Ib4b63e48374e239dc71318e1d39c76087ae5d75b
2018-12-03 12:20:17 -08:00
Zhizhou Yang
e74941431e Merge "Do not generate SHT_RELR relocations before API 28"
am: 89df00c216

Change-Id: I76f45bbea868f137906074dfda233ecad02d9caa
2018-12-03 11:27:53 -08:00
Treehugger Robot
89df00c216 Merge "Do not generate SHT_RELR relocations before API 28" 2018-12-03 18:40:59 +00:00
Yi Kong
a7a71847d7 Merge "Revert "Remove unnecessary warning suppression"" am: cf492adb34 am: 1e8681d22f
am: ec10bb5d51

Change-Id: Ief86ddc75dbe998596f2ec8db23cb048fe0ba4c2
2018-11-30 15:52:51 -08:00
Yi Kong
ec10bb5d51 Merge "Revert "Remove unnecessary warning suppression"" am: cf492adb34
am: 1e8681d22f

Change-Id: I2debeb50164d6c5f8d516fe66a6870d34f9dd3eb
2018-11-30 15:47:19 -08:00
Yi Kong
1e8681d22f Merge "Revert "Remove unnecessary warning suppression""
am: cf492adb34

Change-Id: If2941e0eb1a19194bce00af67e5e81aab6368286
2018-11-30 15:42:10 -08:00
Yi Kong
cf492adb34 Merge "Revert "Remove unnecessary warning suppression"" 2018-11-30 23:20:11 +00:00
Elliott Hughes
24cc4be24a Merge "C++17: switch the default." am: 3633e8641e am: 0d64de3c0f
am: de93ddd67e

Change-Id: I80b1dcde72c53792c04d59426efc37e2307b1594
2018-11-30 14:22:09 -08:00
Elliott Hughes
de93ddd67e Merge "C++17: switch the default." am: 3633e8641e
am: 0d64de3c0f

Change-Id: Ib6c1c6ba366276da72523acdd111c20a4f7a8b38
2018-11-30 14:14:58 -08:00
Elliott Hughes
0d64de3c0f Merge "C++17: switch the default."
am: 3633e8641e

Change-Id: I45e98afc8f6fce72ca98ec40c251ffee1f860dea
2018-11-30 14:09:50 -08:00
Zhizhou Yang
9100b1d83d Do not generate SHT_RELR relocations before API 28
This patch fixes an issue that SHR_RELR relocation is not supported by
SDK version earlier than API 28. We only turn it on when SDK is not
used, or SDK version is newer than or equal to API 28.

Test: m -j48 for aosp_taimen-userdebug
Bug: http://b/119086751
Change-Id: I33124ae4f35fb8c00ae9103e8c04e2d4ccd5fec3
2018-11-30 22:07:35 +00:00
Elliott Hughes
3633e8641e Merge "C++17: switch the default." 2018-11-30 22:03:45 +00:00
Vishnu Nair
afedf3bdc9 Revert "Remove unnecessary warning suppression"
This reverts commit ee53a98e31.

Reason for revert: build break

Change-Id: I065b702d6eaa2e72d47a2b7a404fdd7fe51661c3
2018-11-30 21:01:30 +00:00
Yi Kong
f288215589 Merge "Remove unnecessary warning suppression" am: da5cf6a7f3 am: 779ec3a2dc
am: a9c6ec0c95

Change-Id: I5c3e1a83753f1c36a69d3a7895d812c44966532e
2018-11-30 12:36:32 -08:00
Yi Kong
a9c6ec0c95 Merge "Remove unnecessary warning suppression" am: da5cf6a7f3
am: 779ec3a2dc

Change-Id: I581200aa4df67c8ab7076bfbfa9b110b8c15e5ec
2018-11-30 12:05:28 -08:00
Yi Kong
779ec3a2dc Merge "Remove unnecessary warning suppression"
am: da5cf6a7f3

Change-Id: I84ae0cb712c26ff4941aaea583bfa467378292a5
2018-11-30 11:51:03 -08:00
Yi Kong
da5cf6a7f3 Merge "Remove unnecessary warning suppression" 2018-11-30 19:24:35 +00:00
Nikita Iashchenko
16d78a078d Merge "Revert "C++17: switch the default."" am: a9e5a40bb8 am: 1ba2e34897
am: 3d043a6ebb

Change-Id: Ica42b86395968488dee0ac66f3194ceb15d18139
2018-11-30 08:30:12 -08:00
Nikita Iashchenko
3d043a6ebb Merge "Revert "C++17: switch the default."" am: a9e5a40bb8
am: 1ba2e34897

Change-Id: I853197b418817bd09e99b43f5b875a1260619907
2018-11-30 08:26:50 -08:00
Nikita Iashchenko
1ba2e34897 Merge "Revert "C++17: switch the default.""
am: a9e5a40bb8

Change-Id: I29aa03b1dbb6b149fd3c393070d89461a1815d73
2018-11-30 08:22:29 -08:00
Elliott Hughes
34e4e416e7 C++17: switch the default.
Bug: http://b/111067277
Change-Id: I07af7cd9e65a6e238d7d256c65927fe128a0f052
Test: builds
2018-11-30 16:03:06 +00:00
Nikita Iashchenko
a9e5a40bb8 Merge "Revert "C++17: switch the default."" 2018-11-30 14:27:16 +00:00
Jerome Gaillard
c1963c7158 Merge "Add flags for Windows assembly builds" am: ba0653cdb4 am: dacb269342
am: 80e1b1250c

Change-Id: Ic19ef11080a72796b9ad66ce71657ba8006248b7
2018-11-30 04:51:43 -08:00
Jerome Gaillard
80e1b1250c Merge "Add flags for Windows assembly builds" am: ba0653cdb4
am: dacb269342

Change-Id: Iea9ad5904ffb2eef10354faf1989e8239fd0c552
2018-11-30 04:47:39 -08:00
Jerome Gaillard
dacb269342 Merge "Add flags for Windows assembly builds"
am: ba0653cdb4

Change-Id: I7e60185582a0a55e81529d353fbd633873b7a408
2018-11-30 04:43:31 -08:00
Jerome Gaillard
ba0653cdb4 Merge "Add flags for Windows assembly builds" 2018-11-30 12:30:06 +00:00
Nikita Iashchenko
7a782203b9 Revert "C++17: switch the default."
This reverts commit c35fc0e130.

Reason for revert: fix broken targets in the internal master.

Change-Id: I70447a05ae5b2afa7efc7ab21c0432e651cab1ba
2018-11-30 11:15:16 +00:00
Elliott Hughes
54c3640c94 Merge "C++17: switch the default." am: b44bdb2be3 am: 92fbd0699e
am: 60bc94c195

Change-Id: I1240ba84ff7344e0cf319492c2834ac43cd90ab6
2018-11-30 01:01:16 -08:00
Elliott Hughes
60bc94c195 Merge "C++17: switch the default." am: b44bdb2be3
am: 92fbd0699e

Change-Id: Ibd90ee82cb36c3e3884d42e016414e09ab60a39f
2018-11-30 00:47:34 -08:00
Elliott Hughes
92fbd0699e Merge "C++17: switch the default."
am: b44bdb2be3

Change-Id: Ib4fd903bd957d3114e9c7e87712497ea65eb9a17
2018-11-30 00:32:12 -08:00
Treehugger Robot
b44bdb2be3 Merge "C++17: switch the default." 2018-11-30 08:06:02 +00:00
Jerome Gaillard
80fec097b1 Add flags for Windows assembly builds
This is necessary to build libjpeg for Windows.

Test: lunch sdk, make libjpeg
Change-Id: I6ace0e524d1d710b5ce78320e7a06777511d1634
2018-11-29 15:47:31 +00:00
Stephen Hines
a4a080eb84 Merge "Support Qualcomm Kryo 385 CPU variant." am: c027b309f1 am: 8284a728de
am: cafef7bd53

Change-Id: Id670cdb14af358a11a9f5ac4a87bc787a780efad
2018-11-29 00:25:27 -08:00
Stephen Hines
cafef7bd53 Merge "Support Qualcomm Kryo 385 CPU variant." am: c027b309f1
am: 8284a728de

Change-Id: I6d4166c54bf7d274db52c9fbbdbd65d25c232ddd
2018-11-29 00:13:28 -08:00
Stephen Hines
8284a728de Merge "Support Qualcomm Kryo 385 CPU variant."
am: c027b309f1

Change-Id: I69def413ca375096f37620398a44462e2779b753
2018-11-29 00:06:55 -08:00
Stephen Hines
c027b309f1 Merge "Support Qualcomm Kryo 385 CPU variant." 2018-11-29 07:23:40 +00:00
Elliott Hughes
c35fc0e130 C++17: switch the default.
Bug: http://b/111067277
Test: builds
Change-Id: I5065b03218772bf8cf8173f3d9808b3f0a484dc5
2018-11-28 21:45:23 -08:00
Elliott Hughes
86c7bfa9f2 Merge "Bump "experimental" C++ to C++2a." am: 4afedfadb2 am: d1ad118bbe
am: f4346985f2

Change-Id: I5da798c5eb644fa1a432db57f322c6503725b366
2018-11-28 18:16:23 -08:00
Elliott Hughes
f4346985f2 Merge "Bump "experimental" C++ to C++2a." am: 4afedfadb2
am: d1ad118bbe

Change-Id: I11636172901425896137ef45834af95886580087
2018-11-28 18:12:16 -08:00
Elliott Hughes
d1ad118bbe Merge "Bump "experimental" C++ to C++2a."
am: 4afedfadb2

Change-Id: Ia9a4ad9a8f479ad9c6169a96c7b8bdc03a7b6b3b
2018-11-28 18:03:15 -08:00
Elliott Hughes
37976122aa Bump "experimental" C++ to C++2a.
C++17 is so last year.

Test: treehugger
Change-Id: Ifd5e6d4a4837fe037837c49c31ee2fe1499e2d79
2018-11-28 14:16:39 -08:00
Artem Serov
d3072b0c7c Support Qualcomm Kryo 385 CPU variant.
Support Kryo 385 cpu variant which should be used for
Qualcomm Snapdragon 845.

Motivation:
  kryo385 CPU *IS NOT* an Arm Cortex-A75.

Particular problem:
  Cortex-A75 CPU must support optional ARMv8.2 dot product
  feature; kryo385 CPU (Qualcomm Snapdragon 845) doesn't
  support it.

Test: Builds when kryo385 is used as cpu variant.
Test: Pixel 3 boots to GUI with kryo385 as CPU variant
      with this patch on AOSP 9.0.0 r16.

Bug: 119564566

Change-Id: I62ffb46b1977b48446c6c1ca1400b1b39f7a8457
2018-11-21 10:15:07 +00:00
mtk15504
981965fda1 Merge "Add to support armv8-2a on 2nd arch. variant" am: 4855c4f460 am: 140673036a
am: 65abdb4ccf

Change-Id: I9bf1af5efa2db0d479d77e90e859aa99a309c3a1
2018-11-13 17:24:23 -08:00
mtk15504
65abdb4ccf Merge "Add to support armv8-2a on 2nd arch. variant" am: 4855c4f460
am: 140673036a

Change-Id: I66eac86090b8e2d2ceaf3214d91c56f1117f9a2b
2018-11-13 17:16:16 -08:00
mtk15504
140673036a Merge "Add to support armv8-2a on 2nd arch. variant"
am: 4855c4f460

Change-Id: I8f41d50bdf6e0a67a76e59e1bf559476422eb5fb
2018-11-13 17:09:11 -08:00
Treehugger Robot
4855c4f460 Merge "Add to support armv8-2a on 2nd arch. variant" 2018-11-14 00:51:53 +00:00
Pirama Arumuga Nainar
b28413aa47 Merge "Switch to clang-r344140b" am: 07002e0101 am: 79423121f7
am: b93dcecf53

Change-Id: If2bc5bff6867b01420cc789baf0bbdd0e8d04d3b
2018-11-13 13:03:06 -08:00
Pirama Arumuga Nainar
b93dcecf53 Merge "Switch to clang-r344140b" am: 07002e0101
am: 79423121f7

Change-Id: Ic59acefeefc494c0fc7916b5a1830c87e938ea13
2018-11-13 12:56:02 -08:00
Pirama Arumuga Nainar
79423121f7 Merge "Switch to clang-r344140b"
am: 07002e0101

Change-Id: Iaef6a26cf87b64d2aa702ef68c4203e9a8a5e308
2018-11-13 12:52:22 -08:00
Pirama Arumuga Nainar
538be1f81c Switch to clang-r344140b
Bug: http://b/119270185

This prebuilt has a cherry-pick to fix PGO instrumentation.

Test: m ANDROID_PGO_INSTRUMENT=all,
      Build and boot a few devices in internal branch.
Change-Id: I97ca17fbc039a17db57b2749a1adf2ef981c5918
2018-11-13 17:21:01 +00:00
mtk15504
270ba75991 Add to support armv8-2a on 2nd arch. variant
Add arch. variant option to support cores that implement armv8-2a ISAs.

Test: set TARGET_2ND_ARCH_VARIANT := armv8-2a, build successful and 32bit app launch ok

BUG: 118414869
Change-Id: I755b8858726bd887068923123bad106aed7b1ec8
2018-11-13 16:40:38 +08:00
Chih-Hung Hsieh
94b1fe2e4c Revert "Add lld --no-rosegment flag to work with unwinder." am: 2fcac47e9d am: c23b5b56d4
am: 7d07fa514e

Change-Id: I192b74f158d886a6b95b6e5c3e9d7aab3de7e998
2018-11-12 17:40:27 -08:00
Chih-Hung Hsieh
7d07fa514e Revert "Add lld --no-rosegment flag to work with unwinder." am: 2fcac47e9d
am: c23b5b56d4

Change-Id: I957d31d1d8869f6815d430a6b57baa43e387188e
2018-11-12 16:40:08 -08:00
Chih-Hung Hsieh
c23b5b56d4 Revert "Add lld --no-rosegment flag to work with unwinder."
am: 2fcac47e9d

Change-Id: I3f623e6e6fafe9031dae5bf550311ce51b54af83
2018-11-12 16:06:42 -08:00
Chih-Hung Hsieh
2fcac47e9d Revert "Add lld --no-rosegment flag to work with unwinder."
This reverts commit b18814e7a4.

Reason for revert: The originating bug is now fixed.

Test: make checkbuild
Change-Id: Iabcfbeed5977336fc27fb1ccbad269c1fa81ef6e
2018-11-12 21:09:28 +00:00
Yi Kong
ee53a98e31 Remove unnecessary warning suppression
All instances of no-self-assign-overloaded warning have been fixed,
remove the suppression flag.

Test: m checkbuild
Change-Id: I70d9d6f721b36ebb5c3974893f79a09e4b1d1f4d
2018-11-09 23:09:19 +00:00
Peter Collingbourne
bbdd3e81f4 Stop passing the gold plugin path to llvm-ar. am: abde584fd1 am: e4d64808a3
am: fba1664069

Change-Id: I852c0769172c6ca034903b4defc4c5b0cbdc413f
2018-11-08 22:22:37 -08:00
Peter Collingbourne
fba1664069 Stop passing the gold plugin path to llvm-ar. am: abde584fd1
am: e4d64808a3

Change-Id: I0e7b39f7f91eeda21ecafd44bc214d830a42c558
2018-11-08 22:16:19 -08:00
Peter Collingbourne
e4d64808a3 Stop passing the gold plugin path to llvm-ar.
am: abde584fd1

Change-Id: I29bac88f000c1e0c430c8b8651ec99e9d14939e4
2018-11-08 22:11:46 -08:00
Peter Collingbourne
abde584fd1 Stop passing the gold plugin path to llvm-ar.
llvm-ar takes a --plugin argument but it is ignored for compatibility,
so passing it has no effect.

Change-Id: I4fc51d226d66cf2a43462d3d4ccc12e6e5ebb226
2018-11-08 20:13:16 -08:00
Yi Kong
584e018337 Merge "Revert "Prevent clang from using the x18 register on arm64."" am: ec2f6cba80 am: 3d317f2b24
am: 0ea551a11e

Change-Id: I94f6761877746a3f8c365956cdde6f1f8e3734ef
2018-11-08 17:54:37 -08:00
Yi Kong
0ea551a11e Merge "Revert "Prevent clang from using the x18 register on arm64."" am: ec2f6cba80
am: 3d317f2b24

Change-Id: Ieb7d9c080e287366f307392108bc2e2b84c10ea8
2018-11-08 17:46:31 -08:00
Yi Kong
3d317f2b24 Merge "Revert "Prevent clang from using the x18 register on arm64.""
am: ec2f6cba80

Change-Id: Iac8612907d9bfd38fc67392483b76233e73317d7
2018-11-08 17:42:26 -08:00
Yi Kong
ec2f6cba80 Merge "Revert "Prevent clang from using the x18 register on arm64."" 2018-11-09 01:32:34 +00:00
Yi Kong
8c3c0f50d0 Revert "Prevent clang from using the x18 register on arm64."
This reverts commit 98d8580c3a.

Change no longer needed with the new LLVM toolchain update.

Bug: 112907825
Bug: 111759196
Change-Id: Ife3ce47a602dd850ac84bb51abc70c0ca157776e
2018-11-08 21:07:08 +00:00
Yi Kong
c7e433d933 Merge "Update clang to r344140" am: 8a89f21746 am: 0d607467ec
am: e9190f2218

Change-Id: I718de03bd9b37b3a151b792ff38a7776e5cfc40e
2018-11-06 17:58:12 -08:00
Yi Kong
e9190f2218 Merge "Update clang to r344140" am: 8a89f21746
am: 0d607467ec

Change-Id: I4c39a764b677667881e301c262f6c5298990d756
2018-11-06 17:52:22 -08:00
Yi Kong
0d607467ec Merge "Update clang to r344140"
am: 8a89f21746

Change-Id: I33b83790907fb82e8cb73370dad587d51f1e504b
2018-11-06 17:48:20 -08:00
Yi Kong
53ed59ef35 Update clang to r344140
Bug: 111759196
Test: Test various targets in AOSP and internal branches.
      For Googlers, go/clang-r344140-testing
Change-Id: I70fc5a2824de698d78c95ce2acd42eff9c5ebe15
2018-11-01 23:13:25 +00:00
Chih-hung Hsieh
c29e55d439 Merge "DO NOT MERGE, Make default -Wimplicit-fallthrough as error." 2018-11-01 17:51:41 +00:00
Alex Light
87b17fe905 Merge "Remove -fno-emulated-tls from linux_bionic" am: d6bb90dc0d am: 26559baeed
am: f3040a608e

Change-Id: If2d7db22e073d4f93da602a123c2bda98b3c0325
2018-11-01 09:30:42 -07:00
Alex Light
f3040a608e Merge "Remove -fno-emulated-tls from linux_bionic" am: d6bb90dc0d
am: 26559baeed

Change-Id: I6e8469b0134aa95da1eceff247422d5d16264119
2018-11-01 09:26:02 -07:00
Alex Light
26559baeed Merge "Remove -fno-emulated-tls from linux_bionic"
am: d6bb90dc0d

Change-Id: I601f6aef28d2391149e6dabd8afd93956ce3566b
2018-11-01 09:21:21 -07:00
Alex Light
d6bb90dc0d Merge "Remove -fno-emulated-tls from linux_bionic" 2018-11-01 16:15:35 +00:00
Alex Light
a08ae8487c Remove -fno-emulated-tls from linux_bionic
This was preventing tools using 'thread_local' from compiling and is
not needed. Bionic fully implements TLS.

Test: cd tools/dexter/slicer; mma
Bug: 31559095
Change-Id: Ib362ad8bc950726080356b61ccae83f155ce040b
2018-10-31 11:18:22 -07:00
Chih-Hung Hsieh
53390f2557 DO NOT MERGE, Make default -Wimplicit-fallthrough as error.
Other branches might still have this warning for some build targets.

Bug: 112564944
Test: make checkbuild
Change-Id: I3db52b8a60bb28861fc9ba963a7d1cd1fe49e903
2018-10-31 18:04:22 +00:00
Chih-Hung Hsieh
d6022447f1 DO NOT MERGE, Make default -Wimplicit-fallthrough as error.
Other branches might still have this warning for some build targets.

Bug: 112564944
Test: make checkbuild
Change-Id: Ic2474aa4e09904c046714182bd90409def0e826d
2018-10-31 17:59:54 +00:00
Chih-Hung Hsieh
a07a9e0ba4 Enable global -Wimplicit-fallthrough as default error.
Bug: 112564944
Test: make checkbuild
Change-Id: Ic2474aa4e09904c046714182bd90409def0e826d
2018-10-30 09:39:42 -07:00
Peter Collingbourne
caf7f87a65 Merge "Enable safe ICF with LLD." am: 63c6361f91 am: e77fe6ac08
am: 6cfa0e453a

Change-Id: I0a67788593daef55c323c85b2e778561473c4458
2018-10-26 18:23:11 -07:00
Peter Collingbourne
63c6361f91 Merge "Enable safe ICF with LLD." 2018-10-27 00:59:55 +00:00
Rahul Chaudhry
cd389d1831 Merge "Enable SHT_RELR sections to encode relative relocations." am: 33195833de am: 54a2ea815b
am: 261ebad9f7

Change-Id: Idd8de5d0ea5f5e2f4e78636c2ca7740fc5ceb888
2018-10-25 14:27:14 -07:00
Treehugger Robot
33195833de Merge "Enable SHT_RELR sections to encode relative relocations." 2018-10-25 21:02:44 +00:00
Peter Collingbourne
486e42c353 Enable safe ICF with LLD.
Support for safe ICF was added to LLD in LLVM r337429. This reduces
the size of sailfish system.img by 7.6MB.

The address-significance tables created by Clang to support LLD's
implementation of safe ICF are incompatible with ld -r. Therefore we
need to pass -fno-addrsig to the compiler to prevent it from creating
an address-significance table when building a cc_object.

Change-Id: I83e28741e6b3cdf09566447d2658ce48594f2074
2018-10-25 13:40:28 -07:00
Peter Collingbourne
dcaec6c6fd Prevent clang from using the x18 register on arm64. am: 98d8580c3a am: d90423e2a6
am: 29a8c9739d

Change-Id: Ie661bcf12e5c66631e5fb599d6c19ad64a8d207f
2018-10-24 20:33:40 -07:00
Peter Collingbourne
98d8580c3a Prevent clang from using the x18 register on arm64.
This is achieved via the compiler flag -ffixed-x18 for non-LTO builds
and the linker flag -plugin-opt -mattr=+reserve-x18 for LTO builds.

This change should be reverted once we upgrade past LLVM r340889
which does this by default on Android.

Bug: 112907825
Bug: 111759196
Change-Id: I05473ddbb98319d87d442425b4d715647eae3a38
2018-10-24 23:40:49 +00:00
Dan Willemsen
2f950e31d5 Update linux_bionic configuration am: 9ff34c0ca8 am: 51bf1e3abd
am: 564c6325be

Change-Id: I7c22cc2ed89f2025e66bd2e93fb125e55c140fc7
2018-10-22 17:47:29 -07:00
Dan Willemsen
9ff34c0ca8 Update linux_bionic configuration
Add a missing toolchain method, don't require modules to opt in to
linux_bionic.

Bug: 31559095
Test: attempt to build host bionic
Change-Id: Ia5c8e2f127b88f56191b7abc389d5329cfdb0720
2018-10-22 15:46:03 -07:00
Rahul Chaudhry
1ffac8e636 Enable SHT_RELR sections to encode relative relocations.
Proposal for adding SHT_RELR sections in the generic-abi is at
https://groups.google.com/forum/#!topic/generic-abi/bX460iggiKg

This CL requires clang-r328903.

The following test results are on clang-r339409.

Size comparison for "aosp_marlin-userdebug":
$ du -B1 -s {none,pack,relr,both}/out/target/product/marlin/system
1014616064      none/out/target/product/marlin/system
1001074688      pack/out/target/product/marlin/system
1004273664      relr/out/target/product/marlin/system
1000099840      both/out/target/product/marlin/system

none contains a build with no packing (--pack-dyn-relocs=none).
pack contains a build with current settings (--pack-dyn-relocs=android).
relr contains a build with relr packing only (--pack-dyn-relocs=relr).
both contains a build with both options enabled (--pack-dyn-relocs=android+relr).

With --pack-dyn-relocs=android+relr, lld will encode the relative
relocations in a SHT_ANDROID_RELR section, and pack the rest of
the dynamic relocations in a SHT_ANDROID_REL(A) section.

--pack-dyn-relocs=android was saving us 13,541,376 bytes (1.35%) (none - pack).
--pack-dyn-relocs=relr will save us 10,342,400 bytes (1.03%) (none - relr).
--pack-dyn-relocs=android+relr is saving us 14,516,224 bytes (1.45%) (none - both).

Size comparison for the "system/bin" directory:
$ du -B1 -s {none,pack,relr,both}/out/target/product/marlin/system/bin
29413376        none/out/target/product/marlin/system/bin
28319744        pack/out/target/product/marlin/system/bin
28258304        relr/out/target/product/marlin/system/bin
28180480        both/out/target/product/marlin/system/bin

--pack-dyn-relocs=android was saving us 1,093,632 bytes (3.72%) (none - pack).
--pack-dyn-relocs=relr will save us 1,155,072 bytes (3.93%) (none - relr).
--pack-dyn-relocs=android+relr is saving us 1,232,896 bytes (4.19%) (none - both).

Bug: None
Test: Built aosp_marlin-userdebug image, boots on device.
Test: Built aosp_x86_64-userdebug image, boots in emulator.
Change-Id: Ibb726c3b9d87688f387a7f2974fdae9bfc24efc9
2018-10-22 20:29:39 +00:00
Logan Chien
6e7d60ef8e Merge "Remove flags from ClangLibToolingUnknownCflags" am: 0b6bcd4014 am: aceb86e345
am: 99f21f683c

Change-Id: I4e8ef3471689c4f7183f9068a0a02ec9c1ecc622
2018-10-17 03:18:48 -07:00
Logan Chien
aceb86e345 Merge "Remove flags from ClangLibToolingUnknownCflags"
am: 0b6bcd4014

Change-Id: I7f7e9e80052e748c1d92f46fee4552c1b4a45a2b
2018-10-17 03:08:54 -07:00