[PATCH] Fix compiler errors on MinGW-w64 due to identifier collision with macros.

Liu Hao lh_mouse@126.com
Thu May 18 15:37:00 GMT 2017


The attached patch was generated by running the following command in GCC 
source tree cloned from git://gcc.gnu.org/git/gcc.git :

-----------------------------------------------------------
$ git checkout gcc-7-branch
$ nano libstdc++-v3/doc/xml/manual/appendix_contributing.xml
   # Append the following three lines after 'MS adds:' '_T'
   #       __in
   #       __out
   #       __inout
$ sed -i -r 's/\b__(in|out|inout)\b/__arg_\1/g' `grep -Erl 
'\b__(in|out|inout)\b' libstdc++-v3/{include,config,src,testsuite} | 
sort -u`
$ git commit -s libstdc++-v3
$ git format-patch HEAD~1
-----------------------------------------------------------

So far I have bootstrapped GCC 7.1.1 for {i686,x86_64}-w64-mingw32 with 
C, C++ and LTO enabled. Please test other languages.

-- 
Best regards,
LH_Mouse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-gcc-7-branch-Rename-__in-__out-and-__in.patch.gz
Type: application/gzip
Size: 18459 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20170518/74ec63ef/attachment.gz>


More information about the Gcc-help mailing list