gcc/d/ChangeLog:
PR d/88722
* modules.cc: Include diagnostic.h.
(register_moduleinfo): Use sorry instead of gcc_assert for targets
without named sections.
From-SVN: r274769
+2019-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ PR d/88722
+ * modules.cc: Include diagnostic.h.
+ (register_moduleinfo): Use sorry instead of gcc_assert for targets
+ without named sections.
+
2019-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
* d-target.cc: Include diagnostic.h.
#include "dmd/module.h"
#include "tree.h"
+#include "diagnostic.h"
#include "fold-const.h"
#include "tm.h"
#include "function.h"
static void
register_moduleinfo (Module *decl, tree minfo)
{
- gcc_assert (targetm_common.have_named_sections);
+ if (!targetm_common.have_named_sections)
+ sorry ("%<-fmoduleinfo%> is not supported on this target");
/* Build the ModuleInfo reference, this is done once for every Module. */
tree ident = mangle_internal_decl (decl, "__moduleRef", "Z");