From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18099 invoked by alias); 29 Jun 2008 21:43:39 -0000 Received: (qmail 18085 invoked by uid 22791); 29 Jun 2008 21:43:38 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.189) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Jun 2008 21:42:56 +0000 Received: by nf-out-0910.google.com with SMTP id c10so459183nfd.6 for ; Sun, 29 Jun 2008 14:42:54 -0700 (PDT) Received: by 10.210.38.17 with SMTP id l17mr3513895ebl.34.1214775773916; Sun, 29 Jun 2008 14:42:53 -0700 (PDT) Received: from ?192.168.1.2? ( [213.185.3.143]) by mx.google.com with ESMTPS id z40sm5546510ikz.7.2008.06.29.14.42.52 (version=SSLv3 cipher=RC4-MD5); Sun, 29 Jun 2008 14:42:53 -0700 (PDT) Date: Sun, 29 Jun 2008 21:55:00 -0000 To: gcc-patches@gcc.gnu.org Subject: [committed] Fix NetBSD libgomp bootstrap error. Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-2035910545-1214775756=:8386" From: Krister Walfridsson X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg01919.txt.bz2 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-2035910545-1214775756=:8386 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-length: 672 libgomp breaks bootstrap on NetBSD because of cc1: warnings being treated as errors ../../../gcc/libgomp/env.c: In function 'parse_stacksize': ../../../gcc/libgomp/env.c:207: error: array subscript has type 'char' ../../../gcc/libgomp/env.c: In function 'parse_spincount': ../../../gcc/libgomp/env.c:276: error: array subscript has type 'char' I have committed the attached patch under the obvious rule. Bootstrapped and tested on x86_64-unknown-netbsd4.0 and i386-unknown-netbsdelf3.1. /Krister 2008-06-29 Krister Walfridsson * env.c (parse_stacksize): Add cast to avoid warning. (parse_spincount): Likewise. --0-2035910545-1214775756=:8386 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=env.c.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=env.c.patch Content-length: 822 SW5kZXg6IGxpYmdvbXAvZW52LmMNCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N Ci0tLSBsaWJnb21wL2Vudi5jCShyZXZpc2lvbiAxMzcyNTkpDQorKysgbGli Z29tcC9lbnYuYwkod29ya2luZyBjb3B5KQ0KQEAgLTIwNyw3ICsyMDcsNyBA QCBwYXJzZV9zdGFja3NpemUgKGNvbnN0IGNoYXIgKm5hbWUsIHVuc2lnDQog ICAgICsrZW5kOw0KICAgaWYgKCplbmQgIT0gJ1wwJykNCiAgICAgew0KLSAg ICAgIHN3aXRjaCAodG9sb3dlciAoKmVuZCkpDQorICAgICAgc3dpdGNoICh0 b2xvd2VyICgodW5zaWduZWQgY2hhcikgKmVuZCkpDQogCXsNCiAJY2FzZSAn Yic6DQogCSAgc2hpZnQgPSAwOw0KQEAgLTI3Niw3ICsyNzYsNyBAQCBwYXJz ZV9zcGluY291bnQgKGNvbnN0IGNoYXIgKm5hbWUsIHVuc2lnDQogICAgICsr ZW5kOw0KICAgaWYgKCplbmQgIT0gJ1wwJykNCiAgICAgew0KLSAgICAgIHN3 aXRjaCAodG9sb3dlciAoKmVuZCkpDQorICAgICAgc3dpdGNoICh0b2xvd2Vy ICgodW5zaWduZWQgY2hhcikgKmVuZCkpDQogCXsNCiAJY2FzZSAnayc6DQog CSAgbXVsdCA9IDEwMDBMTDsNCg== --0-2035910545-1214775756=:8386--