sim: include stdlib.h for atoi()

Make sure the files using atoi() include stdlib.h for its prototype.
These files were relying on it being included implicitly by others
which isn't guaranteed, and newer toolchains produce warnings.
This commit is contained in:
Mike Frysinger 2021-01-04 20:17:37 -05:00
parent 9416af6e7d
commit 3d52735bab
10 changed files with 23 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* wrapper.c: Include stdlib.h.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* iwmmxt.c: Include stdlib.h.

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <bfd.h>
#include <signal.h>

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* machs.c: Include stdlib.h.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* dv-bfin_dma.c: Include stdlib.h.

View File

@ -20,6 +20,8 @@
#include "config.h"
#include <stdlib.h>
#include "sim-main.h"
#include "gdb/sim-bfin.h"
#include "bfd.h"

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* gen-icache.c, igen.c: Include stdlib.h.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.

View File

@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <stdlib.h>
#include "misc.h"
#include "lf.h"

View File

@ -19,9 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <getopt.h>
#include <stdlib.h>
#include "misc.h"
#include "lf.h"

View File

@ -1,3 +1,7 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* gen-icache.c, igen.c: Include stdlib.h.
2021-01-04 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4 (ACX_BUGURL): Change http:// to https://.

View File

@ -17,6 +17,7 @@
*/
#include <stdlib.h>
#include "misc.h"
#include "lf.h"

View File

@ -17,9 +17,8 @@
*/
#include <getopt.h>
#include <stdlib.h>
#include "misc.h"
#include "lf.h"