)]}'
{
  "commit": "df4397e378fa6813301e80c08fd1358aa07697df",
  "tree": "9a655fc814e9664c71f47da7f63a16427bdda69a",
  "parents": [
    "c560a5fbae3b6e0b7c2119e6fc276941517377fa"
  ],
  "author": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Thu Apr 14 11:32:34 2022 -0400"
  },
  "committer": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Thu Apr 14 11:32:34 2022 -0400"
  },
  "message": "gdb: remove move constructor and move assignment operator from cooked_index\n\nBuilding with clang++-14, I see:\n\n      CXX    dwarf2/cooked-index.o\n    In file included from /home/smarchi/src/binutils-gdb/gdb/dwarf2/cooked-index.c:21:\n    /home/smarchi/src/binutils-gdb/gdb/dwarf2/cooked-index.h:172:12: error: explicitly defaulted move constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]\n      explicit cooked_index (cooked_index \u0026\u0026other) \u003d default;\n               ^\n    /home/smarchi/src/binutils-gdb/gdb/dwarf2/cooked-index.h:225:16: note: move constructor of \u0027cooked_index\u0027 is implicitly deleted because field \u0027m_storage\u0027 has a deleted move constructor\n      auto_obstack m_storage;\n                   ^\n    /home/smarchi/src/binutils-gdb/gdb/../gdbsupport/gdb_obstack.h:128:28: note: \u0027auto_obstack\u0027 has been explicitly marked deleted here\n      DISABLE_COPY_AND_ASSIGN (auto_obstack);\n                               ^\n    In file included from /home/smarchi/src/binutils-gdb/gdb/dwarf2/cooked-index.c:21:\n    /home/smarchi/src/binutils-gdb/gdb/dwarf2/cooked-index.h:174:17: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]\n      cooked_index \u0026operator\u003d (cooked_index \u0026\u0026other) \u003d default;\n                    ^\n    /home/smarchi/src/binutils-gdb/gdb/dwarf2/cooked-index.h:225:16: note: move assignment operator of \u0027cooked_index\u0027 is implicitly deleted because field \u0027m_storage\u0027 has a deleted move assignment operator\n      auto_obstack m_storage;\n                   ^\n    /home/smarchi/src/binutils-gdb/gdb/../gdbsupport/gdb_obstack.h:128:3: note: \u0027operator\u003d\u0027 has been explicitly marked deleted here\n      DISABLE_COPY_AND_ASSIGN (auto_obstack);\n      ^\n    /home/smarchi/src/binutils-gdb/gdb/../include/ansidecl.h:425:8: note: expanded from macro \u0027DISABLE_COPY_AND_ASSIGN\u0027\n      void operator\u003d (const TYPE \u0026) \u003d delete\n           ^\n\nWe explicitly make cooked_index have a default move constructor and\nmove assignment operator.  But it doesn\u0027t actually happen because\ncooked_index has a field of type auto_obstack, which isn\u0027t movable.\nWe don\u0027t actually need cooked_index to be movable at the moment, so\nremove those lines.\n\nChange-Id: Ifc1fe3d7d67e3ae1a14363d6c1869936fe80b0a2\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "661664d9f84c7084762bbd7b89b0115940595577",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/cooked-index.h",
      "new_id": "4b52eaf93d087340f55eb5fb6fd567a5303d9884",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/cooked-index.h"
    }
  ]
}
