This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] for the lost size of a large array in x86-64 assembly output


We, at Apple, found the size for a 8GB array in x86-64 assembly output is zero.

The patch is to make ASM_OUTPUT_ASM use the same format as ASM_OUTPUT_LOCAL to print the size of a variable.

The following patch has been tested on x86 MacOS with "make all", "-- enable-languages=c,c++,objc,obj-c++", and regression tested with a top- level "make check-gcc" with no regression.

gcc/ChangeLog:
        * gcc/config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
        of a variable as an unsigned HOST_WIDE_INT integer.

gcc/testsuite/ChangeLog:
        * gcc.target/i386/large-size-array-3.c: New.

Attachment: radar-patch.largearray.txt
Description: Text document

OK for mainline?

Hui-May Chang
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]