)]}'
{
  "commit": "0df017fbca3070682ffa62a3b302a30e028adfb6",
  "tree": "2e960e5330a7d30d28226a9cc989d03c415046cf",
  "parents": [
    "a60ead5ded5f9fc548018637d4810cb5f313ad8c"
  ],
  "author": {
    "name": "Nils-Christian Kempke",
    "email": "nils-christian.kempke@intel.com",
    "time": "Tue May 31 16:43:45 2022 +0200"
  },
  "committer": {
    "name": "Nils-Christian Kempke",
    "email": "nils-christian.kempke@intel.com",
    "time": "Tue May 31 16:44:56 2022 +0200"
  },
  "message": "gdb, testsuite, fortran: fixup mixed-lang-stack for Intel/LLVM compilers\n\nWhen value-printing a pointer within GDB by default GDB will look for\ndefined symbols residing at the address of the pointer.  For the given\ntest the Intel/LLVM compiler stacks both display a symbol associated\nwith a printed pointer while the gnu stack does not.  This leads to\nfailures in the test when running the test with CC_FOR_TARGET\u003d\u0027clang\u0027\nCXX_FOR_TARGET\u003d\u0027clang\u0027 F90_FOR_TARGET\u003d\u0027flang\u0027\"\n\n  (gdb) b 37\n  (gdb) r\n  (gdb) f 6\n  (gdb) info args\n  a \u003d 1\n  b \u003d 2\n  c \u003d 3\n  d \u003d 4 + 5i\n  f \u003d 0x419ed0 \"abcdef\"\n  g \u003d 0x4041a0 \u003c.BSS4\u003e\n\nor CC_FOR_TARGET\u003d\u0027icx\u0027 CXX_FOR_TARGET\u003d\u0027icpx\u0027 F90_FOR_TARGET\u003d\u0027ifx\u0027\"\n\n  (gdb) b 37\n  (gdb) r\n  (gdb) f 6\n  (gdb) info args\n  a \u003d 1\n  b \u003d 2\n  c \u003d 3\n  d \u003d 4 + 5i\n  f \u003d 0x52eee0 \"abcdef\"\n  g \u003d 0x4ca210 \u003cmixed_func_1a_$OBJ\u003e\n\nFor the compiled binary the Intel/LLVM compilers both decide to move the\nlocal variable g into the .bss section of their executable.  The gnu\nstack will keep the variable locally on the stack and not define a\nsymbol for it.\n\nSince the behavior for Intel/LLVM is actually expected I adapted the\ntestcase at this point to be a bit more allowing for other outputs.\nI added the optional \"\u003cSYMBOLNAME\u003e\" to the regex testing for g.\n\nThe given changes reduce the test fails for Intel/LLVM stack by 4 each.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "eace4d439bd1d0dbca02b346bfb03eaa2f6db7a5",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.fortran/mixed-lang-stack.exp",
      "new_id": "5bed3be8697c3ed1fe6b2dde4b22ed108107b3e9",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.fortran/mixed-lang-stack.exp"
    }
  ]
}
