This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/4] OpenMP 4.0 offloading to Intel MIC
- From: Ilya Verbin <iverbin at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Kirill Yukhin <kirill dot yukhin at gmail dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Thu, 13 Nov 2014 23:53:53 +0300
- Subject: Re: [PATCH 0/4] OpenMP 4.0 offloading to Intel MIC
- Authentication-results: sourceware.org; auth=none
- References: <20141021171323 dot GA47586 at msticlxl57 dot ims dot intel dot com> <20141113141433 dot GA37650 at msticlxl57 dot ims dot intel dot com> <CAMe9rOoFxeYkhqxS1++rucJL3QUAbFhZwPYTsmAfq-6a7_cM-A at mail dot gmail dot com> <20141113183654 dot GA28110 at msticlxl57 dot ims dot intel dot com> <CAMe9rOoWMSpDz1+-dj=cx46yNMrMe5TWJGyVyfWieTzXr1AwUA at mail dot gmail dot com> <20141113192046 dot GB28110 at msticlxl57 dot ims dot intel dot com> <CAMe9rOrpynwwXQewvy2u5R=bcqM-ipu7DNK_OKvzebE+_k-YBQ at mail dot gmail dot com>
On 13 Nov 2014, at 23:11, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Section Headers:
> [Nr] Name Type Address Off Size
> ES Flg Lk Inf Al
> [ 0] NULL 0000000000000000 000000
> 000000 00 0 0 0
> [ 1] .text PROGBITS 0000000000000000 000040
> 000204 00 AX 0 0 16
> [ 2] .rela.text RELA 0000000000000000 001a60
> 0000d8 18 I 29 1 8
> [ 3] .data PROGBITS 0000000000000000 000260
> 000040 00 WA 0 0 32
> [ 4] .bss NOBITS 0000000000000000 0002a0
> 000000 00 WA 0 0 1
> [ 5] .gnu.offload_lto_.profile.50035f9931394ed4 PROGBITS
> 0000000000000000 0002a0 000013 00 E 0 0 1
> [ 6] .gnu.offload_lto_.icf.50035f9931394ed4 PROGBITS
> 0000000000000000 0002b3 00001e 00 E 0 0 1
> [ 7] .gnu.offload_lto_.jmpfuncs.50035f9931394ed4 PROGBITS
> 0000000000000000 0002d1 000019 00 E 0 0 1
> [ 8] .gnu.offload_lto_.inline.50035f9931394ed4 PROGBITS
> 0000000000000000 0002ea 00006c 00 E 0 0 1
> [ 9] .gnu.offload_lto_.pureconst.50035f9931394ed4 PROGBITS
> 0000000000000000 000356 000013 00 E 0 0 1
> [10] .gnu.offload_lto_vec_mult._omp_fn.1.50035f9931394ed4 PROGBITS
> 0000000000000000 000369 0004ab 00 E 0 0 1
> [11] .gnu.offload_lto_vec_mult._omp_fn.0.50035f9931394ed4 PROGBITS
> 0000000000000000 000814 00035d 00 E 0 0 1
> [12] .gnu.offload_lto_.symbol_nodes.50035f9931394ed4 PROGBITS
> 0000000000000000 000b71 000055 00 E 0 0 1
> [13] .gnu.offload_lto_.refs.50035f9931394ed4 PROGBITS
> 0000000000000000 000bc6 000014 00 E 0 0 1
> [14] .gnu.offload_lto_.offload_table.50035f9931394ed4 PROGBITS
> 0000000000000000 000bda 000011 00 E 0 0 1
> [15] .gnu.offload_lto_.decls.50035f9931394ed4 PROGBITS
> 0000000000000000 000beb 00043d 00 E 0 0 1
> [16] .gnu.offload_lto_.symtab.50035f9931394ed4 PROGBITS
> 0000000000000000 001028 000000 00 E 0 0 1
> [17] .gnu.offload_lto_.opts PROGBITS 0000000000000000 001028
> 0000a9 00 E 0 0 1
>
> Don't you need another plugin to claim those offload IR sections?
No, the plan was that a regular plugin will just ignore offload IR sections by default. In your configuration ld detects a __gnu_lto_slim symbol and decided that the object file contains only LTO IR without asm. I am going to investigate where is the difference with my configuration and fix the bug.
-- Ilya