)]}'
{
  "commit": "ceb129a56ce0faf3cd1198aca0e7b67ec1fdc2bd",
  "tree": "63072a0f058197ade09040ccdd1c6e2e6963d8a7",
  "parents": [
    "3e431ba8c9de8d676f1b968cbb7b1e03d0ca5753"
  ],
  "author": {
    "name": "Pali Rohár",
    "email": "pali.rohar@gmail.com",
    "time": "Thu Jul 17 22:08:41 2025 +0200"
  },
  "committer": {
    "name": "Martin Storsjö",
    "email": "martin@martin.st",
    "time": "Thu Jul 31 16:02:41 2025 +0300"
  },
  "message": "crt: Fix LTO -Ofast compilation\n\nWhen mingw-w64 is compiled with LTO support (-flto and -ffat-lto-objects in\nCFLAGS and LDFLAGS) then compiling any application with -Ofast fails.\n\nCalling \"gcc -flto -Ofast\" throws fatal error:\n\n    `___main\u0027 referenced in section `.text.startup\u0027 of /tmp/ccXtREge.ltrans0.ltrans.o: defined in discarded section `.text\u0027 of lib32_libmingw32_a-gccmain.o (symbol from plugin)\n    collect2: error: ld returned 1 exit status\n\nWith -O2 or other level there is no error at all.\n\nIt looks like that function __main from file mingw-w64-crt/crt/gccmain.c is\nsomehow automatically discarded by gcc / ld LTO compiler when using -Ofast.\n\nFix this problem by manually adding __attribute__((used)).\n\nSigned-off-by: Martin Storsjö \u003cmartin@martin.st\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fc0e35003cd10cfa95b22fe8d50bdd31f980a12a",
      "old_mode": 33188,
      "old_path": "mingw-w64-crt/crt/gccmain.c",
      "new_id": "13ef04fdba2009b9992ed944f355174201c03c1f",
      "new_mode": 33188,
      "new_path": "mingw-w64-crt/crt/gccmain.c"
    }
  ]
}
