https://bugs.kde.org/show_bug.cgi?id=381272

            Bug ID: 381272
           Summary: make check on ppc64 doesn't compile
                    test_isa_2_06_partx.c without VSX support
           Product: valgrind
           Version: 3.13 SVN
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: m...@klomp.org
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to