Commit e35d98e5 authored by Roman Donchenko's avatar Roman Donchenko

Worked around an apparent GCC bug in moments.

parent e8d26b02
...@@ -197,6 +197,10 @@ static void icvContourMoments( CvSeq* contour, CvMoments* moments ) ...@@ -197,6 +197,10 @@ static void icvContourMoments( CvSeq* contour, CvMoments* moments )
\****************************************************************************************/ \****************************************************************************************/
template<typename T, typename WT, typename MT> template<typename T, typename WT, typename MT>
#if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 9
// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60196
__attribute__((optimize("no-tree-vectorize")))
#endif
static void momentsInTile( const cv::Mat& img, double* moments ) static void momentsInTile( const cv::Mat& img, double* moments )
{ {
cv::Size size = img.size(); cv::Size size = img.size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment