aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>2000-12-12 21:38:18 +0000
committerFranz Sirl <sirl@gcc.gnu.org>2000-12-12 21:38:18 +0000
commitedf11378709cc2f57df8d73523d56bd032740915 (patch)
tree5703d3d2d6ca30bda30b7661e1b31c6a2c404280 /gcc
parent4d4182e92ffd299917c868fd88b530a43a1a4ea0 (diff)
downloadgcc-edf11378709cc2f57df8d73523d56bd032740915.zip
gcc-edf11378709cc2f57df8d73523d56bd032740915.tar.gz
gcc-edf11378709cc2f57df8d73523d56bd032740915.tar.bz2
linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here... * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here. From-SVN: r38211
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/linux.h2
-rw-r--r--gcc/config/rs6000/sysv4.h12
3 files changed, 18 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ea0ea44..65a540a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
+ * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here.
+
2000-12-12 Jim Wilson <wilson@redhat.com>
* rtlanal.c (may_trap_p): Check operand modes of LE, LT, GE, and GT.
@@ -24,7 +29,7 @@
* configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Enable .file/.loc check
for powerpc*-*-*.
* configure: Regenerated.
- * config/rs6000/linux.h (HANDLE_PRAGMA_PUSH_POP): Define.
+ * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
* config/rs6000/rs6000.c (rs6000_unique_section): Use
STRIP_NAME_ENCODING.
diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h
index 66a3b38..f0cf9d1 100644
--- a/gcc/config/rs6000/linux.h
+++ b/gcc/config/rs6000/linux.h
@@ -62,8 +62,6 @@ Boston, MA 02111-1307, USA. */
#undef ASM_APP_OFF
#define ASM_APP_OFF "#NO_APP\n"
-#define HANDLE_PRAGMA_PACK_PUSH_POP
-
#undef DEFAULT_VTABLE_THUNKS
#ifndef USE_GNULIBC_1
#define DEFAULT_VTABLE_THUNKS 1
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index dc70df9..b6103d6d 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -1550,6 +1550,18 @@ do { \
/* Function name to call to do profiling. */
#define RS6000_MCOUNT "_mcount"
+/* Define this macro (to a value of 1) if you want to support the
+ Win32 style pragmas #pragma pack(push,<n>)' and #pragma
+ pack(pop)'. The pack(push,<n>) pragma specifies the maximum
+ alignment (in bytes) of fields within a structure, in much the
+ same way as the __aligned__' and __packed__' __attribute__'s
+ do. A pack value of zero resets the behaviour to the default.
+ Successive invocations of this pragma cause the previous values to
+ be stacked, so that invocations of #pragma pack(pop)' will return
+ to the previous value. */
+
+#define HANDLE_PRAGMA_PACK_PUSH_POP 1
+
/* Define library calls for quad FP operations. These are all part of the
PowerPC 32bit ABI. */
#define ADDTF3_LIBCALL "_q_add"