On Tue, Feb 27, 2018 at 09:29:36AM +0100, Jakub Jelinek wrote: > So here is a new (I've committed the previous patch since then), only lightly > tested (only on x86_64-linux and don't have too old binutils around), patch: > > 2018-02-27 Jakub Jelinek <ja...@redhat.com> > > PR debug/83917 > * configure.ac (AS_HIDDEN_DIRECTIVE): AC_DEFINE_UNQUOTED this to > $asm_hidden_op if visibility ("hidden") attribute works. > (HAVE_AS_CFI_SECTIONS): New AC_DEFINE. > * config/i386/i386-asm.h: Don't include auto-host.h. > (PACKAGE_VERSION, PACKAGE_NAME, PACKAGE_STRING, PACKAGE_TARNAME, > PACKAGE_URL): Don't undefine. > (USE_GAS_CFI_DIRECTIVES): Don't use nor define this macro, instead > guard cfi_startproc only on ifdef __GCC_HAVE_DWARF2_CFI_ASM. > (FN_HIDDEN): Change guard from #ifdef HAVE_GAS_HIDDEN to > #ifdef AS_HIDDEN_DIRECTIVE, use AS_HIDDEN_DIRECTIVE macro in the > definition instead of hardcoded .hidden. > * config/i386/cygwin.S: Include i386-asm.h first before .cfi_sections > directive. Use #ifdef HAVE_AS_CFI_SECTIONS rather than > #ifdef HAVE_GAS_CFI_SECTIONS_DIRECTIVE to guard .cfi_sections. > (USE_GAS_CFI_DIRECTIVES): Don't define. > * configure: Regenerated. > * config.in: Likewise.
Now successfully bootstrapped/regtested on x86_64-linux and i686-linux. Jakub