Commit Graph

1216 Commits

Author SHA1 Message Date
mrg
93abc59558 protect the entire contents of regsub.c with extern "C".
this fixes the tools build, at least.

also, remove the no longer needed cdefs.h from one of these copies.
2016-01-21 04:55:40 +00:00
christos
8b59ebd5ef make regasub a "C" decl. 2016-01-20 17:09:04 +00:00
christos
c424ac81dd make regasub a c decl. 2016-01-20 17:08:27 +00:00
christos
168ddffc8a sync with gcc.old (catch up with __RCSID removal and libc sync) 2016-01-20 15:13:33 +00:00
christos
fe4272b7bc remove __RCSID, sync with libc 2016-01-20 15:12:29 +00:00
christos
10dfc2597e ifdef __RCSID 2016-01-16 19:28:36 +00:00
christos
d874e91932 import the latest autoconf 2016-01-16 18:35:58 +00:00
joerg
930dcad416 Expand undefined number. 2016-01-15 15:37:05 +00:00
joerg
2c5fc9570b Left shift of negative values is UB, just write the constant out. 2016-01-15 00:18:19 +00:00
wiz
40fc864a9c Add missing word in comment. 2016-01-11 22:41:48 +00:00
christos
3965f5d7b6 PR/50646: Use the c99 cabs math builtins directly, because cabs and cabsf
have broken ABI's can cabsl does not exist. The correct(?) probably fix is
to change the cabs builtins to point to the c99 variants directly...
XXX: pullup-7 and the same file from the gcc.old tree.
2016-01-11 16:52:53 +00:00
christos
e85b730730 Hack around the cabs mess, and explain what's going on... 2016-01-11 16:49:09 +00:00
christos
ee2af19067 add -fdebug-regex-map=regex=subst which works like sed -e s/regex/subst/
to aid with /usr/obj remapping for MKREPRO
2016-01-09 02:00:14 +00:00
christos
8ec658f57a - Change LDADD/DPADD in library dependencies to LIBDPLIBS
- Fix some LDADD abuse and remove useless dependencies
- include <bsd.init.mk> in the right place where appropriate
From Rin Okuyama
2016-01-05 13:07:46 +00:00
christos
37ae74be41 For reproducible builds, allow the source of the map to be set from the
environment, so that DW_at_producer is the same no matter what the actual
underlying source and destination directories are. See:
    https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01168.html
2015-12-22 16:48:44 +00:00
christos
e2f72a0028 Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
2015-11-22 20:47:42 +00:00
christos
4fe0054f39 Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
XXX: pullup-7
2015-11-22 20:47:05 +00:00
christos
14b759e0d5 We've never supported executable stack notes in any archs so don't add one. 2015-11-08 17:13:01 +00:00
christos
b09d094867 We've never supported the executable stack note, and none of the other
archs have it.
2015-11-08 17:11:55 +00:00
christos
05e58339da Apply the GNU-stack fixes to the old branch. 2015-11-07 16:53:59 +00:00
christos
bb5915f98c Fix inconsistencies with GNU-stack note:
- always use __ELF__ && __linux, not just __ELF__ or just __linux__
- remember to pop back to the previous section where it is missing
XXX: need to file this bug with the GNU folks.
2015-11-07 16:53:07 +00:00
gdt
fc89a2852b Use -f with cp.
When the source tree is 444 (as should be unremarkable), cp results in
object files that are 444, which when cp'd again without -f result in
an error.
2015-11-02 00:51:18 +00:00
christos
6ca7fac253 use asprintf(3) 2015-10-26 15:14:33 +00:00
christos
d8e986fab6 Introduce a syslog format that accepts %m. Stop accepting %m in printf
like formats. Support for this is detected via the __syslog_attribute__
macro.
2015-10-14 16:05:14 +00:00
mrg
34a1d0259a re-merge GCC 4.8.5 (part 1). 2015-09-23 04:23:50 +00:00
mrg
f78a39098a re-merge GCC 4.8.5 (part 1) 2015-09-23 03:39:07 +00:00
mrg
678f798eaf import GCC 4.8.5 as gcc.old, in prepartion to update GCC. 2015-09-23 03:03:02 +00:00
skrll
a9a1ce9deb gdb.old is no more. 2015-09-17 09:34:20 +00:00
skrll
511b4bba45 Remove gdb.old now it's unused. 2015-09-17 09:26:32 +00:00
joerg
664441867e Don't shift negative values. 2015-09-12 19:04:21 +00:00
tron
93fded9a74 Fix build with "USE_SSP=yes". 2015-08-21 08:19:28 +00:00
christos
ed5ec7e8c7 use snprintf and cast to long. 2015-08-20 17:25:50 +00:00
christos
82dfa05dde regen 2015-08-18 08:43:55 +00:00
christos
9ca90fdc92 finish all the regen 2015-08-17 17:28:33 +00:00
christos
871cc9aea1 regen sh3* 2015-08-17 13:26:04 +00:00
christos
0e872dfe70 regen coldfire 2015-08-17 13:17:44 +00:00
christos
311ef48816 forgot one earmv4 files 2015-08-17 13:10:38 +00:00
christos
3954c00438 regen hppa and mipseb 2015-08-17 13:09:41 +00:00
christos
97d737391f regen some arm, mips, ppc, 2015-08-17 12:48:16 +00:00
christos
329412d82a fix mips 2015-08-17 12:45:06 +00:00
christos
1d01486282 regen vax 2015-08-17 10:17:25 +00:00
christos
4ee3234649 regen m68000 2015-08-17 10:11:30 +00:00
christos
c6bb8cabfc regen sparc64 2015-08-17 10:07:00 +00:00
christos
094a12b336 fix sparc64 2015-08-17 10:06:50 +00:00
christos
4d5524276d regen alpha, earmv4 2015-08-17 09:57:59 +00:00
christos
18982316aa fix alpha 2015-08-17 09:57:31 +00:00
christos
3221174a81 regen m68k 2015-08-17 09:06:49 +00:00
christos
1b2e4fb002 fix m68k 2015-08-17 09:06:29 +00:00
christos
3a1916735f regen sparc 2015-08-17 08:53:56 +00:00
christos
450cf8f634 fix sparc 2015-08-17 08:53:33 +00:00
christos
d708e326ad regen i386 2015-08-17 08:30:33 +00:00
christos
983172ca33 don't hard code the path. 2015-08-17 07:32:51 +00:00
christos
a70d8c7e9c gdb 7 -> gdb.old 2015-08-17 07:30:39 +00:00
christos
9d1da10b43 merge conflicts 2015-08-16 09:52:55 +00:00
christos
57d153c7c7 fix glue for gdb-7.9.1 2015-08-16 09:51:58 +00:00
christos
d0e1037b7b handle gdb-7.9.1 2015-08-16 09:14:53 +00:00
mrg
4a7a9971a5 add a bunch of missing CLEANDIRFILES, since the implicit rules they
come from are not entirely simple to generate.

remove old DIST= setting that was wrong.

this subdir builds again for me now.
2015-08-15 21:11:37 +00:00
mrg
0249ef23ac this is gdb.old, not gdb.
XXX: put this in bsd.own.mk?
2015-08-15 20:57:37 +00:00
mrg
67a23d995b re-run mknative binutils for powerpc. 2015-08-15 19:54:02 +00:00
christos
968cf8f21f import new gdb 2015-08-15 10:24:36 +00:00
christos
837edd6b4e import new gdb 2015-08-15 10:18:10 +00:00
christos
b23b258258 import new gdb 2015-08-15 09:56:15 +00:00
christos
9d2109275e import new gdb 2015-08-15 09:46:14 +00:00
christos
8986534fbd switch everyone to gdb.old 2015-08-15 09:34:17 +00:00
christos
0ab5b34041 import the head of gdb in gdb.old in preparation for the new gdb import. 2015-08-15 09:27:49 +00:00
jakllsch
23d6404318 Correct temporary directory preference order in libiberty's choose_tmpdir().
Because it is intended to be persistent, /var/tmp is about the worst possible
choice for temporary files for most users of libiberty.  /tmp works better,
because the the defined semantics of /tmp allow for a non-persistent tmpfs
to be used.  This should improve performance when /tmp is a tmpfs and it is
difficult or impossible to have an environment variable or command line -pipe
flag passed to every piece of the toolchain.
2015-08-10 15:45:40 +00:00
christos
dcdbe6c789 td_close() needs to be able to write to the process image, so call sooner,
before we detach from it.
2015-07-02 14:54:42 +00:00
mrg
5b544a3657 regen mknative files for GCC 4.8.5. 2015-06-25 09:53:25 +00:00
mrg
3008502ee0 merge GCC 4.8.5 (final round) 2015-06-24 14:51:17 +00:00
mrg
11d0566779 merge GCC 4.8.5 (round two) 2015-06-24 14:29:51 +00:00
mrg
788f3c6afe merge GCC 4.8.5 cornflakes (round one). 2015-06-24 14:28:27 +00:00
mrg
7e9e220a26 initial import of GCC 4.8.5 sources. these GCC PRs (at least) are
fixed in this release:

64882 46102 58123 65409 59626 61058 65680 64487 65721 65727
52306 64768 56273 57653 59990 60656 61634 63844 64199 64493
64495 65549 57059 57569 57748 58369 62642 63608 64037 65550
65693 65220 45187 64409 61977 64513 64634 65368 66233 66470
65072 65327 65543 65279 63593 65063 65518 66123 66140 59016
64479 64557 64979 66215 66275 66481 39423 64766 63733 52714
60898 61138 63744 57023 39722 45402 52579 52664 60718 62044
59513 35330 37440 43701

see:
  https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=4.8.5
for more details.
2015-06-24 14:02:39 +00:00
matt
b766b2b592 Change CC1_SPEC andd CC1PLUS_SPEC to supply -fPIC by default if none of
m32 mrelocatable fpie fPIE fpic fPIC fno-pie fno-pic are supplied.
2015-06-24 01:29:33 +00:00
matt
7593e659ff By changing rs6000_elf_reloc_rw_mask to return 3 if using a powerpc64 ABI
on NetBSD, we basicly eliminate the only difference between have -fPIC or
not.  This enables us to turn on MKPICLIB for powerpc64.
2015-06-23 01:37:13 +00:00
matt
bd8986bbe0 Fix a bug where the octeon+ saa/saad instructions think they are using the AT
register when they actually aren't.
2015-05-29 22:18:51 +00:00
matt
6b8427896d Add the historical __OCTEON__ builtin_define along with __mips_popcount which
is defined if the platform has the dpop/pop instructions.
2015-05-29 19:37:27 +00:00
mrg
35d2346c62 generate after oabi/eabi fixes. 2015-05-28 17:31:38 +00:00
matt
e3b08ce148 Make MULTILIBS work for oabi 2015-05-27 15:33:41 +00:00
skrll
640e856ca3 Fix up TARGET_ENDIAN_DEFAULT for BE oabi 2015-05-25 21:18:29 +00:00
matt
2bfd904e26 regenerated for N32 support. 2015-05-23 22:14:20 +00:00
matt
62bd03ee9c Regen for N32 target vectors. 2015-05-23 01:45:08 +00:00
matt
3a9ce77d41 Add the mips n32 target vectors. 2015-05-23 01:41:02 +00:00
skrll
65b0d3bfdb Make sure mips_elf_n32_is_local_label_name is used. 2015-05-13 06:24:18 +00:00
matt
fd2293f463 Fix TEXTREL message to print out the section name 2015-05-09 17:43:23 +00:00
skrll
47d8d0b280 Define bfd_elf64_bfd_is_local_label_name so that local symbols really
get stripped, etc.
2015-05-08 15:13:53 +00:00
christos
fce62f0d34 regen 2015-05-07 14:43:30 +00:00
christos
ac4fc9a0ef generalize the mips test to match mips64. 2015-05-07 14:43:22 +00:00
prlw1
9521ae7bfd Fix typos 2015-04-28 09:48:30 +00:00
joerg
66e8846b8d Redo __aeabi_atexit by shuffling the arguments and dropping the code in
libstdc++.
2015-04-19 18:15:26 +00:00
martin
0c1ee2bf17 Results of an mknative run for ia64 2015-04-17 12:41:46 +00:00
martin
b40e9b5326 Add evil hack to help mknative untill we finish userland 2015-04-17 12:29:49 +00:00
martin
4ae85d6ddd Add missing cast 2015-04-17 12:29:00 +00:00
mrg
2603e0673f remove various HAVE_GCC=45 fragments. 2015-04-15 19:13:46 +00:00
mrg
cc09a3cba1 delete GCC 4.5. 2015-04-07 21:19:28 +00:00
bouyer
8bc54b22df Use the same TRY_EMPTY_VM_SPACE as mips and vax for arm, which also
has VM_MAXUSER_ADDRESS set to 2GB. Fixes "fatal error: had to relocate PCH"
from g++ building wxGTK28 or wxGTK30.
For details see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58379

thanks to Martin Husemann for the hint.
2015-04-03 17:25:42 +00:00
dennis
f334ce9265 Make the small [U]INT_LEAST?_TYPE definitions match the 32 bit compiler 2015-04-02 16:49:09 +00:00
matt
6d5bd4db35 Update to latest gcc changes. Default NetBSD to the medany cmodel. 2015-04-01 06:35:01 +00:00
matt
019155557a Add RISCV bits 2015-03-31 17:58:30 +00:00
matt
9e7510ab24 Update RISCV tls assembly tests 2015-03-31 17:57:40 +00:00
matt
163496bc0e Deal with NetBSD using dwarf EH 2015-03-31 17:18:35 +00:00
matt
11b22aab18 Make gcc emit the CPP macros for integer types. 2015-03-29 00:42:51 +00:00
matt
98ace65d41 Deal with GNU IFUNCs properly. 2015-03-28 07:51:20 +00:00
matt
3b7a9d4fbb Regen for new RISCV binutils.
Add elfnn-riscv.c -> elf{32,64}-riscv.c rules
2015-03-28 07:03:23 +00:00
matt
9b59c19e65 Make sure the RISCV compiler defaults to FDIV enabled. 2015-03-28 00:47:17 +00:00
matt
3a607a33f7 Update our in-tree binutils for RISCV to the latest. 2015-03-27 06:34:31 +00:00
matt
1523fd3ab8 Update gcc to use new ABI for RISCV 2015-03-27 01:51:34 +00:00
joerg
3dea93ea59 Apply elf32.em r1.8 to the corresponding sections of armelf.em and
aarch64elf.em. Original commit message:

Recursively add DT_NEEDED entries from shared libraries if symbols are
used indirectly. This is more in line with the old GNU ld behavior, but
not exactly the desired semantic.

Patch from Martin Husemann.
2015-02-18 15:05:43 +00:00
chs
80bb74da59 update m68k gcc bug workarounds for gcc 4.8. fixes PR 49609. 2015-02-01 17:47:00 +00:00
mrg
39898ff989 regenerate with recent mknative-gcc (1.80 and 1.81) updates. 2015-01-31 12:15:24 +00:00
joerg
80d5023792 libgcc_s is linked in the specs already, don't do it explicitly. 2015-01-29 21:12:10 +00:00
christos
4fc6ba4368 fix for PIC code. 2015-01-25 20:06:46 +00:00
matt
2eb84c7288 Make sure POWERPC_NETBSD is defined. 2015-01-22 08:35:05 +00:00
matt
9a22733cae Don't enable string instructions on NetBSD if -Os is used. 2015-01-20 07:12:41 +00:00
joerg
7056ba0e78 There is no such thing as void volatile. 2015-01-16 10:08:52 +00:00
joerg
eebd9ebe9d Uses free 2015-01-16 10:08:37 +00:00
mrg
68c85a9f21 regen. 2015-01-15 22:29:52 +00:00
skrll
b4b886e5d8 Fix gcc PR target/64479 [SH] wrong optimization delayed-branch 2015-01-15 08:42:14 +00:00
tron
00203d2bfc Fix build with "USE_SSP" set to "yes". 2015-01-14 20:26:41 +00:00
mrg
5c10ef7e83 rerun mknative for GCC 4.8.4 and all platforms.
m68000 needs -fPIC removed (again), and hppa c++config.h turned off
several things present in -lm, fixed by hand.
2015-01-10 22:59:34 +00:00
mrg
6bad6bfaf1 update for more reality. 2015-01-10 22:58:38 +00:00
mrg
94b9bff57a merge GCC 4.8.4. 2015-01-10 01:06:41 +00:00
mrg
6012017c82 import GCC 4.8.4 release. this fixes at least these GCC PRs:
fortran/61407
	sanitizer/64265
	tree-optimization/64269
	middle-end/64225
	tree-optimization/61686
	bootstrap/64213
	rtl-optimization/64037
	target/50751
	rtl-optimization/64037
	target/59593
	target/59593
	c++/56493
	target/64115
	middle-end/64111
	middle-end/64067
	rtl-optimization/63659
	libgomp/61200
	tree-optimization/61969
	tree-optimization/62031
	tree-optimization/63379
	tree-optimization/63605
	middle-end/63665
	target/60111
	target/63673
	target/63947
	tree-optimization/62167
	tree-optimization/63841
	ipa/63838
	c++/63455
	c++/63415
	c++/56710
	c++/58624
	preprocessor/60436
	target/55351
	fortran/63938
	libgomp/61200
	libstdc++/63840
	libstdc++/61947
	libstdc++/59603
	target/56846
	libstdc++/57440
2015-01-10 00:47:09 +00:00
christos
7f4dbbddd0 fix library name; add shared library version 2015-01-07 03:49:13 +00:00
christos
c2c9c6ba4c it is lto1 2015-01-07 02:18:10 +00:00
christos
b065c82840 regen 2015-01-07 02:08:06 +00:00
christos
62254aa965 regen; backtrace support is complete 2015-01-07 02:06:59 +00:00
christos
2c904ef7c1 fix build 2015-01-07 02:06:23 +00:00
christos
7f61831388 enable lto 2015-01-07 02:06:03 +00:00
christos
0c2e46cd4b enable the rest of the languages 2015-01-07 02:05:41 +00:00
christos
d5e8e308ec build lto 2015-01-07 02:02:44 +00:00
mrg
a4ee9f7109 fix MKGCCCMDS=no, and turn it on by default for sun2. 2015-01-05 01:52:23 +00:00
christos
88c1089d96 Bring in 2 patches from binutils:
From Alan Modra: Wed, 3 Jul 2013 11:51:56 +0930: powerpc64 call stubs:
    This brings powerpc64 ld in line with gold regarding calls allowed to
    go via a plt call stub or toc-adjusting stub without a following nop.
    A long time ago ld allowed tail calls, but this is wrong because we'll
    return to the caller's caller with the wrong toc pointer.  I fixed
    that for shared libraries but allowed tail calls in an executable for
    some reason.  Probably just muddy thinking on my part, because there's
    no difference between an executable and a shared library regarding the
    need to restore the toc pointer.  Perhaps it was because some testcase
    failed, most likely due to the g++ issue I comment on in the patch.

From Alan Modra: 29 Aug 2014 01:22:29 +0000: PowerPC64 call lacks nop error:
    Enough people accidentally or otherwise use -mcmodel=small then wonder
    why a call that is local is behaving as if it is going via the PLT.

	* elf64-ppc.c (ppc64_elf_relocate_section): Report a different
	error for calls via a toc adjusting stub without a nop.
2015-01-02 19:50:02 +00:00
dennis
298eb8b514 Apply a fix, extracted from the UCB RISC-V gcc sources, for the (known)
problems with compiling atomics for the riscv64 target with gcc.  Remove
the now-unneeded workarounds for the 2 files in libasan that were formerly
failing to compile with the optimizer turned on.
2014-12-22 21:15:48 +00:00
skrll
6948cee7e0 Allow i386 binary debugging on amd64 hosts. 2014-12-15 13:43:24 +00:00
christos
0c6a515324 Allow i386 binary debugging on amd64 hosts.
XXX: This should be done in mknative but how? Matt?
2014-12-14 19:59:52 +00:00
christos
977e434ff6 When debugging 32 bit binaries on a 64 bit arch in NetBSD the dynamic
linker magically converts the dynamic linker name to ld.elf_so-<32bitarch>
like ld.elf_so-i386. We do the same magic here.
2014-12-14 19:58:06 +00:00
christos
f890372b86 - Add -f to allow processing non-plain files.
- Align NetBSD note printing properly
- Add handling of "PaX" notes correctly. Perhaps we should rename them
  to "NetBSD" now.
2014-12-13 18:32:59 +00:00
martin
41f1cccf8f Fix byte order selection for breakpoints: on arm the byte order for code
might differ from the generic BFD endianess.
Fixes PR toolchain/49445.
2014-12-12 20:25:35 +00:00
aymeric
426034c57f . do not abort() if we read a zero cs or rip, or if we can't read them
. end the backtrace when encountering a soft interrupt, since they live in
  their own lwp
2014-12-02 10:34:27 +00:00
dennis
937de38ba9 Work around RISC-V compiler bug in gcc 4.8.3 (at least).
Should be reconsidered if the compiler is updated.
PR toolchain/49425
2014-12-02 03:20:39 +00:00
mrg
eea473d2a5 regenerate mknative files for m68000 now that the build actually completes.
this includes a hack matt@ found -- remove -fPIC from libgcc's defs.mk, i
have not yet figured out how to stop confgiure adding it.
2014-11-22 19:42:11 +00:00
joerg
06da94bf06 Merge upstream d840c081f8082e8b9e63fead5306643975a97bb3 to fix
UB as seen by a clang compiled as.
2014-11-20 21:44:56 +00:00
matt
549cefa5e6 Avoid using ld -x. Instead use ${OBJCOPY} ${OBJCOPYLIBFLAGS} to string
local symbols.
2014-11-02 14:54:27 +00:00
christos
fed776c55d one more search path. 2014-10-23 23:31:26 +00:00
christos
6eb7640629 make alpha compile 2014-10-23 19:03:38 +00:00
christos
3ce54f1012 use the appropriate unwind.h header 2014-10-23 17:50:24 +00:00
christos
a62fb610ef stop playing type games, and use the proper type for the placement new operator 2014-10-23 17:50:08 +00:00
christos
37db287df0 Use libdplibs 2014-10-23 12:16:25 +00:00
christos
9512ff2aab simplify and add more architectures. 2014-10-23 00:25:54 +00:00
christos
9b7e305c80 set the proper asan variable 2014-10-22 23:17:24 +00:00