)]}'
{
  "commit": "d35cd84185331e8f13eb7ce01029fb16c4cb8d31",
  "tree": "f08b37c21c12853a5ae2700c66c2840699fef267",
  "parents": [
    "cc33cf487524e738e3bb723154ce315dda4fefdd"
  ],
  "author": {
    "name": "Andrew Pinski",
    "email": "andrew.pinski@oss.qualcomm.com",
    "time": "Tue Mar 31 19:56:00 2026 -0700"
  },
  "committer": {
    "name": "Andrew Pinski",
    "email": "andrew.pinski@oss.qualcomm.com",
    "time": "Wed Apr 01 04:11:17 2026 -0700"
  },
  "message": "forwprop: Add missing NULL check on vdef in optimize_aggr_zeroprop [PR124742]\n\nWhen I converted optimize_aggr_zeroprop into a forward walk instead of\na backward walk, I missed that the vdef of a memset call could be NULL.\nThis only happens when there is \"undefined\" declaration of memset exists.\nAnyways this fixes the ICE by adding the NULL check and an early out.\n\nBootstrapped and tested on x86_64-linux-gnu.\n\n\tPR tree-optimization/124742\n\ngcc/ChangeLog:\n\n\t* tree-ssa-forwprop.cc (optimize_aggr_zeroprop): Exit\n\tif the vdef on the stmt is NULL.\n\ngcc/testsuite/ChangeLog:\n\n\t* gcc.dg/torture/pr124742-1.c: New test.\n\nSigned-off-by: Andrew Pinski \u003candrew.pinski@oss.qualcomm.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "41cbef643784fe20dca7ce7dd8d28f5b9f27f5f1",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/gcc.dg/torture/pr124742-1.c"
    },
    {
      "type": "modify",
      "old_id": "b5544414ca6eb463d9a23735fa77364ecdfbc1dd",
      "old_mode": 33188,
      "old_path": "gcc/tree-ssa-forwprop.cc",
      "new_id": "f060275d72d983381fe4e470f0fd917860b2707f",
      "new_mode": 33188,
      "new_path": "gcc/tree-ssa-forwprop.cc"
    }
  ]
}
