Bug 381272

Summary: make check on ppc64 doesn't compile test_isa_2_06_partx.c without VSX support
Product: [Developer tools] valgrind Reporter: Mark Wielaard <mark>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.13 SVN   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mark Wielaard 2017-06-16 09:31:16 UTC
The #ifdef HAS_VSX guard is wrongly placed. It makes the standard include headers not be used. Causing:

gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include -I../../../coregrind -I../../../include -I../../../VEX/pub -I../../../VEX/pub -DVGA_ppc64be=1 -DVGO_linux=1 -DVGP_ppc64be_linux=1 -DVGPV_ppc64be_linux_vanilla=1   -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector   -m64  -Winline -Wall -O -g -mregnames  -m64 -DHAS_ALTIVEC   -MT test_isa_2_06_part3-test_isa_2_06_part3.o -MD -MP -MF .deps/test_isa_2_06_part3-test_isa_2_06_part3.Tpo -c -o test_isa_2_06_part3-test_isa_2_06_part3.o `test -f 'test_isa_2_06_part3.c' || echo './'`test_isa_2_06_part3.c
test_isa_2_06_part3.c: In function ‘usage’:
test_isa_2_06_part3.c:1611: warning: implicit declaration of function ‘fprintf’
test_isa_2_06_part3.c:1611: warning: incompatible implicit declaration of built-in function ‘fprintf’
test_isa_2_06_part3.c:1611: error: ‘stderr’ undeclared (first use in this function)
test_isa_2_06_part3.c:1611: error: (Each undeclared identifier is reported only once
test_isa_2_06_part3.c:1611: error: for each function it appears in.)
make[5]: *** [test_isa_2_06_part3-test_isa_2_06_part3.o] Error 1

Moving the #include HAS_VSX below the standard includes makes the tests compile.
Comment 1 Mark Wielaard 2017-06-16 09:33:49 UTC
valgrind svn r16450