Commit 93c74e59 by Georg-Johann Lay Committed by Georg-Johann Lay

re PR c/83801 ([avr] String constant in __flash not put into .progmem)

	PR c/83801
	PR c/83729
	* gcc.target/avr/torture/pr83729.c: New test.
	* gcc.target/avr/torture/pr83801.c: New test.

From-SVN: r256687
parent 3fccbb9e
2018-01-15 Georg-Johann Lay <avr@gjlay.de>
PR c/83801
PR c/83729
* gcc.target/avr/torture/pr83729.c: New test.
* gcc.target/avr/torture/pr83801.c: New test.
2018-01-15 Jakub Jelinek <jakub@redhat.com>
PR middle-end/82694
......
/* { dg-options { "-std=gnu99" } } */
/* { dg-do run { target { ! avr_tiny } } } */
__attribute((noinline,noclone))
char to_ascii (unsigned i)
{
static const char __memx code_tab[] = "0123456789";
return code_tab[i];
}
int main()
{
if (to_ascii (2) != '2')
__builtin_abort();
return 0;
}
/* { dg-options { "-std=gnu99" } } */
/* { dg-do run { target { ! avr_tiny } } } */
__attribute((noinline,noclone))
char to_ascii (unsigned i)
{
static const char __flash code_tab[] = "0123456789";
return code_tab[i];
}
int main()
{
if (to_ascii (2) != '2')
__builtin_abort();
return 0;
}
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