Re: [Patch, v2] gcn/mkoffload.cc: Use #embed for including the generated ELF file

2024-07-19 Thread Jakub Jelinek
On Fri, Jun 21, 2024 at 05:30:02PM +0200, Tobias Burnus wrote: > gcc/ChangeLog: > > * config/gcn/mkoffload.cc (read_file): Remove. > (process_obj): Generate C file that uses #embed. > (main): Update call to it; remove no longer needed file I/O. > + fprintf (cfile, > +"s

Re: [Patch, v2] gcn/mkoffload.cc: Use #embed for including the generated ELF file

2024-06-21 Thread Andrew Stubbs
On 21/06/2024 16:30, Tobias Burnus wrote: [I messed up copying from the build system, picking up an old version. Changes to v1 (bottom of the diff): fopen is no longer required.] Tobias Burnus wrote: mkoffload's generated .c file looks much nicer with '#embed'. This patch depends on Jakub's #e

[Patch, v2] gcn/mkoffload.cc: Use #embed for including the generated ELF file

2024-06-21 Thread Tobias Burnus
[I messed up copying from the build system, picking up an old version. Changes to v1 (bottom of the diff): fopen is no longer required.] Tobias Burnus wrote: mkoffload's generated .c file looks much nicer with '#embed'. This patch depends on Jakub's #embed patch at https://gcc.gnu.org/pipermail