From 7a790837802bf1c9dffa1b4e9aa50b2ca9262032 Mon Sep 17 00:00:00 2001 From: Manfred Hollstein Date: Fri, 27 Mar 1998 00:01:08 +0000 Subject: Makefile.in (stmp-fixinc): If we're actually fixing include files... a * Makefile.in (stmp-fixinc): If we're actually fixing include files, copy gcc's assert.h into the fixed include dir. * fixincludes (assert.h): Avoid any attempts to fix a probably broken system specific assert.h file. * fixproto (stdlib.h): Make sure, it'll contain a definition of size_t. From-SVN: r18852 --- gcc/fixproto | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'gcc/fixproto') diff --git a/gcc/fixproto b/gcc/fixproto index b7e85646470..dfeb5964c06 100755 --- a/gcc/fixproto +++ b/gcc/fixproto @@ -120,6 +120,7 @@ required_stdlib_h="abort abs atexit atof atoi atol bsearch calloc exit free gete required_unistd_h="_exit access alarm chdir chown close ctermid cuserid dup dup2 execl execle execlp execv execve execvp fork fpathconf getcwd getegid geteuid getgid getlogin getopt getpgrp getpid getppid getuid isatty link lseek pathconf pause pipe read rmdir setgid setpgid setsid setuid sleep sysconf tcgetpgrp tcsetpgrp ttyname unlink write" done_dirs="" +subdirs_made="" echo "" >fixproto.list for code in ALL STD ; do @@ -174,7 +175,9 @@ for code in ALL STD ; do abs_target_subdir=${abs_target_dir}/${rel_source_subdir} if [ \! -d $abs_target_subdir ] ; then - mkdir $abs_target_subdir + if mkdir $abs_target_subdir ; then + subdirs_made="$abs_target_subdir $subdirs_made" + fi fi # Append "/"; remove initial "./". Hence "." -> "" and "sys" -> "sys/". rel_source_prefix=`echo $rel_source_subdir | sed -e 's|$|/|' -e 's|^./||'` @@ -199,7 +202,9 @@ for code in ALL STD ; do # Create the dir where this file will go when fixed. xxdir=`echo ./$file | sed -e 's|/[^/]*$||'` if [ \! -d $abs_target_subdir/$xxdir ] ; then - mkdir $abs_target_subdir/$xxdir + if mkdir $abs_target_subdir/$xxdir ; then + subdirs_made="$abs_target_subdir/$xxdir $subdirs_made" + fi fi # Just in case we have edited out a symbolic link if [ -f $src_dir_std/$file -a -f $src_dir_std/$xxfile ] ; then @@ -264,10 +269,26 @@ do cat >tmp.h <>tmp.h < +EOF + fi + cat >>tmp.h </dev/null + exit 0 -- cgit v1.2.1