Description of problem: I saw below 3 build errors when trying to build the gdb from rawhide on ia64. I will attach a patch to fix them. I have done a successfully scratch build of gdb with the patch. http://ia64.koji.fedoraproject.org/koji/taskinfo?taskID=60580 1) ../../gdb/ia64-tdep.c: In function 'ia64_sigtramp_frame_prev_register': ../../gdb/ia64-tdep.c:2089: error: ISO C90 forbids mixed declarations and code 2) ../../gdb/ia64-tdep.c: In function ‘examine_prologue’: ../../gdb/ia64-tdep.c:1237: error: array subscript is above array bounds The statement in the codes is else if (qp == 0 && rM >= 32 && rM < 40 && !instores[rM] && but instores is defined as char instores[8]; Replacing instores[rM] by instores[rM-32] could fix this. 3) ../../gdb/libunwind-frame.c: In function ‘libunwind_frame_cache’: ../../gdb/libunwind-frame.c:137: error: redeclaration of ‘fp’ with no linkage ../../gdb/libunwind-frame.c:136: error: previous declaration of ‘fp’ was here This is introduced by line 38 in gdb-6.3-ia64-sigtramp-fp-20050926.patch. Probably a typo. Version-Release number of selected component (if applicable): gdb-6.8-2.fc9 How reproducible: aways Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 302566 [details] fix the build errors
Committed to Rawhide: * Wed Apr 16 2008 Jan Kratochvil <jan.kratochvil> - 6.8-3 - Fix ia64 compilation errors (Yi Zhan, BZ 442684).
gdb-6.8-5.fc9 has been submitted as an update for Fedora 9
gdb-6.8-5.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.