X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fcompiler.h;h=b5d02466dcb7c1ddf602e3fe927303e86251399b;hb=62b7d6a20be776ebd070d9c3fc9f62e5a541b71b;hp=a7e91bfec1f805b35c8f2c6d15608fcf556bbc68;hpb=e4ef4d0f708651807d91bd92d7ab92c1b5c6d675;p=pspp diff --git a/src/libpspp/compiler.h b/src/libpspp/compiler.h index a7e91bfec1..b5d02466dc 100644 --- a/src/libpspp/compiler.h +++ b/src/libpspp/compiler.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010, 2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -87,4 +87,15 @@ #define SENTINEL(IDX) #endif + +/* This attribute indicates that the function should be compiled + with the specified LEVEL, regardless of what has been specified + on the command line */ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 4) +#define OPTIMIZE(LEVEL) ATTRIBUTE ((optimize(LEVEL))) +#else +#define OPTIMIZE(LEVEL) +#endif + + #endif /* compiler.h */