This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51957] [4.7 Regression] ppc64 .debug_loc toc reference
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jan 2012 07:24:44 +0000
- Subject: [Bug target/51957] [4.7 Regression] ppc64 .debug_loc toc reference
- Auto-submitted: auto-generated
- References: <bug-51957-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51957
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-24 07:24:44 UTC ---
Author: jakub
Date: Tue Jan 24 07:24:34 2012
New Revision: 183468
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183468
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/pr51957-1.c
trunk/gcc/testsuite/gcc.dg/pr51957-1.h
trunk/gcc/testsuite/gcc.dg/pr51957-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
trunk/gcc/doc/tm.texi
trunk/gcc/doc/tm.texi.in
trunk/gcc/dwarf2out.c
trunk/gcc/target.def
trunk/gcc/testsuite/ChangeLog