Commit Graph

2387 Commits

Author SHA1 Message Date
mrg
b08b556d46 mknative-gcc for GCC 10 and earm ports (now including earmv7hf) after
the arm/netbsd-elf.h fix.  shark appears to work at least now.
2021-04-12 09:51:49 +00:00
mrg
f76800c4b6 arm/netbsd-elf.h is necessary for eabi targets. 2021-04-12 09:03:39 +00:00
mrg
e6db336e16 updates:
- arm64 doesn't build (missing __aarch64_swp1_acq in kernels)
- mips cpu targets all build (maybe not all ports)
- powerpc builds (maybe not all ports)
2021-04-12 08:31:30 +00:00
mrg
60ad6a583b mknative-gcc for GCC 10.3 and powerpc ports. 2021-04-12 08:29:18 +00:00
mrg
d68c9edc84 merge our changes into GCC 10. parts of the rs6000.c file were
split into separate files, and an old change to rs6000.c now
belongs in rs6000-logue.c.
2021-04-12 07:23:06 +00:00
mrg
b4369c1e58 various changes to get GCC 10 to build here.
- fix path to compiler-specific includes
- missing (void) for (older) C
- fix __is_signed/__is_signed_val change
- avoid compiler warning-as-errors
- add to existing COPTS.file values, instead of setting
- bump libgomp minor; functions were added
- add new 'compare' c++ header
- handle new analyzer subdirectory.  set TARGET_MACHINE for lto-streamer-in.c.
  remove params.list etc handling.
- coroutines.cc is another .cc not .c.  adjust .PATH to suit.
- add new lto1 sources
- couple of files not in /arch/ subdirs missed in mknative update.

rs6000.c is still not merged.
2021-04-12 00:05:54 +00:00
mrg
9d32163c94 revert sanitizer back to the version we were using with GCC 9, since
that one was already newer than the GCC 10 version.
2021-04-11 23:54:25 +00:00
mrg
9a218c9915 mknative-gcc for GCC 10 and almost all platforms. one of the
myriad of arm platforms, and the powerpc* platforms are not
yet done.
2021-04-11 20:26:42 +00:00
mrg
101c790c38 disable testsuite components. 2021-04-11 01:38:39 +00:00
mrg
cc77868793 revert a local change that i can't figure out how to port
makes vax-gcc10 tools build.
2021-04-11 01:38:05 +00:00
mrg
d22f10dc53 reduce diffs to upstream slightly. 2021-04-11 01:37:18 +00:00
mrg
01fa94395c re-disable selftests 2021-04-11 00:26:04 +00:00
mrg
43265c03e2 initial merge of GCC 10.3.0.
these three files are not yet finished merging:

gcc/config/rs6000/rs6000.c
libsanitizer/lsan/lsan_allocator.h
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h

our current GCC 9 sanitizers are newer than GCC 10's still, so that
may take a little to untease, so it's probable that more than
these 2 will need more changes.

rs6000.c has some changes related to ABI and supported functionality
that need to be merged forward.
2021-04-11 00:02:09 +00:00
mrg
fb8a8121f2 initial import of GCC 10.3.0. main changes include:
caveats:
- ABI issue between c++14 and c++17 fixed
- profile mode is removed from libstdc++
- -fno-common is now the default

new features:
- new flags -fallocation-dce, -fprofile-partial-training,
  -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer
- many new compile and link time optimisations
- enhanced drive optimisations
- openacc 2.6 support
- openmp 5.0 features
- new warnings: -Wstring-compare and -Wzero-length-bounds
- extended warnings: -Warray-bounds, -Wformat-overflow,
  -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow,
  -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags
- some likely C2X features implemented
- more C++20 implemented
- many new arm & intel CPUs known

hundreds of reported bugs are fixed.  full list of changes
can be found at:

   https://gcc.gnu.org/gcc-10/changes.html
2021-04-10 22:09:55 +00:00
mrg
b9ce18d60e initial import of GCC 10.3.0. main changes include:
caveats:
- ABI issue between c++14 and c++17 fixed
- profile mode is removed from libstdc++
- -fno-common is now the default

new features:
- new flags -fallocation-dce, -fprofile-partial-training,
  -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer
- many new compile and link time optimisations
- enhanced drive optimisations
- openacc 2.6 support
- openmp 5.0 features
- new warnings: -Wstring-compare and -Wzero-length-bounds
- extended warnings: -Warray-bounds, -Wformat-overflow,
  -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow,
  -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags
- some likely C2X features implemented
- more C++20 implemented
- many new arm & intel CPUs known

hundreds of reported bugs are fixed.  full list of changes
can be found at:

   https://gcc.gnu.org/gcc-10/changes.html
2021-04-10 22:09:53 +00:00
mrg
ad6404254a initial import of GCC 10.3.0. main changes include:
caveats:
- ABI issue between c++14 and c++17 fixed
- profile mode is removed from libstdc++
- -fno-common is now the default

new features:
- new flags -fallocation-dce, -fprofile-partial-training,
  -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer
- many new compile and link time optimisations
- enhanced drive optimisations
- openacc 2.6 support
- openmp 5.0 features
- new warnings: -Wstring-compare and -Wzero-length-bounds
- extended warnings: -Warray-bounds, -Wformat-overflow,
  -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow,
  -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags
- some likely C2X features implemented
- more C++20 implemented
- many new arm & intel CPUs known

hundreds of reported bugs are fixed.  full list of changes
can be found at:

   https://gcc.gnu.org/gcc-10/changes.html
2021-04-10 22:09:16 +00:00
mrg
c0a68be459 merge GCC 9.3 into gcc.old. 2021-04-09 23:14:15 +00:00
mrg
627f7eb200 second attempt in the right place:
import of GCC 9 into gcc.old in preparation for GCC 10.
2021-04-09 22:32:28 +00:00
simonb
0bace1390a Don't override TARGET_ASM_OUTPUT_SOURCE_FILENAME on MIPS for NetBSD -
use the default which includes a '.file "filename"' as the first name so
that the FILE symbols type is set to the real source file name.  Needed
to make ctfconvert work.

OK mrg@.
XXX needs to be fed back to GNU.
2021-03-29 01:33:12 +00:00
skrll
7a3cc25e41 Reapply the following change - Simon's first attempt had a missing ';'
release builds done for cobalt and evbmips64-eb

Provide an __eprol symbol in TEXT_START_SYMBOLS.  MIPS overrides
TEXT_START_SYMBOLS so it misses out on the default definition of
this that does provide an __eprol symbol.  Fixes linking of profiled
binaries.
2021-02-20 14:48:07 +00:00
simonb
be1353c20e Revert the MIPS __eprol change. Unintended fallout that doesn't appear
easy to fix so far.
2021-02-20 02:47:21 +00:00
simonb
9963f6aef1 Provide an __eprol symbol in TEXT_START_SYMBOLS. MIPS overrides
TEXT_START_SYMBOLS so it misses out on the default definition of
this that does provide an __eprol symbol.  Fixes linking of profiled
binaries.

OK: christos@
2021-02-19 03:42:02 +00:00
fcambus
e679da2743 Fix typo in the comments of local binutils patches: s/Servguard/Segvguard. 2021-02-02 21:45:39 +00:00
fcambus
0df8ae717b Fix typos in the comments of local binutils patches: it's ILP32, not IPL32. 2021-02-01 18:36:32 +00:00
martin
95f08802a7 Initialize namelen 2020-12-14 12:34:07 +00:00
rin
c85c1127ef Add some precautions for platforms without PT_STEP support.
"nat/gdb_ptrace.h" defines PT_STEP as 9, if it is not defined. nat-ptrace.c
depends on this; inf_ptrace_target::resume() uses PT_STEP unconditionally
when its ``step'' argument is non-zero. Therefore,

- Add comment that nbsd-nat.c should include <sys/ptrace.h> directly,
  instead of "nat/gdb_ptrace.h".

- Add gdb_assert(step == 0) in nbsd_nat_target::resume() ifndef PT_STEP,
  before calling inf_ptrace_target::resume().
2020-12-14 02:05:07 +00:00
rin
9b9416d880 Revert previous as per request from kamil; now, arm/ptrace.h does not
expose unimplemented PT_STEP.
2020-12-14 02:01:03 +00:00
christos
ae9ebf6f0f Improve previous: generated names end with .[[:digits:]] so look for that
instead.
2020-12-13 16:50:47 +00:00
christos
cf7777a2e0 PR/55851: Martin Husemann: recognize <symbol>.part.<n> names
This is gross; perhaps we should hide them completely (not print them
in stack traces etc.)
2020-12-11 18:25:45 +00:00
christos
d8dceee84f fix aarch64 crossgdb 2020-12-11 18:23:25 +00:00
christos
22c0a8465b regen 2020-12-11 18:22:11 +00:00
martin
52d85f7124 Avoid an unused variable (breaking the build) 2020-12-10 16:07:26 +00:00
rin
93b94eb346 Fix armeb; CORE_ADDR is uint64_t but 2nd argument of raw_supply() is
expected to be the same size as PC. Therefore, PC was always read as
zero for big-endian.
2020-12-10 07:27:37 +00:00
rin
9e80800bb0 Fix arm, for which PT_STEP is defined but unimplemented.
XXX
Stop exposing PT_STEP to userland for arm?
2020-12-10 07:14:58 +00:00
christos
9d73d70e90 include gdbarch.h 2020-12-08 13:56:38 +00:00
christos
16f88d4a62 make function static (fixes crossgdb build, reported by martin@) 2020-12-07 20:28:53 +00:00
rin
393045b225 mknative for aarch64eb. 2020-12-07 08:31:05 +00:00
rin
db812a1d3b Add elf32-aarch64.c to DPSRCS and CLEANFILES. 2020-12-07 08:24:09 +00:00
christos
85d1299109 Don't descend to gdbserver for now 2020-12-06 15:00:25 +00:00
christos
2d450a0b24 fix powerpc 2020-12-06 14:26:40 +00:00
christos
9fd8799cb5 regen more mips and aarch64 2020-12-06 05:23:03 +00:00
christos
e5d758f832 fix sh3, regen some more 2020-12-06 04:08:51 +00:00
christos
20c7f62303 fix m68k, ppc, sparc, vax 2020-12-06 03:29:03 +00:00
christos
13f1e6e199 need -lpthread for sun2 2020-12-06 03:28:25 +00:00
christos
d52bc7250a fix hppa 2020-12-05 23:02:25 +00:00
christos
3909f68e34 fix arm build 2020-12-05 22:24:26 +00:00
christos
5275d28a1c fix alpha build. 2020-12-05 22:14:44 +00:00
christos
992125b748 fix and rege aarch64 2020-12-05 21:27:06 +00:00
christos
417fcb580b add aarch64 bits 2020-12-05 21:26:43 +00:00
rin
a3e196b030 gcc.old: Switch earmv6{,hf}eb to BE8, ported from gcc. 2020-12-01 02:39:48 +00:00