This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] Fix compilation of the ia64 target for 32bit hosts


Hi,

with --enable-targets=all --enable-64-bit-bfd on 32-bit hosts the build
currently failed with
ia64-tdep.c: In function ‘ia64_breakpoint_from_pc’:
ia64-tdep.c:752: warning: integer constant is too large for ‘long’ type

due to my patch:
http://sourceware.org/ml/gdb-patches/2008-11/msg00697.html


Sorry,
Jan
2008-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix compilation on 32-bit host configurations.
	* ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.

===================================================================
RCS file: /cvs/src/src/gdb/ia64-tdep.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -r1.186 -r1.187
--- src/gdb/ia64-tdep.c	2008/11/26 05:27:48	1.186
+++ src/gdb/ia64-tdep.c	2008/12/05 18:25:01	1.187
@@ -749,7 +749,7 @@
      the parameter value.  For L+X slot pair we are at the X slot (slot 2) so
      we should not touch the L slot - the upper 41 bits of the parameter.  */
   instr_fetched = slotN_contents (bundle, slotnum);
-  instr_fetched &= 0x1003ffffc0;
+  instr_fetched &= 0x1003ffffc0LL;
   replace_slotN_contents (bundle, instr_fetched, slotnum);
 
   *lenptr = BUNDLE_LEN - 2;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]