From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EARIML8ErF9lLwAAWB0awg (envelope-from ) for ; Wed, 11 Nov 2020 10:35:27 -0500 Received: by simark.ca (Postfix, from userid 112) id C429F1F08B; Wed, 11 Nov 2020 10:35:27 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6F7141E58F for ; Wed, 11 Nov 2020 10:35:27 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0166639878BD; Wed, 11 Nov 2020 15:35:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0166639878BD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1605108927; bh=Oa2q/D2xfVGESfqfjZoahaZ2b55hJhxV+d1QZuvedVk=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=MUj3OioqHMSrvcBURxmm7fNWhNWTtwtM//5nhqwOu8s/HKqEYL93A7oSjJdB0nLzZ J8dTC+b2ooKV7UqzCZQDU85zUPMw09Pzgs36PPQtt3KhybHJyc7dZ6o+UzYy54asGk Pqp1xNW2sVH5VGE7j4MoFcLxrdsOFn2ZA+QB6lDQ= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id BF8203854827 for ; Wed, 11 Nov 2020 15:35:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF8203854827 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-533-zwrLrjiGM0SHyklnMvIlqA-1; Wed, 11 Nov 2020 10:35:21 -0500 X-MC-Unique: zwrLrjiGM0SHyklnMvIlqA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6E8CD18FE88F; Wed, 11 Nov 2020 15:33:20 +0000 (UTC) Received: from [10.36.113.124] (ovpn-113-124.ams2.redhat.com [10.36.113.124]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C96773679; Wed, 11 Nov 2020 15:33:18 +0000 (UTC) Subject: Re: RFA: m32r sim: Add prototypes for functions that pass/return DI values To: Simon Marchi , dje@sebabeach.org, andrew.burgess@embecosm.com References: <87ft5hhzwo.fsf@redhat.com> <682bf449-242f-8200-df3e-44cad1173ab9@simark.ca> Organization: Red Hat Message-ID: <31ff7443-51c4-04a0-8463-39732a5f7a00@redhat.com> Date: Wed, 11 Nov 2020 15:33:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <682bf449-242f-8200-df3e-44cad1173ab9@simark.ca> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Nick Clifton via Gdb-patches Reply-To: Nick Clifton Cc: gdb-patches@sourceware.org, law@redhat.com Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Hi Simon, > This kind of problem bit us in the past in GDB too. I'd suggest trying > to make the sim build system enable any or all of these warnings to > catch such problems. > > -Wmissing-declarations > -Wmissing-prototypes > -Wold-style-declaration > -Wold-style-definition > -Wstrict-prototypes I think that this would be an excellent idea. Although I think that it might cause a lot of work for the maintainers of cgen based simulators. Cheers Nick