public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/35513]  New: Improve targetm.binds_local_p
@ 2008-03-09 15:07 hjl dot tools at gmail dot com
  2008-03-09 15:17 ` [Bug tree-optimization/35513] " hjl dot tools at gmail dot com
  2010-01-06 23:34 ` hjl dot tools at gmail dot com
  0 siblings, 2 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-03-09 15:07 UTC (permalink / raw)
  To: gcc-bugs

Compiler wants to know:

1. If a symbol will be referenced locally within the file. If a readonly
symbol with initializer is referenced with the file, compiler may
replace symbol read with its initializer. PRs 35402/35494/35501.
2. If a symbol will be referenced locally within the module, an optimized
relocation may be used, depend on symbol types. But for weak, undefined,
hidden function symbol, it is necessary to treat it as global for read.
PR 32219.
3. If a function will be called with in the module, an optimized
relocation may be used.

However, the current targetm.binds_local_p doesn't distinguish those
different usages. As the result, gcc makes wrong conclusions in some
cases, PR 32219.

I think targetm.binds_local_p should take a parameter to indicate
its usage.


-- 
           Summary: Improve targetm.binds_local_p
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com
OtherBugsDependingO 32219,35402,35494,35501
             nThis:


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-35513-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2022-03-01 15:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-09 15:07 [Bug tree-optimization/35513] New: Improve targetm.binds_local_p hjl dot tools at gmail dot com
2008-03-09 15:17 ` [Bug tree-optimization/35513] " hjl dot tools at gmail dot com
2010-01-06 23:34 ` hjl dot tools at gmail dot com
     [not found] <bug-35513-4@http.gcc.gnu.org/bugzilla/>
2022-02-09 12:39 ` cvs-commit at gcc dot gnu.org
2022-02-12 13:50 ` cvs-commit at gcc dot gnu.org
2022-03-01 15:45 ` cvs-commit at gcc dot gnu.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).