]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build with path names with 'align' or 'nop' in them.
authorWarner Losh <imp@FreeBSD.org>
Mon, 27 Mar 2017 22:53:36 +0000 (22:53 +0000)
committerWarner Losh <imp@FreeBSD.org>
Mon, 27 Mar 2017 22:53:36 +0000 (22:53 +0000)
commitfa370b1a2546a1b4fefdfd5c177d94e27f6bce9c
tree1e2353302e8a18c6bb8065b8a32709ca1273c9bd
parentf906f2025b9aa32272cad1d4422453a96af488d3
Fix build with path names with 'align' or 'nop' in them.

clang is now inserting .file directives with the entire path in
them. This is fine, except that our sed peephole optimizer removes
them if ${SRCTOP} or ${OBJTOP} contains 'align' or 'nop', leading to
build failures. The sed peephole optimizer removes useful things for
boot2 when used with clang, so restrict its use to gcc. Also, gcc no
longer generates nops to pad things, so there's no point in removing
it. Specialize the optimization to just removing the .align 4 lines to
preclude inadvertant path matching.

Sponsored by: Netflix
Commit brought to you the path: /home/xxx/NCD-3592-logsynopts/FreeBSD
sys/boot/i386/boot2/Makefile