[Bug pch/78970] GCC crashes if input file is dash

2017-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 Martin Liška changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug pch/78970] GCC crashes if input file is dash

2017-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #15 from Martin Liška --- Author: marxin Date: Tue Jan 10 14:10:15 2017 New Revision: 244270 URL: https://gcc.gnu.org/viewcvs?rev=244270&root=gcc&view=rev Log: Do not error when -E provided (PR pch/78970). 2017-01-10 Martin Liska

[Bug pch/78970] GCC crashes if input file is dash

2017-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #14 from Martin Liška --- Author: marxin Date: Tue Jan 10 14:09:43 2017 New Revision: 244269 URL: https://gcc.gnu.org/viewcvs?rev=244269&root=gcc&view=rev Log: Error for '-' as filename of a precompiled header (PR pch/78970) 2017-01

[Bug pch/78970] GCC crashes if input file is dash

2017-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #13 from Martin Liška --- Author: marxin Date: Tue Jan 10 14:08:42 2017 New Revision: 244268 URL: https://gcc.gnu.org/viewcvs?rev=244268&root=gcc&view=rev Log: Do not error when -E provided (PR pch/78970). 2017-01-10 Martin Liska

[Bug pch/78970] GCC crashes if input file is dash

2017-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #12 from Martin Liška --- Author: marxin Date: Tue Jan 10 14:07:41 2017 New Revision: 244267 URL: https://gcc.gnu.org/viewcvs?rev=244267&root=gcc&view=rev Log: Error for '-' as filename of a precompiled header (PR pch/78970) 2017-01

[Bug pch/78970] GCC crashes if input file is dash

2017-01-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 Martin Liška changed: What|Removed |Added Known to fail||5.4.0, 6.3.0 --- Comment #11 from Martin

[Bug pch/78970] GCC crashes if input file is dash

2017-01-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #10 from Martin Liška --- Author: marxin Date: Mon Jan 9 15:24:35 2017 New Revision: 244227 URL: https://gcc.gnu.org/viewcvs?rev=244227&root=gcc&view=rev Log: Do not error when -E provided (PR pch/78970). 2017-01-09 Martin Liska

[Bug pch/78970] GCC crashes if input file is dash

2017-01-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #9 from Martin Liška --- Created attachment 40481 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40481&action=edit Untested patch for the new issue

[Bug pch/78970] GCC crashes if input file is dash

2017-01-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #8 from Martin Liška --- (In reply to jos...@codesourcery.com from comment #7) > This change causes a regression testing glibc. glibc uses "gcc -E -x > c-header -", which now results in an error "cannot use '-' as input > filename

[Bug pch/78970] GCC crashes if input file is dash

2017-01-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #7 from joseph at codesourcery dot com --- This change causes a regression testing glibc. glibc uses "gcc -E -x c-header -", which now results in an error "cannot use '-' as input filename for a precompiled header". But that use w

[Bug pch/78970] GCC crashes if input file is dash

2017-01-05 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #6 from Martin Liška --- Fixed on trunk so far.

[Bug pch/78970] GCC crashes if input file is dash

2017-01-05 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #5 from Martin Liška --- Author: marxin Date: Thu Jan 5 14:17:07 2017 New Revision: 244103 URL: https://gcc.gnu.org/viewcvs?rev=244103&root=gcc&view=rev Log: Error for '-' as filename of a precompiled header (PR pch/78970) 2017-01-

[Bug pch/78970] GCC crashes if input file is dash

2017-01-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #4 from Martin Liška --- Created attachment 40456 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40456&action=edit Untested patch

[Bug pch/78970] GCC crashes if input file is dash

2017-01-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #3 from Martin Liška --- Created attachment 40455 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40455&action=edit Untested patch

[Bug pch/78970] GCC crashes if input file is dash

2017-01-04 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 --- Comment #2 from Martin Liška --- Ok, basic problem is in _cpp_save_file_entries, where we calculate md5sum of all inputs files. Providing '-' will cause to have input file as fd == 0 and ff = fdopen (f->fd, "rb"); md5_str

[Bug pch/78970] GCC crashes if input file is dash

2017-01-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78970 Martin Liška changed: What|Removed |Added Keywords||ice-on-valid-code Status|UNCO