From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10177 invoked by alias); 1 Oct 2006 16:38:33 -0000 Received: (qmail 10136 invoked by uid 48); 1 Oct 2006 16:38:24 -0000 Date: Sun, 01 Oct 2006 16:38:00 -0000 Message-ID: <20061001163824.10135.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/22423] Warnings when building libgfortran In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00032.txt.bz2 List-Id: ------- Comment #8 from howarth at nitro dot med dot uc dot edu 2006-10-01 16:38 ------- FX, I found a thread that discusses a simple fix... http://curl.haxx.se/mail/lib-2004-10/0089.html All we have to change is... Index: io/list_read.c =================================================================== --- io/list_read.c (revision 117347) +++ io/list_read.c (working copy) @@ -1457,7 +1457,7 @@ check_type (st_parameter_dt *dtp, bt typ greater than one, we copy the data item multiple times. */ static void -list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p, int kind, +list_formatted_read_scalar (st_parameter_dt *dtp, volatile bt type, void *p, int kind, size_t size) { char c; ...to keep type out of a register and the warning goes away! Can you test that change on your system? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22423