From owner-freebsd-current@freebsd.org Sun Aug 14 17:01:58 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 707ABBBA3FE; Sun, 14 Aug 2016 17:01:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x241.google.com (mail-it0-x241.google.com [IPv6:2607:f8b0:4001:c0b::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46A631BE3; Sun, 14 Aug 2016 17:01:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x241.google.com with SMTP id c13so1005446ith.1; Sun, 14 Aug 2016 10:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=klADX0tKFT3FBJvovRbgjx94moSVbksnmfgGxAyE/SA=; b=l/B8WOkKfka1e3ZJvDNZ/qHmw0zsOannjZ4OhTVUt+5WTRQOZQwmTyp9kMGH+REomm /JaMqMczX8v6lpbpot8L0S1cQxJFOKA+wlwirSWQUOS+Lvr9rmrs8VRWpgKYOvOUwNKX /KKC8K8LhN5vYr2+9KHsh/k0bsAv3/2SMCSy09YpRA/7F3cQOAus8+CNcMjl/eZDy0e1 EBGlg9z7T9Cqoc1bZNBQ753dbb288oDjcm3+c5mRhbvdJO8nNU7PTHXgIdjJZMgl8oqo 8loKAVKnPufoY5KafzR6fdkcJG4uPMxx9mgVZamaLSZCFzPjdSoxhBeK3ZePPEXY1Mwv vPqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=klADX0tKFT3FBJvovRbgjx94moSVbksnmfgGxAyE/SA=; b=Xg3q8Fnvg6hnUj6lNAsAiUA/L+i5VBBr6VjYFqPADXCVtkIumwDEX/4clwaMOhPZYt v1zw8IUdW/59bVZizbMnQayCWNdYbFFnvRIgQehTtoF1bPldgasJ55IzOxBly+Or1ZRb HedzQcPw7PNzzjErkR2e/9BfaiOHkZHJJI0i7T/Cu0u+5rQvwti55SuXWOBaS5mjv5oy oyji8NEnZWsgxuzI7Lv2XNSkeOjniCSn1xvW86uAYR193LTCf3OgUu36X7gwdp8IdBr/ FSzyqZ48WOqMgfA0UV+8rfY4sDTTchEbNGnoN9e+fQkL519qHb3izF8uZdD+LMCHc7KD CT9g== X-Gm-Message-State: AEkooutm5Xuv/DYuCngFz00ZqAtdzvgJ3rF5Qnz78sSpoGuckyD6xTAJ7CBcjrG03CsJHvCCEnvC9d8ue/2XRQ== X-Received: by 10.36.212.6 with SMTP id x6mr8758434itg.71.1471194117146; Sun, 14 Aug 2016 10:01:57 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.36.141.129 with HTTP; Sun, 14 Aug 2016 10:01:56 -0700 (PDT) From: Adrian Chadd Date: Sun, 14 Aug 2016 10:01:56 -0700 X-Google-Sender-Auth: uMUjH6kzEVw7DpUob3ayJhqyL5g Message-ID: Subject: compiling elf toolchain under gcc-5.3 mips To: "freebsd-mips@freebsd.org" , Ed Maste , freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2016 17:01:58 -0000 hiya, This seems to be needed for compiling elftoolchain under gcc-5.3 targeting mips (CROSS_TOOLCHAIN=mips-gcc) otherwise it complains that sz isn't always initialised: adrian@gertrude:~/work/freebsd/head-embedded/src % svn diff contrib Index: contrib/elftoolchain/elfcopy/ascii.c =================================================================== --- contrib/elftoolchain/elfcopy/ascii.c (revision 303837) +++ contrib/elftoolchain/elfcopy/ascii.c (working copy) @@ -251,6 +251,7 @@ sec_index = 1; sec_addr = entry = 0; while (fgets(line, _LINE_BUFSZ, ifp) != NULL) { + sz = 0; /* Quieten GCC-5.3 */ if (line[0] == '\r' || line[0] == '\n') continue; if (line[0] == '$' && line[1] == '$') { Is that acceptable? -adrian