[nvptx] Fix __main missing prototype warning in crt0.c
authorTom de Vries <tdevries@suse.de>
Tue, 18 Jun 2019 09:19:28 +0000 (09:19 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 18 Jun 2019 09:19:28 +0000 (09:19 +0000)
commit787783a0356dd75e462c9d5337f06f156e0ed110
treebf0ffbd03049599bb0d9a565b60705faaf831c20
parentfcae0292de06aeb54c44d26cfb80d798df60e339
[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.

From-SVN: r272412
libgcc/ChangeLog
libgcc/config/nvptx/crt0.c