diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-04-17 14:40:03 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-04-17 14:40:03 +0000 |
commit | 01b2995f8b4d98aaf321f532ca9803d034d8cca4 (patch) | |
tree | bd94192e8a7f679387af225250521e5406eb2217 | |
parent | 2ce6dc2f6aa48acf42384a35e3ccc565c0677699 (diff) | |
download | gcc-01b2995f8b4d98aaf321f532ca9803d034d8cca4.zip gcc-01b2995f8b4d98aaf321f532ca9803d034d8cca4.tar.gz gcc-01b2995f8b4d98aaf321f532ca9803d034d8cca4.tar.bz2 |
Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
* Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
* fixproto: If fix-header fails, exit with an error.
From-SVN: r33208
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/Makefile.in | 3 | ||||
-rwxr-xr-x | gcc/fixproto | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afe17c6..a2acff6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto. + + * fixproto: If fix-header fails, exit with an error. + Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz> * cse.c (struct check_depdendence_data): New. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 493d080..76d93ff 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2316,7 +2316,7 @@ fixhdr.ready: fix-header # if it has already been run on the files in `include'. stmp-fixproto: fixhdr.ready fixproto stmp-int-hdrs @echo "Various warnings and error messages from fixproto are normal" - -if [ -f include/fixed ] ; then true; \ + if [ -f include/fixed ] ; then true; \ else \ : This line works around a 'make' bug in BSDI 1.1.; \ FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \ @@ -2324,6 +2324,7 @@ stmp-fixproto: fixhdr.ready fixproto stmp-int-hdrs export mkinstalldirs; \ if [ -d $(SYSTEM_HEADER_DIR) ] ; then \ $(SHELL) ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \ + if [ $$? -eq 0 ] ; then true ; else exit 1 ; fi ; \ else true; fi; \ touch include/fixed; \ fi diff --git a/gcc/fixproto b/gcc/fixproto index 9e02211..c2c8255 100755 --- a/gcc/fixproto +++ b/gcc/fixproto @@ -264,6 +264,7 @@ for code in ALL STD ; do then true else $FIX_HEADER $rel_source_file $abs_source_file $abs_target_file ${DEFINES} $include_path + if test $? != 0 ; then exit 1 ; fi echo "${rel_source_file}" >>fixproto.list fi done @@ -299,6 +300,7 @@ EOF #endif /* __${rel_source_ident} */ EOF ${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path + if test $? != 0 ; then exit 1 ; fi rm tmp.h fi done |