This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: ANSIfy cp/parser.c


Here's my 2 cents worth on the HPUX ports.

As of 3.3, the 64-bit port has essentially reached equivalence in
features and hopefully reliability with the 32-bit port.  Thus, as
long as 3.3 can be built with HP's K&R compiler, then I believe it
provides a suitable starting point for building later versions if
trouble develops.  There is a complete toolkit for the 32-bit port,
so in theory it can be built using a cross compiler.

HP and the HPUX porting centre make binaries available.  Thus, HPUX
shouldn't be a show stopper in ANSIfying GCC.  Indeed, dropping K&R
support might nudge HP into making their ANSI compiler freely available.

The parisc-linux system is coming along nicely.  I believe that in
the near future it will be the OS of choice for running free software
and HPUX will become less relevant.

FWIW, I am pragmatic about the benefits of dropping the capability to
perform K&R bootstraps.  The bundled HP compiler is small and fast.
There is something to be said for a light-weight implementation.  The
error checking in K&R compilers is somewhat different and sometimes it
issues that should be fixed.

With the patch below, 3.4 appears to building successfully in 64-bit
mode with the bundled compiler.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2003-01-10  John David Anglin  <dave.anglin@nrc.gc.ca>

	* expr.h (emit_conditional_add): Add PARAMS to declaration.
	* gengtype-lex.l (malloc, realloc): Move defines after include of
	system.h.

Index: expr.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/expr.h,v
retrieving revision 1.125
diff -u -3 -p -r1.125 expr.h
--- expr.h	8 Jan 2003 11:20:18 -0000	1.125
+++ expr.h	10 Jan 2003 07:56:03 -0000
@@ -307,9 +307,9 @@ rtx emit_conditional_move PARAMS ((rtx, 
 int can_conditionally_move_p PARAMS ((enum machine_mode mode));
 
 #endif
-rtx emit_conditional_add (rtx, enum rtx_code, rtx, rtx,
-			  enum machine_mode, rtx, rtx,
-			  enum machine_mode, int);
+rtx emit_conditional_add PARAMS ((rtx, enum rtx_code, rtx, rtx,
+				  enum machine_mode, rtx, rtx,
+				  enum machine_mode, int));
 
 
 /* Functions from expmed.c:  */
Index: gengtype-lex.l
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/gengtype-lex.l,v
retrieving revision 1.10
diff -u -3 -p -r1.10 gengtype-lex.l
--- gengtype-lex.l	16 Dec 2002 18:19:33 -0000	1.10
+++ gengtype-lex.l	10 Jan 2003 07:56:03 -0000
@@ -20,13 +20,13 @@ Software Foundation, 59 Temple Place - S
 02111-1307, USA.  */
 
 %{
-#define malloc xmalloc
-#define realloc xrealloc
-
 #include "bconfig.h"
 #include "coretypes.h"
 #include "system.h"
-#include "system.h"
+
+#define malloc xmalloc
+#define realloc xrealloc
+
 #include "gengtype.h"
 #include "gengtype-yacc.h"
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]