Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
69 Views

Bug in gcc version check in ippdefs.h

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
4 Replies
Highlighted
Employee
69 Views

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

regards, Igor.

0 Kudos
Highlighted
Moderator
69 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
Highlighted
Moderator
69 Views

Hi Stefan,

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

Thansk, Gennady

0 Kudos
Highlighted
Beginner
69 Views

Hi Gennady,

great! Thanks! Happy new year to you!

Regards,

STefan

0 Kudos