Right now, pack/unpack
a) use memcpy, even if a native type is available
b) convert mask arguments of kind 1 and 2 to default
logical kind, which wastes cycles and memory
Case b) is actually true of all intrinsic functions with mask.
--
Summary: performance of pack/unpack
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tkoenig at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32972