Commit Graph

880 Commits

Author SHA1 Message Date
mrg
7b8aed4e4d fix powerpc64 bi-arch support: provide a LINK_SECURE_PLT_SPEC.
with this, and mknative-gcc for it, powerpc64 builds with GCC 6.
2018-02-22 22:20:44 +00:00
mrg
da58b5e34c re-port the patch from https://gcc.gnu.org/bugzilla/attachment.cgi?id=15492.
- local HOST_WIDE_INT_CONSTANT macro same as new HOST_WIDE_INT_C macro,
  so use it instead, and remove the local macro.
- re-port the genrecog.c change which was missed in early GCC-6 port.

this makes sh3 work again.
2018-02-22 07:24:19 +00:00
mrg
08873910d3 minimal basic support for ia64 and gcc6. i am not sure about the
bp part of the GetPcSpBp() port, cherry please look :-)
2018-02-16 07:59:05 +00:00
christos
298caec6c7 need -lrt for shm_{open,close} 2018-02-14 03:37:39 +00:00
christos
4c0f6a5b74 depend on librt for shm_{open,close} 2018-02-14 02:12:35 +00:00
christos
74bd282433 Asan needs bits and pieces of ubsan now; go figure. 2018-02-14 02:12:07 +00:00
christos
d637e5b6a0 our __csa_atexit does not like NULL dso; use atexit(3) instead. 2018-02-14 02:11:22 +00:00
christos
be74da7a3a enable addr2line 2018-02-14 02:10:32 +00:00
christos
8ac5b43509 - enable netbsd
- add cast to (uptr) for _Unwind_GetIP
2018-02-14 02:10:06 +00:00
christos
ae5e37f8c6 PR/53008: Henning Petersen: Fix missing brace inside comment. 2018-02-11 15:56:25 +00:00
maya
0cca4bc316 Use bools with bool. NFCI.
From Henning Petersen in PR toolchain/53009.
(I completed for the rest of the function. Similar code exists in GCC trunk.)
2018-02-11 13:50:15 +00:00
christos
09f7d6a729 Use bsd.init.mk (instead of bsd.own.mk) consistently so that
Makefile.inc gets called before bsd.own.mk so that we get a chance
to use NOFOO easily in Makefile.inc. Use that to turn CTF off for
everything.
2018-02-11 02:12:28 +00:00
mrg
c46c969be6 adjust the list of subdirs to elide. don't need libitm, gnattools
or gotools.
2018-02-08 19:33:26 +00:00
mrg
7dc27d93dc for now, turn off biarch support in ppc64. it ends up enabling
secureplt support for 64 bit mode, which doesn't exist (or need it.)
2018-02-07 05:34:21 +00:00
mrg
0566bffd45 regen mknative gcc 6.4 for mipsel. sort of do it for vax, ia64 and ppc64. 2018-02-07 04:13:47 +00:00
mrg
7438970f7d make this actually work:
- use ${G_OBJS} directly, it avoids issues with .c vs .cc files.
- add a method to not rm -rf .ab for inspection.
- fix and add missing depends for many things.
- use -Wno-error for mips and arm insn-recog.c, due to eg:
    insn-recog.c:10304:7: error: this decimal constant is unsigned only in ISO C90 [-Werror]
    mips.md:3474:11: error: this decimal constant is unsigned only in ISO C90 [-Werror]
2018-02-07 02:33:05 +00:00
mrg
862de77331 some more/changed files need -O1 for vax. 2018-02-07 02:32:39 +00:00
mrg
af8e9facc2 port to hppa, m68k, m68000, vax, and sh3. this should complete
our list of ports.  it's only about obtaining some pointers in
this code, really.
2018-02-07 02:32:01 +00:00
mrg
ccb67c474f handle MKPICLIB=no builds. 2018-02-07 02:30:39 +00:00
mrg
fe6746514c regen mknative-gcc 6 for:
arm armeb earm earmeb earmhf earmhfeb earmv4eb earmv6 earmv6eb
  earmv6hf earmv6hfeb earmv7 earmv7eb earmv7hf earmv7hfeb

mipsel, ppc64 and ia64 didn't work properly this time, and vax
has a problem with libstdc++.
2018-02-07 02:29:06 +00:00
mrg
acf2ba3732 fix alpha gcc 6.4 mknative. now works. 2018-02-06 23:12:35 +00:00
mrg
8c973b6499 build and install gcov-dump. 2018-02-06 23:12:01 +00:00
mrg
77cfa0ba5f more mknative-gcc 6.4 for m68k, mips*, powerpc, sh*, sparc* and amd64. 2018-02-06 19:57:57 +00:00
mrg
74059485b4 regen for GCC 6.4 (no real change) 2018-02-06 09:36:34 +00:00
mrg
dff6d09fe0 port to mips and alpha. 2018-02-06 09:31:56 +00:00
mrg
d79d5e15a2 rebuild mknative GCC 6.4 for these targets:
arm armeb earmeb earmhf earmhfeb earmv4eb
	earmv6 earmv6eb earmv6hf earmv6hfeb
	earmv7 earmv7eb earmv7hf earmv7hfeb
	hppa ia64 m68000 m68k
	mips64eb mips64el mipseb mipsel
	powerpc64 sh3eb sh3el vax
2018-02-06 09:18:14 +00:00
mrg
6b182040a5 missing in previous:
mknative gcc 6.4 and powerpc / earmv4.
2018-02-05 22:11:42 +00:00
mrg
9dd74e3a6c mknative gcc 6.4 and powerpc / earmv4. earmv4 seems to work.
powerpc not properly tested yet, but builds.
2018-02-05 22:06:44 +00:00
mrg
85028157d6 - enable powerpc and arm support.
- port GetPcSpBp() to netbsd/powerpc* and netbsd/arm.
2018-02-05 22:04:54 +00:00
mrg
b8a26bd00d more mknative-gcc 6.5 for sparc, sparc64 and amd64. 2018-02-05 06:13:33 +00:00
mrg
b3953390c8 regen mknative-gcc 6.4 and amd64. 2018-02-04 20:22:42 +00:00
mrg
51502cf62d updates for GCC 6.4:
- remove many _DIAGASSERT() checks against not NULL for functions
  with arguments with nonnull attributes.  (probably more to come,
  the set between x86 and sparc us disjoint.)

- port libsanitizer's GetPcSpBp() to sparc, sparc64 and amd64.
2018-02-04 20:22:17 +00:00
mrg
9f0e9a55d9 make libbackend.a build and fix the libcommon.a sources list.
now all the gcc parts link.
2018-02-04 10:16:07 +00:00
mrg
41868f0d0a partial work-in-progress to build GCC 6.4 natively:
- use -std=gnu++98 by default.
- add build support for new GCC generators, etc.
- regen i386 mknative files.
2018-02-04 09:22:03 +00:00
mrg
3d95d37864 mknative-gcc for alpha, earm, i386, mips64eb, powerpc, sparc,
sparc64, and x86-64.  tree does not fully build yet, however.
2018-02-04 01:17:40 +00:00
mrg
600075ca82 updates for GCC 6.4. 2018-02-04 01:16:32 +00:00
mrg
1df0d34461 fixes to build the sanitizer files. not tested, but builds. 2018-02-04 01:14:42 +00:00
mrg
af3c0cd56d updates for GCC 6.4: add gcc-6 specific headers, combine some
all-gcc files, bump the shlib versions on new libs.
2018-02-03 21:27:45 +00:00
mrg
c57c37fb6b updates for GCC 6.4.0:
- we install version specific headers into gcc-6.
- add missing include path for i386/cpuinfo.c.
- fix compile time warnings in libobjc/encoding.c
- adjust c++98/compatibility.cc to use a visible header
- Makefile.hacks gains a hack for x86 and insn-constants.h.  (should
  try to figure out how to build this earlier.)
- libgomp missing priority_queue.c (switch to mknative pulling it out?).
- build a libstdc++ version file and use it.
- fix the handling of -std= to default the same as normal builds.
2018-02-03 19:27:15 +00:00
mrg
bc903b6f5b install into gcc-6 subdir. 2018-02-02 20:57:53 +00:00
mrg
f313166862 updates to make it at least build in tools/gcc:
- fix -fdelete-null-pointer-checks default (needs more inspection)
- revert unnecessary local changes in gcc.h, system.h and freebsd-spec.h
- fix local changes to invoke.texi
- update man and info pages
- fix a typo in unwind-seh.c
2018-02-02 20:45:19 +00:00
mrg
cdbfa754b1 merge GCC 6.4.0. sanitizer stuff is probably busted, but most
other changes merged easily.

docs need to be regenerated with modern versions still.
2018-02-02 03:41:02 +00:00
mrg
f9a78e0e88 import GCC 6.4.0. see this url for details which are too large to
include here:

   http://gcc.gnu.org/gcc-6/changes.html

the main visible changes appear to be:

- The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98.
- The C and C++ compilers now support attributes on enumerators.
- Diagnostics can now contain "fix-it hints"
- more warnings (some added to -Wall)
2018-02-02 01:58:35 +00:00
kamil
6c8e913a6f Install GCC (gcc) headers for Sanitizers
Sync this code with gcc.old.

PR 52265 by Kamil Rytarowski

Proposed and accepted on tech-toolchain@.

Sponsored by <The NetBSD Foundation>
2018-02-01 21:10:46 +00:00
christos
8ffa3f42a9 Add one more file, still does not build. 2018-01-09 01:51:20 +00:00
joerg
92677a93f8 Don't override X87_ENABLE_ARITH. Since we default to long double
rounding, the default value is correct for us.
2017-12-02 23:05:52 +00:00
skrll
3f391d52fc Match hppa JEMALLOC_TINY_MIN_2POW 2017-11-16 13:54:42 +00:00
mrg
9d6d176649 merge mknative files from gcc.old back into gcc.
they're back to being the same again now.
2017-11-15 23:33:49 +00:00
mrg
0ace67202c ensure version.c gets rebuilt properly. 2017-11-15 07:47:10 +00:00
mrg
c91d24e196 sync with gcc.old. 2017-11-14 09:04:16 +00:00