-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging patches by fumon fixing GDB and GCC.
Merge remote-tracking branch 'fumon/master'
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/gcc/gengtype.c b/gcc/gengtype.c | ||
index abf17f8..550d3bb 100644 | ||
--- a/gcc/gengtype.c | ||
+++ b/gcc/gengtype.c | ||
@@ -3594,13 +3594,13 @@ write_field_root (outf_p f, pair_p v, type_p type, const char *name, | ||
int has_length, struct fileloc *line, const char *if_marked, | ||
bool emit_pch, type_p field_type, const char *field_name) | ||
{ | ||
+ struct pair newv; | ||
/* If the field reference is relative to V, rather than to some | ||
subcomponent of V, we can mark any subarrays with a single stride. | ||
We're effectively treating the field as a global variable in its | ||
own right. */ | ||
if (v && type == v->type) | ||
{ | ||
- struct pair newv; | ||
|
||
newv = *v; | ||
newv.type = field_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters