User account creation filtered due to spam.

Bug 36571 - Default untyped return for AVR is byte register.
Summary: Default untyped return for AVR is byte register.
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.4.0
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2008-06-18 22:53 UTC by Andy Hutchinson
Modified: 2008-06-18 22:54 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: avr-unknown-nne
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Hutchinson 2008-06-18 22:53:30 UTC
Test testsuite/gcc.dg/builtin-return-1.c will fail for avr target.

Default implementation of builtin-return-1 is untyped return of a single register.
Which is R25 and only 1 byte. This is not int as test expects.
So high byte may and does get overwritten before outer return.

The test may be invalid, but this is also reminder that AVR target does not have a complete definition for untyped return. The default is pretty useless.

Test with be marked XFAIL.
Comment 1 Andy Hutchinson 2008-06-18 23:00:38 UTC
Subject: Bug 36571

Author: hutchinsonandy
Date: Wed Jun 18 22:59:41 2008
New Revision: 136926

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136926
Log:
PR c/36571
* gcc.dg/builtin-return-1.c: Mark as xfail on AVR.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/builtin-return-1.c