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.

Pushed to the trunk.

Jeff
commit d5c823b033bb6409bbcd115b318093126f5a674f
Author: Jeff Law <j...@ventanamicro.com>
Date:   Sat Dec 2 22:32:22 2023 -0700

    [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 4379fe70e9c..6be63c097ac 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

Reply via email to