Jérôme Gardou
d312ef234b
[PSEH] Fix use of dummy implementation in C++
2021-05-03 22:00:57 +02:00
Jérôme Gardou
07dcec0325
[PSEH] Use dummy PSEH for clang(-cl) amd64 build
2021-05-03 22:00:57 +02:00
Jérôme Gardou
aa51bcfbcb
[CMAKE] Do not use a flag which clang doesn't know
2021-05-03 22:00:57 +02:00
Jérôme Gardou
523912536e
[KERNEL32] Sync NLS RC files with wine 6.7
...
Mostly for having them UTF-8 encoded
2021-05-03 22:00:57 +02:00
Jérôme Gardou
802665a4ac
[CRT] Also use alias _rot functions for clang-cl amd64 build
2021-05-03 22:00:57 +02:00
Jérôme Gardou
8aea84dab7
[CRT] Do not define builtin functions if not needed
2021-05-03 22:00:57 +02:00
Jérôme Gardou
7197620b89
[CMAKE] Always use cl to build host tools
2021-05-03 22:00:57 +02:00
Jérôme Gardou
061c7ecb1a
[FRAMEDYN] Fix the whole situation with regards to wchar_t
...
Alias CHSTRING_WCHAR to unsigned short and use inline wrappers
to be able to use the thing with modern compilers
Put the GCC aliases into the public header.
Enable build with clang-cl
2021-05-03 22:00:57 +02:00
Jérôme Gardou
a8255233f8
[SPEC2DEF] Fix imports of C++ stdcall exports
...
Too much mangling mangles it too much
2021-05-03 22:00:57 +02:00
Jérôme Gardou
ec68a3311f
[CMAKE] Use SEH exceptions for c++ in clang amd64 build
2021-05-03 22:00:57 +02:00
Jérôme Gardou
976c4c10aa
[CRT] Fix SEH macros for clang x64
2021-05-03 22:00:57 +02:00
Jérôme Gardou
b52ab2493b
Revert "[CMAKE] Disable SSE instruction on GCC amd64 builds"
...
The right fix is to ensure that the stack is properly 16-bit aligned
This reverts commit 63944988a2
.
2021-05-03 22:00:57 +02:00
George Bișoc
11a60cebea
[NTOS:PS] Add some data structures
...
These are needed for API tests. The following structures are taken from Process Hacker.
2021-05-02 21:03:09 +02:00
Serge Gautherie
f1689cdcea
[PSDK] UnlockResource(): Improve definition
...
Sync' with
a9e50da352
2021-05-01 09:48:02 +02:00
Jérôme Gardou
439aefb31d
[CRT] Sync tlssup.c with mingw-w64
...
This allows amd64 built binary to be loaded.
2021-04-28 13:10:23 +02:00
Jérôme Gardou
fe3278d4d6
[CRT] We never use the mthread library
2021-04-28 13:10:23 +02:00
Jérôme Gardou
2413530acf
[SDK] Use GAS SEH capabilities instead of CFI
...
Also remove a hack for x86 GAS which no longer holds
2021-04-28 13:10:23 +02:00
Jérôme Gardou
63944988a2
[CMAKE] Disable SSE instruction on GCC amd64 builds
...
Except for user-mode modules
2021-04-28 13:10:23 +02:00
Jérôme Gardou
ba74a05a17
[PSEH] Add implementation for GCC amd64
...
Also, put include directory next to the library and use
target_include_directories(.. INTERFACE ..) to get this right.
This is because :
- Having includes & implementation in two different places buggers me
- This makes sure that there is no "if it compiles everything is fine" behaviour from anyone
because now even static libraries need it for GCC amd64 build
Also add __USE_PSEH2__ define for the non SEH-aware compilers out there and use it in a few headers
where we define macros involving __try
2021-04-28 13:10:23 +02:00
Jérôme Gardou
d31856cda1
[CRT] Do not include unneeded PSEH header
2021-04-28 13:10:23 +02:00
Jérôme Gardou
e470b58376
[REACTOS] Explicitly link against pseh & include pseh headers in a few places
2021-04-28 13:10:23 +02:00
Jérôme Gardou
37bc01f42b
[CMAKE] Introduce a GCC plugin for helping with amd64 SEH implementation
...
\#pragma REACTOS SEH(except)
\#pragma REACTOS SEH(finally)
What it does is counting the number of SEH __try blocks and emit the proper assembly statements at function prologue
It also checks for mixing C++ & SEH exception handling, which wouldn't work
2021-04-28 13:10:23 +02:00
Jérôme Gardou
8abcd18742
[RTL] Use addressing relative to rip
2021-04-28 13:10:23 +02:00
Jérôme Gardou
96a2b18903
[PSEH] Make the dummy PSEH at least usable.
...
Not screwing the code flow when no exception happens would be the least
2021-04-28 13:10:23 +02:00
Jérôme Gardou
955b5c27b1
[CRT] Fix __ll_lshift, __ll_rshift and __ull_rshift intrinsics on gcc-amd64
2021-04-28 13:10:23 +02:00
Jérôme Gardou
97a8953538
[CMAKE:GCC] Enforce file alignment on driver & kernel images
2021-04-28 13:10:23 +02:00
Jérôme Gardou
382426f02e
[NDK] Add some missing defines for EFLAGS on amd64
2021-04-28 13:10:23 +02:00
Jérôme Gardou
7513cc9fca
[PSDK] Do not compare to max value if we can make sure that the value fits in target type
...
This fixes clang warning -Wtautological-constant-out-of-range-compare
2021-04-28 13:10:23 +02:00
Jérôme Gardou
a4138329a1
[CRT] Add macros to disable diagnostics from GCC and clang
...
Instead of disabling them globally, this will help making finer grained decisions
2021-04-28 13:10:23 +02:00
Jérôme Gardou
1d1a21a920
[SDK] Make sure we build pefixup with AMD64 definitions
2021-04-28 13:10:23 +02:00
Jérôme Gardou
b513c61cd1
[SDK] Fix definition of IMAGE_NT_HEADERS64 in host tools
2021-04-28 13:10:23 +02:00
George Bișoc
44fb528fcc
[NTOS:SE] Implement the NtImpersonateAnonymousToken system call
...
Implement SepImpersonateAnonymousToken private helpers, which is necessary for the complete implementation of NtImpersonateAnonymousToken function and thus finally we're able to impersonate the anonymous logon token.
2021-04-27 12:25:03 +02:00
Jérôme Gardou
9ef5a7eb7a
[CMAKE] Fix compilation with newer windres versions
...
Also use clang as preprocessor when using it
Also, use *our* headers instead of the platform ones
2021-04-27 11:54:12 +02:00
Jérôme Gardou
ba9a7decba
[PSDK] Import winuser.rh from wine 6.7
2021-04-27 11:54:12 +02:00
Serge Gautherie
b8ae966634
[CRT] exp2*.c: Add an explicit type for 'TWO' variable
...
Addendum to 199adee
.
2021-04-27 10:36:54 +03:00
Serge Gautherie
b6493654a3
[CRT] intrin_x86.h: Fix '_InterlockedIncrement64' copypasta
...
Addendum to bc3a471
.
2021-04-27 10:36:54 +03:00
Serge Gautherie
c41007624f
[CMAKE] config.cmake: Fix 'STEQUAL' typo, in a comment
...
Addendum to e90b6bb
.
2021-04-27 10:36:54 +03:00
Konrad Dybcio
d5421d5a3d
[HHPCOMP] Add ARM64/AArch64 types
...
These were missing... not anymore!
Addendum to 4c7b71ac
. CORE-17518
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
2021-04-25 21:08:17 +03:00
Katayama Hirofumi MZ
66f6abfc4a
[SDK][INCLUDE] Fix offsetof and CCSIZEOF_STRUCT for Clang-CL build ( #3624 )
...
Clang-CL was failing with "error: function declaration cannot have variably modified type". This PR will fix the Clang-CL build. CORE-17547
2021-04-25 13:38:22 +09:00
Serge Gautherie
0dedb9b474
[WINLOGON][MPR][SDK] WNetClearConnections: Fix function parameter type ( #3480 )
...
Addendum to 62f79fae93
.
Signed-off-by: Serge Gautherie <reactos-git_serge_171003@gautherie.fr>
2021-04-18 21:58:44 +03:00
Victor Perevertkin
d10728a645
[CMAKE] Rely less on CMAKE_BUILD_TYPE variable
...
Having conditional statements with CMAKE_BUILD_TYPE is an antipattern
See https://stackoverflow.com/questions/66079007/having-conditional-statements-on-build-type-variable-a-good-design
We use both single- and multi-config generators (Ninja and VS), so we
can't really rely on CMAKE_BUILD_TYPE, because it's not always set.
This commit alters some conditional flags to use <$CONFIG:...>
generator expression, but is still not complete. Also, our default
optimization level (4) now has what was always a de-facto flags
2021-04-15 06:44:56 +03:00
Victor Perevertkin
72ad37c1cd
[CMAKE] Unify configs for architectures
...
config*.cmake files are constantly getting out of sync between
each other. Besides that, the parameters are not really dependent
on a target architecture, but rather on a compiler (except *ARCH)
This approach seems to be more future-prone, and allows to see
all the options in one file (there are really not that many of them)
2021-04-15 06:44:52 +03:00
Serge Gautherie
8ddbfdeb57
[BOOTDATA][CMAKE] Sort 2 directories out
...
winsxs\x86_reactos.newapi_6595b64144ccf1df_1.0.0.0_none_deadbeef:
removed: silently added on 8d30456
and never used.
bin\suppl:
moved: to 60 from 80.
2021-04-12 17:40:18 +02:00
Jérôme Gardou
3731fd1661
[CRT] Properly declare rot functions in public headers
2021-04-09 15:12:13 +02:00
Jérôme Gardou
620f333252
[CRT] Fix rot functions aliases in non-x86 clang builds
2021-04-09 15:00:07 +02:00
Jérôme Gardou
199adee3fe
[CRT] Add a generic C version of exp2(f) and use it for all architecture
2021-04-09 14:59:07 +02:00
Jérôme Gardou
a19ca409ae
[PSEH] Each amd64 compiler that we use support SEH
2021-04-09 12:36:04 +02:00
Jérôme Gardou
76a241dea6
[CMAKE] Also set GCC/CLANG variables on amd64 builds
2021-04-09 12:35:30 +02:00
Jérôme Gardou
bc3a471413
[CRT] Do not try to implement x86_64 builtins of clang
2021-04-09 10:33:05 +02:00
Jérôme Gardou
83e1afe12a
[CMAKE] Do not call clang with unsupported arguments
2021-04-09 10:09:55 +02:00