X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fcompiler.h;h=07b36b8e24d0eb9266c7dfbdc82f6bf6b69f61d0;hb=0ec7c606844768cfc501d6213ffa17ebdfda1bab;hp=d8b29e968965eaa4c96744928f1b92640cb32cf8;hpb=845f87804138053543fafe97994d18c78e65be23;p=pspp diff --git a/src/libpspp/compiler.h b/src/libpspp/compiler.h index d8b29e9689..07b36b8e24 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 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 @@ -84,7 +84,18 @@ #if __GNUC__ > 3 #define SENTINEL(IDX) ATTRIBUTE ((sentinel(IDX))) #else -#define SENTINEL +#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__ > 3 +#define OPTIMIZE(LEVEL) ATTRIBUTE ((optimize(LEVEL))) +#else +#define OPTIMIZE(LEVEL) +#endif + + #endif /* compiler.h */