diff options
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r-- | gcc/dumpfile.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index dc87ab35e8c..435d22dc8eb 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -240,10 +240,10 @@ dump_open_alternate_stream (struct dump_file_info *dfi) if (dfi->alt_stream) return dfi->alt_stream; - stream = strcmp("stderr", dfi->alt_filename) == 0 + stream = strcmp ("stderr", dfi->alt_filename) == 0 ? stderr - : strcmp("stdout", dfi->alt_filename) == 0 - ? stdout + : strcmp ("stdout", dfi->alt_filename) == 0 + ? stdout : fopen (dfi->alt_filename, dfi->alt_state < 0 ? "w" : "a"); if (!stream) @@ -404,10 +404,10 @@ dump_start (int phase, int *flag_ptr) name = get_dump_file_name (phase); if (name) { - stream = strcmp("stderr", name) == 0 + stream = strcmp ("stderr", name) == 0 ? stderr - : strcmp("stdout", name) == 0 - ? stdout + : strcmp ("stdout", name) == 0 + ? stdout : fopen (name, dfi->pstate < 0 ? "w" : "a"); if (!stream) error ("could not open dump file %qs: %m", name); @@ -451,12 +451,12 @@ dump_finish (int phase) return; dfi = get_dump_file_info (phase); if (dfi->pstream && (!dfi->pfilename - || (strcmp("stderr", dfi->pfilename) != 0 - && strcmp("stdout", dfi->pfilename) != 0))) + || (strcmp ("stderr", dfi->pfilename) != 0 + && strcmp ("stdout", dfi->pfilename) != 0))) fclose (dfi->pstream); - if (dfi->alt_stream && strcmp("stderr", dfi->alt_filename) != 0 - && strcmp("stdout", dfi->alt_filename) != 0) + if (dfi->alt_stream && strcmp ("stderr", dfi->alt_filename) != 0 + && strcmp ("stdout", dfi->alt_filename) != 0) fclose (dfi->alt_stream); dfi->alt_stream = NULL; @@ -488,10 +488,10 @@ dump_begin (int phase, int *flag_ptr) return NULL; dfi = get_dump_file_info (phase); - stream = strcmp("stderr", name) == 0 + stream = strcmp ("stderr", name) == 0 ? stderr - : strcmp("stdout", name) == 0 - ? stdout + : strcmp ("stdout", name) == 0 + ? stdout : fopen (name, dfi->pstate < 0 ? "w" : "a"); if (!stream) |