GNOME Bugzilla – Bug 733595
Fix the g-ir-compiler utility on Visual Studio 2012 x64
Last modified: 2016-03-16 14:55:34 UTC
Hi, As I continue the attempt to make g-i buildable and usable with Visual Studio (without GCC) only, there seems to be a problem in g-ir-compiler that it crashes during the compilation of the .gir files. It seems like, that when it runs assign() in cmph/bdz.c, the compiler gets confused about the value of i when running the for loop in that function. Upon some investigation, the for loop is continued even when i falls below 0, which will cause an access violation as referencing a negative element of an array is being done. I will attach a patch for the workaround for this issue, which is only used on Visual Studio 2012, as this seems clearly to me as a compiler issue. With blessings, thank you!
Created attachment 281466 [details] [review] cmph/bdz.c: Workaround MSVC 2012 x64 compiler bug
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Created attachment 324084 [details] [review] cmph/bdz.c: Workaround MSVC 2012 x64 compiler bug Hi, Re-posting patch for code style, to conform with the coding style of the rest of the file. With blessings, thank you!
Review of attachment 324084 [details] [review]: Haven't looked in detail, but seems reasonable.
Hi Colin, Thanks! I have pushed the patch as 8d651e4. With blessings, thank you!