diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 14:10:20 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-11 08:29:18 -0500 |
commit | a0c38f0d705129e14c025de814d7fd619edde650 (patch) | |
tree | a550de2d2a95cd36e89056ec4ab7e02384215d5b /sim/or1k | |
parent | 90e123dd600140ccc0731668e1256e1a55b04f8f (diff) | |
download | gdb-a0c38f0d705129e14c025de814d7fd619edde650.zip gdb-a0c38f0d705129e14c025de814d7fd619edde650.tar.gz gdb-a0c38f0d705129e14c025de814d7fd619edde650.tar.bz2 |
sim: or1k: fix include ordering with sim-main.h
Make sure config.h is included before C library headers otherwise the
later libiberty.h include gets confused about asprintf state leading
to warnings like:
common/sim-utils.c:330:9:
warning: implicit declaration of function 'vasprintf';
did you mean 'xvasprintf'? [-Wimplicit-function-declaration]
Diffstat (limited to 'sim/or1k')
-rw-r--r-- | sim/or1k/ChangeLog | 4 | ||||
-rw-r--r-- | sim/or1k/sim-main.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sim/or1k/ChangeLog b/sim/or1k/ChangeLog index 89cf42a..1b7e6e2 100644 --- a/sim/or1k/ChangeLog +++ b/sim/or1k/ChangeLog @@ -1,5 +1,9 @@ 2021-01-11 Mike Frysinger <vapier@gentoo.org> + * sim-main.h: Include config.h. + +2021-01-11 Mike Frysinger <vapier@gentoo.org> + * config.in, configure: Regenerate. * sim-if.c: Delete HAVE_STRING_H, HAVE_STRINGS_H, HAVE_STDLIB_H, and strings.h include. diff --git a/sim/or1k/sim-main.h b/sim/or1k/sim-main.h index f91a351..cac1abb 100644 --- a/sim/or1k/sim-main.h +++ b/sim/or1k/sim-main.h @@ -21,6 +21,8 @@ #define WITH_SCACHE_PBB 1 +#include "config.h" + #include "ansidecl.h" #include "or1k-desc.h" #include "sim-basics.h" |