OpenCores
Issue List
gdb-6.8 won't compile - or1k-jtag.c #63
Closed guepe opened this issue about 15 years ago
guepe commented about 15 years ago

With gcc version 4.4.1 at least, the gdb-6.8 downloaded by the opencore script won't compile, with the error :

or1k-jtag.c: In function ‘jp1_ll_read_jp1’: or1k-jtag.c:372: erreur: ‘data’ may be used uninitialized in this function

This is not true since the IOCTL changes the data value, but this is a warning that seems to be treated as an error. Yet, to succesfully compile this file is very simple. Just initialize data (declared a few lines before, int data) to int data = 0

Done ;-)

jeremybennett commented about 15 years ago
<p> Hi Guepe, </p> <p> Thanks for this. I'll commit the fix. </p> <p> Jeremy </p> <p> -- <br /> Tel: +44 (1590) 610184<br /> Cell: +44 (7970) 676050<br /> SkypeID: jeremybennett<br /> Email: <a href="mailto:jeremy.bennett@embecosm.com">jeremy.bennett@embecosm.com</a><br /> Web: <a href="http://www.embecosm.com">www.embecosm.com</a> </p>
jeremybennett was assigned about 15 years ago
jeremybennett commented about 15 years ago
<p> Committed in the repository. I won't make a new patch file, since GDB 7.0 is out shortly, when there will be a whole new release. </p> <p> <strong>Note.</strong> In the next release the OpenRISC JTAG protocol will be dropped in favour of Remote Serial Protocol (which is standard), so this part of the code will be removed at that time. </p> <p> -- <br /> Tel: +44 (1590) 610184<br /> Cell: +44 (7970) 676050<br /> SkypeID: jeremybennett<br /> Email: <a href="mailto:jeremy.bennett@embecosm.com">jeremy.bennett@embecosm.com</a><br /> Web: <a href="http://www.embecosm.com">www.embecosm.com</a> </p>
jeremybennett closed this about 15 years ago

Assignee
jeremybennett
Labels
Bug