aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/tm.texi
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-01-24 08:24:34 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2012-01-24 08:24:34 +0100
commit93bcc8c9ff361dbf3f42c9dcced458acfb5e994d (patch)
tree98b79c67cec7eff5791d93ba80cf2ec5abb1fbad /gcc/doc/tm.texi
parent9848887afad7b720d100d536ab35deb7d6c4396c (diff)
downloadgcc-93bcc8c9ff361dbf3f42c9dcced458acfb5e994d.zip
gcc-93bcc8c9ff361dbf3f42c9dcced458acfb5e994d.tar.gz
gcc-93bcc8c9ff361dbf3f42c9dcced458acfb5e994d.tar.bz2
re PR target/51957 (ppc64 .debug_loc toc reference)
PR target/51957 * target.def (const_not_ok_for_debug_p): New hook. * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook documentation. * doc/tm.texi: Regenerated. * dwarf2out.c (const_ok_for_output_1): If targetm.const_not_ok_for_debug_p returns true, fail. * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New function. (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine. * gcc.dg/pr51957-1.c: New test. * gcc.dg/pr51957-1.h: New file. * gcc.dg/pr51957-2.c: New test. From-SVN: r183468
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r--gcc/doc/tm.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 9a51968..ceb0d1e 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -5631,6 +5631,11 @@ the semantics of these opaque @code{UNSPEC}s by converting them back
into their original form.
@end deftypefn
+@deftypefn {Target Hook} bool TARGET_CONST_NOT_OK_FOR_DEBUG_P (rtx @var{x})
+This hook should return true if @var{x} should not be emitted into
+debug sections.
+@end deftypefn
+
@deftypefn {Target Hook} bool TARGET_CANNOT_FORCE_CONST_MEM (enum machine_mode @var{mode}, rtx @var{x})
This hook should return true if @var{x} is of a form that cannot (or
should not) be spilled to the constant pool. @var{mode} is the mode