Commit Graph

790 Commits

Author SHA1 Message Date
sevan
cc576e1d8e Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
2017-02-01 09:26:39 +00:00
christos
e145362bfe use the full attribute syntax 2017-01-17 12:49:26 +00:00
christos
0133d15da2 use the full attribute syntax. 2017-01-17 12:48:39 +00:00
christos
d3da06c622 elide psabi errors on i386 2017-01-15 21:27:38 +00:00
christos
8e7ebb8f8c Handle errors in system headers 2017-01-13 01:14:27 +00:00
christos
78df756bd3 sprinkle __unused 2017-01-12 19:21:09 +00:00
christos
73f4d05a56 revert for now; too many issues. 2017-01-12 19:10:00 +00:00
christos
d0c807d2c9 Our headers are clean, enable warnings caused by them. We want to know
about <ctype_macro>(char) usages.
2017-01-12 17:14:23 +00:00
kamil
60b1976a76 Revert introduction of FIXME_PR_51139
This change introduced ABI incompatible change with older versions shipped
on NetBSD. This back out code that is currently not working correctly due
to TLS-based std::call_once implementation in GNU libstdc++.

Error when starting gnuchash:

/usr/pkg/lib/libwebkitgtk-1.0.so.0: Undefined symbol "_ZSt15__once_callable" (symnum = 1705)

PR 51139

Reported by <wiz>
2016-12-24 15:48:26 +00:00
kamil
49e3a2363a Add a walkaround for TLS bug in libstdc++ exposed with std::call_once
Currently std::call_once with libstdc++ works only with static linking.
Disable code path using __thread types and introduce FIXME_PR_51139.
Problem discussed in PR 51139

Functional std::call_once is required in LLVM and LLDB codebase.

Example code to test std::call_once:
#include <iostream>
#include <thread>
#include <mutex>
#include <cstdlib>
std::once_flag flag;
int main(int argc, char **argv)
{
        std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });
        return EXIT_SUCCESS;
}

Sponsored by <The NetBSD Foundation>
2016-12-21 21:55:46 +00:00
rin
36532a0d5a PR port-powerpc/51366 kernel for powerpc/ibm4xx miscompiled by gcc >= 4.8.5
backport fix from upstream:

URL: https://gcc.gnu.org/viewcvs?rev=238789&root=gcc&view=rev
Log:
rs6000: Fix logic for when to emit .machine (PR71216)

The current logic determining whether to use .machine in the generated
asm code puts it there if the compiler is not configured with a default
target cpu, _or_ no -mcpu= was given on the command line.  It should
be "and" instead.

	PR target/71216
	* config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
	when to emit a ".machine" pseudo-op.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
2016-12-18 03:00:58 +00:00
christos
811931c076 on NetBSD we don't have llvm_symbolizer, so try addr2line... 2016-12-01 18:20:25 +00:00
christos
0833d377e3 use the right sysctl to find the main binary name. We don't really need
this since our dl_iterate_phdr DTRT's for objmain, but...
2016-12-01 18:19:19 +00:00
christos
bbf41bf8ef use LIBGCC_MACHINE_ARCH for the compat build 2016-10-22 20:33:28 +00:00
christos
f6383fc60c regen and include the proper directory for x86_64 2016-10-22 03:55:03 +00:00
christos
6d0f30fd53 enable tf math (__float128) 2016-10-22 03:33:03 +00:00
christos
5300379ae6 Mark this -z nodelete, so that it does not get unloaded before other shared
libraries do, since they destructors need to still call millicode.
The problem this time was with /usr/pkg/bin/gdk-pixbuf-query-loaders
calling glib2's g_log...
2016-10-21 23:44:09 +00:00
mrg
e7aef7676b basic support for -static -pie: use -dynamic-linker.
doesn't work for all ports (reloc startup issues.)
2016-10-21 07:24:30 +00:00
mrg
07ee0c7402 regen mknative for all ports and GCC 5.4 and -current. many ports
were using 5.3 data, and none of them had <stdalign.h>.
2016-10-18 01:32:56 +00:00
christos
bcc92e9b65 fix ssp build on amigappc 2016-10-06 02:58:32 +00:00
christos
0e20c92e52 The NetBSD libc provides the softfloat support which is duplicated in libgcc
and we prefer ours.
2016-10-05 19:24:44 +00:00
christos
93731ee132 regen 2016-10-05 14:30:18 +00:00
christos
cb24a47c16 regen 2016-10-05 14:16:56 +00:00
uwe
c3674760a3 Run configure with MAKE=${TOOL_GMAKE:Q} - otherwise "checking
dependency style" test fails on non-netbsd hosts where nbmake can't
find share/mk.

Ok phone@
2016-09-29 20:08:25 +00:00
christos
e4026cc8ea __NetBSD__ -> SANITIZER_NETBSD 2016-09-22 13:13:09 +00:00
christos
0b7ade5bd2 Avoid definining a prototype for signal(3) from <sys/param.h> because the
INTERCEPTOR macro cannot handle function returns easily.
TODO: fix <sys/param.h> to avoid this kind of name pollution.
2016-09-22 03:43:07 +00:00
christos
2e3ca227c0 need <sys/param.h> 2016-09-21 23:18:42 +00:00
christos
37b1f1d690 Check the NetBSD version 2016-09-21 21:30:56 +00:00
christos
a75c439d9f add new field 2016-09-21 19:18:01 +00:00
christos
f4001fd30b XXX: manually add uniform_int_dist.h because everyone else has it and
it breaks the build!
2016-09-18 02:03:16 +00:00
christos
d120f5b7a3 undo the attempt to figure out mult clobbering; breaks compilation; revert
to the fsf version
2016-09-17 00:55:40 +00:00
christos
f47e9f5683 turn off split wide types to avoid gcc bug. Arguably this should be fixed
in m68k.md, but I will leave this to someone more qualified.
2016-09-16 20:31:00 +00:00
christos
7f119c296e put the clobber after the instruction. 2016-09-16 20:30:14 +00:00
christos
6f1abd5174 gcc generates incorrect jump tables with -fPIE 2016-09-03 15:47:54 +00:00
christos
1eb0ac3f07 regen for alpha and sh now that they have fenv.h 2016-08-26 17:28:54 +00:00
christos
6b98bddc8a the heuristic for the cpu dependent file atomicity.h is unusable for little
endian sh. For big-endian it happens to work because host_cpu!=sh. Elide it
2016-08-26 17:28:32 +00:00
christos
388d69f323 XXX stop gap fix for atomicity.
U __gnu_cxx::__atomic_add(int volatile*, int)
U __gnu_cxx::__exchange_and_add(int volatile*, int)
2016-08-25 13:17:09 +00:00
mrg
56058dff13 canonicalise the netbsd spec functions in NETBSD_SUBTARGET_EXTRA_SPECS:
netbsd_cpp_spec
   netbsd_link_spec
   netbsd_entry_point
   netbsd_endfile_spec

use this in all netbsd targets.

XXX: 3 ports set this to EXTRA_SPECS instead of SUBTARGET_EXTRA_SPECS.
2016-08-19 05:11:09 +00:00
tls
b139dbeb03 Disable iconv in host-libcpp autoconf: fixes build on Mac OS X.
Thanks to joerg@ for the diagnosis and proposed fix.
2016-08-14 16:04:50 +00:00
scole
6afc3b56dd PR port-ia64/51261
Change JEMALLOC_TINY_MIN_2POW for ia64
2016-08-05 16:25:18 +00:00
mrg
6c93c005b3 find gcov.1 again. 2016-07-07 03:15:58 +00:00
mrg
703c8b8111 missed from previous:
remove old generated versions of man pages.
update the dist versions of man and info pages to include local changes.
2016-07-06 11:37:26 +00:00
mrg
e292c2206e remove old generated versions of man pages.
update the dist versions of man and info pages to include local changes.
2016-07-06 11:21:17 +00:00
mrg
2e7e02f388 avoid the default TARGET_INIT_LIBFUNCS (i think) and XFmode. 2016-07-01 14:48:51 +00:00
mrg
1e2fcaaf47 enable some soft-fp for ia64, needed for libgcc. re-mknative-gcc. 2016-06-30 09:06:35 +00:00
mrg
70e5fb7477 mknative-gcc for GCC 5.4 and ia64. 2016-06-30 01:44:48 +00:00
mlelstv
f72ec5db06 Drop extra argument not used by format string. 2016-06-26 15:46:42 +00:00
skrll
a38b18bd73 arm-builtins needs insn-opinit.h
I had this sitting in my tree already, but prompted by Michael Plass on
port-arm
2016-06-17 03:27:50 +00:00
christos
dbe760216f small progress. 2016-06-11 23:10:01 +00:00
christos
fae93e9b6d fix compilation and getdents. 2016-06-11 20:45:07 +00:00