public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/47955] New: gcc.dg/stack-usage-1.c fails on m68k-linux
@ 2011-03-02 13:44 mikpe at it dot uu.se
  2011-05-02 17:03 ` [Bug target/47955] " schwab at gcc dot gnu.org
  2011-05-02 17:09 ` schwab@linux-m68k.org
  0 siblings, 2 replies; 3+ messages in thread
From: mikpe at it dot uu.se @ 2011-03-02 13:44 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: gcc.dg/stack-usage-1.c fails on m68k-linux
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mikpe@it.uu.se


The gcc.dg/stack-usage-1.c test case fails on m68k-linux:

> fgrep stack-usage- gcc/testsuite/gcc/gcc.log 
Executing on host: /mnt/scratch/objdir46/gcc/xgcc -B/mnt/scratch/objdir46/gcc/
/mnt/scratch/gcc-4.6-20110226/gcc/testsuite/gcc.dg/stack-usage-1.c  
-fstack-usage -S  -o stack-usage-1.s    (timeout = 300)
/mnt/scratch/gcc-4.6-20110226/gcc/testsuite/gcc.dg/stack-usage-1.c: In function
'foo':
/mnt/scratch/gcc-4.6-20110226/gcc/testsuite/gcc.dg/stack-usage-1.c:53:1:
warning: -fstack-usage not supported for this target [enabled by default]
/mnt/scratch/gcc-4.6-20110226/gcc/testsuite/gcc.dg/stack-usage-1.c: In function
'foo':
/mnt/scratch/gcc-4.6-20110226/gcc/testsuite/gcc.dg/stack-usage-1.c:53:1:
warning: -fstack-usage not supported for this target [enabled by default]
FAIL: gcc.dg/stack-usage-1.c (test for excess errors)
/mnt/scratch/gcc-4.6-20110226/gcc/testsuite/gcc.dg/stack-usage-1.c:53:1:
warning: -fstack-usage not supported for this target [enabled by default]
FAIL: gcc.dg/stack-usage-1.c scan-file foo\t(256|264)\tstatic

The issue is that the m68k backend doesn't set stack usage data, which generic
parts detect and report as "-fstack-usage not supported".

m68k_expand_prologue() should update current_function_static_stack_size if
flag_stack_usage is set.


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

* [Bug target/47955] gcc.dg/stack-usage-1.c fails on m68k-linux
  2011-03-02 13:44 [Bug target/47955] New: gcc.dg/stack-usage-1.c fails on m68k-linux mikpe at it dot uu.se
@ 2011-05-02 17:03 ` schwab at gcc dot gnu.org
  2011-05-02 17:09 ` schwab@linux-m68k.org
  1 sibling, 0 replies; 3+ messages in thread
From: schwab at gcc dot gnu.org @ 2011-05-02 17:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andreas Schwab <schwab at gcc dot gnu.org> 2011-05-02 16:58:36 UTC ---
Author: schwab
Date: Mon May  2 16:58:32 2011
New Revision: 173260

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173260
Log:
PR target/47955
* gcc/config/m68k/m68k.c (m68k_expand_prologue): Set
current_function_static_stack_size.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m68k/m68k.c


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

* [Bug target/47955] gcc.dg/stack-usage-1.c fails on m68k-linux
  2011-03-02 13:44 [Bug target/47955] New: gcc.dg/stack-usage-1.c fails on m68k-linux mikpe at it dot uu.se
  2011-05-02 17:03 ` [Bug target/47955] " schwab at gcc dot gnu.org
@ 2011-05-02 17:09 ` schwab@linux-m68k.org
  1 sibling, 0 replies; 3+ messages in thread
From: schwab@linux-m68k.org @ 2011-05-02 17:09 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> 2011-05-02 17:01:46 UTC ---
Fixed in 4.7.


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

end of thread, other threads:[~2011-05-02 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-02 13:44 [Bug target/47955] New: gcc.dg/stack-usage-1.c fails on m68k-linux mikpe at it dot uu.se
2011-05-02 17:03 ` [Bug target/47955] " schwab at gcc dot gnu.org
2011-05-02 17:09 ` schwab@linux-m68k.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).