+2015-08-20 Georg-Johann Lay <avr@gjlay.de>
+
+ * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
+ Multiply argument avr_n_flash by 64 to match unit of "KiB".
+ (avr_pgm_check_var_decl): Same.
+
2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
* config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
{
if (TYPE_P (node))
error ("%qT uses address space %qs beyond flash of %d KiB",
- node, avr_addrspace[as].name, avr_n_flash);
+ node, avr_addrspace[as].name, 64 * avr_n_flash);
else
error ("%s %q+D uses address space %qs beyond flash of %d KiB",
- reason, node, avr_addrspace[as].name, avr_n_flash);
+ reason, node, avr_addrspace[as].name, 64 * avr_n_flash);
}
else
{
if (avr_addrspace[as].segment >= avr_n_flash)
{
error ("variable %q+D located in address space %qs beyond flash "
- "of %d KiB", node, avr_addrspace[as].name, avr_n_flash);
+ "of %d KiB", node, avr_addrspace[as].name, 64 * avr_n_flash);
}
else if (!AVR_HAVE_LPM && avr_addrspace[as].pointer_size > 2)
{