-mgeneral-regs-only changes preprocessor macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Say I have a header which defines a type conditionally based on the __SSE__ macro:

#ifdef __SSE__
    struct X { ... };
#else
    struct X { ... };
#endif

This header is included in multiple compilation units, some of which are compiled with -mgeneral-regs-only. I don't want any fpu/simd code there. Now this flag also undefines __SSE__, which I suppose makes sense, but it breaks the ABI between translation units. Is there some way to avoid generating fpu code without affecting preprocessor macros?



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux