From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19681 invoked by alias); 7 Oct 2014 16:03:59 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org Received: (qmail 19574 invoked by uid 89); 7 Oct 2014 16:03:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=unavailable version=3.3.2 X-HELO: gproxy5-pub.mail.unifiedlayer.com Received: from gproxy5-pub.mail.unifiedlayer.com (HELO gproxy5-pub.mail.unifiedlayer.com) (67.222.38.55) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Tue, 07 Oct 2014 16:03:52 +0000 Received: (qmail 6931 invoked by uid 0); 7 Oct 2014 16:03:48 -0000 Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy5.mail.unifiedlayer.com with SMTP; 7 Oct 2014 16:03:48 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id 0N3V1p00n2f2jeq01N3YU2; Tue, 07 Oct 2014 16:03:34 -0600 X-Authority-Analysis: v=2.1 cv=F6LEKMRN c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=_cZRQKYwz3QA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=X1qvojbhiZEA:10 a=20KFwNOVAAAA:8 a=DMlbVj47WJLz9HdlsmAA:9 a=jEp0ucaQiEUA:10 Received: from [71.33.139.67] (port=55021 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1XbXEY-0005e2-2l; Tue, 07 Oct 2014 10:03:30 -0600 From: Tom Tromey To: Marek Polacek Cc: java-patches@gcc.gnu.org, GCC Patches Subject: Re: [Java PATCH] Generate declarations in jvgenmain.c References: <20141007083129.GB3503@redhat.com> Date: Tue, 07 Oct 2014 16:03:00 -0000 In-Reply-To: <20141007083129.GB3503@redhat.com> (Marek Polacek's message of "Tue, 7 Oct 2014 10:31:29 +0200") Message-ID: <87fvezrho1.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.139.67 authed with tom+tromey.com} X-SW-Source: 2014-q4/txt/msg00016.txt.bz2 >>>>> "Marek" == Marek Polacek writes: Marek> [CCing java-patches now] Marek> Java testsuite breaks with -std=gnu11 as a default and/or with Marek> -Wimplicit-function-declaration on I don't recall how one gets warnings when compiling this generated code, but if it is generally possible then I think this: Marek> + if (indirect) Marek> + fprintf (stream, "extern void JvRunMainName ();\n"); Marek> + else Marek> + fprintf (stream, "extern void JvRunMain ();\n"); ... will fail with -Wstrict-prototypes, since in C those should read "(void)" rather than "()". If it's not possible then no big deal. Tom