This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][v2] Introduce TARGET_SUPPORTS_ALIASES
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Martin Liška <mliska at suse dot cz>
- Cc: Yuri Gribov <tetra2005 at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 10 Aug 2017 15:42:13 +0200
- Subject: Re: [PATCH][v2] Introduce TARGET_SUPPORTS_ALIASES
- Authentication-results: sourceware.org; auth=none
- References: <CAJOtW+7RqLrkyNywgZFZ2GbintGAz6bitoAoCDYiiiiEt602_g@mail.gmail.com> <20170717092719.GB33905@kam.mff.cuni.cz> <CAJOtW+5OWN2Wv0uFiEaOXUGu0zqCDmgJqSRDXPVh1HX5tzEkwA@mail.gmail.com> <eab80d41-2d78-d99b-ddef-9f6535c7156a@suse.cz> <20170724140622.GB90943@kam.mff.cuni.cz> <927a43eb-4cfb-8e1c-7d31-b54410ddd30a@suse.cz> <CAJOtW+549pfw9aFdRNmqs0ihxKUaD2Gcm=+CCeNmLXVDKCsR7Q@mail.gmail.com> <92d3a985-f28d-e2dd-3df3-a50130131787@suse.cz>
> On 07/31/2017 11:57 AM, Yuri Gribov wrote:
> > On Mon, Jul 31, 2017 at 9:04 AM, Martin Liška <mliska@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 <mliska@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 <mliska@suse.cz>
>
> * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
> TARGET_SUPPORTS_ALIASES.
>
> gcc/ChangeLog:
>
> 2017-07-25 Martin Liska <mliska@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 <mliska@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