summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-04-30 12:37:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-05 12:26:41 +0100
commit478deec11f3349d61b1a922f047dc958dc07262a (patch)
tree1843907b36de2bcb8f821d49d8c9a88014ef0dc7 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch
parentd42dccf886983ba14ccc868041d7bea0cf1a260e (diff)
downloadpoky-478deec11f3349d61b1a922f047dc958dc07262a.tar.gz
gcc-4.6.0: Backport FSF 4.6 branch patches
This is set of bugfixes that has been done on FSF gcc-4_2-branch since 4.6.0 was released They will roll into 4.6.1 release once that happens in coming approx 6 months time then we can simply remove them thats the reason so use a separate .inc file to define the SRC_URI additions (From OE-Core rev: b0d5b9f12adbce2c4a0df6059f5671188cd32293) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch
new file mode 100644
index 0000000000..5491aa5eec
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0064-2011-04-04-Janus-Weil-janus-gcc.gnu.org.patch
@@ -0,0 +1,57 @@
1From ca7759868733b4570e496b889e711523640fc582 Mon Sep 17 00:00:00 2001
2From: janus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Mon, 4 Apr 2011 18:53:34 +0000
4Subject: [PATCH 064/200] 2011-04-04 Janus Weil <janus@gcc.gnu.org>
5
6 PR fortran/48291
7 * class.c (get_unique_hashed_string): Adjust maximum allowable length
8 for unique type string.
9
102011-04-04 Janus Weil <janus@gcc.gnu.org>
11
12 PR fortran/48291
13 * gfortran.dg/class_42.f03: New.
14
15
16git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171950 138bc75d-0d04-0410-961f-82ee72b054a4
17
18index 85da3cb..b99930a 100644
19--- a/gcc/fortran/class.c
20+++ b/gcc/fortran/class.c
21@@ -137,9 +137,9 @@ get_unique_hashed_string (char *string, gfc_symbol *derived)
22 {
23 char tmp[2*GFC_MAX_SYMBOL_LEN+2];
24 get_unique_type_string (&tmp[0], derived);
25- /* If string is too long, use hash value in hex representation
26- (allow for extra decoration, cf. gfc_build_class_symbol)*/
27- if (strlen (tmp) > GFC_MAX_SYMBOL_LEN - 10)
28+ /* If string is too long, use hash value in hex representation (allow for
29+ extra decoration, cf. gfc_build_class_symbol & gfc_find_derived_vtab). */
30+ if (strlen (tmp) > GFC_MAX_SYMBOL_LEN - 11)
31 {
32 int h = gfc_hash_value (derived);
33 sprintf (string, "%X", h);
34new file mode 100644
35index 0000000..dd59835
36--- /dev/null
37+++ b/gcc/testsuite/gfortran.dg/class_42.f03
38@@ -0,0 +1,16 @@
39+! { dg-do compile }
40+!
41+! PR 48291: [4.6/4.7 Regression] [OOP] internal compiler error, new_symbol(): Symbol name too long
42+!
43+! Contributed by Adrian Prantl <adrian@llnl.gov>
44+
45+module Overload_AnException_Impl
46+ type :: Overload_AnException_impl_t
47+ end type
48+contains
49+ subroutine ctor_impl(self)
50+ class(Overload_AnException_impl_t) :: self
51+ end subroutine
52+end module
53+
54+! { dg-final { cleanup-modules "Overload_AnException_Impl" } }
55--
561.7.0.4
57