public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/11135] New: It ought to be possible to make PIC_OFFSET_TABLE_REGNUM a pseudo
@ 2003-06-09 15:25 rearnsha@gcc.gnu.org
2003-06-09 15:47 ` [Bug middle-end/11135] " pinskia@physics.uc.edu
2003-07-23 19:28 ` pinskia at physics dot uc dot edu
0 siblings, 2 replies; 3+ messages in thread
From: rearnsha@gcc.gnu.org @ 2003-06-09 15:25 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=11135
Summary: It ought to be possible to make PIC_OFFSET_TABLE_REGNUM
a pseudo
Product: gcc
Version: unknown
Status: NEW
Keywords: pessimizes-code
Severity: enhancement
Priority: P5
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rearnsha@gcc.gnu.org
CC: gcc-bugs@gcc.gnu.org
OtherBugsDependingO 592
nThis:
Currently the documentation says:
> @findex PIC_OFFSET_TABLE_REGNUM
> The register number of the register used to address a table of static
> data addresses in memory. In some cases this register is defined by a
> processor's ``application binary interface'' (ABI)@. When this macro
> is defined, RTL is generated for this register once, as with the stack
> pointer and frame pointer registers. If this macro is not defined, it
> is up to the machine-dependent files to allocate such a register (if
> necessary). Note that this register must be fixed when in use (e.g.@:
> when @code{flag_pic} is true).
This pessimizes code when the pic register is used in a leaf function, or when
there is only a single use (since the register is fixed for the entire
function). It ought to be possible for a machine description to make the PIC
register a pseudo that is allocated as normal. Then the register can be either
call-clobbered or call saved as appropriate and can even be spilled onto the
stack if that is preferable.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/11135] It ought to be possible to make PIC_OFFSET_TABLE_REGNUM a pseudo
2003-06-09 15:25 [Bug middle-end/11135] New: It ought to be possible to make PIC_OFFSET_TABLE_REGNUM a pseudo rearnsha@gcc.gnu.org
@ 2003-06-09 15:47 ` pinskia@physics.uc.edu
2003-07-23 19:28 ` pinskia at physics dot uc dot edu
1 sibling, 0 replies; 3+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-09 15:47 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=11135
------- Additional Comments From pinskia@physics.uc.edu 2003-06-09 15:47 -------
This also effects powerpc-apple-darwin which uses a fixed PIC register of r31 which
sometimes gets saved even though a function does not need it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/11135] It ought to be possible to make PIC_OFFSET_TABLE_REGNUM a pseudo
2003-06-09 15:25 [Bug middle-end/11135] New: It ought to be possible to make PIC_OFFSET_TABLE_REGNUM a pseudo rearnsha@gcc.gnu.org
2003-06-09 15:47 ` [Bug middle-end/11135] " pinskia@physics.uc.edu
@ 2003-07-23 19:28 ` pinskia at physics dot uc dot edu
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-23 19:28 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=11135
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-23 19:28 -------
Most likely not going to be happening for 3.4 so removing target milestone.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-23 19:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09 15:25 [Bug middle-end/11135] New: It ought to be possible to make PIC_OFFSET_TABLE_REGNUM a pseudo rearnsha@gcc.gnu.org
2003-06-09 15:47 ` [Bug middle-end/11135] " pinskia@physics.uc.edu
2003-07-23 19:28 ` pinskia at physics dot uc dot edu
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).