Commit d31f3604 by Paul Brook Committed by Paul Brook

re PR target/17735 (make stops with "initializer for integer value is too…

re PR target/17735 (make stops with "initializer for integer value is too complicated" while building an avr-cross compiler)

	PR target/17735
	* varasm.c (default_assemble_integer): Allow pointer-sized values.
	Expand comment.

From-SVN: r90918
parent f4e5280b
2004-11-19 Paul Brook <paul@codesourcery.com>
PR target/17735
* varasm.c (default_assemble_integer): Allow pointer-sized values.
Expand comment.
2004-11-19 Nick Clifton <nickc@redhat.com> 2004-11-19 Nick Clifton <nickc@redhat.com>
* config/stormy16/stormy16.c (combine_bnp): Add code to handle * config/stormy16/stormy16.c (combine_bnp): Add code to handle
......
...@@ -2026,8 +2026,9 @@ default_assemble_integer (rtx x ATTRIBUTE_UNUSED, ...@@ -2026,8 +2026,9 @@ default_assemble_integer (rtx x ATTRIBUTE_UNUSED,
int aligned_p ATTRIBUTE_UNUSED) int aligned_p ATTRIBUTE_UNUSED)
{ {
const char *op = integer_asm_op (size, aligned_p); const char *op = integer_asm_op (size, aligned_p);
/* Avoid GAS bugs for values > word size. */ /* Avoid GAS bugs for large values. Specifically negative values whose
if (size > UNITS_PER_WORD) absolute value fits in a bfd_vma, but not in a bfd_signed_vma. */
if (size > UNITS_PER_WORD && size > POINTER_SIZE / BITS_PER_UNIT)
return false; return false;
return op && (assemble_integer_with_op (op, x), true); return op && (assemble_integer_with_op (op, x), true);
} }
......
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