* config/avr/avr.c (avr_function_arg_advance): Change error to
warning if a fixed register is needed as function argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179040
138bc75d-0d04-0410-961f-
82ee72b054a4
2011-09-21 Georg-Johann Lay <avr@gjlay.de>
+ PR target/45099
+ * config/avr/avr.c (avr_function_arg_advance): Change error to
+ warning if a fixed register is needed as function argument.
+
+2011-09-21 Georg-Johann Lay <avr@gjlay.de>
+
PR target/50449
PR target/50465
* config/avr/avr.md (adjust_len): New insn attribute.
/* Test if all registers needed by the ABI are actually available. If the
user has fixed a GPR needed to pass an argument, an (implicit) function
- call would clobber that fixed register. See PR45099 for an example. */
+ call will clobber that fixed register. See PR45099 for an example. */
if (cum->regno >= 8
&& cum->nregs >= 0)
for (regno = cum->regno; regno < cum->regno + bytes; regno++)
if (fixed_regs[regno])
- error ("Register %s is needed to pass a parameter but is fixed",
- reg_names[regno]);
+ warning (0, "fixed register %s used to pass parameter to function",
+ reg_names[regno]);
}
if (cum->nregs <= 0)