public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/36015]  New: [4.3/4.4 Regression] -mregparm and fn decls without arguments
@ 2008-04-22 16:10 jakub at gcc dot gnu dot org
  2008-04-22 16:16 ` [Bug target/36015] " jakub at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-22 16:10 UTC (permalink / raw)
  To: gcc-bugs

/* { dg-do run } */
/* { dg-options "-O0" } */
/* { dg-options "-O0 -mregparm=3" { target { { i?86-*-* x86_64-*-* } && ilp32 }
} } */

static int test ();

int
main (void)
{
  test (0, 1, 2, 3, 4, 5, 6, 7);
  return 0;
}

static int
test (int a, int b, int c, int d, int e, int f, int g, int h)
{
  if (a != 0 || b != 1 || c != 2 || d != 3
      || e != 4 || f != 5 || g != 6 || h != 7)
    __builtin_abort ();
  return 0;
}

used to work until 4.2.x (tested 3.2, 3.3, 3.4, 4.0, 4.1, 4.2) - in all cases
test was passed arguments in 3 regs by the caller and expecting them there.


-- 
           Summary: [4.3/4.4 Regression] -mregparm and fn decls without
                    arguments
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: i686-linux


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


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

end of thread, other threads:[~2008-04-24  7:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-22 16:10 [Bug target/36015] New: [4.3/4.4 Regression] -mregparm and fn decls without arguments jakub at gcc dot gnu dot org
2008-04-22 16:16 ` [Bug target/36015] " jakub at gcc dot gnu dot org
2008-04-22 19:38 ` jakub at gcc dot gnu dot org
2008-04-23 10:46 ` jakub at gcc dot gnu dot org
2008-04-23 13:08 ` hjl dot tools at gmail dot com
2008-04-23 13:30 ` jakub at gcc dot gnu dot org
2008-04-23 14:00 ` jakub at gcc dot gnu dot org
2008-04-24  7:01 ` jakub at gcc dot gnu dot org
2008-04-24  7:05 ` jakub at gcc dot gnu dot org
2008-04-24  7:08 ` jakub 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).