public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered
@ 2003-10-08 9:38 fjh at cs dot mu dot oz dot au
2003-10-08 9:40 ` [Bug target/12538] " fjh at cs dot mu dot oz dot au
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: fjh at cs dot mu dot oz dot au @ 2003-10-08 9:38 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
Summary: sparc bug: gcc -mflat -fpic: l7 clobbered
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fjh at cs dot mu dot oz dot au
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
The attached source files demonstrate a bug with gcc-2.95.1 and gcc 3.2
on SPARCs.
The bug is that if you compile one file with no special options
(or with just `-mflat', or just `-fpic', but not both), and
another file with `-mflat -fpic', and link the two together, then in
the file compiled with no special options it treats register l7 as
a callee-save register, but in the file compiled with `-mflat -fpic'
it clobbers register l7 without saving it.
The attached program should output "1,2,3,4,5,6,7,8,9,10",
but on my system the program gets a Segmentation Fault instead.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] sparc bug: gcc -mflat -fpic: l7 clobbered
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
@ 2003-10-08 9:40 ` fjh at cs dot mu dot oz dot au
2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fjh at cs dot mu dot oz dot au @ 2003-10-08 9:40 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
------- Additional Comments From fjh at cs dot mu dot oz dot au 2003-10-08 09:40 -------
Created an attachment (id=4898)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4898&action=view)
test case part 1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] sparc bug: gcc -mflat -fpic: l7 clobbered
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
2003-10-08 9:40 ` [Bug target/12538] " fjh at cs dot mu dot oz dot au
@ 2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fjh at cs dot mu dot oz dot au @ 2003-10-08 9:42 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
------- Additional Comments From fjh at cs dot mu dot oz dot au 2003-10-08 09:42 -------
Created an attachment (id=4899)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4899&action=view)
test case part 2: x.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] sparc bug: gcc -mflat -fpic: l7 clobbered
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
2003-10-08 9:40 ` [Bug target/12538] " fjh at cs dot mu dot oz dot au
2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
@ 2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
2003-10-08 15:29 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: fjh at cs dot mu dot oz dot au @ 2003-10-08 9:42 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
------- Additional Comments From fjh at cs dot mu dot oz dot au 2003-10-08 09:42 -------
Created an attachment (id=4900)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4900&action=view)
test case part 3: y.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] sparc bug: gcc -mflat -fpic: l7 clobbered
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
` (2 preceding siblings ...)
2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
@ 2003-10-08 15:29 ` pinskia at gcc dot gnu dot org
2003-10-09 7:40 ` [Bug target/12538] %l7 is call-clobbered with -mflat -fpic ebotcazou at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-08 15:29 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-08 15:29 -------
Can you try 3.3.1 as 3.2 is old?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] %l7 is call-clobbered with -mflat -fpic
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
` (3 preceding siblings ...)
2003-10-08 15:29 ` pinskia at gcc dot gnu dot org
@ 2003-10-09 7:40 ` ebotcazou at gcc dot gnu dot org
2003-10-09 7:41 ` ebotcazou at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-10-09 7:40 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |normal
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-09 07:40:47
date| |
Summary|sparc bug: gcc -mflat -fpic:|%l7 is call-clobbered with -
|l7 clobbered |mflat -fpic
Target Milestone|--- |3.4
Version|3.2 |3.3.1
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-10-09 07:40 -------
Confirmed with all GCC versions I tested.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] %l7 is call-clobbered with -mflat -fpic
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
` (4 preceding siblings ...)
2003-10-09 7:40 ` [Bug target/12538] %l7 is call-clobbered with -mflat -fpic ebotcazou at gcc dot gnu dot org
@ 2003-10-09 7:41 ` ebotcazou at gcc dot gnu dot org
2003-10-13 9:58 ` cvs-commit at gcc dot gnu dot org
2003-10-13 10:01 ` ebotcazou at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-10-09 7:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] %l7 is call-clobbered with -mflat -fpic
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
` (5 preceding siblings ...)
2003-10-09 7:41 ` ebotcazou at gcc dot gnu dot org
@ 2003-10-13 9:58 ` cvs-commit at gcc dot gnu dot org
2003-10-13 10:01 ` ebotcazou at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-13 9:58 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-10-13 09:57 -------
Subject: Bug 12538
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ebotcazou@gcc.gnu.org 2003-10-13 09:57:53
Modified files:
gcc : ChangeLog
gcc/config/sparc: sparc.c
Log message:
PR target/12538
* config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
(sparc_flat_must_save_register_p): New function to decide whether
a register must be saved/restored in the function prologue/epilogue.
(sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1398&r2=2.1399
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&r1=1.263&r2=1.264
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/12538] %l7 is call-clobbered with -mflat -fpic
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
` (6 preceding siblings ...)
2003-10-13 9:58 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-13 10:01 ` ebotcazou at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-10-13 10:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12538
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-10-13 10:01 -------
Fixed for GCC 3.4, see http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00889.html
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2003-10-13 10:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-08 9:38 [Bug target/12538] New: sparc bug: gcc -mflat -fpic: l7 clobbered fjh at cs dot mu dot oz dot au
2003-10-08 9:40 ` [Bug target/12538] " fjh at cs dot mu dot oz dot au
2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
2003-10-08 9:42 ` fjh at cs dot mu dot oz dot au
2003-10-08 15:29 ` pinskia at gcc dot gnu dot org
2003-10-09 7:40 ` [Bug target/12538] %l7 is call-clobbered with -mflat -fpic ebotcazou at gcc dot gnu dot org
2003-10-09 7:41 ` ebotcazou at gcc dot gnu dot org
2003-10-13 9:58 ` cvs-commit at gcc dot gnu dot org
2003-10-13 10:01 ` ebotcazou 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).