Bug 6986 - gdb/gdbtk/generic/gdbtk-stack.c - fail due to strict aliasing
Summary: gdb/gdbtk/generic/gdbtk-stack.c - fail due to strict aliasing
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 22:40 UTC by Alon Bar-Lev
Modified: 2008-10-27 21:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
binutils-cvs-gdbtk-stack-strict-aliasing.patch (287 bytes, patch)
2008-10-25 22:40 UTC, Alon Bar-Lev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev 2008-10-25 22:40:08 UTC
Hello,

arguments = *(int*) &clientData;

Gets strict aliasing warning that escalate to error and fails build.

Attached a simple temp fix against head.

Thanks!
Comment 1 Alon Bar-Lev 2008-10-25 22:40:28 UTC
Created attachment 3025 [details]
binutils-cvs-gdbtk-stack-strict-aliasing.patch
Comment 2 Andreas Schwab 2008-10-25 22:53:19 UTC
Neither gdb nor gdbtk are part of binutils.  And the patch is as broken as the 
original code, it still fails on big-endian 64-bit architectures.  Please 
report that to the insight mailinglist.
Comment 3 Alon Bar-Lev 2008-10-25 23:19:48 UTC
Sorry...
So what is it doing in the tree?
Sent a message [1].
Thank you.

[1] http://sources.redhat.com/ml/insight/2008-q4/msg00006.html
Comment 4 Alon Bar-Lev 2008-10-27 21:09:03 UTC
Solved.