Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sh/symbian-base.c @ 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 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Routines for GCC for a Symbian OS targeted SH backend, shared by | 1 /* Routines for GCC for a Symbian OS targeted SH backend, shared by |
2 both the C and C++ compilers. | 2 both the C and C++ compilers. |
3 Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | 3 Copyright (C) 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. |
4 Contributed by RedHat. | 4 Contributed by RedHat. |
5 Most of this code is stolen from i386/winnt.c. | 5 Most of this code is stolen from i386/winnt.c. |
6 | 6 |
7 This file is part of GCC. | 7 This file is part of GCC. |
8 | 8 |
28 #include "output.h" | 28 #include "output.h" |
29 #include "flags.h" | 29 #include "flags.h" |
30 #include "tree.h" | 30 #include "tree.h" |
31 #include "expr.h" | 31 #include "expr.h" |
32 #include "tm_p.h" | 32 #include "tm_p.h" |
33 #include "toplev.h" | 33 #include "diagnostic-core.h" |
34 #include "sh-symbian.h" | 34 #include "sh-symbian.h" |
35 | 35 |
36 /* Return nonzero if SYMBOL is marked as being dllexport'd. */ | 36 /* Return nonzero if SYMBOL is marked as being dllexport'd. */ |
37 | 37 |
38 bool | 38 bool |
114 } | 114 } |
115 else if (sh_symbian_is_dllimported_name (oldname)) | 115 else if (sh_symbian_is_dllimported_name (oldname)) |
116 { | 116 { |
117 /* Already done, but do a sanity check to prevent assembler errors. */ | 117 /* Already done, but do a sanity check to prevent assembler errors. */ |
118 if (!DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl)) | 118 if (!DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl)) |
119 error ("failure in redeclaration of %q+D: dllimport'd symbol lacks external linkage", | 119 error ("failure in redeclaration of %q+D: dllimport%'d symbol lacks external linkage", |
120 decl); | 120 decl); |
121 } | 121 } |
122 else | 122 else |
123 { | 123 { |
124 newname = (char *) alloca (strlen (DLL_IMPORT_PREFIX) + strlen (oldname) + 1); | 124 newname = (char *) alloca (strlen (DLL_IMPORT_PREFIX) + strlen (oldname) + 1); |