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

Change default CFLAGS for i486 target #21

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lunzima
Copy link

@lunzima lunzima commented Jul 30, 2024

-O2 -fno-tree-ch generates better results than -Os when keeping binary size small, especially on architectures with severe penalties for non-aligned load/store, and/or architectures with rather small L2/L3 caches.
Also Glibc might be miscompiled by -Os switch, so I suggest using -O2 instead of -Os on selected packages.
See https://github.com/openwrt/openwrt/commit/bf604f35035ae49a3db8a1e1ff67f512a0de86bd

-mtune=bonnell is suboptimal for any CPU other than first generation Intel Atom processors, and will increase binary size.
AOSC-Dev/aosc-os-abbs#7406
With this patch GCC should generate very promising results for Intel P6 variants / AMD K7 Athlons .

Fixes a typo in sparc64 too.

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.

1 participant