Commit f207fcb2 authored by Kevin Bracey's avatar Kevin Bracey
Browse files

ROM build fixed for 64-bit stuff.

PCI added to swis.h
alloc.c updated to handle bigger slots (new code merged from ARM libraries)
Various 32-bit fixes for backtracing, and general trap handling.
Polite "Application is not 32-bit compatible" message.
Headers <stdint.h> and <inttypes.h> fixed to work in non-C99 mode.
txt changed to do new-style Delete behaviour

Version 5.44. Tagged as 'RISC_OSLib-5_44'
parent 45c70245
......@@ -346,8 +346,6 @@ ROM_OBJS =\
rm_o_rl.fileicon \
rm_o_rl.flex \
rm_o_rl.font \
rm_o_rl.fontlist \
rm_o_rl.fontselect \
rm_o_rl.heap \
rm_o_rl.magnify \
rm_o_rl.menu \
......@@ -516,13 +514,14 @@ aof.CLib: ${CLIB_ROM_OBJS}
# Final link for the ROM Image {using given base address}
#
rom_link_Entries:
${XTENT} syms.C_Entries kernel.s.k_entries clib.s.cl_entries
${XTENT} syms.C_Entries kernel.s.k_entries kernel.s.k_entries2 clib.s.cl_entries clib.s.cl_entry2
print rlib.swi { >> syms.C_Entries }
| C_Entries *currently* only adds _swi/_swix to RO2 symbols.
egrep -v "^(0x00000000 . )?_swix?$" < syms.C_Entries > syms.A_Entries
${XTENT} syms.A_Entries1 kernel.s.k_entries clib.s.cl_entries
egrep -v "^(0x00000000 . )?_swix?$" < syms.A_Entries1 > syms.A_Entries
${RM} syms.A_Entries1
rom_link_RISC_OSLib: ${ROM_OBJS} rom_link_Entries
${XTENT} syms.Entries kernel.s.k_entries clib.s.cl_entries rlib.s.rl_entries
${XTENT} syms.Entries kernel.s.k_entries kernel.s.k_entries2 clib.s.cl_entries clib.s.cl_entry2 rlib.s.rl_entries
print rlib.swi { >> syms.Entries }
${LD} ${LDFLAGS} -o linked.RISC_OSLib ${ROM_OBJS} \
-symdefs syms.C_Entries \
......@@ -533,7 +532,7 @@ rom_link_RISC_OSLib: ${ROM_OBJS} rom_link_Entries
-map > map.${TARGET}
rom_link_CLib: ${CLIB_ROM_OBJS} rom_link_Entries
${XTENT} syms.Entries kernel.s.k_entries clib.s.cl_entries
${XTENT} syms.Entries kernel.s.k_entries kernel.s.k_entries2 clib.s.cl_entries clib.s.cl_entry2
print rlib.swi { >> syms.Entries }
${LD} ${LDFLAGS} -o linked.CLib ${CLIB_ROM_OBJS} \
-symdefs syms.C_Entries \
......
......@@ -13,7 +13,7 @@
| limitations under the License.
|
Dir <Obey$Dir>
wimpslot -min 1000k
wimpslot -min 1536k
echo amu_machine export PHASE=hdrs
amu_machine export PHASE=hdrs
echo amu_machine export PHASE=libs
......
......@@ -49,6 +49,7 @@ IfThere Hdr:MakePSFont Then Echo <32> GET Hdr:MakePSFont { >> s.swioptions }
IfThere Hdr:MsgTrans Then Echo <32> GET Hdr:MsgTrans { >> s.swioptions }
IfThere Hdr:RISCOS Then Echo <32> GET Hdr:RISCOS { >> s.swioptions }
IfThere Hdr:Parallel Then Echo <32> GET Hdr:Parallel { >> s.swioptions }
IfThere Hdr:PCI Then Echo <32> GET Hdr:PCI { >> s.swioptions }
IfThere Hdr:PDriver Then Echo <32> GET Hdr:PDriver { >> s.swioptions }
IfThere Hdr:PDumper Then Echo <32> GET Hdr:PDumper { >> s.swioptions }
IfThere Hdr:Podule Then Echo <32> GET Hdr:Podule { >> s.swioptions }
......
;
; This file is automatically maintained by srccommit, do not edit manually.
; Last processed by srccommit version: 1.67.
; Last processed by srccommit version: 1.68.
;
GBLS Module_MajorVersion
GBLA Module_Version
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
GBLS Module_ApplicationDate2
GBLS Module_ApplicationDate4
GBLS Module_ApplicationDate
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.43"
Module_Version SETA 543
Module_MajorVersion SETS "5.44"
Module_Version SETA 544
Module_MinorVersion SETS ""
Module_Date SETS "12 Aug 2002"
Module_ApplicationDate2 SETS "12-Aug-02"
Module_ApplicationDate4 SETS "12-Aug-2002"
Module_Date SETS "15 Nov 2002"
Module_ApplicationDate SETS "15-Nov-02"
Module_ComponentName SETS "RISC_OSLib"
Module_ComponentPath SETS "RiscOS/Sources/Lib/RISC_OSLib"
Module_FullVersion SETS "5.43"
Module_HelpVersion SETS "5.43 (12 Aug 2002)"
Module_FullVersion SETS "5.44"
Module_HelpVersion SETS "5.44 (15 Nov 2002)"
END
/* (5.43)
/* (5.44)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.67.
* Last processed by srccommit version: 1.68.
*
*/
#define Module_MajorVersion_CMHG 5.43
#define Module_MajorVersion_CMHG 5.44
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 12 Aug 2002
#define Module_Date_CMHG 15 Nov 2002
#define Module_MajorVersion "5.43"
#define Module_Version 543
#define Module_MajorVersion "5.44"
#define Module_Version 544
#define Module_MinorVersion ""
#define Module_Date "12 Aug 2002"
#define Module_Date "15 Nov 2002"
#define Module_ApplicationDate2 "12-Aug-02"
#define Module_ApplicationDate4 "12-Aug-2002"
#define Module_ApplicationDate "15-Nov-02"
#define Module_ComponentName "RISC_OSLib"
#define Module_ComponentPath "RiscOS/Sources/Lib/RISC_OSLib"
#define Module_FullVersion "5.43"
#define Module_HelpVersion "5.43 (12 Aug 2002)"
#define Module_LibraryVersionInfo "5:43"
#define Module_FullVersion "5.44"
#define Module_HelpVersion "5.44 (15 Nov 2002)"
#define Module_LibraryVersionInfo "5:44"
This diff is collapsed.
......@@ -842,10 +842,10 @@ static void p_in(unsigned int pc)
void _backtrace(int why, int *address, _kernel_unwindblock *uwb)
{ /* all the messages in the following should go to stderr */
const unsigned int mask = (_kernel_processor_mode() & 0x1C) != 0 ? 0 : 0xFC000003;
const unsigned int psr_mask = (_kernel_processor_mode() & 0x1C) != 0 ? 0 : 0xFC000003;
FILE *err = stderr;
char *lang = _kernel_language(uwb->pc);
int cl_base, cl_limit;
unsigned cl_base, cl_limit;
_kernel_swi_regs r;
r.r[0] = 18;
......@@ -873,7 +873,7 @@ void _backtrace(int why, int *address, _kernel_unwindblock *uwb)
int *fp = (int *) uwb->fp;
_kernel_swi_regs r;
if (lang[0]=='C' && lang[1]==0) {
z = (int *)(fp[0] & 0x03fffffc);
z = (int *)(fp[0] &~ psr_mask);
/* Note that when I save pc in a STM instruction it points 12 beyond the */
/* instruction, not just 8! Unless it's a StrongARM or similar. */
r.r[0] = 0;
......@@ -908,14 +908,16 @@ void _backtrace(int why, int *address, _kernel_unwindblock *uwb)
_kernel_getmessage(" Arg%d: %#.8x %d", "C25"),
nargs--, v, v);
/* Indirect through addresses that might be legal... */
r.r[0] = (int)v;
r.r[1] = (int)v + 4 * 4 - 1;
if (!_kernel_swi_c(OS_ValidateAddress, &r, &r, &carry)) {
if (!carry && !(v & 3)) {
int *vp = (int *)v;
fprintf(err, " -> [%#.8x %#.8x %#.8x %#.8x]",
vp[0], vp[1], vp[2], vp[3]);
if (v && !(v & 3)) {
r.r[0] = (int)v;
r.r[1] = (int)v + 4 * 4 - 1;
if (!_kernel_swi_c(OS_ValidateAddress, &r, &r, &carry)) {
if (!carry) {
unsigned *vp = (unsigned *)v;
fprintf(err, " -> [%#.8x %#.8x %#.8x %#.8x]",
vp[0], vp[1], vp[2], vp[3]);
}
}
}
fputc('\n', err);
......@@ -929,9 +931,9 @@ void _backtrace(int why, int *address, _kernel_unwindblock *uwb)
break;
}
}
p_in(uwb->pc & ~mask);
p_in(uwb->pc & ~psr_mask);
if (name == 0)
{ if ((int)z >= cl_base && (int)z < cl_limit)
{ if ((unsigned)z >= cl_base && (unsigned)z < cl_limit)
_fprintf_lf(err, _kernel_getmessage("shared library function", "C26"));
else
_fprintf_lf(err, _kernel_getmessage("anonymous function", "C27"));
......@@ -939,7 +941,7 @@ void _backtrace(int why, int *address, _kernel_unwindblock *uwb)
else
_fprintf_lf(err, _kernel_getmessage("function %s", "C28"), name);
} else {
p_in(uwb->pc & ~mask);
p_in(uwb->pc & ~psr_mask);
if (lang==NULL) {
_fprintf_lf(err, _kernel_getmessage("unknown procedure", "C29"));
} else {
......
......@@ -72,4 +72,5 @@ C69:unspecified error
C70:unknown error
#{DictTokens}
C71:Calling standard no longer supported by C library
C71:Calling standard APCS-A no longer supported by C library
C72:Application is not 32-bit compatible
......@@ -15,9 +15,9 @@
#pragma force_top_level
#pragma include_only_once
/* inttypes.h: ISO 'C' (ISO/IEC 9899:1999) library header, section 7.8 */
/* Copyright (C) Element 14 Ltd. 1999 */
/* version 1.01 */
/* inttypes.h: ISO 'C' (9899:1999) library header, section 7.8 */
/* Copyright (C) Acorn Computers Ltd. 2002 */
/* version 1.02 */
#ifndef __inttypes_h
#define __inttypes_h
......@@ -29,167 +29,170 @@
#define PRId8 "d"
#define PRId16 "d"
#define PRId32 "d"
#define PRId64 "lld"
#define PRIdLEAST8 "d"
#define PRIdLEAST16 "d"
#define PRIdLEAST32 "d"
#define PRIdLEAST64 "lld"
#define PRIdFAST8 "d"
#define PRIdFAST16 "d"
#define PRIdFAST32 "d"
#define PRIdFAST64 "lld"
#define PRIdMAX "lld"
#define PRIdPTR "d"
#define PRIi8 "i"
#define PRIi16 "i"
#define PRIi32 "i"
#define PRIi64 "lli"
#define PRIiLEAST8 "i"
#define PRIiLEAST16 "i"
#define PRIiLEAST32 "i"
#define PRIiLEAST64 "lli"
#define PRIiFAST8 "i"
#define PRIiFAST16 "i"
#define PRIiFAST32 "i"
#define PRIiFAST64 "lli"
#define PRIiMAX "lli"
#define PRIiPTR "i"
#define PRIo8 "o"
#define PRIo16 "o"
#define PRIo32 "o"
#define PRIo64 "llo"
#define PRIoLEAST8 "o"
#define PRIoLEAST16 "o"
#define PRIoLEAST32 "o"
#define PRIoLEAST64 "llo"
#define PRIoFAST8 "o"
#define PRIoFAST16 "o"
#define PRIoFAST32 "o"
#define PRIoFAST64 "llo"
#define PRIoMAX "llo"
#define PRIoPTR "o"
#define PRIu8 "u"
#define PRIu16 "u"
#define PRIu32 "u"
#define PRIu64 "llu"
#define PRIuLEAST8 "u"
#define PRIuLEAST16 "u"
#define PRIuLEAST32 "u"
#define PRIuLEAST64 "llu"
#define PRIuFAST8 "u"
#define PRIuFAST16 "u"
#define PRIuFAST32 "u"
#define PRIuFAST64 "llu"
#define PRIuMAX "llu"
#define PRIuPTR "u"
#define PRIx8 "x"
#define PRIx16 "x"
#define PRIx32 "x"
#define PRIx64 "llx"
#define PRIxLEAST8 "x"
#define PRIxLEAST16 "x"
#define PRIxLEAST32 "x"
#define PRIxLEAST64 "llx"
#define PRIxFAST8 "x"
#define PRIxFAST16 "x"
#define PRIxFAST32 "x"
#define PRIxFAST64 "llx"
#define PRIxMAX "llx"
#define PRIxPTR "x"
#define PRIX8 "X"
#define PRIX16 "X"
#define PRIX32 "X"
#define PRIX64 "llX"
#define PRIXLEAST8 "X"
#define PRIXLEAST16 "X"
#define PRIXLEAST32 "X"
#define PRIXLEAST64 "llX"
#define PRIXFAST8 "X"
#define PRIXFAST16 "X"
#define PRIXFAST32 "X"
#define PRIXFAST64 "llX"
#define PRIXMAX "llX"
#define PRIXPTR "X"
#define SCNd8 "hhd"
#define SCNd16 "hd"
#define SCNd32 "d"
#define SCNd64 "lld"
#define SCNdLEAST8 "hhd"
#define SCNdLEAST16 "hd"
#define SCNdLEAST32 "d"
#define SCNdLEAST64 "lld"
#define SCNdFAST8 "hhd"
#define SCNdFAST8 "d"
#define SCNdFAST16 "d"
#define SCNdFAST32 "d"
#define SCNdFAST64 "lld"
#define SCNdMAX "lld"
#define SCNdPTR "d"
#define SCNi8 "hhi"
#define SCNi16 "hi"
#define SCNi32 "i"
#define SCNi64 "lli"
#define SCNiLEAST8 "hhi"
#define SCNiLEAST16 "hi"
#define SCNiLEAST32 "i"
#define SCNiLEAST64 "lli"
#define SCNiFAST8 "hhi"
#define SCNiFAST8 "i"
#define SCNiFAST16 "i"
#define SCNiFAST32 "i"
#define SCNiFAST64 "lli"
#define SCNiMAX "lli"
#define SCNiPTR "i"
#define SCNo8 "hho"
#define SCNo16 "ho"
#define SCNo32 "o"
#define SCNo64 "llo"
#define SCNoLEAST8 "hho"
#define SCNoLEAST16 "ho"
#define SCNoLEAST32 "o"
#define SCNoLEAST64 "llo"
#define SCNoFAST8 "hho"
#define SCNoFAST8 "o"
#define SCNoFAST16 "o"
#define SCNoFAST32 "o"
#define SCNoFAST64 "llo"
#define SCNoMAX "llo"
#define SCNoPTR "o"
#define SCNu8 "hhu"
#define SCNu16 "hu"
#define SCNu32 "u"
#define SCNu64 "llu"
#define SCNuLEAST8 "hhu"
#define SCNuLEAST16 "hu"
#define SCNuLEAST32 "u"
#define SCNuLEAST64 "llu"
#define SCNuFAST8 "hhu"
#define SCNuFAST8 "u"
#define SCNuFAST16 "u"
#define SCNuFAST32 "u"
#define SCNuFAST64 "llu"
#define SCNuMAX "llu"
#define SCNuPTR "u"
#define SCNx8 "hhx"
#define SCNx16 "hx"
#define SCNx32 "x"
#define SCNx64 "llx"
#define SCNxLEAST8 "hhx"
#define SCNxLEAST16 "hx"
#define SCNxLEAST32 "x"
#define SCNxLEAST64 "llx"
#define SCNxFAST8 "hhx"
#define SCNxFAST8 "x"
#define SCNxFAST16 "x"
#define SCNxFAST32 "x"
#define SCNxPTR "x"
#ifdef __stdint_ll
#define PRId64 "lld"
#define PRIdLEAST64 "lld"
#define PRIdFAST64 "lld"
#define PRIdMAX "lld"
#define PRIi64 "lli"
#define PRIiLEAST64 "lli"
#define PRIiFAST64 "lli"
#define PRIiMAX "lli"
#define PRIo64 "llo"
#define PRIoLEAST64 "llo"
#define PRIoFAST64 "llo"
#define PRIoMAX "llo"
#define PRIu64 "llu"
#define PRIuLEAST64 "llu"
#define PRIuFAST64 "llu"
#define PRIuMAX "llu"
#define PRIx64 "llx"
#define PRIxLEAST64 "llx"
#define PRIxFAST64 "llx"
#define PRIxMAX "llx"
#define PRIX64 "llX"
#define PRIXLEAST64 "llX"
#define PRIXFAST64 "llX"
#define PRIXMAX "llX"
#define SCNd64 "lld"
#define SCNdLEAST64 "lld"
#define SCNdFAST64 "lld"
#define SCNdMAX "lld"
#define SCNi64 "lli"
#define SCNiLEAST64 "lli"
#define SCNiFAST64 "lli"
#define SCNiMAX "lli"
#define SCNo64 "llo"
#define SCNoLEAST64 "llo"
#define SCNoFAST64 "llo"
#define SCNoMAX "llo"
#define SCNu64 "llu"
#define SCNuLEAST64 "llu"
#define SCNuFAST64 "llu"
#define SCNuMAX "llu"
#define SCNx64 "llx"
#define SCNxLEAST64 "llx"
#define SCNxFAST64 "llx"
#define SCNxMAX "llx"
#define SCNxPTR "x"
#endif
#endif
......@@ -197,18 +200,12 @@
/* Not actually in the C library yet */
typedef struct imaxdiv_t { intmax_t quot, rem; } imaxdiv_t;
#ifdef __cplusplus
extern "C" {
#endif
extern intmax_t imaxabs(intmax_t /*j*/);
extern imaxdiv_t imaxdiv(intmax_t /*numer*/, intmax_t /*denom*/);
extern intmax_t strtoimax(const char * restrict /*nptr*/,
char ** restrict /*endptr*/, int /*base*/);
extern uintmax_t strtoumax(const char * restrict /*nptr*/,
char ** restrict /*endptr*/, int /*base*/);
#ifdef __cplusplus
}
#endif
#endif /* 0 */
......
......@@ -17,101 +17,109 @@
/* stdint.h: ISO 'C' (9899:1999) library header, section 7.18 */
/* Copyright (C) Acorn Computers Ltd. 2002 */
/* version 1.02 */
/* version 1.03 */
#ifndef __stdint_h
#define __stdint_h
#if __STDC_VERSION__ < 199901
# error <stdint.h> can only be used in C99
#ifdef __STDC_VERSION__
# if __STDC_VERSION__ >= 199901
# define __stdint_ll
# endif
#endif
/* Types with exactly the specified width */
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef signed long long int64_t;
typedef unsigned char uint8_t;
typedef signed short int16_t;
typedef unsigned short uint16_t;
typedef signed int int32_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
/* The smallest types with at least the specified width */
typedef signed char int_least8_t;
typedef signed short int_least16_t;
typedef signed int int_least32_t;
typedef signed long long int_least64_t;
typedef unsigned char uint_least8_t;
typedef signed short int_least16_t;
typedef unsigned short uint_least16_t;
typedef signed int int_least32_t;
typedef unsigned int uint_least32_t;
typedef unsigned long long uint_least64_t;
/* The "fastest" types with at least the specified width */
typedef signed char int_fast8_t;
typedef signed int int_fast16_t; /* actually 32 bits */
typedef signed int int_fast8_t;
typedef unsigned int uint_fast8_t;
typedef signed int int_fast16_t;
typedef unsigned int uint_fast16_t;
typedef signed int int_fast32_t;
typedef signed long long int_fast64_t;
typedef unsigned char uint_fast8_t;
typedef unsigned int uint_fast16_t; /* actually 32 bits */
typedef unsigned int uint_fast32_t;
typedef unsigned long long uint_fast64_t;
/* Integer types capable of holding a "void *" pointer */
typedef signed int intptr_t;
typedef unsigned int uintptr_t;
#ifdef __stdint_ll
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
typedef signed long long int_least64_t;
typedef unsigned long long uint_least64_t;
typedef signed long long int_fast64_t;
typedef unsigned long long uint_fast64_t;
/* Integer types that can hold any value of any type */
typedef signed long long intmax_t;
typedef unsigned long long uintmax_t;
#endif
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
#define INT8_MIN (-128)
#define INT16_MIN (-32768)
#define INT32_MIN (~0x7FFFFFFF)
#define INT64_MIN (~0x7FFFFFFFFFFFFFFF)
#define INT8_MAX 127
#define INT16_MAX 32767
#define INT32_MAX 2147483647
#define INT64_MAX 9223372036854775807
#define UINT8_MAX 255
#define INT16_MIN (-32768)
#define INT16_MAX 32767
#define UINT16_MAX 65535
#define INT32_MIN (~0x7FFFFFFF)
#define INT32_MAX 2147483647
#define UINT32_MAX 4294967295u
#define UINT64_MAX 18446744073709551615u
#define INT_LEAST8_MIN (-128)
#define INT_LEAST16_MIN (-32768)
#define INT_LEAST32_MIN (~0x7FFFFFFF)
#define INT_LEAST64_MIN (~0x7FFFFFFFFFFFFFFF)
#define INT_LEAST8_MAX 127
#define INT_LEAST16_MAX 32767
#define INT_LEAST32_MAX 2147483647
#define INT_LEAST64_MAX 9223372036854775807
#define UINT_LEAST8_MAX 255
#define INT_LEAST16_MIN (-32768)
#define INT_LEAST16_MAX 32767
#define UINT_LEAST16_MAX 65535
#define INT_LEAST32_MIN (~0x7FFFFFFF)
#define INT_LEAST32_MAX 2147483647
#define UINT_LEAST32_MAX 4294967295u
#define UINT_LEAST64_MAX 18446744073709551615u
#define INT_FAST8_MIN (-128)
#define INT_FAST8_MIN (~0x7FFFFFFF)
#define INT_FAST8_MAX 2147483647
#define UINT_FAST8_MAX 4294967295u
#define INT_FAST16_MIN (~0x7FFFFFFF)
#define INT_FAST32_MIN (~0x7FFFFFFF)
#define INT_FAST64_MIN (~0x7FFFFFFFFFFFFFFF)
#define INT_FAST8_MAX 127
#define INT_FAST16_MAX 2147483647
#define INT_FAST32_MAX 2147483647
#define INT_FAST64_MAX 9223372036854775807
#define UINT_FAST8_MAX 255u
#define UINT_FAST16_MAX 4294967295u
#define INT_FAST32_MIN (~0x7FFFFFFF)
#define INT_FAST32_MAX 2147483647
#define UINT_FAST32_MAX 4294967295u
#define UINT_FAST64_MAX 18446744073709551615u
#define INTPTR_MIN (~0x7FFFFFFF)
#define INTPTR_MAX 2147483647
#define UINTPTR_MAX 4294967295u
#ifdef __stdint_ll
#define INT64_MIN (~0x7FFFFFFFFFFFFFFF)
#define INT64_MAX 9223372036854775807
#define UINT64_MAX 18446744073709551615u
#define INT_LEAST64_MIN (~0x7FFFFFFFFFFFFFFF)
#define INT_LEAST64_MAX 9223372036854775807
#define UINT_LEAST64_MAX 18446744073709551615u
#define INT_FAST64_MIN (~0x7FFFFFFFFFFFFFFF)
#define INT_FAST64_MAX 9223372036854775807
#define UINT_FAST64_MAX 18446744073709551615u
#define INTMAX_MIN (~0x7FFFFFFFFFFFFFFF)
#define INTMAX_MAX 9223372036854775807
#define UINTMAX_MAX 18446744073709551615u
#endif
#define PTRDIFF_MIN (~0x7FFFFFFF)
#define PTRDIFF_MAX 2147483647
......@@ -129,16 +137,18 @@ typedef unsigned long long uintmax_t;
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
#define INT8_C(n) n
#define INT16_C(n) n
#define INT32_C(n) n
#define INT64_C(n) n##ll
#define UINT8_C(n) n##u
#define INT16_C(n) n
#define UINT16_C(n) n##u
#define INT32_C(n) n
#define UINT32_C(n) n##u
#ifdef __stdint_ll
#define INT64_C(n) n##ll
#define UINT64_C(n) n##ull
#define INTMAX_C(n) n##ll
#define UINTMAX_C(n) n##ull
#endif
#endif
......
......@@ -163,6 +163,11 @@ $Label
EXPORT |__rt_wr2chk|
EXPORT |__rt_wr4chk|
EXPORT div
EXPORT ldiv
EXPORT lldiv
EXPORT llabs
EXPORT fmin
EXPORT fminf
EXPORT fmax
......
......@@ -25,7 +25,7 @@
EXPORT |CLib_data_end|
% 110*4
% 114*4
|CLib_data_end|
END