Bug 6986

Summary: gdb/gdbtk/generic/gdbtk-stack.c - fail due to strict aliasing
Product: binutils Reporter: Alon Bar-Lev <alon.barlev>
Component: binutilsAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.20   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: binutils-cvs-gdbtk-stack-strict-aliasing.patch

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.