Re: [RFC][gomp4] Offloading patches (3/3): Add invocation of target compiler

2014-01-16 Thread Michael Zolotukhin
Ping. On 20 December 2013 20:46, Michael V. Zolotukhin michael.v.zolotuk...@gmail.com wrote: This patch seems to make rather too many assumptions about host and target compilers. Certainly code like this can't go into target-independent code like lto-wrapper. That's true. The point of this

Re: [RFC][gomp4] Offloading patches (3/3): Add invocation of target compiler

2013-12-20 Thread Bernd Schmidt
On 12/17/2013 12:42 PM, Michael V. Zolotukhin wrote: Hi everybody, Here is a patch 3/3: Add invocation of target compiler. + /* Run objcopy on TARGET_IMAGE_FILE_NAME. */ + buf1 = (char*) xmalloc (strlen (.data=.) + + strlen (OFFLOAD_IMAGE_SECTION_NAME) + 1); + if

Re: [RFC][gomp4] Offloading patches (3/3): Add invocation of target compiler

2013-12-20 Thread Michael V. Zolotukhin
This patch seems to make rather too many assumptions about host and target compilers. Certainly code like this can't go into target-independent code like lto-wrapper. That's true. The point of this patch was to show what is needed to support x86-MIC OpenMP offloading, as we currently see it.

[RFC][gomp4] Offloading patches (3/3): Add invocation of target compiler

2013-12-17 Thread Michael V. Zolotukhin
Hi everybody, Here is a patch 3/3: Add invocation of target compiler. With this patch lto-wrapper performs invocation of target compilers and embeds the resultant target images into the host binary. The targets and the corresponding compilers are supposed to be specified in a special