Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/ia64/t-hpux @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 # Copyright (C) 2001, 2002, 2003, 2004, 2005, | 1 # Copyright (C) 2001-2017 Free Software Foundation, Inc. |
2 # 2006 Free Software Foundation, Inc. | |
3 # | 2 # |
4 # This file is part of GCC. | 3 # This file is part of GCC. |
5 # | 4 # |
6 # GCC is free software; you can redistribute it and/or modify | 5 # GCC is free software; you can redistribute it and/or modify |
7 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
17 # along with GCC; see the file COPYING3. If not see | 16 # along with GCC; see the file COPYING3. If not see |
18 # <http://www.gnu.org/licenses/>. | 17 # <http://www.gnu.org/licenses/>. |
19 | 18 |
20 # We need multilib support for HPUX's ILP32 & LP64 modes. | 19 # We need multilib support for HPUX's ILP32 & LP64 modes. |
21 | 20 |
22 LIBGCC = stmp-multilib | |
23 INSTALL_LIBGCC = install-multilib | |
24 | |
25 MULTILIB_OPTIONS = milp32/mlp64 | 21 MULTILIB_OPTIONS = milp32/mlp64 |
26 MULTILIB_DIRNAMES = hpux32 hpux64 | 22 MULTILIB_DIRNAMES = hpux32 hpux64 |
27 MULTILIB_MATCHES = | 23 MULTILIB_MATCHES = |
28 | |
29 # On HP-UX we do not want _fixtfdi, _fixunstfdi, or _floatditf from | |
30 # LIB1ASMSRC. These functions map the 128 bit conversion function names | |
31 # to 80 bit conversions and were done for Linux backwards compatibility. | |
32 | |
33 LIB1ASMFUNCS := $(filter-out _fixtfdi _fixunstfdi _floatditf,$(LIB1ASMFUNCS)) | |
34 | |
35 # Support routines for HP-UX 128 bit floats. | |
36 | |
37 LIB2FUNCS_EXTRA=quadlib.c $(srcdir)/config/floatunsitf.c | |
38 | |
39 quadlib.c: $(srcdir)/config/ia64/quadlib.c | |
40 cat $(srcdir)/config/ia64/quadlib.c > quadlib.c | |
41 | |
42 # We get an undefined main when building a cross compiler because our | |
43 # linkspec has "-u main" and we want that for linking but it makes | |
44 # LIBGCC1_TEST fail because it uses -nostdlib -nostartup. | |
45 | |
46 LIBGCC1_TEST = | |
47 | 24 |
48 # We do not want to include the EH stuff that linux uses, we want to use | 25 # We do not want to include the EH stuff that linux uses, we want to use |
49 # the HP-UX libunwind library. | 26 # the HP-UX libunwind library. |
50 | 27 |
51 T_CFLAGS += -DUSE_LIBUNWIND_EXCEPTIONS | 28 T_CFLAGS += -DUSE_LIBUNWIND_EXCEPTIONS |
52 | |
53 LIB2ADDEH = $(srcdir)/unwind-c.c | |
54 | |
55 SHLIB_EXT = .so | |
56 # Must include -lunwind in the link, so that libgcc_s.so has the necessary | |
57 # DT_NEEDED entry for libunwind. | |
58 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ | |
59 -Wl,+h,@shlib_base_name@.so.0 \ | |
60 -o @multilib_dir@/@shlib_base_name@.so @multilib_flags@ \ | |
61 @shlib_objs@ -lunwind -lc && \ | |
62 rm -f @multilib_dir@/@shlib_base_name@.so.0 && \ | |
63 $(LN_S) @shlib_base_name@.so @multilib_dir@/@shlib_base_name@.so.0 | |
64 # $(slibdir) double quoted to protect it from expansion while building | |
65 # libgcc.mk. We want this delayed until actual install time. | |
66 SHLIB_INSTALL = \ | |
67 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \ | |
68 $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.so \ | |
69 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so.0; \ | |
70 rm -f $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; \ | |
71 $(LN_S) @shlib_base_name@.so.0 \ | |
72 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; \ | |
73 chmod +x $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so | |
74 | |
75 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk |