This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] COMDAT Safe Module Level Multi versioning
- From: Xinliang David Li <davidxl at google dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Sriraman Tallam <tmsriram at google dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, binutils <binutils at sourceware dot org>, Cary Coutant <ccoutant at gmail dot com>
- Date: Tue, 19 May 2015 09:11:55 -0700
- Subject: Re: [RFC] COMDAT Safe Module Level Multi versioning
- Authentication-results: sourceware.org; auth=none
- References: <CAAs8HmyB5jZS_zfHKeX9HEK3Eo59nVhuB4yfoGTy5hXV41YZYA at mail dot gmail dot com> <CAFiYyc1b++CR5FJBG4cFTZ2ec+dWgxXgoYWP72GWHtQ8BPruLg at mail dot gmail dot com>
>
> Hm. But which options are unsafe? Also wouldn't it be better to simply
> _not_ have unsafe options produce comdats but always make local clones
> for them (thus emit the comdat with "unsafe" flags dropped)?
Always localize comdat functions may lead to text size increase. It
does not work if the comdat function is a virtual function for
instance.
David
>
> Richard.
>
>>
>> Thanks
>> Sri