From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5433 invoked by alias); 8 May 2014 08:59:23 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 5420 invoked by uid 89); 8 May 2014 08:59:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f178.google.com Received: from mail-wi0-f178.google.com (HELO mail-wi0-f178.google.com) (209.85.212.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 08 May 2014 08:59:20 +0000 Received: by mail-wi0-f178.google.com with SMTP id hm4so2700484wib.17 for ; Thu, 08 May 2014 01:59:17 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.75.45 with SMTP id z13mr2424468wiv.41.1399539557893; Thu, 08 May 2014 01:59:17 -0700 (PDT) Received: by 10.216.227.72 with HTTP; Thu, 8 May 2014 01:59:17 -0700 (PDT) Date: Thu, 08 May 2014 08:59:00 -0000 Message-ID: Subject: crosstool-NG 1.19 fails to build gcc 4.6.2 on host gcc version 4.7.3 From: Dmitry Rozenshteyn To: crossgcc@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00012.txt.bz2 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 * 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