]> git.ipfire.org Git - thirdparty/gcc.git/commit
[nvptx] Fix __main missing prototype warning in crt0.c
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 09:19:28 +0000 (09:19 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 09:19:28 +0000 (09:19 +0000)
commitda2e726b3cc6f483a8948f44addb47f5481b1fe9
treebf0ffbd03049599bb0d9a565b60705faaf831c20
parent8ac88374c9b9506a86b187ef342d048627c81815
[nvptx] Fix __main missing prototype warning in crt0.c

Atm we see:
...
libgcc/config/nvptx/crt0.c:36:1: warning: no previous prototype for \
  ‘__main’ [-Wmissing-prototypes]
...

Fix this by adding the prototype.

Build and reg-tested on nvptx.
Build and reg-tested on x86_64 with nvptx accelerator.

2019-06-18  Tom de Vries  <tdevries@suse.de>

* config/nvptx/crt0.c (__main): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272412 138bc75d-0d04-0410-961f-82ee72b054a4
libgcc/ChangeLog
libgcc/config/nvptx/crt0.c