This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patches for ns32k config


The following minor patch:
  - eliminates 3 sources of ICE during bootstrap
  - corrects CPP_PREDIFINES to be correct for netbsd

Ian

ChangeLog entry:

Sun Feb  4 07:06:30 2001  Ian Dall  <ian@gateway.beware.dropbear.id.au>

	* config/ns32k/ns32k.md: Put USE after all the SET's in definition
 	of movstrsi1.

	* config/ns32k/ns32k.h (ADJSP): Make second argument uppercase.
	(TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): remove leading tab
 	since tabs aare prepended by MI code.

	* config/ns32k/netbsd.h (CPP_PREDEFINES): Don't define
 	__KPRINTF_ATTRIBUTE__ since the kprintf extension is not in
 	standard gcc.

patch:

diff -rc ../../../../gcc/gcc/config/ns32k/netbsd.h ./netbsd.h
*** ../../../../gcc/gcc/config/ns32k/netbsd.h	Thu Nov 23 19:02:31 2000
--- ./netbsd.h	Sun Jan 21 09:10:59 2001
***************
*** 68,76 ****
  #include <netbsd.h>
  
  /* Names to predefine in the preprocessor for this target machine.  */
  
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Dns32k -Dns32000 -Dns32532 -D__NetBSD__ -Dpc532 -D__ns32k__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=NetBSD -Acpu=ns32k -Amachine=ns32k"
  
  /* Make gcc agree with <machine/ansi.h> */
  
--- 68,79 ----
  #include <netbsd.h>
  
  /* Names to predefine in the preprocessor for this target machine.  */
+ /* NetBSD defines __KPRINTF_ATTRIBUTE__ to indicate NetBSD patched kprintf
+    support (format checking). Don't define it here since we don't have
+    NetBSD patches applied */
  
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-Dns32k -Dns32000 -Dns32532 -D__NetBSD__ -Dpc532 -D__ns32k__ -Asystem=unix -Asystem=NetBSD -Acpu=ns32k -Amachine=ns32k"
  
  /* Make gcc agree with <machine/ansi.h> */
  
diff -rc ../../../../gcc/gcc/config/ns32k/ns32k.h ./ns32k.h
*** ../../../../gcc/gcc/config/ns32k/ns32k.h	Sat Jan  6 05:16:45 2001
--- ./ns32k.h	Sun Jan 21 09:14:24 2001
***************
*** 711,721 ****
   *  .
   */
  #if defined(IMMEDIATE_PREFIX) && IMMEDIATE_PREFIX
! #define ADJSP(FILE, n) \
!         fprintf (FILE, "\tadjspd %c%d\n", IMMEDIATE_PREFIX, (n))
  #else
! #define ADJSP(FILE, n) \
!         fprintf (FILE, "\tadjspd %d\n", (n))
  #endif
  
  #define FUNCTION_PROLOGUE(FILE, SIZE)     \
--- 711,721 ----
   *  .
   */
  #if defined(IMMEDIATE_PREFIX) && IMMEDIATE_PREFIX
! #define ADJSP(FILE, N) \
!         fprintf (FILE, "\tadjspd %c%d\n", IMMEDIATE_PREFIX, (N))
  #else
! #define ADJSP(FILE, N) \
!         fprintf (FILE, "\tadjspd %d\n", (N))
  #endif
  
  #define FUNCTION_PROLOGUE(FILE, SIZE)     \
***************
*** 1489,1499 ****
  
  /* Output before read-only data.  */
  
! #define TEXT_SECTION_ASM_OP "\t.text"
  
  /* Output before writable data.  */
  
! #define DATA_SECTION_ASM_OP "\t.data"
  
  /* Define the output Assembly Language */
  
--- 1489,1499 ----
  
  /* Output before read-only data.  */
  
! #define TEXT_SECTION_ASM_OP ".text"
  
  /* Output before writable data.  */
  
! #define DATA_SECTION_ASM_OP ".data"
  
  /* Define the output Assembly Language */
  
diff -rc ../../../../gcc/gcc/config/ns32k/ns32k.md ./ns32k.md
*** ../../../../gcc/gcc/config/ns32k/ns32k.md	Wed Sep 13 00:28:47 2000
--- ./ns32k.md	Sun Jan 21 09:16:32 2001
***************
*** 559,568 ****
  (define_insn "movstrsi1"
    [(set (mem:BLK (reg:SI 2))
  	(mem:BLK (reg:SI 1)))
-    (use (reg:SI 0))
     (set (reg:SI 2) (plus:SI (reg:SI 2) (mult:SI (reg:SI 0) (match_operand:SI 0 "const_int_operand" ""))))
     (set (reg:SI 1) (plus:SI (reg:SI 1) (mult:SI (reg:SI 0) (match_dup 0))))
!    (set (reg:SI 0) (const_int 0))]
    ""
    "*
    {
--- 559,568 ----
  (define_insn "movstrsi1"
    [(set (mem:BLK (reg:SI 2))
  	(mem:BLK (reg:SI 1)))
     (set (reg:SI 2) (plus:SI (reg:SI 2) (mult:SI (reg:SI 0) (match_operand:SI 0 "const_int_operand" ""))))
     (set (reg:SI 1) (plus:SI (reg:SI 1) (mult:SI (reg:SI 0) (match_dup 0))))
!    (set (reg:SI 0) (const_int 0))
!    (use (reg:SI 0))]
    ""
    "*
    {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]