> On 07/31/2017 11:57 AM, Yuri Gribov wrote:
> > On Mon, Jul 31, 2017 at 9:04 AM, Martin Liška <mli...@suse.cz> wrote:
> >> Hi.
> >>
> >> Doing the transformation suggested by Honza.
> >>
> >> Patch can bootstrap on ppc64le-redhat-linux and x86_64-linux-gnu and 
> >> survives regression tests.
> >> And I also verified that works on hppa2.0w-hp-hpux11.11 (target w/o 
> >> aliasing support).
> >>
> >> Ready to be installed?
> > 
> > A nit - you can probly get rid of ATTRIBUTE_UNUSED in note_mangling_alias 
> > now.
> > 
> > -Y
> > 
> 
> Sure.
> 
> Done in v2.
> 
> Martin

> >From 78ee08b25d22125cb1fa248bac98ef1e84504761 Mon Sep 17 00:00:00 2001
> From: marxin <mli...@suse.cz>
> Date: Tue, 25 Jul 2017 13:11:28 +0200
> Subject: [PATCH] Introduce TARGET_SUPPORTS_ALIASES
> 
> gcc/c-family/ChangeLog:
> 
> 2017-07-25  Martin Liska  <mli...@suse.cz>
> 
>       * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
>       TARGET_SUPPORTS_ALIASES.
> 
> gcc/ChangeLog:
> 
> 2017-07-25  Martin Liska  <mli...@suse.cz>
> 
>       * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
>       TARGET_SUPPORTS_ALIASES.
>       * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
>       * ipa-visibility.c (can_replace_by_local_alias): Likewise.
>       (optimize_weakref): Likewise.
>       * symtab.c (symtab_node::noninterposable_alias): Likewise.
>       * varpool.c (varpool_node::create_extra_name_alias): Likewise.
>       * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
> 
> gcc/cp/ChangeLog:
> 
> 2017-07-25  Martin Liska  <mli...@suse.cz>
> 
>       * decl2.c (get_tls_init_fn): Replace ASM_OUTPUT_DEF with
>       TARGET_SUPPORTS_ALIASES.
>       (handle_tls_init): Likewise.
>       (note_mangling_alias): Likewise.  Remove ATTRIBUTE_UNUSED for
>       both arguments.
>       * optimize.c (can_alias_cdtor): Likewise.

OK,
thanks!

Honza

Reply via email to