]> git.ipfire.org Git - thirdparty/gcc.git/commit
[committed] Fix frv build after C99 changes
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 04:54:36 +0000 (21:54 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 04:54:36 +0000 (21:54 -0700)
commit870b63fe71607b94c0e5b0c6e61cd807e0216ddd
tree6035f86f560a531d4405878532d81e3ad4892b50
parent04d4a4943a445e2c83f20cebc95b6c2aac3305e6
[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.
gcc/config/frv/frv.h
libgcc/config/frv/frvbegin.c