Commit ba9cfcb5 by Gabriel Dos Reis Committed by Gabriel Dos Reis

pe.c (arm_mark_dllimport): Don't use xxx_with_decl.

	* 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.

From-SVN: r69812
parent d2908a50
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> 2003-07-26 Geoffrey Keating <geoffk@apple.com>
* Makefile.in (libbackend.o): Remove options_.h. * Makefile.in (libbackend.o): Remove options_.h.
......
...@@ -167,7 +167,8 @@ arm_mark_dllimport (decl) ...@@ -167,7 +167,8 @@ arm_mark_dllimport (decl)
&& !DECL_VIRTUAL_P (decl) && !DECL_VIRTUAL_P (decl)
&& DECL_INITIAL (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; return;
} }
/* Nor can they be static. */ /* Nor can they be static. */
...@@ -176,7 +177,8 @@ arm_mark_dllimport (decl) ...@@ -176,7 +177,8 @@ arm_mark_dllimport (decl)
&& !DECL_VIRTUAL_P (decl) && !DECL_VIRTUAL_P (decl)
&& 0 /*???*/) && 0 /*???*/)
{ {
error_with_decl (decl, "static variable `%s' is marked dllimport"); error ("%Hstatic variable '%D' is marked dllimport",
&DECL_SOURCE_LOCATION (decl), decl);
return; return;
} }
......
...@@ -3410,7 +3410,8 @@ mcore_mark_dllimport (decl) ...@@ -3410,7 +3410,8 @@ mcore_mark_dllimport (decl)
&& !DECL_VIRTUAL_P (decl) && !DECL_VIRTUAL_P (decl)
&& DECL_INITIAL (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; return;
} }
......
...@@ -2257,8 +2257,8 @@ v850_handle_data_area_attribute (node, name, args, flags, no_add_attrs) ...@@ -2257,8 +2257,8 @@ v850_handle_data_area_attribute (node, name, args, flags, no_add_attrs)
case VAR_DECL: case VAR_DECL:
if (current_function_decl != NULL_TREE) if (current_function_decl != NULL_TREE)
{ {
error_with_decl (decl, "\ error ("%Ha data area attribute cannot be specified for "
a data area attribute cannot be specified for local variables"); "local variables", &DECL_SOURCE_LOCATION (decl), decl);
*no_add_attrs = true; *no_add_attrs = true;
} }
...@@ -2268,8 +2268,8 @@ a data area attribute cannot be specified for local variables"); ...@@ -2268,8 +2268,8 @@ a data area attribute cannot be specified for local variables");
area = v850_get_data_area (decl); area = v850_get_data_area (decl);
if (area != DATA_AREA_NORMAL && data_area != area) if (area != DATA_AREA_NORMAL && data_area != area)
{ {
error_with_decl (decl, "\ error ("%Hdata area of '%D' conflicts with previous declaration",
data area of '%s' conflicts with previous declaration"); &DECL_SOURCE_LOCATION (decl), decl);
*no_add_attrs = true; *no_add_attrs = true;
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment