diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2005-05-04 17:56:21 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2005-05-04 17:56:21 +0000 |
commit | 1351ec824318822e14c89459a01806a56e796a46 (patch) | |
tree | 179f729eaec8e8af7a662c3479761ecf038ac7a5 | |
parent | 5ea30da0d2a33aec6479f5fd313d43a633ae1901 (diff) | |
download | gcc-1351ec824318822e14c89459a01806a56e796a46.zip gcc-1351ec824318822e14c89459a01806a56e796a46.tar.gz gcc-1351ec824318822e14c89459a01806a56e796a46.tar.bz2 |
* protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
(keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
From-SVN: r99223
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/protoize.c | 20 |
2 files changed, 16 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dedfded..f42ea1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-05-04 Richard Sandiford <rsandifo@redhat.com> + + * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag) + (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern. + 2005-05-04 Kazu Hirata <kazu@cs.umass.edu> * tree-outof-ssa.c (edge_leader, stmt_list, diff --git a/gcc/protoize.c b/gcc/protoize.c index 9940f95..b7c2ec6 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -361,6 +361,8 @@ static const char *pname; static int errors = 0; /* Option flags. */ +/* ??? The variables are not marked static because some of them have + the same names as gcc variables declared in options.h. */ /* ??? These comments should say what the flag mean as well as the options that set them. */ @@ -368,20 +370,20 @@ static int errors = 0; something other than gcc. */ static const char *compiler_file_name = "gcc"; -static int version_flag = 0; /* Print our version number. */ -static int quiet_flag = 0; /* Don't print messages normally. */ -static int nochange_flag = 0; /* Don't convert, just say what files - we would have converted. */ -static int nosave_flag = 0; /* Don't save the old version. */ -static int keep_flag = 0; /* Don't delete the .X files. */ +int version_flag = 0; /* Print our version number. */ +int quiet_flag = 0; /* Don't print messages normally. */ +int nochange_flag = 0; /* Don't convert, just say what files + we would have converted. */ +int nosave_flag = 0; /* Don't save the old version. */ +int keep_flag = 0; /* Don't delete the .X files. */ static const char ** compile_params = 0; /* Option string for gcc. */ #ifdef UNPROTOIZE static const char *indent_string = " "; /* Indentation for newly inserted parm decls. */ #else /* !defined (UNPROTOIZE) */ -static int local_flag = 0; /* Insert new local decls (when?). */ -static int global_flag = 0; /* set by -g option */ -static int cplusplus_flag = 0; /* Rename converted files to *.C. */ +int local_flag = 0; /* Insert new local decls (when?). */ +int global_flag = 0; /* set by -g option */ +int cplusplus_flag = 0; /* Rename converted files to *.C. */ static const char *nondefault_syscalls_dir = 0; /* Dir to look for SYSCALLS.c.X in. */ #endif /* !defined (UNPROTOIZE) */ |