Bugzilla – Attachment 35 Details for
Bug 3
GDC prints some diagnostic information to stderr instead of stdout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug creation and email sending has been disabled, file new bugs at
gcc.gnu.org/bugzilla
[patch]
Modifies output of -fd-verbose to go to stdout
fdversion.patch (text/plain), 5.19 KB, created by
Daniel Green
on 2013-04-30 17:46:40 CEST
(
hide
)
Description:
Modifies output of -fd-verbose to go to stdout
Filename:
MIME Type:
Creator:
Daniel Green
Created:
2013-04-30 17:46:40 CEST
Size:
5.19 KB
patch
obsolete
>diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc >index acb0e41..62ff5cd 100644 >--- a/gcc/d/d-lang.cc >+++ b/gcc/d/d-lang.cc >@@ -769,8 +769,8 @@ d_parse_file (void) > { > if (global.params.verbose) > { >- fprintf (stdmsg, "binary %s\n", global.params.argv0); >- fprintf (stdmsg, "version %s\n", global.version); >+ printf ("binary %s\n", global.params.argv0); >+ printf ("version %s\n", global.version); > } > > if (global.params.useUnitTests) >@@ -894,7 +894,7 @@ d_parse_file (void) > { > m = modules[i]; > if (global.params.verbose) >- fprintf (stdmsg, "parse %s\n", m->toChars()); >+ printf ("parse %s\n", m->toChars()); > if (!Module::rootModule) > Module::rootModule = m; > m->importedFrom = m; >@@ -931,7 +931,7 @@ d_parse_file (void) > if (fonly_arg && m != output_module) > continue; > if (global.params.verbose) >- fprintf (stdmsg, "import %s\n", m->toChars()); >+ printf ("import %s\n", m->toChars()); > m->genhdrfile(); > } > } >@@ -944,7 +944,7 @@ d_parse_file (void) > { > m = modules[i]; > if (global.params.verbose) >- fprintf (stdmsg, "importall %s\n", m->toChars()); >+ printf ("importall %s\n", m->toChars()); > m->importAll (0); > } > >@@ -956,7 +956,7 @@ d_parse_file (void) > { > m = modules[i]; > if (global.params.verbose) >- fprintf (stdmsg, "semantic %s\n", m->toChars()); >+ printf ("semantic %s\n", m->toChars()); > m->semantic(); > } > >@@ -971,7 +971,7 @@ d_parse_file (void) > { > m = modules[i]; > if (global.params.verbose) >- fprintf (stdmsg, "semantic2 %s\n", m->toChars()); >+ printf ("semantic2 %s\n", m->toChars()); > m->semantic2(); > } > >@@ -983,7 +983,7 @@ d_parse_file (void) > { > m = modules[i]; > if (global.params.verbose) >- fprintf (stdmsg, "semantic3 %s\n", m->toChars()); >+ printf ("semantic3 %s\n", m->toChars()); > m->semantic3(); > } > >@@ -1075,7 +1075,7 @@ d_parse_file (void) > if (fonly_arg && m != output_module) > continue; > if (global.params.verbose) >- fprintf (stdmsg, "code %s\n", m->toChars()); >+ printf ("code %s\n", m->toChars()); > if (!flag_syntax_only) > { > Obj::init (); >diff --git a/gcc/d/d-objfile.cc b/gcc/d/d-objfile.cc >index 2c16526..ffeb89e 100644 >--- a/gcc/d/d-objfile.cc >+++ b/gcc/d/d-objfile.cc >@@ -56,7 +56,7 @@ FuncDeclaration::toObjFile (int) > } > > if (global.params.verbose) >- fprintf (stdmsg, "function %s\n", this->toPrettyChars()); >+ printf ("function %s\n", this->toPrettyChars()); > > IRState *irs = current_irs->startFunction (this); > >diff --git a/gcc/d/dfrontend/attrib.c b/gcc/d/dfrontend/attrib.c >index adc33d1..f30f5a2 100644 >--- a/gcc/d/dfrontend/attrib.c >+++ b/gcc/d/dfrontend/attrib.c >@@ -1010,7 +1010,7 @@ void PragmaDeclaration::semantic(Scope *sc) > char *name = (char *)mem.malloc(se->len + 1); > memcpy(name, se->string, se->len); > name[se->len] = 0; >- fprintf(stdmsg, "library %s\n", name); >+ printf("library %s\n", name); > mem.free(name); > } > } >@@ -1041,7 +1041,7 @@ void PragmaDeclaration::semantic(Scope *sc) > { > /* Print unrecognized pragmas > */ >- fprintf(stdmsg, "pragma %s", ident->toChars()); >+ printf("pragma %s", ident->toChars()); > if (args) > { > for (size_t i = 0; i < args->dim; i++) >diff --git a/gcc/d/dfrontend/expression.c b/gcc/d/dfrontend/expression.c >index f0bf30b..a562f25 100644 >--- a/gcc/d/dfrontend/expression.c >+++ b/gcc/d/dfrontend/expression.c >@@ -6547,7 +6552,7 @@ Expression *FileExp::semantic(Scope *sc) > } > > if (global.params.verbose) >- fprintf(stdmsg, "file %s\t(%s)\n", (char *)se->string, name); >+ printf("file %s\t(%s)\n", (char *)se->string, name); > > { File f(name); > if (f.read()) >diff --git a/gcc/d/dfrontend/json.c b/gcc/d/dfrontend/json.c >index 9a0fdb1..24503b0 100644 >--- a/gcc/d/dfrontend/json.c >+++ b/gcc/d/dfrontend/json.c >@@ -83,7 +83,7 @@ void json_generate(OutBuffer *buf, Modules *modules) > for (size_t i = 0; i < modules->dim; i++) > { Module *m = (*modules)[i]; > if (global.params.verbose) >- fprintf(stdmsg, "json gen %s\n", m->toChars()); >+ printf("json gen %s\n", m->toChars()); > m->toJson(&json); > } > json.arrayEnd(); >diff --git a/gcc/d/dfrontend/module.c b/gcc/d/dfrontend/module.c >index 7f25db2..6a6dda6 100644 >--- a/gcc/d/dfrontend/module.c >+++ b/gcc/d/dfrontend/module.c >@@ -258,15 +258,15 @@ Module *Module::load(Loc loc, Identifiers *packages, Identifier *ident) > > if (global.params.verbose) > { >- fprintf(stdmsg, "import "); >+ printf("import "); > if (packages) > { > for (size_t i = 0; i < packages->dim; i++) > { Identifier *pid = (*packages)[i]; >- fprintf(stdmsg, "%s.", pid->toChars()); >+ printf("%s.", pid->toChars()); > } > } >- fprintf(stdmsg, "%s\t(%s)\n", ident->toChars(), m->srcfile->toChars()); >+ printf("%s\t(%s)\n", ident->toChars(), m->srcfile->toChars()); > } > > if (!m->read(loc))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3
: 35