Skip to content

Commit c362c67

Browse files
committed
re PR fortran/55978 (class_optional_2.f90 -Os fails)
2013-02-06 Janus Weil <[email protected]> PR fortran/55978 * runtime/in_pack_generic.c (internal_pack): Return if base_addr is NULL. 2013-02-06 Janus Weil <[email protected]> PR fortran/55978 * gfortran.dg/class_optional_2.f90: Uncomment some cases which work now. From-SVN: r195814
1 parent 8f093ea commit c362c67

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

gcc/testsuite/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2013-02-06 Janus Weil <[email protected]>
2+
3+
PR fortran/55978
4+
* gfortran.dg/class_optional_2.f90: Uncomment some cases which work now.
5+
16
2013-02-06 Jakub Jelinek <[email protected]>
27

38
PR middle-end/56217

gcc/testsuite/gfortran.dg/class_optional_2.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
!
44
! PR fortran/50981
55
! PR fortran/54618
6-
!
6+
! PR fortran/55978
77

88
implicit none
99
type t
@@ -547,7 +547,7 @@ subroutine a3a1(z, z2, z3, z4, z5)
547547
! call s2elem(z5) ! FIXME: Segfault
548548
! call s2elem_t(x) ! FIXME: Conditional jump or move depends on uninitialised value
549549
! call s2elem_t(y) ! FIXME: Conditional jump or move depends on uninitialised value
550-
! call s2elem_t(z) ! FIXME: Conditional jump or move depends on uninitialised value
550+
call s2elem_t(z)
551551
! call s2elem_t(z2) ! FIXME: Segfault
552552
! call s2elem_t(z3) ! FIXME: Segfault
553553
! call s2elem_t(z4) ! FIXME: Segfault
@@ -590,7 +590,7 @@ subroutine a3a(z, z2, z3)
590590
! call s2elem(z5) ! FIXME: Segfault
591591
! call s2elem_t2(x) ! FIXME: Conditional jump or move depends on uninitialised value
592592
! call s2elem_t2(y) ! FIXME: Conditional jump or move depends on uninitialised value
593-
! call s2elem_t2(z) ! FIXME: Conditional jump or move depends on uninitialised value
593+
call s2elem_t2(z)
594594
! call s2elem_t2(z2) ! FIXME: Segfault
595595
! call s2elem_t2(z3) ! FIXME: Segfault
596596
! call s2elem_t2(z4) ! FIXME: Segfault

libgfortran/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2013-02-06 Janus Weil <[email protected]>
2+
3+
PR fortran/55978
4+
* runtime/in_pack_generic.c (internal_pack): Return if base_addr is
5+
NULL.
6+
17
2013-01-23 Janne Blomqvist <[email protected]>
28

39
* io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX

libgfortran/runtime/in_pack_generic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ internal_pack (gfc_array_char * source)
4848
index_type size;
4949
index_type type_size;
5050

51+
if (source->base_addr == NULL)
52+
return NULL;
53+
5154
type_size = GFC_DTYPE_TYPE_SIZE(source);
5255
size = GFC_DESCRIPTOR_SIZE (source);
5356
switch (type_size)

0 commit comments

Comments
 (0)