Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
paparazzi-arm-multilib: add patch to build toolchain with gcc4.7
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
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
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
19 changes: 19 additions & 0 deletions
19
linux/paparazzi-arm-multilib/patches/patch-gcc-gengtype-fix.diff
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; |