Commit Graph

18 Commits

Author SHA1 Message Date
Florian Walpen 21b293dbc3 Fix alignas() on non-packed architectures (#839).
Unbreak the build with Clang on architectures where JACK uses non-packed
data structures, like arm64 or powerpc. The alignment errors are exposed
there because:
 * The non-packed data structures require 8 byte alignment.
 * alignas() is not allowed to weaken alignment requirements to 4 bytes.
 * Clang enforces this according to standard, GCC ignores it.

Use an additional alignas() specifier to let the compiler choose between
minimum alignment (packed) and "natural" alignment (non-packed). This is
both standard c++11 and compatible with older GCC, which does not
propagate alignment requirements of packed substructures properly.
2022-02-08 18:59:46 +00:00
Colin McEwan dff7fa4fa8
Fix alignment of fields for atomic accesses (#761)
* Assert alignment is suitable for atomic accesses

* Move fields and pad to meet alignment constraints

* Add padding to JackEngineControl to account for inherited data

* Parenthesise padding length for clarity

* Revert "Parenthesise padding length for clarity"

This reverts commit 1f757b9ece5e3b032743c6c5ac49e83c3928e3de.

* Revert "Add padding to JackEngineControl to account for inherited data"

This reverts commit 3d8c7d83ad9483280f623171af7e40ccc76cef38.

* Revert "Move fields and pad to meet alignment constraints"

This reverts commit ff631bbbdc2279df05f3a18dd44e8fd68be2e04d.

* Assure alignment by using 'alignas' on fields
2021-06-30 09:16:28 +01:00
luz.paz a93b210134 FIx doxygen and user facing and non-facing typos
Found via `codespell -q 3`
2019-09-11 19:17:07 +01:00
Thomas Brand 655626ac9d NO-OP / trailing whitespace in *.h files 2019-01-20 23:14:23 +01:00
sletz 1e00bb3448 John Emmas POST_PACKED_STRUCTURE patch.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4555 0c269be4-1314-0410-8aa9-9f06e86f4224
2011-10-28 09:33:24 +00:00
sletz c811596499 Fix some file header to have library side code use LGPL.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3961 0c269be4-1314-0410-8aa9-9f06e86f4224
2010-03-19 15:35:42 +00:00
sletz 347c6b874b Correct 64/32 mixed compilation again.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3582 0c269be4-1314-0410-8aa9-9f06e86f4224
2009-07-08 13:14:44 +00:00
sletz 0f93461b3f Cleanup
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2654 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-07-06 07:56:08 +00:00
sletz 0c897f7a58 Cleanup
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2461 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-06-05 13:32:06 +00:00
sletz 9484fcc308 Compiles on Windows again
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2458 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-06-05 12:19:36 +00:00
sletz c0f0fd7cc9 Merge control branch.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2339 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-05-26 09:49:27 +00:00
sletz d2f7053ecc Nedko Arnaudov log patch(2).
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1936 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-03-10 16:47:42 +00:00
sletz ecb8da58c7 Beautifull code
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1909 0c269be4-1314-0410-8aa9-9f06e86f4224
2008-03-05 16:39:51 +00:00
sletz 5900be9a1e Cleanup
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1405 0c269be4-1314-0410-8aa9-9f06e86f4224
2007-02-06 09:32:42 +00:00
sletz 6c798956a2 Typo
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1402 0c269be4-1314-0410-8aa9-9f06e86f4224
2007-02-05 14:58:34 +00:00
sletz c7c660a1dd Typo
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1401 0c269be4-1314-0410-8aa9-9f06e86f4224
2007-02-05 14:35:43 +00:00
sletz d15b87ed18 Typo
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1400 0c269be4-1314-0410-8aa9-9f06e86f4224
2007-02-05 14:34:34 +00:00
sletz 73e2d7a6d3 First import
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1195 0c269be4-1314-0410-8aa9-9f06e86f4224
2006-09-03 07:39:10 +00:00