mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 11:40:57 +08:00
darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
* config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add. * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix. testsuite: * gcc.dg/darwin-comm.c: Add. From-SVN: r123321
This commit is contained in:
parent
77da2b7671
commit
4beb5c4bd1
gcc
@ -1,3 +1,8 @@
|
||||
2007-03-28 Mike Stump <mrs@apple.com>
|
||||
|
||||
* config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
|
||||
* config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
|
||||
|
||||
2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
|
||||
|
||||
* config.gcc: Accept barcelona as a variant of amdfam10.
|
||||
|
@ -674,11 +674,11 @@ extern GTY(()) int darwin_ms_struct;
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/* The maximum alignment which the object file format can support.
|
||||
For Mach-O, this is 2^15. */
|
||||
/* The maximum alignment which the object file format can support in
|
||||
bits. For Mach-O, this is 2^15 bytes. */
|
||||
|
||||
#undef MAX_OFILE_ALIGNMENT
|
||||
#define MAX_OFILE_ALIGNMENT 0x8000
|
||||
#define MAX_OFILE_ALIGNMENT (0x8000 * 8)
|
||||
|
||||
/* Declare the section variables. */
|
||||
#ifndef USED_FOR_TARGET
|
||||
|
@ -20,3 +20,14 @@
|
||||
|
||||
/* The linker can generate branch islands. */
|
||||
#define DARWIN_LINKER_GENERATES_ISLANDS 1
|
||||
|
||||
#undef ASM_OUTPUT_ALIGNED_COMMON
|
||||
#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
|
||||
do { \
|
||||
unsigned HOST_WIDE_INT _new_size = SIZE; \
|
||||
fprintf ((FILE), ".comm "); \
|
||||
assemble_name ((FILE), (NAME)); \
|
||||
if (_new_size == 0) _new_size = 1; \
|
||||
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
|
||||
(SIZE), floor_log2 ((ALIGN) / BITS_PER_UNIT)); \
|
||||
} while (0)
|
||||
|
@ -1,3 +1,7 @@
|
||||
2007-03-28 Mike Stump <mrs@apple.com>
|
||||
|
||||
* gcc.dg/darwin-comm.c: Add.
|
||||
|
||||
2007-03-28 Eric Christopher <echristo@apple.com>
|
||||
|
||||
* lib/target-supports.exp (check_effective_target_fstack_protector): New.
|
||||
|
4
gcc/testsuite/gcc.dg/darwin-comm.c
Normal file
4
gcc/testsuite/gcc.dg/darwin-comm.c
Normal file
@ -0,0 +1,4 @@
|
||||
/* { dg-do compile { target *-*-darwin9* } } */
|
||||
/* { dg-final { scan-assembler ".comm _foo,1,15" } } */
|
||||
|
||||
char foo __attribute__ ((aligned(32768)));
|
Loading…
x
Reference in New Issue
Block a user