Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Stefan_B_3
Beginner
152 Views

Bug in gcc version check in ippdefs.h

Jump to solution

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
152 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
152 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
152 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
153 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
152 Views

Hi Gennady,

great! Thanks! Happy new year to you!

Regards,

STefan

Reply