aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-01-25 09:31:47 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-01-25 09:31:47 +0000
commit02ef53f28854628ee15784bf860e7db24427a18f (patch)
tree7bd5de90b4460bf0891c58937ced29e702c11e94 /libgomp
parentfa4511c2f4d3bacf5e9d5cc5907d3812204928bb (diff)
downloadgcc-02ef53f28854628ee15784bf860e7db24427a18f.zip
gcc-02ef53f28854628ee15784bf860e7db24427a18f.tar.gz
gcc-02ef53f28854628ee15784bf860e7db24427a18f.tar.bz2
re PR lto/69393 (ICE in dwarf2out_finish, at dwarf2out.c:27175 with LTO)
2016-01-25 Richard Biener <rguenther@suse.de> PR lto/69393 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS. * tree-streamer-out.c (pack_ts_base_value_fields): Stream DECL_NAMELESS. * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise. * testsuite/libgomp.c++/pr69393.C: New testcase. From-SVN: r232787
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog5
-rw-r--r--libgomp/testsuite/libgomp.c++/pr69393.C16
2 files changed, 21 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index b7f2b6d..818d994 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-25 Richard Biener <rguenther@suse.de>
+
+ PR lto/69393
+ * testsuite/libgomp.c++/pr69393.C: New testcase.
+
2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
* target.c (gomp_get_target_fn_addr): Allow host fallback if target
diff --git a/libgomp/testsuite/libgomp.c++/pr69393.C b/libgomp/testsuite/libgomp.c++/pr69393.C
new file mode 100644
index 0000000..e3f0de1
--- /dev/null
+++ b/libgomp/testsuite/libgomp.c++/pr69393.C
@@ -0,0 +1,16 @@
+// { dg-do run }
+// { dg-require-effective-target lto }
+// { dg-options "-flto -g -fopenmp" }
+
+int e = 5;
+
+int
+main ()
+{
+ int a[e];
+ a[0] = 6;
+#pragma omp parallel
+ if (a[0] != 6)
+ __builtin_abort ();
+ return 0;
+}