Mercurial > hg > CbC > CbC_gcc
diff gcc/config/pa/som.h @ 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 | a06113de4d67 |
children | 04ced10e8804 |
line wrap: on
line diff
--- a/gcc/config/pa/som.h Tue May 25 18:58:51 2010 +0900 +++ b/gcc/config/pa/som.h Tue Mar 22 17:18:12 2011 +0900 @@ -1,6 +1,6 @@ /* Definitions for SOM assembler support. - Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, - Inc. + Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2007, 2010 + Free Software Foundation, Inc. This file is part of GCC. @@ -118,7 +118,7 @@ fputs (",PRIV_LEV=3", FILE); \ } \ for (parm = DECL_ARGUMENTS (DECL), i = 0; parm && i < 4; \ - parm = TREE_CHAIN (parm)) \ + parm = DECL_CHAIN (parm)) \ { \ if (TYPE_MODE (DECL_ARG_TYPE (parm)) == SFmode \ && ! TARGET_SOFT_FLOAT) \ @@ -157,9 +157,7 @@ } \ } \ /* anonymous args */ \ - if (TYPE_ARG_TYPES (tree_type) != 0 \ - && (TREE_VALUE (tree_last (TYPE_ARG_TYPES (tree_type)))\ - != void_type_node)) \ + if (stdarg_p (tree_type)) \ { \ for (; i < 4; i++) \ fprintf (FILE, ",ARGW%d=GR", i); \ @@ -274,11 +272,13 @@ #define ALWAYS_STRIP_DOTDOT 1 /* If GAS supports weak, we can support weak when we have working linker - support for secondary definitions and are generating code for GAS. */ + support for secondary definitions and are generating code for GAS. + This is primarily for one-only support as SOM doesn't allow undefined + weak symbols. */ #ifdef HAVE_GAS_WEAK -#define SUPPORTS_WEAK (TARGET_SOM_SDEF && TARGET_GAS) +#define TARGET_SUPPORTS_WEAK (TARGET_SOM_SDEF && TARGET_GAS) #else -#define SUPPORTS_WEAK 0 +#define TARGET_SUPPORTS_WEAK 0 #endif /* CVS GAS as of 4/28/04 supports a comdat parameter for the .nsubspa @@ -291,7 +291,7 @@ #endif /* We can support one only if we support weak or comdat. */ -#define SUPPORTS_ONE_ONLY (SUPPORTS_WEAK || SUPPORTS_SOM_COMDAT) +#define SUPPORTS_ONE_ONLY (TARGET_SUPPORTS_WEAK || SUPPORTS_SOM_COMDAT) /* We use DECL_COMMON for uninitialized one-only variables as we don't have linkonce .bss. We use SOM secondary definitions or comdat for @@ -302,7 +302,7 @@ && (DECL_INITIAL (DECL) == 0 \ || DECL_INITIAL (DECL) == error_mark_node)) \ DECL_COMMON (DECL) = 1; \ - else if (SUPPORTS_WEAK) \ + else if (TARGET_SUPPORTS_WEAK) \ DECL_WEAK (DECL) = 1; \ } while (0)