)]}'
{
  "commit": "b85e79dce149df68b92ef63ca2a40ff1dfa61396",
  "tree": "c7ea3350f2e4ee42c2024dd513537d65500cc32e",
  "parents": [
    "2a570f11a2fecf23998d7fe1d5cabad62cfe5cec"
  ],
  "author": {
    "name": "Jakub Jelinek",
    "email": "jakub@redhat.com",
    "time": "Thu Apr 28 15:45:33 2022 +0200"
  },
  "committer": {
    "name": "Jakub Jelinek",
    "email": "jakub@redhat.com",
    "time": "Thu Apr 28 15:45:33 2022 +0200"
  },
  "message": "cgraph: Don\u0027t verify semantic_interposition flag for aliases [PR105399]\n\nThe following testcase ICEs, because the ctors during cc1plus all have\n!opt_for_fn (decl, flag_semantic_interposition) - they have NULL\nDECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl) and optimization_default_node\nis for -Ofast and so has flag_semantic_interposition cleared.\nDuring free lang data, we set DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)\nfor the ctor which has body (or for thunks), but don\u0027t touch it for\naliases.\nDuring lto1 optimization_default_node reflects the lto1 flags which\nare -O2 rather than -Ofast and so has flag_semantic_interposition\nset, for the ctor which has body that makes no difference, but as the\nalias doesn\u0027t still have DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl) set,\nwe now trigger this verification check.\n\nThe following patch just doesn\u0027t verify it for aliases during lto1.\nAnother possibility would be to set DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)\nduring free lang data even for aliases.\n\n2022-04-28  Jakub Jelinek  \u003cjakub@redhat.com\u003e\n\n\tPR lto/105399\n\t* cgraph.cc (cgraph_node::verify_node): Don\u0027t verify\n\tsemantic_interposition flag against\n\topt_for_fn (decl, flag_semantic_interposition) for aliases in lto1.\n\n\t* g++.dg/lto/pr105399_0.C: New test.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d3cc06bbaed00c2ab6d3697abac33f699e2d1f96",
      "old_mode": 33188,
      "old_path": "gcc/cgraph.cc",
      "new_id": "0159eaa768b5394e9d4fc2827a80d4f17777a8b6",
      "new_mode": 33188,
      "new_path": "gcc/cgraph.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fc9149a7aa2d6110207bdb71e7bbbd42c13a04bf",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/g++.dg/lto/pr105399_0.C"
    }
  ]
}
