Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u5BtH-00DdN7-Sd for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Apr 2025 23:10:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u5BtF-007rFl-HP for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Apr 2025 23:09:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u5BtF-007rFO-61 for pgsql-hackers@lists.postgresql.org; Wed, 16 Apr 2025 23:09:58 +0000 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u5BtA-000RfD-1n for pgsql-hackers@lists.postgresql.org; Wed, 16 Apr 2025 23:09:56 +0000 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-6f2b05f87fdso1949006d6.2 for ; Wed, 16 Apr 2025 16:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1744844991; x=1745449791; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6gxM4WEMMpDa1czhENsFhuikx2sBefTkpuGBS9xEr3Y=; b=QFmvfI7GmofsQT1xlcd4ZDsDeSIVGXD2t7VIgUYpfJqgOM9jvMTe+zrQWhsfpPtuIo HTheO4NVTdRUtD4BSvRuNC3Crxo6qS4fv10MHKZyPATp4ty+k4K2gi/mgKe8o8uApue2 QHeF6ehSI+VJM06Ms3nuaGYsN3yULhaw13hc+/bDGOVRM1RcmwDUN8eOpDGPqenmE9p3 amfwkUa//kG5LPtF1r28JX9gZ14+3njcNJv9MZ77+7Ecl7QGfacNACWqQuQcYsG2gfvN UfF5WnE7er/wKEyJLNlFgmctI/bJ6EgFQCug2bk3+Jo5n1rvuRFFG0kmEgJxv6stOhr9 Mm8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744844991; x=1745449791; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6gxM4WEMMpDa1czhENsFhuikx2sBefTkpuGBS9xEr3Y=; b=I1L0uP8TQrQQgJV9u0xx/XEnsFtcNPozgR5knXKUcUPsC4nFDGJgpCGm2zB9HJLP5a SpxO01k5V2bu4oXxL5ldJNuVjvG3eeMo4WAbVLE1TOwQ/PbEjciU3V9E26OIHoRj5xHL JmukuIP9YzK8pB7iiOJrWNgmCgK8DM4nakmIb750MnecPEoMz/HrzQ9FdKF+uWFMu3o9 LcCIT5RdKvitr7ajRjDDeeHTcQWGS9adMzi5mVB6bztGFt6YJlLhhvklUhHJiVHzOINv qfAlenSDR+q163oANlWXrAW/Sd0ml6YA7v+7a7FvOqtg5cba/Q0yah8ca6TXTII206Nz /BYg== X-Forwarded-Encrypted: i=1; AJvYcCVJdkcH/TmjQf7nwGXoz6H54CN5+geWI8F1ezoplb5qNxTZVjl3z0EKDyHTEohZI0w0spLGs5Nl3IjcL+dT@lists.postgresql.org X-Gm-Message-State: AOJu0Yym/pksMjH+qhFyrObLWfrzhY6Df2+tepx8d30t3/E8MwLa14Hx 963gJlSwXefDeEbs0xKNlmRmytkrX54xuoqfU5/CJFSshN8kfNsnEcqsfTlSTET01kwRDeKWBl+ z8tnxgJpWkrNPN7KX3tDu9IcAMYL9fJlo2P8J X-Gm-Gg: ASbGncsxqRQdAqkcMrDzamoQIPDuxleu+38NFWHb0q/Wu6RfoMyDqynjbgj7RCQl6r6 Q1q34paGgquDFpcOsfyKEcgzqOyKb/jXvNezaIxZy2TEbI+TpZGNpBpJutdQata0KjO/End5ScB T2mPxl3hIvf89eNKAXc7MjkOSy0tslcZc= X-Google-Smtp-Source: AGHT+IG30UYeaL6ubB+HMJDEEUO2a80oC87B7I9vkZTzyCi6aiGtG7KdvARldQGMB4h7RVh2bRbsxH09FosDKqKwUV8= X-Received: by 2002:a05:6214:412:b0:6d8:6a74:ae68 with SMTP id 6a1803df08f44-6f2b304b361mr50023836d6.29.1744844991423; Wed, 16 Apr 2025 16:09:51 -0700 (PDT) MIME-Version: 1.0 References: <2074634.1744839761@sss.pgh.pa.us> <0A3CF5C4-9947-42E3-89A9-34FCF7BA95BA@yesql.se> <2078511.1744841564@sss.pgh.pa.us> <2084687.1744844690@sss.pgh.pa.us> In-Reply-To: <2084687.1744844690@sss.pgh.pa.us> From: Jacob Champion Date: Wed, 16 Apr 2025 16:09:40 -0700 X-Gm-Features: ATxdqUHkXyt2lVLLGrKg0REo410pySBdKyIO96CDrcLgaT8G-Y9H5pi4bkgTwas Message-ID: Subject: Re: jsonapi: scary new warnings with LTO enabled To: Tom Lane Cc: Daniel Gustafsson , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 16, 2025 at 4:04=E2=80=AFPM Tom Lane wrote: > Looking through all of the callers of freeJsonLexContext, quite > a lot of them use local JsonLexContext structs, and probably some > of them are more performance-critical than these. So that raises > the question of why are we seeing warnings for only these call > sites? Yeah, I had the same question... > Maybe there is a more elegant way to suppress them. Can we brute-force ignore this particular warning site with a #pragma (suggested in [1])? --Jacob [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98753