New: Busybox needs -fno-stric-aliasing to compile cleanly
https://bugs.busybox.net/show_bug.cgi?id=1339
Host: Gentoo Linux
Target: Atmel ARM9
Build: 2010.2
Summary: Busybox needs -fno-stric-aliasing to compile cleanly
Product: buildroot
Version: 2010.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: grant.b.edwards at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Created an attachment (id=1315)
--> (https://bugs.busybox.net/attachment.cgi?id=1315)
Fix strick-aliasing compiler warnings
When busybox is compiled (with gcc 4.4.3), there are thousands of compiler warnings about code that is breaking the strict aliasing rules that must be followed if -O2 or greater optimization level is to be used.
Adding -fno-strict-aliasing to CFLAGS fixes this problem.
Patch is attached.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly
https://bugs.busybox.net/show_bug.cgi?id=1339
Grant Edwards <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Busybox needs -fno-stric- |Busybox needs -fno-strict-
|aliasing to compile cleanly |aliasing to compile cleanlySignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1339
Grant Edwards <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #1315|Fix strick-aliasing compiler|Fix strict-aliasing compiler
description|warnings |warningsSignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1339
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.05
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1339
--- Comment #1 from Thomas Petazzoni <[email protected]> --- I'd rather say that this issue should be fixed at the Busybox level rather than in Buildroot. Peter, your opinion ?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1339
--- Comment #2 from Peter Korsgaard <[email protected]> --- (In reply to comment #1)
Quoted 2 lines
I'd rather say that this issue should be fixed at the Busybox level rather than in Buildroot. Peter, your opinion ?
Yes. And as they are just warnings and not errors it isn't a big problem.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1339
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID--- Comment #3 from Thomas Petazzoni <[email protected]> --- Therefore, marked as invalid.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.