From: Jeff Law Date: Sun, 3 Dec 2023 05:32:22 +0000 (-0700) Subject: [committed] Fix comp-goto-1.c on 16 bit targets X-Git-Tag: basepoints/gcc-15~4050 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5c823b033bb6409bbcd115b318093126f5a674f;p=thirdparty%2Fgcc.git [committed] Fix comp-goto-1.c on 16 bit targets I don't remember what port triggered this, but it's obviously that comp-goto-1.c needs to be fixed. Basically the test has two implementations. One is just a dummy with no return value on main() triggering the new errors. gcc/testsuite * gcc.c-torture/execute/comp-goto-1.c: Fix return value of main for 16 bit targets. --- diff --git a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c index 4379fe70e9ce..6be63c097ac8 100644 --- a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c @@ -163,5 +163,5 @@ main () exit (0); } #else -main(){ exit (0); } +int main(){ exit (0); } #endif