+2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR pretty-print/67567
+ * pretty-print.c (pp_string): Add gcc_checking_assert.
+ * pretty-print.h (output_buffer_append_r): Likewise.
+
2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
PR target/67675
+2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR pretty-print/67567
+ * resolve.c (resolve_fl_procedure): Work-around when iface->module
+ == NULL.
+
2015-09-21 Steven G. Kargl <kargl@gcc.gnu.org>
* resolve.c (nonscalar_typebound_assign): Fix typos in comment.
{
gfc_error ("Mismatch in PURE attribute between MODULE "
"PROCEDURE at %L and its interface in %s",
- &sym->declared_at, iface->module);
+ &sym->declared_at,
+ /* FIXME: PR fortran/67567: iface->module should
+ not be NULL ! */
+ iface->module ? iface->module : "");
return false;
}
{
gfc_error ("Mismatch in RECURSIVE attribute between MODULE "
"PROCEDURE at %L and its interface in %s",
- &sym->declared_at, iface->module);
+ &sym->declared_at,
+ /* FIXME: PR fortran/67567: iface->module should
+ not be NULL ! */
+ iface->module ? iface->module : "");
return false;
}
{
gfc_error ("%s between the MODULE PROCEDURE declaration "
"in module %s and the declaration at %L in "
- "SUBMODULE %s", errmsg, iface->module,
+ "SUBMODULE %s", errmsg,
+ /* FIXME: PR fortran/67567: iface->module should
+ not be NULL ! */
+ iface->module ? iface->module : "",
&sym->declared_at, sym->ns->proc_name->name);
return false;
}
void
pp_string (pretty_printer *pp, const char *str)
{
- pp_maybe_wrap_text (pp, str, str + (str ? strlen (str) : 0));
+ gcc_checking_assert (str);
+ pp_maybe_wrap_text (pp, str, str + strlen (str));
}
/* Maybe print out a whitespace if needed. */
static inline void
output_buffer_append_r (output_buffer *buff, const char *start, int length)
{
+ gcc_checking_assert (start);
obstack_grow (buff->obstack, start, length);
buff->line_length += length;
}