VPATH := $(SRCDIR)
CC := gcc
-CFLAGS := -D_FILE_OFFSET_BITS=64 -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
+CFLAGS := -D_FILE_OFFSET_BITS=64 -O2 -Wall -Werror -Wextra
CSRC := as.c coff.c cstr.c elks.c expr.c fixup.c frag.c hashtab.c intel.c kwd.c lex.c lib.c list.c listing.c ll.c macro.c process.c report.c section.c symbol.c vector.c
#ifndef _EXPR_H
#define _EXPR_H
-#include "stdint.h"
+#include <stdint.h>
enum expr_type {
}
-#include "inttypes.h"
+#include <inttypes.h>
int64_t machine_dependent_pcrel_from (struct fixup *fixup);
int machine_dependent_force_relocation_local (struct fixup *fixup);
#ifndef _FRAG_H
#define _FRAG_H
-#include "stdint.h"
+#include <stdint.h>
#define RELAX_TYPE_NONE_NEEDED 0
#define RELAX_TYPE_ALIGN 1
return ((number & 0xffff) == number);
}
-#if defined (NO_LONG_LONG)
-# define fits_in_signed_long(x) 1
-# define fits_in_unsigned_long(x) 1
-#else
static int fits_in_signed_long (int64_t number) {
return ((number >= -2147483647-1) && (number <= 2147483647));
}
static int fits_in_unsigned_long (uint64_t number) {
return ((number & 0xffffffff) == number);
}
-#endif
static struct operand_type smallest_imm_type (int64_t number) {
+++ /dev/null
-/******************************************************************************
- * @file inttypes.h
- *****************************************************************************/
-#include <limits.h>
-
-#if defined (NO_LONG_LONG)
-# define I64_FMT "l"
-#elif defined (_MSVC_)
-# define I64_FMT "I64"
-#elif defined (__PRI_64_LENGTH_MODIFIER__) /* Mac */
-# define I64_FMT __PRI_64_LENGTH_MODIFIER__
-#elif (defined (SIZEOF_LONG) && SIZEOF_LONG >= 8) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff
-# define I64_FMT "l"
-#else
-# define I64_FMT "ll"
-#endif
-
-#define PRId64 I64_FMT"d"
-#define PRIi64 I64_FMT"i"
-#define PRIo64 I64_FMT"o"
-#define PRIu64 I64_FMT"u"
-#define PRIx64 I64_FMT"x"
-#define PRIX64 I64_FMT"X"
-
}
-#include "inttypes.h"
+#include <inttypes.h>
void generate_listing (void) {
+++ /dev/null
-/******************************************************************************
- * @file stdint.h
- *****************************************************************************/
-#ifndef _STDINT_H_INCLUDED
-#ifndef _STDINT_H
-#ifndef _STDINT_H_
-
-#define _STDINT_H_INCLUDED
-#define _STDINT_H
-#define _STDINT_H_
-
-#include <limits.h>
-
-/* Add all data types (even though we don't use them) as the project seems to fail to build on some systems. */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-
-#if INT_MAX > 32767
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-#else
-typedef signed long int32_t;
-typedef unsigned long uint32_t;
-#endif
-
-#ifndef _INT64_T
-#define _INT64_T
-#if defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff
-typedef signed long int64_t;
-#else
-typedef signed long long int64_t;
-#endif
-#endif /* _INT64_T */
-
-#ifndef _UINT64_T
-#define _UINT64_T
-#if defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff
-typedef unsigned long uint64_t;
-#else
-typedef unsigned long long uint64_t;
-#endif
-#endif /* _UINT64_T */
-
-#endif /* _STDINT_H_ */
-#endif /* _STDINT_H */
-#endif /* _STDINT_H_INCLUDED */
-