This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH]: Yet another location_t pre-patch


Nathan Sidwell wrote:

+ rtx
+ emit_note_copy (orig)
+      rtx orig;
+ {
[snip]
+   note = rtx_alloc (NOTE);
+
+   INSN_UID (note) = cur_insn_uid++;
+   NOTE_DATA (note) = NOTE_DATA (orig);

This breaks bootstrap on s390x-ibm-linux (and it probably wrong for other
64-bit platforms), because this always copies only a 32-bit value, even if
the actual contents of the fourth rtx field of the note occupies 64 bits
(e.g. for a character pointer in the case of a line number note).


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com


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