Commit Graph

1784 Commits

Author SHA1 Message Date
christos
0bee54c3d5 The syslog format attribute is a superset of the printf format attribute
so allow functions marked with the printf format attribute to call syslog
without producing warnings with -Wmissing-format-attribute.
2018-09-14 20:46:46 +00:00
christos
0883f3731a fix the build; this was mis-generated before to an empty file. 2018-09-07 18:41:39 +00:00
mrg
866b3c4cbe merge in missing changes from gcc to gcc.old (both GCC 6.4.):
--
redo mknative-gcc for all ports.  main changes include:
- "#define HAVE_CC_TLS 1" for most/all ports, thanks maya@
- "#define _GLIBCXX_HAVE_LDEXPL 1" and "#define _GLIBCXX_HAVE_TGMATH_H 1"
  for many ports
- arm64 and amd64 had a broken c++config.h that disabled many things
- configargs.h has more normalisation
- ppc64 has a few things fixed, must have missed several mknative rounds
--
regen to pull out INTERNAL_CFLAGS.
--
pull -DHAVE_CC_TLS out of $(INTERNAL_CFLAGS) if it is there, and add
it to CPPFLAGS.

this fixes PR#53567 for me.
2018-09-05 06:26:58 +00:00
mrg
7ef108d600 pull -DHAVE_CC_TLS out of $(INTERNAL_CFLAGS) if it is there, and add
it to CPPFLAGS.

this fixes PR#53567 for me.
2018-09-05 00:51:42 +00:00
mrg
8d0a685795 regen to pull out INTERNAL_CFLAGS. 2018-09-05 00:22:07 +00:00
mrg
82c55164cb redo mknative-gcc for all ports. main changes include:
- "#define HAVE_CC_TLS 1" for most/all ports, thanks maya@
- "#define _GLIBCXX_HAVE_LDEXPL 1" and "#define _GLIBCXX_HAVE_TGMATH_H 1"
  for many ports
- arm64 and amd64 had a broken c++config.h that disabled many things
- configargs.h has more normalisation
- ppc64 has a few things fixed, must have missed several mknative rounds
2018-09-04 18:52:49 +00:00
maya
9e53aadb1c Correct missing paren and regen for gcc.old, too.
Now HAVE_CC_TLS will be defined in confdefs.h.
2018-09-03 22:52:00 +00:00
maya
73c0b39422 Correct extra parens, regen configure (selectively)
Fixes root cause of PR toolchain/53567
2018-09-03 22:41:00 +00:00
mrg
2dd16a5c31 consolidate path for gcc-version specific into GCC_INCSDIR, and
have it derived from the HAVE_GCC value so it does not need to
be modified for newer GCCs.
2018-08-12 21:48:56 +00:00
mrg
4877c284cc fix the sanitizer include path. 2018-08-02 07:47:30 +00:00
mrg
63ce0b47ae merge GCC 6.4 into gcc.old. 2018-08-02 00:02:46 +00:00
mrg
f13786ea7f import GCC 6.4 srcs into gcc.old in preparation for GCC 7.x.
these are netbsd GCC srcs from 20180801.
2018-08-01 22:18:23 +00:00
christos
f664a8d563 Go back to using int for wchar_t as all the rest of the archs; using unsigned
int is complicated specially when it comes to comparing with WEOF etc.
2018-07-16 00:04:47 +00:00
christos
0b925243f2 Give aarch64 the "special treatment", since mknative does not include the
target-specific build file.
2018-07-15 16:37:04 +00:00
christos
6e6520b9c5 There is no more SUBTARGET_EXTRA_SPECS, so hijack the EXTRA_SPECS. 2018-07-15 16:35:47 +00:00
christos
277061c241 Handle aarch64 jemalloc constant 2018-07-15 01:02:15 +00:00
christos
f83135cfef Aarch64 specific generated files. 2018-07-15 00:59:49 +00:00
christos
8254ea8c8b aarch64 sanitizer bits 2018-07-15 00:32:40 +00:00
christos
1fa371c02e c++config for 32/64 arm 2018-07-15 00:18:13 +00:00
christos
8352b2ec75 First pass at mknative for aarch64, based on mrg's work. 2018-07-14 23:47:31 +00:00
christos
d6b79c318e clang does not like the c-like definition of alignof 2018-07-14 23:42:23 +00:00
christos
985fdf2eac clang does not like auto in c++ 2018-07-14 23:41:43 +00:00
christos
c26d2ba97d avoid dups for aarch64 2018-07-14 23:40:19 +00:00
joerg
8ac3438f55 Reapply with fixed condition:
PT_PHDR is useful without PT_INTERP, i.e. for static PIE. It removes the
need for platform-specific computations of _DYNAMIC and friends.
2018-07-13 19:54:13 +00:00
maya
de537c69f3 stopgap fix: revert bfd PT_PHDR without PT_INTERP changes.
This currently results in most binaries being broken. Give more time to
debug without -current being badly broken.

The reverted commit message was:
PT_PHDR is useful without PT_INTERP, i.e. for static PIE. It removes the
need for platform-specific computations of _DYNAMIC and friends.

ok martin, mrg
2018-07-13 10:49:17 +00:00
christos
b2c71d2ddb aarch64 does not have PT_STEP so we start from 0. 2018-07-12 23:18:28 +00:00
joerg
44317eea7c Static PIE should have no linker, otherwise it isn't really static. 2018-07-12 21:39:24 +00:00
joerg
e897e0bb41 PT_PHDR is useful without PT_INTERP, i.e. for static PIE. It removes the
need for platform-specific computations of _DYNAMIC and friends.
2018-07-12 21:38:16 +00:00
christos
cc9713c527 regen aarch64 2018-07-12 00:16:32 +00:00
christos
0eedf677ec it is not xx but nn that we want. also add missing dependencies. 2018-07-11 14:51:34 +00:00
christos
b28c7e7ccb fix signness issues. 2018-07-11 13:52:35 +00:00
christos
d5e850450b Add another elfxx conversion. 2018-07-11 13:44:04 +00:00
christos
45cf9d8189 new config files for aarch64 but no progress in getting it to work. 2018-07-11 13:34:27 +00:00
christos
70306f7025 FIx reproducible builds for EFI boot blocks (from HEAD) 2018-07-09 12:15:31 +00:00
kre
3b6b60d23d Apply the change made to binutils:
Committed By:   christos
  Date:           Sun Jul  8 16:53:56 UTC 2018

  Modified Files:
        src/external/gpl3/binutils/dist/bfd: config.bfd
        src/external/gpl3/binutils/lib/libbfd/arch/i386: defs.mk

  Log Message:
  enable coff/pe executable vectors for i386 for the efi bootblocks.
  XXX: pullup-8

to binutils.old (which is what i386 is using).  Should unbreak the build.
2018-07-09 11:55:45 +00:00
christos
4522373d91 enable coff/pe executable vectors for i386 for the efi bootblocks.
XXX: pullup-8
2018-07-08 16:53:56 +00:00
christos
9951f8b9e4 vaxinate the sanitizer build. 2018-07-01 17:41:49 +00:00
christos
46e5459c53 disable one more size check for _LP32 to make pcc build. 2018-07-01 14:20:23 +00:00
kre
cb552d924c Remove (recently) commented out (recently added) liblsan SUBDIR
(it has been added a different way.)
2018-06-28 14:01:12 +00:00
christos
0fd9ea3645 put back lsan 2018-06-28 10:14:01 +00:00
christos
ecf509af59 Reduce sizes for non _LP64 and compiler checks so that the code compiles
(but it will not work, since there is not enough address space to implement
the shadow space required).
2018-06-27 15:57:20 +00:00
christos
3a31568ee3 use the proper types for operator new 2018-06-27 15:56:30 +00:00
martin
9a2749bc95 Disable liblsan for now - it seems to be 64bit only - all 32bits are
failing and the 64bit ones with compat 32bit do not work either.
2018-06-27 06:06:39 +00:00
kre
94c5c83f44 Since liblsan has been added to the sets already, we should build it. 2018-06-27 01:25:49 +00:00
christos
ae60fed3bd remove temp hack. 2018-06-26 21:06:45 +00:00
christos
92d3d99452 Add support for lsan (Leak Sanitizer), crashes on exit, but works from gdb... 2018-06-26 20:55:37 +00:00
christos
748fe90b99 Add lsan support. 2018-06-26 20:54:32 +00:00
christos
18b55cf995 Fix thread debugging. 2018-06-23 03:15:55 +00:00
christos
3306a1539a match our number of registers. 2018-06-22 19:41:40 +00:00
christos
60d5c279c7 use the right emulation 2018-06-22 19:41:16 +00:00