aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config
diff options
context:
space:
mode:
authorJeff Law <jlaw@ventanamicro.com>2023-12-02 21:54:36 -0700
committerJeff Law <jlaw@ventanamicro.com>2023-12-02 21:54:36 -0700
commit870b63fe71607b94c0e5b0c6e61cd807e0216ddd (patch)
tree6035f86f560a531d4405878532d81e3ad4892b50 /libgcc/config
parent04d4a4943a445e2c83f20cebc95b6c2aac3305e6 (diff)
downloadgcc-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 'libgcc/config')
-rw-r--r--libgcc/config/frv/frvbegin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgcc/config/frv/frvbegin.c b/libgcc/config/frv/frvbegin.c
index 76b40ec..24ea06b 100644
--- a/libgcc/config/frv/frvbegin.c
+++ b/libgcc/config/frv/frvbegin.c
@@ -119,6 +119,7 @@ __do_global_dtors (void)
}
}
+int atexit (void (*)(void));
/* Run the global constructors. */
void
__do_global_ctors (void)