From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88865 invoked by alias); 30 Apr 2015 15:02:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 88209 invoked by uid 55); 30 Apr 2015 15:02:21 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/65476] Long_Float array does not byte-swap correctly with reverse Scalar_Storage_Order Date: Thu, 30 Apr 2015 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg02660.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65476 --- Comment #4 from Eric Botcazou --- Author: ebotcazou Date: Thu Apr 30 15:01:49 2015 New Revision: 222633 URL: https://gcc.gnu.org/viewcvs?rev=222633&root=gcc&view=rev Log: PR ada/65476 * fold-const.c (native_encode_int): Revert all changes. (native_encode_real): Likewise. (native_encode_fixed): Likewise. (native_encode_complex): Likewise. (native_encode_vector): Likewise. (native_encode_expr): Likewise. (fold_flip_storage_order): Delete. (fold_view_convert_expr): Adjust call to native_encode_expr. (fold_ternary_loc): Adjust call to native_encode_expr. * fold-const.h (native_encode_expr): Adjust back prototype. (fold_flip_storage_order): Delete. * dwarf2out.c (native_encode_initializer): Adjust. * output.h (assemble_real): Adjust prototype. * varasm.c (assemble_real): Add REVERSE parameter. Flip the storage order of the value if REVERSE is true. (output_constant_pool_2): Adjust call to assemble_real. (output_constant) : Adjust. : Adjust call to assemble_real. * config/arm/arm.md (consttable_4): Adjust call to assemble_real. (consttable_8): Likewise. (consttable_16): Likewise. * config/mips/mips.md (consttable_float): Likewise. * config/s390/s390.c (s390_output_pool_entry): Likewise. * config/sh/sh.md (consttable_sf): Likewise. (consttable_df): Likewise. testsuite/ * c-c++-common/sso/init9.h: New. * c-c++-common/sso/p9.c: Likewise. * c-c++-common/sso/q9.c: Likewise. * c-c++-common/sso/t9.c: Likewise. * gnat.dg/sso: Adjust. Added: branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/init9.h branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/p9.c branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/q9.c branches/scalar-storage-order/gcc/testsuite/c-c++-common/sso/t9.c branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/init11.ads branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/p11.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q11.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/r11.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/s11.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/t11.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/u11.adb Removed: branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/r10.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/s10.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/u10.adb Modified: branches/scalar-storage-order/gcc/config/arm/arm.md branches/scalar-storage-order/gcc/config/mips/mips.md branches/scalar-storage-order/gcc/config/s390/s390.c branches/scalar-storage-order/gcc/config/sh/sh.md branches/scalar-storage-order/gcc/dwarf2out.c branches/scalar-storage-order/gcc/fold-const.c branches/scalar-storage-order/gcc/fold-const.h branches/scalar-storage-order/gcc/output.h branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/init10.ads branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/init9.ads branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/p10.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/p9.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q1.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q10.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q2.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q3.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q4.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q5.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q6.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q7.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q8.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/q9.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/t10.adb branches/scalar-storage-order/gcc/testsuite/gnat.dg/sso/t9.adb branches/scalar-storage-order/gcc/varasm.c