]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcn/mkoffload.cc: Use #embed for including the generated ELF file
authorTobias Burnus <tburnus@baylibre.com>
Fri, 13 Sep 2024 14:18:46 +0000 (16:18 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Fri, 13 Sep 2024 14:18:46 +0000 (16:18 +0200)
commit508ef585243d4674d06b0737bfe8769fc18f824f
treece51779eccc57e74e78e65a3428ef60398397186
parentb7b67732e20217196f2a13a10fc3df4605b2b2ab
gcn/mkoffload.cc: Use #embed for including the generated ELF file

gcc/ChangeLog:

* config/gcn/mkoffload.cc (read_file): Remove.
(process_asm): Do not add '#include' to generated C file.
(process_obj): Generate C file that uses #embed and use
__SIZE_TYPE__ and __UINTPTR_TYPE__ instead the #include-defined
size_t and uintptr.
(main): Update call to it; remove no longer needed file I/O.
gcc/config/gcn/mkoffload.cc