Skip to content
Snippets Groups Projects
  1. Mar 06, 2023
  2. Jan 07, 2023
    • LIU Hao's avatar
      Always define `WIN32_LEAN_AND_MEAN` before <windows.h> · 902c7559
      LIU Hao authored
      Recently, mingw-w64 has got updated <msxml.h> from Wine which is included
      indirectly by <windows.h> if `WIN32_LEAN_AND_MEAN` is not defined. The
      `IXMLDOMDocument` class has a member function named `abort()`, which gets
      affected by our `abort()` macro in "system.h".
      
      `WIN32_LEAN_AND_MEAN` should, nevertheless, always be defined. This
      can exclude 'APIs such as Cryptography, DDE, RPC, Shell, and Windows
      Sockets' [1], and speed up compilation of these files a bit.
      
      [1] https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers
      
      gcc/
      
      	PR middle-end/108300
      	* config/xtensa/xtensa-dynconfig.c: Define `WIN32_LEAN_AND_MEAN`
      	before <windows.h>.
      	* diagnostic-color.cc: Likewise.
      	* plugin.cc: Likewise.
      	* prefix.cc: Likewise.
      
      gcc/ada/
      
      	PR middle-end/108300
      	* adaint.c: Define `WIN32_LEAN_AND_MEAN` before `#include
      	<windows.h>`.
      	* cio.c: Likewise.
      	* ctrl_c.c: Likewise.
      	* expect.c: Likewise.
      	* gsocket.h: Likewise.
      	* mingw32.h: Likewise.
      	* mkdir.c: Likewise.
      	* rtfinal.c: Likewise.
      	* rtinit.c: Likewise.
      	* seh_init.c: Likewise.
      	* sysdep.c: Likewise.
      	* terminals.c: Likewise.
      	* tracebak.c: Likewise.
      
      gcc/jit/
      
      	PR middle-end/108300
      	* jit-w32.h: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
      
      libatomic/
      
      	PR middle-end/108300
      	* config/mingw/lock.c: Define `WIN32_LEAN_AND_MEAN` before
      	<windows.h>.
      
      libffi/
      
      	PR middle-end/108300
      	* src/aarch64/ffi.c: Define `WIN32_LEAN_AND_MEAN` before
      	<windows.h>.
      
      libgcc/
      
      	PR middle-end/108300
      	* config/i386/enable-execute-stack-mingw32.c: Define
      	`WIN32_LEAN_AND_MEAN` before <windows.h>.
      	* libgcc2.c: Likewise.
      	* unwind-generic.h: Likewise.
      
      libgfortran/
      
      	PR middle-end/108300
      	* intrinsics/sleep.c: Define `WIN32_LEAN_AND_MEAN` before
      	<windows.h>.
      
      libgomp/
      
      	PR middle-end/108300
      	* config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
      	<windows.h>.
      
      libiberty/
      
      	PR middle-end/108300
      	* make-temp-file.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
      	* pex-win32.c: Likewise.
      
      libssp/
      
      	PR middle-end/108300
      	* ssp.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
      
      libstdc++-v3/
      
      	PR middle-end/108300
      	* src/c++11/system_error.cc: Define `WIN32_LEAN_AND_MEAN` before
      	<windows.h>.
      	* src/c++11/thread.cc: Likewise.
      	* src/c++17/fs_ops.cc: Likewise.
      	* src/filesystem/ops.cc: Likewise.
      
      libvtv/
      
      	PR middle-end/108300
      	* vtv_malloc.cc: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
      	* vtv_rts.cc: Likewise.
      	* vtv_utils.cc: Likewise.
      902c7559
  3. Dec 21, 2022
  4. Dec 12, 2022
  5. Nov 30, 2022
  6. Oct 28, 2022
  7. Sep 27, 2022
  8. Sep 22, 2022
  9. Sep 07, 2022
  10. Jul 30, 2022
  11. Jul 22, 2022
  12. Jul 13, 2022
  13. Jun 30, 2022
  14. Jun 28, 2022
  15. Jun 21, 2022
  16. Jun 17, 2022
  17. Jun 14, 2022
  18. Apr 21, 2022
  19. Apr 19, 2022
  20. Apr 18, 2022
  21. Apr 15, 2022
    • Ian Lance Taylor's avatar
      compiler: revert `for package-scope "a = b; b = x" just set "a = x"` · d00dd52e
      Ian Lance Taylor authored
      Revert CL 245098.  It caused incorrect initialization ordering.
      
      Adjust the runtime package to work even with the CL reverted.
      
      Original description of CL 245098:
      
          This avoids requiring an init function to initialize the variable.
          This can only be done if x is a static initializer.
      
          The go1.15rc1 runtime package relies on this optimization.
          The package has a variable "var maxSearchAddr = maxOffAddr".
          The maxSearchAddr variable is used by code that runs before package
          initialization is complete.
      
      For golang/go#51913
      
      Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/395994
      d00dd52e
  22. Apr 14, 2022
  23. Mar 31, 2022
  24. Mar 16, 2022
  25. Mar 04, 2022
  26. Feb 22, 2022
  27. Feb 21, 2022
  28. Feb 18, 2022
  29. Feb 17, 2022
  30. Feb 16, 2022
  31. Feb 13, 2022
    • Ian Lance Taylor's avatar
      runtime: call timer functions via syscall · 58aeb75d
      Ian Lance Taylor authored
      It turns out to be painful to require linking against -lrt on
      GNU/Linux, as that makes it harder to link Go code into C programs.
      Instead just call the timer syscalls directly.  That is what the
      upstream library does anyhow.
      
      gcc/go/
      	* gospec.cc: Revert 2022-02-09 change:
      	(RTLIB, RT_LIBRARY): Don't define.
      	(lang_specific_driver): Don't add -lrt if linking statically
      	on GNU/Linux.
      
      gotools/
      	* configure.ac: Revert 2022-02-09 change:
      	(RT_LIBS): Don't define.
      	* Makefile.am (check-runtime): Don't set GOLIBS to $(RT_LIBS).
      	* configure, Makefile.in: Regenerate.
      
      Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/385475
      58aeb75d
  32. Feb 11, 2022
  33. Feb 09, 2022
  34. Feb 03, 2022
    • David Seifert's avatar
      make `-Werror` optional in libatomic/libbacktrace/libgomp/libitm/libsanitizer · 45ba6bf2
      David Seifert authored
      * `-Werror` can cause issues when a more recent version of GCC compiles
        an older version:
        - https://bugs.gentoo.org/229059
        - https://bugs.gentoo.org/475350
        - https://bugs.gentoo.org/667104
      
      
      
      libatomic/ChangeLog:
      
      	* configure.ac: Support --disable-werror.
      	* configure: Regenerate.
      
      libbacktrace/ChangeLog:
      
      	* configure.ac: Support --disable-werror.
      	* configure: Regenerate.
      
      libgomp/ChangeLog:
      
      	* configure.ac: Support --disable-werror.
      	* configure: Regenerate.
      
      libitm/ChangeLog:
      
      	* configure.ac: Support --disable-werror.
      	* configure: Regenerate.
      
      libsanitizer/ChangeLog:
      
      	* configure.ac: Support --disable-werror.
      	* aclocal.m4: Include also ../config/warnings.m4.
      	* libbacktrace/Makefile.am (WARN_FLAGS): Remove.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      	* asan/Makefile.in: Regenerate.
      	* hwasan/Makefile.in: Regenerate.
      	* interception/Makefile.in: Regenerate.
      	* libbacktrace/Makefile.in: Regenerate.
      	* lsan/Makefile.in: Regenerate.
      	* sanitizer_common/Makefile.in: Regenerate.
      	* tsan/Makefile.in: Regenerate.
      	* ubsan/Makefile.in: Regenerate.
      
      Co-Authored-By: default avatarJakub Jelinek <jakub@redhat.com>
      45ba6bf2
Loading