Skip to content
  • Arnaldo Carvalho de Melo's avatar
    perf tools: Fix build by checking if extra warnings are supported · 065bef5a
    Arnaldo Carvalho de Melo authored
    
    
    The -Wstack-protector and -Wvolatile-register-var warnings, for
    instance, are not supported by gcc 3.4.6.
    
    So fix by doing the same check we already do for -fstack-protector-all.
    
    With this and the other patches in this series, perf builds unmodified
    on, for instance, RHEL4.
    
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Tom Zanussi <tzanussi@gmail.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    065bef5a