Skip to content

Commit

Permalink
[FIX] Nightly: bogus memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Jul 19, 2024
1 parent d7b6c32 commit 33f3eba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,15 @@ class pairwise_alignment_algorithm_banded :
size_t const sequence1_size = std::ranges::distance(simd_seq1_collection);
size_t const sequence2_size = std::ranges::distance(simd_seq2_collection);

#if SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif // SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
auto && [alignment_matrix, index_matrix] =
this->acquire_matrices(sequence1_size, sequence2_size, this->lowest_viable_score());
#if SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
# pragma GCC diagnostic pop
#endif // SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY

compute_matrix(simd_seq1_collection, simd_seq2_collection, alignment_matrix, index_matrix);

Expand Down
2 changes: 1 addition & 1 deletion include/seqan3/core/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static_assert(sdsl::sdsl_version_major == 3, "Only version 3 of the SDSL is supp
* \see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105545
*/
#ifndef SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY
# if SEQAN3_COMPILER_IS_GCC && (__GNUC__ == 12 || __GNUC__ == 13 || __GNUC__ == 14)
# if SEQAN3_COMPILER_IS_GCC && (__GNUC__ >= 12)
# define SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY 1
# else
# define SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY 0
Expand Down

0 comments on commit 33f3eba

Please sign in to comment.