Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sh/symbian-c.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 C compiler part of GCC for a Symbian OS targeted SH backend. | 1 /* Routines for C compiler part of GCC for a Symbian OS targeted SH backend. |
2 Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | 2 Copyright (C) 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. |
3 Contributed by RedHat. | 3 Contributed by RedHat. |
4 Most of this code is stolen from i386/winnt.c. | 4 Most of this code is stolen from i386/winnt.c. |
5 | 5 |
6 This file is part of GCC. | 6 This file is part of GCC. |
7 | 7 |
27 #include "output.h" | 27 #include "output.h" |
28 #include "flags.h" | 28 #include "flags.h" |
29 #include "tree.h" | 29 #include "tree.h" |
30 #include "expr.h" | 30 #include "expr.h" |
31 #include "tm_p.h" | 31 #include "tm_p.h" |
32 #include "toplev.h" | 32 #include "diagnostic-core.h" |
33 #include "sh-symbian.h" | 33 #include "sh-symbian.h" |
34 | 34 |
35 | 35 |
36 /* Return the type that we should use to determine if DECL is | 36 /* Return the type that we should use to determine if DECL is |
37 imported or exported. */ | 37 imported or exported. */ |
91 else if (TREE_CODE (decl) == VAR_DECL | 91 else if (TREE_CODE (decl) == VAR_DECL |
92 && TREE_STATIC (decl) | 92 && TREE_STATIC (decl) |
93 && TREE_PUBLIC (decl) | 93 && TREE_PUBLIC (decl) |
94 && !DECL_EXTERNAL (decl)) | 94 && !DECL_EXTERNAL (decl)) |
95 { | 95 { |
96 error ("definition of static data member %q+D of dllimport'd class", | 96 error ("definition of static data member %q+D of dllimport%'d class", |
97 decl); | 97 decl); |
98 return false; | 98 return false; |
99 } | 99 } |
100 | 100 |
101 return true; | 101 return true; |