Brendan Kehoe [Fri, 15 Jan 1993 00:35:00 +0000 (19:35 -0500)]
c-decl.c (c_decode_option): Set WARN_UNINITIALIZED to 2 with -Wall...
* c-decl.c (c_decode_option): Set WARN_UNINITIALIZED to 2 with
-Wall, being careful to preserve it if it's already set.
* cp-decl2.c (lang_decode_option): Likewise.
* toplev.c (main): Warn about using -Wuninitialized without -O.
Brendan Kehoe [Fri, 15 Jan 1993 00:19:25 +0000 (19:19 -0500)]
gcc.c (process_command): Only accept input files which exist and can be read...
* gcc.c (process_command): Only accept input files which exist and
can be read; prevent link phase if an input file was rejected.
(error_count): Make into a static global variable.
Jeff Law [Thu, 14 Jan 1993 23:45:40 +0000 (16:45 -0700)]
pa.c (output_function_prologue): Combine stack adjustment and first GR save when reasonable to do so.
* pa.c (output_function_prologue): Combine stack adjustment and
first GR save when reasonable to do so.
(output_function_epilogue): Combine stack adjustment and first
GR restore when reasonable to do so. Avoid load/use stall for
RP restore in common cases.
(CONST_OK_FOR_LETTER_P): Change meaning of 'K'. Add new
alternative 'N'. Use VAL_*_BITS_P macros when possible.
(LEGITIMATE_CONSTANT_P) Fix comment.
(FITS_14_BITS): Remove.
(SMALL_INT): Remove.
(move_operand): Allow all CONST_INTs that can be moved to general registers with one insn.
(move_operand): Allow all CONST_INTs that can be moved to
general registers with one insn.
(pre_cint_operand): New predicate for predecrementing ldwm/stwm insns.
(zdepi_cint_p): New function.
(depi_cint_operand): Remove.
(and_mask_p): New name for consec_zeros_p. All callers changed.
(srcsi_operand): Removed.
(all file): Use INT_14_BITS instead of synonym SMALL_INT.
(emit_move_sequence): Clean up CONST_INT case.
(compute_zdepi_operands): New name for
compute_xdepi_operands_from_integer. Change second parm to return
plain integers (was RTXes).
(print_operand): Handle 'Z' for 'zdepi' source used to movCONST_INT.
(move patterns): Reorganize pattern order. Cleanup. Merge
CONST_INT patterns into main patterns for SImode, HImode, QImode.
Add patterns to recognize predecrement cases in SImode, HImode,
QImode. Remove 'y' constraint from SImode recognizer.
(main MImode, QImode recognizers): Handle SAR move from greg.
Change constaints to match the SImode pattern.
(cmov): Move near other conditional patterns.
(all file): Replace all occurences of srcsi_operand with move_operand.
Replace `ldo X(0),d' with `ldi X,d'.
(rotlsi3): Remove SET_ATTRs.
(rotrsi3): Likewise.
Jim Wilson [Tue, 12 Jan 1993 22:55:32 +0000 (14:55 -0800)]
(stat.h): Don't depend upon specific formal parameter names when...
(stat.h): Don't depend upon specific formal
parameter names when locating static functions to convert
to prototype form. Also be more selective about what
strings to prepend underbars to during renaming of formal
parameters and local variables in static functions.
Richard Stallman [Tue, 12 Jan 1993 07:49:01 +0000 (07:49 +0000)]
(macroexpand): Before concatenated empty rest arg,
do copy constant chars, but delete last run of nonwhitespace chars.
(rescan): Handle Newline-Hyphen in expand_to_temp_buffer
as well as when scanning a macro body.
(main): If we are creating a new dependency file with -MD
or -MMD, use "w" fopen mode instead of "a".
(rescan): Prevent token pasting before macro call.
(macroexpand): Prevent token pasting around an arg unless it's raw.
(main): Implement -iwithprefix.
(check_preconditions, do_error, do_warning, do_xifdef):
Don't use signed chars to index into arrays; they might be negative.
Jim Wilson [Mon, 11 Jan 1993 22:26:45 +0000 (14:26 -0800)]
(TARGET_SWITCHES): Add no-fpu and hard-float.
(CONDITIONAL_REGISTER_USAGE): Define for ! TARGET_FPU.
(BASE_RETURN_VALUE_REG): Use reg 8 when ! TARGET_FPU.
(BASE_OUTGOING_VALUE_REG): Use reg 24 when ! TARGET_FPU.
* pa.c (output_global_address): Handle (high (const (plus ...))).
(secondary_reload_class): If TARGET_KERNEL, then loading a
symbolic address, or the high part of a symbolic address requires
%r1 as a secondary reload register.
(emit_move_sequence, SYMBOL_REF case): If TARGET_KERNEL, then handle
secondary reload created for a symbolic (high (const (plus ...))).
No longer show DP relocation; read_only and normal operands emit the
same RTL now.
Emit the same RTL before and after reload, only change how the
scratch/temporary register is chosen.
Richard Kenner [Sun, 10 Jan 1993 16:40:26 +0000 (11:40 -0500)]
(make_extraction): Don't use POS < 0 as a flag that POS_RTX is to be used; instead use POS_RTX unless it is nonzero.
(make_extraction): Don't use POS < 0 as a flag that POS_RTX is to be
used; instead use POS_RTX unless it is nonzero. If POS_RTX is a
constant, set POS and clear POS_RTX.
(make_compound_operation, make_field_assignment): Pass 0 for POS
instead of -1 when POS_RTX is nonzero.
Richard Kenner [Fri, 8 Jan 1993 22:26:25 +0000 (17:26 -0500)]
(BYTE_LOAD_EXTEND, LOAD_EXTEND): New macros.
(subst, simplify_and_const_int, nonzero_bits, num_sign_bit_copies): Use them.
(subst, case SET): Make a SIGN_EXTEND instead of paradoxical SUBREG if
BYTE_LOADS_SIGN_EXTEND; previously only made ZERO_EXTEND.
Jeff Law [Fri, 8 Jan 1993 00:03:41 +0000 (17:03 -0700)]
pa.h (target_switches): Add "-mtrailing-colon"
* pa.h (target_switches): Add "-mtrailing-colon"
(ASM_OUTPUT_LABEL): If TARGET_TRAILING_COLON then emit
a colon after the label.
(ASM_OUTPUT_INTERNAL_LABEL): Likewise.
(ASM_OUTPUT_COMMON): Likewise.
(ASM_OUTPUT_LOCAL): Likewise.