r225925 - in /branches/scalar-storage-order/gcc...
ebotcazou@gcc.gnu.org
ebotcazou@gcc.gnu.org
Fri Jul 17 09:29:00 GMT 2015
Author: ebotcazou
Date: Fri Jul 17 09:29:31 2015
New Revision: 225925
URL: https://gcc.gnu.org/viewcvs?rev=225925&root=gcc&view=rev
Log:
* expmed.c (flip_storage_order): Deal with complex modes specially.
Use the precision of the mode instead of its size to find an integral
counterpart.
(extract_bit_field_1): Deal with complex modes specially.
* expr.c (read_complex_part): Make public.
(get_inner_reference): Call reverse_storage_order_for_component_p.
(expand_expr_real_1): Allow early exit for CONCATs as well.
* expr.h (read_complex_part): Declare.
* tree-dfa.c (get_ref_base_and_extent): Call
reverse_storage_order_for_component_p.
* tree.h (reverse_storage_order_for_component_p): New inline predicate.
ada/
* freeze.adb (Check_Component_Storage_Order): Skip a record component
if it has Complex_Representation.
(Freeze_Record_Type): If the type has Complex_Representation, skip
the regular treatment of Scalar_Storage_Order attribute and instead
issue a warning if it is present.
testsuite/
* c-c++-common/sso/init13.h: New helper.
* c-c++-common/sso/p13.c: New test.
* c-c++-common/sso/q13.c: Likewise.
* c-c++-common/sso/t13.c: Likewise.
* gnat.dg/sso/init13.ads: New helper.
* gnat.dg/sso/p13.adb: New test.
* gnat.dg/sso/q13.adb: Likewise.
* gnat.dg/sso/t13.adb: Likewise.
Added:
branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/init13.h
branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/p13.c
branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/q13.c
branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/t13.c
branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/init13.ads
branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/p13.adb
branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q13.adb
branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/t13.adb
Modified:
branches/scalar-storage-order/gcc/ada/freeze.adb
branches/scalar-storage-order/gcc/expmed.c
branches/scalar-storage-order/gcc/expr.c
branches/scalar-storage-order/gcc/expr.h
branches/scalar-storage-order/gcc/testsuite/gcc.c-torture/execute/990413-2.c
branches/scalar-storage-order/gcc/testsuite/gcc.c-torture/execute/bitfld-6.c
branches/scalar-storage-order/gcc/testsuite/gcc.c-torture/execute/bitfld-7.c
branches/scalar-storage-order/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c
branches/scalar-storage-order/gcc/testsuite/gcc.c-torture/execute/pr65401.c
branches/scalar-storage-order/gcc/tree-dfa.c
branches/scalar-storage-order/gcc/tree.h
More information about the Gcc-cvs
mailing list