This is the mail archive of the gcc-patches@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]

[patch] for gcc-2.95.x branch: fixproto bug


Hi there,

Here is another patch for the gcc-2.95.x branch. There is a bug there in the
fixproto script where it synthesises unistd.h and stdlib.h for systems that
don't have them. It runs them through fix-header, which is correct, but if they
didn't need any fixing and fix-header did nothing, they don't get installed.
This prevents libgcc2 from building, as it relies on them. Below is the obvious
fix. Since this is an obvious bug and has a trivial fix, I think this should go
on the gcc-2.95.x branch.

--
Michael Sokolov		Harhan Engineering Laboratory
Public Service Agent	International Free Computing Task Force
			International Engineering and Science Task Force
			615 N GOOD LATIMER EXPY STE #4
			DALLAS TX 75204-5852 USA

Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)

2000-08-01  Michael Sokolov  <msokolov@ivan.Harhan.ORG>

	* fixproto: Correctly install synthesised unistd.h and stdlib.h when
	they didn't need fixing.

Index: fixproto
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixproto,v
retrieving revision 1.8
diff -c -r1.8 fixproto
*** fixproto	1999/05/17 23:07:40	1.8
--- fixproto	2000/08/01 15:24:22
***************
*** 299,305 ****
  #endif /* __${rel_source_ident} */
  EOF
      ${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path
!     rm tmp.h
    fi
  done
  
--- 299,310 ----
  #endif /* __${rel_source_ident} */
  EOF
      ${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path
!     if test -f $abs_target_dir/$rel_source_file
!     then
!       rm tmp.h
!     else
!       mv tmp.h $abs_target_dir/$rel_source_file
!     fi
    fi
  done
  

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