)]}'
{
  "commit": "d9de08d4cf6e8cb940015656da5a30ccbdb895b5",
  "tree": "8b8fff695621b03893a8aef281742e602c01731a",
  "parents": [
    "40e543b940e012b43217b6776c166f4970aa75c8"
  ],
  "author": {
    "name": "Philip Herron",
    "email": "herron.philip@googlemail.com",
    "time": "Thu Sep 10 17:54:44 2026 +0100"
  },
  "committer": {
    "name": "Arthur Cohen",
    "email": "arthur.cohen@opensrcsec.com",
    "time": "Wed Sep 16 14:08:32 2026 +0200"
  },
  "message": "gccrs: constructors that get borrowed need to be addressable\n\nWhen we have const expr dealing with slices we end up taking a pointer of\nan array as the data pointer. This is a cosntructor expr ususally but const\neval expects these to be addressable objects like tmps holding onto the data\nbut we get away with this in regular compilation because gcc optimizes it.\n\nFixes Rust-GCC/gccrs#4867\nFixes Rust-GCC/gccrs#4868\n\ngcc/rust/ChangeLog:\n\n\t* backend/rust-compile-expr.cc (CompileExpr::visit): make addressable\n\t* backend/rust-constexpr.cc (eval_store_expression): port over missing cp/constexpr.cc\n\ngcc/testsuite/ChangeLog:\n\n\t* rust/compile/issue-4867.rs: New test.\n\nSigned-off-by: Philip Herron \u003cherron.philip@googlemail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3229dea3646d9711c8e17e17096388d2eb7351cd",
      "old_mode": 33188,
      "old_path": "gcc/rust/backend/rust-compile-expr.cc",
      "new_id": "6480e946b1555fc958ca67fc83bdc90d8a12f0e5",
      "new_mode": 33188,
      "new_path": "gcc/rust/backend/rust-compile-expr.cc"
    },
    {
      "type": "modify",
      "old_id": "22d0ed3bd292e7a697c9faaa43a1fee947a988c6",
      "old_mode": 33188,
      "old_path": "gcc/rust/backend/rust-constexpr.cc",
      "new_id": "44fd235b925ba6532d388fc49675ec96ea9d964c",
      "new_mode": 33188,
      "new_path": "gcc/rust/backend/rust-constexpr.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7e6852347c749b1d3265243633db5ca622a54598",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/rust/compile/issue-4867.rs"
    }
  ]
}
