From: Hui-May Chang Date: Wed, 20 Jun 2007 16:43:24 +0000 (+0000) Subject: darwin.h (ASM_OUTPUT_COMMON): Print the size of a variable as an unsigned HOST_WIDE_I... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c5ae9624cd41a2d60ded14ff05db2eb83d6f4ce;p=gcc.git darwin.h (ASM_OUTPUT_COMMON): Print the size of a variable as an unsigned HOST_WIDE_INT integer. * gcc/config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size of a variable as an unsigned HOST_WIDE_INT integer. * gcc.target/i386/large-size-array-3.c: New. From-SVN: r125888 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09daa929f33..1b76b900021 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-06-20 Hui-May Chang + + * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size + of a variable as an unsigned HOST_WIDE_INT integer. + 2007-06-20 Zdenek Dvorak PR rtl-optimization/32405 diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h index d793e025665..6d7b99ce067 100644 --- a/gcc/config/i386/darwin.h +++ b/gcc/config/i386/darwin.h @@ -210,7 +210,7 @@ extern void darwin_x86_file_end (void); #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \ ( fputs (".comm ", (FILE)), \ assemble_name ((FILE), (NAME)), \ - fprintf ((FILE), ",%lu\n", (unsigned long)(ROUNDED))) + fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED"\n", (ROUNDED))) /* This says how to output an assembler line to define a local common symbol. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 716b764d93d..f5258703280 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-06-20 Hui-May Chang + + * gcc.target/i386/large-size-array-3.c: New. + 2007-06-20 Andrew Pinski Richard Guenther diff --git a/gcc/testsuite/gcc.target/i386/large-size-array-3.c b/gcc/testsuite/gcc.target/i386/large-size-array-3.c new file mode 100644 index 00000000000..2eac19cf1a7 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/large-size-array-3.c @@ -0,0 +1,4 @@ +/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } || { i?86-*-* x86_64-*-darwin* } } } } */ +/* { dg-options "-m64 -mcmodel=medium" } */ +/* { dg-final { scan-assembler "8589934592|8589934588" } } */ +int bigarray[2147483647];