Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/mips/t-sr71k @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | 77e2b8dfacca |
children | 04ced10e8804 |
rev | line source |
---|---|
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
1 # Copyright (C) 2002, 2003, 2010 Free Software Foundation, Inc. |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
3 # This file is part of GCC. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
4 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
5 # GCC is free software; you can redistribute it and/or modify |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 # it under the terms of the GNU General Public License as published by |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
7 # the Free Software Foundation; either version 3, or (at your option) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
8 # any later version. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
9 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
10 # GCC is distributed in the hope that it will be useful, |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
13 # GNU General Public License for more details. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
14 # |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
15 # You should have received a copy of the GNU General Public License |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
16 # along with GCC; see the file COPYING3. If not see |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
17 # <http://www.gnu.org/licenses/>. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
18 |
0 | 19 # Suppress building libgcc1.a, since the MIPS compiler port is complete |
20 # and does not need anything from libgcc1.a. | |
21 LIBGCC1 = | |
22 CROSS_LIBGCC1 = | |
23 | |
24 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o | |
25 # Don't let CTOR_LIST end up in sdata section. | |
26 CRTSTUFF_T_CFLAGS = -G 0 | |
27 | |
28 # Assemble startup files. | |
29 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES) | |
30 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ | |
31 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm | |
32 | |
33 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES) | |
34 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ | |
35 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm | |
36 | |
37 # We must build libgcc2.a with -G 0, in case the user wants to link | |
38 # without the $gp register. | |
39 TARGET_LIBGCC2_CFLAGS = -G 0 | |
40 | |
41 # fp-bit and dp-bit are really part of libgcc1, but this will cause | |
42 # them to be built correctly, so... [taken from t-sparclite] | |
43 # We want fine grained libraries, so use the new code to build the | |
44 # floating point emulation libraries. | |
45 FPBIT = fp-bit.c | |
46 DPBIT = dp-bit.c | |
47 | |
48 dp-bit.c: $(srcdir)/config/fp-bit.c | |
49 echo '#ifdef __MIPSEL__' > dp-bit.c | |
50 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c | |
51 echo '#endif' >> dp-bit.c | |
52 cat $(srcdir)/config/fp-bit.c >> dp-bit.c | |
53 | |
54 fp-bit.c: $(srcdir)/config/fp-bit.c | |
55 echo '#define FLOAT' > fp-bit.c | |
56 echo '#ifdef __MIPSEL__' >> fp-bit.c | |
57 echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c | |
58 echo '#endif' >> fp-bit.c | |
59 cat $(srcdir)/config/fp-bit.c >> fp-bit.c | |
60 | |
61 # Build the libraries for both hard and soft floating point | |
62 | |
63 MULTILIB_OPTIONS = EL/EB msoft-float mips2 | |
64 MULTILIB_DIRNAMES = el eb soft-float mips2 | |
65 | |
66 LIBGCC = stmp-multilib | |
67 INSTALL_LIBGCC = install-multilib |