comparison gcc/config/t-darwin @ 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) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 1 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
2 # 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 TM_H += $(srcdir)/config/darwin-sections.def 19 TM_H += $(srcdir)/config/darwin-sections.def
21 20
22 darwin.o: $(srcdir)/config/darwin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 21 darwin.o: $(srcdir)/config/darwin.c config/darwin-sections.def
23 $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(REAL_H) insn-config.h \ 22 $(COMPILE) $<
24 conditions.h insn-flags.h output.h insn-attr.h flags.h $(TREE_H) expr.h \ 23 $(POSTCOMPILE)
25 reload.h function.h $(GGC_H) langhooks.h $(TARGET_H) $(TM_P_H) gt-darwin.h \
26 config/darwin-sections.def
27 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
28 $(srcdir)/config/darwin.c
29 24
30 darwin-c.o: $(srcdir)/config/darwin-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ 25 darwin-c.o: $(srcdir)/config/darwin-c.c
31 $(TM_H) $(CPPLIB_H) $(TREE_H) $(C_PRAGMA_H) $(TM_P_H) \ 26 $(COMPILE) $(PREPROCESSOR_DEFINES) $<
32 incpath.h flags.h $(C_COMMON_H) 27 $(POSTCOMPILE)
33 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
34 $(srcdir)/config/darwin-c.c $(PREPROCESSOR_DEFINES)
35 28
36 darwin-f.o: $(srcdir)/config/darwin-f.c $(CONFIG_H) $(SYSTEM_H) coretypes.h
37 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
38 $(srcdir)/config/darwin-f.c $(PREPROCESSOR_DEFINES)
39 29
40 darwin-driver.o: $(srcdir)/config/darwin-driver.c \ 30 darwin-f.o: $(srcdir)/config/darwin-f.c
41 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H) opts.h 31 $(COMPILE) $<
42 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ 32 $(POSTCOMPILE)
43 $(srcdir)/config/darwin-driver.c
44 33
45 # How to build crt3.o 34 darwin-driver.o: $(srcdir)/config/darwin-driver.c
46 EXTRA_MULTILIB_PARTS=crt3.o 35 $(COMPILE) $<
47 # Pass -fno-tree-dominator-opts to work around bug 26840. 36 $(POSTCOMPILE)
48 $(T)crt3$(objext): $(srcdir)/config/darwin-crt3.c $(GCC_PASSES) \
49 $(TCONFIG_H) stmp-int-hdrs tsystem.h
50 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
51 -fno-tree-dominator-opts $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) \
52 -c $(srcdir)/config/darwin-crt3.c -o $(T)crt3$(objext)
53
54 # Use unwind-dw2-fde-darwin
55 LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-darwin.c \
56 $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
57 LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
58
59 # -pipe because there's an assembler bug, 4077127, which causes
60 # it to not properly process the first # directive, causing temporary
61 # file names to appear in stabs, causing the bootstrap to fail. Using -pipe
62 # works around this by not having any temporary file names.
63 TARGET_LIBGCC2_CFLAGS = -fPIC -pipe