)]}'
{
  "commit": "574afa290276ce7bd67e905613d7b77f066b4a87",
  "tree": "a0bb2711c985086060ad7f2782c2a02c27050012",
  "parents": [
    "64f2b1110994bc506ad2b88932a7089c8438b6b3"
  ],
  "author": {
    "name": "Enes Cevik",
    "email": "enes@nsvke.com",
    "time": "Fri Jun 26 16:40:51 2026 +0300"
  },
  "committer": {
    "name": "Arthur Cohen",
    "email": "arthur.cohen@embecosm.com",
    "time": "Wed Jul 08 17:22:50 2026 +0200"
  },
  "message": "gccrs: intrinsic: Add arith_offset\n\nThis patch implements the \u0027arith_offset\u0027 compiler intrinsic. It moves a\npointer forward or backward by a given number of elements. It does not\ncause Undefined Behavior if the pointer goes out of bounds.\n\ngcc/rust/ChangeLog:\n\n\t* backend/rust-compile-intrinsic.cc (generic_intrinsics): Add\n\tarith_offset handler to map.\n\t* backend/rust-intrinsic-handlers.cc (arith_offset_handler): New\n\tfunction.\n\t* backend/rust-intrinsic-handlers.h (arith_offset_handler): New\n\tdeclaration.\n\t* typecheck/rust-hir-type-check-intrinsic.cc\n\t(IntrinsicChecker::intrinsic_rules): Add arith_offset rule.\n\t* util/rust-intrinsic-values.h (class Intrinsics): Add\n\tARITH_OFFSET constexpr.\n\ngcc/testsuite/ChangeLog:\n\n\t* rust/execute/arith-offset.rs: New test.\n\nSigned-off-by: Enes Cevik \u003cenes@nsvke.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "51531de3c65e96c88abdbec3ca458cddceadfdb8",
      "old_mode": 33188,
      "old_path": "gcc/rust/backend/rust-compile-intrinsic.cc",
      "new_id": "e9407e0511150190de99ca2f894d46ae65fb60d4",
      "new_mode": 33188,
      "new_path": "gcc/rust/backend/rust-compile-intrinsic.cc"
    },
    {
      "type": "modify",
      "old_id": "24f831ec7ae670bf3eb788b09f5184481e023cea",
      "old_mode": 33188,
      "old_path": "gcc/rust/backend/rust-intrinsic-handlers.cc",
      "new_id": "735529cc947a6eeed67194c794f8190f3e4e394d",
      "new_mode": 33188,
      "new_path": "gcc/rust/backend/rust-intrinsic-handlers.cc"
    },
    {
      "type": "modify",
      "old_id": "c088f9ff4d853461eb5469f35e5250c1169f9763",
      "old_mode": 33188,
      "old_path": "gcc/rust/backend/rust-intrinsic-handlers.h",
      "new_id": "1c81417b70240c7648144d3e8f30856bf0719090",
      "new_mode": 33188,
      "new_path": "gcc/rust/backend/rust-intrinsic-handlers.h"
    },
    {
      "type": "modify",
      "old_id": "af27a2ddb982d9931985f5c2f4bd5eb9e4546418",
      "old_mode": 33188,
      "old_path": "gcc/rust/typecheck/rust-hir-type-check-intrinsic.cc",
      "new_id": "0011e3203d52a88697fb564f36e26198b1e33bb1",
      "new_mode": 33188,
      "new_path": "gcc/rust/typecheck/rust-hir-type-check-intrinsic.cc"
    },
    {
      "type": "modify",
      "old_id": "10c5c1eb2b0093015adaeb5933baa53fcc02af62",
      "old_mode": 33188,
      "old_path": "gcc/rust/util/rust-intrinsic-values.h",
      "new_id": "d47e66ce6e9f30b1f80cef5bbd222290d465b106",
      "new_mode": 33188,
      "new_path": "gcc/rust/util/rust-intrinsic-values.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2daf1d7bed6d657f237701bbd18ff12fff4ad967",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/rust/execute/arith-offset.rs"
    }
  ]
}
