Skip to content

Instantly share code, notes, and snippets.

@jmechnich
Last active January 1, 2023 04:40
Show Gist options
  • Save jmechnich/5a31cf9c2ae8336109f48abd3e5488a0 to your computer and use it in GitHub Desktop.
Save jmechnich/5a31cf9c2ae8336109f48abd3e5488a0 to your computer and use it in GitHub Desktop.
Fixes avr-gcc@11 compilation for M1
--- 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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment