Commit Graph

4784 Commits

Author SHA1 Message Date
christos e92bf7695e more fixes: builds and runs now, but coredumps after stackgap mprotect (mmap) 2014-10-17 21:44:47 +00:00
christos fe1a092fc9 avoid variable array allocation that gcc can't figure out. 2014-10-17 02:57:42 +00:00
christos 3c5783d32c merge conflicts. 2014-10-16 19:29:29 +00:00
christos 3c260e6046 Import wpa_supplicant and hostapd 2014-10-16 19:16:01 +00:00
christos aa4e64f22b NB this does not work yet, it is a work in progress. 2014-10-15 19:20:29 +00:00
christos abf6d4b3bf make this compile, pretending a lot that we are linux. 2014-10-15 18:44:49 +00:00
mrg 6ec53c318c regen mknative for gcc 4.8-2014-10-09. 2014-10-12 19:55:21 +00:00
mrg 5a5404318c more regen for complex etc, fixes. 2014-10-12 08:17:35 +00:00
mrg 2f7e65f195 merge GCC 4.8 2014-10-09, part 1. 2014-10-12 07:11:58 +00:00
mrg cd5ea10d63 initial import of GCC 4.8 snapshot 2014-10-09. this fixes at
least the below GCC PRs, among many other changes.

it also makes sh3 reasonably useful again.

	c++/60731
	c/61271
	c/61271
	c/61271
	debug/55794
	debug/60655
	debug/61923
	debug/63284
	debug/63342
	inline-asm/63282
	ipa/61986
	ipa/62015
	libobjc/61920
	libobjc/61920
	libstdc++/58962
	libstdc++/60734
	libstdc++/60966
	libstdc++/61946
	libstdc++/63449
	middle-end/61010
	middle-end/61045
	middle-end/62103
	rtl-optimization/57003
	rtl-optimization/60866
	rtl-optimization/60901
	rtl-optimization/61801
	rtl-optimization/62004
	rtl-optimization/62030
	target/49423
	target/52941
	target/61044
	target/61202
	target/61208
	target/61231
	target/61239
	target/61249
	target/61300
	target/61423
	target/61431
	target/61443
	target/61483
	target/61542
	target/61545
	target/61570
	target/61586
	target/61996
	target/62195
	target/62218
	target/63428
	tree-optimization/60196
	tree-optimization/61375
	tree-optimization/61383
	tree-optimization/61452
	tree-optimization/61684
	tree-optimization/61964
	tree-optimization/62073
	tree-optimization/62075
	tree-optimization/63189
	tree-optimization/63341
	tree-optimization/63375
2014-10-12 06:58:16 +00:00
mrg d00e30dba8 more regen for complex and more. only sun2 and ia64 missing now. 2014-10-11 21:28:43 +00:00
mrg d0e58b2d00 this doesn't need <execinfo.h>, which doesn't exist on older hosts. 2014-10-11 20:50:59 +00:00
mrg db518126d4 more regen for complex and more. 2014-10-11 19:55:59 +00:00
mrg 251814c8d8 more regen after complex and other fixes. 2014-10-11 09:15:04 +00:00
christos 2a88bcf165 regen 2014-10-10 20:57:48 +00:00
christos 58b7f19951 welcome to file-5.20 2014-10-10 20:15:01 +00:00
christos ebfd11214d import file-5.20; bug fixes and better image magic descriptions. 2014-10-10 20:08:15 +00:00
mrg 958e616745 bump libstdc++ minor due to new complex etc functions enabled. 2014-10-10 10:10:40 +00:00
mrg d1eae5409b regen gcc mknative files for new complex and more. 2014-10-10 10:05:34 +00:00
roy 77cf2730df Sync 2014-10-06 18:22:29 +00:00
roy 041ac88e49 Import dhcpcd-6.5.0 with the following changes:
*  Fix an unaligned access error on BeagleBone Black with FreeBSD.
     Thanks to Guy Yur for the patch.
  *  Remove the fast loop trying to up an interface which does not
     report carrier.
  *  Remove vis based encoding - instead validate against option type and
     stop at invalid [1]
     This removes all shell escaped encoding - dhcpcd will assume that IF
     the --script option is a shell, it will quote variables correctly.
     The stock dhcpcd-run-hooks does.
  *  dhcpcd -V now prints how the variables will be decoded.
  *  Changed some options in dhcpcd-definitions.conf to more sensible defaults.
  *  Don't daemonise on delegated address dad.
  *  Don't drop delegated reject route when forking.
  *  Fix IPv6 handling of link-local addresses on KAME stacks.
  *  Work on OpenBSD-5.6 without any special interface setup needed.
  *  Callout to handlecarrier when we don't have real carrier support and
     rely on looking at IFF_UP and IFF_RUNNING.
     This allows our hooks to know that dhcpcd thinks we have a carrier or not.

[1] DHCP option encodings defined in dhcpcd-definitions.conf
  *  domain (RFC3397)/dname (string) is strict domain name allowance
     (ie, [alnum] with _- (but not at the start or end))
  *  string is now printable ascii (1-127) until invalid
  *  ascii is all ascii (1-127) until invalid
  *  raw is all chars (1-255) until NUL
  *  binhex is a hex representation of the option including embedded NULs
  *  ssid is still escpaed octal because it's expected to be human readable
     AND can technically be all NUL
  *  everything else has strict option -> value encoding
2014-10-06 18:20:16 +00:00
uebayasi 9f8f12e89e Remove '#line ...' lines to not confuse mkdep(1). 2014-10-04 11:45:19 +00:00
apb 10fb7dcce0 Import tzdata2014h from ftp://ftp.iana.org/tz/releases/tzdata2014h.tar.gz
Summary of changes in tzdata2014h (2014-09-25 18:59:03 -0700):
  * America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.
  * Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
    not 1920-01-06.
  * Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Blantyre, Africa/Bujumbura,
    Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
    Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.
  * Changes affecting documentation and commentary.
2014-10-04 11:42:09 +00:00
apb db3976795f Add space before "]" in "if [ ... ]" to fix usage error
and test for existence of the correct file.
2014-10-03 12:41:41 +00:00
joerg 652ca0d126 When building with clang, use the C++11 feature for explicit template
specialisation.
2014-10-01 22:44:03 +00:00
joerg fa6ce9bf24 Explicitly request using the libstdc++ header path for clang, C++11 for
everything and disable the unsupported ABI tagging.
2014-10-01 22:27:33 +00:00
joerg e706f69c23 Building random.cc with clang requires -mrdrnd on x86. 2014-10-01 22:26:05 +00:00
joerg 840b578a49 Attribute target is not supported by clang, so don't use it.
Explicitly mark this function as non-inline to not defeat the feature
tests.
2014-10-01 22:18:19 +00:00
skrll 899022eaca Fix SHLIB_MAJOR to match xorg and fix linking against libxcb-sync which
broke kwin for me.
2014-10-01 09:30:58 +00:00
mlelstv 3e107524fa make seek test routine work with the configured block size. 2014-09-30 15:25:18 +00:00
mlelstv a5a0a2d000 the buffer is also used when there is no input 2014-09-30 15:24:15 +00:00
roy e3e82f6374 Sync 2014-09-27 11:00:07 +00:00
roy 40dcca62eb Import dhcpcd-6.4.7 with the following change:
*  Fix an impossible analyser error and correctly assign unset iaids.
2014-09-27 10:58:10 +00:00
roy edf064d2d0 Sync 2014-09-27 01:17:34 +00:00
roy 83f33c897c Import dhcpcd-6.4.6 with the following changes:
*  Detect removal of IPv6 routes
  *  Don't add link-local addresses to POINTOPOINT interfaces
  *  Don't discard expired DHCPv6 leases when dumping them
  *  If a DHCPv6 lease has no timers, expire it right away
  *  Report delegated addresses
  *  Call dhcpcd-run-hooks correctly when delegated prefixes already exist
  *  Fix a memory error when ia_* config exists but IPv6 is disabled
  *  Ensure servername and bootfile are safely exported
  *  Sanitise the following characters using svis(3) with VIS_CTYLE and
     VIS_OCTAL:
         | ^ & ; < > ( ) $ ` \ " ' <tab> <newline>
     This allows a non buggy unvis(1) to decode it 100% and stays compatible
     with how dhcpcd used to handle encoding on most platforms.
     For systems that supply svis(3) there is a code reduction, for systems
     that do not, a slight code increase. This change mitigates systems
     affected by bash CVE-2014-6271 and CVE-2014-7169.
2014-09-27 01:14:51 +00:00
christos 87adffacd1 The crypto-enabled dhclient command needs more libraries burned in so that
it does not depend on /usr/lib
XXX: pullup-7
2014-09-26 22:18:48 +00:00
matt 9113203c75 Really back the RISC-V changes to these files. 2014-09-24 01:16:04 +00:00
matt 180b02fefb Back-out recent inadverdent changes. 2014-09-23 20:35:11 +00:00
matt f23c31b5a7 When disassembling an auipc/jalr pair, print the address eventually being
called:
	auipc   t0,0x2b3
	jalr    t0,-616 # ffffffff802b2e98 <memset>
2014-09-20 04:53:19 +00:00
matt 6b3c8b5ddd RISC-V configury. 2014-09-19 17:23:57 +00:00
matt 1d163c8d1a RISC-V configury 2014-09-19 17:23:23 +00:00
matt 2db0c478e6 RISC-V (riscv32 & riscv64) binutils configury stuff. 2014-09-19 17:22:21 +00:00
matt 41b40da6f6 Add RISC-V support. 2014-09-19 17:19:52 +00:00
matt 3b6f53715b Add UCB RISC-V EM value 2014-09-19 08:59:38 +00:00
matt 2d5fc5945d Simplify or1k config.gcc configury bits. use gcc_cv_initfini_array=yes
to enable initfini.  remove hacked initfini support and use the common gcc
implementation.  Rerun native-gcc.
2014-09-19 00:24:28 +00:00
roy 06b615d894 Sync 2014-09-18 20:46:30 +00:00
roy 0d512cb656 Import dhcpcd-6.4.5 with the following changes:
*  Remove all instances of if_indextoname as we already know the index
  *  Check we have allocated IPv6 resources before checkings RA's
2014-09-18 20:43:55 +00:00
roy f1cbc45c57 Sync 2014-09-16 22:27:04 +00:00
roy f4cc42a9c0 Import dhcpcd-6.4.4 with the following changes:
*  Many bounds checking fixes from Tobias Stoeckmann
  *  Improve error when the authentication token cannot be found
  *  close the IPv4 specific UDP socket when done sending
  *  Implemented a write queue to the control sockets
  *  Only send interfaces to control sockets when in a BOUND state
  *  Add a sample controlgroup directive to dhcpcd.conf to make setup easier
  *  Add variables if_oneup and if_ipwaited so hook scripts know the overall
     state of dhcpcd better
  *  Pass RC_SVCNAME from enviromment to hooks so that a service hook can
     know it's name (may not be dhcpcd)
  *  Document every variable set for dhcpcd-run-hooks(8)
  *  Allow SSIDs with non printable characters to be used in ssid selection
     in dhcpcd.conf
  *  Add an unprivileged control socket so that normal users can obtain
     dhcpcd running state
2014-09-16 22:23:17 +00:00
joerg a1f9624941 Apply r1.2 from our GCC 4.8 version of the same file:
Kill the "throw()" on a forward declaration for posix_memalign (it does
not match our base declaration and may cause warnings).
2014-09-15 16:29:18 +00:00
riastradh 103f4fccb9 Switch default accelmethod back to UXA until we import a stabler SNA. 2014-09-11 17:26:30 +00:00
christos fdbbaf2d5a PR/49192: remove dup assignment. 2014-09-11 13:30:04 +00:00
christos afdd00276d Fix the index building which got completely broken after the last update. 2014-09-10 21:44:22 +00:00
tron 7edfdcc221 Make crontab(1) work again which got broken by the last commit. 2014-09-07 13:35:27 +00:00
joerg 5f34e14bbb Mark usage and quit as dead. 2014-09-07 13:34:12 +00:00
christos 734041fc2a store lastch to an int so that EOF is handled properly. 2014-09-06 12:18:49 +00:00
joerg 00e77a22af Install altivec.h for ppc64 too. 2014-09-06 01:02:21 +00:00
christos ae5dea0a14 WARNS=6 2014-09-05 21:32:37 +00:00
christos f8739668ae Rewind the file before we install it so that we can check it.
Before this fix, no checks were made and you could install crap.
XXX: pullup 7
2014-09-05 20:55:11 +00:00
matt cbbb2b6894 OR1K configury for NetBSD 2014-09-03 19:11:24 +00:00
matt 2137a61433 OR1K configury support for NetBSD 2014-09-03 19:10:36 +00:00
matt 230b95665b OR1K configury for NetBSD 2014-09-03 19:05:12 +00:00
matt 711e42594e Merge OR1K support from OR1K GCC 4.9 git tree and extend it to support NetBSD. 2014-09-03 19:02:53 +00:00
matt a45653d102 Merge in OR1K support from top of binutils-gdb GIT repository. This replaces
the existing support and most imporantly adds support for shared libraries.
2014-09-03 19:01:15 +00:00
apb e23e44ad12 Updated import script for tzdata2014g.
Aso added "cd" commands that were missed in the recent move from
src/share/zoneinfo to external/public-domain/tz.
2014-08-31 07:04:07 +00:00
apb acd39795c2 Import tzdata2014g from ftp://ftp.iana.org/tz/releases/tzdata2014g.tar.gz
Summary of changes in tzdata2014g (2014-08-28 12:31:23 -0700):
  * Turks & Caicos is switching from US eastern time to UTC-4 year-round,
    modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
  * Time in Russia or the USSR before 1926 or so has been corrected by
    a few seconds for several zones, and a few minutes for
    Asia/Yekaterinburg.
  * The Portuguese decree of 1911-05-26 took effect on 1912-01-01, not
    on the date of the decree.  This affects 1911 time stamps in
    Africa/Bissau, Africa/Luanda, Atlantic/Azores, and Atlantic/Madeira.
  * Lisbon's pre-1912 GMT offset was -0:36:45 (rounded from -0:36:44.68),
    not -0:36:32.
  * Asia/Dhaka ended DST on 2009-12-31 at 24:00, not 23:59.
  * A new file 'backzone' contains data which may appeal to
    connoisseurs of old time stamps, although it is out of scope for
    the tz database, is often poorly sourced, and contains some data
    that is known to be incorrect.
  * Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
  * Changes affecting documentation and commentary.
2014-08-31 06:46:20 +00:00
jmcneill 8c205f85ed cygwin64 support 2014-08-30 22:05:30 +00:00
christos addbc7f884 Cleanup the confusion with getting the pid of a sparc debugged process.
If the comments were correct, then this should be factored out to the
OS-specific native code, and the general code should remain sane.
2014-08-30 07:55:44 +00:00
matt 7c92a4b3cd Allow STT_GNU_IFUNC to be dynamic symbols 2014-08-26 17:03:51 +00:00
matt d885ef237f Allow STT_GNU_IFUNC to be a dynamic symbol. 2014-08-26 16:39:49 +00:00
matt 15c3780af4 Make sure we default to ELFv1. 2014-08-26 15:53:04 +00:00
aymeric f90e2756f0 missed setting TAG_IS_LINKED in a special case in my previous commit.
Bug reported by Brad Harder, thanks!
2014-08-26 15:19:38 +00:00
joerg 2d09463d91 Allow creation of indirection functions on all platforms, not just GNU
and FreeBSD.
2014-08-25 20:34:36 +00:00
christos d09cee68fb use the same dynamic sources trick to make sure that the first dependency
is the c source file so that IMPSRC gets set correctly.
2014-08-25 16:27:25 +00:00
christos 4e7b74dc34 change to no-deprecated-declarations 2014-08-25 11:48:01 +00:00
apb 4a34c3a382 Fix error in previous. The sed command really wants one long line. 2014-08-25 10:25:53 +00:00
apb 497135b74d Avoid splitting sed programs over multiple lines with
<backslash><newline><indentation>.  Use multiple -e options instead.
2014-08-24 18:27:16 +00:00
christos cfc621d8dd Depending on whitespace eating behavior is non portable (our make was
not compliant until today -- it ate all whitespace). Fix commands so
that they don't depend on that.
2014-08-24 16:39:21 +00:00
mrg 32b1e939d3 fix the sources list to match the upstream Makefile.am.
fixes problems reported by jdbaker.

XXX: pullup-7.
2014-08-24 06:13:36 +00:00
matt dfb3f06a5c Make -mabi=elfv2 work for powerpc64 2014-08-23 06:50:18 +00:00
matt 7532f48a67 Fix powerpc64 support for NetBSD.
Add __PPC_ISEL__ to indicate cpu support the isel instruction
2014-08-23 02:17:47 +00:00
aymeric 94f28557e3 In tagq_free(), fix the test checking whether a TAGQ should be removed from
its tailq. This required introducing a new flag in the TAGQ structure to
avoid reverting to poking under the hood of the queue.h API.

The concrete bug it solves is that using tags would make vi crash reliably
on exit.
2014-08-22 21:28:20 +00:00
matt 9205e77af0 add powerpc64 support 2014-08-22 15:27:50 +00:00
matt 9e064c8f61 Check the variable for RELOCATABLE_NEEDS_FIXUP 2014-08-22 06:52:37 +00:00
matt 80f59eea37 Simplify a little (avoid indirection) 2014-08-22 06:51:34 +00:00
mrg 975cc27cdd rerun mknative for hppa, m68k, sparc*, and vax. 2014-08-22 05:39:20 +00:00
martin 3b1bddb922 Restore ABI for fast_{u,}int_*_t to what we have used for thirteen years. 2014-08-21 15:25:41 +00:00
christos 2e03efc64b PR/49087: Jarmo Jaakkola: Make sure that the first dependency is the C source
file so ${.IMPSRC} gets set correctly.
2014-08-21 08:52:23 +00:00
matt 9e2fe0aaa3 i386 doesn't use subint fast{8,16} 2014-08-20 20:15:55 +00:00
matt 3ff6416ad7 Fix netbsd-stdint.h to allow char and short for int_fast8_t and int_fast16_t
and their corresponding unsigned variants.
2014-08-20 16:00:15 +00:00
joerg 1e46ecab88 Since GCC 4.5 doesn't support noexcept, don't pretend to support it by
using -std=c++0x. Just use the correct value for x.
2014-08-20 15:19:39 +00:00
christos 233c59f4d5 PR/45716: Anthony Mallet: emacs (various versions) dies on unwind stuff in gcc 4.8
Apply fix that got missed as this file got moved from dist/gcc to dist/libgcc:

Somehow emacs tries to unregister frame info for a symbol it did not register.
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.

XXX: pullup 7
2014-08-20 13:29:07 +00:00
wiz a9bf595198 Put local change in sorted location. 2014-08-18 07:12:47 +00:00
christos dace66f063 merge local changes 2014-08-18 06:57:25 +00:00
christos 69606e3f5c import latest gpl2 make 2014-08-18 06:46:46 +00:00
christos b65f2d484f ALLOW_FILTER_AAAA_ON_V4 has been renamed to ALLOW_FILTER_AAAA (John D. Baker) 2014-08-18 04:40:51 +00:00
joerg 5983af161f Add new option -P to print only the symbol table size. 2014-08-17 19:12:59 +00:00
matt 7b338264bf Rework so that the ctzsi builtin is supported. 2014-08-17 16:25:21 +00:00
martin 0d6e9da228 Make {u,}intptr_t "long" on both sparc and sparc64 (as the NetBSD headers
always did)
2014-08-15 09:25:25 +00:00
matt 13fd61cc78 Fix INTPTR_TYPE/UINTPTR_TYPE for n32. 2014-08-14 15:16:20 +00:00