projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5324a3e
)
dump: filenames containing -
author
Nathan Sidwell
<nathan@acm.org>
Wed, 22 Jul 2020 15:34:22 +0000
(08:34 -0700)
committer
Nathan Sidwell
<nathan@acm.org>
Wed, 22 Jul 2020 15:43:26 +0000
(08:43 -0700)
I discovered the dump machinery would get confused by filenames containing '-'.
Fixed thusly.
gcc/
* dumpfile.c (parse_dump_option): Deal with filenames
containing '-'
gcc/dumpfile.c
patch
|
blob
|
history
diff --git
a/gcc/dumpfile.c
b/gcc/dumpfile.c
index 9a5496a18e88f769a7ce6d4a467a5df4951db726..8e53aeff340d2ca02509cf6ef9b0b42a3fee7d25 100644
(file)
--- a/
gcc/dumpfile.c
+++ b/
gcc/dumpfile.c
@@
-1800,7
+1800,7
@@
parse_dump_option (const char *option_value, const char **pos_p)
end_ptr = strchr (ptr, '-');
eq_ptr = strchr (ptr, '=');
- if (eq_ptr &&
!end_ptr
)
+ if (eq_ptr &&
(!end_ptr || end_ptr > eq_ptr)
)
end_ptr = eq_ptr;
if (!end_ptr)