Commit Graph

1718 Commits

Author SHA1 Message Date
christos
18c79e7799 Add "Xhandle*" interrupt handling. 2018-04-23 14:53:07 +00:00
mrg
b5722a7e71 add missing cgraphunit.c dependancy on pass_manager.h. should fix report
from thorpej on current-users about missing pass-instances.def.
2018-04-19 22:01:27 +00:00
maya
ddc0f89203 Apply upstream commit:
From: ppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 27 Apr 2016 21:18:05 +0000
Subject: [PATCH] Reduce nesting of parentheses in conditionals generated by
 genattrtab

gcc/ChangeLog:

	* genattrtab.c (write_test_expr): New parameter EMIT_PARENS
	which defaults to true.  Emit an outer pair of parentheses only if
	EMIT_PARENS.  When continuing a chain of && or || (or & or |),
	don't emit parentheses for the right-hand operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235536

gcc/arm generates so many parens it hits a bracket depth limited which is
enforced by clang. This reduces the number of parens generated and avoids the
need to increase bracket depth.

Fixes PR toolchain/53178 properly.
2018-04-17 10:02:49 +00:00
christos
6f22688691 - merge conflicts for 2.30
- bump libraries
- regen for x86
2018-04-15 20:06:01 +00:00
christos
fc4f42693f 2018-01-10 Nick Clifton <nickc@redhat.com>
* config-ml.in: Sync with gcc sources.
	* config.guess: Likewise.
	* config.sub: Likewise.
	* configure.ac: Likewise.
	* configure: Regenerate.

2017-12-14  Nick Clifton  <nickc@redhat.com>

	* COPYING.LIBGLOSS: Update address of FSF in copyright notice.

2017-12-12  Stafford Horne  <shorne@gmail.com>

	* configure.ac: Remove logic adding gdb to noconfigsdirs for or1k.
	* configure: Regenerate.

2017-09-15  Nick Clifton  <nickc@redhat.com>

	* src-release.sh (LZIPPROG): New define.  Provides the name of the
	lzip program.
	(do_lz): New function.  Compresses a tarball using the lzip
	program.
	(do_compress): Add support for lzip compression.
	(usage): Mention -l option.
	(build_release): Support -l option to invoke lzip compression.

2017-09-15  Alan Modra  <amodra@gmail.com>

	* src-release.sh (do_proto_toplev): Revert last patch.  Enable or
	disable binutils, gas, gdb, gold, gprof, ld, libdecnumber, readline,
	and sim depending on $tool and $support_files.  Echo configure line.

2017-09-14  Matt Rice <ratmice@gmail.com>

	* src-release.sh (do_proto_toplev): Enable gold during release process.

2017-04-13  Andrew Jenner  <andrew@codesourcery.com>

	* config.sub: Sync with master version in config project.

2017-04-03  Andrew Jenner  <andrew@codesourcery.com>

	* config.sub: Handle ia16 in $basic_machine.

	bfd/
	* config.bfd: Handle ia16.

	gas/
	* configure.tgt: Handle ia16.

	ld/
	* configure.tgt: Handle ia16.

2017-03-22  Nick Clifton  <nickc@redhat.com>

	* config.sub: Sync with master version in config project.
	* config.guess: Likewise.

2017-01-23  Nick Clifton  <nickc@redhat.com>

	* configure.ac: Update year in copyright notice.
	Sync from FSF GCC mainline, bringing in the following patches.
	* Makefile.def: Likewise.
	* Makefile.tpl: Likewise.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

	2016-12-21  Jakub Jelinek  <jakub@redhat.com>

	* configure.ac: Don't bootstrap libmpx unless --with-build-config
	includes bootstrap-mpx.

	2016-12-01  Matthias Klose  <doko@ubuntu.com>

	* configure.ac: Don't use pkg-config to check for bdw-gc.

	2016-11-30  Matthias Klose  <doko@ubuntu.com>

	* Makefile.def: Remove reference to boehm-gc target module.
  	* configure.ac: Include pkg.m4, check for --with-target-bdw-gc
	options and for the bdw-gc pkg-config module.

	2016-11-15  Matthias Klose  <doko@ubuntu.com>

	* config-ml.in: Remove references to GCJ.
	* configure.ac: Likewise.

	2016-09-30  Jakub Jelinek  <jakub@redhat.com>

	* configure.ac: Add target-libffi to target_libraries.
	Readd libgcj target disablings, modified to only target-libffi.
	Readd target addition of go to unsupported languages.

	2016-09-30  Andrew Haley  <aph@redhat.com>

	* Makefile.def: Remove libjava.
	* Makefile.tpl: Likewise.
	* configure.ac: Likewise.

	2016-09-26  Anton Kolesov  <Anton.Kolesov@synopsys.com>

	* configure.ac: Disable "sim" directory for arc*-*-*.

	2016-09-12  Maciej W. Rozycki  <macro@imgtec.com>

	* configure.ac: Check for the minimum in-tree MPFR version
	handled.

2016-12-31  Alan Modra  <amodra@gmail.com>

	* config.sub: Import from upstream.

2016-12-08  Alan Modra  <amodra@gmail.com>

	* configure: Regenerate.

2016-12-02  Josh Conner  <joshconner@google.com>

	* configure.ac: Add fuchsia to targets that use ELF.
	* configure: Regenerated.

2016-11-07  Doug Evans  <dje@google.com>

	* config.sub: Sync with upstream version 2016-11-03.
	git://git.sv.gnu.org/config.git
	* config.guess: Sync with upstream version 2016-10-02.

2016-09-27  Simon Marchi  <simon.marchi@polymtl.ca>

	* .gitignore: Add archives and make stamps.

2016-07-20  Yan-Ting Lin  <currygt52@gmail.com>

	* configure.ac (nds32*-*-*): Remove entry to enable gdb.
	* configure: Regenerated.
2018-04-14 22:17:01 +00:00
christos
16dce51364 readd files. 2018-04-14 17:52:51 +00:00
christos
75fd0b742a add missing files 2018-04-14 15:49:37 +00:00
christos
3c709de22b no conflicts 2018-04-14 15:40:17 +00:00
christos
e058c83478 import current binutils. 2018-04-14 15:36:06 +00:00
mrg
875f3f406e apply the changes from GCC 6 / powerpc and netbsd-stdint.h
to make <stdatomic.h> work.
2018-04-14 08:09:46 +00:00
mrg
18eacdc36b fix some more missing depends issues. remove various wrong/old depends.
fixes issues i was able to trigger manually by building specific files.

more for PR#53137.
2018-04-13 01:14:19 +00:00
mrg
64f3b8c383 fix the hard coded depends list for insn-*. i pulled these out
of the generated .d files for a successful build.  i've tested
that at least one recent macppc build failure is fixed with this
change (namely, try building just insn-emit.o in this subdir),
but the pattern should fix anything else left in insn*.

this really should finally fix PR#53137.
2018-04-12 20:44:16 +00:00
christos
5504495f67 regen for netbsd-stdint.h inclusion 2018-04-08 15:11:25 +00:00
christos
2d0ff0b4eb include nbsd_tm_file for ppc netbsd so that we get netbsd-stdint.h so in
order to define __{U,}INT_LEAST{8,16,32,64}_{MAX,TYPE}__ part of which are
needed for stdatomic.h
2018-04-08 15:10:53 +00:00
mrg
568fe08d4a fix the grep pattern for inside a makefile. fixes build issue
reported by thorpej on tech-toolchain - we both found the same
fix around the same time.

XXX: kamil says solaris-type hosts will fail here as they need
XXX: 'egrep' not 'grep -E'.
2018-04-07 22:17:52 +00:00
mrg
ab8259cd20 pretty much everything depends upon insn-opinit.h via optabs-query.h
so set it in DPSRCS.  hopefully this fixes PR 53137.
2018-04-05 05:38:59 +00:00
mrg
1983f147ae apply some more vax -O0/-O1. this now builds. 2018-04-02 22:35:26 +00:00
mrg
aedee1a123 handle programs that have 3 outputs in a saner fashion.
hopefully fixes PR 53137.
2018-04-02 22:34:22 +00:00
maya
3f6bdae5df Add new predicate volatile_mem_operand and use it for jbbssi<mode>
Fixes PR port-vax/53039: GCC/VAX hits ICE building libstdc++

GCC wants to change the label and then doesn't recognise the
new insn, it believes it doesn't satisfy the memory_operand
predicate.

It appears the memory_operand predicate doesn't accept volatile
memory accesses during the RTL generation phase.

The predicate is from rs6000 code.

from krister
2018-04-02 17:45:23 +00:00
mrg
7032fd789a add the spectre mitigation options for x86:
-mindirect-branch=<choice>
  -mfunction-return=<choice>
  -mindirect-branch-register

the values for 'choice' are "keep" (default, existing behaviour),
"thunk", "thunk-inline", and "thunk-extern".

as taken from the Ubuntu port of these changes in their
ubuntu:gcc-5_5.5.0-8ubuntu1.diff.  i've also included the doc
updates that are missing from ubuntu from gcc itself.


i've tested both i386 and amd64 fairly heavily with these options
enabled in both kernels and userland, atf runs and hundreds of
package builds.

XXX: pullup-8 to gcc/ not gcc.old/
2018-03-28 19:24:52 +00:00
mrg
67e62e9db5 add the spectre mitigation options for x86:
-mindirect-branch=<choice>
  -mfunction-return=<choice>
  -mindirect-branch-register

the values for 'choice' are "keep" (default, existing behaviour),
"thunk", "thunk-inline", and "thunk-extern".

as taken from the Debian port of these changes in their
debian:gcc-6_6.3.0-18+deb9u1.diff.  i've also included the doc
updates that are missing from debian from gcc itself.


i've tested both i386 and amd64 fairly heavily with these options
enabled in both kernels and userland, atf runs and hundreds of
package builds.
2018-03-28 19:22:32 +00:00
joerg
4f6482b106 When trying to decide the status of a weak symbol, resolve any
indirectness first. In the case of various Qt5 libraries, __bss_start
ends up with a Qt5 version, but it has to be resolved first to match the
actual (implicit) definition. This fixes the root cause of pkg/53089.
2018-03-27 23:39:23 +00:00
mrg
7b319e81c3 fix the cleanfiles for hooks mechanism 2018-03-13 03:17:01 +00:00
christos
d9314bf1eb switch ppc64 from "long long" == int64 to "long" == int64 2018-03-05 00:19:41 +00:00
christos
0fd55fa7b9 Make the *int64 long long (32 bit) or long (64) bit. Now all those special
redefinitions could go away since this is the default behavior.
2018-03-05 00:17:09 +00:00
christos
9bf6fb1f8e _LP64 64 bit types are "long" not "long long". 2018-03-04 16:44:11 +00:00
mrg
924dadf563 fix some types of netbsd arm builds. 2018-02-25 01:05:09 +00:00
mrg
a23ad621f4 remove this obsolete file that has a lot of dated info from
about the time we started switching some ports to GCC 5.3.
2018-02-23 01:01:22 +00:00
mrg
7d1f9b1bbb regen ppc64 mknative gcc 6 files with biarch support. 2018-02-22 22:25:16 +00:00
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
a3a22b2ed2 we now has _UC_MACHINE_FP. 2018-02-15 19:02:06 +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