mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2743] MAYBE_INLINE is broken for GCC 5+ #1764
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1764
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @solardiz on GitHub (Sep 9, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2743
Commit
1c29d04c0amade as part of work on #1093 changed MAYBE_INLINE for GCC 5+ in a way that now results in failing to inline and a major performance regression (20%+ for one core in use, 10%+ for all in use) at least for descrypt at least when building with devtoolset-6's gcc 6.3.1 for AVX. I didn't look into the rationale for that old commit, but reverting from__attribute__((gnu_inline))back to__attribute__((always_inline))fixes the performance regression for me.@solardiz commented on GitHub (Sep 9, 2017):
This also fixes the issue for me:
I think the two attributes are not mutually-exclusive (or are they?), and it was a bug to drop
__attribute__((always_inline))in that fix for #1093. But we need to retest with early GCC 5 to ensure that issue isn't back with the fix above.@ghost commented on GitHub (Sep 9, 2017):
I would say: commit and watch bots working. We have gcc 4.8, 5.4, 6.3 and 7.2. Also, clang 3.9 and 4.0. It is not pure science, but you can also pay attention to the build time of all build jobs looking for any hints of trouble.
@solardiz commented on GitHub (Sep 9, 2017):
I agree - let's commit. But this doesn't mean the problem won't resurface with early gcc 5. I've already tested my fix above with gcc 5.3.1, and there's no problem, but that version of gcc might already have a fix in it as well.