)]}'
{
  "commit": "7da47d53d716b689784eaad20ebe26fdbb33982a",
  "tree": "f1da5304fdc4701c6f1126644166a54c5239781e",
  "parents": [
    "6317befec95f7829da7cb27870279d5d284e96f0"
  ],
  "author": {
    "name": "Jakub Jelinek",
    "email": "jakub@redhat.com",
    "time": "Sun Jul 05 16:47:47 2026 +0200"
  },
  "committer": {
    "name": "Jakub Jelinek",
    "email": "jakub@gcc.gnu.org",
    "time": "Sun Jul 05 16:47:47 2026 +0200"
  },
  "message": "testsuite: Add C++ testcase for the recent PTA bug\n\nOn Wed, Jul 01, 2026 at 09:47:46AM +0200, Eric Botcazou wrote:\n\u003e this is a regression present on mainline, 16, 15 and 14 branches introduced by\n\u003e the fix for PR tree-optimization/112653 (PTA and return).  What happens is\n\u003e that DSE incorrectly eliminates a call to __builtin_memcpy, whose destination\n\u003e is obtained from (an equivalent of) malloc and is ultimately returned from the\n\u003e function.  But this happens only when the dynamic allocation is conditional.\n\nFor us Ada illiterate, here is a C++ testcase which got fixed by this too.\n\n2026-07-05  Jakub Jelinek  \u003cjakub@redhat.com\u003e\n\n\t* g++.dg/opt/20260703-1.C: New test.\n\nReviewed-by: Richard Biener \u003crguenth@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "007f3d2f1127df158faeca55c5e626b9151bbd13",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/g++.dg/opt/20260703-1.C"
    }
  ]
}
