Line
Link Here
|
0 |
-- gcc-4.7.1/libitm/config/x86/x86_avx.cc |
0 |
++ gcc-4.7.1/libitm/config/x86/x86_avx.cc |
Lines 29-35
Link Here
|
29 |
|
29 |
|
30 |
extern "C" { |
30 |
extern "C" { |
31 |
|
31 |
|
32 |
#ifndef HAVE_AS_AVX |
32 |
#if !defined(HAVE_AS_AVX) || !defined(__AVX__) |
33 |
// If we don't have an AVX capable assembler, we didn't set -mavx on the |
33 |
// If we don't have an AVX capable assembler, we didn't set -mavx on the |
34 |
// command-line either, which means that libitm.h defined neither this type |
34 |
// command-line either, which means that libitm.h defined neither this type |
35 |
// nor the functions in this file. Define the type and unconditionally |
35 |
// nor the functions in this file. Define the type and unconditionally |
Lines 40-46
Link Here
|
40 |
// Re-define the memcpy implementations so that we can frob the |
40 |
// Re-define the memcpy implementations so that we can frob the |
41 |
// interface to deal with possibly missing AVX instruction set support. |
41 |
// interface to deal with possibly missing AVX instruction set support. |
42 |
|
42 |
|
43 |
#ifdef HAVE_AS_AVX |
43 |
#if defined(HAVE_AS_AVX) && defined(__AVX__) |
44 |
#define RETURN(X) return X |
44 |
#define RETURN(X) return X |
45 |
#define STORE(X,Y) X = Y |
45 |
#define STORE(X,Y) X = Y |
46 |
#define OUTPUT(T) _ITM_TYPE_##T |
46 |
#define OUTPUT(T) _ITM_TYPE_##T |