nixpkgs/pkgs/development/compilers/gcc/11/avr-gcc-11.3-darwin.patch
Thomas Watson 1f4feb7c6f avr-gcc: fix build on Darwin
Adds a patch which fixes a compilation error generated by Clang 11
compiling GCC 11.3.
2023-01-01 11:12:23 -06:00

21 lines
570 B
Diff

--- a/gcc/config/avr/avr.c 2022-10-08 19:18:33.000000000 +0200
+++ b/gcc/config/avr/avr.patched.c 2022-10-08 19:19:34.000000000 +0200
@@ -10196,7 +10196,7 @@
to track need of __do_copy_data. */
static void
-avr_output_data_section_asm_op (const void *data)
+avr_output_data_section_asm_op (const char *data)
{
avr_need_copy_data_p = true;
@@ -10209,7 +10209,7 @@
to track need of __do_clear_bss. */
static void
-avr_output_bss_section_asm_op (const void *data)
+avr_output_bss_section_asm_op (const char *data)
{
avr_need_clear_bss_p = true;