Hi David,

On 2 November 2016 at 16:41, David Edelsohn <dje....@gmail.com> wrote:
> This revised patch makes two changes:
>
> 1) Fix typo in configure.ac
> 2) Add AIX visibility support for ASM_WEAKEN_DECL, which does touch
> the same code as Linux.
>
> The AIX "weak" support fixes a large number of C++ visibility testcases.
>
> Bootstrapped on powerpc-ibm-aix7.2.0.0.
>
> * configure.ac (.hidden): Change to conftest_s string. Provide string
> for AIX assembler.
> (gcc_cv_ld_hidden): Yes for AIX.
> * configure: Regenerate.
>
> * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
>
> * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
> (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
> * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
> (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
> (ASM_OUTPUT_ALIGNED_COMMON): Delete.
> * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
> from #if to if.
> (rs6000_xcoff_visibility): New.
> (rs6000_xcoff_declare_function_name): Add visibility support.
> (rs6000_xcoff_asm_globalize_decl_name): New.
> (rs6000_xcoff_asm_output_aligned_decl_common): New.
> (rs6000_asm_weaken_decl): New.
> (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
> config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
> reference function.
>
> dwarf2asm.c okay?
>
> Any comments on ASM_WEAKEN_DECL change?
>
> Thanks, David

It seems this commit (r241930) is causing a regression on aarch64:
FAIL: g++.dg/torture/pr60750.C   -O2 -flto -fno-use-linker-plugin
-flto-partition=none  execution test

Christophe

Reply via email to