This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix regressions in libgomp testsuite: set flag_fat_lto_objects for offload
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Date: Fri, 14 Nov 2014 09:11:53 -0800
- Subject: Re: [PATCH] Fix regressions in libgomp testsuite: set flag_fat_lto_objects for offload
- Authentication-results: sourceware.org; auth=none
- References: <20141114160441 dot GA40445 at msticlxl57 dot ims dot intel dot com> <20141114160709 dot GB40445 at msticlxl57 dot ims dot intel dot com> <CAMe9rOrWfiVPBDkQ03P2+jsN1CunN3F3eCeCMsf2UwQ+455JZw at mail dot gmail dot com> <20141114165113 dot GC40445 at msticlxl57 dot ims dot intel dot com> <CAMe9rOrBo5fmiOd47iPY5nacyXzSCbO-j0yW+NUXdBygN-5SFg at mail dot gmail dot com> <20141114170849 dot GD40445 at msticlxl57 dot ims dot intel dot com>
On Fri, Nov 14, 2014 at 9:08 AM, Ilya Verbin <iverbin@gmail.com> wrote:
> On 14 Nov 09:01, H.J. Lu wrote:
>> On Fri, Nov 14, 2014 at 8:51 AM, Ilya Verbin <iverbin@gmail.com> wrote:
>> > On 14 Nov 08:46, H.J. Lu wrote:
>> >> What happens when -flto is used on command line? Will we
>> >> generate both LTO IR and offload IR?
>> >
>> > Right.
>> >
>> > I'm not sure whether we should make slim objects in case of LTO + offload IR...
>> >
>>
>> Isn't __gnu_lto_slim only applied to regular LTO IR? Should offload IR be
>> handled separately from regular LTO IR? It is odd to use flag_fat_lto_objects
>> to control offload IR.
>
> It is handled separately, but it uses a common infrastructure with regular LTO
> for streaming, therefore compile_file automatically emits __gnu_lto_slim when
> there is at least one section with IR (flag_generate_lto is set). You propose
> to introduce a second flag like flag_fat_lto_objects to disable __gnu_lto_slim?
>
> -- Ilya
Can we use bit fields in flag_fat_lto_objects to cintrorl regular LTO IR and
offload IR separately?
--
H.J.