This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

target/6466: Sparc backend uses bad types for frame size calculation.



>Number:         6466
>Category:       target
>Synopsis:       Sparc backend uses bad types for frame size calculation.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 25 19:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     davem@redhat.com
>Release:        GCC 3.1 CVS
>Organization:
>Environment:
sparc-linux-gnu
>Description:
Lots of code in the sparc backend dealing with computing
the frame size uses 'int' where HOST_WIDE_INT is more
appropriate.  The attached testcase, when compiled for
any sparc target will show the errors that result,
such as "save" instructions with an immediate operand
being a very large negative number.
>How-To-Repeat:
Compile above program on Sparc, look at assembler
output or try to run the testcase :-)
>Fix:
Make Sparc backend use HOST_WIDE_INT as appropriate.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.c"

dm9pZCBmb28gKGNoYXIgKnApCnsKICByZXR1cm47Cn0KCmludCBtYWluKHZvaWQpCnsKICBjaGFy
IHhbMHg3ZmZmZmZmMF07CiAgZm9vICh4KTsKCiAgZXhpdCAoMCk7Cn0K


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]