)]}'
{
  "commit": "3901d7da4eef4bd362e5c20189d0dc44c07d168b",
  "tree": "f36ebcc5d305da80895774d5bb49a4c84f38fac9",
  "parents": [
    "c3b5c85639b42242dc487bd81a36cb3532b87dad"
  ],
  "author": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Tue Mar 28 21:02:36 2023 +1030"
  },
  "committer": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Wed Mar 29 12:56:46 2023 +1030"
  },
  "message": "ld testsuite CFLAGS_FOR_TARGET\n\nrun_host_cmd adds $gcc_B_opt and $ld_L_opt to the command line if it\ndetects the program being run is a compiler.  Since the program being\nrun in lto.exp linking pr28138 is \"sh\", we need to add these by hand.\nThis isn\u0027t exactly as run_host_cmd does, as it lacks reordering of\nany user -B option in $CC_FOR_TARGET, but it\u0027s better than ignoring\ngcc_B_opt.  This fixes a mips64 testsuite fail.\n\nld_compile adds CFLAGS_FOR_TARGET and other flags as well, so there\nis no need for the ld_compile command line to include\nCFLAGS_FOR_TARGET.  Fixing this is just a tidy.\n\n\t* testsuite/ld-plugin/lto.exp: Add gcc_B_opt, CFLAGS_FOR_TARGET\n\tand $ld_L_opt to pr28138 link line.\n\t* testsuite/lib/ld-lib.exp (run_ld_link_tests): Don\u0027t pass\n\tunnecessary flags to ld_compile.\n\t(run_ld_link_exec_tests, run_cc_link_tests): Likewise.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6c1322e43e06ebfffd98275e65d6123c91e6e0d1",
      "old_mode": 33188,
      "old_path": "ld/testsuite/ld-plugin/lto.exp",
      "new_id": "98e811177ef03ee882b069f71e3697ce2bbcd826",
      "new_mode": 33188,
      "new_path": "ld/testsuite/ld-plugin/lto.exp"
    },
    {
      "type": "modify",
      "old_id": "47e86a7b27c6ed54795b7f133b2f27e1bd113ce1",
      "old_mode": 33188,
      "old_path": "ld/testsuite/lib/ld-lib.exp",
      "new_id": "918464069a96157f5996695b6f5db212742b5751",
      "new_mode": 33188,
      "new_path": "ld/testsuite/lib/ld-lib.exp"
    }
  ]
}
