aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [GCC] Add '--disable-multilib' to gcc configuration.Caroline Tice2017-01-241-1/+2
| | | | | | | | | | | | Disabling multilibs fixes the GCC builds for both MIPS and x86_64. Without this, the GCC compiler fails to build for those architectures. Bug: None Test: Ran build.py without '--toolchain' flag; it successfully built all of the compilers. Change-Id: I018825177e77812a705db54cdad468239e48a87f
* fix errors in gcc compiler wrapper.Yunlian Jiang2016-10-061-2/+2
| | | | | | | BUG=none Test: it runs without error. Change-Id: I5067e352facb416a04f0064ae68fd61ba29b1011
* Merge "[GCC 4.9] Fix posix_memalign declaration."Caroline Tice2016-10-041-2/+6
|\
| * [GCC 4.9] Fix posix_memalign declaration.Caroline Tice2016-10-041-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the 'throw()' from posix_memalign declaration if __GLIBC__ is not defined, so that it matches declaration in bionic's stdlib.h (avoid conflicting decl error). Can't remove 'throw ()' altogether, because it IS in glibc's stdlib.h, which this has to match in ChromeOS. BUG=b:31366027 TEST=successfully built ChromeOS for x86, x86_64, arm, arm64 and ran HWTests on all; successfully built chromiumos-sdk. Built Android platform & kernel. Successfully ran NDK checkbuild.py script. Change-Id: I0a8b4daf5d10f56f7a318738a0946e4ad5b7dd90
* | Merge "gcc: add a python wrapper for gcc."Yunlian Jiang2016-10-042-0/+84
|\ \
| * | gcc: add a python wrapper for gcc.Yunlian Jiang2016-10-032-0/+84
| |/ | | | | | | | | | | | | | | | | | | | | | | This add a python wrapper for gcc to make goma do not need to hand gcc and clang separately. BUG 31444867 TEST= build new gcc. Call arm-linux-androideabi-c++ -v and arm-linux-androideabi-g++ -v in/out the directory of the gcc binary, it works. Change-Id: Ib02cff8f33306b089e13ade51033a3b0927b4308
* | Add -androidkernel-readelf symlink.Alex Deymo2016-09-291-0/+1
|/ | | | | | Bug: 31636643 Change-Id: Ibff564a9ee068c8c8749461b610c1b0f4cc592a5
* [GCC] Add README.version file (owners info).Caroline Tice2016-07-011-0/+4
| | | | | | | | | | This adds a new README.version file, containing owner information for GCC. TEST=None BUG=None Change-Id: Idb8bf9b47c38aa944b67b059c995c8755b0902df
* Fix gthreads for ChromeOS, too (recent change broke ChromeOS).Caroline Tice2016-05-122-14/+2
| | | | Change-Id: Ic7f1a0cd3375b6e247f1ca972922ecf5452a33ac
* Attempt to fix missing gthreads in libstdc++.Caroline Tice2016-04-252-4/+4
| | | | | | | | | The if-else clauses of an if-statement were reversed, causing libstdc++ to not find/define the gthreads. This CL should fix that. Bug: http://b/27433401 Change-Id: Ic8a0afbd4cfdff48cfa4edf931cda2f1409dae34
* Empty commit to kick buildbot.Than McIntosh2016-04-010-0/+0
| | | | Change-Id: I8e73e255f5dea2c64d486389ebf2749f21fe69b4
* Merge "[ndk gcc] Finish fixing the libatomic IFUNC problem."Caroline Tice2016-04-013-8/+21
|\
| * [ndk gcc] Finish fixing the libatomic IFUNC problem.Caroline Tice2016-04-013-8/+21
| | | | | | | | | | | | | | | | | | The previous CL, with --enable-libatomic-ifuncs, was missing an important piece. This fixes that problem. (See https://buganizer.corp.google.com/issues/22699878) Change-Id: I42f9529f5e40187843a9a55ae80874eb8fae2a22
* | Include -kernel link for 'strip'.Than McIntosh2016-04-011-0/+1
|/ | | | | | | | | When creating the symlinks for the kernel variant of the toolchains, include a link for 'strip' (needed for brillo kernel build). Bug: 27959161 Change-Id: Id83e3e03f17b3de6178853d20684b474178d7928
* Merge "Add top-level flag, --enable-libatomic-ifuncs=[yes/no]"Caroline Tice2016-03-294-0/+37
|\
| * Add top-level flag, --enable-libatomic-ifuncs=[yes/no]Caroline Tice2016-03-254-0/+37
| | | | | | | | | | | | | | | | | | | | This CL adds a top-level configure flag, --enable-libatomic-ifuncs. IF this is set to 'no', then libatomic will not be configured/built to use IFUNC. This is to fix https://buganizer.corp.google.com/issues/22699878 Change-Id: I76741fe854fc9c32a230b67c72920adfb00473ee
* | Fix issue of generating symlinks for libgnustl_shared.soCaroline Tice2016-03-252-105/+51
|/ | | | | | | | | | | | With the changes that unified the Android & ChromeOS GCC compiler, some of the conditional changes introduced with the enable-bionic-libs flags were causing libgnustl_shared.so to be generated with symbol versions and symbolic links, which broke certain things. This CL fixes that issue (https://buganizer.corp.google.com/issues/27832514) Change-Id: Ib7fe825f2be353e0ff7beba008a71793b1ad2244
* GCC unification, part 2. Fix various errors from previous unificaiton.Caroline Tice2016-03-1613-161/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | The previous version of the unified GCC compiler (Android & ChromeOS) caused some ChromeOS tests to fail. It also caused an Android NDK test case to fail. This CL fixes those problems. In particular it does the following: - Fix some file formatting errors from previous unification patch. - Update ChangeLog files to reflect Android backport patches. - Find and incorporate a few missing pieces from the following backports backports from trunk r221007, r221675, r222011, r212011, r214942, r214957, r215012, r215016, r218115, r218733, r218746, r220491. This involved small changes in the following files: gcc/cfghoks.c gcc/cfgloop.c gcc/cfgloop.h gcc/except.c gcc/loop-init.c gcc/omp-low.c - Fix minor Android test case regression introduced in the previous unification patch. Change-Id: I482e3a34e3ed97c7ba609fe2954b4781f02ec617
* Merge "Unify ChromeOS and Android versions of GCC."Caroline Tice2016-02-2994-336/+1513
|\
| * Unify ChromeOS and Android versions of GCC.Caroline Tice2016-02-2694-336/+1513
| | | | | | | | | | | | | | | | This CL updates Android's GCC to match ChromeOS's GCC (with appropriate patches applied in both places to make sure no cherry-picked changes are lost). Change-Id: I390140c449b0e5df9ee78a06268319c8c510302f
* | Update 4.8.1 to 4.8.3.Dan Albert2016-02-2481456-2708141/+2666411
| | | | | | | | | | | | | | | | | | | | My previous drop was the wrong version. The platform mingw is currently using 4.8.3, not 4.8.1 (not sure how I got that wrong). From ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.3/gcc-4.8.3.tar.bz2. Bug: http://b/26523949 Change-Id: Id85f1bdcbbaf78c7d0b5a69e74c798a08f341c35
* | Include 'nm' and 'size' in androidkernel list.Than McIntosh2016-02-181-0/+2
| | | | | | | | | | | | Bug: http://b/25371547 Change-Id: I2baa3c7bb74e39c95f32ebd98fd2bb091dbf0cd8
* | Extend the lib copying workaround for lib64.Dan Albert2016-02-171-2/+9
| | | | | | | | | | | | | | | | | | The Windows (and probably Darwin) builds were missing the lib64 variants of libgomp.a and friends. This will still miss the libx32 libs, but we don't support that anyway. Bug: http://b/27208805 Change-Id: I19a8eb10cbedf03cba27ab5f8dc38c13c8538f25
* | Merge "Check in a pristine copy of GCC 4.8.1."Dan Albert2016-02-0479558-0/+13542049
|\ \ | |/ |/|
| * Check in a pristine copy of GCC 4.8.1.Dan Albert2016-01-2279558-0/+13542049
| | | | | | | | | | | | | | | | | | | | | | | | | | The copy of GCC that we use for Android is still not working for mingw. Rather than finding all the differences that have crept into our GCC, just check in a copy from ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.8.1.tar.bz2. GCC 4.8.1 was chosen because it is what we have been using for mingw thus far, and the emulator doesn't yet work when upgrading to 4.9. Bug: http://b/26523949 Change-Id: Iedc0f05243d4332cc27ccd46b8a4b203c88dcaa3
* | Add --cachedir option to update-prebuilts.py.Than McIntosh2016-01-281-18/+34
|/ | | | | | | | Tells the script to draw prebuilt tar files from an existing dir (if present) instead of downloading. Useful for doing hand testing of toolchain changes. Change-Id: I166e1a7f0e7947e50b36c9e9b868f17ee8507503
* Revert "Fix toolchain/gcc build for mingw."Than McIntosh2016-01-155-92/+77
| | | | | | | | | This reverts commit f1c3ad6cac0465017759cce0cb381ce66760d907. [Change no longer needed since we're switching to a different gcc for the mingw build.] Change-Id: I03a57335e9ca94c6848cb71bbc1a451f0c0ef18f
* Fix toolchain/gcc build for mingw.Than McIntosh2016-01-145-77/+92
| | | | | | | | | | | | | | | Theses changes are intended to restore the ability to build toolchain/gcc cross compiler for non-Android targets (in this specific case, to allow us to compile toolchain/gcc as part of the mingw-w64 build). What has happened over time is that references android-specific synbols and constructs have crept into the non-target-specific portions of the gcc code. I've done my best to push these things back into the config/* subtree. Bug: 26523949 Change-Id: I59334e791875632d51093207c298052a034d2f4a
* Merge "[4.9] Disable inlining of memcpy for x86 with 'rep movs'."Dan Albert2016-01-041-1/+1
|\
| * [4.9] Disable inlining of memcpy for x86 with 'rep movs'.Alexander Ivchenko2015-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | On big length 'rep movs' are less efficient than libcall of highly-optimized Bionic memcpy. Change-Id: I9435b9e438e0e40c28c505c43ec7f9797384afd6 Signed-off-by: Andrew Senkevich <andrew.senkevich@intel.com> Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* | Create -androidkernel toolchain symlinks.Josh Gao2015-12-291-14/+66
| | | | | | | | | | | | | | | | | | This commit creates a set of toolchain symlinks for kernel builds that point to the regular toolchain binaries, except with ld pointing to bfd instead of gold. Bug: http://b/25371547 Change-Id: I519cb69f89ea58d7c332ebad00de25b4c5bea19f
* | Allow overriding of git commit message.Josh Gao2015-12-291-4/+11
| | | | | | | | Change-Id: I4423e93141bbc987348380d523c1bd43b524d132
* | Re-enable gold for 64-bit Windows.Dan Albert2015-12-181-1/+1
| | | | | | | | | | Bug: http://b/22045105 Change-Id: I3ac05c6bfe9875583a15383dc5840b3f8a37e22d
* | Cherrypick PR bootstrap/66638 bugfix from trunk.amker2015-12-161-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | PR bootstrap/66638 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if assertion failed. Remove assertion itself. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225008 138bc75d-0d04-0410-961f-82ee72b054a4 Bug: 26224556 Change-Id: I2fa31bfe44978659a554a413c64d796b357338b5 Signed-off-by: Than McIntosh <thanm@google.com>
* | Merge "Add --dryrun command line option."Than McIntosh2015-12-141-22/+37
|\ \
| * | Add --dryrun command line option.Than McIntosh2015-12-141-22/+37
| | | | | | | | | | | | | | | | | | | | | New --dryrun command line option: echo commands but do not execute them. Change-Id: I774fbe8cc0b050e20ee7e69b5b711f18a6168d39
* | | Dummy change to kick build server.Than McIntosh2015-12-141-1/+1
|/ / | | | | | | Change-Id: Ie2afa1b7cabea7a681116822ddd888bdb297dbae
* | cherry-pick fix for gcc bug 67954 (svn rev 230894)Than McIntosh2015-12-111-9/+12
| | | | | | | | | | | | | | | | | | | | | | 2015-11-25 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/67954 * lra-constraints.c (curr_insn_transform): Add check on scratch pseudo when change class to NO_REGS. Add an assert. Bug: 26144438 Change-Id: I976c78c466b9d430afe86742026bbcc568db825d
* | Merge "Default to TLS guard for x86 stack-protector."Than McIntosh2015-11-201-3/+2
|\ \
| * | Default to TLS guard for x86 stack-protector.Than McIntosh2015-11-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change the default guard flavor for -fstack-protector on x86 from global to TLS. The original default was intended to provide compatibility with pre-4.2. versions of Android, which is less of concern now. Bug: 25183510 Change-Id: I71931e778efed2ba0fa2a6740f8d5510776c113f
* | | Tweak rules for building debuggable gcc + tools.Than McIntosh2015-11-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Override CXXFLAGS when building for debugging (so as to insure that C++ code is compiled correctly as well as C code). Change-Id: I70e285be236b33f07594aef2adbf2fbd73b4a909
* | | Add a script to update GCC form Launch Control.Dan Albert2015-11-201-0/+244
| | | | | | | | | | | | | | | | | | | | | This script will update the platform prebuilts to a given build number. Change-Id: I3e35fbc9da78ed833a6b40c38452291fb7ba42bd
* | | Merge "Remove the NDK path structure from the package."Dan Albert2015-11-201-1/+1
|\ \ \
| * | | Remove the NDK path structure from the package.Dan Albert2015-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The toolchains built here are used for the platform too. Remove the NDK path structure from the package. We can handle that in the NDK build. Change-Id: I108154a6b9726cd3757b9ad548ef2d95be1ecf9b
* | | | Add NOTICE and MODULE_LICENSE files to package.Dan Albert2015-11-201-0/+2
|/ / / | | | | | | | | | | | | | | | | | | I had previously added all these to the prebuilts directories by hand. Doing it at this stage ensures that we'll always have them. Change-Id: Iaebed3990bff79730073202e808c5d47cb55326f
* | | Change gcc BASE-VER from 4.9.x-google to 4.9.Than McIntosh2015-11-181-1/+1
|/ / | | | | | | | | | | | | | | Simplify BASE-VER for gcc from 4.9.x-google to 4.9, so as to be consistent with NDK versioning naming scheme. Bug: 25487043 Change-Id: I4f0e2a0998f35840467248ad004ee81dedfdfc28
* | Simplify name of GCC package.Dan Albert2015-11-091-1/+1
| | | | | | | | | | Bug: http://b/24990121 Change-Id: Id6f6596c5277279e02dce4f3f44356bc4a865765
* | Use symlink in /tmp to obscure sysroot prefix.Than McIntosh2015-11-091-3/+26
| | | | | | | | | | | | | | | | | | | | Create a link in /tmp to the prebuilt sysroot and pass the link location to the gcc configure script; this is intended to avoid hard-coding buildbot pathnames into the gcc binary. Bug: 25513824 Change-Id: I49dddde6f91a9737a8b8a27802acfc7133dd63af
* | Add a README.md for building Android's GCC.Dan Albert2015-11-051-0/+48
| | | | | | | | | | Bug: http://b/25191787 Change-Id: Ifa79236dd144496419f079ddac18259ead607844
* | Generate a repo.prop for the toolchain.Dan Albert2015-11-031-0/+2
| | | | | | | | Change-Id: I7efa94dc03c6a2b15fda6c84f3480ac4674205c0