Remove semicolon from end of defintion of CPP_SPEC in mcore.h
Nick Clifton
nickc@redhat.com
Wed Mar 19 12:20:00 GMT 2003
Hi Guys,
I am applying the patch below to fix a bug in the definition of
CPP_SEPC in mcore.h. The defintion included a semi-colon at the
end which breaks the building of cp/lang-specs.h and causes several
warning messages.
As part of the patch I am also replacing references to "GNU CC" with
"GCC" in the mcore.h header file and fixing up a few formatting
nits.
The mcore port is currently not functional, but that is a problem
for another time.
Cheers
Nick
2003-03-19 Nick Clifton <nickc@redhat.com>
* config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
Index: gcc/config/mcore/mcore.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mcore/mcore.h,v
retrieving revision 1.45
diff -c -3 -p -w -r1.45 mcore.h
*** gcc/config/mcore/mcore.h 12 Mar 2003 11:46:56 -0000 1.45
--- gcc/config/mcore/mcore.h 19 Mar 2003 10:30:07 -0000
***************
*** 1,22 ****
/* Definitions of target machine for GNU compiler,
for Motorola M*CORE Processor.
! Copyright (C) 1993, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
! This file is part of GNU CC.
! GNU CC is free software; you can redistribute it and/or modify
! it under the terms of the GNU General Public License as published by
! the Free Software Foundation; either version 2, or (at your option)
! any later version.
!
! GNU CC is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 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, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef GCC_MCORE_H
--- 1,23 ----
/* Definitions of target machine for GNU compiler,
for Motorola M*CORE Processor.
! Copyright (C) 1993, 1999, 2000, 2001, 2002, 2003
! Free Software Foundation, Inc.
! This file is part of GCC.
! GCC is free software; you can redistribute it and/or modify it
! under the terms of the GNU General Public License as published
! by the Free Software Foundation; either version 2, or (at your
! option) any later version.
!
! GCC is distributed in the hope that it will be useful, but WITHOUT
! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
! License for more details.
You should have received a copy of the GNU General Public License
! along with GCC; see the file COPYING. If not, write to the
! Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef GCC_MCORE_H
*************** Boston, MA 02111-1307, USA. */
*** 67,73 ****
/* If -m4align is ever re-enabled then add this line to the definition of CPP_SPEC
%{!m4align:-D__MCORE_ALIGN_8__} %{m4align:-D__MCORE__ALIGN_4__} */
#undef CPP_SPEC
! #define CPP_SPEC "%{m210:%{mlittle-endian:%ethe m210 does not have little endian support}}";
/* We don't have a -lg library, so don't put it in the list. */
#undef LIB_SPEC
--- 68,74 ----
/* If -m4align is ever re-enabled then add this line to the definition of CPP_SPEC
%{!m4align:-D__MCORE_ALIGN_8__} %{m4align:-D__MCORE__ALIGN_4__} */
#undef CPP_SPEC
! #define CPP_SPEC "%{m210:%{mlittle-endian:%ethe m210 does not have little endian support}}"
/* We don't have a -lg library, so don't put it in the list. */
#undef LIB_SPEC
*************** extern int mcore_stack_increment;
*** 374,380 ****
Aside from that, you can include as many other registers as you like. */
/* RBE: r15 {link register} not available across calls,
! * But we don't mark it that way here... */
#define CALL_USED_REGISTERS \
/* r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ap c fp x19 */ \
{ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1}
--- 375,381 ----
Aside from that, you can include as many other registers as you like. */
/* RBE: r15 {link register} not available across calls,
! But we don't mark it that way here... */
#define CALL_USED_REGISTERS \
/* r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 ap c fp x19 */ \
{ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1}
More information about the Gcc-patches
mailing list