Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/rs6000/t-aix52 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 # Copyright (C) 2002, 2003, 2004, 2005, 2006, | 1 # Copyright (C) 2002-2017 Free Software Foundation, Inc. |
2 # 2008 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 |
15 # | 14 # |
16 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
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 want fine grained libraries, so use the new code to build the | |
21 # floating point emulation libraries. | |
22 FPBIT = fp-bit.c | |
23 DPBIT = dp-bit.c | |
24 | |
25 dp-bit.c: $(srcdir)/config/fp-bit.c | |
26 cat $(srcdir)/config/fp-bit.c > dp-bit.c | |
27 | |
28 fp-bit.c: $(srcdir)/config/fp-bit.c | |
29 echo '#define FLOAT' > fp-bit.c | |
30 cat $(srcdir)/config/fp-bit.c >> fp-bit.c | |
31 | |
32 # Build the libraries for pthread and all of the | 19 # Build the libraries for pthread and all of the |
33 # different processor models | 20 # different processor models |
34 | 21 |
35 MULTILIB_OPTIONS = pthread maix64 | 22 MULTILIB_OPTIONS = pthread maix64 |
36 | 23 |
37 MULTILIB_DIRNAMES = pthread ppc64 | 24 MULTILIB_DIRNAMES = pthread ppc64 |
38 | 25 |
39 MULTILIB_MATCHES = | 26 MULTILIB_MATCHES = |
40 | |
41 LIBGCC = stmp-multilib | |
42 INSTALL_LIBGCC = install-multilib | |
43 | |
44 # Build a shared libgcc library. | |
45 SHLIB_EXT = .a | |
46 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ | |
47 -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \ | |
48 @multilib_flags@ @shlib_objs@ -lc \ | |
49 `case @multilib_dir@ in \ | |
50 *pthread*) echo -L$(TARGET_SYSTEM_ROOT)/usr/lib/threads -lpthreads -lc_r $(TARGET_SYSTEM_ROOT)/usr/lib/libc.a ;; \ | |
51 *) echo -lc ;; esac` ; \ | |
52 rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \ | |
53 $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \ | |
54 @multilib_dir@/shr.o ; \ | |
55 mv @multilib_dir@/tmp-@shlib_base_name@.a \ | |
56 @multilib_dir@/@shlib_base_name@.a ; \ | |
57 rm -f @multilib_dir@/shr.o | |
58 # $(slibdir) double quoted to protect it from expansion while building | |
59 # libgcc.mk. We want this delayed until actual install time. | |
60 SHLIB_INSTALL = \ | |
61 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \ | |
62 $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \ | |
63 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/ | |
64 SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac` | |
65 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk | |
66 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver | |
67 SHLIB_NM_FLAGS = -Bpg -X32_64 | |
68 | |
69 # GCC 128-bit long double support routines. | |
70 LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/ppc64-fp.c \ | |
71 $(srcdir)/config/rs6000/darwin-ldouble.c | |
72 TARGET_LIBGCC2_CFLAGS = -mlong-double-128 | |
73 | |
74 # Either 32-bit and 64-bit objects in archives. | |
75 AR_FLAGS_FOR_TARGET = -X32_64 |