* config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
* config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
(v850_handle_data_area_attribute): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69812
138bc75d-0d04-0410-961f-
82ee72b054a4
+2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
+ * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
+ * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
+ (v850_handle_data_area_attribute): Likewise.
+
2003-07-26 Geoffrey Keating <geoffk@apple.com>
* Makefile.in (libbackend.o): Remove options_.h.
&& !DECL_VIRTUAL_P (decl)
&& DECL_INITIAL (decl))
{
- error_with_decl (decl, "initialized variable `%s' is marked dllimport");
+ error ("%Hinitialized variable '%D' is marked dllimport",
+ &DECL_SOURCE_LOCATION (decl), decl);
return;
}
/* Nor can they be static. */
&& !DECL_VIRTUAL_P (decl)
&& 0 /*???*/)
{
- error_with_decl (decl, "static variable `%s' is marked dllimport");
+ error ("%Hstatic variable '%D' is marked dllimport",
+ &DECL_SOURCE_LOCATION (decl), decl);
return;
}
&& !DECL_VIRTUAL_P (decl)
&& DECL_INITIAL (decl))
{
- error_with_decl (decl, "initialized variable `%s' is marked dllimport");
+ error ("%Hinitialized variable '%D' is marked dllimport",
+ &DECL_SOURCE_LOCATION (decl), decl);
return;
}
case VAR_DECL:
if (current_function_decl != NULL_TREE)
{
- error_with_decl (decl, "\
-a data area attribute cannot be specified for local variables");
+ error ("%Ha data area attribute cannot be specified for "
+ "local variables", &DECL_SOURCE_LOCATION (decl), decl);
*no_add_attrs = true;
}
area = v850_get_data_area (decl);
if (area != DATA_AREA_NORMAL && data_area != area)
{
- error_with_decl (decl, "\
-data area of '%s' conflicts with previous declaration");
+ error ("%Hdata area of '%D' conflicts with previous declaration",
+ &DECL_SOURCE_LOCATION (decl), decl);
*no_add_attrs = true;
}
break;