public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36571]  New: Default untyped return for AVR is byte register.
@ 2008-06-18 22:54 hutchinsonandy at gcc dot gnu dot org
  2008-06-18 23:01 ` [Bug middle-end/36571] " hutchinsonandy at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: hutchinsonandy at gcc dot gnu dot org @ 2008-06-18 22:54 UTC (permalink / raw)
  To: gcc-bugs

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.


-- 
           Summary: Default untyped return for AVR is byte register.
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hutchinsonandy at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr-unknown-nne


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36571


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug middle-end/36571] Default untyped return for AVR is byte register.
  2008-06-18 22:54 [Bug c/36571] New: Default untyped return for AVR is byte register hutchinsonandy at gcc dot gnu dot org
@ 2008-06-18 23:01 ` hutchinsonandy at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: hutchinsonandy at gcc dot gnu dot org @ 2008-06-18 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hutchinsonandy at gcc dot gnu dot org  2008-06-18 23:00 -------
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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36571


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-18 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-18 22:54 [Bug c/36571] New: Default untyped return for AVR is byte register hutchinsonandy at gcc dot gnu dot org
2008-06-18 23:01 ` [Bug middle-end/36571] " hutchinsonandy at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).