This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/57438] bootstrap fails on x86_64 darwin in stage2 linking cc1


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57438

--- Comment #26 from UroÅ Bizjak <ubizjak at gmail dot com> ---
+      /* If we don't find any, we've got an empty function body; i.e.
+        completely empty - without a return or branch.  Reaching an
+        empty function body means UB.  Let's trap it.  */
+      if (insn == NULL)
+       fputs ("\thlt\n", file);

Probably sou want to use ud2 instruction here.

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