public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/64690] New: -freport-bug issue with comments
@ 2015-01-20 13:57 jakub at gcc dot gnu.org
2015-01-21 8:28 ` [Bug driver/64690] " chefmax at gcc dot gnu.org
2015-01-22 10:56 ` chefmax at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-01-20 13:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64690
Bug ID: 64690
Summary: -freport-bug issue with comments
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: chefmax at gcc dot gnu.org
As -freport-bug dumps also the error output into the file as /* ... */
comment, there is a problem if that text includes /* or */ character sequences.
E.g. take PR64688 testcase, add /* */ before last line, so it reads:
/* */ void performance_testtest_method() { test_fill<K<int>, Q<unsigned,
int>>(0); }
./xg++ -B ./ -S -O3 -march=westmere pr64688.C -std=c++11 -freport-bug
gives err file that contains
/* ...
/* */ void performance_testtest_method() { test_fill<K<int>, Q<unsigned,
int>>(0); }
...
*/
Perhaps /* and */ in the output should be replaced by something that won't be
parsed as comment beginning or end, like //^H* and **^H/ ? ^H meaning literal
backspace (\x08) char, so that at least when you cat it to terminal you won't
notice the difference.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug driver/64690] -freport-bug issue with comments
2015-01-20 13:57 [Bug driver/64690] New: -freport-bug issue with comments jakub at gcc dot gnu.org
@ 2015-01-21 8:28 ` chefmax at gcc dot gnu.org
2015-01-22 10:56 ` chefmax at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: chefmax at gcc dot gnu.org @ 2015-01-21 8:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64690
--- Comment #1 from Maxim Ostapenko <chefmax at gcc dot gnu.org> ---
Thanks, I'll send the fix shortly.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug driver/64690] -freport-bug issue with comments
2015-01-20 13:57 [Bug driver/64690] New: -freport-bug issue with comments jakub at gcc dot gnu.org
2015-01-21 8:28 ` [Bug driver/64690] " chefmax at gcc dot gnu.org
@ 2015-01-22 10:56 ` chefmax at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: chefmax at gcc dot gnu.org @ 2015-01-22 10:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64690
--- Comment #2 from Maxim Ostapenko <chefmax at gcc dot gnu.org> ---
Author: chefmax
Date: Thu Jan 22 10:55:32 2015
New Revision: 219990
URL: https://gcc.gnu.org/viewcvs?rev=219990&root=gcc&view=rev
Log:
2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
PR driver/64690
* gcc.c (insert_comments): New function.
(try_generate_repro): Call it.
(append_text): Removed.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gcc.c
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-22 10:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-20 13:57 [Bug driver/64690] New: -freport-bug issue with comments jakub at gcc dot gnu.org
2015-01-21 8:28 ` [Bug driver/64690] " chefmax at gcc dot gnu.org
2015-01-22 10:56 ` chefmax at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).