isa-l/erasure_code
Yibo Cai 57eed2f02b aarch64: Cleanup build issues
This patch addresses one build failure and fixes several build warnings
for Arm (some for x86 too).

- Fix dynamic relocation link failure of ld.bfd 2.30 on Arm
  [log] relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `xor_gen_neon' which may bind externally can not be used when making a shared object

- Add arch dependent "other_tests" to exclude x86 specific tests on Arm
  [log] isa-l/erasure_code/gf_2vect_dot_prod_sse_test.c:181: undefined reference to `gf_2vect_dot_prod_sse'

- Check "fread" return value to fix gcc warnings on Arm and x86
  [log] warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
        fread(in_buf, 1, in_size, in_file);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Fix issue of comparing "char" with "int" on Arm. "char" is unsigned
  on Arm by default, an unsigned char will never equal to EOF(-1).
  [Log] programs/igzip_cli.c:318:31: warning: comparison is always true due to limited range of data type [-Wtype-limits]
        while (tmp != '\n' && tmp != EOF)
                                  ^~

- Include <stdlib.h> to several files to fix build warnings on Arm
  [log] igzip/igzip_inflate_perf.c:339:5: warning: incompatible implicit declaration of built-in function ‘exit’
        exit(0);
        ^~~~

Change-Id: I82c1b63316b634b3d398ffba2ff815679d9051a8
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
2019-03-20 10:15:40 +08:00
..
ec_base_aliases.c ec: Add base function aliases 2017-03-30 17:40:16 -07:00
ec_base.c ec: Remove references in lib source to types.h 2018-06-21 14:39:08 -07:00
ec_base.h Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
ec_highlevel_func.c ec: Remove references in lib source to types.h 2018-06-21 14:39:08 -07:00
ec_multibinary.asm multibinary: move WRT_OPT macro to common header 2017-08-18 14:24:57 -07:00
erasure_code_base_perf.c all: Revamp performance testing to be time based 2019-03-07 09:28:04 -07:00
erasure_code_base_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
erasure_code_perf.c all: Revamp performance testing to be time based 2019-03-07 09:28:04 -07:00
erasure_code_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
erasure_code_update_perf.c Fix a few c99isms in unit tests 2019-03-19 15:02:40 -07:00
erasure_code_update_test.c ec: Determine exact conditions where gf_gen_rs_matrix works 2017-06-26 04:11:12 -04:00
gen_rs_matrix_limits.c ec: Determine exact conditions where gf_gen_rs_matrix works 2017-06-26 04:11:12 -04:00
gf_2vect_dot_prod_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_dot_prod_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_dot_prod_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_dot_prod_sse_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_2vect_dot_prod_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_mad_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_mad_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_mad_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_2vect_mad_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_dot_prod_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_dot_prod_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_dot_prod_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_dot_prod_sse_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_3vect_dot_prod_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_mad_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_mad_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_mad_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_3vect_mad_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_dot_prod_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_dot_prod_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_dot_prod_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_dot_prod_sse_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_4vect_dot_prod_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_mad_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_mad_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_mad_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_4vect_mad_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_5vect_dot_prod_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_5vect_dot_prod_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_5vect_dot_prod_sse_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_5vect_dot_prod_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_5vect_mad_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_5vect_mad_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_5vect_mad_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_6vect_dot_prod_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_6vect_dot_prod_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_6vect_dot_prod_sse_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_6vect_dot_prod_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_6vect_mad_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_6vect_mad_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_6vect_mad_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_inverse_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_vect_dot_prod_1tbl.c all: Revamp performance testing to be time based 2019-03-07 09:28:04 -07:00
gf_vect_dot_prod_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_dot_prod_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_dot_prod_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_dot_prod_base_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_vect_dot_prod_perf.c all: Revamp performance testing to be time based 2019-03-07 09:28:04 -07:00
gf_vect_dot_prod_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_dot_prod_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_vect_mad_avx2.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_mad_avx512.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_mad_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_mad_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_mad_test.c ec: Change gf_mad_test to use multi-binary function 2018-10-09 17:55:56 -07:00
gf_vect_mul_avx.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_mul_base_test.c Format only patch from iindent and remove_whitespace 2017-06-26 04:10:47 -04:00
gf_vect_mul_perf.c all: Revamp performance testing to be time based 2019-03-07 09:28:04 -07:00
gf_vect_mul_sse.asm build: Fix for mac nasm lack of symbol types 2018-11-29 13:54:36 -07:00
gf_vect_mul_test.c test: Remove redundant arch-specific tests 2017-11-30 11:13:21 -07:00
Makefile.am aarch64: Cleanup build issues 2019-03-20 10:15:40 +08:00