Blame sysdeps/alpha/Makefile

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