1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/toolchain/gcc/patches/4.6.2/000-gcc-bug-51969.patch
2022-11-27 10:16:14 +00:00

20 lines
700 B
Diff

--- a/gcc/gengtype.c 2013-10-22 13:06:00.926174748 +0800
+++ b/gcc/gengtype.c 2013-10-22 13:06:53.533513385 +0800
@@ -3594,14 +3594,14 @@
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;
newv.name = ACONCAT ((v->name, ".", field_name, NULL));