The new PTA code also uncovered a "bug" in gimple-fold which I opened
PR 123160 for.
Until that is fixed, the new PTA code triggers a testcase failure in
gcc.dg/builtin-object-size-4.c
I plan to check in the following patch which can then be reverted or
adjusted when that PR is fixed.
IF anyone has an alternate suggestion, please let me know.
From 48d345ec22c609b179c755b5c9e58133ce255cef Mon Sep 17 00:00:00 2001
From: Andrew MacLeod <[email protected]>
Date: Mon, 15 Jun 2026 11:36:51 -0400
Subject: [PATCH 4/8] PTA causes OBJSIZE to fail execution.
Gimple fold is causing issues by not properly handling pointer_plus.
See PR 123160. XFAILing until resolved.
gcc/testsuite/
* gcc.dg/builtin-object-size-4.c: XFAIL.
---
gcc/testsuite/gcc.dg/builtin-object-size-4.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-4.c b/gcc/testsuite/gcc.dg/builtin-object-size-4.c
index ec7cde9522b..511f844683b 100644
--- a/gcc/testsuite/gcc.dg/builtin-object-size-4.c
+++ b/gcc/testsuite/gcc.dg/builtin-object-size-4.c
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-options "-O2 -Wno-stringop-overread" } */
/* { dg-additional-options "-DSKIP_STRNDUP" { target { ! strndup } } } */
+/* { dg-xfail-run-if "PTA now triggers PR123160" { "*-*-*" } } */
#include "builtin-object-size-common.h"
--
2.45.0