Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Bug in gcc version check in ippdefs.h

Stefan_B_3
Beginner
1,178 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
1,178 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

0 Kudos
4 Replies
Igor_A_Intel
Employee
1,178 Views

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

regards, Igor.

0 Kudos
Abhinav_S_Intel
Moderator
1,178 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. 

0 Kudos
Gennady_F_Intel
Moderator
1,179 Views

Hi Stefan,

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

Thansk, Gennady

0 Kudos
Stefan_B_3
Beginner
1,178 Views

Hi Gennady,

great! Thanks! Happy new year to you!

Regards,

STefan

0 Kudos
Reply