linux/arch/sparc/lib
Thomas Huth dc356bf3c1 sparc: Drop the "-ansi" from the asflags
In the very early kernel 1.x days, assembler files were pre-processed
with the "-traditional" flag. With kernel 1.1.85, the sparc subsystem
was changed to use "-ansi" instead while the other parts of the kernel
continued to use "-traditional". That "-traditional" got removed from
the other architectures in the course of time, but the sparc part
kept the "-ansi" until today.

This is bad since it comes with some disadvantages nowadays: You have
to make sure to not include any header that contains a "//" C++ comment
by accident (there are now some in the tree that use these for SPDX
identifiers for example), and with "-ansi" we also do not get the
pre-defined __ASSEMBLER__ macro which we'd like to use instead of the
kernel-only __ASSEMBLY__ macro in the future.

Since there does not seem to be any compelling reason anymore to use
"-ansi" nowadays, let's simply drop the "-ansi" flag from the sparc
subsystem now to get rid of those disadvantages.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
2025-09-26 16:55:21 +02:00
..
GENbzero.S
GENcopy_from_user.S
GENcopy_to_user.S
GENmemcpy.S
GENpage.S
GENpatch.S
M7copy_from_user.S
M7copy_to_user.S
M7memcpy.S sparc: fix accurate exception reporting in copy_{from,to}_user for M7 2025-09-19 20:56:36 +02:00
M7memset.S
M7patch.S
Makefile sparc: Drop the "-ansi" from the asflags 2025-09-26 16:55:21 +02:00
Memcpy_utils.S sparc: fix accurate exception reporting in copy_{from,to}_user for M7 2025-09-19 20:56:36 +02:00
NG2copy_from_user.S
NG2copy_to_user.S
NG2memcpy.S
NG2patch.S
NG4clear_page.S
NG4copy_from_user.S
NG4copy_page.S
NG4copy_to_user.S
NG4fls.S
NG4memcpy.S sparc: fix accurate exception reporting in copy_to_user for Niagara 4 2025-09-19 20:56:36 +02:00
NG4memset.S
NG4patch.S
NGbzero.S
NGcopy_from_user.S
NGcopy_to_user.S
NGmemcpy.S sparc: fix accurate exception reporting in copy_{from_to}_user for Niagara 2025-09-19 20:56:36 +02:00
NGpage.S
NGpatch.S
PeeCeeI.c
U1copy_from_user.S
U1copy_to_user.S
U1memcpy.S sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC 2025-09-19 20:56:36 +02:00
U3copy_from_user.S
U3copy_to_user.S
U3memcpy.S sparc: fix accurate exception reporting in copy_{from_to}_user for UltraSPARC III 2025-09-19 20:56:36 +02:00
U3patch.S
VISsave.S
ashldi3.S
ashrdi3.S
atomic32.c
atomic_64.S
bitext.c
bitops.S
blockops.S
bzero.S
checksum_32.S
checksum_64.S
clear_page.S
copy_in_user.S
copy_page.S
copy_user.S
csum_copy.S
csum_copy_from_user.S
csum_copy_to_user.S
divdi3.S
ffs.S
fls.S
fls64.S
hweight.S
iomap.c
ipcsum.S
libgcc.h
locks.S
lshrdi3.S
mcount.S
memcmp.S
memcpy.S
memmove.S
memscan_32.S
memscan_64.S
memset.S
muldi3.S
multi3.S
strlen.S
strncmp_32.S
strncmp_64.S
udivdi3.S
xor.S