Bug #89427 Cap workaround for GCC bug 77673
Submitted: 26 Jan 2018 4:35 Modified: 26 Jan 2018 6:33
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:5.5,5.6,5.7,8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: gcc, miscompilation

[26 Jan 2018 4:35] Laurynas Biveinis
Description:
Bug 83073 added a workaround for GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77673. Now that GCC bug has been fixed in all the affected branches, starting with GCC 5.5, 6.3, 7.1 minor versions. 

The workaround should take this into account to prevent redundant pessimization and to allow eventual removal once GCC 6 series become too old to compile MySQL in the future.

How to repeat:
See above

Suggested fix:
Only deply the workaround if GCC version >= 5.1 and < 5.5 or >= 6.1 and < 6.3.
[26 Jan 2018 6:33] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

Thanks,
Umesh
[30 Sep 2018 7:32] Erlend Dahl
Bug#92134 Remove workaround for GCC bug 77673 for newer GCC versions

was marked as a duplicate.
[27 Mar 2020 14:08] MySQL Verification Team
Thank you, Laurynas.