blob: 7bc51ad652483852e629a8b16ab3d42363633e68 [file]
# Machine description for AArch64 architecture.
# Copyright (C) 2012-2026 Free Software Foundation, Inc.
# Contributed by ARM Ltd.
#
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GCC is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.
LIB2ADD += $(srcdir)/config/aarch64/sync-cache.c
LIB2ADD += $(srcdir)/config/aarch64/cpuinfo.c
# Add sme runtime to shared libgcc
LIB2ADDEH += \
$(srcdir)/config/aarch64/__aarch64_have_sme.c \
$(srcdir)/config/aarch64/__arm_get_current_vg.S \
$(srcdir)/config/aarch64/__arm_sme_state.S \
$(srcdir)/config/aarch64/__arm_tpidr2_restore.S \
$(srcdir)/config/aarch64/__arm_tpidr2_save.S \
$(srcdir)/config/aarch64/__arm_za_disable.S
SHLIB_MAPFILES += $(srcdir)/config/aarch64/libgcc-sme.ver
LIBGCC2_CFLAGS += $(WERROR) -Wno-prio-ctor-dtor