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]

Re: [PATCH] for latest libg++ build failures, and some warning patches


Manfred Hollstein writes:
> Cool, thanks for your contribution.  I'll put it into the next snapshot.

And, you'll never guess what, it still doesn't build, there were more
of the little buggers. I've actually done a `make check' in libg++/etc 
this time, and that builds, so this should be all of them.

Nice to see a g++ stamping on implicit int at last, I must say.

1998-12-12  Nix  <nix@esperi.demon.co.uk>

	* benchmarks/dhrystone.cc(Proc0): Remove unused variable.
	  (main): Do not rely on implicit int.
	* PlotFile3D/tPlotFile3D.cc(main): Likewise.
	* trie-gen/compact.cc(CompactMatrix::CompactMatrix):
	  Order initializer as in field declaration.

*** libg++/etc/benchmarks/dhrystone.cc.orig	Sat Dec 12 15:17:04 1998
--- libg++/etc/benchmarks/dhrystone.cc	Sat Dec 12 15:20:49 1998
***************
*** 416,421 ****
--- 416,422 ----
  
  /*end - dl */
  
+ int
  main()
  {
  	Proc0();
***************
*** 439,445 ****
  	OneToFifty		IntLoc1;
  	REG OneToFifty		IntLoc2;
  	OneToFifty		IntLoc3;
- 	REG char		CharLoc;
  	REG char		CharIndex;
  	Enumeration	 	EnumLoc;
  	String30		String1Loc;
--- 440,445 ----
*** libg++/etc/PlotFile3D/tPlotFile3D.cc.orig	Sat Dec 12 15:22:07 1998
--- libg++/etc/PlotFile3D/tPlotFile3D.cc	Sat Dec 12 15:22:50 1998
***************
*** 1,4 ****
--- 1,5 ----
  #include <PlotFile3D.h>
+ int
  main()
  {
    PlotFile3D foo("test.pl");
*** libg++/etc/trie-gen/compact.cc.orig	Sat Dec 12 15:24:13 1998
--- libg++/etc/trie-gen/compact.cc	Sat Dec 12 15:26:49 1998
***************
*** 57,63 ****
     handle matrices with fixed, but arbitrary-sized columns and rows. */
  
  Compact_Matrix::Compact_Matrix (ITEM_TYPE *mat, int rows, int cols):
!      matrix (mat), max_rows (rows), total_cols (cols), current_rows (rows)
  {
    init (rows);
  
--- 57,63 ----
     handle matrices with fixed, but arbitrary-sized columns and rows. */
  
  Compact_Matrix::Compact_Matrix (ITEM_TYPE *mat, int rows, int cols):
!      total_cols (cols), current_rows (rows), max_rows (rows), matrix (mat)
  {
    init (rows);
  


-- 
`Anyone who says you can have a lot of widely dispersed people hack
 away on a complicated piece of code and avoid total anarchy has never
 managed a software project.' - Andy Tanenbaum in 1992 on comp.os.minix


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