Bug 1339

Summary: Busybox needs -fno-strict-aliasing to compile cleanly
Product: buildroot Reporter: Grant Edwards <grant.b.edwards>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: minor CC: buildroot
Priority: P5    
Version: 2010.02   
Target Milestone: 2010.05   
Hardware: PC   
OS: Linux   
Host: Gentoo Linux Target: Atmel ARM9
Build: 2010.2
Attachments: Fix strict-aliasing compiler warnings

Description Grant Edwards 2010-03-17 15:38:42 UTC
Created attachment 1315 [details]
Fix strict-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.
Comment 1 Thomas Petazzoni 2010-07-18 19:15:25 UTC
I'd rather say that this issue should be fixed at the Busybox level rather than in Buildroot. Peter, your opinion ?
Comment 2 Peter Korsgaard 2010-07-18 20:14:20 UTC
(In reply to comment #1)
> 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.
Comment 3 Thomas Petazzoni 2010-07-22 15:12:13 UTC
Therefore, marked as invalid.