disable optimization on functions building factories for many entries

this will speed up compilation and also avoid spurious warnings with gcc 4.4 and later
This commit is contained in:
Axel Kohlmeyer
2019-06-06 20:37:17 -04:00
parent 56e3b1d1f4
commit b53df3dd63
6 changed files with 34 additions and 9 deletions

View File

@ -53,12 +53,6 @@
#include "memory.h"
#include "error.h"
#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
#pragma GCC optimize ("no-var-tracking-assignments")
#endif
#endif
#include "lmpinstalledpkgs.h"
#include "lmpgitversion.h"
@ -902,7 +896,7 @@ void LAMMPS::destroy()
initialize lists of styles in packages
------------------------------------------------------------------------- */
void LAMMPS::init_pkg_lists()
void _noopt LAMMPS::init_pkg_lists()
{
pkg_lists = new package_styles_lists;
#define PACKAGE "UNKNOWN"
@ -1002,7 +996,7 @@ void LAMMPS::init_pkg_lists()
#include "packages_region.h"
#undef RegionStyle
#undef REGION_CLASS
}
}
bool LAMMPS::is_installed_pkg(const char *pkg)
{
@ -1045,7 +1039,7 @@ const char *LAMMPS::match_style(const char *style, const char *name)
help message for command line options and styles present in executable
------------------------------------------------------------------------- */
void LAMMPS::help()
void _noopt LAMMPS::help()
{
FILE *fp = screen;
const char *pager = NULL;