summaryrefslogtreecommitdiff
path: root/gcc/c-aux-info.c
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-04-18 16:25:57 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-04-18 16:25:57 +0000
commit23c9add5511276d2bd5e43daed9cb51155cf5147 (patch)
treed1381d76be4ee0a3ee451a0003a44e96255d82c5 /gcc/c-aux-info.c
parent7bc772728b2d09e2d89ca6a6f9084a0944177c1b (diff)
downloadgcc-23c9add5511276d2bd5e43daed9cb51155cf5147.tar.gz
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@776 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-aux-info.c')
-rw-r--r--gcc/c-aux-info.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gcc/c-aux-info.c b/gcc/c-aux-info.c
index 3032f7c5e17..b1c9ad3441e 100644
--- a/gcc/c-aux-info.c
+++ b/gcc/c-aux-info.c
@@ -54,22 +54,6 @@ static char * gen_formal_list_for_func_def ();
static char * gen_type ();
static char * gen_decl ();
void gen_aux_info_record ();
-
-#if 0
-/* Virtually every UN*X system now in common use (except for pre-4.3-tahoe
- BSD systems) now provides getcwd as called for by POSIX. Allow for
- the few exceptions to the general rule here. */
-
-#if !(defined (USG) || defined (VMS))
-extern char *getwd ();
-#define getcwd(buf,len) getwd(buf)
-#define GUESSPATHLEN (MAXPATHLEN + 1)
-#else /* (defined (USG) || defined (VMS)) */
-extern char *getcwd ();
-/* We actually use this as a starting point, not a limit. */
-#define GUESSPATHLEN 100
-#endif /* (defined (USG) || defined (VMS)) */
-#endif /* 0 */
/* Take two strings and mash them together into a newly allocated area. */
@@ -622,26 +606,6 @@ gen_aux_info_record (fndecl, is_definition, is_implicit, is_prototyped)
if (! compiled_from_record++)
{
-#if 0
- int size;
- char *wd;
- char *value;
-
- /* Read the working directory, avoiding arbitrary limit. */
- size = GUESSPATHLEN;
- while (1)
- {
- wd = (char *) xmalloc (size);
- value = getcwd (wd, size);
- if (value != 0 || errno != ERANGE)
- break;
- free (wd);
- size *= 2;
- }
-
- if (value != 0)
- fprintf (aux_info_file, "/* compiled from: %s */\n", wd);
-#endif
/* The first line tells which directory file names are relative to.
Currently, -fgen-aux-info works only for files in the working
directory, so just use a `.' as a placeholder for now. */