summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr51957-1.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-24 07:24:34 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-24 07:24:34 +0000
commit202e709769152b052689c9bec9b8767d324864ae (patch)
tree98b79c67cec7eff5791d93ba80cf2ec5abb1fbad /gcc/testsuite/gcc.dg/pr51957-1.h
parente5f7c42c31a837a235331b9e416f641dceae5d30 (diff)
downloadgcc-202e709769152b052689c9bec9b8767d324864ae.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183468 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr51957-1.h')
-rw-r--r--gcc/testsuite/gcc.dg/pr51957-1.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr51957-1.h b/gcc/testsuite/gcc.dg/pr51957-1.h
new file mode 100644
index 00000000000..cfafb2cc57e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr51957-1.h
@@ -0,0 +1,9 @@
+union R { int c; union R *p; };
+extern union R *w[];
+typedef struct { int t; } T;
+typedef struct { void *u; } U;
+union R *fn1 (void);
+void fn2 (int, const char *, union R *);
+void fn3 (void);
+int fn4 (union R *);
+void foo (U *x);