Bug 1339 - Busybox needs -fno-strict-aliasing to compile cleanly
Summary: Busybox needs -fno-strict-aliasing to compile cleanly
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2010.02
Hardware: PC Linux
: P5 minor
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 15:38 UTC by Grant Edwards
Modified: 2010-07-22 15:12 UTC (History)
1 user (show)

See Also:
Host: Gentoo Linux
Target: Atmel ARM9
Build: 2010.2


Attachments
Fix strict-aliasing compiler warnings (489 bytes, patch)
2010-03-17 15:38 UTC, Grant Edwards
Details

Note You need to log in before you can comment on or make changes to this bug.
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.