From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.schemamania.org (unknown [50.75.19.234]) by sourceware.org (Postfix) with ESMTP id 61DCE3858D1E for ; Sun, 21 Apr 2024 21:05:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61DCE3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=schemamania.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=schemamania.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 61DCE3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=50.75.19.234 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713733539; cv=none; b=II/vDsOZBzF6KfdJCr+Av66pcjjmjfIyKMsahd7hCe0Sl09gLX2ZSjQjYlW09Qi+UDe+VTvaL4KZVd72F0Wmi4naDvGnqcpb8qlnC1hWx7AW1UaLEsg5IPBRf5QPxHcaFEOEvzteKUlqYFDp80JZoIBPyb7oc/rtKTS3zmCzt7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713733539; c=relaxed/simple; bh=/cdodxD50zcr0NKqAWKwFuR0Ayr66tRuPEsLdffKkP8=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=op/SHctkpG84F/tAsz2t6p9WAm0/Ao7WPsdUN5dkq7Xv51f+w1wUVZ3ErI2/STuQKGrLuWIWvcokmSVhoahn3nd6BIkLHRXvapsficgQwQ//ZbiPO6GQcUcLzRGsgfvkbsbYyr+jszRn5xdbCDU4Z4HbPcOMgq53NkG4z20zmAU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from oak.schemamania.org (localhost [IPv6:::1]) by mail.schemamania.org (Postfix) with ESMTP id C0603256FAFF for ; Sat, 20 Apr 2024 18:52:50 -0400 (EDT) Date: Sat, 20 Apr 2024 18:52:50 -0400 From: "James K. Lowden" To: gcc@gcc.gnu.org Subject: warnings and warnings Message-Id: <20240420185250.05104659901ca18b0c6cb842@schemamania.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; x86_64--netbsd) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24,KAM_DMARC_STATUS,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I have two simple questions, I hope! 1. Is there a set of flags that, when compiling gcc, is meant to produce no warnings? I get a surfeit of warnings with my particular favorite options. 2. Are the libgcc functions warning_at() and error_at() intended for use by all front-ends? As of now, our COBOL front-end formats its own messages with fprintf(3). I would like to emulate normal gcc behavior, where warnings can be turned on and off, and (especially) elevated to errors with -Werror. I'm guessing we'd gain access to that functionality automatically if we engaged with the standard diagnositic framework, if there is one. I'm a little doubtful these are the keys to that kingdom, though. The comments regarding location_t and the location database seem very C-specific. --jkl