Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
3235aad
Implement SipHash in Python
sipa Jun 27, 2016
71e3e37
Merge #8837: allow bitcoin-tx to parse partial transactions
laanwj Nov 21, 2016
0fc37e8
Merge #7562: Bump transaction version default to 2
laanwj Dec 15, 2016
b72f924
Merge #9376: Remove unused test files and references
laanwj Dec 21, 2016
17d375e
Merge #9436: test: Include tx data in EXTRA_DIST
Dec 28, 2016
7321bfd
Merge #8391: Consensus: Remove ISM
laanwj Aug 4, 2016
56ff71f
Update devnet to activate BIP34/BIP65/BIP66 immediately
codablock Jan 20, 2018
6132bfb
Use version 2 blocks for miner_tests
codablock Jan 20, 2018
88b9aa4
Merge #7871: Manual block file pruning.
laanwj Jan 11, 2017
819ea74
Merge #9507: Fix use-after-free in CTxMemPool::removeConflicts()
sipa Jan 11, 2017
a0438d5
Merge #9297: Various RPC help outputs updated
Jan 12, 2017
7dfcb15
Merge #9416: travis: make distdir before make
Jan 12, 2017
294b8f7
Merge #9520: Deprecate non-txindex getrawtransaction and better warning
Jan 12, 2017
cee8cf1
Merge #9518: Return height of last block pruned by pruneblockchain RPC
Jan 12, 2017
6584793
Merge #9472: Disentangle progress estimation from checkpoints and upd…
laanwj Jan 12, 2017
a0d089e
Merge #8883: Add all standard TXO types to bitcoin-tx
laanwj Jan 12, 2017
53820de
Remove SegWit related code in dash-tx
codablock Sep 21, 2017
74bfe0b
Merge #9261: Add unstored orphans with rejected parents to recentRejects
laanwj Jan 12, 2017
5b763fa
Merge #9468: [Depends] Dependency updates for 0.14.0
laanwj Jan 12, 2017
4408b2d
Merge #9222: Add 'subtractFeeFromAmount' option to 'fundrawtransaction'.
laanwj Jan 12, 2017
ad9b925
Merge #9490: Replace FindLatestBefore used by importmuti with FindEar…
sipa Jan 13, 2017
87229e0
Merge #9469: [depends] Qt 5.7.1
laanwj Jan 15, 2017
40dff10
Merge #9380: Separate different uses of minimum fees
laanwj Jan 16, 2017
2adb355
Add assumevalid testcase
codablock Sep 21, 2017
3bd155b
Merge #9561: Wake message handling thread when we receive a new block
sipa Jan 17, 2017
be63fb7
Merge #9508: Remove unused Python imports
Jan 18, 2017
197fbea
Merge #9512: Fix various things -fsanitize complains about
laanwj Jan 18, 2017
78a7a9f
Merge #9552: Add IPv6 support to qos.sh
laanwj Jan 19, 2017
3f360d3
Merge #9542: Docs: Update CONTRIBUTING.md
laanwj Jan 19, 2017
a84f8da
Merge #9498: Basic CCheckQueue Benchmarks
laanwj Jan 19, 2017
f8b880f
Merge #9535: Split CNode::cs_vSend: message processing and message se…
laanwj Jan 19, 2017
36109e0
Merge #9377: fundrawtransaction: Keep change-output keys by default, …
laanwj Jan 20, 2017
c431a7f
trivial: squash missing field 'argNames' initializer warning in qt tests
laanwj Jan 20, 2017
cd04ccd
Merge #9554: [test] Avoid potential NULL pointer dereference in addrm…
Jan 22, 2017
6bc16a6
Merge #9610: [Trivial] Grammar and typo correction (laudaa)
Jan 22, 2017
9ba8a31
Merge #9583: Move wallet callbacks into cs_main (this effectively rev…
laanwj Jan 23, 2017
96b4910
Merge #9607: Remove redundant semicolons in Python code
laanwj Jan 23, 2017
119c3fe
Merge #9516: Bug-fix: listsinceblock: use fork point as reference for…
laanwj Jan 23, 2017
3b2a26c
Merge #9596: [bugfix] save feeDelta instead of priorityDelta in DumpM…
sipa Jan 23, 2017
dc523a1
Merge #9371: Notify on removal
laanwj Jan 24, 2017
ef6297c
Merge #9617: [Trivial] Update license year range to 2017
laanwj Jan 24, 2017
ccd81a0
Merge #9624: [Trivial] fix logging typo in FlushStateToDisk()
jonasschnelli Jan 24, 2017
5a84b27
Merge #9628: qa: Increase a sync_blocks timeout in pruning.py
Jan 26, 2017
e09d5db
Merge #9574: [depends] Fix QT build on OSX
laanwj Jan 26, 2017
6070cf1
Merge #9519: Exclude RBF replacement txs from fee estimation
laanwj Jan 26, 2017
007dc59
Merge #9637: [Qt] fix transaction details output-index to reflect vou…
laanwj Jan 27, 2017
edf3a00
Merge #9638: qa: Actually test assertions in pruning.py
laanwj Jan 27, 2017
660c027
Merge #9510: [trivial] Fix typos in comments
Jan 29, 2017
a757261
Merge #9646: depends: Fix cross build for qt5.7
laanwj Jan 30, 2017
dd5ccf1
Merge #9406: Re-enable a blank v1 Tx JSON test
Dec 23, 2016
4f6de16
Merge #9525: test: Include tx data in EXTRA_DIST
Jan 12, 2017
2cdafa0
Merge #9671: Fix super-unlikely race introduced in 236618061a445d2cb1…
laanwj Feb 4, 2017
cd0c910
Use new data structures for devnet checkpointData/chainTxData
codablock Jan 19, 2018
9e13bb3
Fix transaction_tests.cpp
codablock Jan 19, 2018
771c56a
Fix new bitcoin-util-tests
codablock Jan 19, 2018
228d774
Fix use of distdir and docker build dir
codablock Jan 19, 2018
86753a8
Add spaces around + in updateGlobalFeeVariables
codablock Jan 19, 2018
611cb6f
Fix new dash-tx tests
codablock Jan 20, 2018
6bee150
Require timestamps for importmulti keys
ryanofsky Feb 3, 2017
9bc404a
Add "setbip69enabled" RPC usable by tests only
codablock Jan 19, 2018
715be73
Fix listsinceblock.py
codablock Jan 19, 2018
3824192
Update testnet chainparams to use correct heights for BIP34/BIP65/BIP66
codablock Jan 20, 2018
4d65162
Update mainnet chainparams to use correct heights for BIP34/BIP65/BIP66
codablock Jan 20, 2018
ec81769
Remove segwit related dash-tx tests
codablock Jan 21, 2018
b97eecc
Fix review nits
codablock Jan 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ script:
- depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
- mkdir build && cd build
- ../configure $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
- ../configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
- make distdir VERSION=$HOST
- cd dashcore-$HOST
- ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
- make distdir
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
- if [ "$RUN_TESTS" = "true" ]; then travis_wait 30 make $MAKEJOBS check VERBOSE=1; fi
- if [ "$RUN_TESTS" = "true" ]; then qa/pull-tester/rpc-tests.py --coverage; fi
- cd ..
- if [ "$DOCKER_BUILD" = "true" ]; then BUILD_DIR=build ./docker/build-docker.sh; fi
- cd ../..
- if [ "$DOCKER_BUILD" = "true" ]; then BUILD_DIR=build/dashcore-$HOST ./docker/build-docker.sh; fi
after_script:
- echo $TRAVIS_COMMIT_RANGE
- echo $TRAVIS_COMMIT_LOG
Expand Down
23 changes: 22 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,28 @@ about Git.
- Create pull request

The title of the pull request should be prefixed by the component or area that
the pull request affects. Examples:
the pull request affects. Valid areas as:

- *Consensus* for changes to consensus critical code
- *Docs* for changes to the documentation
- *Qt* for changes to bitcoin-qt
- *Mining* for changes to the mining code
- *Net* or *P2P* for changes to the peer-to-peer network code
- *RPC/REST/ZMQ* for changes to the RPC, REST or ZMQ APIs
- *Scripts and tools* for changes to the scripts and tools
- *Tests* for changes to the bitcoin unit tests or QA tests
- *Trivial* should **only** be used for PRs that do not change generated
executable code. Notably, refactors (change of function arguments and code
reorganization) and changes in behavior should **not** be marked as trivial.
Examples of trivial PRs are changes to:
- comments
- whitespace
- variable names
- logging and messages
- *Utils and libraries* for changes to the utils and libraries
- *Wallet* for changes to the wallet code

Examples:

Consensus: Add new opcode for BIP-XXXX OP_CHECKAWESOMESIG
Net: Automatically create hidden service, listen on Tor
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2009-2016 The Bitcoin Core developers
Copyright (c) 2009-2017 The Bitcoin Core developers
Copyright (c) 2014-2017 The Dash Core developers

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
4 changes: 2 additions & 2 deletions build-aux/m4/bitcoin_qt.m4
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
])

BITCOIN_QT_CHECK(AC_CHECK_LIB([z] ,[main],,AC_MSG_WARN([zlib not found. Assuming qt has it built-in])))
BITCOIN_QT_CHECK(AC_CHECK_LIB([png] ,[main],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
BITCOIN_QT_CHECK(AC_CHECK_LIB([jpeg] ,[main],,AC_MSG_WARN([libjpeg not found. Assuming qt has it built-in])))
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([jpeg_create_decompress] ,[qtjpeg jpeg],,AC_MSG_WARN([libjpeg not found. Assuming qt has it built-in])))
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in])))
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([hb_ot_tags_from_script] ,[qtharfbuzzng harfbuzz],,AC_MSG_WARN([libharfbuzz not found. Assuming qt has it built-in or support is disabled])))
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Core] ,[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXCore not found)))
Expand Down
2 changes: 1 addition & 1 deletion contrib/debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Upstream-Contact: Satoshi Nakamoto <satoshin@gmx.com>
Source: https://github.com/bitcoin/bitcoin

Files: *
Copyright: 2009-2016, Bitcoin Core Developers
Copyright: 2009-2017, Bitcoin Core Developers
License: Expat
Comment: The Bitcoin Core Developers encompasses the current developers listed on bitcoin.org,
as well as the numerous contributors to the project.
Expand Down
4 changes: 2 additions & 2 deletions contrib/devtools/clang-format-diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def main():
line_count = int(match.group(3))
if line_count == 0:
continue
end_line = start_line + line_count - 1;
end_line = start_line + line_count - 1
lines_by_file.setdefault(filename, []).extend(
['-lines', str(start_line) + ':' + str(end_line)])

Expand All @@ -147,7 +147,7 @@ def main():
stderr=None, stdin=subprocess.PIPE)
stdout, stderr = p.communicate()
if p.returncode != 0:
sys.exit(p.returncode);
sys.exit(p.returncode)

if not args.i:
with open(filename) as f:
Expand Down
2 changes: 1 addition & 1 deletion contrib/devtools/github-merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# In case of a clean merge that is accepted by the user, the local branch with
# name $BRANCH is overwritten with the merged result, and optionally pushed.
from __future__ import division,print_function,unicode_literals
import os,sys
import os
from sys import stdin,stdout,stderr
import argparse
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion contrib/devtools/optimize-pngs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def content_hash(filename):
if extension.lower() == '.png':
print("optimizing "+file+"..."),
file_path = os.path.join(absFolder, file)
fileMetaMap = {'file' : file, 'osize': os.path.getsize(file_path), 'sha256Old' : file_hash(file_path)};
fileMetaMap = {'file' : file, 'osize': os.path.getsize(file_path), 'sha256Old' : file_hash(file_path)}
fileMetaMap['contentHashPre'] = content_hash(file_path)

pngCrushOutput = ""
Expand Down
1 change: 0 additions & 1 deletion contrib/devtools/test-security-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'''
from __future__ import division,print_function
import subprocess
import sys
import unittest

def write_testcode(filename):
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/example-linearize.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ output_file=/home/example/Downloads/bootstrap.dat
hashlist=hashlist.txt
genesis=00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6

# Maxmimum size in bytes of out-of-order blocks cache in memory
# Maximum size in bytes of out-of-order blocks cache in memory
out_of_order_cache_sz = 10000000

# Do we want the reverse the hash bytes coming from getblockhash?
Expand Down
6 changes: 0 additions & 6 deletions contrib/linearize/linearize-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@
#

from __future__ import print_function, division
try: # Python 3
import http.client as httplib
except ImportError: # Python 2
import httplib
import json
import struct
import re
import os
import os.path
import base64
import sys
import hashlib
import dash_hash
Expand Down
1 change: 0 additions & 1 deletion contrib/linearize/linearize-hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
except ImportError: # Python 2
import httplib
import json
import struct
import re
import base64
import sys
Expand Down
4 changes: 2 additions & 2 deletions contrib/qos/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Qos ###
### QoS (Quality of service) ###

This is a Linux bash script that will set up tc to limit the outgoing bandwidth for connections to the Dash network. It limits outbound TCP traffic with a source or destination port of 9999, but not if the destination IP is within a LAN (defined as 192.168.x.x).
This is a Linux bash script that will set up tc to limit the outgoing bandwidth for connections to the Dash network. It limits outbound TCP traffic with a source or destination port of 9999, but not if the destination IP is within a LAN.

This means one can have an always-on bitcoind instance running, and another local bitcoind/bitcoin-qt instance which connects to this node and receives blocks from it.
30 changes: 22 additions & 8 deletions contrib/qos/tc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013 The Bitcoin Core developers
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand All @@ -8,8 +8,10 @@ IF="eth0"
LINKCEIL="1gbit"
#limit outbound Dash protocol traffic to this rate
LIMIT="160kbit"
#defines the address space for which you wish to disable rate limiting
LOCALNET="192.168.0.0/16"
#defines the IPv4 address space for which you wish to disable rate limiting
LOCALNET_V4="192.168.0.0/16"
#defines the IPv6 address space for which you wish to disable rate limiting
LOCALNET_V6="fe80::/10"

#delete existing rules
tc qdisc del dev ${IF} root
Expand All @@ -28,6 +30,12 @@ tc class add dev ${IF} parent 1:1 classid 1:11 htb rate ${LIMIT} ceil ${LIMIT} p
tc filter add dev ${IF} parent 1: protocol ip prio 1 handle 1 fw classid 1:10
tc filter add dev ${IF} parent 1: protocol ip prio 2 handle 2 fw classid 1:11

if [ ! -z "${LOCALNET_V6}" ] ; then
# v6 cannot have the same priority value as v4
tc filter add dev ${IF} parent 1: protocol ipv6 prio 3 handle 1 fw classid 1:10
tc filter add dev ${IF} parent 1: protocol ipv6 prio 4 handle 2 fw classid 1:11
fi

#delete any existing rules
#disable for now
#ret=0
Expand All @@ -37,9 +45,15 @@ tc filter add dev ${IF} parent 1: protocol ip prio 2 handle 2 fw classid 1:11
#done

#limit outgoing traffic to and from port 9999. but not when dealing with a host on the local network
# (defined by $LOCALNET)
# --set-mark marks packages matching these criteria with the number "2"
# these packages are filtered by the tc filter with "handle 2"
# (defined by $LOCALNET_V4 and $LOCALNET_V6)
# --set-mark marks packages matching these criteria with the number "2" (v4)
# --set-mark marks packages matching these criteria with the number "4" (v6)
# these packets are filtered by the tc filter with "handle 2"
# this filter sends the packages into the 1:11 class, and this class is limited to ${LIMIT}
iptables -t mangle -A OUTPUT -p tcp -m tcp --dport 9999 ! -d ${LOCALNET} -j MARK --set-mark 0x2
iptables -t mangle -A OUTPUT -p tcp -m tcp --sport 9999 ! -d ${LOCALNET} -j MARK --set-mark 0x2
iptables -t mangle -A OUTPUT -p tcp -m tcp --dport 9999 ! -d ${LOCALNET_V4} -j MARK --set-mark 0x2
iptables -t mangle -A OUTPUT -p tcp -m tcp --sport 9999 ! -d ${LOCALNET_V4} -j MARK --set-mark 0x2

if [ ! -z "${LOCALNET_V6}" ] ; then
ip6tables -t mangle -A OUTPUT -p tcp -m tcp --dport 9999 ! -d ${LOCALNET_V6} -j MARK --set-mark 0x4
ip6tables -t mangle -A OUTPUT -p tcp -m tcp --sport 9999 ! -d ${LOCALNET_V6} -j MARK --set-mark 0x4
fi
3 changes: 1 addition & 2 deletions contrib/zmq/zmq_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

import array
import binascii
import zmq
import struct
Expand All @@ -25,7 +24,7 @@
msg = zmqSubSocket.recv_multipart()
topic = str(msg[0].decode("utf-8"))
body = msg[1]
sequence = "Unknown";
sequence = "Unknown"

if len(msg[-1]) == 4:
msgSequence = struct.unpack('<I', msg[-1])[-1]
Expand Down
12 changes: 9 additions & 3 deletions depends/config.guess
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright 1992-2016 Free Software Foundation, Inc.
# Copyright 1992-2017 Free Software Foundation, Inc.

timestamp='2016-05-15'
timestamp='2017-01-01'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -50,7 +50,7 @@ version="\
GNU config.guess ($timestamp)

Originally written by Per Bothner.
Copyright 1992-2016 Free Software Foundation, Inc.
Copyright 1992-2017 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Expand Down Expand Up @@ -1000,6 +1000,9 @@ EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
;;
mips64el:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
openrisc*:Linux:*:*)
echo or1k-unknown-linux-${LIBC}
exit ;;
Expand Down Expand Up @@ -1032,6 +1035,9 @@ EOF
ppcle:Linux:*:*)
echo powerpcle-unknown-linux-${LIBC}
exit ;;
riscv32:Linux:*:* | riscv64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
exit ;;
Expand Down
1 change: 0 additions & 1 deletion depends/config.site.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
CC="@CC@"
CXX="@CXX@"
OBJC="${CC}"
OBJCXX="${CXX}"
CCACHE=$depends_prefix/native/bin/ccache
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH

Expand Down
31 changes: 22 additions & 9 deletions depends/config.sub
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright 1992-2016 Free Software Foundation, Inc.
# Copyright 1992-2017 Free Software Foundation, Inc.

timestamp='2016-05-10'
timestamp='2017-01-01'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -67,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)

Copyright 1992-2016 Free Software Foundation, Inc.
Copyright 1992-2017 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Expand Down Expand Up @@ -117,7 +117,7 @@ case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
kopensolaris*-gnu* | \
kopensolaris*-gnu* | cloudabi*-eabi* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
Expand Down Expand Up @@ -301,6 +301,7 @@ case $basic_machine in
| open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pru \
| pyramid \
| riscv32 | riscv64 \
| rl78 | rx \
Expand Down Expand Up @@ -428,6 +429,7 @@ case $basic_machine in
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pru-* \
| pyramid-* \
| riscv32-* | riscv64-* \
| rl78-* | romp-* | rs6000-* | rx-* \
Expand Down Expand Up @@ -643,6 +645,14 @@ case $basic_machine in
basic_machine=m68k-bull
os=-sysv3
;;
e500v[12])
basic_machine=powerpc-unknown
os=$os"spe"
;;
e500v[12]-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
os=$os"spe"
;;
ebmon29k)
basic_machine=a29k-amd
os=-ebmon
Expand Down Expand Up @@ -1022,7 +1032,7 @@ case $basic_machine in
ppc-* | ppcbe-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
ppcle | powerpclittle)
basic_machine=powerpcle-unknown
;;
ppcle-* | powerpclittle-*)
Expand All @@ -1032,7 +1042,7 @@ case $basic_machine in
;;
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
ppc64le | powerpc64little)
basic_machine=powerpc64le-unknown
;;
ppc64le-* | powerpc64little-*)
Expand Down Expand Up @@ -1387,9 +1397,9 @@ case $os in
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
| -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
Expand All @@ -1399,7 +1409,7 @@ case $os in
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos* | -phoenix*)
| -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
Expand Down Expand Up @@ -1628,6 +1638,9 @@ case $basic_machine in
sparc-* | *-sun)
os=-sunos4.1.1
;;
pru-*)
os=-elf
;;
*-be)
os=-beos
;;
Expand Down
Loading