FreeBSD Bugzilla – Attachment 243324 Details for
Bug 272436
emulators/vmips: fix build with clang 16
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
emulators/vmips patch: fix build with clang 16
patch.txt (text/plain), 1.09 KB, created by
Brian R. Gaeke
on 2023-07-09 20:39:06 UTC
(
hide
)
Description:
emulators/vmips patch: fix build with clang 16
Filename:
MIME Type:
Creator:
Brian R. Gaeke
Created:
2023-07-09 20:39:06 UTC
Size:
1.09 KB
patch
obsolete
>diff -uar --new-file a/emulators/vmips/Makefile b/emulators/vmips/Makefile >--- a/emulators/vmips/Makefile 2022-09-07 14:06:12.000000000 -0700 >+++ b/emulators/vmips/Makefile 2023-07-03 00:26:43.107740000 -0700 >@@ -14,6 +14,8 @@ > > USES= gmake > GNU_CONFIGURE= yes >+USE_CSTD= gnu99 >+USE_CXXSTD= gnu++98 > > INFO= vmips > >diff -uar --new-file a/emulators/vmips/files/patch-vmips.cc b/emulators/vmips/files/patch-vmips.cc >--- a/emulators/vmips/files/patch-vmips.cc 1969-12-31 16:00:00.000000000 -0800 >+++ b/emulators/vmips/files/patch-vmips.cc 2023-07-03 00:30:09.636863000 -0700 >@@ -0,0 +1,24 @@ >+--- vmips.cc.orig 2013-05-25 22:21:31 UTC >++++ vmips.cc >+@@ -591,9 +591,11 @@ vmips::run() >+ return 0; >+ } >+ >++#if 0 >+ static void vmips_unexpected() { >+ fatal_error ("unexpected exception"); >+ } >++#endif >+ >+ static void vmips_terminate() { >+ fatal_error ("uncaught exception"); >+@@ -602,7 +604,9 @@ static void vmips_terminate() { >+ int >+ main(int argc, char **argv) >+ try { >++#if 0 >+ std::set_unexpected(vmips_unexpected); >++#endif >+ std::set_terminate(vmips_terminate); >+ >+ machine = new vmips(argc, argv);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
brg
:
maintainer-approval+
Actions:
View
Attachments on
bug 272436
: 243324