diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2023-12-02 21:54:36 -0700 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2023-12-02 21:54:36 -0700 |
commit | 870b63fe71607b94c0e5b0c6e61cd807e0216ddd (patch) | |
tree | 6035f86f560a531d4405878532d81e3ad4892b50 /gcc | |
parent | 04d4a4943a445e2c83f20cebc95b6c2aac3305e6 (diff) | |
download | gcc-870b63fe71607b94c0e5b0c6e61cd807e0216ddd.zip gcc-870b63fe71607b94c0e5b0c6e61cd807e0216ddd.tar.gz gcc-870b63fe71607b94c0e5b0c6e61cd807e0216ddd.tar.bz2 |
[committed] Fix frv build after C99 changes
Two issues prevent the frv-elf port from building after the C99 changes. First
the trampoline code emitted into libgcc has calls to exit, but no prototype.
Adding a trivial prototype for exit() into the macro fixes that little goof.
Second, frvbegin.c has a call to atexit, so a quick prototype is added into
frvbegin.c to fix that problem.
That's enough to get the compiler building again.
gcc/
* config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Add prototype for exit.
libgcc/
* config/frv/frvbegin.c (atexit): Add prototype.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/frv/frv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h index 9795611..93a7c6d 100644 --- a/gcc/config/frv/frv.h +++ b/gcc/config/frv/frv.h @@ -1241,6 +1241,7 @@ typedef struct frv_stack { #if ! __FRV_FDPIC__ #define TRANSFER_FROM_TRAMPOLINE \ extern int Twrite (int, const void *, unsigned); \ +extern void exit (int); \ \ void \ __trampoline_setup (short * addr, int size, int fnaddr, int sc) \ @@ -1284,6 +1285,7 @@ __asm__("\n" \ #else #define TRANSFER_FROM_TRAMPOLINE \ extern int Twrite (int, const void *, unsigned); \ +extern void exit (int); \ \ void \ __trampoline_setup (addr, size, fnaddr, sc) \ |