This is the mail archive of the gcc-bugs@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]

syntax errors in new SPARC files



return with an expression in a function returning void is not allowed.
Neither is a label without a following statement.

Tue Aug 11 16:01:29 1998  John Carr  <jfc@mit.edu>

	* sparc.c: Change return <exp> to <exp>; return; in functions
 	returning void.

*** sparc.c~	Tue Aug 11 10:53:07 1998
--- sparc.c	Tue Aug 11 14:27:29 1998
***************
*** 1586,1592 ****
  	temp = op0;
        else
  	temp = gen_reg_rtx (DImode);
!       return sparc_emit_set_symbolic_const64 (op0, op1, temp);
      }
  
    if (GET_CODE (op1) == CONST_DOUBLE)
--- 1586,1593 ----
  	temp = op0;
        else
  	temp = gen_reg_rtx (DImode);
!       sparc_emit_set_symbolic_const64 (op0, op1, temp);
!       return;
      }
  
    if (GET_CODE (op1) == CONST_DOUBLE)
***************
*** 1716,1723 ****
     */
    if (high_bits == 0
        || high_bits == 0xffffffff)
!     return sparc_emit_set_const64_quick1 (op0, temp, low_bits,
! 					  (high_bits == 0xffffffff));
  
    /* 1) sethi	%hi(high_bits), %reg
     *    or	%reg, %lo(high_bits), %reg
--- 1717,1727 ----
     */
    if (high_bits == 0
        || high_bits == 0xffffffff)
!     {
!       sparc_emit_set_const64_quick1 (op0, temp, low_bits,
! 				     (high_bits == 0xffffffff));
!       return;
!     }
  
    /* 1) sethi	%hi(high_bits), %reg
     *    or	%reg, %lo(high_bits), %reg
***************
*** 1726,1732 ****
    if (low_bits == 0
        || (SPARC_SIMM13_P(low_bits)
  	  && ((HOST_WIDE_INT)low_bits > 0)))
!     return sparc_emit_set_const64_quick2 (op0, temp, high_bits, low_bits, 32);
  
    /* Now, try 3-insn sequences.  But first we may be able to do something
       quick when the constant is negated, so try that.  */
--- 1730,1738 ----
    if (low_bits == 0
        || (SPARC_SIMM13_P(low_bits)
  	  && ((HOST_WIDE_INT)low_bits > 0)))
!     {
!       sparc_emit_set_const64_quick2 (op0, temp, high_bits, low_bits, 32);
!     }
  
    /* Now, try 3-insn sequences.  But first we may be able to do something
       quick when the constant is negated, so try that.  */
***************
*** 1788,1796 ****
        if (hi & lo)
  	abort();
        focus_bits = (hi | lo);
!       return sparc_emit_set_const64_quick2 (op0, temp,
! 					    focus_bits, 0,
! 					    lowest_bit_set);
      }
  
    /* The easiest way when all else fails, is full decomposition. */
--- 1794,1801 ----
        if (hi & lo)
  	abort();
        focus_bits = (hi | lo);
!       sparc_emit_set_const64_quick2 (op0, temp, focus_bits, 0, lowest_bit_set);
!       return;
      }
  
    /* The easiest way when all else fails, is full decomposition. */
*** sparc.md~	Tue Aug 11 10:53:46 1998
--- sparc.md	Tue Aug 11 14:24:11 1998
***************
*** 1933,1939 ****
  
    /* All QI constants require only one insn, so proceed.  */
  
!  movqi_is_ok:
  }")
  
  (define_insn "*movqi_insn"
--- 1933,1939 ----
  
    /* All QI constants require only one insn, so proceed.  */
  
!  movqi_is_ok:;
  }")
  
  (define_insn "*movqi_insn"
***************
*** 2001,2007 ****
        sparc_emit_set_const32 (operands[0], operands[1]);
        DONE;
      }
!  movhi_is_ok:
  }")
  
  (define_insn "*movhi_insn"
--- 2001,2007 ----
        sparc_emit_set_const32 (operands[0], operands[1]);
        DONE;
      }
!  movhi_is_ok:;
  }")
  
  (define_insn "*movhi_insn"
***************
*** 2105,2111 ****
        sparc_emit_set_const32 (operands[0], operands[1]);
        DONE;
      }
!  movsi_is_ok:
  }")
  
  ;; Special LIVE_G0 pattern to obtain zero in a register.
--- 2105,2111 ----
        sparc_emit_set_const32 (operands[0], operands[1]);
        DONE;
      }
!  movsi_is_ok:;
  }")
  
  ;; Special LIVE_G0 pattern to obtain zero in a register.
***************
*** 2289,2295 ****
        DONE;
      }
  
!  movdi_is_ok:
  }")
  
  ;; Be careful, fmovd does not exist when !arch64.
--- 2289,2295 ----
        DONE;
      }
  
!  movdi_is_ok:;
  }")
  
  ;; Be careful, fmovd does not exist when !arch64.
***************
*** 2763,2769 ****
  	}
      }
  
!  movsf_is_ok:
  }")
  
  (define_insn "*movsf_insn"
--- 2763,2769 ----
  	}
      }
  
!  movsf_is_ok:;
  }")
  
  (define_insn "*movsf_insn"
***************
*** 2848,2854 ****
  	}
      }
  
!  movdf_is_ok:
  }")
  
  ;; Be careful, fmovd does not exist when !arch64.
--- 2848,2854 ----
  	}
      }
  
!  movdf_is_ok:;
  }")
  
  ;; Be careful, fmovd does not exist when !arch64.
***************
*** 3072,3078 ****
  	}
      }
  
! movtf_is_ok:
  }")
  
  ;; Be careful, fmovq and {st,ld}{x,q} do not exist when !arch64 so
--- 3072,3078 ----
  	}
      }
  
! movtf_is_ok:;
  }")
  
  ;; Be careful, fmovq and {st,ld}{x,q} do not exist when !arch64 so


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