~pcsx2-team/pcsx2-github-mirror/+git/xz:build_werror2

Last commit made on 2023-10-22
Get this branch:
git clone -b build_werror2 https://git.launchpad.net/~pcsx2-team/pcsx2-github-mirror/+git/xz

Branch merges

Branch information

Name:
build_werror2
Repository:
lp:~pcsx2-team/pcsx2-github-mirror/+git/xz

Recent commits

109cddc... by Lasse Collin <email address hidden>

liblzma: Use lzma_always_inline in memcmplen.h.

1cd2790... by Lasse Collin <email address hidden>

sysdefs.h: #define lzma_always_inline.

34aa472... by Lasse Collin <email address hidden>

Build: Add a check for __attribute__((__always_inline__)).

All even remotely relevant GCC and Clang versions support this
attribute. The test is useful to detect support in compilers that
don't define __GNUC__ or __clang__, for example, Solaris Studio.

4a1ef58... by Lasse Collin <email address hidden>

CMake: Check for func attributes without -Werror.

This matches the modified m4/ax_gcc_func_attribute.m4.
Only constructor and ifunc attribute checks were implemented.

CMake-based build doesn't have the trouble of Autoconf confdefs.h
but writing warning-free tests would still some extra care.
If looking for attribute-related warnings works well enough then
this method should be nicer than the -Werror method in CMake too.

1466645... by Lasse Collin <email address hidden>

Build: Use AX_GCC_FUNC_ATTRIBUTE to detect __attribute__ support.

This way -Werror isn't needed for these checks as
AX_GCC_FUNC_ATTRIBUTE looks at compiler's warning messages to see
if an unsupported attribute was present. Both methods have their
own problems but I'm hoping that this is the better method.

It is known that the check for the ifunc attribute this doesn't
work with CompCert 3.12. It silently ignores unknown attributes
in function declarations and in static functions if the function
appears unused (even though the unknown attribute would make it used).

8a8b804... by Lasse Collin <email address hidden>

Build: Fix ax_gcc_func_attribute.m4 for compilers other than GCC >= 4.6.

With other compilers it accepted all attributes as it didn't recognize
the warning messages about unsupported attributes. The problem occurs
only with compilers that warn instead of error when an unsupported
attribute is seen.

FIXME? gnu_format is broken but so it was before.

ab2e9be... by Lasse Collin <email address hidden>

Build: Add m4/ax_gcc_func_attribute.m4 from Autoconf-archive.

a9a5174... by Lasse Collin <email address hidden>

CMake: Don't assume that -fvisibility=hidden is supported outside Windows.

The original code was good enough for supporting GNU/Linux
and a few others but it wasn't very portable.

CMake doesn't support Solaris Studio's -xldscope=hidden.
If it ever does, things should still work with this commit
as Solaris Studio supports not only its own __global but also
the GNU C __attribute__((visibility("default"))). Support for the
attribute was added in 2007 to Sun Studio 12 compiler version 5.9.

c57858b... by Lasse Collin <email address hidden>

xz/Windows: Allow clock_gettime with POSIX threads.

If winpthreads are used for threading, it's OK to use clock_gettime()
from winpthreads too.

dd32f62... by Lasse Collin <email address hidden>

mythread.h: Make MYTHREAD_POSIX compatible with MinGW-w64's winpthreads.

This might be almost useless but it doesn't need much extra code either.