Merge remote-tracking branch 'public/pr/1810' into development

This commit is contained in:
Simon Butcher 2018-07-24 12:12:27 +01:00
commit bdf80d0953
2 changed files with 19 additions and 4 deletions

View file

@ -56,7 +56,7 @@
* This is done as the number of registers used in the assembly code doesn't * This is done as the number of registers used in the assembly code doesn't
* work with the -O0 option. * work with the -O0 option.
*/ */
#if defined(__i386__) && !defined(__OPTIMIZE__) #if defined(__i386__) && defined(__OPTIMIZE__)
#define MULADDC_INIT \ #define MULADDC_INIT \
asm( \ asm( \

View file

@ -751,15 +751,30 @@ if uname -a | grep -F Linux >/dev/null; then
fi fi
if uname -a | grep -F x86_64 >/dev/null; then if uname -a | grep -F x86_64 >/dev/null; then
msg "build: i386, make, gcc" # ~ 30s # Build once with -O0, to compile out the i386 specific inline assembly
msg "build: i386, make, gcc -O0 (ASan build)" # ~ 30s
cleanup cleanup
make CC=gcc CFLAGS='-Werror -Wall -Wextra -m32' cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl full
make CC=gcc CFLAGS='-O0 -Werror -Wall -Wextra -m32 -fsanitize=address'
msg "test: i386, make, gcc" msg "test: i386, make, gcc -O0 (ASan build)"
make test
# Build again with -O1, to compile in the i386 specific inline assembly
msg "build: i386, make, gcc -O1 (ASan build)" # ~ 30s
cleanup
cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl full
make CC=gcc CFLAGS='-O1 -Werror -Wall -Wextra -m32 -fsanitize=address'
msg "test: i386, make, gcc -O1 (ASan build)"
make test make test
msg "build: 64-bit ILP32, make, gcc" # ~ 30s msg "build: 64-bit ILP32, make, gcc" # ~ 30s
cleanup cleanup
cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl full
make CC=gcc CFLAGS='-Werror -Wall -Wextra -mx32' make CC=gcc CFLAGS='-Werror -Wall -Wextra -mx32'
msg "test: 64-bit ILP32, make, gcc" msg "test: 64-bit ILP32, make, gcc"