Hi,

Attached is a patch for the gcc-3.4 cvs to allow it to be built in different directories than the source.

Also a minor fix to get rid of a few warnings when building.

Regards,

--
Peter Jansen
STS
Australian Antarctic Division
Channel Highway
Kingston
TAS        7050
AUSTRALIA
Ph  (03) 62 323 533
Fax (03) 62 323 351

___________________________________________________________________________

   Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are
not the intended recipient, you are notified that use or dissemination of
this communication is strictly prohibited by Commonwealth law. If you have
received this transmission in error, please notify the sender immediately
by e-mail or by telephoning +61 3 6232 3209 and DELETE the message.
       Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________
diff -rU 3 gcc/gcc-3.4/gcc/config/msp430/msp430.c 
gcc-20030331-patch/gcc-3.4/gcc/config/msp430/msp430.c
--- gcc/gcc-3.4/gcc/config/msp430/msp430.c      2003-02-14 19:06:13.000000000 
+1100
+++ gcc-20030331-patch/gcc-3.4/gcc/config/msp430/msp430.c       2003-04-03 
15:22:29.000000000 +1000
@@ -20,8 +20,6 @@
 
 #include "config.h"
 #include "system.h"
-#include "coretypes.h"
-#include "tm.h"
 #include "rtl.h"
 #include "regs.h"
 #include "hard-reg-set.h"
diff -rU 3 gcc/gcc-3.4/gcc/config/msp430/msp430.h 
gcc-20030331-patch/gcc-3.4/gcc/config/msp430/msp430.h
--- gcc/gcc-3.4/gcc/config/msp430/msp430.h      2003-02-14 19:11:17.000000000 
+1100
+++ gcc-20030331-patch/gcc-3.4/gcc/config/msp430/msp430.h       2003-04-03 
15:22:27.000000000 +1000
@@ -398,8 +398,8 @@
 #define BRANCH_COSTS 0
 #define SLOW_BYTE_ACCESS 0
 
-// #define NO_FUNCTION_CSE
-// #define NO_RECURSIVE_FUNCTION_CSE
+/* #define NO_FUNCTION_CSE */
+/* #define NO_RECURSIVE_FUNCTION_CSE */
 
 #define TEXT_SECTION_ASM_OP "\t.text"
 #define DATA_SECTION_ASM_OP "\t.data"
@@ -436,7 +436,7 @@
 
 #define JUMP_TABLES_IN_TEXT_SECTION 0
 
-#define UNIQUE_SECTION(DECL, RELOC) unique_section (DECL, RELOC)
+/* #define UNIQUE_SECTION(DECL, RELOC) unique_section (DECL, RELOC) */
 
 #define ASM_FILE_START(STREAM) asm_file_start (STREAM)
 #define ASM_FILE_END(STREAM) asm_file_end (STREAM)
@@ -770,8 +770,8 @@
 %{mmcu=msp430x337:%(cpp_msp2) -D__MSP430_337__} \
 %{posix:-D_POSIX_SOURCE}"
 
-#define NO_BUILTIN_SIZE_TYPE
-#define NO_BUILTIN_PTRDIFF_TYPE
+/* #define NO_BUILTIN_SIZE_TYPE */
+/* #define NO_BUILTIN_PTRDIFF_TYPE */
 
 #define CC1_SPEC "%{profile:-p}"
 

Reply via email to