Import bc 3.2.4
This commit is contained in:
parent
253e722024
commit
7fe0a3f208
42
.travis.yml
42
.travis.yml
@ -1,42 +0,0 @@
|
|||||||
dist: bionic
|
|
||||||
|
|
||||||
language: c
|
|
||||||
|
|
||||||
arch:
|
|
||||||
- amd64
|
|
||||||
- arm64
|
|
||||||
- ppc64le
|
|
||||||
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- CODECOV_TOKEN="040ce7eb-5bc7-4040-8324-364f3ef4baa3"
|
|
||||||
- CFLAGS="-coverage -DBC_RAND_BUILTIN=0"
|
|
||||||
matrix:
|
|
||||||
- CONFIGURE_ARGS=-fHNPOg GEN_HOST=1 LONG_BIT=64
|
|
||||||
- CONFIGURE_ARGS=-bfHNPOg GEN_HOST=1 LONG_BIT=64
|
|
||||||
- CONFIGURE_ARGS=-dfHNPOg GEN_HOST=1 LONG_BIT=64
|
|
||||||
- CONFIGURE_ARGS=-fEHNPOg GEN_HOST=1 LONG_BIT=64
|
|
||||||
- CONFIGURE_ARGS=-bfEHNPOg GEN_HOST=1 LONG_BIT=64
|
|
||||||
- CONFIGURE_ARGS=-dfEHNPOg GEN_HOST=1 LONG_BIT=64
|
|
||||||
- CONFIGURE_ARGS=-fHNPOg GEN_HOST=1 LONG_BIT=32
|
|
||||||
- CONFIGURE_ARGS=-bfHNPOg GEN_HOST=1 LONG_BIT=32
|
|
||||||
- CONFIGURE_ARGS=-dfHNPOg GEN_HOST=1 LONG_BIT=32
|
|
||||||
- CONFIGURE_ARGS=-fEHNPOg GEN_HOST=1 LONG_BIT=32
|
|
||||||
- CONFIGURE_ARGS=-bfEHNPOg GEN_HOST=1 LONG_BIT=32
|
|
||||||
- CONFIGURE_ARGS=-dfEHNPOg GEN_HOST=1 LONG_BIT=32
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- sudo apt-get install -y dc
|
|
||||||
- pip install --user codecov
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- curl -o tests/bc/scripts/timeconst.bc https://raw.githubusercontent.com/torvalds/linux/master/kernel/time/timeconst.bc
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
||||||
|
|
||||||
script:
|
|
||||||
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./configure.sh "$CONFIGURE_ARGS" && make -j4 && make -j4 test ; fi
|
|
@ -29,7 +29,7 @@
|
|||||||
#
|
#
|
||||||
.POSIX:
|
.POSIX:
|
||||||
|
|
||||||
VERSION = 3.2.3
|
VERSION = 3.2.4
|
||||||
|
|
||||||
SRC = %%SRC%%
|
SRC = %%SRC%%
|
||||||
OBJ = %%OBJ%%
|
OBJ = %%OBJ%%
|
||||||
|
7
NEWS.md
7
NEWS.md
@ -1,5 +1,12 @@
|
|||||||
# News
|
# News
|
||||||
|
|
||||||
|
## 3.2.4
|
||||||
|
|
||||||
|
This is a production release that fixes a warning on `gcc` 6 or older, which
|
||||||
|
does not have an attribute that is used.
|
||||||
|
|
||||||
|
Users do ***NOT*** need to upgrade if they don't use `gcc` 6 or older.
|
||||||
|
|
||||||
## 3.2.3
|
## 3.2.3
|
||||||
|
|
||||||
This is a production release that fixes a bug in `gen/strgen.sh`. I recently
|
This is a production release that fixes a bug in `gen/strgen.sh`. I recently
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
# `bc`
|
# `bc`
|
||||||
|
|
||||||
[![Build Status][13]][14]
|
|
||||||
[![codecov][15]][16]
|
|
||||||
[![Coverity Scan Build Status][17]][18]
|
[![Coverity Scan Build Status][17]][18]
|
||||||
|
|
||||||
***WARNING: This project has moved to [https://git.yzena.com/][20] for [these
|
***WARNING: This project has moved to [https://git.yzena.com/][20] for [these
|
||||||
@ -302,8 +300,6 @@ tarballs.
|
|||||||
Files:
|
Files:
|
||||||
|
|
||||||
.gitignore The git ignore file (maintainer use only).
|
.gitignore The git ignore file (maintainer use only).
|
||||||
.travis.yml The Travis CI file (maintainer use only).
|
|
||||||
codecov.yml The Codecov file (maintainer use only).
|
|
||||||
configure A symlink to configure.sh to make packaging easier.
|
configure A symlink to configure.sh to make packaging easier.
|
||||||
configure.sh The configure script.
|
configure.sh The configure script.
|
||||||
functions.sh A script with functions used by other scripts.
|
functions.sh A script with functions used by other scripts.
|
||||||
@ -339,10 +335,6 @@ Folders:
|
|||||||
[10]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
[10]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
||||||
[11]: http://semver.org/
|
[11]: http://semver.org/
|
||||||
[12]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html
|
[12]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html
|
||||||
[13]: https://travis-ci.com/gavinhoward/bc.svg?branch=master
|
|
||||||
[14]: https://travis-ci.com/gavinhoward/bc
|
|
||||||
[15]: https://codecov.io/gh/gavinhoward/bc/branch/master/graph/badge.svg
|
|
||||||
[16]: https://codecov.io/gh/gavinhoward/bc
|
|
||||||
[17]: https://img.shields.io/coverity/scan/16609.svg
|
[17]: https://img.shields.io/coverity/scan/16609.svg
|
||||||
[18]: https://scan.coverity.com/projects/gavinhoward-bc
|
[18]: https://scan.coverity.com/projects/gavinhoward-bc
|
||||||
[19]: ./manuals/benchmarks.md
|
[19]: ./manuals/benchmarks.md
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
ignore:
|
|
||||||
- "src/history/history.c"
|
|
||||||
- "gen/strgen.c"
|
|
@ -166,7 +166,11 @@ typedef enum BcErr {
|
|||||||
#endif // __STDC_VERSION__
|
#endif // __STDC_VERSION__
|
||||||
|
|
||||||
#if defined(__clang__) || defined(__GNUC__)
|
#if defined(__clang__) || defined(__GNUC__)
|
||||||
|
#if defined(__has_attribute) && __has_attribute(fallthrough)
|
||||||
#define BC_FALLTHROUGH __attribute__((fallthrough));
|
#define BC_FALLTHROUGH __attribute__((fallthrough));
|
||||||
|
#else // defined(__has_attribute) && __has_attribute(fallthrough)
|
||||||
|
#define BC_FALLTHROUGH
|
||||||
|
#endif // defined(__has_attribute) && __has_attribute(fallthrough)
|
||||||
#else // defined(__clang__) || defined(__GNUC__)
|
#else // defined(__clang__) || defined(__GNUC__)
|
||||||
#define BC_FALLTHROUGH
|
#define BC_FALLTHROUGH
|
||||||
#endif //defined(__clang__) || defined(__GNUC__)
|
#endif //defined(__clang__) || defined(__GNUC__)
|
||||||
|
@ -573,8 +573,8 @@ if [ "$run_tests" -ne 0 ]; then
|
|||||||
printf '\n'
|
printf '\n'
|
||||||
printf 'Then run the GitHub release script as follows:\n'
|
printf 'Then run the GitHub release script as follows:\n'
|
||||||
printf '\n'
|
printf '\n'
|
||||||
printf ' <github_release> %s .travis.yml codecov.yml release.sh \\\n' "$version"
|
printf ' <github_release> %s release.sh RELEASE.md\\\n' "$version"
|
||||||
printf ' RELEASE.md tests/afl.py tests/radamsa.sh tests/radamsa.txt tests/randmath.py \\\n'
|
printf ' tests/afl.py tests/radamsa.sh tests/radamsa.txt tests/randmath.py \\\n'
|
||||||
printf ' tests/bc/scripts/timeconst.bc\n'
|
printf ' tests/bc/scripts/timeconst.bc\n'
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user