summaryrefslogtreecommitdiff
path: root/gcc/config/pa/som.h
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-15 17:10:02 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-15 17:10:02 +0000
commit33cd7888fbe3ef0bcbe8c3ffbf91110bf162a407 (patch)
treedae82cea5b7cd69c9b6ec574e0cc1740020753d4 /gcc/config/pa/som.h
parent8cb0dab35b318fbb4d7b8b93a2bc45c677360428 (diff)
downloadgcc-33cd7888fbe3ef0bcbe8c3ffbf91110bf162a407.tar.gz
PR ada/19388
* pa.c (pa_asm_output_aligned_common): Warn if specified alignment exceeds maximum alignment for global common data. * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768. * som.h (MAX_OFILE_ALIGNMENT): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa/som.h')
-rw-r--r--gcc/config/pa/som.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h
index 96dc2a9077f..2d2e93e58ea 100644
--- a/gcc/config/pa/som.h
+++ b/gcc/config/pa/som.h
@@ -287,11 +287,9 @@ do { \
The .align directive in the HP assembler allows alignments up to 4096
bytes. However, the maximum alignment of a global common symbol is 8
bytes for objects smaller than the page size (4096 bytes). For larger
- objects, the linker provides an alignment of 32 bytes. */
-#define MAX_OFILE_ALIGNMENT \
- (TREE_PUBLIC (decl) && DECL_COMMON (decl) \
- ? (host_integerp (DECL_SIZE_UNIT (decl), 1) >= 4096 ? 256 : 64) \
- : 32768)
+ objects, the linker provides an alignment of 32 bytes. Unfortunately,
+ this macro doesn't provide a mechanism to test for common symbols. */
+#define MAX_OFILE_ALIGNMENT 32768
/* The SOM linker hardcodes paths into binaries. As a result, dotdots
must be removed from library prefixes to prevent binaries from depending