i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
authorDouglas B Rupp <rupp@gnat.com>
Fri, 12 Apr 2002 19:47:45 +0000 (15:47 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 12 Apr 2002 19:47:45 +0000 (15:47 -0400)
* config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
(TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
(DEFAULT_PCC_STRUCT_RETURN): Define as 0.
* config/i386/t-interix (USER_H): Remove.

From-SVN: r52237

gcc/ChangeLog
gcc/config/i386/i386-interix.h
gcc/config/i386/t-interix

index e5d336f475a1185fc447b979d0d77e9da7d20b7f..f4d6018cb0149371960ed624f1579dde16b19317 100644 (file)
@@ -1,3 +1,10 @@
+2002-04-12  Douglas B Rupp  <rupp@gnat.com>
+
+       * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
+       (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
+       (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
+       * config/i386/t-interix (USER_H): Remove.
+
 2002-04-12  DJ Delorie  <dj@redhat.com>
 
        * integrate.c (compare_blocks): Make comparisons safe for when
index a97646c5472fdabe40a2ed6cd93b6c57d47e26ee..2b703f3beda3aa761061af5310112422a9764589 100644 (file)
@@ -232,6 +232,7 @@ Boston, MA 02111-1307, USA.  */
 #undef LD_INIT_SWITCH
 #undef LD_FINI_SWITCH
 
+#define EH_FRAME_IN_DATA_SECTION
 
 /* Note that there appears to be two different ways to support const
    sections at the moment.  You can either #define the symbol
@@ -405,10 +406,10 @@ extern void i386_pe_unique_section ();
 #define UNIQUE_SECTION(DECL,RELOC) i386_pe_unique_section (DECL, RELOC)
 
 #define SUPPORTS_ONE_ONLY 1
+#endif /* 0 */
 
 /* Switch into a generic section.  */
 #define TARGET_ASM_NAMED_SECTION  default_pe_asm_named_section
-#endif /* 0 */
 
 /* DWARF2 Unwinding doesn't work with exception handling yet.  */
 #define DWARF2_UNWIND_INFO 0
@@ -416,3 +417,11 @@ extern void i386_pe_unique_section ();
 /* Don't assume anything about the header files.  */
 #define NO_IMPLICIT_EXTERN_C
 
+/* MSVC returns structs of up to 8 bytes via registers. */
+
+#define DEFAULT_PCC_STRUCT_RETURN 0
+
+#undef RETURN_IN_MEMORY
+#define RETURN_IN_MEMORY(TYPE) \
+  (TYPE_MODE (TYPE) == BLKmode || \
+     (AGGREGATE_TYPE_P (TYPE) && int_size_in_bytes(TYPE) > 8 ))
index 3f78f78dc0fc9e297f27de815150019c0424f2a3..adcf593b956bab7199aa8d9a569d4b33adb01ed9 100644 (file)
@@ -4,5 +4,3 @@ LIB1ASMFUNCS = _chkstk
 interix.o: $(srcdir)/config/i386/interix.c
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/interix.c
 
-# System headers will track gcc's needs.
-USER_H=