Skip to contentSkip to conversation

New: Busybox needs -fno-stric-aliasing to compile cleanly

Buildroot bugzilla at busybox.net 1 participant 7 messages Mar 17, 2010 – Jul 22, 2010

lore
Share & tools
lore
#0 lore raw

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.
#1 lore raw

[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 cleanly
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.
#2 lore raw

[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly

In reply to bugzilla at busybox.net

https://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                    |warnings
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.
#3 lore raw

[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly

In reply to bugzilla at busybox.net

https://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.
#4 lore raw

[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly

In reply to bugzilla at busybox.net

https://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.
#5 lore raw

[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly

In reply to bugzilla at busybox.net

https://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.
#6 lore raw

[Buildroot] [Bug 1339] Busybox needs -fno-strict-aliasing to compile cleanly

In reply to bugzilla at busybox.net

https://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.