Blame sysdeps/alpha/Makefile

Packit Service 82fcde
# Copyright (C) 1993-2018 Free Software Foundation, Inc.
Packit Service 82fcde
# This file is part of the GNU C Library.
Packit Service 82fcde
# Contributed by Brendan Kehoe (brendan@zen.org).
Packit Service 82fcde
Packit Service 82fcde
# The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
# modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
# License as published by the Free Software Foundation; either
Packit Service 82fcde
# version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
# The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
# Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
# You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
# License along with the GNU C Library.  If not, see
Packit Service 82fcde
# <http://www.gnu.org/licenses/>.
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),db2)
Packit Service 82fcde
CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_ALPHA=1
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),debug)
Packit Service 82fcde
# Consider making this GCC's default...
Packit Service 82fcde
CFLAGS-backtrace.c = -fasynchronous-unwind-tables
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),gmon)
Packit Service 82fcde
sysdep_routines += _mcount
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),gnulib)
Packit Service 82fcde
sysdep_routines += divl divlu divq divqu reml remlu remq remqu
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),string)
Packit Service 82fcde
sysdep_routines += stxcpy stxncpy
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),elf)
Packit Service 82fcde
# The ld.so startup code cannot use literals until it self-relocates.
Packit Service 82fcde
CFLAGS-rtld.c = -mbuild-constants
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),math)
Packit Service 82fcde
# The fma routines rely on inexact being raised for correct results.
Packit Service 82fcde
CFLAGS-s_fma.c = -mieee-with-inexact
Packit Service 82fcde
CFLAGS-s_fmaf.c = -mieee-with-inexact
Packit Service 82fcde
# This test tries to check for inexact being raised by arithmetic.
Packit Service 82fcde
CFLAGS-test-misc.c += -mieee-with-inexact
Packit Service 82fcde
# Avoid "conflicting types for built-in function" warnings
Packit Service 82fcde
CFLAGS-s_isnan.c += -fno-builtin-isnanf
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
# Build everything with full IEEE math support, and with dynamic rounding;
Packit Service 82fcde
# there are a number of math routines that are defined to work with the
Packit Service 82fcde
# "current" rounding mode, and it's easiest to set this with all of them.
Packit Service 82fcde
sysdep-CFLAGS += -mieee -mfp-rounding-mode=d
Packit Service 82fcde
Packit Service 82fcde
# libc.so requires about 16k for the small data area, which is well
Packit Service 82fcde
# below the 64k maximum.
Packit Service 82fcde
pic-ccflag = -fpic
Packit Service 82fcde
Packit Service 82fcde
#  Software floating-point emulation.
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),soft-fp)
Packit Service 82fcde
sysdep_routines += ots_add ots_sub ots_mul ots_div ots_cmp ots_cmpe	\
Packit Service 82fcde
	ots_cvtxq ots_cvtqx ots_cvtqux ots_cvttx ots_cvtxt ots_nintxq	\
Packit Service 82fcde
	fraiseexcpt
Packit Service 82fcde
endif
Packit Service 82fcde
Packit Service 82fcde
ifeq ($(subdir),math)
Packit Service 82fcde
CPPFLAGS += -I../soft-fp
Packit Service 82fcde
endif