Mercurial > hg > CbC > CbC_gcc
diff gcc/config/cris/linux.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/cris/linux.h Tue May 25 18:58:51 2010 +0900 +++ b/gcc/config/cris/linux.h Tue Mar 22 17:18:12 2011 +0900 @@ -1,5 +1,5 @@ /* Definitions for GCC. Part of the machine description for CRIS. - Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008 + Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Axis Communications. Written by Hans-Peter Nilsson. @@ -56,21 +56,21 @@ #if TARGET_CPU_DEFAULT == 32 # define CRIS_CPP_SUBTARGET_SPEC \ "%{pthread:-D_REENTRANT}\ - %{!march=*:%{!cpu=*:-D__arch_v32 -D__CRIS_arch_version=32}}" + %{!march=*:%{!mcpu=*:-D__arch_v32 -D__CRIS_arch_version=32}}" #else # define CRIS_CPP_SUBTARGET_SPEC \ "%{pthread:-D_REENTRANT}\ - %{!march=*:%{!cpu=*:-D__arch_v10 -D__CRIS_arch_version=10}}" + %{!march=*:%{!mcpu=*:-D__arch_v10 -D__CRIS_arch_version=10}}" #endif #undef CRIS_CC1_SUBTARGET_SPEC #if TARGET_CPU_DEFAULT == 32 # define CRIS_CC1_SUBTARGET_SPEC \ - "%{!march=*:%{!cpu=*:-march=v32}}" + "%{!march=*:%{!mcpu=*:-march=v32}}" #define CRIS_SUBTARGET_DEFAULT_ARCH MASK_AVOID_GOTPLT #else # define CRIS_CC1_SUBTARGET_SPEC \ - "%{!march=*:%{!cpu=*:-march=v10}}" + "%{!march=*:%{!mcpu=*:-march=v10}}" #define CRIS_SUBTARGET_DEFAULT_ARCH 0 #endif @@ -78,13 +78,13 @@ #if TARGET_CPU_DEFAULT == 32 # define CRIS_ASM_SUBTARGET_SPEC \ "--em=criself \ - %{!march=*:%{!cpu=*:--march=v32}} \ + %{!march=*:%{!mcpu=*:--march=v32}} \ %{!fleading-underscore:--no-underscore}\ %{fPIC|fpic|fPIE|fpie: --pic}" #else # define CRIS_ASM_SUBTARGET_SPEC \ "--em=criself \ - %{!march=*:%{!cpu=*:--march=v10}} \ + %{!march=*:%{!mcpu=*:--march=v10}} \ %{!fleading-underscore:--no-underscore}\ %{fPIC|fpic|fPIE|fpie: --pic}" #endif @@ -105,18 +105,14 @@ #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" -/* We need an -rpath-link to ld.so.1, and presumably to each directory - specified with -B. */ #undef CRIS_LINK_SUBTARGET_SPEC #define CRIS_LINK_SUBTARGET_SPEC \ "-mcrislinux\ - %{B*:-rpath-link %*}\ - %{!nostdlib:-rpath-link ../sys-include/asm/../../lib%s}\ %{shared} %{static}\ - %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\ + %{symbolic:-Bdynamic} %{static:-Bstatic}\ %{!shared:%{!static:\ %{rdynamic:-export-dynamic}\ - %{!dynamic-linker:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}}\ + -dynamic-linker " LINUX_DYNAMIC_LINKER "}}\ %{!r:%{O2|O3: --gc-sections}}" @@ -132,7 +128,14 @@ builtin_define ("__NO_UNDERSCORES__"); \ } \ while (0) + +/* Node: Type Layout */ +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" /* Node: Sections */