This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, when building ARM toolchain, gcc 4.6.2 build fails on pass-1 core C compiler. Host: Linux 3.8.0-35-generic i686, gcc 4.7.3 Target: cortex-a5 Issue is well-known: see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51969 To fix need to add an extra patch file into patches/gcc/4.6.2/ Proposed patches/gcc/4.6.2/001-gcc-bug-51969.patch content: --------------- Author: jakub Date: Tue Feb 14 23:31:42 2012 New Revision: 184239 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184239 Log: PR bootstrap/51969 Backported from mainline 2011-11-08 Michael Matz <matz@suse.de> * gengtype.c (write_field_root): Avoid out-of-scope access of newv. Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/gengtype.c --- --- gcc-4_6-branch/gcc/gengtype.c 2012/02/14 23:26:47 184238 +++ gcc-4_6-branch/gcc/gengtype.c 2012/02/14 23:31:42 184239 @@ -3594,14 +3594,13 @@ 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)); ----------------------------------------------------------- Thanks, Dmitry -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |