gcc/libgfortran/runtime
Thomas Koenig c7d0f4d5fa re PR libfortran/32972 (performance of pack/unpack)
2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
	Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

	PR libfortran/32972
	PR libfortran/32512
	configure.ac:  Add test for uintptr_t.
	configure:  Regenerated.
	config.h.in:  Regenerated.
	* libgfortran.h: GFC_DTYPE_DERIVED_1:  New macro.
	GFC_DTYPE_DERIVED_2:  New macro.
	GFC_DTYPE_DERIVED_4:  New macro.
	GFC_DTYPE_DERIVED_8:  New macro.
	GFC_DTYPE_DERIVED_16:  New macro.
	GFC_UNALIGNED_2:  New macro.
	GFC_UNALIGNED_4:  New macro.
	GFC_UNALIGNED_8:  New macro.
	GFC_UNALIGNED_16:  New macro.
	intptr_t:  Define if we don't have it.
	uintptr_t:  Likewise.
	* runtime/backtrace.c (show_backtrace):  Use intptr_t.
	* intrinsics/signal.c (signal_sub):  Likewise.
	(signal_sub_int):  Likewise.
	(alarm_sub_int_i4):  Likewise.
	* intrinsics/spread_generic.c (spread):  Use the integer
	routines for handling derived types of sizes 1, 2, 4, 8 and 16
	if the alignment of all pointers is correct.
	(spread_scalar):  Likewise.
	* intrinsics/pack_generic.c (pack):  Likewise.
	Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements.
	* intrinsics/unpack_generic.c (unpack1):  Likewise.
	(unpack0):  Likewise.
	* runtime/in_pack_generic.c (internal_pack):  Likewise.
	* runtime/in_unpack_generic.c (internal_unpack):  Likewise.

2008-04-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/32972
	PR libfortran/32512
	* gfortran.dg/internal_pack_1.f90:  Add test for derived type.
	* gfortran.dg/intrinsic_spread_1.f90:  Likewise.
	* gfortran.dg/intrinsic_pack_1.f90:  Likewise.
	* gfortran.dg/intrinsic_unpack_1.f90:  Likewise.


Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>

From-SVN: r134245
2008-04-13 20:15:58 +00:00
..
backtrace.c re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
compile_options.c re PR libfortran/21185 (Improve testsuite results on newlib targets) 2007-09-15 14:52:46 +00:00
environ.c re PR fortran/33795 (Environment variable GFORTRAN_UNBUFFERED_<number> not working) 2007-10-19 04:10:58 +00:00
error.c re PR fortran/34594 (On error and END, no jump to ERR=<label>) 2007-12-27 12:33:52 +00:00
fpu.c
in_pack_generic.c re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
in_unpack_generic.c re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
main.c re PR fortran/32021 (Fix,document,remove GFORTRAN_* environment variables) 2007-10-18 21:25:21 +00:00
memory.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
pause.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
select.c re PR libfortran/33386 (Fortran SELECT statement miscompiles) 2007-09-11 14:53:02 +00:00
stop.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
string.c re PR fortran/31675 (Fortran front-end and libgfortran should have a common header file) 2007-09-03 16:44:15 +00:00