public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114036] New: Test failure of gcov-14.c on darwin
@ 2024-02-21 15:35 fxcoudert at gcc dot gnu.org
  2024-02-21 15:35 ` [Bug target/114036] " fxcoudert at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2024-02-21 15:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

            Bug ID: 114036
           Summary: Test failure of gcov-14.c on darwin
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fxcoudert at gcc dot gnu.org
  Target Milestone: ---

FAIL: gcc.misc-tests/gcov-14.c (test for excess errors)
Excess errors:
ld: warning: -undefined suppress is deprecated

The test has specific option for darwin:

/* The following line arranges that Darwin has behavior like elf weak import. 
*/
/* { dg-additional-options "-flat_namespace -undefined suppress" { target
*-*-darwin* }  } */


Maybe on modern systems we should simply remove that? The test appears to be
passing anyway :)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
@ 2024-02-21 15:35 ` fxcoudert at gcc dot gnu.org
  2024-02-21 15:43 ` iains at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2024-02-21 15:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
             Target|                            |x86_64-apple-darwin23
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-02-21

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
  2024-02-21 15:35 ` [Bug target/114036] " fxcoudert at gcc dot gnu.org
@ 2024-02-21 15:43 ` iains at gcc dot gnu.org
  2024-02-21 15:44 ` iains at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: iains at gcc dot gnu.org @ 2024-02-21 15:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
yeah, there is a better way to do this with ld64 (and presumably dyld-ld), my
guess is that this is an anachronism from the ld_classic (v1) days.

We can tell the linker it's OK for a symbol to be undefined - and then that
makes it behave like the ELF case.

"-Wl,-U,_symbol_name " is the incantation to do this - and AFAIK should work
back to i686-darwin9 (which is the earliest I test these days).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
  2024-02-21 15:35 ` [Bug target/114036] " fxcoudert at gcc dot gnu.org
  2024-02-21 15:43 ` iains at gcc dot gnu.org
@ 2024-02-21 15:44 ` iains at gcc dot gnu.org
  2024-02-21 15:47 ` fxcoudert at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: iains at gcc dot gnu.org @ 2024-02-21 15:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
if there are lots of symbols that need to be undefined  .. then one can use an
undefined symbols file.  

Of course, it does not work if we do not know the symbol names at build-time.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-02-21 15:44 ` iains at gcc dot gnu.org
@ 2024-02-21 15:47 ` fxcoudert at gcc dot gnu.org
  2024-04-02 11:27 ` cvs-commit at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2024-02-21 15:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
There's only one symbol we care about here, and its name is known, so I'll make
a patch with your suggestion and test it.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-02-21 15:47 ` fxcoudert at gcc dot gnu.org
@ 2024-04-02 11:27 ` cvs-commit at gcc dot gnu.org
  2024-04-02 12:24 ` iains at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-02 11:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <iains@gcc.gnu.org>:

https://gcc.gnu.org/g:ad8e34eaa870608e2b07b4e7147e6ef2944bb8b5

commit r14-9747-gad8e34eaa870608e2b07b4e7147e6ef2944bb8b5
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Mar 31 11:27:53 2024 +0100

    testsuite, Darwin: Allow for an undefined symbol [PR114036].

    Darwin's linker defaults to requiring all symbols to be defined at
    static link time (unless specifically noted or dynamic lookuo is
    enabled).

    For this test, we just need to note that the symbol is expected to
    be undefined.

            PR testsuite/114036

    gcc/testsuite/ChangeLog:

            * gcc.misc-tests/gcov-14.c: Allow for 'Foo' to be undefined
            on Darwin link lines.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-04-02 11:27 ` cvs-commit at gcc dot gnu.org
@ 2024-04-02 12:24 ` iains at gcc dot gnu.org
  2024-04-04 18:36 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: iains at gcc dot gnu.org @ 2024-04-02 12:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
fixed on trunk, needed on open branches.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2024-04-02 12:24 ` iains at gcc dot gnu.org
@ 2024-04-04 18:36 ` cvs-commit at gcc dot gnu.org
  2024-04-21 13:05 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-04 18:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

https://gcc.gnu.org/g:02a1d49da8f95a128d131747546921b67818d144

commit r13-8586-g02a1d49da8f95a128d131747546921b67818d144
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Mar 31 11:27:53 2024 +0100

    testsuite, Darwin: Allow for an undefined symbol [PR114036].

    Darwin's linker defaults to requiring all symbols to be defined at
    static link time (unless specifically noted or dynamic lookuo is
    enabled).

    For this test, we just need to note that the symbol is expected to
    be undefined.

            PR testsuite/114036

    gcc/testsuite/ChangeLog:

            * gcc.misc-tests/gcov-14.c: Allow for 'Foo' to be undefined
            on Darwin link lines.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit ad8e34eaa870608e2b07b4e7147e6ef2944bb8b5)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2024-04-04 18:36 ` cvs-commit at gcc dot gnu.org
@ 2024-04-21 13:05 ` cvs-commit at gcc dot gnu.org
  2024-04-29 14:19 ` cvs-commit at gcc dot gnu.org
  2024-04-29 14:42 ` iains at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-21 13:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

https://gcc.gnu.org/g:ed046c2cc0f0a2d00cc77e5e9ce5d8f71e2278c6

commit r12-10379-ged046c2cc0f0a2d00cc77e5e9ce5d8f71e2278c6
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Mar 31 11:27:53 2024 +0100

    testsuite, Darwin: Allow for an undefined symbol [PR114036].

    Darwin's linker defaults to requiring all symbols to be defined at
    static link time (unless specifically noted or dynamic lookuo is
    enabled).

    For this test, we just need to note that the symbol is expected to
    be undefined.

            PR testsuite/114036

    gcc/testsuite/ChangeLog:

            * gcc.misc-tests/gcov-14.c: Allow for 'Foo' to be undefined
            on Darwin link lines.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit ad8e34eaa870608e2b07b4e7147e6ef2944bb8b5)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2024-04-21 13:05 ` cvs-commit at gcc dot gnu.org
@ 2024-04-29 14:19 ` cvs-commit at gcc dot gnu.org
  2024-04-29 14:42 ` iains at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-29 14:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:

https://gcc.gnu.org/g:5feeb2ddc93de85dffd7d52119189cd63bccd40f

commit r11-11405-g5feeb2ddc93de85dffd7d52119189cd63bccd40f
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Mar 31 11:27:53 2024 +0100

    testsuite, Darwin: Allow for an undefined symbol [PR114036].

    Darwin's linker defaults to requiring all symbols to be defined at
    static link time (unless specifically noted or dynamic lookuo is
    enabled).

    For this test, we just need to note that the symbol is expected to
    be undefined.

            PR testsuite/114036

    gcc/testsuite/ChangeLog:

            * gcc.misc-tests/gcov-14.c: Allow for 'Foo' to be undefined
            on Darwin link lines.

    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit ad8e34eaa870608e2b07b4e7147e6ef2944bb8b5)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/114036] Test failure of gcov-14.c on darwin
  2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2024-04-29 14:19 ` cvs-commit at gcc dot gnu.org
@ 2024-04-29 14:42 ` iains at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: iains at gcc dot gnu.org @ 2024-04-29 14:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114036

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #9 from Iain Sandoe <iains at gcc dot gnu.org> ---
fixed on open branches

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-04-29 14:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 15:35 [Bug target/114036] New: Test failure of gcov-14.c on darwin fxcoudert at gcc dot gnu.org
2024-02-21 15:35 ` [Bug target/114036] " fxcoudert at gcc dot gnu.org
2024-02-21 15:43 ` iains at gcc dot gnu.org
2024-02-21 15:44 ` iains at gcc dot gnu.org
2024-02-21 15:47 ` fxcoudert at gcc dot gnu.org
2024-04-02 11:27 ` cvs-commit at gcc dot gnu.org
2024-04-02 12:24 ` iains at gcc dot gnu.org
2024-04-04 18:36 ` cvs-commit at gcc dot gnu.org
2024-04-21 13:05 ` cvs-commit at gcc dot gnu.org
2024-04-29 14:19 ` cvs-commit at gcc dot gnu.org
2024-04-29 14:42 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).