Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/alpha/t-vms @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 LIB2FUNCS_EXTRA = $(srcdir)/config/alpha/vms_tramp.asm | 1 # Copyright (C) 1996, 1997, 1998, 2001, 2002, |
2 # 2007, 2009 Free Software Foundation, Inc. | |
3 # | |
4 # This file is part of GCC. | |
5 # | |
6 # 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 | |
8 # the Free Software Foundation; either version 3, or (at your option) | |
9 # any later version. | |
10 # | |
11 # GCC is distributed in the hope that it will be useful, | |
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 # GNU General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU General Public License | |
17 # along with GCC; see the file COPYING3. If not see | |
18 # <http://www.gnu.org/licenses/>. | |
2 | 19 |
3 # VMS_EXTRA_PARTS is defined in x-vms and represent object files that | 20 LIB2FUNCS_EXTRA = $(srcdir)/config/alpha/vms-gcc_shell_handler.c |
4 # are only needed for VMS targets, but can only be compiled on a VMS host | 21 |
5 # (because they need DEC C). | 22 EXTRA_PARTS = vms-dwarf2.o vms-dwarf2eh.o $(VMS_EXTRA_PARTS) \ |
6 EXTRA_PARTS = vms-dwarf2.o vms-dwarf2eh.o $(VMS_EXTRA_PARTS) | 23 crtbegin.o crtbeginS.o crtend.o crtendS.o |
7 | 24 |
8 # This object must be linked with in order to make the executable debuggable. | 25 # This object must be linked with in order to make the executable debuggable. |
9 # vms-ld handles it automatically when passed -g. | 26 # vms-ld handles it automatically when passed -g. |
10 $(T)vms-dwarf2.o : $(srcdir)/config/alpha/vms-dwarf2.asm | 27 $(T)vms-dwarf2.o : $(srcdir)/config/alpha/vms-dwarf2.asm |
11 gcc -c -x assembler $< -o $@ | 28 $(GCC_FOR_TARGET) -c -x assembler $< -o $@ |
12 | 29 |
13 $(T)vms-dwarf2eh.o : $(srcdir)/config/alpha/vms-dwarf2eh.asm | 30 $(T)vms-dwarf2eh.o : $(srcdir)/config/alpha/vms-dwarf2eh.asm |
14 gcc -c -x assembler $< -o $@ | 31 $(GCC_FOR_TARGET) -c -x assembler $< -o $@ |
15 | |
16 # Assemble startup files. | |
17 $(T)vcrt0.o: $(CRT0_S) $(GCC_PASSES) | |
18 decc -c /names=as_is $(srcdir)/config/alpha/vms-crt0.c -o $(T)vcrt0.o | |
19 | |
20 $(T)pcrt0.o: $(CRT0_S) $(GCC_PASSES) | |
21 decc -c /names=as_is $(srcdir)/config/alpha/vms-psxcrt0.c -o $(T)pcrt0.o | |
22 | 32 |
23 MULTILIB_OPTIONS = mcpu=ev6 | 33 MULTILIB_OPTIONS = mcpu=ev6 |
24 MULTILIB_DIRNAMES = ev6 | 34 MULTILIB_DIRNAMES = ev6 |
35 MULTILIB_OSDIRNAMES = ev6 | |
25 LIBGCC = stmp-multilib | 36 LIBGCC = stmp-multilib |
26 INSTALL_LIBGCC = install-multilib | 37 INSTALL_LIBGCC = install-multilib |
38 | |
39 shlib_version:=$(shell echo $(BASEVER_c) | sed -e 's/\./,/' -e 's/\.//g') | |
40 SHLIB_EXT = .exe | |
41 SHLIB_OBJS = @shlib_objs@ | |
42 SHLIB_NAME = @shlib_base_name@.exe | |
43 SHLIB_MULTILIB = | |
44 SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_NAME) $$(DESTDIR)$$(libsubdir)/$(SHLIB_NAME) | |
45 SHLIB_SYMVEC = \ | |
46 grep -F -e "\$$BSS\$$" -e "\$$DATA\$$" -e " sdata " -e " data.rel " -e " data.rel.ro " -e " sbss " \ | |
47 -e "\$$LINK\$$" -e "\$$READONLY\$$" | \ | |
48 sed -e "s/.*\$$LINK\$$ \(.*\)/SYMBOL_VECTOR=(\1=PROCEDURE)/" \ | |
49 -e "s/.*\$$DATA\$$ \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" \ | |
50 -e "s/.* sbss \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" \ | |
51 -e "s/.* sdata \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" \ | |
52 -e "s/.* data.rel \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" \ | |
53 -e "s/.* data.rel.ro \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" \ | |
54 -e "s/.*\$$BSS\$$ \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" \ | |
55 -e "s/.*\$$READONLY\$$ \(.*\)/SYMBOL_VECTOR=(\1=DATA)/" | |
56 SHLIB_SYMVECX2 := $(subst $$,$$$$,$(SHLIB_SYMVEC)) | |
57 SHLIB_LINK = \ | |
58 echo "case_sensitive=yes" > SYMVEC_$$$$$$$$.opt; \ | |
59 objdump --syms $(SHLIB_OBJS) | \ | |
60 $(SHLIB_SYMVECX2) >> SYMVEC_$$$$$$$$.opt ; \ | |
61 echo "case_sensitive=NO" >> SYMVEC_$$$$$$$$.opt; \ | |
62 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -nodefaultlibs \ | |
63 -shared --for-linker=/noinform -o $(SHLIB_NAME) $(SHLIB_OBJS) \ | |
64 --for-linker=SYMVEC_$$$$$$$$.opt \ | |
65 --for-linker=gsmatch=equal,$(shlib_version) |