https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246322

--- Comment #4 from Dimitry Andric <d...@freebsd.org> ---
In any case clang 8 does not produce any .cfi directives in crt*.o, while clang
9 and 10 do.

For instance /usr/obj/usr/src/lib/csu/i386/crt1_c.s with clang becomes:

        .text
        .file   "crt1_c.c"
                                        # Start of file scope inline assembly
        .ident  "$FreeBSD: stable/11/lib/csu/i386/crt1_c.c 292000 2015-12-08
19:32:58Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/crtbrand.c 339300
2018-10-11 00:26:15Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/ignore_init.c 339300
2018-10-11 00:26:15Z emaste $"
        .hidden _start1

                                        # End of file scope inline assembly
        .globl  _start1                 # -- Begin function _start1
        .p2align        4, 0x90
        .type   _start1,@function
_start1:                                # @_start1
# %bb.0:
...

With clang 10 this becomes:

       .text
        .file   "crt1_c.c"
                                        # Start of file scope inline assembly
        .ident  "$FreeBSD: stable/11/lib/csu/i386/crt1_c.c 292000 2015-12-08
19:32:58Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/crtbrand.c 339300
2018-10-11 00:26:15Z emaste $"
        .ident  "$FreeBSD: stable/11/lib/csu/common/ignore_init.c 339300
2018-10-11 00:26:15Z emaste $"
        .hidden _start1

                                        # End of file scope inline assembly
        .globl  _start1                 # -- Begin function _start1
        .p2align        4, 0x90
        .type   _start1,@function
_start1:                                # @_start1
        .cfi_startproc
# %bb.0:
...

The directives got turned on by emaste in
https://github.com/llvm/llvm-project/commit/cb1761465a0d, referring in his
commit message to bug 241562 ("failing test case:
lib.libexecinfo.backtrace_test.backtrace_fmt_basic").

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to