Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix i386 build broken by the merge of ea400129c #12252

Closed
wants to merge 1 commit into from

Conversation

mmatuska
Copy link
Contributor

@mmatuska mmatuska commented Jun 18, 2021

Motivation and Context

The changes in ea40012 (More aggsum optimizations) expect the commit fef8bd4 (libspl: implement atomics in terms of atomics) to be landed.

Merge of ea40012 without fef8bd4 broke the build on i386 (#12244)

Description

Add missing bits to i386 assembler code.
As an alternative, fef8bd4 could be merged

How Has This Been Tested?

Already included as a (temporary) fix in FreeBSD 13-STABLE

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes openzfs#12244
@behlendorf behlendorf self-assigned this Jun 22, 2021
behlendorf pushed a commit that referenced this pull request Jun 22, 2021
This replaces the generic libspl atomic.c atomics implementation
with one based on builtin gcc atomics.  This functionality was added
as an experimental feature in gcc 4.4.  Today even CentOS 7 ships
with gcc 4.8 as the default compiler we can make this the default.

Furthermore, the builtin atomics are as good or better than our
hand-rolled implementation so it's reasonable to drop that custom code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11904
Closes #12252
Closes #12244
@behlendorf
Copy link
Contributor

Thanks for catching this! I've gone ahead and applied the alternate fix of applying all of fef8bd4 to the 2.1 release branch.

@behlendorf behlendorf closed this Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants