From patchwork Wed Sep 22 07:09:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 45273 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E1733858421 for ; Wed, 22 Sep 2021 07:10:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E1733858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1632294621; bh=P3nB81Vxz0qaRZLXjMZiN6Uf1TwZ/7cQUL/oDLntyXY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Mgvb6JMEnkKacM5Qn1RURVJvV4DaS9/8ZRMMsfhBoipVigrEoEvIZ3Gi8eOiTVw5u RZXusw19NaYy11IvehJjCzrwWpk14sMr8lWuw22pVqbqzgFmloo/8pRjXVvmctzKOT Cw+Gni1KwZF120zLcL2Fq156agO5dgB1wo9IxA90= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 261DB3858D39 for ; Wed, 22 Sep 2021 07:10:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 261DB3858D39 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-488-t5p0TMPPMJS9mq8aLBA82w-1; Wed, 22 Sep 2021 03:09:57 -0400 X-MC-Unique: t5p0TMPPMJS9mq8aLBA82w-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B0F21006AA2 for ; Wed, 22 Sep 2021 07:09:56 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.176]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9ABC57621B; Wed, 22 Sep 2021 07:09:52 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH 0/2] vfprintf cleanups to avoid -Waddress warning X-From-Line: 1a90d7bf325cd6606bcb083ffc5cd528eefad219 Mon Sep 17 00:00:00 2001 Message-Id: Date: Wed, 22 Sep 2021 09:09:50 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Cc: Martin Sebor Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" These two patches slightly clean up stdio-common/vfprintf-internal.c, reducing code duplication slightly and removing a GCC 12 warning. Tested on i686-linux-gnu and x86_64-linux-gnu. Built with build-many-glibcs.py. Thanks, Florian Florian Weimer (2): vfprintf: Handle floating-point cases outside of process_arg macro vfprintf: Unify argument handling in process_arg stdio-common/vfprintf-internal.c | 392 +++++++++++++------------------ 1 file changed, 164 insertions(+), 228 deletions(-) base-commit: 1356f38df5be0776823eb2c40cc4e607b86b9680