X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fc-pragma.c;h=886c67b9828eed0f2516d2a7b7f5bb43a48a1c2c;hb=f75acd678af83c0e814fc60e76ddbea4a16d3c5c;hp=238900348261a89e7d62564ffdf6e50824c28353;hpb=913a9523725c692f32d264afe1592adba6fd4528;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 23890034826..886c67b9828 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -15,39 +15,22 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ #include #include "config.h" #include "tree.h" +#include "except.h" #include "function.h" +#include "defaults.h" +#include "c-pragma.h" #ifdef HANDLE_SYSV_PRAGMA -/* Support #pragma weak by default if WEAK_ASM_OP is defined. */ -#if !defined (HANDLE_PRAGMA_WEAK) && defined (WEAK_ASM_OP) && defined (SET_ASM_OP) -#define HANDLE_PRAGMA_WEAK 1 -#endif - -/* See varasm.c for an identical definition. */ -enum pragma_state -{ - ps_start, - ps_done, - ps_bad, - ps_weak, - ps_name, - ps_equals, - ps_value, - ps_pack, - ps_left, - ps_align, - ps_right -}; - /* When structure field packing is in effect, this variable is the number of bits to use as the maximum alignment. When packing is not - in effect, this is zero. */ + in effect, this is zero. */ extern int maximum_field_alignment; @@ -80,7 +63,7 @@ handle_pragma_token (string, token) { #ifdef HANDLE_PRAGMA_WEAK if (HANDLE_PRAGMA_WEAK) - handle_pragma_weak (state, asm_out_file, name, value); + handle_pragma_weak (state, name, value); #endif /* HANDLE_PRAMA_WEAK */ }