This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
config patch
- From: Nathan Sidwell <nathan at acm dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Jun 2002 09:52:20 +0100
- Subject: config patch
- Reply-to: nathan at compsci dot bristol dot ac dot uk
Hi,
Having just tripped over this on sparc, I've installed the following
patch as obvious. Rather than get 'parse error before `value'', you
get the meaningful error.
Installed as obvious. Indented to hide from traditional cpp.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
The voices in my head told me to say this
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
2002-06-19 Nathan Sidwell <nathan@codesourcery.com>
* config/arm/arm.h: Use #error for config error.
* config/m68k/m68k-none.h: Likewise.
* config/m68k/vxm68k.h: Likewise.
* config/sparc/sparc.h: Likewise.
Index: arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.152
diff -c -3 -p -r1.152 arm.h
*** arm/arm.h 10 Jun 2002 22:35:45 -0000 1.152
--- arm/arm.h 19 Jun 2002 08:43:08 -0000
*************** extern GTY(()) rtx aof_pic_label;
*** 159,165 ****
#if TARGET_CPU_DEFAULT == TARGET_CPU_xscale
#define CPP_ARCH_DEFAULT_SPEC "-D__ARM_ARCH_5TE__ -D__XSCALE__"
#else
! Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
--- 159,165 ----
#if TARGET_CPU_DEFAULT == TARGET_CPU_xscale
#define CPP_ARCH_DEFAULT_SPEC "-D__ARM_ARCH_5TE__ -D__XSCALE__"
#else
! #error Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
Index: m68k/m68k-none.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/m68k-none.h,v
retrieving revision 1.3
diff -c -3 -p -r1.3 m68k-none.h
*** m68k/m68k-none.h 16 Dec 1998 21:06:54 -0000 1.3
--- m68k/m68k-none.h 19 Jun 2002 08:43:09 -0000
*************** Boston, MA 02111-1307, USA. */
*** 79,85 ****
#define ASM_CPU_DEFAULT_SPEC "-mc68332"
#define CC1_CPU_DEFAULT_SPEC "-m68332"
#else
! Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
--- 79,85 ----
#define ASM_CPU_DEFAULT_SPEC "-mc68332"
#define CC1_CPU_DEFAULT_SPEC "-m68332"
#else
! #error Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
Index: m68k/vxm68k.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/vxm68k.h,v
retrieving revision 1.6
diff -c -3 -p -r1.6 vxm68k.h
*** m68k/vxm68k.h 3 Mar 2002 21:10:00 -0000 1.6
--- m68k/vxm68k.h 19 Jun 2002 08:43:09 -0000
*************** Boston, MA 02111-1307, USA. */
*** 45,51 ****
#if TARGET_CPU_DEFAULT == M68K_CPU_m68332
#define CPP_SUBTARGET_CPU_DEFAULT_SPEC "-DCPU=MC68332"
#else
! Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
--- 45,51 ----
#if TARGET_CPU_DEFAULT == M68K_CPU_m68332
#define CPP_SUBTARGET_CPU_DEFAULT_SPEC "-DCPU=MC68332"
#else
! #error Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#endif
#endif
Index: sparc/sparc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.h,v
retrieving revision 1.201
diff -c -3 -p -r1.201 sparc.h
*** sparc/sparc.h 15 Jun 2002 01:20:03 -0000 1.201
--- sparc/sparc.h 19 Jun 2002 08:43:10 -0000
*************** extern enum cmodel sparc_cmodel;
*** 187,193 ****
#endif
#if !defined(CPP_CPU32_DEFAULT_SPEC) || !defined(CPP_CPU64_DEFAULT_SPEC)
! Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#ifdef SPARC_BI_ARCH
--- 187,193 ----
#endif
#if !defined(CPP_CPU32_DEFAULT_SPEC) || !defined(CPP_CPU64_DEFAULT_SPEC)
! #error Unrecognized value in TARGET_CPU_DEFAULT.
#endif
#ifdef SPARC_BI_ARCH