On Thu, Nov 21, 2019 at 12:03:19PM +0100, Rainer Orth wrote:
> I'm seeing those, too, plus the following that are apparently only
> diagnosed by Solaris ld:
> 
> +FAIL: gcc.c-torture/execute/20030913-1.c   -O0  (test for excess errors)
> +FAIL: gcc.c-torture/execute/20030913-1.c   -O1  (test for excess errors)
> +FAIL: gcc.c-torture/execute/20030913-1.c   -O2  (test for excess errors)
> +FAIL: gcc.c-torture/execute/20030913-1.c   -O2 -flto  (test for excess 
> errors)
> +FAIL: gcc.c-torture/execute/20030913-1.c   -O2 -flto -flto-partition=none  
> (test for excess errors)
> +FAIL: gcc.c-torture/execute/20030913-1.c   -O3 -g  (test for excess errors)
> +FAIL: gcc.c-torture/execute/20030913-1.c   -Os  (test for excess errors)
> 
> Excess errors:
> ld: warning: symbol 'glob' has differing types:
>         (file /var/tmp//ccdl_86b.o type=OBJT; file /lib/libc.so type=FUNC);
>         /var/tmp//ccdl_86b.o definition taken

That is arguably a weird ld feature, the libraries can contain various
extensions and even if one doesn't use them, there will be a warning if
chosen identifiers for variables match some function in the library.

> 2019-11-21  Rainer Orth  <r...@cebitec.uni-bielefeld.de>
> 
>       gcc/testsuite:
>       * gcc.c-torture/execute/20030913-1.c: Rename glob to g.
>       * gcc.c-torture/execute/960218-1.c: Rename glob to gl.
>       * gcc.c-torture/execute/complex-6.c: Rename err to e.
>       * gcc.dg/torture/ssa-pta-fn-1.c: Rename glob to g.
> 
>       libgomp:
>       * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
>       * testsuite/libgomp.c/pr39591-2.c: Likewise.
>       * testsuite/libgomp.c/pr39591-3.c: Likewise.
>       * testsuite/libgomp.c/private-1.c: Likewise.
>       * testsuite/libgomp.c/task-1.c: Likewise.
>       * testsuite/libgomp.c/task-5.c: Renamed err to serr.

That said, I can live with this, so ok for trunk.

        Jakub

Reply via email to