| Summary: | Busybox needs -fno-strict-aliasing to compile cleanly | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Grant Edwards <grant.b.edwards> |
| Component: | Other | Assignee: | 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 | ||
I'd rather say that this issue should be fixed at the Busybox level rather than in Buildroot. Peter, your opinion ? (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. Therefore, marked as invalid. |
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.