From 8c86fb6da0b9c068ee4b4220dee11171e322f67f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 24 May 2023 09:37:20 -0400 Subject: arm: Use -masm-syntax-unified when compiling with gcc8 or newer Annoyingly, this makes all of the '.S' files we compile get treated as divided syntax, so we need to make the syntax in them explicit. Change-Id: I56a3916b7b24c84a1214a5d6bc4ed4d651f002cf --- firmware/asm/arm/lcd-as-memframe.S | 2 ++ firmware/asm/arm/memcpy.S | 2 ++ firmware/asm/arm/memmove.S | 2 ++ firmware/asm/arm/memset.S | 2 ++ firmware/asm/arm/memset16.S | 2 ++ 5 files changed, 10 insertions(+) (limited to 'firmware/asm') diff --git a/firmware/asm/arm/lcd-as-memframe.S b/firmware/asm/arm/lcd-as-memframe.S index d42b2a920d..f69f6e5080 100644 --- a/firmware/asm/arm/lcd-as-memframe.S +++ b/firmware/asm/arm/lcd-as-memframe.S @@ -24,6 +24,8 @@ #include "config.h" #include "cpu.h" + .syntax unified + /**************************************************************************** * void lcd_copy_buffer_rect(fb_data *dst, fb_data *src, int width, * int height); diff --git a/firmware/asm/arm/memcpy.S b/firmware/asm/arm/memcpy.S index 86fc6b7930..1fbb6660e9 100644 --- a/firmware/asm/arm/memcpy.S +++ b/firmware/asm/arm/memcpy.S @@ -35,6 +35,8 @@ #define push lsr #endif + .syntax unified + /* Prototype: void *memcpy(void *dest, const void *src, size_t n); */ /* Prototype: void *mempcpy(void *dest, const void *src, size_t n); */ diff --git a/firmware/asm/arm/memmove.S b/firmware/asm/arm/memmove.S index e5c9b42928..cf22a74622 100644 --- a/firmware/asm/arm/memmove.S +++ b/firmware/asm/arm/memmove.S @@ -35,6 +35,8 @@ #define push lsr #endif + .syntax unified + .text /* diff --git a/firmware/asm/arm/memset.S b/firmware/asm/arm/memset.S index d727f2a5ec..ef5cdb5819 100644 --- a/firmware/asm/arm/memset.S +++ b/firmware/asm/arm/memset.S @@ -20,6 +20,8 @@ ****************************************************************************/ #include "config.h" + .syntax unified + .section .icode,"ax",%progbits .align 2 diff --git a/firmware/asm/arm/memset16.S b/firmware/asm/arm/memset16.S index 226eac39e1..851b9207a2 100644 --- a/firmware/asm/arm/memset16.S +++ b/firmware/asm/arm/memset16.S @@ -20,6 +20,8 @@ ****************************************************************************/ #include "config.h" + .syntax unified + .section .icode,"ax",%progbits .align 2 -- cgit v1.2.3