Hi Steve,

Can you explain what differences you find? The CVS patches for mspgcc for 3.2.3 include some changes to 3.2.3 to make it compile with GCC >= 4.0.0. Are those the differences you are seeing?

If I copy the files from mspgcc/gcc/gcc-3.3 ... into a gcc-3.2.3 directory and compare the differences in

diff -rNU 5 gcc-3.2.3-orig/config.sub gcc-3.2.3/config.sub
--- gcc-3.2.3-orig/config.sub   2003-01-31 09:32:36.000000000 +1100
+++ gcc-3.2.3/config.sub        2002-09-06 23:54:04.000000000 +1000
@@ -1,11 +1,11 @@
 #! /bin/sh
 # Configuration validation subroutine script.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+#   2000, 2001, 2002 Free Software Foundation, Inc.

-timestamp='2003-01-28'
+timestamp='2002-02-01'

.......

The differences in config.sub are not needed as it has (somehow) the line required for msp430, using the orignal file from gcc-3.2.3 compiles for the msp430 no problem.

diff -rNU 5 gcc-3.2.3-orig/gcc/config.gcc gcc-3.2.3/gcc/config.gcc
--- gcc-3.2.3-orig/gcc/config.gcc  2003-03-01 05:38:19.000000000 +1100
+++ gcc-3.2.3/gcc/config.gcc    2002-09-06 23:54:05.000000000 +1000
@@ -1,7 +1,7 @@
 # GCC build-, host- and target-specific configuration file.
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 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
@@ -768,10 +768,12 @@
        tmake_file=arm/t-pe
        extra_objs="pe.o"
        ;;
 avr-*-*)
        ;;
+msp430-*-*)
+       ;;
......

The differences in gcc/config.gcc are a few, but the only line that is needed is the msp430-*.*) ;;

Interestingly there are two enteries in the case statement for msp430-*-* (and avr-*-*) and only one is needed.

The changes to make gcc-3.2.3 compile with gcc-4.x don't seem to be there, this is the changes to include/obstack.h I assume, I was thinking of putting this file onto the CVS server? which is where I started to wonder about forking another file into the mspgcc from gcc-3.2.3.

I noticed you have started updating the patches for GCC 3.3. I think this is pointless. We never obtained good results with 3.3, which is why we stopped updating it for new devices.

I would agree, I had the patch and assumes I would have to do similar to gcc-4.0.2 when I got a bit closer, so I fixed it and put it in. I would agree it produces larger code than 3.2.3. gcc-3.3 has the C++ changes if anyone wants them, although I have the c++ changes in gcc-3.2.3 also.

Regards,

--
Peter Jansen

Reply via email to