Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Bug in gcc version check in ippdefs.h

Stefan_B_3
Beginner
245 Views

Hi guys,

there is a bug in the way the gcc version is checked in ippdefs.h:

#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 5
  #define IPP_DEPRECATED( message ) __attribute__(( deprecated( message )))
#else
  #define IPP_DEPRECATED( message ) __attribute__(( deprecated ))
#endif

While this works fine for e.g. gcc 4.6 and 6.6 (if it would exists) it fails e.g. for 5.0 - 5.4

I would recommend to change this to

#if ( (__GNUC__ * 100) + __GNUC_MINOR__) >= 405
  #define IPP_DEPRECATED( message ) __attribute__(( deprecated( message )))
#else
  #define IPP_DEPRECATED( message ) __attribute__(( deprecated ))
#endif

Especially as these days new gcc major version pop up all the time I guess it has been a while since this deprecation warning has been seen...

Regards,

 

Stefan

0 Kudos
1 Solution
Gennady_F_Intel
Moderator
245 Views

Hi Stefan,

the problem has been fixed in IPP v.2020 which is not available for download. 

Thansk, Gennady

View solution in original post

4 Replies
Igor_A_Intel
Employee
245 Views

Thank you Stefan for discovering this bug, we will fix it in the one of the next IPP releases.

regards, Igor.

Abhinav_S_Intel
Moderator
245 Views

Thank you for reporting the issue Stefan. Can you please open a ticket on  https://supporttickets.intel.com

We can track this issue and fix it in the future release. 

Gennady_F_Intel
Moderator
246 Views

Hi Stefan,

the problem has been fixed in IPP v.2020 which is not available for download. 

Thansk, Gennady

View solution in original post

Stefan_B_3
Beginner
245 Views

Hi Gennady,

great! Thanks! Happy new year to you!

Regards,

STefan

Reply