This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: 0018-gcc-7-branch-Rename-__in-__out-and-__in.patch.gz
Description: application/gzip


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]