The test g++.dg/abi/key2.C fails on darwin for trunk and the gcc8 branch due 
the warning

/opt/gcc/_clean/gcc/testsuite/g++.dg/abi/key2.C: In function 'int sub()':
/opt/gcc/_clean/gcc/testsuite/g++.dg/abi/key2.C:17:2: warning: no return 
statement in function returning non-void [-Wreturn-type]
   17 | {}

This is fixed by the following patch:

--- ../_clean/gcc/testsuite/g++.dg/abi/key2.C   2016-11-27 16:57:37.000000000 
+0100
+++ gcc/testsuite/g++.dg/abi/key2.C     2018-12-28 14:49:09.000000000 +0100
@@ -14,4 +14,4 @@ class f
 } c;
 inline void f::g() {}
 int sub(void)
-{}
+{return 0;}

Committed as obvious on trunk and the gcc8 branch.

Dominique

Reply via email to