Skip to content

Commit

Permalink
re PR fortran/55978 (class_optional_2.f90 -Os fails)
Browse files Browse the repository at this point in the history
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
janusw committed Feb 6, 2013
1 parent 8f093ea commit c362c67
Showing 4 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-02-06 Janus Weil <[email protected]>

PR fortran/55978
* gfortran.dg/class_optional_2.f90: Uncomment some cases which work now.

2013-02-06 Jakub Jelinek <[email protected]>

PR middle-end/56217
6 changes: 3 additions & 3 deletions gcc/testsuite/gfortran.dg/class_optional_2.f90
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
!
! PR fortran/50981
! PR fortran/54618
!
! PR fortran/55978

implicit none
type t
@@ -547,7 +547,7 @@ subroutine a3a1(z, z2, z3, z4, z5)
! call s2elem(z5) ! FIXME: Segfault
! call s2elem_t(x) ! FIXME: Conditional jump or move depends on uninitialised value
! call s2elem_t(y) ! FIXME: Conditional jump or move depends on uninitialised value
! call s2elem_t(z) ! FIXME: Conditional jump or move depends on uninitialised value
call s2elem_t(z)
! call s2elem_t(z2) ! FIXME: Segfault
! call s2elem_t(z3) ! FIXME: Segfault
! call s2elem_t(z4) ! FIXME: Segfault
@@ -590,7 +590,7 @@ subroutine a3a(z, z2, z3)
! call s2elem(z5) ! FIXME: Segfault
! call s2elem_t2(x) ! FIXME: Conditional jump or move depends on uninitialised value
! call s2elem_t2(y) ! FIXME: Conditional jump or move depends on uninitialised value
! call s2elem_t2(z) ! FIXME: Conditional jump or move depends on uninitialised value
call s2elem_t2(z)
! call s2elem_t2(z2) ! FIXME: Segfault
! call s2elem_t2(z3) ! FIXME: Segfault
! call s2elem_t2(z4) ! FIXME: Segfault
6 changes: 6 additions & 0 deletions libgfortran/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2013-02-06 Janus Weil <[email protected]>

PR fortran/55978
* runtime/in_pack_generic.c (internal_pack): Return if base_addr is
NULL.

2013-01-23 Janne Blomqvist <[email protected]>

* io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
3 changes: 3 additions & 0 deletions libgfortran/runtime/in_pack_generic.c
Original file line number Diff line number Diff line change
@@ -48,6 +48,9 @@ internal_pack (gfc_array_char * source)
index_type size;
index_type type_size;

if (source->base_addr == NULL)
return NULL;

type_size = GFC_DTYPE_TYPE_SIZE(source);
size = GFC_DESCRIPTOR_SIZE (source);
switch (type_size)

0 comments on commit c362c67

Please sign in to comment.