darwin.h (ASM_OUTPUT_COMMON): Print the size of a variable as an unsigned HOST_WIDE_I...
authorHui-May Chang <hm.chang@apple.com>
Wed, 20 Jun 2007 16:43:24 +0000 (16:43 +0000)
committerHui-May Chang <hmchang@gcc.gnu.org>
Wed, 20 Jun 2007 16:43:24 +0000 (16:43 +0000)
* 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

gcc/ChangeLog
gcc/config/i386/darwin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/large-size-array-3.c [new file with mode: 0644]

index 09daa929f33081c9013a830ad0006cb59d0c5227..1b76b90002191a107715c154f16f10b4bbb3d240 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-20  Hui-May Chang  <hm.chang@apple.com>
+
+       * 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  <dvorakz@suse.cz>
 
        PR rtl-optimization/32405
index d793e02566545f9cceecb36135572b853153e1df..6d7b99ce0675c9d4e7301d4c0aa48a6f55775863 100644 (file)
@@ -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.  */
index 716b764d93d9b0692330951747a81d50408d5534..f525870328000aaa8a65c6dc253acda0c18d8b4d 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-20  Hui-May Chang  <hm.chang@apple.com>
+
+       * gcc.target/i386/large-size-array-3.c: New.
+
 2007-06-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
        Richard Guenther  <rguenther@suse.de>
 
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 (file)
index 0000000..2eac19c
--- /dev/null
@@ -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];