This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r268104 - in /trunk/gcc: d/ChangeLog d/d-codege...
- From: ibuclaw at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 20 Jan 2019 12:55:38 -0000
- Subject: r268104 - in /trunk/gcc: d/ChangeLog d/d-codege...
Author: ibuclaw
Date: Sun Jan 20 12:55:38 2019
New Revision: 268104
URL: https://gcc.gnu.org/viewcvs?rev=268104&root=gcc&view=rev
Log:
[D] Fix identity comparison for structs with complex float fields.
gcc/d/ChangeLog:
2019-01-20 Iain Buclaw <ibuclaw@gdcproject.org>
* d-codegen.cc (identity_compare_p): Return false if seen built-in
type with padding.
(build_float_identity): Moved here from expr.cc.
(lower_struct_comparison): Handle real and complex types.
* d-tree.h (build_float_identity): New.
* expr.cc (build_float_identity): Move to d-codegen.cc.
gcc/testsuite/ChangeLog:
2019-01-20 Iain Buclaw <ibuclaw@gdcproject.org>
* gdc.dg/runnable.d: Add more tests for comparing complex types.
Modified:
trunk/gcc/d/ChangeLog
trunk/gcc/d/d-codegen.cc
trunk/gcc/d/d-tree.h
trunk/gcc/d/expr.cc
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gdc.dg/runnable.d