--- gcc/ChangeLog 2018/04/24 17:55:27 1.1.1.3 +++ gcc/ChangeLog 2018/04/24 18:10:27 1.1.1.6 @@ -1,8961 +1,9217 @@ -Sun Jun 14 16:30:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Jan 23 18:41:37 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Version 2.2.2 released. + * Version 2.5.8 released. - * Makefile.in (gcc.xtar.Z): Don't give up if texinfo files not updated. - Just sleep to emphasize the message. + * reload.c (find_reloads): Properly test for output operand + when changing RELOAD_FOR_OUTPUT_ADDRESS to RELOAD_FOR_INPUT_ADDRESS. - * i860.h (PREFERRED_RELOAD_CLASS): Avoid f regs for HI and QI if poss. + * alpha.c (output_{pro,epi}log): Use assemble_name to output + alpha_function_name. - * protoize.c: Don't include wait.h. - (gen_aux_info_file): Test wait_status as in gcc.c. - Report fatal signals explicitly. Report exit status. - * xm-next.h (wait): Definition deleted. +Sun Jan 23 18:40:23 1994 Samuel A. Figueroa (figueroa@cs.nyu.edu) - * sparc.c (print_operand): In `r' case, recognize any kind of zero. + * i386/os2.h (PATH_SEPARATOR): New macro. + * i386/gas.h (ASM_FILE_START): Delete; identical to one in bsd.h, + which is included. -Sat Jun 13 02:51:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Jan 23 05:59:31 1994 Per Bothner (bothner@cygnus.com) - * va-sparc.h (va_arg): Handle all 8-byte types, not just double. + * c-typeck.c (really_start_incremental_init): Save current elements + instead of clearing them. -Fri Jun 12 23:40:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Jan 22 17:23:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu) - * i860v4.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): - Use `e' format, not `g' format. + * pa.h (ASM_FILE_START): Emit a .file directive at the beginning + of the output file if debug symbols are being generated. -Fri Jun 12 12:52:48 1992 Tim Moore (moore at fast.cs.utah.edu) +Thu Jan 13 05:42:30 1994 Torbjorn Granlund (tege@adder.cygnus.com) - * pa.md (absdf2): Fix bug in output template. + * config.sub: Fix typo in -hiux* case. -Fri Jun 12 10:25:25 1992 Jim Wilson (wilson@sphagnum.cygnus.com) +Tue Jan 11 19:14:31 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * ultrix.h (WCHAR_*): Set to correct values. + * a29k.c (output_prolog): Update debug reg map when + we have -mkernel-registers. -Fri Jun 12 10:07:43 1992 Michael Meissner (meissner@osf.org) +Mon Jan 10 19:06:57 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * x-mips, x-mipsv, x-decstatn, x-iris (OLDCC): Add -Olimit 3000 to - bump the number of basic blocks that the MIPS compiler handles, so - that it doesn't issue warning messages saying to bump the limit. - Move the -O1 option here from X_CFLAGS, so that it doesn't - get passed when bootstraping. - (X_CFLAGS): Delete. + * expr.c (protect_from_queue): If (MEM (QUEUED ...)), modify a + new MEM instead of the one we were passed. -Thu Jun 11 15:08:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * regclass.c (globalize_reg): New function. + (init_reg_sets_1): Don't handle global regs here. + * varasm.c (make_decl_rtl): Call globalize_reg, not init_reg_sets_1. - * sparc.h (RETURN_IN_MEMORY): Do nothing for structs and unions. - (EXTRA_CONSTRAINT): During reload, accept pseudo reg for Q. + * a29k.c (print_operand, case 'F'): If we have to do the last + prolog insn, give that priority for an unfilled delay slot. - * va-sparc.h (va_arg): Handle unaligned doubles. + * function.c (preserve_rtl_expr_result): New function. + * expr.c (exand_expr, case RTL_EXPR): Call it. - * fixincludes: Fix return type of `free' in malloc.h. - Recognize #define.NULL only at start of line. - In sys/types.h, find size_t only in a typedef. - In netdnet/dnetdb.h, don't add semicolon in wrong place. +Sun Jan 9 04:40:27 1994 James Van Artsdalen (james at bigtex.cactus.org) - * configure: Set use_collect2 to empty rather than unsetting. + * jump.c (follow_jumps): Don't follow tablejumps. - * gstddef.h (__need_wchar_t): Fix typo in #undef. +Tue Jan 4 07:35:05 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Jun 10 04:30:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * tree.c (substitute_expr): Don't abort for RTL_EXPR and + SAVE_EXPR; just do nothing. - * gcc.c (process_command): In gcc_exec_prefix, machine precedes vers. +Fri Dec 31 06:27:57 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * i386sco4.h (CPP_SPEC): Don't redefine __STDC__. - fixincludes knows how to fix the conditionals in system headers. + * combine.c (force_to_mode): Add new parm JUST_SELECT; all + callers changed. - * collect2.c (scan_prog_file): Initialize ldptr. +Fri Dec 24 05:34:38 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * dbxout.c (dbxout_symbol): Make tag precede typedef. + * alpha.md (define_attr type): Add new type ISUBR. + (divmod): Set to type ISUBR. + * alpha.c (output_prolog): Need GP if type ISUBR. - * configure: Initialize host, host_xm_file, host_xmake_file, - host_broken_install, and broken_install. + * reload.c (push_reload, find_reloads): Reload inside a paradoxical + SUBREG of MEM except don't force a reload unless the inner mode + is narrower than BIGGEST_ALIGNMENT. - * Makefile.in (enquire.o): Add `./' when removing enquire.c. + * c-typeck.c (check_init_type_bitfields): Check recursively inside + arrays and records. -Tue Jun 9 20:52:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cse.c (simplify_binary_operation): Can fold multi-word + operations when first is CONST_INT. + (simplify_binary_operation, case PLUS, MINUS): Don't call + plus_constant when OP0 is VOIDmode. - * Version 2.2.1 released. + * c-typeck.c (pop_init_level): Don't abort if have incomplete array + type inside some other type. - * Makefile.in (clean): Don't delete unprotoize.c. +Thu Dec 23 07:30:24 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * configure: Fix typo in modifying INSTALL variable in Makefile. + * Makefile.in (libgcc.a): Allow chmod of tmpcopy directory to + fail since it can be empty. -Mon Jun 8 15:14:09 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * gcc.c (default_compilers, gnat1): Don't write -gnatb. - * Version 2.2 released. + * expr.c (expand_expr, case MINUS_EXPR): When expanding an + initializer, use plus_constant as appropriate. - * Makefile.in (extraclean): Delete *.rej and *.orig under config. - Delete *.xtar. - (dist): Update README *before* making tar file. - Fix quoting of error message about gcc.texi; exit if that test fails. - Don't print error messages from ln. +Thu Dec 23 09:03:30 1993 Phil Nelson (phil@cs.wwu.edu) - * assert.h [__cplusplus]: Use `extern "C"' around __eprintf decl. + * ns32k.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use .long, not .double. - * configure (rs6000-*-mach*, pyramid-*-*, mips-sgi-*): - Patterns made canonical. - (rs6000-*-mach*): Fix typo in `xmake_file'. +Tue Dec 21 17:37:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * configure (i386-*-osfrose*): Renamed from i386-osfrose*. + * cp-tree.h (VTABLE_NAME): No def with NO_{DOLLAR,DOT} defined. + (VTABLE_NAME_P): Use it instead of VTABLE_NAME_FORMAT. - * Makefile.in (.NOEXPORT): Moved after `all'. - Comments put on separate lines. +Tue Dec 21 13:25:39 1993 Jim Wilson (wilson@cygnus.com) -Mon Jun 8 18:33:01 1992 Michael Meissner (meissner@osf.org) + * rtlanal.c (replace_regs, case REG): Return copies of SUBREGs, to + avoid invalid sharing. - * configure (mips-dec-osf*): Set xmake_file to x-mips. +Mon Dec 20 19:10:16 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Jun 7 15:55:34 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-typeck.c (struct initializer_stack): New field ELEMENTS. + (start_init, finish_init): Save and restore constructor_elements. - * gcc.c (set_spec): Fix braino in "appending" spec values. + * emit-rtl.c (gen_lowpart_common): Return a new hard reg even + if not valid in MODE if the input REG is not valid in its mode. - * integrate.c (expand_inline_function): Fix dumb bug in last change. + * rs6000.md (divsi3): Correct logic for when we call force_reg. + (modsi3): Ensure operands[2] is a CONST_INT; include REG in + predicate. -Sun Jun 7 07:16:25 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Dec 16 11:34:48 1993 Ian Lance Taylor (ian@cygnus.com) - * romp.md: Disable two more define_splits during the first sched - pass until long-standing sched.c bug is fixed. + * fixincludes: Do not preserve _HIDDEN_VA_LIST in stdio.h. -Thu Jun 4 16:49:56 1992 Jim Wilson (wilson@sphagnum.cygnus.com) +Sun Dec 12 06:47:14 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * reorg.c (dbr_schedule): Global registers are needed at function end. + * Version 2.5.7 released. -Sat Jun 6 17:07:16 1992 Torbjorn Granlund (tege at david.ultra.nyu.edu) +Sun Dec 12 06:18:33 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * pyr.md (shift patterns): Declare output_shift. - (movdi, movdf): Declare output_move_double. + * function.c (thread_prologue_and_epilogue_insns): When constructing + USE chain, set both NEXT_INSN and PREV_INSN links. Also, preserve + order of USE insns in chain. -Sat Jun 6 15:07:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Dec 12 06:13:51 1993 DJ Delorie (dj@ctron.com) - * Makefile.in (c-parse.o): Depend on c-parse.h. + * configure.bat: Update to relect recent changes elsewhere. + * objc/makefile.dos: Likewise. - * reload.c (find_reloads): Fix typo in format string. +Sat Dec 11 18:09:50 1993 Per Bothner (bothner@cygnus.com) - * mips.c (override_options): BSD 4.3 does line buffering differently. + * dbxout.c (dbxout_type): The "base type" of a SET_TYPE is its + DOMAIN_TYPE, not its TREE_TYPE. + * dwarfout.c (output_type): Likewise. - * Makefile.in (SYSCALLS.c.X): Put GCC output in file, not /dev/null. - (mostlyclean): Delete temp file. +Sat Dec 11 07:36:57 1993 David Rifkind (dave@yarc.com) - * configure (handling broken_install): Add -c option. + * rs6000.md: Add a few missing new nmemonics. -Sat Jun 6 11:34:00 1992 James Van Artsdalen (james at bigtex.cactus.org) +Sat Dec 11 06:57:55 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * gstdarg.h (va_arg): Fix typo incrementing AP. + * cccp.c (INPUT_STACK_MAX): Double size. -Sat Jun 6 16:27:18 1992 Michael Meissner (meissner@osf.org) + * integrate.c (initialize_for_inline): Handle CONCAT when setting up + parmdecl_map. - * mips-n5.h, mips-sysv.h: Include sys/param.h, not types.h. + * rs6000.md (modsi3): Reject REG in predicate to avoid undefined + reference and extra pseudo creation if will fail. -Fri Jun 5 19:00:36 1992 Howard Chu (hyc@hanauma.jpl.nasa.gov) +Fri Dec 10 10:03:36 1993 Mike Stump (mrs@cygnus.com) - * fx2800.h (ASM_OUTPUT_FUNCTION_PREFIX): Output a nop before - every function, to accomodate tdescs. Also, save function - name in current_function_original_name for use in i860.c. - Also define OUTPUT_TDESC to get ABI-compliant tdesc info - generated for each function. + * toplev.c (lang_options): Change -fnodollars-in-identifiers to + -fno-dollars-in-identifiers to match docs. - * i860.c (function_epilogue): Add code to output tdesc info - after each function. Tdesc structure versions 1-4 are - supported. +Fri Dec 10 15:42:02 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) - * i860v4.h (ASM_FILE_END) [OUTPUT_TDESC]: Output a null tdesc entry - after the last function in a file. + * c-lex.c (yylex): When reading malformed floating point constant, + avoid printing error more than once, and avoid passing malformed + number to subsequent atof call. -Fri Jun 5 19:03:22 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Dec 10 06:03:35 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * collect2.c (main, scan_prog_file): Use bcopy, not memcpy. + * rs6000.c (easy_fp_constant): Use input_operand to see if + each word can be loaded in one insn. -Fri Jun 5 16:27:18 1992 Michael Meissner (meissner@osf.org) + * rs6000.md: Change numerous occurrences of TARGET_POWERPC + to ! TARGET_POWER and make related changes. - * mips.h, mips.c, mips.md: Undo June 3 changes. + * rs6000.md (modsi3): Rework to operate correctly for both POWER + and PowerPC. - * mips-n5.h, mips-sysv.h (getpagesize): If _SC_PAGE_SIZE is undefined, - use NBPC defined in sys/types.h. +Thu Dec 9 16:19:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Jun 4 14:36:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h (OPERATOR_TYPENAME_P): Define outside of + NO_{DOLLAR,DOT} macro checks, so it always gets defined. + (VTABLE_NAME_P): Define for NO_DOT && NO_DOLLAR_IN_LABEL. - * cse.c (delete_dead_from_cse): Don't delete anything inside a libcall. +Wed Dec 8 05:46:26 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (install-libgcc): Depend on install-dir. + * flow.c (mark_used_regs, case CLOBBER): Refine previous change + to just look at the address of a MEM inside a CLOBBER. - * c-lex.c (yylex): Suppress int out of range warning if -traditional. + * fold-const.c (fold, case *_{DIV,MOD}_EXPR): When using + distributive law, take care when C2 is negative. -Thu Jun 4 23:34:05 1992 Howard Chu (hyc@hanauma.jpl.nasa.gov) +Tue Dec 7 08:45:59 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * fx2800.h (DBX_OUTPUT_ENUM): Add missing argument, add a - missing semi-colon. - (ASM_OUTPUT_DOUBLE): undef definition from i860v4.h, replace - with definition used in i860.h. - (ASM_OUTPUT_FLOAT): same as above - Also undef MD_EXEC_PREFIX which is defined in i860v4.h. - Also define I860_STRICT_ABI_PROLOGUES for ABI-compliant function - prologues. + * flow.c (mark_used_regs): Look inside a CLOBBER; it may be the only + place regs are used if it has a stack slot that is from an inlined + function. -Thu Jun 4 13:15:30 1992 Jim Wilson (wilson@sphagnum.cygnus.com) +Mon Dec 6 20:56:11 1993 David Rifkind (dave@yarc.com) - * enquire.c (fake_f_rep): Use __extension__ to avoid pedantic warnings. + * expr.c (move_block_{to,from}_reg): Check HAVE_{load,store}_multiple + value; don't just #idef the symbol. - * cse.c (cse_process_notes): Don't stick VOIDmode into *_extract. +Mon Dec 6 08:01:59 1993 Torbjorn Granlund (tege@cygnus.com) - * c-decl.c (get_parm_info): For forward parm decls, check for - non-parm before checking TREE_ASM_WRITTEN. + * pa.c (hppa_legitimize_address): If we can't legitimize, + do nothing; don't call abort. -Thu Jun 4 13:57:47 1992 Tim Moore (moore at defmacro.cs.utah.edu) +Mon Dec 6 07:38:30 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * pa.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Delete - FP_OR_SNAKE_FP_REGS (useless), add GENERAL_OR_FP_REGS, - GENERAL_OR_SNAKE_FP_REGS. - (ASM_DECLARE_FUNCTION_NAME): Handle DImode arguments correctly. - (PROFILE_BEFORE_PROLOGUE, FUNCTION_PROFILER): Do the same thing - for BSD and HPUX. - - * pa.c (output_function_prologue): Do profiling right (compatible - with HPUX). - (output_arg_descriptor): Handle DImode argument registers. - -Thu Jun 4 13:48:24 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload1.c (reload): Count reload register used by caller-save - handling in any basic block that contains a CALL_INSN. - -Thu Jun 4 09:23:19 1992 Ron Guilmette (rfg at ncd.com) - - * i860v4.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Remove leading 0r. - (ASM_OUTPUT_FLOAT): Use .float (not .single). - -Fri Jun 5 14:58:43 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * pyr.h (REGNO_OK_FOR_{INDEX,BASE}): Correctly test reg_renumber. - * configure (pyramid): Turn it back on. - -Thu Jun 4 11:26:55 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) + * arm.c (output_ascii_pseudo_op): 8-bit chars should be zero-extended. + * arm.h (ASM_OUTPUT_ASCII): Likewise. - * pa.c (output_move_double): Handle overlapping moves between - registers. +Mon Dec 6 07:32:59 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Jun 3 22:08:18 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * objc/encoding.h: Include ctype.h. - * fold-const.c (fold, NOP_EXPR case): Don't drop intermediate in - (unsigned int) (unsigned short) char-variable. + * expr.c (expand_expr, case PLACEHOLDER_EXPR): Remove top entry + from PLACEHOLDER_LIST when expanding the value in it. -Wed Jun 3 11:18:43 1992 Ron Guilmette (rfg at ncd.com) +Mon Dec 6 05:40:38 1993 Doug Evans (dje@cygnus.com) - * stdarg.h (va_arg): Use casts to avoid doing (pedantically invalid) - arithmetic on `void *' values when __svr4__ is defined. + * emit-rtl.c (start_sequence): Save current sequence_rtl_expr. -Wed Jun 3 17:51:21 1992 Torbjorn Granlund (tege@zevs.sics.se) +Fri Dec 3 07:07:01 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * longlong.h (sparc): Test symbol __sparcv8__ for sparc.h conformance. + * Version 2.5.6 released. -Wed Jun 3 16:22:38 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * c-typeck.c (c_expand_return): Return if convert_for_assignment + returns error_mark_node. - * sparc.c (print_operand): Correct typo. - (sparc_type_code): Correctly handle C int and float types. +Fri Dec 3 06:42:05 1993 Arne Henrik Juul (arnej@fm.unit.no) - * sparc.h (CONSTANT_ALIGNMENT): Align strings to 8 byte boundary. - (DATA_ALIGNMENT): Likewise for character arrays. + * fixincludes (stdio.h): Fix typos (missing quote) in previous change. - * i960.c (function_prologue): Fixed calculation of offsets for - compiler's register save area. +Fri Dec 3 06:35:57 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * sparc.md (mulsi3,mulsidi3,umulsidi3,divsi3,udivsi3): Patterns - added to support V8 sparc architectures. - * sparc.h (TARGET_DEFAULTS): Add -mv8 and -msparclite options. + * gstddef.h: Define and protect against __STDDEF_H__ for Irix 5.1. - * reload1.c (reload): If can't satisfy reload for a group of more - than two registers, then abort to avoid an infinite loop. - (count_possible_groups): Skip to last reg of group, not first reg - of next group. + * sparc.c (shift_operand): Delete function. + * sparc.md (ashlsi3, ashrsi3, lshrsi3): Use arith_operand instead + of shift_operand. Truncate shift counts to 5 bits. -Wed Jun 3 14:35:00 1992 Tom Wood (wood at gen-rtx) +Thu Dec 2 08:11:00 1993 Stefan Rapp (sr@irb.informatik.uni-dortmund.de) - * c-lex.c (yylex): Let skip_white_space handle \r. + * loop.c (scan_loop): Correct arguments for register check. - * expr.c (expand_builtin, fsqrt case): Stabilize the argument in - case a library call is done. +Thu Dec 2 07:07:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * final.c (final_scan_insn): Function begin, and block begin/end - notes are "real" in that they depend on the current line number. + * fixincludes: Preserve _HIDDEN_VA_LIST when changing VA_LIST to + DUMMY_VA_LIST. Change __va_list to __gnuc_va_list. For AIX + 3.2.5. -Wed Jun 3 14:34:28 1992 Michael Meissner (meissner@osf.org) +Thu Dec 2 07:00:24 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * mips.md (andsi3_internal2): Fix typo in previous change, to - use %3, the clobbered register, instead of %@, the assembler - temporary. - (iorsi3_internal2): Ditto. - (xorsi3_internal2): Ditto. + * emit-rtl.c (push_topmost_sequence, end_sequence): Update + sequence_rtl_expr from sequence_stack entry. - * mips.h (MIPS_VERSION): Bump Meissner version # to 20. - (final_prescan_insn): Add declaration. - (lui_int): Add declaration. - (FINAL_PRESCAN_INSN): Just call final_prescan_insn. + * calls.c (emit_library_call): Use Pmode, not OUTMODE, when passing + in structure address. - * mips.c (lui_int): New function, return true if value fits in a - LUI instruction. - (final_prescan_insn): Move the checking for filling the delay - slots here from the FINAL_PRESCAN_INSN macro. If the safe - attribute is set, we do not need a NOP to fill a load delay slot. + * a29k.c (secondary_reload_class): Kernel regs are in same class + as user regs. - * mips.md (safe attribute): New attribute to indicate that the - current insn is safe to fill a delay slot even if the register - operand(s) are set in the load instruction which has the delay - slot. This is for and/ior/xor expansions that have a large - constant integer as operand[2]. The load of the constant can - overlap the load. - (andsi3, iorsi3, xorsi3): Replace logical define_insn's with - define_expand's that either map directly to the hardware - instruction, or have a clobbered register to load the large - constant into. This is instead of using $1 to hold the - intermeidate value. Set the safe attribute to yes for the cases - where we need to load the integer. Add define_split's to break - the large logical operations into the separate pieces. + * a29k.md (movti split): Set CR to 3, not 1 like DImode. -Wed Jun 3 00:00:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Dec 2 06:46:07 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * cccp.c (do_warning): Do just a warning, not an error. + * reload.c (find_reloads_toplev): Replace obsolete reference to + BYTE_LOADS_*_EXTEND with LOAD_EXTEND_OP. -Tue Jun 2 17:30:09 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Dec 2 06:39:16 1993 Jeffrey A Law (law@snake.cs.utah.edu) - * cse.c (cse_basic_block): When a jump becomes unconditional, - check whether this caused TO to be deleted. + * pa.h (ASM_STABS_OP, ASM_STABN_OP): Define. + (ASM_FILE_END): Put a TAB before the .stabs directive. -Tue Jun 2 16:11:42 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Dec 2 06:30:17 1993 David Edelsohn (edelsohn@npac.syr.edu) - * combine.c (subst, case IF_THEN_ELSE): Don't try reversing - something that isn't a comparison. + * rs6000.md (define_function_unit): Restore ppc601 load and fpload + timings. -Tue Jun 2 16:50:47 1992 Jim Wilson (wilson@sphagnum.cygnus.com) +Wed Dec 1 17:24:17 1993 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * cccp.c (do_pragma): Don't warn about #pragma once if used in a - system header file. + Wed Nov 24 06:36:10 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Jun 2 15:21:07 1992 Michael Meissner (meissner@osf.org) + * cp-tree.c (get_decl_list): Use the DECL_NESTED_TYPENAME for the + value we're going to paste onto CLASSTYPE_ID_AS_LIST. This will get + the right name for nested classes, and for templates. - * mips.h (MIPS_VERSION): Bump Meissner version # to 19. - (ASM_OUTPUT_DOUBLE): Call mips_output_double. - (ASM_OUTPUT_FLOAT): Call mips_output_float. + Mon Nov 29 13:09:31 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * mips.c (mips_output_double): If REAL_VALUE_TO_TARGET_DOUBLE is - defined, use it to split the floating point value into 2 long - integers, and print them out in hex. Otherwise use .double. - (mips_output_float): If REAL_VALUE_TO_TARGET_FLOAT is defined, use - it to split the floating point value into a long integer, and - print in out in hex. Otherwise use .float. + * cp-decl.c (grokdeclarator): Properly evaluate TREE_PUBLIC for + friends. (Fixes spurious warnings about friends being declared + static but not used.) - * dec-osf1.h (new file): Config file for DEC's offical OSF/1 - product (as opposed to the OSF/1 reference port from OSF). + * cp-type2.c (build_functional_cast): If we got an error_mark_node + from build_method_call, make sure EXPR_AS_METHOD is cleared out + again, so the later checks will work properly. - * configure: Support mips-dec-osf1 target. - * config.sub: Support mips-dec-osf1 target. + * cp-decl.c (build_enumerator): Fix logic so an enum inside a class + that's local to a function has its enumerators end up in that + class's list of members, not in the list for the function. - * decstatn.h (CPP_PREDEFINES): If CPP_PREDEFINES is defined, don't - supply another definition. Also, define _SYSTYPE_BSD. +Tue Nov 30 19:26:05 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Jun 1 00:04:01 1992 Ron Guilmette (rfg at ncd.com) + * sparc.h (STATIC_CHAIN_REGNUM): Use %g2; %g1 is reserved + for prologue. + (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Swap useage of %g1 + and %g2. - * gstdarg.h (va_list) [__svr4__]: Typedef it to `void *'. - * va-sparc.h (__va___list) [__svr4__]: Typedef this as `void *'. + * m68k.md (movdf): Don't need earlyclobber when a register + is copied to itself. -Sun May 31 15:26:32 1992 John F Carr (jfc at Achates.mit.edu) +Sat Nov 27 06:19:22 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * calls.c (stack_arg_under_construction): New variable. - (store_one_arg): Set stack_arg_under_construction before calling - expand_expr if expand_expr might call a constructor to initialize - a stack argument. - (expand_call): Push the stack around function calls if - stack_arg_under_construction is nonzero. - Also copy structure_value_addr in that case. - Push the stack around an inline function if it makes calls - and there are outgoing arguments on the stack which must be preserved. - Move the call to expand_cleanups_to before that. - Do this stack adjustment before computing argument locations. + * Version 2.5.5 released. -Sun May 31 01:03:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-typeck.c (pop_init_level): Ensure never on momentary_obstack + when calling complete_array_type. - * sdbout.c (sdbout_symbol): Test DECL_IGNORED_P only for - variables and types. - * dwarfout.c (output_decl): Never ignore a FUNCTION_DECL - even if DECL_IGNORED_P is set. +Sat Nov 27 03:52:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat May 30 07:07:55 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fixproto (scanning files_to_check): Create subdirs files are in. - * rs6000.h, romp.h (FUNCTION_ARG): Fix typo in last change. + * config/m68k/m68k.md (cmpsi, cmphi, cmpqi): Handle SGS_CMP_ORDER + when outputting cmpm insn. - * combine.c (subst, significant_bits, simplify_comparison): - Only look at STORE_FLAG_VALUE if comparison result is integer. +Fri Nov 26 15:57:24 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri May 29 18:04:45 1992 Ron Guilmette (rfg at ncd.com) + * gcc.c (default_compilers): Do define __GNUC_MINOR__ if input is `-'. - * dwarfout.c (output_decl): Moved test for ERROR_MARK node out of - switch statement and added a test for DECL_IGNORED_P after that. - (dwarfout_file_scope_decl): Check input node to see if it is an - ERROR_MARK before checking for DECL_IGNORED_P. Also makes sure that - any node marked as DECL_IGNORED_P isn't also a function definition. +Thu Nov 25 18:16:25 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri May 29 14:46:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * integrate.c (expand_inline_function): - Don't discard setting return value from a volatile source. - - * c-decl.c (init_decl_processing): If traditional, strlen returns int. - (sizet_ftype_string): Deleted. - - * expr.c (expand_builtin, fsqrt case): Return proper mode if arg error. - -Fri May 29 13:36:32 1992 Tom Wood (wood@dg-rtp.dg.com) - - * m88k.c (m88k_builtin_saveregs): Don't copy result to a register. - - * m88k.h (FIXED_REGISTERS): Allow use of r1. - (REG_LEAF_ALLOC_ORDER): Choose r1 last. - (REG_ALLOC_ORDER): Choose r1 before any preserve register. - (ORDER_REGS_FOR_LOCAL_ALLOC): Switch between orderings. - * m88k.c (m88k_layout_frame): Save r30 when used as an ordinary - register. + * function.h (struct sequence_stack): New field sequence_rtl_expr. + (struct function): Likewise. + * emit-rtl.c: Include tree.h. + (sequence_rtl_expr): New variable. + (save_emit_status, restore_emit_status): Save and restore it. + (init_emit): Initialize it. + (start_sequence_for_rtl_expr): New function. + * function.c: Declare sequence_rtl_expr. + (struct temp_slot): New field rtl_expr. + (assign_stack_temp): Set it from sequence_rtl_expr. + ({free,pop}_temp_slots): Don't free any slot with nonzero rtl_expr. + (free_temps_for_rtl_expr): New function. + * expr.c (expand_expr, case RTL_EXPR): Call free_temps_for_rtl_expr. + * stmt.c (expand_start_stmt_expr): Call start_sequence_for_rtl_expr + instead of start_sequence. + * cp-parse.y (except_stmts): Likewise. + * cp-init.c (build_new): Likewise. + * cp-typeck.c (build_modify_expr): Likewise. + * Makefile.in (emit-rtl.o): Includes tree.h. - * m88k.h (CHECK_FLOAT_VALUE): Delete, not needed. - * m88k.c (check_float_value): Delete, not needed. +Thu Nov 25 17:24:02 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88k.c (mostly_false_jump): Fix return check. + * Makefile.in (stmp-fixproto): Create include subdir if doesn't exist. - * m88k.md (mstore type): Delete. - (return, indirect_jump): These are jumps, not branches. - * m88k.c (eligible_for_epilogue_delay): No TYPE_MSTORE insns. +Wed Nov 24 14:32:47 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Fri May 29 12:33:21 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-common.c (shorten_compare): Correct typo from last change. - * reload1.c (emit_reload_insns): Add missing arg to gen_input_reload. +Wed Nov 24 13:25:09 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) -Fri May 29 06:43:15 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * protoize.c (save_def_or_dec): Correct typo in change of Nov 23. Make + sure pointers within def_dec_p are valid before it is freed. - * rs6000.h, romp.h (FUNCTION_ARG): Don't put variable-sized - operands in registers. +Wed Nov 24 07:02:50 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * explow.c (emit_stack_{save,restore}): Don't call validize_mem - on a null rtx. + * expr.c (expand_expr, case ADDR_EXPR): Also pass const0_rtx if + necessary, to avoid multiple cleanup runs. + (expand_expr, case WITH_CLEANUP_EXPR): Pass const0_rtx if + necessary, to keep the recursive call from running the same + cleanups twice. + (expand_expr, case TARGET_EXPR): Don't try to add the cleanup if + ignore's non-zero, since we would have already done it. - * cse.c (cse_insn): Don't call canon_reg on entry from - hash table; instead, call it after we did the substitution. +Tue Nov 23 21:10:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu May 28 18:47:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Cygnus<->FSF C++ front-end merge. + Tue Nov 23 11:05:28 1993 Jason Merrill (jason@deneb.cygnus.com) - * fixincludes (malloc.h): Allow space or tab btwn typedef and char. + * cp-errfn.c (STRDUP): Cast return value of alloca to (char *). -Thu May 28 17:35:37 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon Nov 22 00:07:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * reload1.c (reload_as_needed): Properly disable optional reload - that we can't do. - Don't abort if disabled reload uses a register we don't have. + * cp-lex.c (real_yylex): Move declaration of tmp inside the block + that uses it, so compilers don't try to mis-optimize it away. -Thu May 28 14:43:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-search.c (dfs_pushdecls): Make sure there's a lang_specific + node on the decl before trying to print the warning out. - * next.c (get_directive_line): Declare it. + * cp-decl.c (grokdeclarator): Say the member was redeclared as + static, not just that it can't be declared static. - * defaults.h (ASM_OUTPUT_ASCII): Use unsigned chars. + * cp-search.c (get_first_matching_virtual): Don't do + SET_IDENTIFIER_ERROR_LOCUS as an attempt to avoid multiple warnings + with -Woverloaded-virtual. It changes the compiler's behavior + (elicits unwanted errors). - * i860v4.h, i386v4.h, sparcv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): - Use the override definitions only if word order matches host. + Sat Nov 20 19:31:01 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed May 27 17:32:36 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - - * unroll.c (find_splittable_givs): When completely unrolling loop, - precompute giv value into a reg before loop if it is complex. - - * sparc.c (singlemove_string): Handle SFmode CONST_DOUBLE. - * sparc.h (PREFERRED_RELOAD_CLASS): Don't allow reloads of - constants to FP registers, nor reloads of FP constants that won't - match the 'E' constraint. - * sparc.md (movsf-1): Add pattern to efficiently handle SFmode - constants. - - * sparc.md (lo_sum:DI pattern): Use constraint "0" for operand 1. - - * i960.h (OVERRIDE_OPTIONS): Disable function inlining. - - * function.c (assign_parms): When MAYBE_REG_PARM_STACK_SPACE, - don't assume that register parameters already have a stack slot. - * i960 (*): Change all tests of current_functions_args_size from - 48 to 0 due to above change. - * i960.md (*): Likewise. - - * sparc.h (LONG_DOUBLE_TYPE_SIZE): Add ifdefed out definition. - (FIXED_REGISTERS): g4 is not a fixed register. - (RETURN_IN_MEMORY): Define. - (FUNCTION_ARG_PASS_BY_REFERENCE): Also pass TFmode by reference. - - * fixincludes: Fix stdio.h and math.h for Ultrix 4.0. - -Tue May 26 15:29:21 1992 Brendan Kehoe (brendan@cs.widener.edu) + * cp-tree.h (lang_type): Add field `has_nonpublic_ctor', and delete + dummy since we used the two bits it was holding out for the MIPS + compiler. + (TYPE_HAS_NONPUBLIC_CTOR): Defined. + * cp-class.c (finish_struct_methods): Set TYPE_HAS_NONPUBLIC_CTOR + as appropriate for a copy ctor with non-public visibility. + (finish_struct): Don't generate a copy ctor if the type if one of + its fields has a private copy ctor, or a protected one for which we + aren't allowed access. + (base_info): Add member `saw_nonpublic_ctor'. + (finish_base_struct): Set b->saw_nonpublic_ctor if necessary. - * x-we32k: new file, need alloca.o - * xm-we32k.h [NO_SYS_SIGLIST]: define this - * we32k.h [STRICT_ALIGNMENT] define as `1' - [NO_WAIT_H]: also define this - * collect2.c [NO_WAIT_H]: don't include sys/wait.h if this is - defined. + * cp-method.c (hack_identifier): Make sure there's a + DECL_LANG_SPECIFIC before getting ready to grope around a class. - * Makefile.in (clean): rm libgcc1.null. + * cp-typeck.c (build_indirect_ref): Complain if we encounter a + pointer to member. -Wed May 27 15:36:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Fri Nov 19 16:37:28 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * real.h (REAL_VALUE_TO_TARGET_SINGLE): Test HOST_BITS_PER_WORD right. + * cp-decl.c (start_decl): Complain when a function is declared as + part of a template definition, but the class it's supposed to be + part of wasn't a template. - * i386sco.h (SIZE_TYPE): New definition. + * cp-decl.c (pushdecl): Don't warn about shadowing a member of + `this' if that member is static. - * c-typeck.c (build_binary_op): When shortening, handle case - where op0 and arg0 are different but have same width. op1/arg1 too. + * cp-call.c (convert_harshness_old): Don't die if one of the types + isn't an aggregate with a binfo. + (convert_harshness_ansi): Likewise. - * toplev.c (compile_file): Cast xmalloc when arg to setvbuf. + Fri Nov 19 12:18:31 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * expmed.c (expand_divmod): Clear can_clobber_op0 if doing mod. + * cp-typeck.c (convert_for_assignment): Fix typo so initialization + of a pointer from an integer actually work, rather than emit bogus + code. - * Makefile.in (protoize.1, unprotoize.1): Delete target before mv'ing. - (mostlyclean): Delete tmp-unproto.1. + * cp-pt.c (overload_template_name): Accept unions for templates. + (instantiate_class_template): Likewise. + * cp-parse.y (template_instantiate_once): Likewise. - * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Test DECL_IGNORED_P. - * dwarfout.c (dwarfout_file_scope_decl): Likewise. + * cp-lex.c (real_yylex): Instead of using the "shorts" method to + check for overflow, use the C front-end's "parts" method (to handle + any size, and not rely on long long being 32 bits wide). -Wed May 27 13:48:36 1992 James Van Artsdalen (james at bigtex.cactus.org) + Thu Nov 18 11:51:34 1993 Jason Merrill (jason@deneb.cygnus.com) - * i386.md (ashldi3,ashrdi3,lshrdi3): Fix typo in comparison. + * cp-lex.c (cons_up_default_function): Disable earlier change; it + screws up stabs somehow. Very strange. -Wed May 27 02:11:22 1992 Ron Guilmette (rfg at ncd.com) + Thu Nov 18 00:16:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * i386v4.h, i860v4.h, sparcv4.h: Include real.h. - (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): - New definitions, if host and target formats match. + * cp-decl.c (grokdeclarator): Say what class is involved when saying + we can't declare a member inside it. - * real.h (REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE): - Defined, but only if host and target formats match. + * cp-lex.c (real_yylex): Recognize operator->() as POINTSAT, not + POINTSAT_LEFT_RIGHT. By swallowing the parens, we ended up never + building the call properly for them. + * cp-parse.y (POINTSAT_LEFT_RIGHT): Remove token. + (operator_name): Remove POINTSAT_LEFT_RIGHT rule. + * cp-spew.c (init_spew): Remove POINTSAT_LEFT_RIGHT from + toks_follow_ids. -Wed May 27 06:20:26 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (primary): Only try to print out the operator's name if + it's valid. - * reload1.c (reload_as_needed): For asm insn, check all reload - insns for validity. - (emit_reload_insns, gen_input_reload): Remove previous change that - checked them here. - * recog.c (constrain_operands, case 'm', 'o', 'g'): Accept pseudo if - reload is in progress. + * cp-decl.c (grok_op_properties): Fix missing parens to keep the + logic from accidentally giving an error when it shouldn't. -Tue May 26 19:24:21 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + Wed Nov 17 20:04:00 1993 Jason Merrill (jason@deneb.cygnus.com) - * combine.c (combinable_i3pat): Allow a hard register as the - destination even if SMALL_REGISTER_CLASSES if source is a CALL. + * cp-search.c (dfs_pushdecls): TREE_PURPOSE doesn't have to be + a _DECL for class_value to be an envelope, it just can't be an + IDENTIFIER_NODE. - * emit-rtl.c (gen_lowpart_common): Fix handling of int->float - union conversions. + Wed Nov 17 15:54:02 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue May 26 19:23:43 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * cp-type2.c (process_init_constructor): Deal with pointers to + members as initializers for initializer lists. - * a29k.h (HARD_REGNO_MODE_OK): Don't let anything larger than - UNITS_PER_WORD be allocated to an odd numbered register. + Wed Nov 17 11:48:38 1993 Jason Merrill (jason@deneb.cygnus.com) -Tue May 26 15:22:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (ambi_op_p): Add ++ and --. - * config.sub (defaulting the OS): Separate subversions with periods. + * cp-error.c: Lose the anon_parm_name stuff. - * limits.h: Fix condition for defining long-long macros, to suit libc. + * cp-lex.c (cons_up_default_function): Change input_filename for + synthetic code. - * Makefile.in (specs): New target. - (gcc): Don't write `specs' here. - (start.encap): Depend on `specs'. - (all.cross): Depend on EXTRA_PARTS. - (rest.cross): New target. + * cp-error.c (dump_aggr_type): Always print const or volatile. + (dump_function_decl): Only print static if verbose. - * c-common.c (declare_function_name): - Set TREE_USED, not TREE_NO_UNUSED_WARNING. + * cp-errfn.c (cp_sprintf): New function. -Tue May 26 04:52:53 1992 Michael Meissner (meissner@osf.org) + * cp-decl.c (grokfndecl): Be more verbose in complaint about applying + method qualifiers to non-methods. - * loop.c (loop_has_volatile): New static variable to record - whether the loop has any volatile references in it. - (prescan_loop): Set loop_has_volatile. - (check_dbra_loop): Don't reverse loop if there are any volatile - references in it. + Wed Nov 17 09:51:04 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Mon May 25 16:04:08 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-parse.y (attrib): Accept "noreturn" attribute. - * i386gas.h (ASM_OUTPUT_OPCODE): Translate "repnz" to "repne". - * seq386gas.h (ASM_OUTPUT_OPCODE): Likewise. + Tue Nov 16 12:28:49 1993 Jason Merrill (jason@deneb.cygnus.com) -Mon May 25 15:53:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl2.c (grokoptypename): Fix handling of udc's. - * optabs.c (emit_indirect_jump): Emit barrier here. - * stmt.c (expand_computed_goto): Not here. + * cp-method.c (build_component_type_expr): Ditto. -Mon May 25 06:22:59 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (finish_struct_methods): Be more verbose in complaint + about overloaded operator delete. - * cse.c (canon_reg): Must call validate_change if insn has any - MATCH_DUPs even if replacing a pseudo with another pseudo. + * cp-decl.c (grok_op_properties): Do more checking on operators. + (grokdeclarator): Remove check for ops being members, fix handling + of user-defined conversions. + (grokfndecl): Remove checks for ops, move call to grok_op_properties + up. + (finish_decl): Remove check for ops with default arguments. + (ambi_op_p): New fn, name for either unary or binary op + (unary_op_p): New fn, checks name for unary op - * explow.c (emit_stack_{save,restore)}: Call validize_mem on save area. + Mon Nov 15 12:38:54 1993 Brendan Kehoe (brendan@rtl.cygnus.com) - * combine.c (simplify_shift_const, case PLUS): Simplify cases where - the PLUS is just turning on bits that will be shifted out. + * g++.c (main): If they gave us -v, also show the invocation of the + gcc driver. - * emit-rtl.c (gen_lowpart_common): Add new case for single-word - float->integer conversion; all others already present. - Check for -fpretend-float in this and the other cases. + Mon Nov 15 12:04:47 1993 Jason Merrill (jason@deneb.cygnus.com) - * stmt.c (expand_goto): Fix typo in previous change. + * cp-decl.c (grokdeclarator): Lose "operator ". - * reload1.c (gen_input_reload): When checking for validity of - reloads made for asms, also check the constraints. + * cp-method.c (build_component_type_expr): Ditto. - * explow.c (allocate_dynamic_stack_space): Don't add to size - if we aren't going to need to align the size. + * cp-decl2.c (grokoptypename): Ditto. - * fold-const.c (fold, case *_DIV_EXPR): Fold (a * C1) / C2 for - some C1 and C2. + Make C++ accept template parameters as type names; for example, + doing `template A {...}'. -Sun May 24 14:07:53 1992 Ron Guilmette (rfg at ncd.com) + * cp-pt.c (end_template_parm_list): Fix a bug in gs4t's patch. + (grok_template_type): Simplify. - * toplev.c (main): - Fix typo setting use_gdb_dbx_extensions in xcoff case. + * cp-typeck.c (build_modify_expr_1): Give error if trying to + get default operator= for class where you can't. - * c-decl.c (pushdecl): Call `build_type_copy' rather than calling - `c_build_type_variant' to duplicate a type. + * cp-decl.c (duplicate_decls): Uniformify, fix redeclaration of + builtins. -Sun May 24 16:56:09 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Sat Nov 6 19:06:25 EST 1993 Gnanasekaran Swaminathan (gs4t@virginia.edu) - * reload1.c (reload): Refine setting of basic_block_needs. + * cp-pt.c (begin_template_parm_list): pushdecl here so that we + can push TEMPLATE PARAMETERS as type names. + (process_template_parm): build_lang_decl for TEMPLATE + PARAMETERS here. + (grok_template_type): New function. get the actual type of a + TEMPLATE PARAMETER. + (coerce_template_parms): delete pushdecl as it is moved (see + above). Don't build type decls for TEMPLATE PARAMETERS as it is + built above. + + Mon Nov 15 12:04:47 1993 Jason Merrill (jason@deneb.cygnus.com) -Sun May 24 15:43:08 1992 John F Carr (jfc at Achates.mit.edu) + * cp-decl.c (duplicate_decls): If a function has been declared with + explicit language linkage, redeclaring (or defining) it without + is OK. - * combine.c (try_combine): Don't split an insn if that would move - a use of a register across a set of the same register. + Fri Nov 12 15:30:27 1993 Jason Merrill (jason@deneb.cygnus.com) -Sun May 24 14:50:38 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-lex.c (operator_name_string): Fix handling of __ad__foo. - * reg-stack.c (constrain_asm_operands): Ignore constraint letters - following '#' in each alternative. + * cp-error.c (dump_decl): Handle demangling of vtable names. -Sun May 24 02:28:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.c (lang_printable_name): Pass everything to decl_as_string, + not just functions. - * gcc.c (pexecute): New alternative definition for OS2. - Take SEARCH_FLAG as arg instead of FUNC. - (execute): Change call to pexecute. + * cp-decl2.c (check_classfn): Use cp_error. - * toplev.c (main): Don't run ps for -dm if on OS2. + * cp-error.c (dump_decl): Fix IDENTIFIER_TYPENAME_P case. - * cccp.c (main): Use PATH_SEPARATOR computing num_dirs. - (path_include): Likewise, setting q. + * cp-method.c (build_decl_overload): Propagate IDENTIFIER_OPNAME_P + to mangled identifier. - * gcc.c: Include sys/file.h. + * cp-type2.c (my_friendly_abort): Add "confusion" message for + abort after earlier errors. - * Makefile.in (extraclean): Delete install1.texi. + Wed Nov 10 18:39:17 1993 Jason Merrill (jason@deneb.cygnus.com) -Sat May 23 14:14:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl2.c (lang_decode_option): Include warn_enum_clash among + -Wall. - * crtstuff.c (__do_global_ctors) [not INVOKE__main]: Make body empty. + Wed Nov 10 16:18:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * fold-const.c (float_error): Renamed from const_binop_error. - (const_binop, fold_convert): - Call set_float_handler around REAL_VALUE_TRUNCATE. + * Makefile.in (stamp-cp-parse): Update counts. - * Makefile.in ($(srcdir)/INSTALL): New target. - (doc): Depend on that. - ($(srcdir)/gcc.info, $(srcdir)/cpp.info): Delete $(srcdir) from deps. - ($(srcdir)/gcc.info): List all subfiles as deps. + Wed Nov 10 15:27:12 1993 Jason Merrill (jason@deneb.cygnus.com) - * math-68881.h: Use %! instead of fpcr. + * cp-errfn.c (cp_thing): Allow cp_*_at to use an arbitrary argument, + not just the first, by using, for instance, `%+D'. - * install.sh: New file. - * configure: Changed install_with_cp to broken_install. - Test that flag for the host, not for the target. - If set, use install.sh. + Mon Nov 8 13:50:49 1993 Jason Merrill (jason@deneb.cygnus.com) - * Makefile.in (EXTRA_HEADERS): New variable. - (USER_H): Use that. - * configure: Let alternatives set EXTRA_HEADERS via var header_files. - (m68k-...): Set header_files to install math-68881.h. + * cp-error.c (language_as_string): New function for printing language + context. Corresponds to %L. - * Makefile.in (install-dir): Create (libsubdir)/include. - (install-limits-h, install-float-h): Depend on install-dir. + Mon Nov 8 10:39:28 1993 Jason Merrill (jason@deneb.cygnus.com) - * Makefile.in (gcc.xtar): Warn if version in gcc.texi is old. + * cp-pt.c (reinit_parse_for_template): Use inline_text_obstack + instead of permanent_obstack so that yylex() doesn't clobber the + growing object. - * genconfig.c (main): Add 1 when outputting MAX_RECOG_OPERANDS. - Initialize to just 9. + * cp-lex.c (reinit_parse_for_block): Overhaul to reduce code size by + half and make #line directives in template definitions work. - * gcc.c (MD_STARTFILE_PREFIX_1): New config macro. - (main): Use that like MD_STARTFILE_PREFIX. + Sun Nov 7 15:19:28 1993 Jason Merrill (jason@deneb.cygnus.com) -Sat May 23 08:13:38 1992 John F Carr (jfc at Achates.mit.edu) + * cp-pt.c (instantiate_class_template): if (!setup_parse), don't + mess with lineno and input_filename. - * reload1.c (reload): Copy MEM_IN_STRUCT_P flag when converting - pseudo register to equivalent memory location. + Mon Nov 1 18:15:59 1993 Kung Hsu (kung@cirdan.cygnus.com) -Sat May 23 07:12:15 1992 Michael Meissner (meissner@osf.org) + * cp-cvt.c(convert_to_reference): Fix when pass ref to array as + initializer, the argument type is convert to pointer and the type + in the field of the class should also convert to pointer. - * x-iris (OLDCC): Add -cckr to turn off strict ANSI checking. + Fri Nov 5 11:57:41 1993 Jason Merrill (jason@deneb.cygnus.com) - * mips.c (current_function_name): Delete definition, function.c - defines this and mips.h has a declaration. + * cp-pt.c (instantiate_template): Work properly with + -fexternal-templates. - * longlong.h (mips umul_ppmm): Use "d" constraint instead of "r", so - that we know the value is an integer register. + * cp-lex.c (extract_interface_info): #if 0 out earlier + tinst_level work pending further work. -Sat May 23 01:14:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Fri Nov 5 07:39:00 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * vax.h (PRINT_OPERAND): Undo last change. - Fix the comment instead. + * cp-search.c (compute_visibility): Don't lose access to public + members from base classes of base classes. - * x-dpx2200, x-dpx2300 (ALLOCA_FINISH, AS): New variables. + * cp-typeck.c (convert_for_assignment): Allocate enough space in + LHSBUF for the null terminiator. -Fri May 22 01:52:22 1992 Ron Guilmette (rfg at ncd.com) + Tue Nov 2 07:20:03 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * svr4.h (MD_EXEC_PREFIX): Added definition. + * cp-decl2.c (build_push_scope): Don't push the scope for + ptr-to-method declarations. Also, clarify some comments. - * protoize.c [POSIX]: Include dirent.h rather than sys/dir.h. - (_POSIX_SOURCE): Undef before defining. - (getpwd): Change declaration to an `extern'. - (open): Add declaration in the #if 0 section along with fprintf. - (link, unlink, access, execvp): Add `extern' declarations. - (strlen): Don't mention arg type in declaration. - (main): Declare `params' as `const char *' to avoid botch when doing - test-protoize-simple. + * cp-parse.y (abs_member_declarator): Add `see_typename' epsilon + rule so that parser can recognize ptr-to-member functions. -Fri May 22 17:15:36 1992 John F Carr (jfc at Achates.mit.edu) + Mon Nov 1 18:15:59 1993 Kung Hsu (kung@cirdan.cygnus.com) - * calls.c (expand_call): Allocate stack space for arguments passed - in registers when OUTGOING_REG_PARM_STACK_SPACE is defined and - stack space has not been preallocated. + * cp-cvt.c(convert_to_reference): Fix when pass ref to array as + initializer, the argument type is convert to pointer and the type + in the field of the class should also convert to pointer. -Fri May 22 17:16:55 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon Nov 1 11:06:39 1993 Jason Merrill (jason@deneb.cygnus.com) - * combine.c (simplify_comparison): Try to reduce size of a - constant by changing comparison code; don't only do for 1 and -1. + * cp-errfn.c: Don't include . + Don't use the return value of strcpy. - * reload.h (reg_equiv_memory_loc): Declare. - * reload.c (refers_to_regno_for_reload_p): Use reg_equiv_memory_loc - instead of reg_equiv_mem and reg_equiv_address; look for constant. - (reg_overlap_mentioned_for_reload_p): LIkewise. - Use new function to check for MEM. - (refers_to_mem_for_reload_p): New function. - * reload1.c (reg_equiv_memory_loc): No longer static. + Sun Oct 31 22:32:05 1993 Jason Merrill (jason@deneb.cygnus.com) -Fri May 22 17:15:12 1992 Ron Guilmette (rfg at ncd.com) + * cp-call.c (build_scoped_method_call): Return (void)0 if trying to + call a nonexistent destructor. - * Makefile.in (test-protoize-simple): Only delete files made by this - target (not the man pages!) - (test-protoize-simple): Use -x option to avoid munging getopt.h. - (test-protoize-simple): Fixed number of differences message. - (mostly-clean): Properly remove all temp files relating to protoize/ - unprotoize. - (install-common): Force removal of previously installed g++ and c++ - command files before trying to install new ones. + * cp-parse.y (object): Support p.~int(). - * spc-sol2.h: New file. + * cp-error.c (dump_expr): Handle error_mark_node better. - * configure (sparc-*-solaris2*): New configuration added. + Sat Oct 30 21:49:00 1993 Jason Merrill (jason@deneb.cygnus.com) - * x-sparcv4 (X_CFLAGS): Removed -Bstatic and -dn options. + * cp-parse.y (primary): Support p->~int(). -Fri May 22 15:30:05 1992 Chip Salzenberg (chip@tct.com) + Fri Oct 29 18:09:12 1993 Mike Stump (mrs@cygnus.com) - * c-common.c (declare_function_name): Move from c-decl.c. - Construct function names instead of expecting them as parameters. - Set TREE_READONLY and other attributes before calling pushdecl. - * c-decl.c (init_decl_processing, store_parm_decls): Calls changed. - (declare_function_name): Remove to c-common.c. + * cp-type2.c (build_functional_cast): Don't delete things twice. - * cp-decl.c (init_decl_processing, store_parm_decls): - Call declare_function_name. + Thu Oct 28 15:35:55 1993 Jason Merrill (jason@deneb.cygnus.com) -Fri May 22 12:15:16 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * cp-tree.h (struct tinst_level): The template instantiation level + structure. Used by the code described below. - * sparcv4.h (ASM_OUTPUT_CASE_LABEL): Define. + * cp-pt.c (push_tinst_level): New function for remembering file + context when instantiating templates. Stores the identifier as well, + for error reporting. + (pop_tinst_level): Da opposite. + (tinst_for_decl): Returns a pointer to the tinst_level structure to + use for determining which file to associate the current DECL with, or + NULL to use the current file and line. To restore the old behavior, + just change this function to "return 0;". + (instantiate_class_template): push_tinst_level. -Fri May 22 11:40:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-parse.y (tmplate_instantiate_once): pop_tinst_level() after + instantiating member templates. - * x-dpx2200, x-dpx2300 (CFLAGS): Definition deleted. + * cp-lex.c (extract_interface_info): If instantiating a template, + set up interface/implementation according to the spot in the user's + code that triggered the instantiation. - * c-decl.c, cp-decl.c (pushdecl): No shadow warnings if DECL_IGNORED_P. + * cp-pt.c (tsubst): Associate the FUNCTION_DECL with the spot in the + user's code that triggered the instantiation. *Currently disabled* - * c-decl.c (declare_function_name): - Change names to __FUNCTION__ and __PRETTY_FUNCTION__ + * cp-class.c (finish_struct): If we're instantiating a template, + associate the TYPE_DECL with the spot in the user's code that + triggered the instantiation. *Currently disabled* - * vax.h (PRINT_OPERAND): In M case, don't complement after subtract 1. + * cp-pt.c (coerce_template_parms): Do extra checking on the template + parms, since templates are more picky than initializers. - * c-lex.c (yylex): Use pedwarn for overflow warnings. - Pedwarn if constant doesn't fit its type. + Wed Oct 27 17:06:54 1993 Jason Merrill (jason@deneb.cygnus.com) -Fri May 22 13:32:39 1992 Chip Salzenberg (chip@tct.com) + * cp-parse.y (datadef): Don't override a template with a forward + declaration of a template class. - * xcoffout.h (DBX_TYPE_DECL_STABS_CODE): Was DBX_DECL_STABS_CODE. + Tue Oct 26 17:54:12 1993 Kung Hsu (kung@cirdan.cygnus.com) -Fri May 22 08:31:16 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * cp-parse.y (component-declarator0): fix bit field name same as type + name syntax error. - * longlong.h (all machines): Define UMUL_TIME and UDIV_TIME. - Auxiliary formatting changes. - (header): Define __CLOBBER_CC and __AND_CLOBBER_CC. - (__sparc__ macros): Use them. - (__hppa__ add_ssaaaa,sub_ddmmss): Accept zero using `M' constraint. - (__hppa__ umul_ppmm): Define if _PA_RISC1_1. - (__mc88110__ umul_ppmm,udiv_qrnnd): New. - (__pyr__ umul_ppmm): Rewrite. - (default count_leading_zeros): Make it work for 64 bit longs. + Tue Oct 26 16:07:29 1993 Mike Stump (mrs@cygnus.com) -Fri May 22 06:27:31 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-cvt.c (build_up_reference): Fix typo, fixes core dump on bad + code. - * cse.c (cse_insn): Invalidate a volatile destination. + Tue Oct 26 11:52:09 1993 Jason Merrill (jason@deneb.cygnus.com) - * expmed.c (expand_divmod): Correctly handle volatile operands. + * cp-error.c (dump_function_decl): Only print default arguments + if verbose. + (dump_type): Ditto. -Fri May 22 06:26:50 1992 Chip Salzenberg (chip@tct.com) + Mon Oct 25 22:18:05 1993 Per Bothner (bothner@kalessin.cygnus.com) - * rs6000.h (ASM_DECLARE_FUNCTION_NAME): Use new function - xcoffout_declare_function(). - * rs6000.c (output_epilog): Shorten internal label. - (output_toc, output_function_profiler): Likewise. - * xcoffout.c (xcoffout_declare_function): New function, created - to localize knowledge of end-of-function internal label. - (xcoffout_end_epilogue): Shorten internal label. + * cp-typeck.c (c_sizeof, build_c_cast): Re-enable Salzenberg's + July 10 change (set TREE_OVERFLOW as well as TREE_CONSTANT_OVERFLOW). -Thu May 21 15:31:42 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + Mon Oct 25 18:53:08 1993 Jason Merrill (jason@deneb.cygnus.com) - * reorg.c (relax_delay_slots): Clear INSN_FROM_TARGET_P when - remove insns from a delay slot. + * cp-pt.c (instantiate_class_template): Don't do the + push_template_decls thang if !setup_parse; the binding level + never gets popped. -Thu May 21 13:54:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Mon Oct 25 11:54:34 1993 Kung Hsu (kung@cirdan.cygnus.com) - * reload.c (find_reloads): - Don't abort for % in last operand in asm_operands. + * cp-method.c (hack_identifier): fix seg fault when an + external variable does not have class context. - * alloca.c: Make symlink to master copy. + Sun Oct 24 19:01:15 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * stmt.c (expand_asm_operands): Count nclobbers properly. + * cp-spew.c (scan_tokens): Test for ';' in first pre-scan of the + tokens. - * explow.c (allocate_dynamic_stack_space): Call mark_reg_pointer. + Fri Oct 22 23:46:17 1993 Jason Merrill (jason@deneb.cygnus.com) - * c-parse.y (stmt, WHILE case): Start loop *after* parsing end test. - (do_stmt_start): Broken out from DO rule. - (stmt, DO case): Use that. - Add error-handler rule for parse error in end test. + * cp-tree.c (get_decl_list): When consing up CLASSTYPE_ID_AS_LIST, + don't assume that `value' is a reasonable identifier to use. + (list_hash_lookup_or_cons): Ditto. - * sparc.h (ADDITIONAL_REGISTER_NAMES): Support `cc'. + * cp-error.c (dump_decl, CONST_DECL): Pass off non-enum cases to + dump_expr. + (dump_expr): Pass off DECLs to dump_decl. - * c-lex.c (yylex): Pedwarn if `f' constant exceeds range of `float'. - Just once even if `f' appears twice. - This and the like warning for `double' are only if -pedantic. + Fri Oct 22 20:57:46 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) -Thu May 21 08:46:30 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * cp-errfn.c (STRDUP): Change to comma expr for bdmaged cc's. + (cp_thing): Add decl for ap, initialize fmt later. - * Makefile.in (STAGESTUFF): Add stamp-proto. + Fri Oct 22 17:15:01 1993 Jason Merrill (jason@deneb.cygnus.com) -Thu May 21 04:04:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-error.c (dump_decl): Handle CONST_DECLs for enum tags. - * svr3.h (LOCAL_LABEL_PREFIX): Override as a period. - (ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): - Use LOCAL_LABEL_PREFIX. - * dpx2.h (LOCAL_LABEL_PREFIX): Definition deleted. - * tower-as.h (LOCAL_LABEL_PREFIX): Override as empty. + * cp-type2.c (my_friendly_abort): Move abortcount to global level. -Wed May 20 23:29:15 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-search.c (dfs_pushdecls): Be more helpful in shadowing warning. - * config-gcc.com: Take care of situation if sources are NFS mounted. + * cp-pt.c (mangle_class_name_for_template): If the last template + parameter was also a template class, insert a space so that + the mangled name can be used as input for the compiler (i.e. + with default_copy_constructor_body). -Wed May 20 14:35:10 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Oct 22 16:40:27 1993 Mike Stump (mrs@cygnus.com) - * jump.c (jump_optimize): Add additional validation check to - case that detects "if (foo) bar++;". + Handle constructors in templates better. -Wed May 20 13:18:09 1992 Tim Moore (moore@defmacro.cs.utah.edu) + * cp-call.c (build_method_call): Use constructor_name_full instead + of constructor_name. + * cp-cvt.c (convert_to_reference, convert, build_type_conversion_1, + build_type_conversion): Ditto. + * cp-decl.c (make_temporary_for_reference, grok_reference_init): + Ditto. + * cp-init.c (expand_default_init, expand_aggr_init_1, build_new): + Ditto. + * cp-typeck.c (build_modify_expr_1, convert_for_initialization): + Ditto. + * cp-search.c (lookup_field, lookup_fnfields): Check for short + constructor name, as that is how we store it. + * cp-decl2.c (constructor_name_full): New routine. + * cp-tree.h (constructor_name_full): Declare it. + * cp-call.c (build_method_call): Check for either short or the full + constructor name. - * pa.md : Changed "xy" constraints to "x" constraints. - (movsi+6): Let "r" registers match too. Add define_split to change - into 2 insns if needed. - (decrement_and_branch_until_zero): New pattern. - * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Fix for TYPE == 0. - (REGISTER_MOVE_COST): Do stuff for SNAKE_FP_REGS. - (PRINT_OPERAND_ADDRESS): Write CONST_INT case. + Wed Oct 20 17:17:37 1993 Jason Merrill (jason@deneb.cygnus.com) -Wed May 20 00:04:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h: Declare code_as_string. - * ns32k.h (NS32K_DISPLACEMENT_P): Fix typo. - * ns32k.md (extzv-1): New pattern for extracting from SImode. + * cp-error.c (code_as_string): New function, translates + enum tree_code into a string. Very incomplete at the moment. - * g++: -M suppresses -lg++. + * cp-decl.c (lookup_tag): Use cp_error more. - * svr3.h (DO_GLOBAL_CTORS_BODY): Flush spurious #endif. + Tue Oct 19 16:39:20 1993 Jason Merrill (jason@deneb.cygnus.com) - * reload1.c (gen_input_reload): New arg IS_ASM. Can now return 0. - (emit_reload_insns): Pass new arg. Error if it returns 0. + * cp-error.c (dump_type_prefix): Do the prefix/suffix thang for + ARRAY_TYPE nodes. - * configure: Use $cpu_type to default $tm_file. + Thu Oct 14 23:56:34 1993 Jason Merrill (jason@deneb.cygnus.com) - * configure, config.sub: Correct we32 to we32k. - * configure (decstation-dec): Deleted--doesn't fit as machine alias. - (we32k): Add company default. - (fx2800): This is a machine alias, not a company default. + * cp-gc.c (build_dynamic_cast): Avoid doing runtime work if possible. + (build_typeid): Add logic. - * configure (i386-*-bsd*, we32-att-sysv*, m68k-crds-unos*): - Missing *'s added at ends of config names. + Thu Oct 14 10:56:43 1993 Jason Merrill (jason@deneb.cygnus.com) - * c-typeck.c (convert_arguments): Use warn_for_assignment to handle - -Wconversion. Fix typo in width-mismatch test. + * cp-gc.c (build_typeid): New function, allegedly returns the + Type_info object for the type of an expression, currently does + nothing. + (get_typeid): New function, allegedly returns the Type_info object + for a _TYPE node, currently does nothing. + (build_dynamic_cast): New function, supposedly implements + run-time checked casting, currently only does what can be done + at compile time. - * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Put a * at the front. + * cp-parse.y (.kindof_pushlevel): Only push first decl (the variable). + (primary): Add dynamic_cast and typeid expressions. + (simple_if): Use partially_scoped_stmt again. + Makes 'if' condition work. -Tue May 19 21:53:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-error.c (expr_as_string): Suppress parens on initial call + to dump_expr. - * Makefile.in (clean): Add -f in rm *.dvi. + * cp-tree.h: Add decls for Type_info_type_node, build_typeid, + get_typeid and build_dynamic_cast. - * x-dpx2200, x-dpx2300 (CFLAGS): Make value conditional on CC. + * gplus.gperf: Add typeid and dynamic_cast. - * genattrtab.c (simplify_test_exp, evaluate_eq_attr): - Delete tests of current_alternative_string; they caused bugs. + * cp-spew.c (init_spew): Ditto. - * cross-test.c: New file. - * Makefile.in (cross-test, cross-test.o): New targets. - (all.cross): Depend on cross-test. + Wed Oct 13 19:15:21 1993 Jason Merrill (jason@deneb.cygnus.com) - * c-decl.c (declare_function_name): Fix bug in previous change. + Partial implementation of Stroustrup's proposal for declarations in + conditions from X3J16/92-0121. -Tue May 19 19:57:39 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * cp-parse.y (paren_cond_or_null): New rule, use condition instead + of expr. + (xcond): Ditto. + (condition): New rule, used in the condition parts of if, while, for + and switch statements. Allows a restricted set of declarations of + the form "type_specifier declarator = expression". + (.kindof_pushlevel): Like pushlevel, but pushes all of the decls + from the previous binding level into the new one too. + (partially_scoped_stmt): Like implicitly_scoped_stmt, but uses + .kindof_pushlevel instead of .pushlevel. + (simple_if): .pushlevel before condition. + (simple_stmt, simple_if ELSE): Ditto, pop binding level. + (simple_stmt, simple_if): Ditto. + (simple_stmt, WHILE): Ditto. + (simple_stmt, forhead.1): .pushlevel before condition, use xcond + instead of xexpr, pop binding level. + (simple_stmt, forhead.2): Use xcond instead of xexpr, always pop + binding level. + (simple_stmt, SWITCH): .pushlevel before condition, etc, etc. + (forhead.2): always .pushlevel. + (datadef): Use cp_error more. + (simple_stmt, CASE): Ditto. - * i960.h (FUNCTION_ARG_BOUNDARY): Return mode's alignment if type 0. + * cp-decl2.c (pushdecls): New function, push all decls in the chain + into the current scope. - * calls.c (expand_call): Set MEM_IN_STRUCT_P for aggregate return - values in memory. + Wed Oct 13 12:31:58 1993 Mike Stump (mrs@cygnus.com) - * function.c (locate_and_pad_parm): Use MAYBE_REG_PARM_STACK_SPACE - if defined. - * i960.c (i960_function_arg_advance): Put MUST_PASS_IN_STACK - parameters on the stack. - (i960_function_arg): Likewise. + * cp-decl.c: Remove redefinition of NULL, as some machines don't + like it. Clean up all NULL uses. - * m68k.md (zero_extendqisi2+1): Add condition to exclude MEM/MEM - case which would require reloading. + Mon Oct 11 17:21:08 1993 Kung Hsu (kung@cirdan.cygnus.com) - * unroll.c: Delete incorrect Feb 26 1992 change. - (copy_loop_body): For combined address givs, scale giv_inc by the - two giv's multiplicative factors if they are different. + * cp-decl2.c (finish_file): Fix libg++ build problem of mismatch + blocks. - * i960.md (zero_extendqisi2): Add comment. + Mon Oct 11 13:51:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * combine.c (apply_distributive_law): Don't distribute subregs - which change the mode class. + Mon Oct 4 11:49:48 1993 Chip Salzenberg (chip@fin.uucp) - * fixincludes: Fix memory.h for SunOS. + * cp-typeck.c (build_modify_expr): Check whether recursive calls + return error_mark_node. - * sparc.h (EXTRA_CC_MODES, EXTRA_CC_NAMES): Add CCFPEmode, for - compares which should generate exceptions for qNaNs. - (SELECT_CC_MODE): Use CCFPEmode for non EQ/NE FP compares. - * sparc.c (normal_comp_operator): Handle CCFPEmode. - (C_MODES, output_cbranch): Likewise. - * sparc.md (cmpdf, cmpsf): Modify patterns to use fcmpe for CCFPE - mode, and fcmp for CCFP mode. + Mon Oct 4 12:41:16 1993 Chip Salzenberg (chip@fin.uucp) - From rfg: - * sparc.h: Declare output_move_quad, output_fp_move_quad and - output_floatsitf2. - * sparc.c (mem_aligned_8): New function. - (output_move_double): Clean up a little. Call mem_aligned_8. - Load operands[] into register variables for efficiency. - (output_move_quad, output_fp_move_quad): New functions. - (output_floatsitf2): New function. - (print_operand): Support 'S' and 'T'. - * sparc.md (cmptf, movtf, extendsftf2, extenddftf2, trunctfsf2, - trunctfdf2, floatsitf2, fix_trunctfsi2, addtf3, subtf3, multf3, - divtf3, negtf2, abstf2, sqrttf2): New patterns added for TFmode - support. + * cp-class.c (finish_struct): Too-long bitfield is an error. + * cp-decl.c (grokdeclarator): "inline main()" is an error. + (grok_op_properties): Overloaded ?: is an error. + (start_enum): Duplicate enum definition is an error. -Tue May 19 19:34:10 1992 Ron Guilmette (rfg at ncd.com) + Mon Oct 4 12:45:11 1993 Chip Salzenberg (chip@fin.uucp) - * i386v4.h (DBX_REGISTER_NUMBER): Fixed DWARF numbers for - x86 floating-point registers. + * cp-typeck.c (common_type): Use TYPE_MAIN_VARIANT when preferring + long int to int (when width is the same). -Tue May 19 15:30:32 1992 Mats Lofkvist (d87-mal@nada.kth.se) + Mon Oct 4 12:46:54 1993 Chip Salzenberg (chip@fin.uucp) - * fixincludes: Fix return type of malloc and friends. + * cp-typeck.c (convert_for_assignment): Mismatch in signedness + of pointer targets should not inhibit warnings for const mismatch. -Tue May 19 13:30:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Mon Oct 4 12:53:04 1993 Chip Salzenberg (chip@fin.uucp) - * config.sub (iris4d): If $os is some kind of Irix, don't clobber it. - Make the default -irix4. + * cp-typeck.c (default_conversion): Convert to unsigned int + if original type is unsigned and of greater or equal size. - * c-decl.c (declare_function_name): New arg printable_name. - Declare __PRINTABLE_NAME__. - (init_decl_processing, store_parm_decls): Pass the new arg. + Mon Oct 11 13:19:42 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue May 19 09:50:01 1992 Tom Wood (wood@dg-rtp.dg.com) + * cp-decl.c (build_enumerator): Call default_conversion on the VALUE + before calling constant_expression_warning. - * m88k.c (output_options): Check profile_block_flag. - (m88k_layout_frame): Ditto. - (output_function_block_profiler): Save and restore the parameter - registers when calling __bb_init_func. - (output_block_profiler): Use @LPBX2. - - * m88k.h (CASE_VECTOR_INSNS): Choose a table of branch - instructions or addresses. The latter is a win for the m88110. - (ASM_OUTPUT_CASE_END): Nothing needed for table of addresses. - (ASM_OUTPUT_ADDR_VEC_ELT): Use "br" or "word". - * m88k.md (casesi, casesi_jump): Updated. + Mon Oct 11 10:21:37 1993 Kung Hsu (kung@cirdan.cygnus.com) - * m88k.md (m88110 function units): Count in half cycles. + * cp-decl.c (finish_function): fix the mismatch LBB LBE block + problem, specifically when compiler generated + destructor/constructor (pr2972) + * cp-decl2.c (finish_file): same as above + * cp-parse.y (compstmt): same as above - * m88k.md (call insns): Clobber rather than use r1. + Mon Oct 11 01:08:09 1993 Jason Merrill (jason@deneb.cygnus.com) - * m88k.c (m88k_layout_frame): Fix m88k_fp_offset for zero case. + * cp-error.c (dump_type_suffix): Cope with arrays with unspecified + bounds. -Mon May 18 10:38:20 1992 Michael Meissner (meissner@osf.org) + Thu Oct 7 19:35:26 1993 Jason Merrill (jason@deneb.cygnus.com) - * iris.h (DEFAULT_SIGNED_CHAR): Define as 0 for compatibility with - IRIS defaults. Patch from kevin@tamri.com (Kevin Dalley). + * cp-error.c: Deal with printing out array DECLs properly. + Use dump_char for printing out string literals, too. - * xm-irix4.h (HAVE_VPRINTF): Define. +Tue Nov 23 18:08:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * x-iris (CLIB): Add -lmalloc. + * dwarfout.c (function_start_label): New function. + (output_entry_point_die): Use it. + (output_global_subroutine_die, output_local_subroutine_die): Use it. - * mips.md (fp_comp functional unit): Use adder functional unit - instead to more closely model MIPS behavior and make genattrtab - faster. - (transfer functional unit): Use memory functional unit instead. - (sqrt functional unit): Use divide functional unit instead. - (branch_zero): If CSE has folded a value which is constant, and - the jump would be omitted, do not eliminate putting a jump there. - This causes bad code to be generated when using gas, since the - previous instruction may be a load which had it's delay slot - filled by the 'branch', and the next instruction depends on the - value loaded. + * c-common.c (check_format_info): Always use TYPE_MAIN_VARIANT + when comparing cur_type against wanted_type. - * mips-at.c (whole file): Delete, no longer needed. + * protoize.c (save_def_or_dec): If function's aux info doesn't end + with a closeparen, ignore it. + (xmalloc, xrealloc): Cast result of malloc. - * mips-at.md (whole file): Delete, no longer needed. + * c-typeck.c (build_binary_op): Don't accept complex types + for max, min, lt, etc. - * Makefile.in (stamp-attrtab): Remove $(srcdir) in front of - $(PREMADE_ATTRTAB) so that MIPS builds can be done in - subdirectories. +Tue Nov 23 18:05:14 1993 Lisa Repka (lisa@MicroUnity.com) - * t-decrose (PREMADE_ATTRTAB*): Don't define, genattrtab is now fast - enough that we don't have to save a pre-made genattrtab.c. - (LIBGCC1): Use libgcc1.null rule to turn off building libgcc1.a. + * reorg.c (rare_destination): Ensure we always correctly handle + a null JUMP_LABEL. - * t-decstatn (PREMADE_ATTRTAB*): Don't define, genattrtab is now fast - enough that we don't have to save a pre-made genattrtab.c. - (LIBGCC1): Use libgcc1.null rule to turn off building libgcc1.a. +Tue Nov 23 17:48:39 1993 Doug Evans (dje@canuck.cygnus.com) - * t-mips (PREMADE_ATTRTAB*): Don't define, genattrtab is now fast - enough that we don't have to save a pre-made genattrtab.c. - (LIBGCC1): Use libgcc1.null rule to turn off building libgcc1.a. + * i960/i960.h (ASM_SPEC): Pass -linkrelax, not -link-relax. - * mips.h (ASM_OUTPUT_CONSTRUCTOR,ASM_OUTPUT_DESTRUCTOR): Define. - Patch from wilson@cygnus.com. - (DEFAULT_SIGNED_CHAR): Don't define if already defined. +Tue Nov 23 17:35:25 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) -Mon May 18 01:34:38 1992 Kayvan Sylvan (kayvan@satyr.Sylvan.COM) + * arm.c (arm_backwards_branch): Branching to the current insn is a + backwards branch. - * svr3.h (DO_GLOBAL_CTORS_BODY): Start at end, if STACK_GROWS_DOWNWARD. +Tue Nov 23 13:59:24 1993 Hallvard B Furuseth (hbf@durin.uio.no) -Mon May 18 01:34:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * libgcc2.a (__bb_exit_func): Fix format %*d -> %*ld. - * Makefile.in (protoize.o, unprotoize.o): - Do nothing, but depend on stamp-proto. - (stamp-proto): New target. Compile both protoize.o and unprotoize.o. + * c-parse.in, cp-parse.y (maybe_type_qual): Don't fail to set $$. - * configure (ns32k-ns-genix): Commented out. +Tue Nov 23 15:26:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * expmed.c (expand_mult): Use synth_mult even if not -O. + * combine.c (try_combine, simplify_shift_const): Add initializations + for some uninitialized variables. -Sun May 17 02:54:21 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-common.c (check_format_info): When we have INTEGER_TYPEs, + save result of signed_type or unsigned_type for later + comparison with the various forms of char types. - * c-decl.c (push_parm_decl): Pedantic warning if shadowing typedef. + * expr.c (expand_expr, case SAVE_EXPR): Properly recompute the + value of UNSIGNEDP when SAVE_EXPR_RTL is nonzero and we have promoted. - * c-typeck.c (constant_expression_warning): New function. - (store_init_value): Call that. - * tree.h (TREE_CONSTANT_OVERFLOW): New flag. +Tue Nov 23 04:14:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-lex.c (yylex): "exceeds range" warning changed to pedwarn. - * c-decl.c (grokdeclarator): Likewise for duplicate keywords. + * dwarfout.c (output_local_subroutine_die): Use the function name + from its symbol_ref, not DECL_ASSEMBLER_NAME. - * c-typeck.c (build_unary_op): For increment operators, - test TREE_READONLY in operand, not the data type. +Mon Nov 22 13:59:41 1993 Steve Chamberlain (sac@mole.gnu.ai.mit.edu) - * unprotoize.c: New file. - * Makefile.in (unprotoize.o): Use that. + * final.c (get_attr_length): asm_insn_count takes a body, not an + insn. - * c-decl.c (init_decl_processing): Make global decl for __NAME__. - (store_parm_decls): Make local decl for __NAME__. - (declare_function_name): Subroutine for that. - * toplev.c (rest_of_decl_compilation): - Ignore initialized statics if DECL_IGNORED_P is set. - * c-lex.c (yylex): Convert invisible initialized char array vars - to string constants. +Sun Nov 21 22:37:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (get_parm_info): Change error message. + * config/m68k/mot3300.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): + Use SIZE, not ROUNDED. + (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Definitions turned off. + (REGISTER_PREFIX, IMMEDIATE_PREFIX): New definitions. + (PARM_BOUNDARY): New definition. -Sat May 16 21:25:21 1992 Paul Eggert (eggert@twinsun.com) +Sun Nov 21 15:39:04 1993 Tor Egge (tegge@pvv.unit.no) - * fold-const.c (fold): Do not fold X-X to 0 if X is floating point. + * m88k/dolph.h (SDB_ALLOW_FORWARD_REFERENCES): Define. + (SDB_ALLOW_UNKNOWN_REFERENCES): Define. + (CPP_PREDEFINES): Redefine. + (CPP_DEFAULT): Redefine. + (INITIALIZE_TRAMPOLINE): Redefine. + * m88k/dolphin.ld: New file. + * m88k/t-m88k (realclean): Remove some generated .asm files. + * m88k/x-dolph (EXTRA_PARTS): Redefined to also contain gcc.ld. + (gcc.ld): Copied from dolphin.ld. + (X_CFLAGS): Define __m88k__. + * libgcc2.c (__enable_execute_stack): Add DolphinOS version. - * cse.c (simplify_unary_operation): - -X simplifies to X even - with IEEE floating point. +Sun Nov 21 01:00:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat May 16 14:14:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config/m68k/isi.h (LIB_SPEC): Use -lm in addition to -lc-- + not instead of -lc. - * Makefile.in (clean): Delete *.dvi. - (distclean): Not here. + * fix-header.c (write_rbrac): Make added declarations conditional + on __cplusplus and nothing else. + * fixproto (stdio.h): Reenable adding protos for v*printf. - * Makefile.in (install-man): Ignore errors in all commands. + * sys-protos.h (authdes_create): Delete arg info. + We can't count on having struct sockaddr defined. - * combine.c (expand_compound_operation): - Don't simplify extending a const_int. + * fixincludes (math.h): When deleting inline sqrt and abs, + be flexible about arg name and function body. - * ns32k.h (NS32K_DISPLACEMENT_P): New macro. - (INDIRECTABLE_1_ADDRESS_P): Use that. - * ns32k.md (addsi3): Likewise. + * Makefile.in (stmp-fixproto): Never run fixproto twice. -Sat May 16 07:47:11 1992 Tom Wood (wood@dg-rtp.dg.com) +Sat Nov 20 16:52:15 1993 Jim Wilson (wilson@cygnus.com) - * m88k.h: Override SET_ASM_OP in svr4.h. + * stmt.c (warn_if_unused_value): Handle arbitrary number of casts + before a modify. -Sat May 16 00:10:09 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Nov 20 16:38:25 1993 Eric Baur (eric@synnet.com) - * c-parse.y (parmlist_1): Add pedantic warning. + * i386/perform.h (perform_divsi3, perform_modsi3): Add '&' in + constraint for DX; explicitly copy arg arg1 to cx. -Fri May 15 13:10:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Nov 20 02:26:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * configure (i386-*-sco3.2v4*): New file. - * config.sub: For SCO, produce -sco3.2v2. For ISC, make just -isc. + * expr.c (expand_builtin): For sin, cos, fsqrt, alloca, ffs, strlen, + strcpy, memcpy, strcmp, memcmp, if args are bad, use expand_call. - * dbxout.c (DBX_TYPE_DECL_STABS_CODE): Was DBX_DECL_STABS_CODE. - (DBX_OUTPUT_ENUM): Pass type as arg; make it do the whole job. + * fix-header.c (write_rbrac): Treat rewinddir like memmove. - * svr4.h (ASM_BYTE_OP): Delete the tab. - (SET_ASM_OP): New definition. +Fri Nov 19 18:24:43 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (gcc.xtar): Depend on doc. - (gcc.info, cpp.info): Duplicate rules deleted. + * protoize.c: Remove declarations for malloc and realloc. - * i386.c (handle_pragma): Use SET_ASM_OP, not DEF_ASM_OP. + * expr.c (store_field): Convert EXP to MODE before calling + store_bit_field. -Fri May 15 12:38:18 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * optabs.c (expand_complex_abs): Replace some erroneous + uses of MODE with SUBMODE. - * final.c (final_scan_insn): Don't set new_block when within a - sequence. Set it after the last insn of the sequence. + * combine.c (force_to_mode): Don't allow sign-extension of + constants when we are narrowing things in an IOR or XOR. -Fri May 15 07:23:09 1992 Tom Wood (wood@dg-rtp.dg.com) +Fri Nov 19 16:42:43 1993 Jim Wilson (wilson@cygnus.com) - * m88k.c (m88k_handle_pragma_token, output_short_branch_defs): - Use SET_ASM_OP. + * rs6000.c (output_function_profiler): When TARGET_MINIMAL_TOC, + emit .long instead of .tc. -Fri May 15 14:54:54 1992 Howard Chu (hyc@hanauma.jpl.nasa.gov) +Fri Nov 19 13:22:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * fx2800.h: Replace Ron Guilmette's version with working version. - Tested on Concentrix 2.1 and 2.2. + * configure: Let a host set truncate_target to specify that the + installation directory names must be truncated to 14 characters. + If set, truncate the target argument. - * i860.c (singlemove_string): Comparison of const0_rtx was in the - wrong place and would never be reached. Added check for negative - short int constants. - (output_size_for_block_move): call singlemove_string instead of - just emitting a mov. - (sfmode_constant_to_ulong): eliminate bogus "# error" directive. +Fri Nov 19 17:27:58 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * t-fx2800, x-fx2800, xm-fx2800.h: New files. - * configure: Corresponding changes. + * clipper.h (HARD_REGNO_MODE_OK): Allow any mode in general regs. + Float regs may only hold SFmode and DFmode. + (FUNCTION_ARG): Only MODE_INT and MODE_FLOAT with size <= 8 are + passed in registers. + (FUNCTION_ARG_ADVANCE): Update accordingly. + (FUNCTION_ARG_PARTIAL_NREG): Undefine. - * dbxout.c (DBX_MEMPARM_STABS_LETTER): New macro. - (dbxout_type): Check for DBX_OUTPUT_ENUM. - (dbxout_parms): Use DBX_MEMPARM_STABS_LETTER. - (dbxout_block): Check for DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC. + * clipper.md (movsf+1,2,movdf+1,2): Make 'f' preferred register class. -Thu May 14 18:26:13 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Thu Nov 18 20:09:56 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * sparcv4.h (ASM_OUTPUT_ALIGN_JUMP_TABLE, ASM_OUTPUT_INTERNAL_LABEL, - ASM_GENERATE_INTERNAL_LABEL): Delete. + * fixincludes: When compute DOTS, convert /./ to / to avoid + accidentally converting it to /../. + * fixinc.dgux, fixinc.svr4: Likewise. -Thu May 14 13:51:01 1992 Chip Salzenberg (chip@tct.com) +Thu Nov 18 06:14:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (compile_file): Use IO_BUFFER_SIZE for finput. - * xm-i386sco.h, xm-rs6000.h (IO_BUFFER_SIZE): Defined. + * function.c (expand_function_end): New arg END_BINDINGS. + * c-decl.c (finish_function): Pass new arg to expand_function_end. + * cp-decl.c (finish_function): Pass new arg to expand_function_end. + Don't call expand_end_bindings here. + * integrate.c (output_inline_function): + Pass new arg to expand_function_end. -Thu May 14 15:21:24 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu) +Wed Nov 17 18:54:21 1993 Chip Salzenberg (chip@fin.uucp) - * config.sub: Recognize "none" as a valid os. + * objc/objects.c: Include "tconfig.h" before "runtime.h". -Thu May 14 13:37:52 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Nov 17 19:15:31 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * function.c (assign_parms): Make new stack slot if entry stack - slot isn't aligned as much as the mode wants. - And don't make an eqv for entry_parm in that case. - * sparc.c (output_move_double): Assume memory always ok for ldd, std - except when explicit offset from stack. + * fixincludes (math.h): Add missing quoting of `*' when fixing + prototype of `sqr'. - * c-decl.c (duplicate_decls): - Don't warn about qualifier mismatch for a function. +Tue Nov 16 07:15:52 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-decl.c (grokdeclarator): Give explicit list of types to promote - to int (and sometimes to unsigned int) for parms. + * alpha.h (EXTRA_CONSTRAINT): New macro. + (SECONDARY_{INPUT,OUTPUT}_RELOAD_CLASS): Disallow unaligned into float + regs. + * alpha.md (movdi): Use 'Q' instead of 'm' for FP. - * Makefile.in (gcc.info, cpp.info): New targets. - (gcc.xtar): Depend on those. +Tue Nov 16 02:06:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expmed.c (extract_bit_field): Don't fail to compute - all of a DImode value. + * Version 2.5.4 released. - * dwarfout.c (SET_ASM_OP): Renamed from DEF_ASM_OP. - (ASM_OUTPUT_DEF): Use SET_ASM_OP. - * m88k.h (SET_ASM_OP): Renamed from DEF_ASM_OP. - * sparcv4.h (DEF_ASM_OP): No need for #undef. + * c-typeck.c (push_init_level): When aligning next struct field, + make sure there's another field left. - * cccp.c (main): Handle -iprefix option instead of GCC_EXEC_PREFIX. - * gcc.c (process_command): Set gcc_exec_prefix. - (do_spec_1): Handle %I. - (default_compilers): Use %I when running cpp. + * cp-errfn.c: Don't include string.h. + (STRDUP): Macro deleted. + (cp_thing): Copy strings "by hand". - * protoize.c (savestring, savestring2): Change parm decls. + * combine.c (force_to_mode): Don't do right-shift in a narrower mode. - * i860.h, we32k.h (CONST_COSTS): Add missing parm OUTER_CODE. +Mon Nov 15 01:54:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386v4.h (DEF_ASM_OP, WEAK_ASM_OP): Deleted. + * sdbout.c (sdbout_symbol): If non-static var has static-style RTL, + don't output anything for it. -Wed May 13 17:23:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in (stmp-fixproto): Don't depend on xsys-protos.h. + (diff): Don't compare bi-parser.c - * rtl.c (init_rtl): For byte_mode and word_mode, use first fit. + * news.h (NO_DOT_IN_LABEL, NO_DOLLAR_IN_LABEL): Defined. - * protoize.c (munge_compile_params): Increase size of temp_params. + * c-typeck.c (push_init_level, really_start_incremental_init): + Skip any nameless bitfields at start of record. + (process_init_element): Skip any nameless bitfields after the field + just processed. -Wed May 13 13:30:40 1992 Chip Salzenberg (chip@tct.com) +Mon Nov 15 02:09:54 1993 Torbjorn Granlund (tege@blues.cygnus.com) - * i386sco4.h: New file. + * pa.h (RETURN_IN_MEMORY): Define. -Tue May 12 23:23:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Nov 14 17:25:29 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (expand_increment): A subreg as op0 is not necessarily a copy. - Treat subregs like regs. + * expr.c (expand_expr): For TRUTH_AND_EXPR, TRUTH_OR_EXPR + and TRUTH_XOR_EXPR, if result mode doesn't match operands, + don't use subtarget. - * c-typeck.c (mark_addressable): Different messages for reg var - if reason is a use in a nested function. + * c-typeck.c (convert_for_assignment): Fix typo (codel => coder). -Tue May 12 14:28:22 1992 Tom Wood (wood at gen-rtx) +Sun Nov 14 12:45:37 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * gcc.c (process_command): -save-temps uses a switches entry. + * function.c (assign_parms): Clear STACK_PARM when we have a + pass-by-pointer parm that we load into a pseudo. -Tue May 12 21:24:46 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * flow.c (flow_analysis): Fix bug in previous change. - * collect2.c (vfork): Declaration deleted. + * fold-const.c (twoval_comparison_p): Do nothing for SAVE_EXPR, at + least for now. -Tue May 12 06:16:49 1992 Niklas Hallqvist (niklas@appli.se) + * reload.c (push_reload): Allow RELOAD_FOR_INPUT with a secondary + reload the same class as the input if the modes differ. - * tower-as.h: Added support for basic block profiling. + * expr.c (store_expr): Convert constants to proper mode in two places. -Tue May 12 02:34:45 1992 James Van Artsdalen (james at bigtex.cactus.org) + * sh.h (HAVE_VPRINTF): Delete from here. + * xm-sh.h (HAVE_VPRINTF): New macro. - * unx386.h (AS3_SHIFT_DOUBLE): New macro to print shift-double - opcodes. +Sun Nov 14 04:28:56 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386gas.h (AS3_SHIFT_DOUBLE): Redefine for GAS shift-double rules. - (GAS_MNEMONICS): New macro to force use of opcodes for GAS. - * seq386gas.h (AS3_SHIFT_DOUBLE,GAS_MNEMONICS): Likewise. + * config/i860/i860.h (SECONDARY_INPUT_RELOAD_CLASS): + Moving any kind of integer cst to float reg needs intermediate. - * i386.c (print_operand): Use GAS_MNEMONICS to choose long-long - opcode suffix. + * sys-protos.h (getmntent): Delete the arg decls + because BSD 4.4 and Sunos disagree on them. - * i386.md (ashldi3,ashrdi3,lshrdi3): Split into separate - recognizers for constant and variable shifts. - Use AS3_SHIFT_DOUBLE for variable shifts. - (all shifts and rotates): Don't allow memory operands for shift - count. - (bit set/clear): Don't allow non-CONST_INT constants as SET_SRC. - (movstrsi,cmpstrsi,strlensi): Allow any address_operand within - a MEM:BLK, not just register_operand. - (movstrsi): Rewrite to avoid match_dup on the address_operand - above. +Sat Nov 13 23:06:42 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon May 11 23:31:47 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) + * config/mips/mips.c (function_arg, function_arg_advance): + In default case, handle complex modes much like BLKmode. + (function_arg_partial_nregs): Likewise. - Sun May 10 18:44:58 Per Bothner (bothner@cygnus.com) +Sat Nov 13 22:31:48 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * dbxout.c (dbxout_type_methods): Only emit final semi-colon - of method list of we have emitted any methods. (The converse - of only emitting the operation name initially if needed.) + * alpha.h (CPP_SPEC): Always define __LANGUAGE_C__ unless assembler. + Define __cplusplus for C++. -Mon May 11 22:45:18 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * alpha.md (movsf, movdf): Add 'G' to constraint for operand 1 + when operand 0 is a register and support it in alternative 0. - * reload.c, reload1.c: Use reg_overlap_mentioned_for_reload_p and - refers_to_regno_for_reload_p instead of the normal versions. - * reload.c (reg_overlap_mentioned_for_reload_p): New function. + * stmt.c (expand_end_bindings): Use emit_move_insn instead of + gen_move_insn in case nonlocal_goto_handler_slot is not a valid memref. -Mon May 11 22:44:50 1992 Ron Guilmette (rfg at ncd.com) + * flow.c (find_basic_blocks): When starting new basic block + for a CALL_INSN in the presence of nonlocal labels, don't + get confused with following CLOBBER. + (flow_analysis): Use same logic as find_basic_block to see when + the insn after a CALL_INSN starts a new basic block. - * integrate.c (expand_inline_function): Copy LABEL_NAMEs to new - copies of CODE_LABELs. - * tree.c (decl_function_context, decl_type_context): Renamed `fndecl' - formal parameter to `decl' throughout these functions. + * expmed.c (store_split_bit_field): Properly load a constant VALUE + into a WORD_MODE pseudo. -Mon May 11 18:43:45 1992 Paul Eggert (eggert@twinsun.com) +Sat Nov 13 18:27:43 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c: (deps_file): Deleted. - (main): Do not open deps_file until needed. - Check error status of dep_stream and stdout more carefully. - (timestamp): New function; avoids calling localtime unless needed. - (special_symbol, initialize_builtins): Use new timestamp function. + * config/ns32k/ns32k.md (movsi): Handle moves to fp reg. + Handle const_double as operand 1. -Mon May 11 20:48:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in (diff): Fix typo in name gcc.??s. - * genix.h: Added #error, since this hasn't been updated. +Fri Nov 12 08:34:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon May 11 14:33:32 1992 Ron Guilmette (rfg at ncd.com) + * dbxout.c (dbxout_type_field): Skip fields with variable + position and/or size instead of crashing on them. - * dwarfout.c (is_pseudo_reg): New function. - (location_attribute): Use `is_pseudo_reg'. - (location_or_const_value_attribute): Use DECL_INCOMING_RTL as the - basis for forming the location decsriptor for any register parameter - which was optimized into non-exitance. +Fri Nov 12 22:49:50 1993 Pat Rankin (rankin@eql.caltech.edu) - * dwarfout.c (DWARF_VERSION): New (default) definition. - (ASM_OUTPUT_DWARF_STACK_OP, ASM_OUTPUT_DWARF_FMT_BYTE, - ASM_OUTPUT_DWARF_TYPE_MODIFIER, ASM_OUTPUT_DWARF_DATA1): Output tab - before ASM_BYTE_OP. - (ASM_OUTPUT_DWARF_ADDR_CONST): Encapsulate all statements in a - `do { ... } while (0)' - (data_member_location_attribute, bit_offset_attribute): Both fixed - to use alignment of declared type of field as the "containing object" - size. - (location_or_const_value_attribute): Fixed to use DECL_INCOMING_RTL - only for parms passed in memory. - (output_decl): Don't output DIEs for externals if DWARF_VERSION == 1. + * bi-arity.c, bi-opcode.c, bi-opname.c (main): Flush stdout and + and check for errors prior to termination; end with call to exit + rather than return from main, as with gen*.c. + * bi-arity.c, bi-lexer.c, bi-opcode.c, bi-opname.c, bi-parser.y: + Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal exit code. -Sun May 10 17:18:33 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) +Fri Nov 12 18:41:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * pa.h (CPP_PREDEFINES): Define for BSD here. - Remove conditional #ifdef hpux. - * pa-hpux.h, pa-ghpux.h (CPP_PREDEFINES): Define for hpux here. - * pa.h (CPP_SPEC): Define. + * gstdarg.h, gvarargs.h: Test __bsdi__ like __BSD_NET2__. -Sun May 10 12:12:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * pa.h (FUNCTION_ARG_BOUNDARY): Fix return value for 64bit + pass by value structures. - * Makefile.in (clean): Delete unprotoize.c. + * fix-header.c (write_rbrac): Handle v*printf like memmove. - * stmt.c (expand_decl): Set MEM_IN_STRUCT_P right in dynamic case. +Fri Nov 12 08:53:47 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * expr.c (get_inner_ref): Handle ARRAY_REF only if constant offset. - Handle non-PLUS_EXPR variable offset by assuming multiple of byte. - (expand_assignment, expand_expr): Fix gen_rtx added in last change. + * arm.md (comparison): Don't emit invalid optimization + for (set (reg) (comparison)) and (set (reg) (neg (comparison))) + when comparison is LT. -Sat May 9 02:39:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * arm.c (pattern_really_clobbers_lr): Setting a subreg of a mem is + valid and safe. - * expr.c (get_inner_reference): New output arg poffset. - (expand_assignment, expand_expr): Pass new arg. Handle nonzero offset. - (do_jump): Pass new arg but ignore result. - * fold-const.c (optimize_bit_field_compare, decode_field_reference): - Pass the new arg. Just return 0 if offset comes back nonzero. +Fri Nov 12 08:38:22 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * reload.c (find_equiv_reg): Always test valueno >= 0. + * m68k/hpux7.h: Add directory name to #include of hp320.h. - * c-aux-info.c: Don't include param.h or errno.h; don't declare errno. +Thu Nov 11 00:00:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * rtl.c (read_rtx): Fix error in prev change. + * Version 2.5.3 released. - * gcc.c (process_command): Handle -print-libgcc-file-name. - (main): Handle print_libgcc_file_name by printing the name. + * fix-header.c, gen-protos.c (fancy_abort): New function. - * c-decl.c (finish_struct): Use TYPE_PRECISION to see whether - bitfield's type is narrower than int, for promoting to int. + * c-typeck.c (mark_addressable): Handle REALPART_EXPR and + IMAGPART_EXPR. - * cccp.c (struct definition, struct reflist): New field `rest_args'. - (struct arglist): Likewise. - (rest_extension, REST_EXTENSION_LENGTH): New var and macro. - (create_defnition): Recognize `...' and set flag in arglist. - (collect_expansion): Propagate flag to definition. - (macroexpand): Check flag when parsing arglist. - Special handling for ## next to a rest arg. - (macarg, macarg1): New arg rest_arg affects parsing in macarg1. + * integrate.h (global_const_equiv_map_size): Declared. - * genattrtab.c: Misc speedups and size reductions. - (check_attr_test): Set RTX_UNCHANGING_P for tests of const attributes. - Also for symbol_ref and comparison ops. - (make_canonical): Likewise. Also check for degenerate cond values. - (operate_exp, simplify_cond, insert_right_side, evaluate_eq_attr): - Avoid copying in some cases. Detect opportunities to simplify. - (compute_alternative_mask): Avoid atoi in most cases. - (copy_rtx_unchanging): New function. - (evaluate_eq_attr, simplify_test_exp): Use that. + * dbxout.c (dbxout_symbol): If it's C++, don't check the + DECL_SOURCE_LINE of a typedef. + (dbxout_parms): Fix previous change. - * genattrtab.c (optimize_attrs): Work pattern by pattern, - doing all the work for each pattern before moving on. - Use temp_obstack during simplification, then copy the end result. - (temp_obstack): New obstack. - (clear_struct_flag): New subroutine. - (SIMPLIFY_TEST_EXP): Test MEM_IN_STRUCT_P. - (simplify_test_exp): Add code for debugging stop. - Avoid consing when possible; sometimes free storage. - Check MEM_IN_STRUCT_P. Add shortcuts. +Wed Nov 10 10:33:28 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * genattrtab.c: Add simplification per alternative (not in use now). - (insn_n_alternatives): New array filled in by gen_insn. - (current_alternative_string): Nonzero means we are simplifying - for a particular alternative. Value is string for that numeral. - (SIMPLIFY_ALTERNATIVE): New macro simplifies eq_attr for alternative. - (evaluate_eq_attr, simplify_test_exp): Call SIMPLIFY_ALTERNATIVE. - (simplify_by_alternatives, count_sub_rtxs): New functions. + * fixproto (rel_source_subdir): Prune out redundant /subdir/../ to + prevent recursion. - * genattrtab.c (attrs): Now an array indexed by first char. - (MAX_ATTRS_INDEX): Length of above. - (find_attr, main): Use that new data structure. +Wed Nov 10 22:30:16 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * genattrtab.c: Clarify use of hash-consing: - (hash_obstack): New obstack. - (attr_hash_add_rtx, attr_hash_add_string): Use hash_obstack. - (attr_rtx): Use hash_obstack if object is hashed. - Set RTX_INTEGRATED_P if object is hashed. - Don't hash object if subexpressions aren't hashed. - If making symbol_ref, hash the symbol name. - Uniquize const_int with value 0 or 1. - (attr_equal_p): New compare function; uses RTX_INTEGRATED_P. - (simplify_and_tree, simplify_or_tree, simplify_test_exp): Use that. - (attr_copy_rtx): New; copy all but hashed subexpressions. - (attr_eq): New function. - (attr_numeral): New function. - (check_attr_test): Use attr_eq. Hash symbol_ref and comparison ops. - (check_attr_value): Return modified value. Callers changed. - Hash symbol_ref. - (convert_set_attr_alternative): Use attr_eq and attr_numeral. - (convert_const_symbol_ref): Hash symbol_ref and eq. - (make_alternative_compare): Use attr_numeral. - (alternative_name): Fill in using hasher. - (copy_boolean): Hash a boolean expression if possible. + * config/ns32k/encore.h (ASM_OUTPUT_ASCII): Declare i. -Fri May 8 23:10:18 1992 James Van Artsdalen (james at bigtex.cactus.org) +Wed Nov 10 16:18:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * i386.md (ashldi3,ashrdi3,lshrdi3): Fix typo in output template. + * cp-decl.c (grokvardecl): Undo change of Jan 15 1993 which + tried to implement the "one definition rule". The duplicate_decls + call in pushdecl does implement this; grokvardecl got some bad hits. - * cse.c (cse_insn): Handle SUBREGs in CLOBBERs. +Wed Nov 10 08:44:17 1993 Niklas Hallqvist (niklas@appli.se) -Fri May 8 14:55:17 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-search.c (compute_visibility): Revert Tiemann's patch of + Nov 5. Instead check that privately inherited entities don't + get restricted visibility if the private derivation is a + shallow derivation (i.e. one leading to the most derived + class) and we're actually in the most derived class' scope. - * Makefile.in (PREMADE_ATTRTAB, PREMADE_ATTRTAB_MD): New vars. - (stamp-attrtab): Use them, to use presupplied file if suitable. - * t-mips, t-decstatn, t-decrose (PREMADE_ATTRTAB, PREMADE_ATTRTAB_MD): - Defined. - * mips-at.md, mips-at.c: New files. + * cp-search.c (dfs_pushdecls): Don't be confused by the fact that + overloaded methods from an outer scope almost looks like an + envelope. - * c-common.c (shorten_compare): Extend "always 0" warning - to fencepost case with le or ge. +Wed Nov 10 18:55:22 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * cccp.c (pass_thru_directive): Don't output a newline. - (initialize_builtins): Add explicit newlines in sprintfs. + * fixincludes: Copy files needed for other files at the very end. -Fri May 8 14:49:12 1992 Michael Meissner (meissner@osf.org) + * arm.md (reload patterns for mla instruction): New. - * mips.md (adddi3): Force -32768 into a register, since the - define_insn's won't accept that one value. - (all attributes): Where an attribute is set to the same value in all - alternatives, don't use the alternative notation, since it will make - genattrtab somewhat faster. +Wed Nov 10 18:17:40 1993 Jim Wilson (wilson@cygnus.com) - * rtl.c (read_rtx): Use the current obstack to read in strings, - rather than repeated malloc/realloc's. + * dbxout.c (dbxout_parms): For parms passed via invisible + reference, accept any reg except FP, SP, and AP. -Thu May 7 18:41:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * unroll.c (unroll_loop): Set global_const_equiv_map_size. - * calls.c (expand_call): Never set must_preallocate if no stack args. +Wed Nov 10 17:52:33 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu May 7 16:52:56 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * combine.c (subst_prev_insn): New variable. + (try_combine): Set it. + (get_last_value): Use subst_prev_insn if set instead of + looking for the first insn before SUBST_LOW_CUID. - * pa1*: New names for pa1.1*. - * configure: Corresponding changes. + * integrate.c (global_const_equiv_map_size): New variable. + (expand_inline_function): Set it. + (expand_inline_function, copy_rtx_and_substitute, try_constants): + Never access const_equiv_map without checking for out-of-range. + (mark_stores): Likewise. - * m68k.md (u?mulsidi3): Don't permit immediates for operand 2. - (u?mulsidi3 recognizers): Split into immediate/nonimmediate cases. - * m68k.md ({zero,sign}_extend recognizers): Remove `n' from constraint - if predicate doesn't permit constants. + * alpha.md (smaxdi3): Was incorrectly called maxdi3. -Thu May 7 15:42:32 1992 Michael Collison (collison at osf.org) + * rs6000.h (LINK_SPEC): Don't pass -btextro if -r. - * i386rose.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): Fix these to - avoid printing NaNs, and infinity. - (SUBTARGET_SWITCHES): Add OSF dependent switches for half-pic - support. - (MASK_HALF_PIC, TARGET_HALF_PIC): Likewise. - (CC1_SPEC): Map pic-none, pic-lib, pic-extern and pic-calls - to appropriate half-pic compiler switches. - (LINK_SPEC): If not -noshrlib or -pic-none, pass -warn_nopic. - Allow user to pass -noshrlib directly. - (OPTIMIZATION_OPTIONS): Customize levels for OSF. - (CONSTANT_ADDRESS_P: Add check to determine if we have a - half-pic constant. - (ENCODE_SECTION_INFO): Check to see if we have a half-pic - declaration. - (ASM_DECLARE_OBJECT_NAME): Output the label (definition) for a - object and check to see if it is half-pic. - (ASM_DECLARE_FUNCTION_NAME): Likewise but for functions. + * alpha/osf12.h: New file. + * configure (alpha-dec-osf1.2): New case, to use new file. -Thu May 7 15:56:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rs6000.md (sqrtdf2): Fix typo in extra condition. + (plus/eq pattern): Fix typo: "addze" was "adddze". - * reload.c (find_reloads): Remover unterm comment from recent changes. +Wed Nov 10 12:32:56 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * genattrtab.c (compute_alternative_mask): Usually bypass atoi. + * expmed.c (expand_divmod): If rem_flag, always force op0 to a + register. -Thu May 7 15:56:51 1992 Tom Wood (wood@dg-rtp.dg.com) + * expr.c (expand_expr): Use a smaller alignment when reading from + a field with a variable offset. - * genattrtab.c (fill_attr): Do nothing for constant attribute. - (check_attr_test): Set unchanging flag for constant attribute. - (write_test_expr): Expand constant attributes here. +Wed Nov 10 01:28:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu May 7 06:01:46 1992 Michael Meissner (meissner@osf.org) + * expr.c (expand_assignment): Use a smaller alignment when storing + into a field with a variable offset. - * decrose.h (CPP_SPEC): Fix typo in last change. + * fixincludes (math.h): Delete inline definitions for sqr. -Wed May 6 17:39:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Nov 9 15:33:45 1993 Jason Merrill (jason@deneb.cygnus.com) - * convex.h (HAVE_STRERROR, vfprintf, WTERMSIG, WEXITSTATUS): Deleted. + * cp-method.c (hack_identifier): Undo rfg's earlier patch. - * dbxout.c (dbxout_type): Don't repeat a cross-reference - merely because full is nonzero. +Tue Nov 9 19:30:02 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * calls.c (expand_call): - Avoid rounding error testing copy_to_evaluate_size. + * reload1.c (reload) [SMALL_REGISTER_CLASSES]: Try, at least, + to avoid 2-groups whose second register is explicitly used. - * xm-mipsbsdn.h: Renamed from xm-mipsbsdnews.h. - * xm-sun386.h: Renamed from xm-xm-i386sun.h. - * configure: Corresponding changes. +Tue Nov 9 19:08:47 1993 Jim Wilson (wilson@cygnus.com) -Wed May 6 23:11:55 1992 John F Carr (jfc at Achates.mit.edu) + * mips.md (adddi3): Use DImode not SImode in force_reg call. - * cse.c (simplify_binary_operation): Support MIN and MAX for - SImode and narrower integers. + * mips.c (PIC_OFFSET_TABLE_MASK): New macro. + (function_epilogue): When -mabicalls, ignore + PIC_OFFSET_TABLE_REGNUM when calculating load_only_r31. -Wed May 6 17:25:37 1992 Michael Meissner (meissner@osf.org) + * loop.c (strength_reduce): Accept VOIDmode initial values. - * mips.h (MIPS_VERSION): Bump Meissner version # to 18. - (mips_cpu_attr): New define, which is the mips_cpu variable recast - to the attr_cpu enumeration for mips.md. - (HALF_PIC_NUMBER_PTRS, HALF_PIC_NUMBER_REFS): Add dummy - definitions if halfpic.h is not included. +Tue Nov 9 09:23:31 1993 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) - * mips.c (function_epilogue): Print half-pic stats if -mstats and - the stats are non-zero. + * pa.md (negscc): Add mode for NEG. - * mips.md (cpu attribute): Just use symbol_ref "mips_cpu_attr" - instead of a four way if statement. - (movsi_internal, movhi, movqi): Use 'z' constraint for fpsw, not 's'. +Tue Nov 9 12:51:54 1993 John Hassey (hassey@dg-rtp.dg.com) - * halfpic.h (half_pic_number_ptrs): Add counter for the number of - pointers generated. - (half_pic_number_refs): Add counter for the number of references. + * m88k.md ("cmpsf" & "cmpdf"): Undo inadvertent change included + with CCEVENmode change. - * halfpic.c (half_pic_number_ptrs): Add counter for the number of - pointers generated. - (half_pic_number_refs): Add counter for the number of references. - (half_pic_ptrs): Update new counters. +Tue Nov 9 01:31:58 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * decstatn.h (CPP_SPEC): Define __LANGUAGE_x__ and __LANGUAGE_x - where x is C_PLUS_PLUS, OBJECTIVE_C, C, or ASSEMBLY. Fix - undef'ing LANGUAGE_C for .S files. - (HALF_PIC_PREFIX): Define as '$Lp.'. + * fixincludes (loop on $required): When a file is copied + because another file needs it, scan it for what files it needs. - * decstatn.h (CPP_SPEC): Define __LANGUAGE_x__ and __LANGUAGE_x - where x is C_PLUS_PLUS, OBJECTIVE_C, C, or ASSEMBLY. + * fix-header.c (write_rbrac): When adding proto for memmove, + put it inside #ifndef memmove. - * mips-tfile.c (toplevel): Don't define anything in the standard - headers, such as open, etc. - (add_procedure): Delete unused variable orig_fdb. +Mon Nov 8 16:50:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips-tdump.c (toplevel): Don't define anything in the standard - headers, such as open, etc. + * sdbout.c (sdbout_init) [RMS_QUICK_HACK_1]: Call sdbout_symbol + for __vtbl_ptr_type. - * collect2.c (main): Don't pass -f switches to GCC when - building the constructor table. - (write_c_file): Put extern in front of all external declarations. - (scan_prog_file, COFF varient): On ECOFF systems, check whether - the header pointer is non-NULL before using it. + * cp-decl.c (init_decl_processing): Undo previous change. - * cp-lex.c (store_pending_inline): Cast obstack_copy arg to char *. - (copy_lang_decl): Cast bcopy args to char *. + * c-typeck.c (build_binary_op): Warn for ordered compare of ptr with 0 + only if pedantic in both cases. -Wed May 6 13:28:58 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Mon Nov 8 18:25:06 1993 David Edelsohn (edelsohn@npac.syr.edu) - * i960.h, i960.c (hard_regno_mode_ok): Use unsigned int not short. + * rs6000.h (ASM_FILE_START): Emit filename directive. - * Makefile.in (USER_H): Add va-i960.h. +Sun Nov 7 00:24:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed May 6 07:31:54 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Makefile.in (mostlyclean): Delete fixhdr.ready here. + (clean): Not here. - * explow.c (emit_stack_{save,restore}): New functions. - * expr.h: Declare them and enum save_level. - * calls.c (expand_call): Call emit_stack_save. - * expr.c (expand_builtin, case BUILT_IN_ALLOCA): Likewise. - * function.c (delete_handlers): Make test for insn that sets - a slot more general. - (expand_function_end): Call emit_stack_{save,restore}. - * stmt.c (declare_nonlocal_label): Call emit_stack_save. - (expand_goto_internal): Likewise. - (expand_goto): Likewise. - Copy slots so they don't get instantiated incorrectly; also - update use of virtual regs and frame pointer. - (expand_end_bindings): Call emit_stack_restore. - (expand_decl): Call emit_stack_save. - Set current_function_calls_alloca when allocating variable-sized - objects. - * rs6000.md ({save,restore}_stack_{block,function,nonlocal}): New. + * scan-decls.c (scan_decls): After seeing an extern variable + declaration, goto new_statement to read a new token, rather + than going to handle_statement (which uses the current token). -Tue May 5 13:17:29 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Sat Nov 6 19:40:22 1993 Pat Rankin (rankin@eql.caltech.edu) - * configure (a29k-*-*, i960-*-*): New default configurations. + * config/vax/vms.h (__MAIN_NAME): Define as " main(" rather + rather than " main (" to reflect current cc1plus. - * i960.c, i960.h, i960.md, xm-i960.h, va-i960.h: New files. + * config/vax/vms.h: Add __GNUC_MINOR__=5 to CPP_PREDEFINES. - * gstdarg.h, gvarargs.h: Include va-i960.h for i960. +Sat Nov 6 22:54:25 1993 Tor Egge (tegge@pvv.unit.no) - * calls.c (expand_call): Call REG_PARM_STACK_SPACE once and save - result. Add code to Use new macros MAYBE_REG_PARM_STACK_SPACE and - FINAL_REG_PARM_STACK_SPACE. - (store_one_arg): New parameter reg_parm_stack_space. - * function.c (assign_parms): Use MAYBE_REG_PARM_STACK_SPACE. + * m88k.c (partial_ccmode_register_operand, even_relop) + (odd_relop): New functions, for support of CCEVENmode. + (print_operand, new case '!'): Revert following condition. + * m88k.h (EXTRA_CC_MODES, EXTRA_CC_NAMES, SELECT_CC_MODE): + New macros to define CCEVENmode. + * m88k.md: Handle CCEVENmode as a new mode. Logical operations + on CCmode registers now results in CCEVENmode. + Add patterns for jumps and ext's for CCEVENmode. + (cmpsf, cmpdf): Use reg 65 and clobber reg 64. - * cse.c (NONZERO_BASE_PLUS_P): Don't consider arg pointer by itself - to be non-zero, because it isn't on the i960. +Sat Nov 6 17:07:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dbxout.c (dbxout_symbol): Use decl_function_context not - TREE_PERMANENT to identify function local statics. + * cp-decl.c (init_decl_processing) [RMS_QUICK_HACK_1]: + If sdb output, call sdbout_symbol for vtable_entry_type. + * config/m88k/dgux.h (RMS_QUICK_HACK_1): Defined. - * integrate.c (copy_rtx_and_substitute): Also remap SYMBOL_REFs - that point to LABEL_REFs in the constant pool. +Sat Nov 6 12:32:31 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * expr.c (expand_expr, PLUS case): Canonicalize MULT - when associating a constant. + * unroll.c (unroll_loop): Don't unroll loop if jump has combined + the original loop start label with another label. -Tue May 5 12:56:29 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) +Sat Nov 6 05:01:31 1993 Chris Smith (csmith@convex.com) - * pa.c (singlemove_string): Make it global. - * pa.md: Add high:DI and lo_sum:DI patterns. + * convex.md (untyped_call, blockage): Add new patterns. -Tue May 5 12:04:56 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Nov 6 03:11:46 1993 Noah Friedman (friedman@gnu.ai.mit.edu) - * c-typeck.c (build_array_ref): Require int index *after* promotion. + * just-fixinc: Rename fixed native limits.h to syslimits.h (or + install gsyslimits.h) before renaming gcc's limits.h from tmpfoo + directory. - * convex.h (REG_OK_FOR_{BASE,INDEX}_P): Virtual regs that will - turn into stack_pointer_rtx are not valid for indexing. +Sat Nov 6 00:07:41 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * config.sub: NeXT is BSD, not SysV. + * expr.c (emit_move_insn_1): Push the components of a complex + in proper order: imag part has higher address. - * att386.h (ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): - Undef before defining. +Fri Nov 5 16:23:51 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * dbxout.c (dbxout_parms): Handle invisible reference parms. + * mips.c (mips_abicalls): Change type to enum mips_abicalls_type. + (override_options): Use MIPS_ABICALLS_{NO,YES} instead of + ABICALLS_{NO,YES}. + * mips.h (enum mips_abicalls_type): New type. + (mips_abicalls_attr): New define. + (mips_abicalls): Change type to enum mips_abicalls_type. + * mips.md (abicalls): Use mips_abicalls_attr not mips_abicalls. -Tue May 5 22:48:54 1992 Niklas Hallqvist (niklas@appli.se) +Fri Nov 5 20:34:19 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (test-protoize-simple): - Change tmp-protoize* to tmp-proto*. - (mostlyclean): Remove that temporary file. + * fixproto (stdio.h): Don't add protos for vprintf, vfprintf, vsprintf. -Tue May 5 09:35:30 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Nov 5 20:32:53 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * i386.c (print_operand): Handle VOIDmode CONST_DOUBLE correctly. + * config/pa/pa.md (decrement_and_branch_until_zero): + Add missing `return'. - * reload.c (find_reloads): Recompute `code' before preferred_class. +Fri Nov 5 16:08:34 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon May 4 00:23:29 1992 Ron Guilmette (rfg at ncd.com) + * listing: Handle i386-linux like m68020. + Pass compilation options thru an awk variable, not as ordinary args. - * svr3.h (ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): - Added definitions appropriate for most svr3 systems. + * cccp.c (safe_read, safe_write): Handle EINTR. + (output_line_command): Handle NO_IMPLICIT_EXTERN_C here. + (main): Not here. - * protoize.c (volatile): Define to nothing if !defined(__STDC__). - (setjmp, longjmp): Declared external if not defined as pp-macro. - (include_defaults): Fix type of `fname' field. - (compiler_file_name): Fixed type. - (savestring): Fixed type of `size' parameter. - (savestring2): New function. - (string_list_cons): Removed trailing blanks from parm declaration. - (find_file): Moved comments out of formal parm declarations area. - (munge_compile_params): Fixed type of `temp_parms'. - (gen_aux_info_file): Construct new filename using `savestring2'. - (find_extern_def): Suppress annoying warnings about missing - definitions for extern functions. - (edit_fn_declaration): Declare `clean_text_p' as `volatile' not as - `VOLATILE'. - (scan_for_missed_items): Make text of warning more obvious. - (edit_file): Make text of warning shorter. + * protoize.c (safe_read, safe_write): Handle EINTR. + (safe_write): Return right away after safe_write. - * libgcc2.c (__builtin_new): Changed arg type to `size_t'. Moved - nested declaration of malloc out to file-scope. - (__builtin_vec_new): Prototype preceeding function declarations. - (__builtin_vec_new, __builtin_vec_delete): Changed types of non-pointer - arguments and local variables to `size_t'. - (__clear_cache): Use type `void *' variables to store addresses. - (__do_global_dtors): Use unsigned type for counters. - (__main): Add explicit type to declaration of `initialized'. +Fri Nov 5 11:40:59 1993 Jeff Law (law@snake.cs.utah.edu) -Mon May 4 16:16:56 1992 Tom Wood (wood at dg-rtp.dg.com) + * pa-ghpux.h (NO_IMPLICIT_EXTERN_C): Define. + * pa-hpux.h (NO_IMPLICIT_EXTERN_C): Define. - * dwarfout.c (dwarfout_file_scope_decl): Ignore a global register - variable. +Fri Nov 5 09:45:20 1993 Kresten Krab Thorup (krab@viking) -Mon May 4 08:28:18 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) + * objc/archive.c (objc_read_string): Allocate string properly. + * objc/hash.h (compare_strings): Check for null pointers. - * pa-ghpux.h, pa-hpux.h: #define HAVE_ATEXIT. +Fri Nov 5 11:29:26 1993 David Edelsohn (edelsohn@npac.syr.edu) - * genextract.c (print_path, main): Make the generated code use - `pat', not `insn', except for fatal_insn_not_found. Remove - insn_code variable from generated code, and switch directly on - INSN_CODE (insn). + * rs6000.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Use + REAL_ARITHMETIC macros including hex for special values. - * hppa*: Rename to be unique in first 8 characters. - * configure: Corresponding changes. +Fri Nov 5 10:26:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon May 4 00:20:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-call.c (build_method_call): For unions, don't use get_binfo and + convert_pointer_to_real, since unions can't be involved in complex MI + situations. (Fixes union ctor crash, and completes Sep 27 fix.) - * reload.c (find_reloads): Compute preferred_class after - calling find_reloads_toplev or equivalent. +Fri Nov 5 07:39:00 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * vax.h (PRINT_OPERAND): Add codes M, h, b. + * cp-search.c (compute_visibility): Don't lose access to public + members from base classes of base classes. - * ns32k.h (PREFERRED_RELOAD_CLASS): Change GEN_AND_MEM_REGS - to GENERAL_REGS. + * cp-search.c (get_base_distance): Initialize BASETYPE_PATH before + using. Also, initialize RVAL from get_base_distance_recursive. - * config.sub: Recognize we32 and 3b*. +Fri Nov 5 05:48:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * varasm.c (readonly_data_section): Move after data_section. + * config/i860/paragon.h (SIZE_TYPE): #undef it. - * Makefile.in (print-rtl.o): Compile also for host machine. - (genattrtab): Link in host's print-rtl.o. + * config/m88k/dgux.h (LIB_SPEC): Handle -msvr4. + (GPLUSPLUS_INCLUDE_DIR): Definition and #undef deleted. - * i386v4.h (ASM_OUTPUT_ALIGNED_LOCAL): Deleted. Dfn in svr4.h is good. + * cccp.c (main): Handle NO_IMPLICIT_EXTERN_C. -Sun May 3 21:39:22 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Nov 5 03:11:05 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * i386.h (RTX_COSTS): Add missing break. + * config/m68k/m68k.h (RTX_COST): Return actual costs for + multiplication, not costs for theoretical special cases that are + not handled in the md. -Sun May 3 19:40:50 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Fri Nov 5 00:42:09 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - From law: - * sparc.md (fp unit attributes): Change result ready delays to - match how the FP unit really works. + * emit-rtl.c (gen_highpart): If arg is function value hard reg, + return a subreg of it (as in gen_lowpart_common). - * sched.c (schedule_block): Don't move USE at the end of any block. + * integrate.c (expand_inline_function): Handle CONCAT as rtl for parm. + (copy_rtx_and_substitute): For subreg, handle case where the reg + inside turns into a CONCAT. - From rfg: - * sparc.c (handle_pragma_token): Added new function (based on original - `handle_pragma_token' in i386.c). - * sparcv4.h (INIT_SECTION_PREAMBLE): Definition added. - (PUSHSECTION_FORMAT): Added leading tab. - (HANDLE_PRAGMA): Added definition to handle #pragma weak (based on - original definition in i386v4.h). + * configure: Treat hppa1.[01]-hpux8.0[01] like hppa1.[01]-hpux8.02. - From jfc: - * sched.c (insn_costs): New variable. - (insn_cost): Save cost of insn in insn_costs to avoid recomputation. - (sched_analyze_2): Handle UNSPEC_VOLATILE. - (schedule_insns): Init insn_costs. + * fixproto: Don't scan sub-directories whose names end in CC + or contain ++ - these are probably C++ directories. - * sparc.c (output_move_double): Correctly check for constant - DFmode addresses. Assume that DFmode addresses with MEM_IN_STRUCT_P - set are always aligned. +Thu Nov 4 12:02:04 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Sun May 3 16:52:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * integrate.c (expand_inline_function): Don't call + push_temp_slots, free_temp_slots, and pop_temp_slots when handling + parameters, because they might end up in a temp slot. - * gcc.c (PATH_SEPARATOR): New macro. From Alex Zatsman. - (process_command): Use it when scanning a path. +Thu Nov 4 15:00:38 1993 Samuel Figueroa (figueroa@cs.nyu.edu) - * expr.c (expand_builtin): Cast icode to int for indexing. + * i386/os2.h, i386/xm-os2.h: New files. - * xm-i386dos.h: New file. - * configure.bat: Use that file. - * gcc.c (EXECUTABLE_SUFFIX): Remove special default for MSDOS. - (putenv): Remove conditionals for MSDOS, since HAVE_PUTENV now defined. +Thu Nov 4 14:36:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-typeck.c (build_array_ref): Promote after -Wchar-subscripts test. + * c-decl.c (finish_enum): Undo previous change. - * c-decl.c (builtin_function): If traditional and name is user-visible, - set DECL_BUILT_IN_NONANSI. +Thu Nov 4 13:30:16 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cccp.c (PATH_SEPARATOR): Add default definition. - (main): Use that. + * loop.c (strength_reduce): Ignore initial value if it is the + wrong mode. + (record_initial): Don't ignore any set of the register. -Sun May 3 08:17:02 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * rs6000.md (movdf): Don't have reload choose alternative of + loading a constant into a GPR. - * pyr.h (FRAME_POINTER_REGNUM): Work around pyr cpp bug. + * reload.c (find_reloads, case 'o'): A pseudo is not always + an offsettable memref. + (find_reloads): If we reload a constant into a register via + memory, count it as two reloads. - * xm-hppa.h (NO_SYS_SIGLIST): Define. + * function.c (expand_function_start): If not optimizing, ensure + we mark context display regs as live for the entire function. -Sat May 2 15:03:08 1992 James Van Artsdalen (james at bigtex.cactus.org) +Thu Nov 4 02:24:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * callc.c (emit_call_1): Restore inhibit_defer_pop after popping args. + * tree.h (DECL_IN_TEXT_SECTION): New macro. + * varasm.c (assemble_variable): Set DECL_IN_TEXT_SECTION. + * dbxout.c (dbxout_symbol_location): Test DECL_IN_TEXT_SECTION. -Thu Apr 30 20:00:00 1992 DJ Delorie (dj@ctron.com) +Wed Nov 3 23:59:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * configure.bat: Complete rewrite to use Makefile.in. - * Makefile.dos: File deleted. + * c-typeck.c (build_function_call): Initialize fundecl to 0. -Thu Apr 30 23:38:00 1992 Per Bothner (bothner@rtl.cygnus.com) +Wed Nov 3 16:34:01 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * xcoffout.h (DBX_FINISH_SYMBOL): Use DECL_ASSEMBLER_NAME - instead of DECL_NAME when writing out a global symbol. - (Makes a big difference for C++ static class members.) + * pa.h (REGISTER_MOVE_COST): Decrease cost for move from + SHIFT_REGS to avoid regclass overflow. -Thu Apr 30 23:13:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Nov 3 15:35:44 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fold-const.c (fold, comparisons): Don't call omit_one_operand in - a case where the operand isn't really being omitted. + * config/m68k/m68k.c (output_move_double): Fix up the test for overlap + of source address with operands[0]. - * combine.c (distribute_notes, case REG_DEAD): Don't write a USE for - a partially-dead register if we already wrote one. + * regclass.c (regclass): Consider commutativity even when + one arg is a constant. -Thu Apr 30 21:51:29 1992 Tom Wood (wood at dg-rtp.dg.com) +Wed Nov 3 12:06:23 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * Makefile.in (enquire.o, install-common-headers): Make these work - when $(srcdir) is . + * expmed.c (expand_divmod): Use target as copy_to_suggested_reg + argument only if it has the same mode as op0. - * c-decl.c (init_decl_processing): Use void_ftype_any as the type - for _exit, exit and abort. +Wed Nov 3 04:58:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Apr 29 21:42:30 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * protoize.c (safe_write, safe_read): Really use arg DESC. - * genattrtab.c (insn_name_ptr): Define so we could link with - debug_rtx. + * libgcc2.c (exit): Fix declaration of _exit. - * genattrtab.c (check_attr_test, simplify_test_exp): Copy expression - before setting as unchanging. - (make_canonical): Set result as unchanging after calling - convert_const_symbol_ref. - (evaluate_eq_attr): When returning original expression, set it - as unchanging. + * c-common.c (check_format_info): Make warning nicer for mismatch + of int vs long, etc. + Don't warn if field width is an unsigned int. -Wed Apr 29 13:30:33 1992 Michael Meissner (meissner@osf.org) + * c-decl.c (finish_enum): Always make an enum signed if it will fit. - * halfpic.c (half_pic_ptr): Allocate space for the NULL byte. +Wed Nov 3 14:23:52 1993 Torbjorn Granlund (tege@adder.cygnus.com) -Wed Apr 29 06:28:35 1992 Ron Guilmette (rfg at ncd.com) + * cse.c (cse_insn): Call `invalidate' also for STRICT_LOW_PART and + ZERO_EXTRACT (three places). + (invalidate_from_clobbers): Likewise (two places). + (cse_around_loop): Likewise. + (invalidate_skipped_set): Likewise. + (cse_set_around_loop): Likewise. - * dwarfout.c (src_coords_attribute): Don't #ifdef code based on - DWARF_DECL_COORDINATES. - (name_and_src_coords_attributes): Do #ifdef calls to `lookup_filename' - and `src_coords_attribute' based on DWARF_DECL_COORDINATES. Also, - pop out of .debug section temporarily while calling `lookup_filename'. +Wed Nov 3 03:56:55 1993 Paul Eggert (eggert@twinsun.com) -Wed Apr 29 02:01:03 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) + * dbxout.c (dbxout_type): Print `-2' instead of `0037777777776' + for an enumeration constant whose value is -2; + otherwise, GDB 4.11 rejects the type. - * Complete another Cygnus <--> FSF merge. +Wed Nov 3 04:35:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Tue Apr 28 19:24:52 1992 Mike Stump (mrs at rtl.cygnus.com) + * Makefile.in (fix-header, gen-protos): Link with HOST_LIBS. + Depend on HOST_LIBDEPS. - * cp-init.c (do_friend): Handle overloaded and extern "C" - friends correctly. +Wed Nov 3 00:07:18 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - Mon Apr 27 21:04:40 1992 Mike Stump (mrs at rtl.cygnus.com) + * fixproto: When checking for uses of _flsbuf, make sure to + not match (say) __flsbuf or other non-word _flsbuf strings. + * fixproto: Be more robust when checking for files indirectly + needed (via #include directives). E.g. handle "../foo/bar.h" + properly, and silently ignore missing include files. - * cp-search.c (build_vbase_vtables_init): Don't set - flag_this_is_variable to -2 when not doing a ctor. +Tue Nov 2 17:37:39 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (build_vbase_path): Don't unconditionally set - code to be a PLUS_EXPR. + * gcc.c (do_spec_1): Use spec_version for %v, not version_string. + Distinguish %v1 and %v2. + (default_compilers): For __GNUC_MINOR__, use %v2. + For __GNUC__ and __GNUG__, use %v1. - Mon Apr 27 14:14:08 1992 Mike Stump (mrs at rtl.cygnus.com) + * protoize.c (safe_read): New function. + (process_aux_info_file, edit_file): Use safe_read. - * cp-decl.c (grokdeclarator): Allow contructors to be friends. - Cannot find anything prohibiting it. + * cccp.c (safe_read): New function. + (main, finclude, check_precompiled): Use safe_read. - Mon Apr 27 13:26:20 1992 Mike Stump (mrs at rtl.cygnus.com) +Tue Nov 2 14:31:42 1993 Ian Lance Taylor (ian@cygnus.com) - * cp-init.c (do_friend): bullet proof handling of friends, - fixes problem introduced on Apr 26 18:24:35. + * fixincludes: Don't remove /**/ from X11/Xlibint.h or + X11/extensions/multibufst.h; unnecessary. - Sun Apr 26 23:18:24 1992 Mike Stump (mrs at rtl.cygnus.com) +Tue Nov 2 07:20:12 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-call.c (ideal_candidate): Allow one to overload static - member functions without dumping core. + * optabs.c (init_optabs): Function `ffs' takes `int', not mode that + is BITS_PER_WORD wide. - Sun Apr 26 18:44:57 1992 Jim Wilson (wilson@sphagnum.cygnus.com) +Tue Nov 2 02:53:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-tree.c (break_out_calls): Call build1 instead of build for - trees with only one operand to avoid abort in build. + * cp-typeck.c (comptypes): Fix typo in changing STRICT from 2 to 1. - Sun Apr 26 18:24:35 1992 Mike Stump (mrs at rtl.cygnus.com) + * protoize.c (edit_file): Use safe_write. + (safe_write): New subroutine. - * cp-init.c (do_friend): Allow extern "C" functions to be - friends. + * calls.c (expand_call): Discard __ prefix like _ or __x. - Sat Apr 25 02:57:07 1992 Mike Stump (mrs at rtl.cygnus.com) + * objc/objects.c: Include tconfig.h. - * cp-*.[chy]: Fix all pedantic warnings to be pedwarn. +Mon Nov 1 23:34:46 1993 Rainer Orth (ro@anemone.techfak.uni-bielefeld.de) - Sat Apr 25 01:46:50 1992 Mike Stump (mrs at rtl.cygnus.com) + * fixincludes (sys/stat.h) fix fchmod prototype, first arg is + int, not char * [AIX 3.2.4] + (rpc/svc.h): avoid nested comments [Ultrix 4.3] + (stdio.h, stdlib.h): fixed getopt prototypes to match POSIX.2 + [DEC Alpha OSF/1 1.3] - * cp-tree.c (break_out_calls): Handle NULL_TREE properly. +Mon Nov 1 11:42:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - Fri Apr 24 23:49:39 1992 Mike Stump (mrs at rtl.cygnus.com) + * fixincludes: Fix like . - * cp-type2.c (store_init_value): Provide an error message - about bad syntax instead of core dumping. + * fixincludes: Unquote 'f' in #define _IO. Fix elf.h like + elf_abi.h. For Irix 5. - Fri Apr 24 16:46:03 1992 Mike Stump (mrs at rtl.cygnus.com) +Mon Nov 1 15:15:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Fri Apr 24 18:55:45 1992 Chip Salzenberg (chip@tct.com) + * configure (mips-sgi-irix5*): Add fixincludes=Makefile.in. - * cp-parse.y (component_decl): Fix small problem to take us - back down to 14 reduce/reduce errors. + * fixproto (setjmp.h): Don't require siglongjmp and sigsetjmp. + They need sigjmp_buf, and are missing on many systems. - Thu Apr 23 19:48:54 1992 Mike Stump (mrs at rtl.cygnus.com) + * Makefile.in (stmp-fixproto): Print a notice that warnings and errors + from fixproto are normal. + (distdir): Avoid spurious output from gcc.texi version number check. + (diff): New target. - Wed Apr 22 22:47:15 1992 Chip Salzenberg (chip@tct.com) +Mon Nov 1 15:19:09 1993 Ian Lance Taylor (ian@cygnus.com) - * cp-type2.c (readonly_warning_or_error): Eliminate arbitrary - limit of 80 characters per warning message. + * fixincludes: Don't remove /**/ from X11/xmd.h; breaks gcc + -traditional on some systems. - Thu Apr 23 04:14:59 1992 Mike Stump (mrs at rtl.cygnus.com) +Mon Nov 1 07:38:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu - * cp-decl.c (grokdeclarator): Handle const and volatile - member functions properly. + * rs6000.md: Add set_attr for "length" when we are going to split + an insn at output time. -Tue Apr 28 22:05:05 1992 Niklas Hallqvist (niklas@appli.se) + * rs6000.md (bdn/bdz): Fix typo in checking for when we + need to split. - * tower-as.h (svr3 support): Generic svr3.h included. - (SELECT_RTX_SECTION): m68k.h's version #undef'd in favour of svr3.h's. - (CPP_PREDEFINES): Overriding svr3.h version. - (STARTFILE_SPEC): Added crtbegin.o. - (ASM_OUTPUT_SOURCE_FILENAME): Added ugly section directives to get - rid of NCR assembler bug. - (ASM_OUTPUT_IDENT): #undef'd svr3.h version. - (NO_{DOLLAR,DOT}_IN_LABEL): Defined. - (ASM_LONG): Defined. - ({INIT,FINI,CONST}_SECTION_ASM_OP): Overrides svr3.h versions. - (CTOR_LIST_{BEGIN,END}): New macros. - (BSS_SECTION_ASM_OP): New macro. - (ASM_OUTPUT_CONSTRUCTOR): New macro. - (ASM_OUTPUT_LABELREF): Redefined svr3.h version. + * rs6000.md (mulsi3): Make alternatives be "mq" and "no_mq" + instead of "power" and "powerpc". Only allow one pattern (either + with or without the clobber of MQ) to match. - * tower.h (LIB_SPEC): Added -shlib support plus crtend.o. + * stmt.c (expand_decl_init): If CONST_DECL, don't generate any + code, but call expand_expr if DECL_INITIAL is a constant. - * configure (m68k-ncr-sysv): Defined xmake_file and tmake_file. +Mon Nov 1 06:17:16 1993 Torbjorn Granlund (tege@adder.cygnus.com) -Tue Apr 28 21:27:10 1992 Michael Meissner (meissner@osf.org) + * m68k.md (divhisi3, udivhisi3, modhisi3, umodhi3): Comment out. + (divhisi3, udivhisi3, modhisi3, umodhi3 recognizers): Comment out. - * mips.md (floatsidf2, floatsisf2): Fix typo in last change. + * expmed.c (synth_mult): When factoring T, break from loop after + first factor. + (expand_mult): Increase max cost to 12 again. -Tue Apr 28 18:21:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Nov 1 01:06:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * objc-actions.c: Include obstack.h, etc. - (util_obstack, util_firstobj): New obstack, and 1st object in it. - (init_objc): Init those two. - (encode_*): Rewrite to use util_obstack, Callers changed. - (handle_class_ref, handle_impent): New subroutines, broken out - from finish_objc so each can use alloca (instead of utlbuf). - (utlbuf): Variable deleted. + * cccp.c (safe_write): New function. + (write_output): Use safe_write. - * c-decl.c (init_decl_processing): Treat abort and exit as ANSI. - -traditional no longer affects ANSI builtins; use -fno-builtin. +Mon Nov 1 01:06:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * configure: Insert assignment of INSTALL where old one was. + * Version 2.5.2 released. -Tue Apr 28 17:14:57 1992 John F Carr (jfc at Achates.mit.edu) + * cccp.c (do_ident): Fix previous change. - * vax.md (cmpdf, cmpsf): Use tstf/tstd if second argument is zero. - (movsi, movhi, movqi): Patterns changed to reflect different - space/time tradeoffs for modern VAXes. - (movstricthi, movstrictqi): New patterns. - (extv, extzv): Use rotl/bicl sequence when possible. +Sun Oct 31 14:41:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Apr 28 10:00:25 1992 Michael Meissner (meissner@osf.org) + * Version 2.5.1 released. - * mips-tfile.c (read_line): Make read_line act like the assembler, - and use ';' to separate multiple logical lines. + * cccp.c (do_ident): Substitute macros and output here. + (directive_table): Turn off the pass_thru field for #ident. - * mips.h (MIPS_VERSION): Set Meissner version # to 17. - (MASK_DEBUG_C): Swap meaning of -mdebugc. - (ADDITIONAL_REGISTER_NAMES): Use 'cc' for the floating point status - register, so user asm's can clobber it. Allow $fp for the frame - pointer in addition to fp and $30, and also $sp for the stack - pointer in addition to sp and $29. + * c-common.c (shorten_compare): Undo previous change. + Instead, just suppress warnings if both args are constant. - * mips.c (gen_int_relational): Emit faster sequence for NE. - (mips_asm_file_start): Don't call data_section for gcc2_compiled. + * config/m68k/m68k.md (extzv, and its recognizer): + If width is 32, don't set CC_NOT_NEGATIVE. + If width is variable, clear the CC status. - * mips.md (branch define_delay): Specify all of the preconditions - correctly for branch likely (mips2) support. - (floatsidf2): Update dslots_load_total. Support getting the - integer value from memory as well as from an integer register. - Fix the length attribute. - (floatsisf2): Ditto. - (All set from condition code patterns): Swap meaning of -mdebugc, - so that if used, it means support all of the set condition code - patterns as if the machine can do them equally well. If not - -mdebugc, call gen_int_relational to generate an appropriate set - of INSNs. + * config/m68k/m68k.c (output_move_double): Extend the special case + for *--sp = sp[N] to handle 12 bytes as well as 8 bytes. - * decrose.h (ASM_IDENTIFY_GCC): Define as null on OSF/1. - * encrose.h (ASM_IDENTIFY_GCC): Define as null on OSF/1. - * i386rose.h (ASM_IDENTIFY_GCC): Define as null on OSF/1. +Sun Oct 31 17:02:13 1993 Jason Merrill (jason@deneb.cygnus.com) - * decrose.h (CPP_SPEC): If .S files, add an explicit - -ULANGUAGE_C to mimic the OSF GCC 1.39 behavior. + * cp-init.c (expand_aggr_init_1): When unswitching a COND_EXPR + initializer (i.e. int a = b ? 1 : 0 => int a; b ? a=1 : a=0), + set TREE_SIDE_EFFECTS on the result. -Mon Apr 27 16:44:30 1992 Tom Wood (wood at dg-rtp.dg.com) +Sun Oct 31 13:33:46 1993 Jim Wilson (wilson@cygnus.com) - * dwarf.h (AT_... values): Correct typos present in version 1.0.1 - of the DWARF spec. The values should be unchanged. + * expr.c (do_store_flag): For equality test of a single bit, use + subtarget instead of target in calls. - * dwarfout.c (data_member_location_attribute): Use INTEGER_CST. +Sat Oct 30 17:58:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c (data_member_location_attribute): Use TYPE_MODE. - (bit_offset_attribute): Ditto. + * config/m68k/hpux7.h: New file. + * configure (m68k-hp-hpux7*): New alternative. - * dwarfout.c (name_attribute): Add the tests back. + * c-common.c (shorten_compare): Do nothing if both args constant. - * m88k.h (WEAK_ASM_OP): Override svr4.h. + * config.sub: Re-add hitachi to list of companies not to treat + as OS names. -Mon Apr 27 15:48:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expr.c (convert_move): When extending to multi-word register + via its low word, clobber the whole thing. - * limits.h: Use _LIMITS_H___, not _LIMITS_H_, to protect contents. + * config/i386/i386.c (output_move_double): Extend the special case + for *--sp = sp[N] to handle 12 bytes as well as 8 bytes. -Mon Apr 27 15:15:25 1992 Michael Meissner (meissner@osf.org) +Sat Oct 30 17:21:33 1993 Atsushi Furuta (furuta@sra.co.jp) - * mips.h (MIPS_VERSION): Set Meissner version # to 16. - (delay_type enum): Add DELAY_FCMP for specifing the - c.{eq,lt,le}.{d,s} delay. - (fpsw_register_operand): New declaration. - (gen_int_relational): New declaration. - (pc_or_label_operand): New declaration. - (MASK_DEBUG_C): Use -mdebugc for new relational code. - (REG_CLASS_FROM_LETTER): Use 'z' for fpsw register, not 's' which - is already used. - (EXTRA_CC_MODES): Add CC_REV_FPmode to handle fp comparisons, - which need to be reversed (!=). - (EXTRA_CC_NAMES): Add CC_REV_FP. - (SELECT_CC_MODE): Use SImode for all integer comparisons, - CC_REV_FP for floating point != comparisons. + * pa-ghiux.h, pa-hiux.h, pa1-ghiux.h: New files, for Hitachi H3050/RX. + * pa1-hiux.h, x-pa-hiux, xm-pahiux.h: Likewise. + * config.sub, configure: Add H3050/RX support. - * mips.c (internal_test enum): Move and rename the enumeration - used in gen_conditional to make the comparison RTL codes to - something that can be indexed out to top level. - (fpsw_register_operand): New function to return true if the - operand is the FP status register. - (pc_or_label_operand): New function to return true if the operand - is either a label_ref or the pc for if_then_else tests. - (mips_fill_delay_slot): Add support for DELAY_FCMP, the delay - after a floating point comparison is done and it can be tested. - (map_test_to_internal_test): New function to take a RTL code of a - comparison operator, and return the internal_test enumeration. - (gen_int_relational): New function to generate the appropriate - INSNS for comparing two integers for either branches, or the set - from condition code insns. - (gen_conditional_branch): Rewrite to not use the CISC condition - code register CC0, but instead generate the appropriate INSNs so - that the test can be scheduled independely of the branch. - (override_options): Use 'z' for the fpsw register, not 's'. Only - allow the fp comparison condition codes in the fpsw register. Do - not allow non float or int things in FP registers, even if - -mdebugh. Don't allow ints in the fpsw. +Sat Oct 30 03:40:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips.md (various): Rewrite comparisons and branches so that we - do not use CC0, but instead put the comparison in a pseudo and - generate the appropriate branch instructions directly. This - eliminates calls to the various b macros provided by the - assembler. Change the type of integer comparisons from the - various CCxx modes used to SImode. Make fp != use CC_REV_FPmode. - (mode attribute): Add FPSW mode for floating compare. - (fp_comp): New functional unit for comparing fp values. - (divmodsi4): No longer use -mdebugc to turn off divmodsi4. - (divsi3): Ditto. - (modsi3): Ditto. - (udivmodsi4): No longer use -mdebugc to turn off udivmodsi4. - (udivsi3): Ditto. - (umodsi3): Ditto. + * config/pa/pa.c (output_dbra): Fix argument number in addi at end. - * mips-gn5.h: Rename from mips-gnews5.h for MSDOS. - * mips-n5.h: Rename from mips-news5.h. - * xm-mipsbsdnews.h: Rename from xm-mipsnbsd.h. + * tree.h (enum built_in_function): Added END_BUILTINS to delimit + standard from language-specific builtins. - * configure (mips-sony*): Handle the above changes. + * toplev.c (rest_of_compilation): When an `extern inline' is not + really inline, clear DECL_INITIAL so we don't complain about + a subsequent non-extern definition. + * c-decl.c (finish_function): If rest_of_compilation set DECL_INITIAL + to null, leave it null. - * README-mips (whole file): Remove bogus patches, and update with - some common warnings about the MIPS. + * c-common.c (convert_and_check): Don't warn converting 0xff + to a signed char, etc., unless pedantic. -Mon Apr 27 12:41:21 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * Makefile.in (mainversion): New variable. + (distdir): Use mainversion when verifying gcc.texi has been updated. - * unroll.c (find_splittable_givs): Don't split a giv combined with - a giv that was not reduced. +Sat Oct 30 03:12:54 1993 Torbjorn Granlund (tege@cygnus.com) - * c-parse.y (primary): Clear the TREE_USED flag of a block tree - put in a BIND_EXPR. - * print-tree.c (print_node): Print the block operand of a BIND_EXPR. + * m68k.md (mulsidi3 patterns): Fix typo, LSHIFTRT was ASHIFT. - * flow.c (find_basic_blocks): Assume MEM source in jump insn makes - it an indirect jump. +Fri Oct 29 12:06:09 1993 Ian Lance Taylor (ian@cygnus.com) - * collect2.c (strip_flag, strip_file_name): New variables. - (main): Don't pass -s to the first ld call. Pass it to the second - ld call, or else run strip. + * fixinc.svr4 (sys/stat.h): Don't change definitions into + prototypes if they may already be in prototype form. - * Makefile.in (bootstrap): Only build C compiler for stage1. +Fri Oct 29 16:50:33 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sparc.h (GO_IF_LEGITIMATE_ADDRESS): Rewrite to accept SUBREGs. + * config/i386/linux.h (LIB_SPEC): Use -lieee if -mieee-fp. - * combine.c (force_to_mode): Correctly form mask from BITS. +Fri Oct 29 13:04:16 1993 Arne H. Juul (arnej@fm.unit.no) - * Makefile.in (bootstrap): Fix a typo (\n between b and ootstrap). + * mips/iris5.h (LINK_SPEC): Pass -no_unresolved if -call_shared. -Sun Apr 26 14:14:23 1992 Ron Guilmette (rfg at ncd.com) +Fri Oct 29 12:52:54 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * getattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c, - genextract.c, genflags.c, genoutput.c, genpeep.c, genrecog.c (main): - Move nested extern declaration of `read_rtx' out to file-scope. + * rs6000.md (addsf3, subsf3, mulsf3, divsf3): Put POWERPC first, + then POWER. -Sun Apr 26 21:41:33 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips/iris5.h ({DBX,SDB,MIPS}_DEBUGGING_INFO): Turn off until working. - * Makefile.in (varasm.o): Includes defaults.h. +Fri Oct 29 12:15:12 1993 Minh Tran-Le (tranle@intellicorp.com) -Sun Apr 26 21:15:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * i386/xm-aix.h: Define HAVE_PUTENV for AIX PS/2. - * enquire.c (f_rep, f_define): Handle NO_LONG_DOUBLE_IO. - (f_define): Print defn of union __convert_long_double, just once, - with #ifndef to protect it. - (fake_f_define): New function. +Fri Oct 29 11:49:46 1993 DJ Delorie (dj@ctron.com) -Sat Apr 25 15:04:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * i386/go32.h: Add support for coff-based ctor/dtor handling. - * stmt.c (expand_end_case): Test DI index against range before casesi. - Don't truncate before calling do_tablejump. - Use expand_expr to turn RANGE into rtl. - * expr.c (do_tablejump): Convert to Pmode after testing vs range. +Thu Oct 28 21:33:22 1993 Kresten Krab Thorup (krab@next.com) - * stmt.c (expand_end_case): Delete test default_label != 0; always is. + * objc-act.c (check_methods_accessible): Fix bug in + -Wno-protocol. Reset chain to bottom class for each search. - * configure (i386-ibm-aix): Set install_with_cp. +Thu Oct 28 21:30:38 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Apr 24 21:32:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-parse.in (init): Remove extraneous pop_momentary in error case. - * xm-spcv4.h: Renamrd from xm-sparcv4.h. - * configure: Changed accordingly. +Thu Oct 28 19:01:33 1993 Ron Guilmette (rfg@netcom.com) - * Makefile.in (unprotoize.o): Leave unprotoize.c around. + * cp-method.c (hack_identifier): If an overloaded identifier + can only mean one thing, it can only mean one thing. - * c-common.c (decl_attributes): Change warnings to errors. +Thu Oct 28 18:52:15 1993 John F Carr (jfc@mit.edu) -Fri Apr 24 11:17:53 1992 Ron Guilmette (rfg at ncd.com) + * cp-typeck.c (get_member_function_from_ptrfunc): Convert delta + to size_t before adding to pointer. - * dwarf.h: Added copyleft. - Revised to use enumerators instead of #defines. - Updated to conform to version 1.0.1 of the DWARF spec. - Added implementation-defined fundamental type codes for GCC - mode-specific types. +Thu Oct 28 18:43:41 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * dwarfout.c: Include defaults.h. - (getpwd): Declare as `extern'. - (BITFIELD_OFFSET_BITS, BITFIELD_OFFSET_UNITS, - BITFIELD_OFFSET_WORDS_IN_UNITS): Unnecessary definitions deleted. - (ASM_BYTE_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Delete - leading tabs from definitions. - (PUSHSECTION_FORMAT): Add leading tab to definition. - (*_LABEL): Changed to all start with `.L' to internalize these - symbols for *all* svr4 assmeblers (including sparc). - (ASM_OUTPUT_POP_SECTION): Add leading tab. - (ASM_OUTPUT_DWARF_TAG, ASM_OUTPUT_DWARF_ATTRIBUTE, - ASM_OUTPUT_DWARF_STACK_OP, ASM_OUTPUT_DWARF_FUND_TYPE, - ASM_OUTPUT_DWARF_FMT_BYTE, ASM_OUTPUT_DWARF_TYPE_MODIFIER): Print - DWARF comments only if flag_verbose_asm set. - (ASM_OUTPUT_ASCII): Moved to defaults.h - (tag_name): Renamed `dwarf_tag_name' to avoid possible conflicts. - (dwarf_tag_name): Updated for version 1.0.1 DWARF spec. - (attribute_name): Renamed `dwarf_attr_name' to avert conflicts. - (dwarf_attr_name): Updated for version 1.0.1 DWARF spec. - (stack_op_name): Renamed `dwarf_stack_op_name' to avert conflicts. - (format_byte_name): Renamed `dwarf_fmt_byte_name' to avert conflicts. - (fundamental_type_name): Renamed `dwarf_fund_type_name' to avoid - possible conflicts. - (dwarf_fund_type_name): Added support for implementation-defined - GCC mode specific fundamental types codes (to support new `mode' - attribute). - (data_member_location_attribute): Rewritten to avoid major lossage - primarily for little-endian targets. - (location_or_const_value_attribute): Fixed comments and removed - spurious code. - (name_attribute): Removed test for NULL name (now done in - `name_and_src_coords_attributes'). - (byte_size_attribute): Fixed to get size from DECL_BIT_FIELD_TYPE - for bit-fields. - (bit_offset_attribute): Rewritten to avoid major lossage primarily - for little-endian targets. - (src_coords_attribute): GNU-specific extension added. - (name_and_src_coords_attributes): New function. - (output_entry_point_die, output_formal_parameter_die, - output_global_subroutine_die, output_global_variable_die, - output_inline_subroutine_die, output_label_die, - output_local_variable_die, output_member_die, - output_local_subroutine_die, output_typedef_die): Call - `name_and_src_coords_attributes' rather than `name_attribute' for - all potentially-named declarations. - (output_global_subroutine_die, output_inline_subroutine_die, - output_local_subroutine_die, dwarfout_file_scope_decl): Use - DECL_ASSEMBLER_NAME rather than DECL_NAME when referencing - assembly level names (e.g. in AT_low_pc attributes). - (output_type): Revised to produce DWARF info for C++ member functions - even for classes with no constructors & destructors. + * arm.h (ENCODE_SECTION_INFO): Use DECL_RTL for DECLs. - * flags.h (flag_verbose_asm): Option flag added. - * toplev.c (flag_verbose_asm): Option flag added. +Wed Oct 27 20:58:31 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * defaults.h: New file. - * varasm.c: Include defaults.h. - (ASM_OUTPUT_ASCII): Deleted. + * pa.c (emit_move_sequence): Fix typo, `Pmode' was `mode'. - * c-common.c (decl_attributes): Call `type_for_mode' rather than - `type_for_size'. Also, `break' after a matching mode is found. +Wed Oct 27 00:01:06 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 3b1.h (ASM_OUTPUT_ASCII): Tab before ASCII_DATA_ASM_OP. - * amix.h (ASM_OUTPUT_CASE_END): Tab before SET_ASM_OP. - (ASM_OUTPUT_ASCII) Tab before BYTE_ASM_OP. - * i860b.h (ASM_OUTPUT_ASCII): Tab before ASCII_DATA_ASM_OP. - * i860v3.h (ASM_OUTPUT_ASCII): Tab before BYTE_ASM_OP. - * sparcv4.h (*_ASM_OP): Delete the initial tabs. + * cse.c (cse_insn): When using src_related, copy the rtx. + Likewise for src_eqv_here. - * assert.h: Modified to treat source line numbers as `unsigned'. + * c-typeck.c (output_pending_init_elements): Don't crash if + constructor_unfilled_fields is 0. - * Makefile.in (test-protoize): New target. + * fixincludes (bsd/sys/wait.h): Undo previous change. - * svr4.h (WEAK_ASM_OP): Default svr4 definition added. - (ASM_DECLARE_FUNCTION_SIZE): Use `assemble_name' to output - generated internal label. + * config/m68k/xm-amix.h (abort): Don't use fancy_abort. + (alloca): In GCC 1, define as __builtin_alloca. -Thu Apr 23 11:31:58 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * config/m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL) + (ASM_OUTPUT_INTERNAL_LABEL): #if 0 deleted, to reenable these. + (NO_DOT_IN_LABEL): Defined. + (NO_DOLLAR_IN_LABEL): Undefined. - * optabs.c (emit_libcall_block): Correct code which determines - whether it is safe to emit an insn setting a pseudo before the block. + * function.c (assign_parms): If parmreg is a CONCAT, handle the + case where stack_parm is 0. -Thu Apr 23 18:13:08 1992 James Van Artsdalen (james at bigtex.cactus.org) + * expr.c (do_jump): Use do_jump_by_parts_equality for complex compares. - * i386.md (sleu): Finish Apr 21 change. + * c-typeck.c (build_c_cast): When making union constructor, + copy TREE_CONSTANT from the given value. + (initializer_constant_valid_p): Special handling for "constant" + union constructor. -Thu Apr 23 14:15:05 1992 Michael Meissner (meissner@osf.org) + * bytecode.def: Rename dup to duplicate. + * expr.c (expand_assignment): Use duplicate. + (bc_expand_expr): Likewise. + (bc_expand_constructor): Likewise. - * Makefile.in (enquire.o): Delete enquire.c from the current - directory before moving it in from the source directory, unless - the current directory is the same as the source directory. This - occurs if the user keeps GCC under source control, like RCS. - (install-common-headers): Ditto for byteorder.h. + * print-tree.c (print_node_brief): Use unsigned char to print + the bytes of a real constant. -Thu Apr 23 12:39:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expmed.c (store_bit_field): When calling operand_subword_force, + if VALUE has a non-void mode, pass that mode. - * amix.h (ASM_OUTPUT_CASE_END): Add missing \. + * config/m68k/amix.h (NO_DOLLAR_IN_LABEL): Defined. -Thu Apr 23 07:14:38 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Oct 26 19:05:36 1993 John F Carr (jfc@mit.edu) - * cse.c (simplify_binary_operation, case MINUS): Don't do any - of the simplifications for IEEE floating-point. + * rs6000.c (rs6000_override_options): Support -mcpu=rsc1. -Wed Apr 22 23:20:59 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) +Tue Oct 26 19:01:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Tue Apr 21 02:21:42 1992 Mike Stump (mrs@rtl.cygnus.com) + * Makefile.in (deduced.h): Add -I. and -I$(srcdir). - * cp-method.c (build_overload_value): Handle function names as - constant expressions for template arguments. Also, make double - values work again as template arguments. + * scan-types.sh (CC): Move a " to avoid shell error. - Mon Apr 20 17:08:17 1992 Mike Stump (mrs@rtl.cygnus.com) + * config.sub (paragon): New alias. + * configure (i860-*-osf*): New alternative. + * gstdarg.h, gvarargs.h [__i860__]: Add to little-endian list. + * libgcc2.c (___builtin_saveregs): New alternative for __PARAGON__. + * va-i860.h: Treat __PARAGON__ like __SVR4__. + (va_dcl) [__PARAGON__]: Declare va_alist. + * paragon.h, xm-paragon.h: New files. - * cp-call.c (ideal_candidate): remove incorrect error message about - ``ambiguous request for function from distinct base classes of - type'' when base and parent are switched. +Tue Oct 26 18:58:49 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - Mon Apr 20 14:14:35 1992 Mike Stump (mrs@rtl.cygnus.com) + * fix-header.c: Delete duplicate definition of "buf". + * fix-header.c, gen-protos.c, scan-decls.c, scan.c: Include hconfig.h. + * scan-decls.c: Remove unused #ifdef OLD. - * Makefile.in: Now expect 15 reduce/reduce conflicts, instead of 14. + * Makefile.in (gen-protos.o, scan.o, fix-header.o, scan-decls.o): + Add rule to compile using $(HOST_CC). + Show using hconfig.h. - Mon Mar 16 14:02:09 1992 Chip Salzenberg (chip at tct.com) + * rs6000.md (movsi): Can copy a TOC address into a register. - * cp-parse.y (maybe_attributes, attribute_list): clone - from c-parse.y. - cp-parse.y: call decl_attributes between start_decl and - finish_decl, and after grokfield. +Tue Oct 26 15:03:07 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Mon Apr 20 09:21:00 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * gcc.c (default_compilers): Define __GNUC_MINOR__, using %v. + (do_spec_1): Implement %v. - * cp-tree.h (break_out_calls): Declare. +Tue Oct 26 11:06:59 1993 Mike Stump (mrs@cygnus.com) - Mon Apr 20 08:29:16 1992 Michael Tiemann (tiemann@cygnus.com) + * cp-lex.c (consume_string): Handle "\"" and '\''. - * cp-tree.c (break_out_calls): New function. - (break_out_cleanups): Added comment. +Tue Oct 26 13:44:17 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * cp-typeck.c (build_modify_expr): Call `break_out_calls' instead of - `copy_to_permanent'. + * Makefile.in (fix-header.o): Depend on fix-header.c. + (scan-decls.o): New target. + (gen-protos.o, scan.o): New targets. - Mon Apr 20 06:29:16 1992 Mike Stump (mrs@rtl.cygnus.com) + * Makefile.in (gen-protos, fix_header): Add $(HOST_CFLAGS) and + $(HOST_LDFLAGS). - * cp-type2.c (my_friendly_abort): New function, please see - Rational there. + * x-sysv (OLDCC): Add -XNh1500. + * x-mips: Likewise. - * cp-*.[chy]: Change all calls from abort to my_friendly_abort. +Tue Oct 26 12:21:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - Mon Apr 20 05:45:08 1992 Mike Stump (mrs@rtl.cygnus.com) + * fixincludes: Fix NeXT problem in + as well, since that is where the file is in NeXTStep 3.0. - * cp-cvt.c (build_up_reference): Fix a latent const problem. +Tue Oct 26 07:23:08 1993 Torbjorn Granlund (tege@adder.cygnus.com) - Mon Apr 20 03:08:12 1992 Michael Tiemann (tiemann@cygnus.com) + * expmed.c (init_expmed): Use register 10000, not FIRST_PSEUDO_REGISTER + that gets special treatment in rtx_cost. + (expand_mult): Decrease max cost to 8. - * cp-decl.c (pop_from_top_level): Deleted duplicate code in C_C_D - restoration. + * c-typeck.c (build_binary_op): For TRUNC_MOD_EXPR and FLOOR_MOD_EXPR, + set common. - * cp-call.c (build_method_call): Call `error_with_aggr_type' with - correct number of arguments. +Tue Oct 26 01:59:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Sun Apr 19 18:39:25 1992 Mike Stump (mrs@rtl.cygnus.com) + * protoize.c [__NeXT__]: Don't declare setjmp or longjmp. - * cp-class.c (finish_struct): Only provide a warning about - non-virtual destructors if the user asks for -Wall. + * configure: Ignore --verbose option if specified. - Sun Apr 19 17:36:16 1992 Mike Stump (mrs@rtl.cygnus.com) + * expr.c (emit_move_insn_1): Don't call group_insns + when X is a CONCAT. + (emit_move_insn_1, case CONJ_EXPR and COMPLEX_EXPR): Likewise. - * cp-typeck.c (build_modify_expr): Make a deep copy of lhs, as - expr.c expects to be able to preexpand_calls on the conditional - parts without insuring that it would even be legal to do so. + * fixproto (signal.h): Add prototypes only for kill and raise. + Not for the POSIX signal functions. + (sys/resource.h): Delete special handling for this file. - * cp-tree.c (make_deep_copy): Fix comment. + * c-typeck.c (push_init_level): Align here for element of record. + (process_init_element): Not here (was before call to push_init_level). - Fri Apr 17 04:55:18 1992 Mike Stump (mrs@rtl.cygnus.com) + * scan-types.sh: Expect GCC source dir as argument. + In dummy.c, use gstddef.h and gstdarg.h, not stddef.h and stdarg.h. + * Makefile.in (deduced.h): Pass GCC source dir to scan-types.sh. - * cp-cvt.c (convert_pointer_to): Provide the user with a meaningful - error message instead of a core dump when dealing with bad syntax. +Mon Oct 25 23:23:26 1993 Torbjorn Granlund (tege@blues.cygnus.com) - * cp-typeck.c (build_binary_op): Make error message on undefined - operator call more readable. + * c-typeck.c (build_binary_op): For TRUNC_MOD_EXPR and FLOOR_MOD_EXPR, + don't shorten when divisor might be -1. - * cp-decl.c (grok_reference_init): Handle T& = const T& - error messages. +Mon Oct 25 23:45:20 1993 Minh Tran-Le (tranle@intellicorp.com) - Thu Apr 16 18:59:15 1992 Mike Stump (mrs@rtl.cygnus.com) + * seq-sysv3.h (CPP_SPEC): Define _SEQUENT_ to be compatible with cc. + (INVOKE__main): Defined. + (HAVE_ATEXIT): Defined. - * cp-typeck.c (convert_arguments): Disable code that auto converted - functions and methods to pointers and left them that way without error. + * configure (i[34]86-sequent-sysv): Use fixinc.srv4 and define + broken_install. - Thu Apr 16 17:35:13 1992 Mike Stump (mrs@rtl.cygnus.com) +Mon Oct 25 18:53:51 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - Sat Apr 4 22:28:23 1992 Gerald Baumgartner (gb at cs.purdue.edu) + * expr.c (expand_expr, case PLACEHOLDER_EXPR): Fix typos. - * cp-decl.c (finish_decl): Call `abstract_virtuals_error' - when the return type of a method is an abstract class. +Mon Oct 25 16:25:58 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-type2.c (abstract_virtuals_error): Print error message - for an invalid method declaration. + * scan.c (scan_string, skip_spaces): Add newline before fn name. - Thu Apr 16 16:18:35 1992 Mike Stump (mrs@rtl.cygnus.com) + * scan-decls.c (scan_decls): When reading parameter list, + handle whitespace differently, and keep track of line number. - * cp-decl2.c (lang_decode_option): Handle import by ignoring it. + * config/i386/x-linux (STMP_FIXPROTO): Define as empty. -Wed Apr 22 19:46:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Oct 25 13:22:37 1993 Kaveh R. Ghazi (ghazi@caip.rutgers.edu) - * objc-actions.c (synth_id_with_class_suffix, finish_class): - Don't use utlbuf; alloca a buffer. - (forward_declare_categories): Use build_decl directly since - create_builtin_decl wants a string, not an id. + * fixincludes: Fix bad S_IS* macros in on m88k-sysv3. - * Makefile.in (STAGESTUFF): Add USE_COLLECT2. +Mon Oct 25 22:34:12 BST 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * dbxout.c (dbxout_symbol): Clean up last change. + * fixincludes: Remove nested brackets in change of Oct 21. + Fix token pasting operator in ARM/RISCiX include files. -Wed Apr 22 17:06:16 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Oct 25 13:01:52 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * rs6000.c (gpc_reg_operand): Renamed from gen_reg_operand. - * rs6000.h (PREDICATE_CODES): Likewise. - * rs6000.md: Likewise. + * sparc.h (LONG_DOUBLE_TYPE_SIZE): Don't define here. + * sol2.h (LONG_DOUBLE_TYPE_SIZE): Do define here. - * a29k.c (gpc_reg*_operand): Renamed from gen_reg*_operand. - * a29k.h (PREDICATE_CODES): Likewise. - * a29k.md: Likewise. + * configure (mips-sgi-irix5): Don't use collect. - * romp.c (output_fpop): Extend workaround for RT FP codegen bug. +Sun Oct 24 14:15:12 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Wed Apr 22 06:20:09 1992 Tom Wood (wood at dg-rtp.dg.com) + * libgcc2.c (L_bb): Undef NULL before including . - * fold-const.c (fold, comparison cases): Use omit_one_operand to - yield a simplified result to avoid loosing a side-effect. +Sun Oct 24 03:04:53 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Apr 21 13:19:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in (g++.o): New target. - * dbxout.c (dbxout_symbol): For TYPE_DECL, always make requisite tag - one way or another even if !have_used_extensions. + * varasm.c (assemble_variable): Set last_assemble_variable_decl. + (last_assemble_variable_decl): New variable. + * toplev.c (rest_of_decl_compilation): Test that var. - * configure: Specifically detect unrecognized options. +Sat Oct 23 20:28:13 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) -Tue Apr 21 08:16:05 1992 Tom Wood (wood at dg-rtp.dg.com) - - * c-convert.c (convert_to_integer): Don't distribute a truncation - down past an ABS_EXPR. - - * m88k.md (bxx insn): Choose bb0 over bb1 if the branch is likely - to fall-through (m88110 optimization). - * m88k.c (mostly_false_jump): New function. + * configure (mips-sgi-irix5): Uncomment. + * iris5.h: Replace with working version. + * xm-iris5.h: New file. - * m88k.h (INIT_SECTION_ASM_OP): Define only for svr3 and svr4 targets. + * mips.c (mips_abicalls): New variable. + (override_options): Set mips_abicalls. Allow '^' as print operand + punctuation character. + (print_operand): Add support for '^'. + (mips_asm_file_start): Use ABICALLS_ASM_OP instead of ".abicalls". + (compute_frame_size): Handle TARGET_ABICALLS case. + (mips_expand_prologue): Likewise. + * mips.h (mips_abicalls): Declare new variable. + (PIC_FUNCTION_ADDR_REGNUM): New macro. + (STARTING_FRAME_OFFSET): Handle TARGET_ABICALLS case. + * mips.md (abicalls): New attribute. + (define_delay): Don't fill call delay slots when TARGET_ABICALLS. + (call_internal3, call_value_internal3): Renamed from + call_internal2 and call_value_internal2. + (call_internal2, call_value_internal2): New call patterns for + TARGET_ABICALL case. + (call_internal4, call_value_internal4): Likewise. - * m88k.c (output_call): Use the insn address of the sequence. - * m88k.h (ADJUST_INSN_LENGTH): Account for space added at barriers - due to ASM_OUTPUT_ALIGN_CODE. +Sat Oct 23 00:06:14 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Apr 21 07:30:46 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Makefile.in (deduced.h): Depend on GCC_PASSES and stmp-int-hdrs. + (xsys-protos.h): Depend on GCC_PASSES. + (fixhdr.ready): New target. + (stmp-fixproto): Depend on fixhdr.ready, not fix-header itself. + (clean): Delete fixhdr.ready. - * jump.c (mark_jump_label, case MEM): New case to look for label - in a constant-pool entry. +Fri Oct 22 01:20:29 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Apr 21 00:41:39 1992 James Van Artsdalen (james at bigtex.cactus.org) + * fix-header.c: Renamed from patch-header.c. + (progname): Change name. + * fixproto: Use fix-header. + * Makefile.in (fix-header, fix-header.o): Renamed from patch-header*. + (stmp-fixproto, mostlyclean): Rename references to them. - * reg-stack.c (compare_for_stack_reg): link cc0 user and setter - before separating them. + * expr.c (store_field): In BLKmode case, return blk_object. - * reorg.c (link_cc0_insns): Move function from here - - * emit-rtl.c (link_cc0_insns): to here. + * config/m88k/m88k.h (ASM_FINISH_DECLARE_OBJECT): Undef, then define. - * i386.h (TARGET_IEEE_FP): New macro. - (TARGET_SWITCHES): Add switches for ieee floating point support. - (EXTRA_CC_MODES,EXTRA_CC_NAMES): Add CCFPEQmode. - (SELECT_CC_MODE): Select CCFPEQmode for FP equality comparisons. - (i386_compare_gen*,i386_compare_op*): Declare new variables to - generate comparisons from within branch and sCC insns. - (RTX_COSTS): Fix argument name typo. + * Version 2.5.0 released. - * i386.c (i386_compare_gen*,i386_compare_op*): Define variables here. - (notice_update_cc): Notice if a comparison involves FP values. - (output_float_compare): Add support for "unordered" compare. - Use output_fp_cc0_set to set flags after a compare. - (output_fp_cc0_set): New function. +Thu Oct 21 13:02:48 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * i386.md (tstM,cmpM): New expanders. Don't generate RTL; just - save data for when cc0 user is generated. - (bCOND,sCOND): New expanders. Generate the compare/test as well - as the bCOND or sCOND. + * mips.h (CUMULATIVE_ARGS): Double size of adjust array. + * mips.c (function_arg): Add comment about too many adjust entries. - (tstsf,tstdf): Disable patterns if generating ieee compliant code. - (tstsf,tstdf,cmpsf,cmpdf): Use output_fp_cc0_set to set flags - after test. - Don't change cc_status here: that won't work with REG_CC_SETTER - and REG_CC_USER. +Thu Oct 21 13:48:14 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - (all COMPAREs): Use CCmode as mode of a COMPARE. + * rs6000.h (HARD_REGNO_MODE_OK): Multi-word objects cannot + go into MQ, LR, or CTR. -Mon Apr 20 11:17:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * configure (mips-sgi-iris5*): Disable; not working yet. + * mips/iris5.h (ASM_SPEC, LINK_SPEC, CPP_PREDEFINES): Extend a bit. - * limits.h (LONG_LONG_MIN, LONG_LONG_MAX, ULONG_LONG_MAX): New macros. + * expmed.c (expand_divmod): Create RESULT in proper mode when trying + quotient-and-remainder insn. - * configure: Clear out_file before the big case, like tm_file, etc. +Thu Oct 21 13:14:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (expand_expr, case LABEL_DECL): Handle label from outer fcn. + * Makefile.in (STMP_FIXPROTO): Uncomment the definition. -Mon Apr 20 10:17:49 1992 Tom Wood (wood at dg-rtp.dg.com) + * varasm.c (output_constructor): Fix previous change: + if no TYPE_DOMAIN, don't set min_index. - * x-m88kluna: Delete. - * x-m88kv3: Renamed from x-m88k. - * configure (m88k-*): Rearrange. +Thu Oct 21 11:13:21 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) -Mon Apr 20 21:29:00 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * fixincludes: Avoid conflicting uses of __wchar_t in cc1plus and + stdlib.h for ARM/RISCiX. - * config-gcc.com: Generate libgcc2.list from Makefile.in - * make-l2.com: Use libgcc2.list; supply gcc version number to gas. +Thu Oct 21 08:16:13 1993 Doug Evans (dje@canuck.cygnus.com) - * config-gacc.com: Generate linker options files from Makefile.in + * Makefile.in (install-common): Remove g++ dependency. + Not built for cross compilers. - * make-cc1.com: Use said linker options files instead of static - list of files. - * make-cc1.com: Handle errors better. +Thu Oct 21 00:04:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Apr 20 10:05:34 1992 Michael Meissner (meissner@osf.org) + * fixincludes (required): Accept a space instead of a tab + between #define and CTRL (or _CTRL). - * mips.md (divmodsi4, udivmodsi4): Remove unneeded PARALLEL. Patch - from Richard Kenner. + * config/m68k/m68k.c (output_move_double): Use reg_overlap_mentioned_p + when checking for overlap between source and dest. + Fix syntax for the lea insn for double overlap case. + * m68k.md (movdi, movdf, movxf): Delete the & from load case. -Mon Apr 20 08:38:26 1992 Tom Wood (wood at dg-rtp.dg.com) + * config/m88k/m88k.h (ASM_FINISH_DECLARE_OBJECT): Emit .size + only if DECLARE_ASM_NAME. - * expr.c (expand_expr, case CONSTRUCTOR): For static CONSTRUCTOR, - require a valid memory address only if modifier does. +Wed Oct 20 21:32:11 1993 Jeff Law (law@snake.cs.utah.edu) -Sun Apr 19 15:09:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * pa.c (output_arg_descriptor): Do not stop searching if a USE + for the static link or struct value register is found. - * genemit.c (gen_insn): Mode of SCRATCH must match in clobber lists. +Wed Oct 20 22:43:22 1993 Michael Meissner (meissner@osf.org) - * sched.c (add_dependence, remove_dependence): Moved from rtl.c. - * rtl.c: Functions deleted here. + * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Don't emit .size + directive if using the OSF/rose object format. - * Make installation of collect2 automatic. - * configure: Define use_collect2 for all BSD and Mach and HP/UX - configurations, plus the ones below, and a few others. - * t-decrose, t-decstatn, t-encrose, t-i386rose, t-mips, t-next: - (EXTRA_PROGRAMS): Deleted. - * t-apollo68, t-convex, t-dpx2, t-rs6000: Files deleted. + * i386/osfrose.h, i386/osfelf.h (SWITCH_TAKES_ARG): Allow use of + System V.4 -h * and -z * switches. + (LINK_SPEC): Pass -G, -h*, -z* switches through to the ELF linker. + Map -static, -symbolic, and -shared into the appropriate -B, -d, + and -G options when invoking the ELF linker. - * libgcc1.c (nongcc_SI_type): Renamed from SItype. +Wed Oct 20 20:32:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * recog.c (constrain_operands): Check only earlyclobbers that are REGs. + * cse.c (fold_rtx): Alter previous change: don't fold the shift + if the count exceeds the width of the value inside the subreg. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Delete comma in globalize cmd. + * varasm.c (copy_constant): New function. + (output_constant_def): Use it. - * m68k.md (movhi): Don't use switch_table_difference_label_flag - except in ports that need it. (Again!) + * Makefile.in ($(srcdir)/INSTALL): Add --no-split. -Sun Apr 19 14:06:59 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Wed Oct 20 19:35:35 1993 John F Carr (jfc@mit.edu) - * sched.c (sched_analyze_2): Add missing comment close. + * alpha.h (LIB_SPEC): Link -lprof1 when profiling. - * rtl.c (add_dependence): Make next point to last insn with - SCHED_GROUP_P set, not after the last insn with the bit set. +Wed Oct 20 19:21:18 1993 Jim Wilson (wilson@cygnus.com) -Sun Apr 19 06:06:03 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cccp.c (sys_errlist): Conditionalize declaration for BSD 4.4. + * collect2.c, g++.c, gcc.c, protoize.c: Likewise. + * collect2.c (my_strerror): Move block local extern declarations + for sys_errlist and sys_nerr to file level. - * genextract.c (walk_rtx): Fix typo in vector case. +Wed Oct 20 18:27:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hppa.h (RTX_COSTS): Add new argument OUTER_CODE. + * c-typeck.c (output_init_element): When initializing a union, + do it right away: never put the field on the pending list. - * Makefile.in (compare, compare3): Change $file to $$file. + * patch-header.c (main): Delete output file before opening it. + Discard directory names from progname. + * patch-header.c: Simplify and fix handling of errno.h. + (It no longer thinks errno.h always needs fixing.) + * patch-header.c (write_lbrac, write_rbrac): Only write + extern "C" if that specifically is needed. - * romp.h (CONST_CONSTS): Clean up formatting of definition. +Wed Oct 20 18:12:21 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * rs6000.md (extzv): Correct when we can use andi[lu]. + * pa.md (cacheflush): Split into dcacheflush and icacheflush. + Rewrite to use space regs correctly. + * pa.h (TRAMPOLINE_TEMPLATE): Rewrite. + (TRAMPOLINE_SIZE): Update with new size. + (INITIALIZE_TRAMPOLINE): Rewrite. -Sat Apr 18 21:56:20 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Wed Oct 20 17:58:32 1993 Per Bothner (bothner@kalessin.cygnus.com) - * sparc.md (ashldi3): Compact operand numbers. + * varasm.c (output_constructor): Add support for non-zero + lower array bound. + * expr.c (store_constructor): Likewise. - From Jeffrey Law: - * sparc.md (ldd, std peepholes): New peepholes to recognize cases - where two ld (or st) insns could be replaced by a single ldd or std. - * sparc.c (registers_ok_for_ldd): New function. Return true if the - given register pair is suitable for an ldd or std instruction. - (memory_ok_for_ldd): Likewise, but for memory locations. +Wed Oct 20 15:16:34 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Apr 18 17:22:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * toplev.c (rest_of_decl_compilation): Use ASM_FINISH_DECLARE_OBJECT + unconditionally, but define it as no-op by default. - * c-lex.c (skip_white_space): Warn only for first carriage return. + * config/convex/convex.h (MAX_LONG_TYPE_SIZE): Defined. -Sat Apr 18 10:08:45 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (size_directive_output): New variable. + * toplev.c (rest_of_decl_compilation): Use ASM_FINISH_DECLARE_OBJECT. + * config/svr4.h (ASM_DECLARE_OBJECT_NAME): Set size_directive_output. + (ASM_FINISH_DECLARE_OBJECT): Defined. + * config/i386/osfrose.h, config/m88k/m88k.h: Likewise. - * genemit.c (struct clobber_ent): New structure. - (gen_insn): See if the clobbers required to be added were seen - for another insn. - (output_add_clobbers): Write case statements for all insn codes - using a particular clobber pattern. - - * cse.c (mention_regs): Always retun a value. + * patch-header.c (inf_size): Move decl inside main. + (strdup): Use xmalloc rathern than malloc. + Don't use the return value of strcpy. + (INF_UNGET): Take parameter; do nothing if EOF. + (strcpy): Declaration deleted. - * rs6000.md (call): Compact operand numbers. +Wed Oct 20 11:39:56 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * genextract.c: Now includes insn-config.h. - (struct extraction, struct code_ptr): New structures. - (gen_insn): Record what extractions are needed and compare with - those for previous insns. - (mark_operand_seen): Function deleted. - (walk_rtx): Use strings as path and just record; don't write. - (print_path): Use strings for paths. - (copystr): New function. - (main): Write out all extractions here. - * Makefile.in (genextract.o): Includes insn-config.h. - - * hppa*.h: Change references from hp800* files to hppa*. - - * rs6000.md (lshrdi3, ashrdi3): Fix typos. - - * rs6000.md (extzv): Correctly install last change. - -Sat Apr 18 12:37:54 1992 John F Carr (jfc at Achates.mit.edu) - - * expmed.c (store_bit_field): Storing into a bitfield in memory - which is the size of a standard machine mode can be done with a - simple move instruction. - - * c-lex.c (skip_white_space): carriage return (^M) is whitespace, - but warn about ^M if pedantic. - - * cse.c (rtx_cost): New argument OUTER_CODE, the rtx code of the - expression in which the rtx argument is contained. - * expmed.c (init_expmed): Pass second argument to rtx_cost. - * optabs.c (expand_binop, expand_twoval_binop, emit_cmp_insn): Likewise. - * loop.c (init_loop, general_induction_var): Likewise. - * vax.c (vax_rtx_cost, vax_address_cost): New functions. - * vax.h (CONST_COSTS, RTX_COSTS, ADDRESS_COST): Call these - functions. - * romp.h (CONST_COSTS): Give constants different costs depending - on whether they can fit into a 2 byte instruction, a 4 byte - instruction, or would require insn splitting to use. - * i386.h (CONST_COSTS, RTX_COSTS): Move PLUS case to RTX_COSTS. - * m68k.h (CONST_COSTS): Constant in range -254..-136 is only cheap - in a move insn, not as an operand to some other instruction. - * config/*.h: Update machine descriptions to define CONST_COSTS - and RTX_COSTS macros with 3 arguments. + * xm-mips.h (HAVE_VPRINTF): Define for BSD 4.4. -Fri Apr 17 11:14:02 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips.c (mips_output_filename): When emitting stabs, don't + disable them if using gas. + (mips_output_lineno): Likewise. - * reload.c (safe_from_earlyclobber): New function. - * recog.c (constrain_operands): Verify that earlyclobber - operands don't conflict with inputs. + * sparc.h (INITIALIZE_TRAMPOLINE): Emit 3 flush instrutions. + * sparc.md (flush): Add pattern. - * combine.c (subst, case SUBREG): Don't fold paradoxical SUBREGs - of constants. +Wed Oct 20 10:47:54 1993 Michael Meissner (meissner@osf.org) - * cse.c (fold_rtx, case SUBREG): Extend previous change so it - folds widened operations with one operand a constant. + * configure (mips-dec-bsd, mips-dec-osf): Fix a typo in the last + change. - * expr.c (safe_from_p, case BIND_EXPR): Only look at operand 1. +Wed Oct 20 07:57:06 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cse.c (fold_rtx, case SUBREG): Don't fold paradoxical SUBREGs. - Instead, when we have a narrowing SUBREG, see if it is narrowing - the result of a widened arithmetic operation. + * rs6000.h, aix31.h (RS6000_CROR_BIT_NUMBER): Deleted. + (RS6000_CALL_GLUE): New macro. + * rs6000.c (print_operand, case '.'): Use RS6000_CALL_GLUE + instead of RS6000_CROR_BIT_NUMBER. + (print_operand, case 'E', case 0): Use "return", not "break". + * rs6000.md (call): Don't use CROR or NOP; just use "%.". -Fri Apr 17 09:16:56 1992 Charles Hannum (mycroft@hal.gnu.ai.mit.edu) + * c-common.c (check_format_info): Consider "char", "signed char", + and "unsigned char" types as equivalent. - * Makefile.in (install-dir): Don't use '-' prefix on continuation line. + * loop.c (find_and_verify_loops): Properly continue loop after + moving a block of code near a loop exit. -Fri Apr 17 06:52:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Oct 20 02:01:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (rest_of_compilation): - If -Wreturn-type, don't stop before jump.c. + * Makefile.in (extraclean): Delete file djefoo. + (stmp-fixproto): Depend on stmp-headers, not LIBGCC2_DEPS. - * calls.c (expand_call): Delete unused arg MODIFIER. - * expr.c: Arg deleted from calls (those which had it). +Tue Oct 19 23:11:16 1993 James Van Artsdalen (james@bigtex.cactus.org) - * ns32k.c (print_operand_address): Handle UTEK_ASM. - (print_operand): Handle NO_IMMEDIATE_PREFIX_IF_SYMBOLIC. - Abort if must get fp number as bits but cannot do so. - * ns32k.h (TRAMPOLINE_TEMPLATE): Use PUT_ABSOLUTE_PREFIX. - * ns32k.md (call, call_value): Handle ENCORE_ASM. - * encore.h (PRINT_OPERAND): Just call print_operand. - (CALL_MEMREF_IMPLICIT): Defined. + * config/i386/isc.h (LONG_DOUBLE_TYPE_SIZE): Define as 64 bits + due to FP emulator bugs in the target kernel. + * config/i386/sco.h: Likewise (kernel bugs are only suspected). - * config.sub: encore implies bsd, not sysv. +Tue Oct 19 21:21:34 PDT 1993 Ralph Campbell (ralphc@pyramid.com) - * stmt.c (expand_expr_stmt): Handle reference of volatile BLKmode. + * configure (mips-dec-bsd): New alternative. + * config/mips/dec-bsd.h: New file. - * vax.md (indirect_jump): Delete the extra condition. +Tue Oct 19 18:49:40 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * configure (...-hpux): Set install_with_cp. + * c-typeck.c (digest_init): For arrays, use comptypes to compare + types instead of comparing pointers. - * jump.c (delete_insn): After a label, go past other deleted labels. +Tue Oct 19 11:24:16 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) - * m68k.md (movhi): Don't use switch_table_difference_label_flag - except in ports that need it. + * reload1.c (reload): Cope when inherited register is larger than + one word. + (choose_reload_regs): Ditto. - * stmt.c (warn_if_unused_value): Don't warn for constant after comma. - Don't warn for volatile decl or ref. +Tue Oct 19 18:09:18 1993 David Edelsohn (edelsohn@npac.syr.edu) - * c-typeck.c (build_unary_op): ++ on void * warns if -Wpointer-arith. + * rs6000.md (define_function_unit): Add support for RIOS2 + asymmetric integer units. -Thu Apr 16 22:56:20 1992 Michael Meissner (meissner@osf.org) +Tue Oct 19 17:48:37 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * mips.h (enum block_move_type): New enumeration for classing what - type of block move is used when splitting the last store off. - (RTX_COSTS): Don't use -mdebugd to set multiply costs to 2. + * function.c (assign_parms): Properly set parm_reg_stack_loc for + args that are a CONCAT. - * mips.c (output_movstrsi): Take an additional argument to determine - whether this block move is a normal block move, or one that has been - split. For the split block moves, there are two parts -- the first - part is everything but the last store, and the second part is the - last store, suitable to fill a delay slot. + * clipper.md (movdi): Force use of "o" alternative if + operand 1 is a MEM. - * mips.md (all define_splits): Don't do any define_split if - -mdebugd. - (movstrsi_internal*): Add support to split block moves into two - pieces, one that is everything except for the last store, and the - second piece, which is the last store that can fill a delay slot. + * alpha.h (HAVE_ATEXIT): New macro. -Thu Apr 16 21:52:59 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * reload.c (push_reload, find_reloads): If an operand is + a SUBREG of a PLUS, force a reload and reload what is inside. - * x-rs6k-mach: New file. - * configure (rs6000-*-mach): Use it. + * dbxout.c (print_int_cst_octal): Fix bug in last change. -Thu Apr 16 21:52:17 1992 John F Carr (jfc at Achates.mit.edu) +Tue Oct 19 17:42:23 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * cse.c (cse_end_of_basic_block): Fix test for infinite loop. + * arm.c: Include reload.h + (arm_reload_out_hi): New function. + (output_call): Don't look inside operands[0]. + * arm.h: Add function definitions for shift_instr, + output_mov_long_double_fpu_from_arm, + output_mov_long_double_arm_from_fpu, + and output_mov_long_double_arm_from_arm. + (FLOAT_WORDS_BIG_ENDIAN): Define to 1. + (SECONDARY_OUTPUT_RELOAD_CLASS): return GENERAL_REGS for HImode + outputs. + (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): + output floating point constants as hex, make order correct given + definition of FLOAT_WORDS_BIG_ENDIAN. + (PRINT_OPERAND): Delete redundant code when handling CONST_DOUBLE. + * arm.md: (reload_outhi): New pattern. + (movhi): Handle reloads better. + (restorehi): Delete. Also tidy up commented out code. + (call): Make this a define_expand. + (matcher for above): only accept MEM(reg) + (call_value): Handle as for (call). + * xm-arm.h (HOST_FLOAT_WORDS_BIG_ENDIAN): Define to 1. -Thu Apr 16 21:50:38 1992 Jim Wilson (wilson@sphagnum.cygnus.com) +Tue Oct 19 13:25:03 1993 Mike Stump (mrs@rtl.cygnus.com) - * rs6000.h (bss_section): Delete. No longer needed. + * cp-type2.c (build_m_component_ref): Fix typo, type must be set, + after changing component. Fixes problem introduced on Thu Sep 9 + 21:22:40 1993. - * a29k.c (print_operand, case 'F'): Always emit insn to fill empty - delay slot. +Tue Oct 19 01:09:56 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Apr 16 18:45:41 1992 Tom Wood (wood at dg-rtp.dg.com) + * configure (m68000-convergent-sysv*): Untangle from m68k-*-lynxos. - * cse.c (simplify_ternary_operation): Correctly sign-extend result. + * Makefile.in (stmp-fixproto): Depend on LIBGCC2_DEPS. + (crtbegin.o, crtend.o): Specify -fno-inline-functions. -Thu Apr 16 18:43:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config/mips/iris5.h: New file. + * config/mips/mips.c (mips_asm_file_start): Handle ABICALLS_ASM_OP. + * configure (mips-sgi-iris5*): New configuration. - * objc-actions.c: Rename OBJC_NONUNIQUE_SELECTORS to - OBJC_SELECTORS_WITHOUT_LABELS. +Mon Oct 18 16:16:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (duplicate_decls): Allow extern vs extern inline. + * cse.c (note_mem_written): (mem (scratch)) means clobber everything. - * c-parse.y (parmlist_or_identifiers_1): Use parmlist_1. - * c-decl.c (get_parm_info): Treat forward parm decls like nonparm - decls. + * gen-protos.c: Include ctype.h. - * m68k.md (movhi before dispatch table): - Set switch_table_difference_label_flag. - * 3b1.h, amix.h, m68ksgs.h (ASM_OUTPUT_CASE_END): Test that flag. - Declare the flag. + * expmed.c (extract_split_bit_field): Change shift count calculation + in little-endian case. - * m68k.c (output_function_prologue, print_operand_address): Add - HPUX_ASM conds. + * Makefile.in (stmp-fixproto): Added dependency on fixproto script. - * mips.c (output_block_move): If we get a case we can't handle, - don't print anything--just abort, because that implies a bug. +Mon Oct 18 11:26:08 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * c-decl.c (c_decode_option): -ansi sets flag_no_nonansi_builtin, - not flag_no_builtin. - (init_decl_processing): Check flag_no_nonansi_builtin for alloca, etc. + * c-typeck.c (process_init_element): Align structure elements + that are subaggregates. - * dbxout.c (dbxout_symbol): Make pointer, not reference, - when variable's address is in a register. + * c-decl.c (finish_decl): After preserve_initializer call, set + TREE_PERMANENT bit in initializer. - * c-decl.c (c_decode_option): Ignore -Wimport, -Wno-import. + * combine.c (can_combine_p): Don't combine instructions across a + volatile insn. + * rtlanal.c (volatile_insn_p): New function. -Thu Apr 16 16:17:13 1992 Mike Stump (mrs@mole.gnu.ai.mit.edu) +Sun Oct 17 03:04:49 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * merge in Cygnus changes... + * configure (powerpc-ibm-aix*): Set cpu_type. + * config.sub: Recognize powerpc. - Thu Apr 16 12:23:06 1992 Mike Stump (mrs@rtl.cygnus.com) +Sun Oct 17 21:37:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * cp-call.c (build_method_call): propagate const around to avoid an - incorrect error message. This type of fix may now be necessary in - other parts of the compiler. This solves all but one known const - problems. + * reload1.c (eliminate_regs_in_insn): Rerecognize some loads and + stores. + * pa.md (indexing loads and stores): Provide variants which avoid + reload problems with shift-add operations. - Wed Apr 15 14:18:27 1992 Mike Stump (mrs@rtl.cygnus.com) + * pa.h (READONLY_DATA_SECTION): Disable. - * cp-type2.c (readonly_warning_or_error): because the compiler - is now warning about const alot more, for a release or two, - lets just warn about const problems, just in case it is a compiler - problem and not a user problem. - - * cp-cvt.c (build_up_reference): Lets get tougher on const problems - on COMPONENT_REFs. +Thu Oct 14 12:38:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Wed Apr 15 11:59:42 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * cse.c (fold_rtx): Special case handling for folding + a subreg of the result of a left shift. - * cp-decl.c (finish_function): Check for any debug info enabled, - not just DBX_DEBUG. +Thu Oct 14 00:05:42 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - Wed Apr 15 10:03:36 1992 Mike Stump (mrs@rtl.cygnus.com) + * alpha.h (DBX_CONTIN_LENGTH): Set to 4000. - * cp-cvt.c (build_up_reference): Propagate const and volatile - down into the type so error checking works better. + * expr.c (do_jump_for_compare): Don't blow up if aren't any insns + in this sequence yet. - Tue Apr 14 11:44:32 1992 Mike Stump (mrs@rtl.cygnus.com) + * alpha.h (LINK_SPEC): Now OK to pass -O3 to linker. + (ASM_OUTPUT_LOOP_ALIGN, ASM_OUTPUT_ALIGN_CODE): Work around + bug in DEC assembler. - * cp-decl.c (start_decl): Shouldn't use flag_this_is_variable - to make what this points to const, but I don't have the heart - to do it right now. - - * cp-decl2.c (grokclassfn): Don't use flag_this_is_variable - to make what this points to const. +Wed Oct 13 21:47:58 1993 Ian Lance Taylor (ian@cygnus.com) - * cp-typeck.c (convert_arguments): Let build_up_reference handle - const errors correctly. Removes April 10 change. - - * cp-cvt.c (build_up_reference): Don't let people subvert const - when passing const argements to non-const functions. + * fixincludes: Remove erroneous parens from Alpha OSF/1 . - * cp-tree.c (build_cplus_method_type): Don't use - flag_this_is_variable to make what this points to const. +Wed Oct 13 16:08:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - From Wed Apr 1 12:00:59 1992 Chip Salzenberg (chip at tct.com) + * config/m68k/sun3.h (CPP_PREDEFINES): Don't define _CROSS_TARGET_ARCH. - * cp-class.c (import_export_vtable): New function to set - TREE_PUBLIC and/or TREE_EXTERNAL on vtables. - (build_vtable): Use it. - (prepare_fresh_vtable): Use it. + * fold-const.c (invert_truthvalue): Handle SAVE_EXPR. - * cp-decl.c (finish_decl): Don't assume that TREE_PUBLIC means - "exported"; it can mean "imported". Decide with TREE_EXTERNAL. - (finish_function): Ditto. - * cp-decl2.c (write_vtable_entries): Ditto. - (finish_vtable_typedecl): Ditto. - (finish_vtable_vardecl): Ditto. - (finish_file): Ditto. + * Makefile.in (install-collect2): Depend on install-dir. + (install-info, install-float-h-cross): Likewise. - * cp-lex.c (set_vardecl_interface_info): Public objects always - have TREE_PUBLIC, whether exported or imported. - * cp-pt.c (instantiate_member_templates): Ditto. +Wed Oct 13 15:51:02 1993 Stephen L. Moshier (moshier@world.std.com)\ + * real.h (FLOAT_WORDS_BIG_ENDIAN): New macro. + (HOST_FLOAT_WORDS_BIG_ENDIAN): Likewise, for host. + (REAL_VALUE_TO_TARGET_DOUBLE (default version)): Use them. + (efixi, efixui): Return HOST_WIDE_INT. + (REAL_VALUE_FROM_INT): Cast inputs to HOST_WIDE_INT. + * real.c (FLOAT_WORDS_BIG_ENDIAN, HOST_FLOAT_WORDS_BIG_ENDIAN): + Use everywhere in place of WORDS_BIG_ENDIAN, HOST_WORDS_BIG_ENDIAN, + except in reference to endian-ness of integers. + (etrunci, etruncui, efixi, efixui, ereal_from_int, ereal_to_int, + ltoe, ultoe, eifrac, euifrac): Change `long' to `HOST_WIDE_INT'. - Fri Apr 10 21:44:15 1992 Per Bothner (bothner@cygnus.com) +Wed Oct 13 15:47:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-method.c (build_overload_name): Mangle 'signed char' - as 'Sc' (i.e. differently from 'char'!). + * c-parse.in (initdcl, notype_initdcl): Call decl_attributes + before init as well as after. - Fri Apr 10 17:38:04 1992 Mike Stump (mrs@cygnus.com) + * config/ns32k/pc532.h (FRAME_POINTER_REQUIRED): + Require a frame pointer if fn calls setjmp. - * cp-typeck.c (convert_arguments): don't allow people to wipe const. +Wed Oct 13 15:27:01 1993 Jim Wilson (wilson@cygnus.com) - Thu Apr 9 18:28:36 1992 Mike Stump (mrs@rtl.cygnus.com) + * jump.c (jump_optimize): When moving a range of instructions, + include all NOTEs before the range, not just line number notes. - * cp-tree.h: Add entry for $vb and $vf so that NO_DOLLAR_IN_LABEL - works. - * cp-class.c (finish_struct): Use the new macros from cp-tree.h. - * cp-tree.c (layout_basetypes): Use the new macros from cp-tree.h. +Wed Oct 13 11:01:51 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - Thu Apr 9 02:11:01 1992 Mike Stump (mrs@rtl.cygnus.com) + * patch-header.c: #include before . - * cp-typeck.c (build_function_call_real): Merge in a change made to - the C front end into the C++ front end to handle volatile functions. +Wed Oct 13 11:57:33 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - Thu Apr 9 03:45:03 1992 Mark Eichin (eichin at cygnus.com) + * rs6000.md (seq): Fix typo: had "xubfic" instead of "subfic". - * cp-class.c (finish_struct): sanity check before calling popclass. - If we're already hosed due to previous parse errors (specifically, - we're not inside a class anymore) just report an error rather than - crashing in popclass (if there wasn't a previous parse error, as the - message suggests, we should get reports; this closes gcc/p0000525.) + * va-m88k.h (_VA_LIST_): Define. - Wed Apr 8 08:56:49 1992 Mike Stump (mrs@rtl.cygnus.com) + * alpha.c (ignore_line_number): No longer used. - * cp-decl.c (grokdeclarator): Fix an eichin bug introduced seconds - ago. Shame, he didn't put: + * mips-tdump.c (print_global_hdr): Fix typo in cast in ctime call. - Workaround for p869: - 1) grokdeclarator (around cp-decl.c:7462) is using popclass(1) - uses popclass(1) to close the pushclass(3) done by - build_push_scope; however, it's coming around another time and - popping all the way out, which leads to the core dump when - do_friend is called from global scope (do_friend uses - current_class_name to figure out whose friendship it is - bestowing.) Current workaround: if (friendp) don't allow - popping all the way out. We still need to figure out how to - make sure it only gets called the *right* time; we also need - to figure out if the correct scope is being used, but that's a - matter of regression testing. + * cccp.c (main): Don't catch SIGPIPE if no such signal. - into a ChangeLog entry. + * x-alpha: File deleted, all shipped OSF systems have `ranlib'. - Wed Apr 8 01:10:44 1992 Mike Stump (mrs@rtl.cygnus.com) + * fold-const.c (optimize_bit_field_compare, decode_field_reference): + Don't do anything if get_inner_reference returned its argument. - * cp-decl.c: Cleanup binding_levels_sane related code. Deleted - argument, and changed to void type. Removed extraneous asserts. + * bi-reverse.c: Avoid defining NULL; can cause duplicate definition + errors. - * cp-parse.y: Add fourth parameter to all finish_decl calls. - Defaulted the guess to 0. - * cp-decl.c: consistently use #if on all PARANOIDs. +Wed Oct 13 07:58:28 1993 Michael Meissner (meissner@osf.org) -Wed Apr 15 14:00:14 1992 Michael Meissner (meissner@osf.org) + * i386/osfrose.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define like in V.4. + (FUNCTION_PROFILER, FUNCTION_PROLOGUE): Don't load up %eax with + the pointer value before calling indirect, just call indirect the + memory address to save some cycles in profiling. + +Tue Oct 12 12:41:12 1993 Jim Wilson (wilson@sphagnum.cygnus.com) + + * cse.c (record_jump_cond): At end, make missing equivalences + first, and then merge them. + +Tue Oct 12 21:30:29 1993 Doug Evans (dje@cygnus.com) + + * va-h8300.h (__va_rounded_size): Fix typo in #ifdef. + +Tue Oct 12 20:19:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * bc-emit.c: Include stdio.h last. + * combine.c: Include stdio.h after gvarargs.h. + +Tue Oct 12 13:28:18 1993 Per Bothner (bothner@kalessin.cygnus.com) + + * fixproto: Re-write. We now assume that there are two + source directories (source_dir_all and source_dir_std). These + are handled differently. All files in source_dir_all (normally + ./include) are processed, but in source_dir_std (normally + /usr/include) we only process the standard ANSI/Posix ones where + we might be able to add missing prototypes. + * scan-decls.c (scan_decls): Rewrote from being a program whose + output is piped to patch-header, to a subroutine called by + patch-header. This should be somewhat more efficient. + * Makefile.in (scan-decls): Removed rule to make program. + * patch-header.c (recognized_macro, recognized_extern, + recognized_function): New functins, with logic moved out from + read_scan_file, so they can be called by scan_decls. + * patch-header (main): Read the original header file into a + buffer (rather than reading it with stdio). This should be more + efficient, partly because we can re-write it in place. + (inf_skip_spaces, inf_read_upto, inf_scan_ident): New functions, + based on skip_spaces, read_upto, and scan_ident in scan.c, but + these read from the in-memory buffer mentioned above. + * scan-types.sh: Don't check for sigset_t, since it can be a + struct, whose name cannot be simplify replaced by its definition. + * Makefile.in (deduced.h): Don't pass -nostdinc. + +Tue Oct 12 18:36:32 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + Changes to support native ecoff and embedded stabs debugging + for the Alpha. + + * alpha.c (output_prolog): Put out file and line number if sdb + debugging format, put out .ent directive, signal start of function for + alpha_output_filename and set up debugging auto/arg offsets. + (output_epilog): Signal end of function for alpha_output_filename. + (alpha_output_filename, alpha_output_lineno): New functions. + * alpha.h (TARGET_SWITCHES): Add gas option. + (ASM_DECLARE_FUNCTION_NAME): Moved output of .ent directive to + output_prolog. + (DBX_NO_XREFS): Removed, gdb understands cross references and the + native debugger can't handle embedded stabs. + (ASM_FILE_START): Replace output of .file directive + by ASM_OUTPUT_SOURCE_FILENAME call. + (TARGET_GAS, MASK_GAS, SDB_DEBUGGING_INFO, DBX_DEBUGGING_INFO, + MIPS_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE, DEBUGGER_AUTO_OFFSET, + DEBUGGER_ARG_OFFSET, ASM_OUTPUT_SOURCE_LINE, + ASM_OUTPUT_SOURCE_FILENAME, DEFAULT_GDB_EXTENSIONS, ASM_STABS_OP, + ASM_STABN_OP, ASM_STABD_OP, SDB_ALLOW_FORWARD_REFERENCES, + SDB_ALLOW_UNKNOWN_REFERENCES, PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, + PUT_SDB_TYPE, PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END, + PUT_SDB_FUNCTION_START, PUT_SDB_FUNCTION_END, PUT_SDB_EPILOGUE_END, + ASM_FINAL_SPEC, CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, + MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE): New macros. + * alpha-gdb.h: New file. + * configure (alpha-*-osf*): Handle --with-stabs and --with-gnu-as. + * mips-tfile.c (add_local_symbol): Index in the external symbol + must point to local symbol table entry for procedures. + +Mon Oct 11 16:14:53 1993 Ian Lance Taylor (ian@cygnus.com) + + * fixincludes: If a file is referenced with double quotes from + a fixed file, make sure it is copied into the fixed include + directory. + Remove DPS/XDPSlib.h special-case code. + +Tue Oct 12 08:05:28 1993 David Edelsohn (edelsohn@npac.syr.edu) + + * rs6000/powerpc.h: New file. + * configure (powerpc-ibm-aix*): New target. + * rs6000.h (MASK and TARGET): Add new flags for POWER2 and PowerPC + with square root. + (ASSEMBLER_DIALECT): New macro. + (CONDITIONAL_REGISTER_USAGE): Set MQ register fixed if not POWER. + (SHIFT_COUNT_TRUNCATED): Conditional on POWER. + (ASM_OUTPUT_REG_{PUSH,POP}): Mnemonics dependencies. + * rs6000.c (rs6000_override_options): Use new TARGET flags and + add some more cpu choices. + (output_prolog, output_epilog): Support new mnemonics and avoid + using lm/stm when not POWER. + * rs6000.md: Update define_function_units. + Put both old and new mnemonics in all templates. + Add target tests to pattern conditional field throughout. + (one_cmplsi2): Make POWER and PowerPC variants. + (mulsi3): Convert to define_expand which calls appropriate POWER + or PowerPC pattern. + (divsi3, udivsi3): Add patterns for PowerPC case. Update divsi3 + define_expand for PowerPC case. + (ashlsi3, lshrsi3, ashrsi3, extendqisi2, extendqihi2): Convert to + define_expand which calls appropriate POWER or PowerPC pattern. + (floating-point): Add PowerPC single-precision FP, and SF/DF sqrt + insns for 603, 604, 620. + (call insns): Use "nop" for magic TOC restore. + (move data, nop): Use PowerPC extended mnemonics. + +Tue Oct 12 07:58:36 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * alpha.h (SETUP_INCOMING_VARARGS): If not TARGET_FPREGS, + save another copy of the integer regs where the FP regs would + have gone. + + * tree.h (struct tree_type): symtab_address is now a union of + pointer and integer. + (TYPE_SYMTAB_ADDRESS): Refer to the integer. + (TYPE_SYMTAB_POINTER): New macro to refer to pointer. + * sdbout.c (KNOWN_TYPE_TAG, SET_KNOWN_TYPE_TAG): Refer to + TYPE_SYMTAB_POINTER and remove casts. + (tag_of_ru_type): Likewise. + + * reload1.c (reload): Fix typo in RELOAD_FOR_INSN case when + accounting for reloads. + + * expr.c (convert_modes): Reset OLDMODE from X after we strip + a SUBREG due to a promoted variable. + + * dbxout.c (dbxout_type, case INTEGER_TYPE): Output bounds in + octal if type wider than HOST_WIDE_INT. + (print_int_cst_octal): Trim bound by precision of its type. + Avoid warning on what may be shift into sign bit. + + * bi-reverse.c: Add missing #include for hconfig.h. + + * fixincludes: Quote braces when looking for DONE files. + + * final.c (dialect_number): New variable. + (init_final): Initialize it. + (output_asm_insn, asm_fprintf): Support ASSEMBLER_DIALECT. + +Tue Oct 12 01:34:16 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (digest_init): If traditional, allow unbraced scalar + to initialize the first element of an aggregate. + + * cccp.c (output_line_command): Output the `4' flag only if cplusplus. + (do_line): Handle the `4' flag. + + * final.c (final_scan_insn): Call walk_alter_subreg for operands + that are PLUS or MULT, before constrain_operands. + +Mon Oct 11 15:18:45 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * real.c (debug_real): New function. + + * regclass.c (reg_scan_mark_refs): XEXP (x, 0) in EXPR_LIST may be 0. + + * config/m68k/m68k.md (cmphi): Turn on constraints to support cmpm.w. + +Mon Oct 11 13:20:54 1993 Jim Wilson (wilson@sphagnum.cygnus.com) + + * unroll.c (unroll_loop): Set map->const_equiv_map_size to + new_maxregnum. + (copy_loop_body): When set const_age_map entry for split dest reg, + verify that it is within the bounds of the map. + (find_splittable_regs): Count number of biv sets, not number of + bivs. Don't pass result to find_splittable_givs. + (find_splittable_givs): Delete parameter result. Add local + variable result. + +Mon Oct 11 07:43:31 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * expr.c (expand_assignment): When assigning an INDIRECT_REF to + a RESULT_DECL, the size and source rtx were swapped. + + * function.c (trampoline_address): Don't allocate anything + from parent function's current obstack. + + * regclass.c (reg_scan): Don't call reg_scan_mark_refs on notes + if there aren't any. + (reg_scan_mark_refs, case INSN_LIST, EXPR_LIST): New cases. + + * cse.c (simplify_binary_operation): Test value of + SHIFT_COUNT_TRUNCATED if it is defined. + * combine.c (subst, shift and rotate cases): Likewise. + * a29k.h, alpha.h, fx80.h, i960.h, mips.h, pa.h, pyr.h, rs6000.h: + Define SHIFT_COUNT_TRUNCATED to have a value of 1. + * sparc.h, tahoe.h, we32k.h: Likewise. + +Mon Oct 11 02:40:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * regclass.c (regno_last_note_uid): New vector. + (reg_scan): Initialize regno_last_note_uid. + Call reg_scan_mark_refs for the notes. Pass its new arg. + (reg_scan_mark_refs): New arg NOTE_FLAG. Pass it recursively. + Set regno_last_note_uid. + * regs.h (regno_last_note_uid): Declared. + * jump.c (jump_optimize): Use regno_last_note_uid when deciding + whether a register is set and never used. + +Sun Oct 10 22:51:01 1993 Stephen Moshier (moshier@world.std.com) + + * real.c (asctoeg): Fix backward condition in last change. + +Sun Oct 10 22:33:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * configure (hppa1.0-*-mach*): Use collect2. + (hppa1.1-*-mach*): Likewise. + + * pa.c (legitimize_pic_address): Delete unused variables. + (output_block_move, output_ior): Likewise. + (hppa_builtin_saveregs): Likewise. + (emit_move_sequence): Add parens as suggested by -Wall. + (compute_frame_size): Likewise. + (output_ascii): Return type is "void". + (hppa_expand_prologue, import_milli): Likewise. - * mips.md (movstrsi_internal): Add '&' constraint on clobbers. + * pa.c (output_function_prologue): Pass the highest register + number saved for ENTRY_GR and ENTRY_FR directives rather + than the number of registers saved. + (hppa_expand_prologue): Account for %r4 when it's being + used as a frame pointer. - * mips.c (output_movstrsi): If one of our temporary registers is - used as an address register, don't use it and emit a warning. This - is a temporary measure. +Sun Oct 10 18:42:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Apr 15 09:04:22 1992 Richard M. Stallman (rms at lyssenko) + * c-typeck.c (start_init): Don't set require_constant_elements + for scalar types. - * xm-ns32k.h (memcpy, memcmp, memset): New macro definitions. - * rtl.c (gcc_memset): New function. + * c-parse.in (stmt): Don't call default_conversion on top-level + expressions. -Wed Apr 15 09:03:28 1992 Tom Wood (wood at dg-rtp.dg.com) + * c-typeck.c (convert_for_assignment): Allow silent conversion to + a pointer from an integer 0 that resulted from arithmetic. - * m88k.md (umulsidi3): Define for m88110. - (unit attribute): Define. + * varasm.c, c-pragma.c (enum pragma_state): Defined. - * x-m88kdgux (INSTALL_HEADERS): Define as empty. + * config/i386/i386.c (restore_386_machine_status) + (save_386_machine_status): New functions. + (clear_386_stack_locals): Store those functions in + save_machine_status, restore_machine_status. + (struct machine_function): New structure definition. -Tue Apr 14 13:28:11 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * function.h (struct function): New field `machine'. + * function.c (save_machine_status, restore_machine_status): New vars. + (push_function_context, pop_function_context): Use them. - * c-lex.c (yylex): When warn_traditional, don't abort for harmless - type differences. Instead warn of possible problems on other systems. + * explow.c (emit_stack_save): Cast enum array index to int. - * rtl.c (add_dependence): Skip notes when HAVE_cc0. - * sched.c (sched_analyze_2): Likewise. +Sun Oct 10 12:49:39 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * sparc.md (movdf-1): Delete special case for moving 0.0 to integer - registers; it resulted in poor code. - (fix_truncdfsi2+1): Add patterns to optimize float->fix and - float->fix->float conversions. - * sparc.c (output_move_double): Clean up ldd/std code. Don't emit - ldd/std for obviously unaligned address even when TARGET_HOPE_ALIGN. - (output_fp_move_double): Call output_move_double for MEM cases. - It is not safe to assume double reg addresses are always aligned. + * arm.c (const_ok_for_arm): Cast constants to unsigned HOST_WIDE_INT. + (output_prologue): Sanity check the finite state machine. + (output_epilogue): Delete unused variable. + (final_prescan_insn): Always clear arm_target_insn when FSM goes to + state 0. + * arm.h (OPTIMIZATION_OPTIONS): Don't set flag_omit_frame_pointer, + since this inhibits debugging. + (ASM_OUTPUT_INTERNAL_LABEL): Always clear arm_target_insn when FSM + goes to state 0. -Tue Apr 14 07:55:47 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) +Sun Oct 10 08:56:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * *hp800*, *hp700*: Rename to *hppa* and *hppa1.1*, respectively. - * config.sub: Recognize PA model numbers for PA 1.0 and 1.1. - Disable "hppa" with no model number. - * configure: Update for new PA file names and basic_machine names. - * README-PA-HPUX: New name for README-PA-RISC, with some corrections. + * alpha.h (ALPHA_COSTS): Add missing arg to call to rtx_cost. -Tue Apr 14 05:46:37 1992 Tom Wood (wood at dg-rtp.dg.com) + * combine.c (force_to_mode, case ASHIFTRT): Verify that result of + making a LSHIFTRT remains a shift. - * Makefile.in ("if" and "["): Romp, 4.3 BSD, and Ultirx systems - fail when the condition is false. Change troublesome instances to - either use "case" or use '-' as a prefix to the compilation rule. + * tree.c (save_tree_status): Function_maybepermanent_obstack is the + function_obstack of parent function. + (restore_tree_status): Only free objects later than + maybepermanent_firstobj in function_maybepermanent_obstack. + (make_node): Fix logic error in PARM_DECL code. + Put PARM_DECL in parent function's saveable obstack. + * function.c (put_reg_into_stack): Allocate fixup structure in + saveable obstack. -Mon Apr 13 18:20:56 1992 Mike Stump (mrs@cygnus.com) + * expr.c (expand_assignment): Don't short circuit store_expr + when TO is a VAR_DECL since it needs special handling if promoted. - * dwarfout.c: Add default definition for ASM_OUTPUT_ASCII - as that is what varasm.c does now. This really maybe should go - into a file like tree.h or some machine independant file, for - maintainability. + * combine.c (subst, case SUREG): Only call force_to_mode if both + inner and outer modes are MODE_INT. -Mon Apr 13 18:16:32 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * mips-tfile.c (WORD_ALIGN): Fix typo in last change. - * sun3.h, sparc.h (LINK_SPEC): Change nostdlib to !nostdlib. + * c-common.c (check_format_info): Support X/Open formats like "%1$d". -Mon Apr 13 07:17:36 1992 John F Carr (jfc at Achates.mit.edu) +Sat Oct 9 22:29:17 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * rs6000.md (extzv): Generate andi[ul] when practical. + * configure: If no target is specified, try getting one + with config.guess. + * config.guess: New file. -Mon Apr 13 07:17:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Oct 9 19:50:24 1993 Pat Rankin (rankin@eql.caltech.edu) - * cse.c (rtx_cost, case SUBREG): If modes can't be tied, make - expensive. - (cse_insn): Make extra entries when DEST is a multi-word SUBREG - as long as it is the same number of words as its inner REG. + * c-common.c (check_format_info): Avoid ?: conditional for function + to be called. - * emit-rtl.c (gen_lowpart_common): Handle casting integer to - float and vice versa. + * config/vax/xm-vms.h [VAXC] (bc_check_for_full_enumeration_handling) + (current_function_has_nonlocal_goto) + (output_deferred_addressed_constants): New macros to shorten + external names exceeding 31 characters. - * emit-rtl.c (gen_lowpart_common): Rework code to truncate a - constant so we don't convert negative values into positive values; - use same code as in simplify_binary_operation in cse. + * make-cc1.com: Move alloca handling before bytecode construction + so that VAX C won't need two different values for LIBS. Eliminate a + comment about make-like functionality that referred to a capability + which has not been implemented. -Mon Apr 13 07:16:56 1992 Richard M. Stallman (rms at mole.gnu.ai.mit.edu) +Sat Oct 9 21:53:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * cccp.c (handle_directive): When find quote during copying, - give bp as limit arg in skip_quoted_string. - When find \ while copying, copy next char without special handling. + * fixincludes: Unquote a quoted `t' in a #define _IO line, for AIX + 3.2 sys/stropts.h #define _IO(t,v). + (sys/spinlock.h): Don't copy it if it doesn't exist. + (DPS/XDPSlib.h): Change "XDPS.h" to , for AIX. -Mon Apr 13 06:57:18 1992 Tom Wood (wood at dg-rtp.dg.com) +Sat Oct 9 15:00:00 1993 DJ Delorie (dj@ctron.com) - * m88kv3.h (CTOR_LIST_BEGIN): Avoid complex #if. + * configure.bat: Change $(srcdir)/ to $(srcdir)\ in commands. - * tree.h (saved_insns): Make this a union holding an rtx or an int. - (DECL_FIELD_SIZE): New macro for overloaded uses of DECL_FRAME_SIZE. - * c-decl.c (finish_struct): Use DECL_FIELD_SIZE for bitfields. - * cp-class.c (finish_struct): Ditto. - * objc-actions.c (objc_copy_list, encode_field_decl): Ditto. - * stor-layout.c (layout_decl): Ditto. +Sat Oct 9 15:17:22 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Apr 12 17:46:30 1992 James Van Artsdalen (james at bigtex.cactus.org) + * expr.c (expand_expr, case ABS_EXPR): Don't copy twice into + volatile MEM. - * expr.c (expand_builtin, case SQRT): Don't defer popping args on - function calls, as the call might be deleted. + * expr.c (expand_expr): Never reset ORIGINAL_TARGET. + Pass ORIGINAL_TARGET to lang_expand_expr, not TARGET. - * i386.c (print_operand): Delete references to unused codes. - Abort if an unrecognized code is seen. +Sat Oct 9 13:27:10 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386.md (bit opcode recognizers): Accept starting bit numbers - that are constants but not CONST_INT. - (QI/HI register bit test): Delete. - (SImode bit test): Don't accept CONST_INT starting bit number. + * tree.c (pop_momentary_nofree): New function. + * c-parse.in (initdcl, notype_initdcl, init): Undo previous change. + (init): Use pop_momentary_nofree if the initializer has real data. -Sun Apr 12 17:05:25 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Oct 9 12:55:26 1993 Stephen Moshier (moshier@world.std.com) - * rs6000.h (ADDITIONAL_REGISTER_NAMES): Add "cc" as alias for cr0. + * real.c (asctoeg): Allocate local buffer dynamically. Count + any lost significant digits before the decimal point. - * cse.c (equiv_constant): See if a MEM is foldable or has a - constant equivalent. +Fri Oct 8 16:33:42 1993 Mike Stump (mrs@rtl.cygnus.com) - * expr.c (store_constructor): If building a static constructor - into a register, start out by zeroing the register so we can - constant-fold the constructor to a single constant. - (expand_expr, case CONSTRUCTOR): Don't write constant objects - into memory if the target is a register. - (expand_expr, case *_REF): Simplify getting field or array - entry from a CONSTRUCTOR. - Don't use value of const array unless -O. + * cp-tree.h (OFFSET_REF): Override OFFSET_REFs from the back-end, as + we need to do something more complex with them. + * cp-tree.def (CP_OFFSET_REF): Very similar to OFFSET_REFs, but + allow the front-end to handle them. -Sun Apr 12 14:15:33 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Oct 8 14:40:29 1993 Jason Merrill (jason@deneb.cygnus.com) - * Makefile.in (compare, compare3): New targets. - (mostlyclean): Delete temporary files made by those targets. + * cp-error.c (dump_expr, REAL_CST): Support printing of real values + when REAL_IS_NOT_DOUBLE (prints out rep in hex). - * stmt.c (expand_asm_operands): Ignore `cc' as clobbered reg if name - not known. - * varasm.c (decode_reg_name): Ret -3 if `cc' not recognized. - (make_decl_rtl): Understand -3 as value. +Fri Oct 8 13:54:03 1993 Mike Stump (mrs@cygnus.com) - * configure (i386-sequent-bsd*): Use collect2. + * cp-type2.c (store_init_value): Move pointer to member function + initilization code to... + * cp-type2.c (digest_init): here. Allows nested pointer to member + functions to work. + * cp-decl.c (build_ptrmemfunc_type): Use a real union instead of a + magic union, as the initialization code doesn't like them. + * cp-tree.h (TYPE_PTRMEMFUNC_FN_TYPE): Changed to go though the + union. + * cp-tree.h (DELTA2_FROM_PTRMEMFUNC, PFN_FROM_PTRMEMFUNC): Accessor + macros to go thought union. Allows us to change pointer to member + functions a little easier. + * cp-typeck.c (get_member_function_from_ptrfunc, + build_binary_op_nodefault): Changed to use new accessor macros. + * cp-typeck.c (build_ptrmemfunc): Use new union instead. Also, make + sure TREE_CONSTANT is set for CONSTANT things. + * cp-decl.c (pfn_or_delta2_identifier): Added to cache + get_identifier calls. + * cp-tree.h (pfn_or_delta2_identifier): Declare it. + * cp-decl.c (init_decl_processing): Setup pfn_or_delta2_identifier. -Sun Apr 12 13:28:00 1992 Niklas Hallqvist (niklas@appli.se) +Fri Oct 8 19:03:09 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * configure: Correctly interpret use_collect2. + * xcoffout.h (DBX_STATIC_BLOCK_START): For N_LCSYM, force change + to text section to avoid assembler bug. -Sun Apr 12 10:34:58 1992 Tom Wood (wood at dg-rtp.dg.com) + * mips.md (movsi_unaligned): Change in comment "loads" to "stores". - * c-typeck.c (digest_init): Use INIT to pass to convert_for_assignment - for a raw constructor. + * calls.c (emit_library_call_value): Compute struct_value_size, + and pass it to emit_call_1. - * fold-const.c (fold, case COND_EXPR): Get the type right when - the test is folded away. +Fri Oct 8 16:13:17 1993 H.J. Lu (hlu@nynexst.com) - * loop.c (strength_reduce): Correct off-by-one error in INSN_LUID - safety check. + * config/i386/linux.h (STARTFILE_SPEC): Handle -p and -pg + outermost. Also add support for cross-linking. - * stor-layout (layout_record, layout_union): When limiting the - effect of PCC_BITFIELD_TYPE_MATTERS to bitfields, use - DECL_BIT_FIELD_TYPE to determine if it was a bitfield. +Fri Oct 8 15:20:58 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sat Apr 11 19:54:00 1992 Per Bothner (bothner@wombat.gnu.ai.mit.edu) + * Makefile.in (cp-error.o, cp-errfn.o): Add dependency rules. - * config.sub: Don't "standardize" an os of newsos* to bsd - (it breaks gdb/readline/configure.in, which checks for newsos*). +Fri Oct 8 08:00:51 1993 Eric Youngdale (eric@kafka) -Sat Apr 11 16:32:21 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * linux.h: Only include i386/gstabs.h if LINUX_ELF is not defined. - * Makefile.in: Remove spaces after reg-stack.o deps. + * linuxelf.h: Copy a lot of stuff from the SVr4 configuration: + include "i386/i386.h", "i386/att.h" and "svr4.h". + (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Undefine. + (ASM_FILE_START, RETURN_IN_MEMORY, ASM_OUTPUT_ADDR_DIFF_ELT) + (JUMP_TABLES_IN_TEXT_SECTION, DBX_REGISTER_NUMBER): Copy from sysv4.h. + (TARGET_VERSION): Define to print "i386 Linux/ELF". + (LINUX_ELF): Define, before we include "i386/linux.h" + (YES_UNDERSCORE): Undefine. -Sat Apr 11 16:32:15 1992 Michael Meissner (meissner@osf.org) +Fri Oct 8 13:40:44 1993 Michael Meissner (meissner@osf.org) - * c-decl.c (init_decl_processing): Make -fno-builtin supress all - builtin functions in the user's name space like memcpy, strlen, - etc. + * i386/osfrose.h, i386/osfelf.h (CPP_SPEC): If buliding for shared + libraries, define __SHARED__. -Sat Apr 11 14:00:53 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i386/osfrose.h (FUNCTION_PROFILER): If half-pic, call mcount in a + half-pic fashion. + (FUNCTION_PROLOGUE): If half-pic call through _mcount_ptr in a + half-pic fashion. - * rs6000.h (LEGITIMIZE_ADDRESS): Add missing force_reg call. - Jump to WIN when we do something. + * halfpic.c (half_pic_external): New function to declare a halfpic + identifier as always external. - * rs6000.c (non_{short,add,logical,and}_cint_operand): New functions. - * rs6000.h (PREDICATE_CODES): Add these predicates. - * rs6000.md (addsi3, andsi3, iorsi3, xorsi3, cmpsi3): Remove - define_expands; instead, add define_split for long constants. + * halfpic.h (half_pic_external): declare function. + (HALF_PIC_EXTERNAL): Declare accessor macro. - * combine.c (try_combine): Try to split the pattern using - split_insns before trying find_split_point. - (find_split_point, case MEM): Try to split an invalid address that - is a PLUS with a CONST_INT. +Fri Oct 8 15:03:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * combine.c (try_combine): Correctly check if an auto-inc - side-effect has been duplicated. + Cygnus<->FSF C++ front-end merge. + Thu Oct 7 11:45:32 1993 Jason Merrill (jason@deneb.cygnus.com) - * expr.c (expand_expr, case PARM_DECL): Return zero of proper mode - if no DECL_RTL. - - * tree.c (save_expr): Must do something with read-only tree that - has side-effects. - (stabilize_reference_1): Don't ignore read-only trees. + * Makefile.in (CPLUS_OBJS): Change error.o to cp-errfn.o - * reload.c (find_replacement): New function. - * reload.h (find_replacement): Declare it. - * reload1.c (gen_input_reload): Use it to ensure substitutions - get done if we need to recreate a PLUS. + * cp-*.c, cp-parse.y: Rename lang_error and its kin to cp_error + and the like to accomodate rms's belief structure. -Sat Apr 11 14:00:02 1992 John F Carr (jfc at Achates.mit.edu) + * error.c: Moved to cp-errfn.c to accomodate rms's belief structure - * cse.c (cse_end_of_basic_block): Don't stop scanning insns if a - jump is found that can't be followed. + Wed Oct 6 15:05:49 1993 Jason Merrill (jason@deneb.cygnus.com) - * genextract.c: Make insn_extract copy the address of - recog_operand and recog_operand_loc into register variables. + * cp-pt.c (mangle_class_name_for_template): Always use type_as_string + for printing out type parameters. Nuke id and type variables. -Sat Apr 11 13:59:17 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-error.c (dump_expr, INTEGER_CST): Support printing of character + literals and large integers + (dump_char): New function + (dump_type): Deal with ** and *& more prettily - * c-parse.y (stmt): Parse entire parens of `for' - before actually starting the loop. + * cp-pt.c (mangle_class_name_for_template): Strip out code for + printing template parameters, replace with call to expr_as_string. -Sat Apr 11 10:35:06 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) + * cp-method.c (build_overload_value): descend through + TREE_OPERAND on NOP_EXPRs as well as NON_LVALUE_EXPRs. - * caller-save.c (restore_referenced_regs): Do not call XEXP on - reg_equiv_address since reg_equiv_address is already an address. + * cp-decl.c (poplevel_class): Add assertion that + class_binding_level is not NULL. - * expr.c (expand_builtin, case SQRT): Note the dangers involved in - changing the argument test condition. + Tue Oct 5 11:11:25 1993 Jason Merrill (jason@deneb.cygnus.com) - * m68k.md (sqrtdf2): New pattern to take advantage of the 68881 - sqrt function. + Patches to support proper handling of system includes without munging: -Fri Apr 10 18:37:08 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * cp-lex.h: Declare in_c_header, a flag meaning 'implicitly wrap this + file in extern "C" { }'. - * hp800.c (output_function_epilogue): Output code to restore gr2 in - non-frame-pointer case correctly. + * cp-lex.c: Define in_c_header. + (check_newline): If in_c_header when changing files, + pop_lang_context(). + (check_newline): If "4" seen on #line line, push_lang_context(C). -Fri Apr 10 15:24:57 1992 Michael Meissner (meissner@osf.org) + * cccp.c: Add a new field c_system_include_path to struct + file_name_list which indicates that the directory contains C-language + system includes. + (*various*): Set this flag correctly + (is_system_include): Return 2 if C-language system include. + (output_line_command): Output " 4" after " 3" for C-language system + include. - * decrose.h (TARGET_MEM_FUNCTIONS): Define, memcpy/memset are - provided. + * cp-tree.h (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Coerce X to boolean + value - * i386rose.h (TARGET_MEM_FUNCTIONS): Define, memcpy/memset are - provided. + Mon Oct 4 17:03:48 1993 Jason Merrill (jason@deneb.cygnus.com) - * encrose.h (TARGET_MEM_FUNCTION): Define, memcpy/memset are - provided. + * cp-tree.h: Add declaration for flag_external_templates - * mips-tfile.c (copy_object): Omit the test for zero flags, since - MIPS vendors are now putting bits in there. + * cp-decl.c (start_decl): Don't declare flag_external_templates - * mips-svr4.h (HAVE_ATEXIT): Define, atexit is provided. - (TARGET_MEM_FUNCTIONS): Define, memcpy/memset are provided. + * cp-pt.c: Ditto - * mips-sysv.h (TARGET_MEM_FUNCTIONS): Define, memcpy/memset are - provided. + * cp-parse.y (template_instantiate_once): Ditto - * mips-news5.h (TARGET_MEM_FUNCTIONS): Define, memcpy/memset are - provided. - (getpagesize): Define a getpagesize that uses sysconf, just like the - MIPS V.4 port. + * cp-lex.c (reinit_parse_for_method): Ditto + (cons_up_default_function): Ditto + (extract_interface_info): Don't set interface_unknown + if (processing_template_defn && !flag_external_templates) - * mips.c (output_block_move): Don't emit ulw/usw if GAS is the - assembler, use the lwl/lwr/swl/swr building blocks instead, since - GAS doesn't yet support the ulw/usw macro instructions. + * cp-error.c (dump_type): Deal properly with pointers to member + functions. - * configure (mips-sgi-irix4): Use config/iris4.h instead of - config/iris.h. + * cp-pt.c (instantiate_class_template): If !flag_external_templates, + increment interface_unknown so that nested classes will be dealt with + properly. + (end_template_instantiation): If !flag_external_templates, + decrement interface_unknown. - * iris4.h (new file): Just like iris.h, atexit is provided (unlike - IRIX revision 3). + * cp-lex.c (cons_up_default_function): Remove redundant check + for processing_template_defn && !flag_external_templates + (reinit_parse_for_method): Ditto - * iris.h (TARGET_MEM_FUNCTIONS): Define, memcpy/memset are provided. + * cp-parse.y (template_instantiate_once): Don't mess with + interface_unknown -Fri Apr 10 11:59:02 1992 James Van Artsdalen (james at bigtex.cactus.org) + Mon Oct 4 15:47:34 1993 Mike Stump (mrs@cygnus.com) - * i386.md (cmpstr patterns): Correctly handle zero length - compares. Rewrite to avoid needing scratch register. + * cp-decl.c (duplicate_decls): Move setting of TREE_CHAIN after + all possible return 0;s as we only want to do this when we know + that we are dealing with a duplicate. -Thu Apr 9 14:05:04 1992 Michael Collison (collison at osf.org) + * cp-decl.c (start_function): Remove my_friendly_abort 19. Allows + one to declare a built-in as extern inline. - * i386rose.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): Fix these to - avoid printing NaNs, and infinity. + Mon Oct 4 12:47:33 1993 John F Carr (jfc@mit.edu) -Thu Apr 9 11:34:31 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-lex.c (consume_string): Change variable `c' to int so return + value of getch can be assigned to it safely. Compare return value + of getch to EOF, not -1. - * m88kluna.h (DEFAULT_GDB_EXTENSIONS): Define as 0. + Mon Oct 4 11:42:46 1993 Jason Merrill (jason@deneb.cygnus.com) -Wed Apr 8 20:21:59 1992 Michael Meissner (meissner@osf.org) + * toplev.c (error and its kin): Use #defines for the argument + lists for ease of adding arguments, and of moving to vfprintf when + dje adds it. - * halfpic.c (all functions): Add a hash table for the lookup instead - of linear search. Don't use bits in the IDENTIFIER node, store the - information in the hash table. Always rebuild the SYMBOL_REF - returned by half_pic_ptr, instead of storing it away, since the RTL - gets reused at the end of the function. - (half_pic_declare): New function, called when a label is laid down - to say that it is no longer half-pic. + * error.c (lang_thing and its children): Do the same thing. - * halfpic.h (half_pic_declare, HALF_PIC_DECLARE): Add function - defintion, and accessor macro. + * cp-typeck.c (build_binary_op): Do away with the kludge, now that + error accepts more arguments. - * mips.h (HALF_PIC_DECLARE): Add dummy macro if not OSF/rose. - (ASM_DECLARE_OBJECT_NAME): Invoke HALF_PIC_DECLARE on name. - (ASM_DECLARE_FUNCTION_NAME): Ditto. - (*_SECTION_ASM_OP): Put the leading tab back in. + Sun Oct 3 16:34:39 1993 Jason Merrill (jason@deneb.cygnus.com) - * mips.md (dslot attribute): 'pic' type requires a delay slot, since - it is really a load. - (movsi): Make movsi a define_expand, and if it's moving the address - of a half-pic item into a register, convert it into a load. - (movsi_internal): The old movsi define_insn renamed. - (movstrsi_internal): Add '=' constraint on all stores and clobbers. + * cp-error.c: Remove all traces of in_parmlist - * decrose.h (LINK_SPEC): If not -noshrlib or -pic-none, pass - -warn_nopic. Allow user to pass -noshrlib directly. + Sun Oct 3 13:54:57 1993 Mike Stump (mrs@cygnus.com) -Wed Apr 8 00:11:56 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * cp-call.c (convert_harshness_ansi, convert_harshness_old): Handle + pointer to function members properly. - * sparc.h (MOVE_MAX): Set to 8 instead of 4. + Fri Oct 1 16:42:30 1993 Mike Stump (mrs@cygnus.com) - * sched.c (sched_analyze_2): Don't abort if find note before a CC0 - using insn. + * cp-error.c (dump_function_decl, dump_function_name): Make static + to match prototype. - * sparc.h (ADDITIONAL_REGISTERS_NAMES): Add. Define fake reg name - ccr, for use in asm clobbers. + Fri Oct 1 15:23:31 1993 Mike Stump (mrs@cygnus.com) - * sparc.h (TARGET_FORCE_ALIGN): Add comment explaining that it - is for experimental purposes only. - (FIRST_PARM_OFFSET): Add 4 when TARGET_FORCE_ALIGN to ensure that - stack is double-word aligned. - (FIRST_PARM_CALLER_OFFSET): Delete obsolete macro. + * cp-typeck.c (build_ptrmemfunc): Move some code into the virtual + conditional part. Fixes problem with core core dumping when the + class that we want to build a pointer to member function for doesn't + have any virtual functions. - From Tom Wood: - * unroll.c (final_giv_value): Put the subtracts in the right place. + Thu Sep 30 18:15:29 1993 Jason Merrill (jason@deneb.cygnus.com) - * sparc.c (compute_last_arg_offset): Delete, no longer needed. - (FRAME_POINTER_REQUIRED): Do not depend on frame size. + * cp-parse.y (id_scope): Print the name of the invalid scope. + (unary_expr): Add .scope new typespec '(' typespec ')' expansion + which just gives an error. -Tue Apr 7 22:36:33 1992 Michael Meissner (meissner@osf.org) + * cp-typeck.c (build_binary_op): Print more helpful message for + a missing member operator (print the desired type involved). + Very kludgey due to error()'s two-arg limit. - * halfpic.c (whole file): Flesh out initial half-pic implementation - for the OSF/1 reference ports. This is still a work in progress. + * error.c (lang_thing): Abort if more than NARGS (currently 2) are + passed, since this is likely to cause a seg fault elsewhere anyway. - * halfpic.h (toplevel): Add declarations for half_pic_finish and - half_pic_ptr. Add macros HALF_PIC_FINISH, HALF_PIC_PTR, and - HALF_PIC_PREFIX. + Thu Sep 30 14:19:28 1993 Jason Merrill (jason@deneb.cygnus.com) - * mips.h (call_memory_operand): Delete call_memory_operand - function declaration. - (PREDICATE_CODES): Ditto. - (CONSTANT_ADDRESS_P): Correctly reject half-pic addresses. + * g++int.texi: Add error reporting section, make `makeinfo'able - * mips.c (call_memory_operand): Delete function. + * cp-type2.c (my_friendly_abort): Deal with recursive calls - * mips.md (call* patterns): Use memory_operand instead of - call_memory_operand for predicates. Use the test not register and - not CONSTANT_ADDRESS_P instead of call_memory_operand in the - define_expand body to test whether the function address needs to be - forced to a register. + Thu Sep 30 12:24:33 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * decrose.h (HALF_PIC_DEBUG): Define as true if -mdebugb, to debug - the half-pic code, just like debugging normal addressing. - (CPP_SPEC): Use the ____ form of the language macros instead - of __. - (LINK_SPEC): If -pic-lib and not -noshrlib, pass -warn_nopic. - (LIB_SPEC): Don't pass -L/usr/ccs/lib. + * cp-decl2.c (grok_array_decl): Don't pedwarn on reversing the array + and its index in `a[b]'. - * x-decrose (CCLIBFLAGS): Pass -pic-extern when building libgcc1.a. - (LIBGCC2_CFLAGS): Pass -pic-extern when building libgcc2.a. + * cp-typeck.c (build_conditional_expr): Make pointer type mismatch + in a conditional expression get a pedwarn. + (build_binary_op_nodefault): Make comparison between different + pointer types lacking a cast get a pedwarn. + (build_modify_expr): Don't strip the NOP_EXPRs, since we're using + the rhs in a non-lvalue context. + (convert_for_assignment): Allow conversion of 0 to a pointer, but + not a 0 that results from casting or folding. -Tue Apr 7 19:00:56 1992 Tom Wood (wood at dg-rtp.dg.com) + Thu Sep 30 11:24:59 1993 Jason Merrill (jason@deneb.cygnus.com) - * xm-m88k.h (NO_SYS_SIGLIST): Not provided by the 88open standards. + * cp-typeck.c (build_modify_expr): For memberwise assignment, + put nop_expr (reference_type (lhstype)) at the end of of the list so + that the expression has the correct type. - * m88k.c (output_ascii): Generalize to support ident - * m88k.h (ASM_OUTPUT_IDENT, ASM_OUTPUT_ASCII): Use output_ascii. + * error.c (lang_thing): Don't rely on STDC array initialization - * m88k.c, m88k.md, m88k.h: Integrate all changes to support the m88110. + Tue Sep 28 18:20:05 1993 Mike Stump (mrs@cygnus.com) -Mon Apr 6 22:51:02 1992 John Wroclawski (jtw@lcs.mit.edu) + * cp-init.c (build_virtual_init): Use get_binfo and + convert_pointer_to_real, to find the right basetype to convert to, + instead of trying to use convert_pointer_to, as convert_pointer_to + doesn't handle complex MI situations. Cures a bogus "cannot + convert a pointer of type `B' to a pointer of type `A'" when the + compiler is initializing virtual table pointers. - * mips-tfile.c (read_seek): Fix argument order in calls to - fatal. + Mon Sep 27 14:54:42 1993 Mike Stump (mrs@cygnus.com) -Mon Apr 6 21:17:38 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) + * cp-call.c (build_method_call): Use get_binfo and + convert_pointer_to_real, to find the right basetype to convert to, + instead of trying to use convert_pointer_to, as convert_pointer_to + doesn't handle complex MI situations. Cures a bogus "cannot + convert a pointer of type `B' to a pointer of type `A'" when the + compiler is setting up the `this' pointer. + * cp-cvt.c (convert_pointer_to): Just call convert_pointer_to_real + to implement functionality. + * cp-cvt.c (convert_pointer_to_real): New routine. Uses new + functionality in get_base_distance to figure out which exact + parent we want to convert to. + * cp-search.c (get_base_distance_recursive, get_base_distance): + Modify to support searching for a specific PARENT given as a binfo + from our hierarchy. + * cp-typee.h (convert_pointer_to_real): Declare new routine. - * merged in Cygnus sources. + Mon Sep 27 13:02:51 1993 Jason Merrill (jason@deneb.cygnus.com) - Mon Apr 6 15:26:09 1992 Mike Stump (mrs@cygnus.com) + * cp-type2.c (my_friendly_abort): Undo previous change - * cp-spew.c (hack_more_ids): Reimplement. Change from Niklas - Hallqvist. + * cp-*.c: Use lang_error instead of error_with_decl, + error_with_aggr_type, etc. Not complete; I only changed the easy + cases and a few of the more obscure ones. Please convert calls + over when you're working on an appropriate section. - Thu Apr 2 02:36:36 1992 Mike Stump (mrs@rtl.cygnus.com) + * cp-method.c: Strip out error reporting code - * cp-*: Simplify DECL_NAME (TYPE_NAME into TYPE_IDENTIFIER. + * Makefile.in (CPLUS_OBJS): Add error.o and cp-error.o - * cp-call.c (build_method_call): Fix an error message. + * cp-error.c: New file, contains call-back functions for C++. + The actual output code is an extensively overhauled version of the + code from cp-method.c. + Don't call my_friendly_* to avoid undesirable recursion. - * cp-parse.y (LC): Renamed to left_curly. - (TYPENAME_SCOPE): Renamed to typename_scope. + * error.c: New file, provides call-back mechanism for language- + dependent error reporting. -Mon Apr 6 14:04:49 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + Fri Sep 24 13:52:27 1993 Jason Merrill (jason@deneb.cygnus.com) - * sparc.h (TARGET_HOPE_ALIGN): Fix typo, `-fast' -> `-dalign'. + * cp-type2.c (my_friendly_abort): Don't die quietly if + errorcount or sorrycount are positive, die loudly. - * expr.c (expand_expr, INDIRECT_REF case): Set MEM_IN_STRUCT_P if - this is an indirect of the address of an array, struct, or union. +Fri Oct 8 13:58:13 1993 Doug Evans (dje@cygnus.com) - * jump.c: Delete declaration of squeeze_notes. - (jump_optimize): Use new return value from squeeze_notes. - (squeeze_notes): Handle the case where START may be a note that - must be moved outside the range. Now returns the new start value. - * loop.c (find_and_verify_loops): Use squeeze_notes return value. - * stmt.c (expand_end_case): Call squeeze_notes before reorder_insns. - * rtl.h: Declare squeeze_notes. + * loop.c (scan_loop): When skipping consecutive insns, + don't count notes. - * rs6000.h (PTRDIFF_TYPE): Define to int. +Fri Oct 8 10:41:07 1993 Chip Salzenberg (chip@fin.uucp) - Mostly from tege@sics.se: - * sparc.c (eligible_for_epilogue_delay): Clarify comment. Delete - unreachable test of leaf_function. - (singlemove_string): Correct test for when can use sethi alone. - (output_function_prologue): Declare leaf_function. More - efficiently frame sizes greater than 4095. Correctly handle leaf - functions with frame greater than 4095. - (output_function_epilogue): Likewise. - (output_return): Likewise. + * c-common.c (check_function_format): Correct error in last + change. -Mon Apr 6 10:11:08 1992 Tim Moore (moore@defmacro.cs.utah.edu) +Fri Oct 8 08:10:03 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * config.sub : Add hp700 cpu type. - * configure : Make hp700-bsd and hp700-hpux cases, with use of gas - an option. - * hp700hpuxg.h, hp800hpuxg.h : New files for using gas under hpux. - * hp800.h (REGISTER_NAMES): Change to use %r style register names; - required to name PA-RISC 1.1 fp registers. - * x-hp800hpux : Don't invoke the assembler to compile alloca.c. - * README-PA-RISC: New file. + * c-parse.in (initdcl, notype_initdcl): Call push_momentary and + pop_momentary here. + (init): Not here. -Mon Apr 6 08:00:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Oct 8 06:35:07 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * reorg.c (relax_delay_slots): Don't get confused when a label - becomes zero (meaning end of function). + * dbxout.c (dbxout_type, case INTEGER_TYPE): Correctly check + for type smaller than `integer'. -Sun Apr 5 13:45:37 1992 Ron Guilmette (rfg at ncd.com) + * expr.c (expand_expr, case MAX_EXPR): Don't use TARGET directly + if it is a volatile MEM. - * i860.md (floatsidf3): Fixed to expand to a correct insn sequence. + * i386/t-aix, i386/t-isc, i386/t-osfrose, i386/t-sco, mips/t-osfrose: + Remove LIMITS_H; hasn't been used for a while. -Sun Apr 5 12:33:02 1992 John F Carr (jfc at Achates.mit.edu) + * configure: Add EXTRA_PASSES like we add EXTRA_HEADERS. + Correct EXTRA_HEADERS handling to accept multiple names. + (mips-*-*): Set extra_passes to mips-tfile and mips-tdump when + we use t-mips, t-bsd, t-svr[34], and t-ultrix. + * Makefile.in (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): + New rules. + * mips-tfile.c: Don't define memory functions on Alpha. + (Ptrdiff_t): Always `long'. + (WORD_ALIGN): Make portable. + * mips/t-bsd, t-mips, t-svr3, t-svr4, t-ultrix: Remove + definition of EXTRA_PASSES and remove rules for mips-* files. - * rs6000.h (EXTRA_CC_MODES, EXTRA_CC_NAMES): Add CCEQmode. - (SELECT_CC_MODE): Select it for equality comparison of comparison. - * rs6000.c (scc_comparison_operator): Reject improper use of - CCEQmode. - (ccr_bit): Handle CCEQmode, where bit is always third in field. - (print_operand, case 'E'): New case. - * rs6000.md: New pattern to compare two comparisons with - creqv/crxor. - Add peephole for two consecutive scc insns. + * dbxout.c (dbxout_parms): Don't confuse a parameter at an + offset of zero from AP or FP with one that has variable size. - * combine.c (subst, case FFS): (ffs (*_extend X)) -> (ffs X) - (make_compound_operation): Handle (and (rotate X C) M). + * calls.c (emit_library_call): Fix typo in last change; should + use Pmode instead of SImode. - * flags.h (flag_cse_skip_blocks): New variable. - * toplev.c (flag_cse_skip_blocks): Define it here. - (f_options): Add it to table. - (main): -O2 turns it on. - * cse.c (invalidated_skipped_{set,block}): New functions. - (enum taken): New value, AROUND. - (cse_end_of_basic_block): New argument SKIP_BLOCKS. If it is - nonzero, follow a branch around a block of code which contains - no labels and set status = AROUND for the jump. - (cse_main): Pass FLAG_CSE_SKIP_BLOCKS argument to - cse_end_of_basic_block. - (cse_basic_block): If jump status is AROUND, call scan_skipped_block - before following jump. +Fri Oct 8 00:34:39 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Apr 5 04:16:46 1992 James Van Artsdalen (james at bigtex.cactus.org) + * c-decl.c (finish_decl): Error if block-scope static var + has incomplete type. - * optabs.c (emit_cmp_insn): Add missing parameter type declaration. + * expr.c (expand_expr, case VAR_DECL): If decl wasn't laid out, + lay it out now, and fix the rtl's mode. - * expr.c (expand_builtin, case SQRT): Fix typo emitting insns. - Reformat to look like the rest of gcc. Use accessor macros to - access fields of an RTX. Make comments match code. +Thu Oct 7 12:30:10 1993 Chip Salzenberg (chip@fin.uucp) - * i386.md (cmpstr patterns): Handle zero length compares. + * c-decl.c (complete_array_type): Correctly set MAXINDEX to + one less than array size. -Sat Apr 4 04:40:58 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Oct 7 20:44:41 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * reload.c (find_equiv_reg): Avoid passing zero to true_regnum. + * c-typeck.c (build_binary_op): For *_DIV_EXPR, set shorten based + on orig_op0. - * expr.c (expand_expr, case COMPONENT_REF): Handle case where we - are extracting a field of a constant. +Thu Oct 7 18:19:17 1993 Jim Wilson (wilson@cygnus.com) - * a29k.h ({TEXT,READONLY_DATA,DATA}_SECTION_ASM_OP): Put tab back. + * xm-mips.h (HAVE_VPRINTF): Correct typo, is VPRINTF not VFPRINTF. - * rs6000.c (output_epilog): Reduce number of lines generated to - write traceback table. + * Makefile.in (LIB2FUNCS): Add _fixtfdi, _fixunstfdi, _floatditf. - * combine.c (move_deaths): A destination is used in this insn - unless is it completely overwritten. +Thu Oct 7 14:58:02 1993 Michael Meissner (meissner@osf.org) -Sat Apr 4 04:39:16 1992 John Carr (jfc at ATHENA.MIT.EDU) + * configure (i386-osf): ELF on OSF/1 does not need collect2. - * expmed.c (store_bit_field, extract_bit_field): Remove redundant - tests for MEM. +Thu Oct 7 17:38:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-common.c (binary_op_error): Handle FLOOR_DIV_EXPR, FLOOR_MOD_EXPR, - *ROTATE_EXPR. - * c-typeck.c (build_binary_op): Handle FLOOR_MOD_EXPR. + * cccp.c (main): New option -lang-c-c++-comments. -Sat Apr 4 00:29:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Oct 7 16:40:38 1993 Michael Meissner (meissner@osf.org) - * c-decl.c (c_decode_option): `-' was missing in -Wno-redundant-decs. + * config/i386/osfrose.h (OSF_PROFILE_BEFORE_PROLOGUE): New macro + to determine whether profiling goes before the function prologue + or after. New style profiling goes before in order to save + getting and saving the function's callers address or have mcount + 'know' there is a frame pointer. Old style profiling using mcount + and some ELF PIC profiling goes after the prologue. + (FUNCTION_PROLOGUE): Redefine in order to get new style profiling + before the function prologue if desired. + (FUNCTION_PROFILER): Do not put a profile call if it already has + been put out in the prologue. Change new style profiling to call + through _mcount_ptr instead of _real_mcount. Propigate ROSE brain + damage regarding mcount being in the users name space to ELF. + (SUBTARGET_SWITCHES): Make -mmcount default again instead of + -mno-mmcount. - * Makefile.in (USE_COLLECT2, MAYBE_USE_COLLECT2): New variables. - (GCC_PARTS, native, install-common): Use USE_COLLECT2. - (toplev.o): Use MAYBE_USE_COLLECT2. - * configure: Let particular cases set use_collect2 - and have that control use of collect2 through editing Makefile. - Handle --with-gnu-as and --with-gnu-ld options. Ignore --with-*. - --with-gnu-ld turns off use_collect2. - * i386rose.h (CC1PLUS_SPEC): Deleted. + * i386.h (FINALIZE_PIC): Add macro to set the variable + current_function_uses_pic_offset_table if either -p or -a switches + are used. - * gcc.c (do_spec_1): In case 'D', strip final / from prefixes. +Thu Oct 7 17:07:57 1993 Ian Lance Taylor (ian@cygnus.com) - * c-decl.c (push_c_function_context): Add pedantic warning. + * rtl.c (byte_mode, word_mode): Move to emit-rtl.c. + (init_rtl): Move initialization of byte_mode and word_mode to + init_emit_once. + * emit_rtl.c (byte_mode, word_mode): Moved from rtl.c. + (init_emit_once): Moved in initialization of bytes_mode and + word_mode from init_rtl. - * collect2.c (main): Figure STANDARD_EXEC_PREFIX into clen. +Thu Oct 7 11:11:25 1993 Jason Merrill (jason@deneb.cygnus.com) - * c-typeck.c (get_spelling): Move alloca outside fn call. + * cccp.c (struct file_name_list): Add new field c_system_include_path. + (*various*): Set this flag correctly + (is_system_include): Return 2 if C-language system include. + (output_line_command): Output " 4" after " 3" for C-language system + include. -Fri Apr 3 16:36:54 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Oct 7 14:45:20 1993 Doug Evans (dje@canuck.cygnus.com) - * varasm.c (output_constant_def): Set MEM_IN_STRUCT_P if nec. + * Makefile.in (install-dir): Fix typo. + (install-common): Remove obsolete comment. + (install-common): Install native g++ only if not cross. -Fri Apr 3 05:32:39 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Oct 7 11:27:45 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88k.md (call_block_move{,_loop}): Don't write USE for regs - we don't set; remove unneeded CLOBBERs for call-used registers. + * calls.c (emit_library_call, emit_library_call_value): + Allocate a temp slot if arg must be passed by reference. - * caller-save.c (insert_save_restore): Abort rather than writing - out an insn having a null source or destination. + * gcc.c (read_specs): Fix call to bzero. - * explow.c (allocate_dynamic_stack_space): Don't reference - STACK_BOUNDARY if it isn't defined. +Thu Oct 7 08:53:57 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * explow.c (allocate_dynamic_stack_space): Don't use TARGET if it - isn't a pseudo reg. + * alpha.md: Clean up usage of commutative declarator `%'. -Fri Apr 3 01:50:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Oct 7 08:14:46 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * fixinc.svr4: Don't reconvert __i386 if have _ after. + * i860/xm-fx2800.h (HAVE_VPRINTF): Fix typo; was HAVE_VFPRINTF. - * c-decl.c (grokdeclarator): Use size_binop to get array hbound - 1. + * xm-alpha.h: Always declare malloc, realloc, etc, to be void *. - * enquire.c: Include sys/types.h. + * combine.c (force_to_mode): Sign-extend constant being truncated. - * c-typeck.c (check_format): Don't use type name for integer types - or pointers to them. +Wed Oct 6 18:53:43 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * explow.c (allocate_dynamic_stack_space): New arg KNOWN_ALIGN. - All callers changed. + * bi-lexer.c (xmalloc, xrealloc): Cast the result of malloc, realloc. -Thu Apr 2 15:24:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Oct 6 15:30:39 1993 Michael Meissner (meissner@osf.org) - * dbxout.c (dbxout_type): Output just xref for var-size struct/union. + * i386/osfrose.h (FUNCTION_PROFILER): Define to pass the function + address, its caller, and the unique label address through the + _real_mcount pointer, unless -mmcount is used, in which case use + the old calling sequence. + (SUBTARGET_SWITCHES): Add -mmcount, -mno-mcount support. - * reload.c (find_equiv_reg): In previous change, verify valtry != 0. +Wed Oct 6 15:29:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Thu Apr 2 08:34:38 1992 Michael Meissner (meissner@osf.org) + * pa.c (output_function_prologue): Pass on information about the + number of callee saved general and floating point registers which + are saved by the current function's prologue. + (hppa_expand_prologue): Keep track of the number of callee + register saves done for general and floating point registers. - * iris.h (SIZE_TYPE): Make type unsigned int, not unsigned long. - (PTRDIFF_TYPE): Define to be 'int', not 'long int'. - (WCHAR_TYPE): Define to be 'unsigned char', not 'int'. - (WCHAR_TYPE_SIZE): Define to be 8, not 32. +Wed Oct 6 13:50:03 1993 Ian Lance Taylor (ian@cygnus.com) -Thu Apr 2 06:01:07 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cexp.y (MAX_CHAR_TYPE_SIZE, MAX_INT_TYPE_SIZE, + MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define. + (yylex): Use them instead of the non-MAX versions, to avoid + dependencies on target_flags. - * fold-const.c (fold, case COND_EXPR): Add missing test for zero. +Wed Oct 6 13:47:13 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) - * expr.c (expand_expr, case ARRAY_REF): Handle case of constant - array whose initializer is a string. + * combine.c (try_combine): New variable i3_subst_into_i2. + Set it for special case of substituting i3 into i2. Use it near + end to detect when special case succeeded. Move i2notes to + i3notes for this special case. + (distribute_notes, REG_UNUSED case): Ignore all REG_UNUSED notes + except those from I3. - * optabs.c (emit_libcall_block): Don't move up insns that set - pseudos whose old values are used in previous insns. +Wed Oct 6 13:14:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * genattrtab.c (attr_rtx): Add some casts to int from enum rtx_code. + * c-typeck.c (build_c_cast): When making a CONSTRUCTOR, provide + the dummy first operand. -Thu Apr 2 04:20:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * real.c (real_value_truncate): Correct etrunci argument + in case SImode. - * xm-mipsnbsd.h: New file. - * configure (mips-sony-bsd*): Use that. +Wed Oct 6 06:55:05 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * stmt.c (expand_end_case): Move the convert_to_mode after emit_queue. + * final.c (asm_fprintf): Add cases for 'w' and 'l'. -Thu Apr 2 00:49:18 1992 James Van Artsdalen (james at bigtex.cactus.org) + * Makefile.in (bi-opcode.o): Includes hconfig.h. + * bi-lexer.c: Remove declarations of malloc and realloc. + * bi-opcode.c: Include hconfig.h. + * bi-parser.y: Remove declaration of malloc. - * stmt.c (expand_end_case): Fix typo. + * regclass.c (record_reg_classes): Check if operands are the same + by seeing if they are the same register. -Wed Apr 1 19:01:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cse.c (record_jump_cond): Rehash OP1 if OP0's insert_regs returns + nonzero. - * fold-const.c (size_int): Always switch to permanent_obstack - to make a node that will be saved + * calls.c (expand_call): Add yet another assignment to MEM_IN_STRUCT_P. -Wed Apr 1 15:36:19 1992 Michael Meissner (meissner@osf.org) +Wed Oct 6 00:08:28 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) - * xm-irix4.h (alloca.h): Don't include if not using the - GNU compiler, since the Silicon Graphics compiler's alloca complains - if the result of alloca is stored in something that is not a simple - variable. Just use the C version of alloca.c. + * sparc.c (uns_small_int, uns_arith_operand): New functions. + * sparc.md (umulsidi3): Use uns_arith_operand not arith_operand. + (const_umulsidi3): Use uns_small_int not small_int. -Wed Apr 1 14:42:24 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) + * sparc.h (SELECT_CC_MODE): Add support for ASHIFT. + * sparc.md (ashlsi3+1, ashlsi3+2): New patterns to replace shift + and compare with addcc. - * pyr.md (HImode compare recognizers): Don't match if subsequent - branch has unsigned predicate. +Tue Oct 5 16:25:32 1993 Jim Wilson (wilson@cygnus.com) -Wed Apr 1 14:20:13 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * sched.c (sched_analyze_2): Make volatile asms depend on all + pseudo registers. - * sparc.c (output_function_epilogue): Drop unused true_epilogue - parameter. Delete obsolete tail-call support code, which worked - by passing -1 for leaf_function. - (tail_call_valid_p): Delete obsolete function. - (output_tail_call): Likewise. - * sparc.h (TARGET_TAIL_CALL): Delete obsolete option. - (FUNCTION_EPILOGUE): Fix call to output_function_epilogue. - * sparc.md (tail_call): Delete obsolete pattern. + * mips.c (mips_expand_prologue): Handle structure return values as + the first argument if necessary. - * rs6000.c (output_epilogue): Output a traceback table. + * mips.h (CLASS_MAX_NREGS): For DFmode and !TARGET_FLOAT64 case, + return 2 not 4. + (CLASS_UNITS): Take size parameter instead of num (words). -Wed Apr 1 06:42:54 1992 Tom Wood (wood at dg-rtp.dg.com) + * c-typeck.c (output_init_element): When try to copy FIELD if it + is an interger constant, first check to make sure it is nonzero. - * m88k.h: Override ASM_OPs added to svr4.h. + * reorg.c (fill_simple_delay_slots): When take insn from a + following unconditional branch target, if new_label is zero, must + set it to the result of find_end_label (). -Wed Apr 1 03:12:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * iris3.h (INITIALIZE_TRAMPOLINE, TRANSFER_FROM_TRAMPOLINE): + Delete. + * mips.h (INITIALIZE_TRAMPOLINE): Delete #ifndef/#endif. Change + function name from __enable_execute_stack to __gcc_flush_cache. + (TRANSFER_FROM_TRAMPOLINE): Likewise. Delete code calling + mprotect. Uncomment code calling cacheflush. - * emit-rtl.c (operand_subword): Swap words from const_double if nec +Tue Oct 5 16:11:53 1993 Jason Merrill (jason@deneb.cygnus.com) - * ns32k.h (GO_IF_INDEXING): New arg MODE; caller changed. - Pass to INDEX_TERM_P. + * toplev.c (error and its kin): Use #defines for the argument + lists for ease of adding arguments and add one arg. -Tue Mar 31 18:10:10 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Oct 5 16:05:11 1993 Tor Egge (tegge@pvv.unit.no) - * genattrtab.c (check_attr_value): Fix some backwards tests. + * cccp.c (rescan): Don't expand an identifier after a '#'. - * expr.c (move_by_pieces{,_ninsns}): Only look at MODE_INT modes. +Tue Oct 5 15:15:52 1993 Chip Salzenberg (chip@fin.uucp) - * fold-const.c (fold, case COND_EXPR): Fix typo in last change. + Move format warning code to c-common.c for use with C++. + * c-tree.h (init_function_format_info, record_function_format, + check_function_format): Declare. + * c-common.c: Include ; avoid home-grown ISDIGIT. + (decl_attributes): Call record_function_format with DECL_NAME + and also DECL_ASSEMBLER_NAME. + (struct format_char_info): Moved here from c-typeck.c. + (print_char_table): Likewise; renamed from print_table. + (scan_char_table): Likewise; renamed from scan_table. + (struct function_format_info): Likewise; add assembler_name. + (function_format_list): Make list, not array. + (init_function_format_info): Likewise; renamed from + init_format_info_table. + (record_function_format): Likewise; renamed from + record_format_info; record assembler_name. + (check_format_info): Likewise; renamed from check_format. + (check_function_format): New interface that does not require + knowledge of struct function_format_info. + * c-decl.c (init_decl_processing): Call init_function_format_info. + * c-typeck.c (struct format_char_info, print_table, scan_table, + struct function_info, function_info_entries, function_info_table, + record_format_info, init_format_info_table, check_format): Moved + to c-common.c. + (build_function_call): Call check_function_format. - * stor-layout.c (layout_record): Add missing call to size_int. +Tue Oct 5 14:08:18 1993 Wolfgang Stukenbrock (wgstuken@informatik.uni-erlangen.de) - * expr.c (do_store_flag): Handle case where EXP is a TRUTH_NOT_EXPR. + * gcc.c (choose_temp_base): Correct size allocated for temp_filename. -Tue Mar 31 17:18:20 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) +Tue Oct 5 06:34:34 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-decl.c (init_decl_processing): Enable `sqrt'. - * expr.c (expand_builtin, case SQRT): By default check that the - argument to sqrt is in sqrt's domain. If the argument is not in the - domain, then call the library function. Skip argument checking if - -ffast-math is in use. + * tree.c (contains_placeholder_p): Return 0 for CONSTRUCTOR. + (substitute_in_expr): Don't allow CONSTRUCTOR. - * flags.h (flag_fast_math): Declare new variable. - * toplev.c (f_options): Add flag_fast_math to table. + * tree.c (make_node, case 'd'): Refine in which obstack + PARM_DECLs are allocated. -Tue Mar 31 17:11:09 1992 Per Bothner (bothner@wombat.gnu.ai.mit.edu) + * calls.c (expand_call): Properly test if we need to promote + operand; use convert_modes instead of convert_to_mode. + * expr.c (convert_modes): Properly handle extending constants + since we might be changing signedness. - * cccp.c: Add new flag -nostdinc++ to disable searching - standard C++-specific include directories. This is useful - for building libg++. - * gcc.c: Pass -nostdinc* to cpp, not just -nostdinc. - * cpp.texi: Document -nostdinc++. + * gcc.c (read_specs): Make a null entry at end of `compilers' + when reading new entry from file. -Tue Mar 31 15:32:34 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * tree.c (contains_placeholder): Return 0 for WITH_RECORD_EXPR. - * gcc.c (link_command_spec): Use %l before %X. + * bi-arity.c, bi-lexer.c, bi-opname.c, bi-parser.y: Include hconfig.h. + * Makefile.in (bi-arity.o, bi-lexer.o, bi-opname.o, bi-parser.o): + Likewise. - * svr4.h (MULTIBYTE_CHARS): Turned off. + * bc-emit.c (dconst[012], dconstm1): Remove redundant definition. - * sun3.h, sparc.h (LINK_SPEC): Inhibit -e if -nostdlib. +Tue Oct 5 06:24:43 1993 Lisa Repka (lisa@MicroUnity.com) - * collect2.c (my_strerror): Renamed from strerror. + * varasm.c (decode_rtx_const, case CONST_DOUBLE): Only use mode + of X if it is not VOIDmode. - * reload.c (find_equiv_reg): Find constants in REG_EQUIV notes. +Tue Oct 5 00:45:30 1993 James Van Artsdalen (james@bigtex.cactus.org) - * m68k.h (PRINT_OPERAND_PRINT_FLOAT): Fix typo in #ifdef. + * i386/i386.c (output_to_reg): Handle XFmode write to MEM by + reading back value after write if source doesn't die. + * i386/i386.md (pushxf,movxf,extenddfxf2,extendsfxf2): Likewise. + + * i386/i386.md (movxf,extenddfxf2,extendsfxf2): Don't emit fld + before calling output_to_reg: output_to_reg does that now. + + * i386/i386.h (FIXED_REGISTERS): Don't fix hard reg st7 if XFmode + is enabled. + + * reg-stack.c (move_for_stack_reg): If the 387 regstack is not + full when doing an XFmode write from 387 to MEM, copy the source + reg and write the copy. + +Mon Oct 4 18:40:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * regclass.c (record_reg_classes): There is no alt_cost + for a pair of matching args if they are the same pseudo reg. + + * varasm.c (bc_output_ascii): New function. + (assemble_string): Use it. + (assemble_static_space, assemble_variable): Put braces around uses + of BC_OUTPUT_COMMON and BC_OUTPUT_LOCAL. + +Mon Oct 4 18:03:04 1993 Stephen L Moshier (moshier@world.std.com) + + * expr.c (bc_init_mode_to_opcode_maps, bc_expand_expr): Cast enum + array indices to int. + (bc_load_memory, bc_store_memory): Likewise. + (bc_runtime_type_code): Cast enum logical operand to int. + * bc-emit.c (bc_emit_bytecode): Cast enum array indices to int. + * bc-optab.c (deduce_conversion, emit_typecode_conversion): Likewise. + (bc_init_mode_to_code_map, preferred_typecode): Likewise. + (bc_expand_binary_operation, bc_expand_unary_operation): Likewise. + (bc_expand_increment): Likewise. + * bc-typecd.h: Cast enum arithmetic and logical operands to int. + +Mon Oct 4 05:52:21 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * a29k.c (incoming_regs): Only use 16 registers for parameter + passing. + + * tree.c (build_string): Remove previous change and comment why + string text has to be in saveable_obstack. + * varasm.c (output_constant_def): Remove last change; no longer needed. + +Sun Oct 3 18:51:19 1993 James Van Artsdalen (james@bigtex.cactus.org) + + * i386/i386.c (output_op_from_reg): Handle 3-word XFmode values. + (output_to_reg): Likewise. + (output_move_double): Handle XFmode operands. + (output_move_const_single): Use REAL_VALUE_TO_TARGET_SINGLE. + (print_operand): Add letter `T', size `12'. Use REAL_VALUE + macros to convert floating point operands. + (convert_387_op): Add XFmode to case FLOAT_EXTEND. + + * i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Define as 96. + (FIXED_REGISTERS): If XFmode enabled, hard reg st7 is fixed. + (ASM_OUTPUT_DOUBLE): Use REAL_VALUE_... macros. + (ASM_OUTPUT_FLOAT): Likewise. + (ASM_OUTPUT_LONG_DOUBLE): New macro. + (PRINT_REG): Add size case 12. + (DEBUG_PRINT_REG): Likewise. + + * i386/i386.md: (tstxf_cc, tstxf, cmpxf, cmpxf_cc, cmpxf_ccfpeq, + swapxf, movxf, extenddfxf2, extendsfxf2, truncxfsf2, truncxfdf2, + fixuns_truncxfsi2, fix_truncxfdi2, fix_truncxfsi2, floatsixf2, + floatdixf2, addxf3, subxf3, mulxf3, divxf3, negxf2, absxf2, + sqrtxf2): New patterns. + + * i386/next.h,i386/osfrose.h,i386/sysv4.h + (ASM_OUTPUT_DOUBLE,ASM_OUTPUT_FLOAT): Use REAL_VALUE_ macros. + (ASM_OUTPUT_LONG_DOUBLE): New macro. + + * i386/bsd.h,i386/sco4.h (ASM_OUTPUT_DOUBLE): Deleted, + use default version. + + * i386/next.h,i386/sco.h (VALUE_REGNO): Add case XFmode. + +Sun Oct 3 16:35:05 1993 Michael Meissner (meissner@wombat.gnu.ai.mit.edu) + + * collect2.c (read_file): Fix typo in prototype. + +Sun Oct 3 18:32:46 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in (bytecode.realclean): Don't delete bi-lexer.c. + +Sun Oct 3 19:45:02 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * gcc.c (default_compilers): Add rules for Ada. + * toplev.c (lang_options): Add temporary parameter "gnat". + + * tree.c (staticp): DECL_EXTERNAL is not defined for CONSTRUCTOR. + + * tree.def (PLACEHOLDER_EXPR, WITH_RECORD_EXPR): New tree codes. + * tree.c (save_expr): Don't evaluate something containing a + PLACEHOLDER_EXPR. + (contains_placeholder_p, substitute_in_{expr,type}): New functions. + * tree.h: Add declarations for new functions. + * calls.c (expand_call): Pass objects who size depends on the + contents of the object by invisible reference. + * function.c (assign_parms): Likewise. + * explow.c (expr_size): If the size contains a PLACEHOLDER_EXPR, + surround it with a WITH_RECORD_EXPR. + * expr.c (store_expr): Use expr_size value, not size_int. + (store_constructor): Handle case of variable position and allow + it to contain a PLACEHOLDER_EXPR. + (get_inner_reference): Make a WITH_RECORD_EXPR if required. + (expand_expr, case PLACEHOLDER_EXPR, WITH_RECORD_EXPR): New cases. + (expand_expr, case ARRAY_REF): Make WITH_RECORD_EXPR expressions + when needed. + + * calls.c (expand_call): Set MEM_IN_STRUCT_P in stack slot if + appropriate. + + * varasm.c (output_constant_def): Copy string as well as string + node when deferring output of constants. + + * configure (i370-*): Renamed tm-mvs.h to mvs.h. + * config/i370/mvs.h: Renamed from tm-mvs.h. + +Sun Oct 3 12:50:57 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) + + * arm.h (function definitions): Add new functions definitions. + (arm_condition_codes): make this externally visible. + (STARTFILE_SPEC): Move to riscix.h and riscix1-1.h. + (CPP_PREDEFINES): Move old defn to riscix.h and riscix1-1.h, add + generaic default definition. + (CPP_SPEC): Define for generic implementation, pass cpu variant + defn to pre-processor. + (TARGET_VERSION): Indicate this is generic variant. + (TARGET_6): New macro, set when compiling for arm6 in 32bit mode. + (ARM_EXTRA_TARGET_SWITCHES): New macro, hook for os dependent files + to make additions to TARGET_SWITCHES. Default to null. + (processor_type): new enum type defining processor variant for + attributes. + (arm_cpu_attr): Macro to get at cpu type from attributes. + (TARGET_WHEN_DEBUGGING): remove non-generic definitions + (OVERRIDE_OPTIONS): Set processor type for attributes. + (OPTIMIZE_OPTIONS): Set flag_force_mem. + (PROMOTE_MODE): Promote byte constants unsigned. + (ENABLE_XF_PATTERNS): Define, do not enable XFmode insns by default + -- it tends to crash riscix. + (REAL_ARITHMETIC): Define. + (CONSTANT_ALIGNMENT): Align string constants so that we can access + them faster. + (TARGET_FLOAT_FORMAT): Is IEEE_FLOAT_FORMAT. + (FIRST_PSEUDO_REGISTER): Increase to support fake registers. + (FIXED_REGISTERS): Describe behaviours of fake regs. + (CALL_USED_REGISTERS): Likewise. + (HARD_REGNO_NREGS): Deal with fake frame and argument registers. + (HARD_REGNO_MODE_OK): Likewise. + (FRAME_POINTER_REGNUM): Make this a fake register) + (HARD_FRAME_POINTER_REGNUM): Define. set to reg 11 (fp). + (FRAME_POINTER_REQUIRED): It is if TARGET_APCS. + (ARG_POINTER_REGNUM): Set to new fake register. + (CC_REGNUM): Define, set to fake register. + (REG_ALLOC_ORDER): Adjust to get better allocation in small functions. + Add fake registers. + (REG_CLASS_CONTENTS): Add new fakes. + (REGNO_REG_CLASS): Likewise. + (CONST_OK_FOR_LETTER_P): Add recognition for negated and inverted + constant integers. + (EXTRA_CONSTRAINT): Add 'Q' to recognize MEM (REG). Add 'S' for + symbols in the text segment. + (CONST_DOUBLE_OK_FOR_LETTER_P): Add 'H' for negated fp constants. + (SECONDARY_OUTPUT_RELOAD_CLASS): Define. Needed to store DFmode held + in SImode regs. + (REGISTER_MOVE_COST): Make this more expensive than memory for + float<->int moves. + (USE_RETURN_INSN): Define, call function. + (ELIMINABLE_REGS): Define to eliminate fake regs. + (CAN_ELIMINATE): Likewise. + (INITIAL_ELIMINATION_OFFSET): Likewise. + (INITIAL_FRAME_POINTER_OFFSET): Delete. + (REGNO_OK_FOR_BASE_P): Add fake regs. + (MAX_REGS_PER_ADDRESS): Is only 2; shifting by reg not allowed in addr. + (CONSTANT_ADDRESS_P): Accept addresses with the symbol_ref flag set. + (LEGITIMATE_CONSTANT): Accept negated floats; also constant addresses. + (ENCODE_SECTION_INFO): Mark strings that will go in the text segment + with the symbol_ref flag. + (REG_OK_FOR_BASE_P [!REG_OK_STRICT]): Add new fakes. + (REG_OK_FOR_PRE_POST_P [!REG_OK_STRICT]): Likewise. + (REG_OK_FOR_PRE_POST_P [REG_OK_STRICT]): Likewise. + (GO_IF_LEGITIMATE_INDEX): constant FLOAT indicees must be word + aligned; be more restrictive about multi-reg ints; allow all legal + shift operations; check boundary conditions more carefully. + (DEFAULT_SIGNED_CHAR): Remove os dependent alternatives. + (LOADS_ZERO_EXTEND): Define; only QImode loads do. + (HAVE_VPRINTF): Move to xm-arm.h + (SHIFT_COUNT_TRUNCATED): Not true -- Delete. + (CONST_COSTS): Define; give the cost of constants. + (RTX_COSTS): Define; give the cost of rtl. + (MEMORY_MOVE_COST): Is expensive. + (BRANCH_COST): Set high to get conditional instructions. + (ADDRESS_COST): Are all the same. + (NOTICE_UPDATE_CC): Delete. + (EXTRA_CC_MODES): Add a no overflow mode and floating point modes. + (EXTRA_CC_NAMES): Likewise. + (SELECT_CC_MODE): Return the appropriate mode. + (STORE_FLAG_VALUE): Define. + (PREDICATE_CODES): Define, show what they are. + (ARM_OS_NAME): Supply generic version. + (ASM_FILE_START): Print appropriate OS name. + (REGISTER_NAMES): Add fakes. + (DBX_OUTPUT_MAIN_SOURCE_FILENAME): set desc field to compiler version + number expected by dbx (RISCIX hack). + (ASM_OUTPUT_INTERNAL_LABEL): Don't reset arm_ccfsm_state if label isn't + a code ('L') label. + (ASM_OUTPUT_LONG_DOUBLE): Define for XFmode. + (ASM_OUTPUT_DOUBLE): Use REAL_ARITMETIC routines. + (ASM_OUTPUT_FLOAT): Likewise. + (ASM_OUTPUT_OPCODE): Change of arm_ccfsm_state is now handled by insns + that need to change it. + (PRINT_OPERAND): %d is replaced by appropriate condition characters, + %D by the inverse of those given. CONST_DOUBLEs use REAL_ARITHMETIC + functions. + (PRINT_OPERAND_ADDRESS): Support all the shift types. + (INIT_CUMULATIVE_ARGS): Add missing bracket. - * Makefile.in (install-dir): Create include subdir. + * riscix.h: New file -- OS dependent defintitions for riscix 1.2 and + above. -Tue Mar 31 18:03:21 1992 Thorsten Ohl (ohl@apollo.desy.de) + * riscix1-1.h: New file -- OS dependent definitions for riscix before + version 1.2 - * x-apollo68 (CFLAGS, LIBGCC2_CFLAGS): Defined. - * t-apollo68: new file, use collect2. - * configure: use `t-apollo68'. + * rix-gas.h: New file -- riscix 1.2 and above, but with an assembler + which supports stabs. - * apollo68.h (ASM_SPEC): Delete -C. - (STRUCT_VALUE_INCOMING): Now 0. - (HAVE_ATEXIT): Defined. - (PROMOTE_PROTOTYPES): Delete #undef. - (USER_LABEL_PREFIX): Undef. - (LOCAL_LABEL_PREFIX, REGISTER_PREFIX, REGISTER_PREFIX_MD): Override. - (ASM_RETURN_CASE_JUMP): Defined. - (REGISTER_NAMES): Override. - -Tue Mar 31 14:59:53 1992 Tim Moore (moore@defmacro.cs.utah.edu) - - * hp800.md (movsi+4, call_value+1): Add x,y constraints for Snake - fp registers. - * hp800.h (INITIAL_FRAME_POINTER_OFFSET): Fix for Snake stack - alignment. - (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Fix for Snake fp - registers. - * hp800.c (output_function_prologue): Align stack for Snakes. - (output_arg_descriptor): Fix Snake typos. + * arm.c (arm_compare_op0, arm_compare_op1, arm_compare_fp): New + variables. + (arm_cpu): New variable. + (lr_save_eliminated): New variable. + (arm_condition_codes): delete definition. + (return_used_this_function): New variable. + (use_return_insn): New function. + (const_ok_for_arm): Use HOST_WIDE_INT; rewrite to work if + HOST_WIDE_INT > 32 bits. + (fpa_consts_inited, strings_fpa): New variables. + (init_fpa_table): New function, initialize above. + (const_double_rtx_ok_for_fpu): Rewrite using fpa_consts_inited and + REAL_ARITHMETIC functions. + (neg_const_double_rtx_ok_for_fpu): New function. + (s_register_operand): New function, as register_operand, but don't + accept SUBREG (MEM). + (reload_memory_operand): New function. + (arm_rhs_operand): Use s_register_operand. + (arm_rhsm_operand): New function. + (arm_add_operand): New function. + (arm_not_operand): New function. + (fpu_rhs_operand): Use s_register_operand. + (fpu_add_operand): New function. + (di_operand): Use s_register_operand. + (di_operand, case MEM): address must be offsettable. + (index_operand): Use s_register_operand. + (const_shift_operand): New function. + (shift_operator): Also accept MULT by power of two. + (equality_operator): New function. + (minmax_operator): New function. + (cc_register): New function. + (minmax_code): New function. + (adjacent_mem_locations): New function. + (load_multiple_operation): New function. + (store_multiple_operation): New function. + (arm_gen_load_multiple): New function. + (arm_gen_store_multiple): New function. + (gen_compare_reg): New function. + (arm_backwards_branch): New function. + (short_branch): New function. + (arm_insn_not_targeted): New function. + (fp_immediate_constant): New function. + (eliminate_lr2ip): New function. + (output_call_mem): New function. + (output_mov_long_double_fpu_from_arm): New function. + (output_mov_long_double_arm_from_fpu): New function. + (output_mov_long_double_arm_from_arm): New function. + (output_move_double): output constants using output_move_immediate; + sign_extend CONST_INTs; handle PRE/POST INCs. + (shift_instr): Handle MULT. + (output_shift_compare): New function. + (pattern_really_clobbers_lr): New function. + (function_really_clobbers_lr): New function. + (output_return_instruction): New function. + (output_prologue): Determine whether tail calling is possible, + compensate for this when saving registers. Re-initialize + return_used_this_function; use HARD_FRAME_POINTER_REGNUM, when + saving floating point regs. + (output_epilogue): Epilogue isn't needed if return_used_this_function; + use HARD_FRAME_POINTER_REGNUM when restoring floating point regs + and there is a stack frame; Arm 6 requires different return + instruction. + (output_load_symbol): New function. + (final_prescan_insn): Add support for RETURN patterns; can also + conditionalize and target a RETURN; use attributes to determine + whether condition codes are set or clobbered; add new case CALL_INSN + to switch, fail if Arm 6; support a jump inside a parallel; call + recog () before returning to recover from using attributes on other + insns. - * hp700.h, hp700hpux.h : New files - (TARGET_DEFAULT): Emit Snake code by default. - * hp700hpux.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Define to work - around assembler syntax difference between 700 and 800 series HPUX. - * hp800.h (ASM_DOUBLE_ARG_DESCRIPTORS): Conditionalize on the - above symbol. - -Tue Mar 31 09:58:52 1992 Michael Meissner (meissner@osf.org) - - * mips-sysv.h (getpagesize): When compiling the trampoline code, - define a macro getpagesize which uses the POSIX sysconf function. - - * mips-svr4.h (getpagesize): When compiling the trampoline code, - define a macro getpagesize which uses the POSIX sysconf function. - -Mon Mar 30 19:25:48 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - - * loop.c (strength_reduce): In recent maybe_multiple code, only - apply INSN_LUID to insn when safe. - -Mon Mar 30 17:24:33 1992 Michael Meissner (meissner@osf.org) - - * mips.c (output_block_move): Fix typos that would generate - incorrect code if either the source or destination is a global or - static memory address. Increment appropriate -mstats counters. - - * x-iris (INSTALL): Use cp to install stuff, not install -c. - -Mon Mar 30 16:39:28 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * m68k.md: Use `\;', not `;', to separate insns. - - * toplev.c (main): Add cast when setting debug_info_level. - - * m68k.h (GLOBAL_ASM_OP): New macro. - (ASM_GLOBALIZE_LABEL): Use that. - * hp320.h, m68ksgs.h, mot3300.h (GLOBAL_ASM_OP): Override this. - (ASM_GLOBALIZE_LABEL): Not this. - - * libgcc2.c (__builtin_saveregs) [sparc]: Define both assembler labels - __builtin_saveregs and ___builtin_saveregs, to handle all systems. - - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Add a globalize command. - (TRAMPOLINE_TEMPLATE): Make the JSRs really JSRs. - Always use precisely ___trampoline. - -Mon Mar 30 07:17:50 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * reload1.c (inc_for_reload): Declare CODE consistently. - (constraint_accepts_reg_p): Add missing cast. - - * fold-const.c (fold, case TRUTH_ANDIF_EXPR): Fix typo in last change. - -Mon Mar 30 01:07:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * rtl.h: Don't continue #if lines. - -Mon Mar 30 03:30:54 1992 Mike Stump (mrs@cygnus.com) - - * Merge in Cygnus cp-* sources, below are the ChangeLog entries from - the Cygnus ChangeLog file. Note, I am experimenting with a slightly - different format, as Tiemann would like the dates to remain intact, - but Stallman does not want the dates out of order and would rather - have the entries altogether anyway. - - Sun Mar 29 16:57:31 1992 Mike Stump (mrs@rtl.cygnus.com) - - * cp-decl.c (grokdeclarator): Handle typedef before other - specifiers, as typedef is now more complex in c++ than in c. - - Sun Mar 29 12:00:03 1992 Michael Tiemann (tiemann@cygnus.com) - - * cp-decl.c (start_function): Always set TREE_PUBLIC if DECL1 is - part of any interface. - - * cp-cvt.c (convert_to_reference): Don't type to convert a type to - itself. - (build_type_conversion): Don't look for alternatives to default - type conversion except to integral and real types. Fixes bug - exposed in 19 March change. - - Tue Mar 24 07:53:46 1992 Michael Tiemann (tiemann@cygnus.com) - - * cp-tree.c (lvalue_p): POST{INC,DEC}REMENT_EXPR is not an lvalue. - * cp-typeck.c (build_modify_expr): Ditto. - - * cp-init.c (emit_base_init): If debugging, force out a line note so - we can step into ctors for base initializers. - (build_virtual_init): Note that we need to do some more work to - handle replicated base classes in multiple inheritance lattices. - - Mon Mar 23 00:33:35 1992 Michael Tiemann (tiemann@cygnus.com) - - * cp-init.c (expand_aggr_init_1): Finish Mar 15 change concerning - INDIRECT_REFs that have TREE_HAS_CONSTRUCTOR set. - - * cp-call.c (build_overload_call_real): Ensure FINAL_CP->EVIL is set - when FINAL_CP is non-NULL and we encounter an ERROR_MARK_NODE in the - operands we are processing. - - * cp-cvt.c (convert_to_reference): Propagate ERROR_MARK_NODE from - failed type conversions. - - Sun Mar 22 20:01:51 1992 Michael Tiemann (tiemann@cygnus.com) - - * cp-init.c (is_aggr_typedef): Don't give an error message if NAME - is ERROR_MARK_NODE. - -Sun Mar 29 09:29:10 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * make-gcc.com: Remove patch from March 7. - - * make-l2.com: Use compiler that was just built, if available, - otherwise use system compiler if it is version 2. - -Sun Mar 29 19:53:33 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * fold-const.c ({invert,swap}_tree_comparison): New functions. - (comparison_equiv_p): Deleted. - (operand_equal_for_comparison_p): New function. - (invert_truthvalue): Use invert_tree_comparison. - (fold): Use variables T1 and TEM consistently. - Don't mix arg[01] and TREE_OPERAND (t, [01]); they aren't - identical. - (fold, comparison cases): Use new functions to adjust comparison - codes; add var INVERT. - Convert f >= f to f == f for FP and similar. - Correctly compute FP <= and >= when one arg is a NaN. - Clean up handling of constant results. - (fold, case COND_EXPR): Rework considerably to catch more forms - of abs, min, max, and -abs and also clean up; use new function - operand_equal_for_comparison_p. + * arm.md (type): New attribute for scheduling. + (cpu): New attribute for cpu type for use in conds attribute. + (conds): New attribute to describe actions on condition codes, set in + insns. + (length): New attribute, set in insns. + (write_conflict): New attribute describing conflicts with the write + buffer. + (fpa): New function unit for floating point co-processor. + (write_buf): New function unit for Arm 6 write buffer. + Most patterns: use s_register_operand instead of register_operand. + Most patterns: Don't use general operand and then expect reload to + do the work. + (adddi3): op0 can be the same as ops1 or 2; clobbers condition codes. + New unnamed patterns to add an SImode operand to a DImode op. + (addsi3): accept constants that can be catered for using sub. + New unnamed patterns that set conditions on add. + (incscc): new pattern, conditional increment. + New split to add some numbers in two insns. + (addsf3): Use REAL_ARITHMETIC; support -ve immediates. + (adddf3): Likewise. + (FLOAT_EXTEND and ADD): New unnamed patterns. + (addxf3): New pattern. + (subdi3): Allow input and output operands to overlap exactly. + (SUB DImode and SImode): New unnamed patterns. + (subsi3): Don't accept a constant as last operand, it will never be + matched. + (SUB and set CC) New unnamed patterns. + (decscc): new pattern, conditional decrment. + (subdf3): Fix bad case alternative. + (FLOAT_EXTEND and SUB): New unnamed patterns. + (subxf3): New pattern. + (mulsi3): Allow op2 to be the same as op0 + (MULT and set CC): New unnamed patterns. + (MULT and ADD): Ops 2 and 3 can match op 0. + (MULT, ADD and set CC): New unnamed patterns. + (mulsf3): use fmls for faster multiply. + (FLOAT_EXTEND and MULT): New unnamed patterns. + (mulxf3): New pattern. + (divsf3): use dvfs and rdfs for faster divide. + (FLOAT_EXTEND and DIV): New unnamed patterns. + (divxf3): New pattern. + (FLOAT_EXTEND and MOD): New unnamed patterns. + (modxf3): New pattern. + (anddi3): op 0 can be the same as ops1 or 2. + (*_EXTEND and AND): New unnamed patterns + (andsi3): Also accept constants that can be handled with bic + instruction. + (AND and set CC): New unnamed patterns. + (andcbsi3): Delete, this can't be generated any more. + (NOT then AND): New unnamed patterns. + (NOT then AND and set CC): Likewise. + (iordi3): Ops 1 and 2 can match op 0. + (*_EXTEND and IOR): New unnamed patterns. + (iorsi3): Only accept a valid rhs operand for op 2. + (IOR and set CC): New unnamed patterns. + (xordi3): New pattern. + (*_EXTEND and XOR): New unnamed patterns. + (xorsi3): Only accept a valid rhs operand for op 2. + (XOR and set CC): New unnamed patterns. + (split pattern): Complex pattern with NOT, AND, and IOR, can + sometimes produce better code if reordered. + (AND (IOR () NOT ())): Special pattern to recognize spilt above. + ([su]{min,max}si3): New patterns. + (set memory from MIN/MAX operation): New pattern. + (Arithmetic on MIN/MAX operation): New pattern. + (ashlsi3, ashrsi3, lshrsi3, rotrsi3): Only accept a valid rsh for op2. + (unnamed LSHIFT pattern): likewise. + (SHIFT and set CC): New unnamed patterns. + (SHIFT and NOT): New unnamed pattern. + (SHIFT, NOT and set CC): New unnamed patterns. + (negdi2): operand1 can be the same as op 0. + (FLOAT_EXTEND and NEG): New unsigned pattern. + (negxf2): New pattern. + (abssi2): New pattern. + (ABS and NEG): New unnamed pattern. + (FLOAT_EXTEND and ABS): New unnamed pattern. + (absxf2): New pattern. + (FLOAT_EXTEND and SQRT): New unnamed pattern. + (sqrtxf2): New pattern. + ({sin,cos}{sf,df,xf}2): New patterns. + (FLOAT_EXTEND and SIN/COS): New unnamed patterns. + (one_cmpldi2): New pattern. + (NOT and set CC): New unnamed patterns. + (floatsixf2, fix_truncsfsi2, fix_truncdfsi2, fix_truncxfsi2): New + patterns. + (truncxfsf2, truncxfdf2): New patterns. + (zero_extendsidi2, zero_extendqidi2, extendsidi2): New patterns. + (ZERO_EXTEND and set CC): New patterns. + (extend{sf,df}xf2): New patterns. + (movdi): Constrains must accept PRE/POST INC/DEC. + (movsi): make an expand that splits up integers and unsupported + moves. + (unnamed pattern to match movsi): New, don't allow things to + be moved back together again. + (REG-REG copy and set CC): New unnamed pattern. + (restorehi): use plus_constant in expansion code, not PLUS in RTL part. + (storehi, storeinthi): likewise. + (movhi): Break up impossible moves. + (pattern to match movhi): Don't allow impossible moves to be put + back together. + (movqi): Break up impossible moves. + (pattern to match movqi): Don't allow impossible moves to be put + back together; convert negative constants into mvn instruction. + (movsf): Use REAL_ARITHMETIC for constants; add alternatives for + moving GENERAL_REGS to and from memory. + (movdf): Make this an expand; split out impossible moves. + (reload_outdf): New pattern. + (pattern to match movdf): Don't allow impossible moves to be put back + together; add alternatives for moving GENERAL_REGS to and from memory; + rearrange and weight to get optimal register allocation. + (movxf): New pattern. + (load_multiple): New expand pattern. + (pattern to load multiple, pattern to load multiple with write-back): + New unnamed patterns. + (store_multiple): New expand pattern. + (pattern to store multiple, pattern to store multiple with write-back): + New unnamed patterns. + (movstrsi): Expand short moves as a series of load/store multiples with + write-back. + (cmp*): Make these expands; just set some state variables. + (CC = COMPARE op, op): New unnamed patterns. + (CC = COMPARE op, NEG op): New unnamed pattern. + (CC = COMPARE op, SHIFT op): New unnamed pattern. + (FLOAT_EXTEND then COMPARE): New unnamed patterns. + (CC = CC): New unnamed (dummy) pattern to allow cse to combine repeated + compares. + (b{eq,ne,le,lt,ge,gt,geu,gtu,leu,ltu}): Make these expand patterns, + use gen_compare_reg(). + (pattern to match branches, pattern to match inverted brances): New + unnamed patterns. + (s{eq,ne,le,lt,ge,gt,geu,gtu,leu,ltu}): New expands. + (pattern to match store_flag operations): New unnamed pattern. + (pattern to match NOT store_flag, pattern to match NEG store_flag): + New unnamed patterns. + (jump): handle arm_ccfsm_state explicitly. + (CALL (MEM)): New unnamed patterns. + (return): New pattern. + (conditional RETURN): New unnamed patterns; + (table_jump (MEM)): New unnamed pattern. + (indirect_jump (MEM)): New unnamed pattern. + Replace shift-arithmetic patterns with new versions that catche all + cases. + (Old peephole patterns (commented out)): remove. + (shift-arithmetic and set CC): New unnamed patterns. + (reload patterns for all shift-arithmetic patterns): New patterns. + Add many new patterns to merge store_flag patterns, arithmetic and + shifting. + New patterns to match conditional comparisons. + (movcond): New pattern. + (arith (MEM, MEM+4)): New unnamed pattern to spot load multiple + possibility. + (patterns to match extended pre-increment): New unnamed patterns. + (peepholes to match extended post-increment): New. + (peephole to match move and set conds): Needed because combine misses + this one. + (peepholes to match load/store multiples): New. + (CALL, RETURN): New peephole. + (CALL, JUMP): New peephole. + (save_stack_nonlocal, restore_stack_nonlocal): New expands for + non-local gotos. + special split to break up some conditional arithmetic sequences + before scheduling. + + *configure (arm-*-riscix1.[01]*, arm-*-riscix*): New configurations. + *config.sub: Recognize operating system "riscix*"; recognize acorn as + vendor. + +Sat Oct 2 17:24:44 1993 James Van Artsdalen (james@bigtex.cactus.org) + + * i386.md (addhi3): Use byte opcodes when the low byte of a word + is known to be zero. + +Sat Oct 2 14:11:06 1993 John F Carr (jfc@Athena.mit.edu) + + * combine.c (can_combine_p): Allow an insn with a REG_EQUIV note + that reads memory to be moved past an insn that writes memory. + +Sat Oct 2 14:04:03 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * regclass.c (record_reg_classes): Skip to next alternative + when we skip normal cost computation. + + * collect2.c: Add prototypes to static declarations. + (PROTO): New macro. + (dup2, putenv): Functions return integers; add type and returns. + + * varasm.c (make_decl_rtl): Set TREE_SIDE_EFFECTS on global if + -fvolatile-global. + + * tree.c (build_string): Make lifetime of string the same as + tree node. + +Sat Oct 2 04:55:44 1993 Doug Evans (dje@canuck.cygnus.com) + + * a29k/a29k.h, a29k/unix.h, alpha/alpha.h, arm/arm.h, clipper/clix.h, + convex/convex.h, elxsi/elxsi.h, fx80/fx80.h, gmicro/gmicro.h, + h8300/h8300.h, i370/tm-mvs.h, i386/386bsd.h, i386/aix386ng.h, + i386/gas.h, i386/go32.h, i386/linux.h, i386/lynx.h, i386/mach.h, + i386/next.h, i386/osfelf.h, i386/osfrose.h, i386/sco.h, i386/sco4.h, + i386/sco4dbx.h, i386/scodbx.h, i386/sequent.h, i386/sun.h, + i386/sysv3.h, i386/sysv4.h, i860/fx2800.h, i860/i860.h, i860/mach.h, + i860/sysv3.h, i860/sysv4.h, i960/i960.h, m68k/3b1.h, m68k/3b1g.h, + m68k/altos3068.h, m68k/apollo68.h, m68k/crds.h, m68k/ctix.h, + m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h, m68k/hp3bsd.h, + m68k/hp3bsd44.h, m68k/isi.h, m68k/lynx.h, m68k/m68kv4.h, + m68k/mot3300.h, m68k/news.h, m68k/next.h, m68k/pbb.h, m68k/plexus.h, + m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h, m68k/tower-as.h, + m68k/tower.h, m88k/dgux.h, m88k/luna.h, m88k/m88k.h, m88k/sysv3.h, + m88k/sysv4.h, mips/bsd-4.h, mips/bsd-5.h, mips/dec-osf1.h, + mips/iris3.h, mips/mips.h, mips/news4.h, mips/news5.h, + mips/nws3250v4.h, mips/osfrose.h, mips/svr3-4.h, mips/svr3-5.h, + mips/svr4-4.h, mips/svr4-5.h, mips/ultrix.h, ns32k/encore.h, + ns32k/merlin.h, ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, + ns32k/sequent.h, ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, + pa/pa-ghpux.h, pa/pa-gux7.h, pa/pa-hpux.h, pa/pa-hpux7.h, + pa/pa-utahmach.h, pa/pa.h, pa/pa1-utahmach.h, pyr/pyr.h, romp/romp.h, + rs6000/aix31.h, rs6000/mach.h, rs6000/rs6000.h, sh/sh.h, sparc/lite.h, + sparc/lynx.h, sparc/pbd.h, sparc/sol2.h, sparc/sparc.h, sparc/sysv4.h, + spur/spur.h, tahoe/harris.h, tahoe/tahoe.h, vax/ultrix.h, vax/vax.h, + vax/vaxv.h, vax/vms.h, we32k/we32k.h + (CPP_PREDEFINES): Add system/cpu/machine assertions where missing. + +Fri Oct 1 22:11:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * gvarargs.h: Test __sequent__ like __BSD_NET2__. + +Fri Oct 1 17:19:54 1993 Torbjorn Granlund (tege@adder.cygnus.com) + + * cse.c (insert_regs): Always return something. + (simplify_unary_operation): Remove unused variable. + (cse_process_notes): Likewise. + (invalidate_skipped_block): Likewise. + (cse_set_around_loop): Likewise. + + * pa-ghpux.h (LINK_SPEC): Pass "-a -archive" when + debugging. + * pa-hpux.h (LINK_SPEC): Likewise. + * pa-ghpux.h (LIB_SPEC): Make sure to add space between flags. + * pa-gux7.h (LIB_SPEC): Likewise. + * pa-hpux.h (LIB_SPEC): Likewise. + * pa-hpux7.h (LIB_SPEC): Likewise. + +Fri Oct 1 22:17:12 1993 Eric Youngdale (eric@kafka) + + * vmsconfig.com: Write out the definitions from Makefile.in for + the symbols BC_ALL and BI_OBJ into files BC_ALL.OPT and + BI_ALL.opt. Remove "bytecode " from compiler options files so + compiler will link correctly. + + * make-cc1.com (bc_generate): New VMS DCL function. Takes a BC + header file that needs to be generated, and builds it. + + * make-cc1.com: Compile entries listed in BI_ALL.OPT, and then call + bc_generate for every header file listed in BC_ALL.OPT + +Fri Oct 1 21:13:17 1993 H.J. Lu (hlu@nynexst.com) + + * config/i386/linux.h (LIB_SPEC): Handle -p anmd -pg outermost. + +Fri Oct 1 18:23:57 1993 Jim Wilson (wilson@cygnus.com) + + * reload1.c (gen_input_reload): Handle PLUS with MEM operand + exactly the same as a PLUS with a REG operand. + * reload.c (form_sum): Undo Sep 28 change. + + * Makefile.in (cc1, cc1plus, cc1obj): Delete superfluous + dependencies on bytecode. + (stamp-bcarity, stamp-bcopcode, stamp-bcopname): Create stamp files. + +Fri Oct 1 18:17:56 1993 Doug Evans (dje@canuck.cygnus.com) + + * configure (cpp_md_flags): New variable. + (links): Build link from md.pre-cpp if cpp_md_flags defined. + (CPP_MD, CPP_MD_FLAGS, MD_FILE): New macros for Makefile. + * Makefile.in (md): New dependency. + (MD_FILE): New macro. + (clean): Remove file md if md.pre-cpp exists. + (distclean): Remove md.pre-cpp. + +Fri Oct 1 15:44:48 1993 Michael Meissner (meissner@osf.org) + + * halfpic.h (toplevel): Enclose the whole file inside a #ifndef + NO_HALF_PIC conditional. + + * i386/x-osfrose (CCLIBFLAGS, GCC_CFLAGS): Define NO_HALF_PIC so + that the two common variables in halfpic.h don't get created. + + * mips/x-osfrose (CCLIBFLAGS, GCC_CFLAGS): Ditto. + +Fri Oct 1 10:46:15 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * a29k.h (R_KR): New macro. + (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS): + Adjust for more registers present. + (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGISTER_NAMES): Likewise. + (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, REGNO_REG_CLASS): Likewise. + (CONDITIONAL_REGISTER_USAGE): Swap names rather than replacing them. + * a29k.c (gpc_reg_operand): Include kernel registers. + + * a29k.h (TARGET_LARGE_MEMORY): New flag; change value for + all others. + (ENCODE_SECTION_INFO): New macro. + (TARGET_SWITCHES): Add "normal" and change values. + + * a29k.c (call_operand, case SYMBOL_REF): Handle TARGET_LARGE_MEMORY + and SYMBOL_REF_FLAG. + +Thu Sep 30 23:25:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * reorg.c (optimize_skip): Do not thread a jump to a new target if + doing so would invalidate the insn in the jump's delay slot. + +Thu Sep 30 14:21:03 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * bi-lexer.c (scan_string): Do xmalloc if buffer is null and + xrealloc if it's not, not the other way around. + +Thu Sep 30 10:57:30 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) + + * bc-emit.c (bc_end_function, seg_data): Use bcopy instead of memcpy. + +Thu Sep 30 05:53:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * fold-const.c (fold, case PLUS_EXPR, MINUS_EXPR): Properly handle + case when ARG1 splits and VARSIGN is -1. + +Wed Sep 29 19:41:18 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (build_modify_expr): Check whether recursive calls + return error_mark_node. + +Wed Sep 29 18:35:30 1993 Leonid Baraz (lbaraz@iil.intel.com) + + * rtl.h (GEN_INT): Add missing cast to HOST_WIDE_INT. + * jump.c (rtx_renumbered_equal_p, case CONST_INT): Use INTVAL, + not XINT. + +Wed Sep 29 17:32:03 1993 Doug Evans (dje@canuck.cygnus.com) + + * glimits.h (UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): + redefine in a simpler way. + +Wed Sep 29 17:25:17 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) + + * fixincludes (sys/spinlock.h): change references of + "../machine/*.h" to + +Wed Sep 29 07:09:50 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * rs6000.c (reg_or_short_operand): Remove redundant test. + + * sched.c: Add prototypes for static function. + (add_dependence, remove_dependence, regno_use_in): Now static. + (schedule_insns): Have dummy version also take FILE * parameter. + +Wed Sep 29 01:29:31 1993 Paul Eggert (eggert@twinsun.com) + + * cccp.c (quote_string): New function. + (special_symbol, write_output, output_line_command): Use it to escape + special characters in file names when outputting #line directives. + (do_line): Parse escape sequences in #line directives' file names. + * c-lex.c, cp-lex.c (check_newline, yylex, real_yylex): Likewise. + (ignore_escape_flag): Remove var. + +Tue Sep 28 21:27:26 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu + + * function.c (push_temp_slots, pop_temp_slots): Always change level. + * cp-expr.c (cplus_expand_expr): Push and pop temp slots around + making new temp slots and freeing them. + * expr.c (expand_assignment, expand_expr, do_jumps): Likewise. + * integrate.c (expand_inline_function): Likewise. + +Tue Sep 28 18:50:57 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * reload.c (find_reloads): Don't call find_reloads_toplev + (or anything like that) for match_operator operands. + + * config/ns32k/ns32k.c (output_move_double): Special code for + pushing from an address that uses the sp. Use PUSHOP for pushes, + not POPOP. + + * config/ns32k/ns32k.h (FUNCTION_EPILOGUE, FUNCTION_PROLOGUE): + Add %$ in adjspb/adjspd insns. + * config/ns32k/ns32k.md (recognizer for subtracting const from reg 17): + Add %$ in adjspb/adjspd insns. + + * bytetypes.h (QItype, HItype, SItype, DItype): Use __signed__. + + * Makefile.in (stamp-bcopname, stamp-bcopcode): + Use shorter names for temporary files. + (bc-emit.o): Depend on bc-arity.h. + + * bi-opname.c, bi-arity.c, bi-opcode.c (xmalloc): New function. + * bi-opname.c, bi-arity.c: Include stdio.h. + + * function.c (expand_main_function): Put back accidentally + deleted previous change to use NAME__MAIN. + + * glimits.h (INT_MAX, LONG_MAX, LONG_LONG_MAX): Delete parens. + (__glimits__evconcat__, __glimits__concat__): New macros. + (UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): Use them. + + * cccp.c (output_dots): New function. + (do_include): Call it (to indent output for print_include_names). + +Tue Sep 28 18:22:31 1993 Jim Wilson (wilson@cygnus.com) + + * reload1.c (eliminate_regs): All recursive calls now pass INSN + instead of NULL_RTX. Second assignment to ref_outside_mem changed + to be same as first assignment. + + * combine.c (force_to_mode, LSHIFTRT case): Avoid shifts larger + than HOST_BITS_PER_WIDE_INT. + + * sched.c (schedule_insns): Don't zero reg_n_calls_crossed for + pseudos live across multiple blocks. + + * fixincludes ({sparc,sun3,sun3x,sun4,sun4c,sun4m}/asm_linkage.h, + {sun4c,sun4m}/debug/asm_linkage.h: Replace /**/ with ##. + + * reorg.c (mark_target_live_regs): When scanning insns, ignore + CLOBBERs in addition to USEs. + + * life.h: Comment that this is for sparclite w/o FPU. + * sparc.h (CPP_SPEC): Handle -mf930 and -mf934. + (TARGET_SWITCHES): Add -mf930 and -mf934 options. -msparclite no + longer does -mno-fpu. + + * fixinc.svr4, fixincludes (math.h): Put #ifndef around HUGE_VAL + define. + * math-68881.h, math-3300.h (HUGE_VAL): Add #undef before HUGE_VAL + define, instead of surrounding it with #ifndef/#endif. + + * sparc/bsd.h: New file. + * configure (sparc-*-bsd*): New configuration. + + * reload.c (form_sum): Change the way that form_sum canonicalizes + addresses, so that it never creates (PLUS (PLUS MEM CONST_INT) REG) + but instead canonicallizes this to (PLUS (PLUS REG CONST_INT) MEM). + +Tue Sep 28 16:00:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * bc-emit.c: Include gvarargs.h, not varargs.h. + Don't include string.h. + (seg_align): Use bzero, not memset. + +Mon Sep 27 20:53:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (pop_init_level): Add special case for nonincremental + scalar initializers. + + * protoize.c: Declare rindex unconditionally. + + * c-decl.c (init_decl_processing): Use signed_type and unsigned_type + to set signed_wchar_type_node and unsigned_wchar_type_node. + +Mon Sep 27 20:31:01 1993 Paul Eggert (eggert@twinsun.com) + + * dbxout.c (dbxout_init, dbxout_source_file): Quote special + characters when outputting source file names. + * config/a29k/a29k.h, config/a29k/unix.h, config/alpha/alpha.h, + config/i386/aix386ng.h, config/i386/bsd.h, config/i386/gas.h, + config/i386/sun386.h (ASM_FILE_START): Likewise. + * config/elxsi/elxsi.h, config/m68k/3b1.h, config/m68k/crds.h, + config/m68k/mot3300.h, config/m68k/tower-as.h, config/m88k/m88k.h, + dwarfout.c (ASM_OUTPUT_SOURCE_FILENAME): Likewise. + * xcoffout.h, config/i386/i386iscgas.h, config/i860/fx2800.h + (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_MAIN_SOURCE_FILENAME): + Likewise. + * xcoffout.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise. + * config/mips/mips.c (mips_output_filename): Likewise. + * toplev.c (output_file_directive): Likewise. + (output_quoted_string): New function. -Sun Mar 29 00:00:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Sep 27 19:31:57 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (simplify_relational_operation): Arg ptr reg may be 0. + * bi-lexer.c (xrealloc): Handle 0 passed as BLOCK. - * gcc.c: Always define R_OK, etc. if system headers don't. + * Makefile.in (stamp-bcopname, stamp-bcopcode, stamp-bcarity): + Renamed from stamp-bc-... to fit in 14 chars. + Don't rm the .h files. + (STAGESTUFF): Add some bc and bi files. - * c-parse.y (maybe_attribute): Accept `mode (m)' attribute. - * c-common.c (decl_attributes): Handle that attribute. + * c-lex.c (yylex): Handle i together with f or l in float constant. - * tower.h (REGISTER_NAMES): Discard the fpa regs. - * tower-as.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): - Don't handle fpa regs. - (PUT_SDB_START_DIM, PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM): - New macros. - (PUT_SDB_DIM): Deleted. +Mon Sep 27 19:00:18 1993 Ian Lance Taylor (ian@cygnus.com) - * m68k.h (RTX_COSTS): Smaller multiply costs on 68040. + * cccp.c (special_symbol, initialize_builtins): If + NO_BUILTIN_SIZE_TYPE is defined, never refer to SIZE_TYPE. + Likewise for NO_BUILTIN_PTRDIFF_TYPE and PTRDIFF_TYPE. - * stmt.c (expand_end_case): Reduce amount of specific modes - used in handling casesi. +Mon Sep 27 18:59:09 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * collect2.c (savestring): Copy only SIZE bytes of string. + * reload1.c (eliminate_regs, SET case): Check for INSN_LIST + along with EXPR_LIST. - * gstddef.h: Handle __need_size_t, __need_wchar_t, __need_ptrdiff_t, - and _need_null. +Mon Sep 27 14:29:17 1993 Kresten Krab Thorup (krab@iesd.auc.dk) - * c-typeck.c (digest_init): Save INIT with nops not stripped - to pass to convert_for_assignment. + * objc/typedstream.h (objc_read_object): Add declaration. -Sun Mar 29 12:27:01 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) +Mon Sep 27 17:00:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * vms.h (FUNCTION_PROLOGUE): Redefine to add 4 bytes to local - storage on the stack. - (STARTING_FRAME_OFFSET): Redefine as -4. + * configure: Handle option --with-elf. + (i[34]86-*-linux*): Use linuxelf.h if --with-elf. + (i[34]86-*-osfelf): Config deleted. + (i[34]86-*-osfrose): Handle --with-elf. + * config/i386/linuxelf.h: New file. -Sun Mar 29 19:58:57 1992 Paul Eggert (eggert@twinsun.com) +Mon Sep 27 14:19:33 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * c-decl.c (store_parm_decls): Function prototypes now override - old-style definitions if argument types disagree only because of - promotions. + * expr.c (bc_expand_constructor): Delete cast of argument to + bc_emit_instruction to HOST_WIDE_INT. Move assignment of ptroffs + to separate line. -Sun Mar 29 17:40:56 1992 Fred Fish (fnf at fishpond) +Mon Sep 27 10:32:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * fixincludes (stdlib.h): Fix free/calloc/malloc/realloc return types. + * Makefile.in (stmt.o, expr.o, emit-rtl.o): Add missing dependency + on bc-typecd.def. + (bi-run.o): Fix formatting. -Sun Mar 29 15:12:39 1992 Ron Guilmette (rfg at ncd.com) +Mon Sep 27 10:26:43 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * sparc.c (sparc_type_code): Added this new routine. - (tree.h): Included to support `sparc_type_code'. - (output_block_move): Cleaned up code to handle assembler-specific - aspects of internal labels. + * Makefile.in (bi-arity.h, bc-opcode.h, bc-opname.h): Use + move-if-changed. + (stamp-bc-arity, stamp-bc-opcode, stamp-bc-opname): New targets. - * sparc.h: (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER, LEAF_REGISTERS): - Deleted spurious semicolons. - (ASM_DECLARE_RESULT): New macro to generate the .proc directive. - (ASM_DECLARE_FUNCTION_NAME): Changed to use ASM_DECLARE_RESULT. - (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Changed to use - ASM_GENERATE_INTERNAL_LABEL when generating jump table elements. +Sun Sep 26 23:11:34 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * svr4.h (SVR4): Don't define this symbol here. (It was never - needed, and it will be used to indicate an SVR4 *host* from now on.) - (SKIP_ASM_OP): Define this new macro. - (ASM_OUTPUT_SKIP): Use SKIP_ASM_OP. - (ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Added - new definitions appropriate for most SVR4 assemblers. - (COMMON_ASM_OP, LOCAL_ASM_OP): Define these new macros. - (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Use them. - (ASM_OUTPUT_ALIGNED_LOCAL): Allocate things in common rather than - trying for the .bss section (which may not work). - (ASM_DECLARE_RESULT): Define this to do nothing (if not already - defained for target machine). - (ASM_DECLARE_FUNCTION_NAME): Add invocation of ASM_DECLARE_RESULT. + * pa.h (ASM_FILE_START): Remove last change for $LIT$ subspace, + not all HPUX linkers handle it correctly. - * dwarfout.c (ASM_DWARF_POP_SECTION): Renamed ASM_OUTPUT_POP_SECTION. - (PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): New macro definitions. - (SECTION_ASM_OP): Deleted. Replaced by PUSHSECTION_ASM_OP. - (ASM_OUTPUT_PUSH_SECTION, PUSHSECTION_FORMAT): New macro definitions. - (*_SECTION): New macro definitions for important section name strings. - (ASM_DWARF_*_SECTION): Deleted all macros to change to specific - sections and replaced them globally with calls to the new parameterized - ASM_OUTPUT_PUSH_SECTION macro. +Sun Sep 26 20:51:36 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Mar 28 17:28:17 1992 Michael Meissner (meissner@osf.org) + * stmt.c (expand_exit_loop_if_false, bc_expand_start_cond): + Use xjumpifnot, not jumpifnot. - * mips.h (MIPS_VERSION): Bump Meissner version # to 15. - (output_block_move): Add function defintion. - (HALF_PIC_PTR, HALF_PIC_FINISH): Provide dummy definitions. - (OPTIMIZATION_OPTIONS): Set flag_gnu_linker to FALSE, and - flag_no_cse_function to TRUE. - (CC1PLUS_SPEC): Delete -- it just passed -fno-gnu-binutils to - cc1plus. + * Makefile.in (bi-arity, bi-opcode, bi-opname): Delete $(LEXLIB). - * mips.c (block_move function): Use movstri_internal, instead of - emitting the moves directly. - (output_block_move): New function to emit the correct code for block - moving a constant amount of data. - (siginfo): Change options to ps. + * varasm.c (assemble_string): Put braces around ASM_OUTPUT_ASCII. - * mips.md (movstrsi_internal): New block move pattern. - (movsi_ulw): Add an appropriate REG_EQUIV regnote. - (movsi_usw): Type attribute is store, not load. +Sat Sep 25 08:30:16 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * mips-gbsd.h (toplevel): Include mips-bsd.h, not mips-gbsd.h. + * expr.c (expand_expr, case COND_EXPR): Set MEM_IN_STRUCT_P + properly for TEMP. - * mips-bsd.h (MD_STARTFILE_PREFIX, MD_EXEC_PREFIX): Use explicit - BSD43 prefixes. + * combine.c (BYTE_LOADS_EXTEND, LOAD_EXTEND): Deleted. + (subst, force_to_mode, nonzero_bits, num_sign_bit_copies): + Use new macros LOAD_EXTEND_OP and WORD_REGISTER_OPERATION instead + of BYTE_LOADS_*_EXTEND and LOAD_EXTEND. + * expr.c (do_store_flag): Likewise. + * reload.c (push_reload, find_reloads): Likewise. + * reload1.c (eliminate_regs): Likewise. + * a29k.h, alpha.h, clipper.h, arm.h, i960.h, m88k.h, mips.h: + Use WORD_REGISTER_OPERATION and LOAD_EXTEND_OP and delete + BYTE_LOADS_{SIGN,ZERO}_EXTEND. + * pa.h, romp.h, rs6000.h, sh.h, sparc.h: Likewise. - * mips-sysv.h (MD_STARTFILE_PREFIX, MD_EXEC_PREFIX): Use explicit - System V prefixes. +Sat Sep 25 06:19:20 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * mips-svr4.h (MD_STARTFILE_PREFIX, MD_EXEC_PREFIX): Use explicit - System V.4 prefixes. + * bi-lexer.l: Deleted. - * decstatn.h (TARGET_MEM_FUNCTIONS): Define. + * bi-lexer.c: New file. -Sat Mar 28 15:12:39 1992 Ron Guilmette (rfg at ncd.com) + * Makefile.in (bi-lexer): Deleted. + (bi-lexer.l): Deleted. - * libgcc2.c (eprintf): Make argument types comsistant with assert.h. - (__builtin_new, __builtin_vec_new): Declare all external functions. - (default_new_handler): Use a macro for the "memory exausted" message. +Fri Sep 24 16:59:03 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * sparcv4.h: File completely replaced (with one that works). + Cygnus<->FSF C++ front-end merge. -Sat Mar 28 15:09:46 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Tue Sep 21 19:17:29 1993 Mike Stump (mrs@cygnus.com) - * toplev.c (flag_gnu_linker): Default to 0 if USE_COLLECT2. + * cp-decl.c (build_ptrmemfunc_type): Set CLASSTYPE_GOT_SEMICOLON + just in case. + * cp-decl.c (start_function): Exclude pointer to member functions in + IS_AGGR_TYPE test. + * cp-method.c (dump_type_prefix, dump_type_suffix, dump_type): + Handle pointer to member functions. - * i386.h (TARGET_SWITCHES): Add svr3-shlib. - (TARGET_SVR3_SHLIB): New macro. - * i386v.h (ASM_OUTPUT_LOCAL): Override definition here. + Tue Sep 21 10:47:10 1993 Mike Stump (mrs@cygnus.com) - * Makefile.in (gcc.xtar): Update version in README. + * cp-tree.c (finish_struct): Since we know which base class we want + the binfo for, get it directly, instead of searching for it. Cures + a compiler_error in binfo_value. - * libgcc2.c [sparc] (__builtin_saveregs): Add optional .proc, - .type and .size assembler commands. + Thu Sep 16 20:33:25 1993 Mike Stump (mrs@cygnus.com) - * dbxout.c (dbxout_type): New arg SHOW_ARG_TYPES. All calls changed. - (dbxout_type_methods): Mostly rewritten, with Tiemann's help. + * cp-cvt.c (convert_pointer_to): Make error more specific and more + readable. - * Eliminate limit on alignment value of a variable or field. - * tree.h (DECL_ALIGN): Use frame_size slot. - (struct tree_decl): `align' slot deleted. - * print-tree.c (print_node): Print `align' or `frame_size', not both. - * expr.c (get_pointer_alignment): Don't use DECL_ALIGN of function. - * c-decl.c (duplicate_decls, finish_enum): Likewise. - * tree.c (make_node): Likewise. - * c-common.c (decl_attributes): Eliminate limit of 255 on alignment. + Thu Sep 16 20:14:18 1993 Mike Stump (mrs@cygnus.com) - * collect2.c: Don't include gstdarg.h or gvarargs.h. - Make error messages follow standards. - (error, fatal, fatal_perror): Don't use varargs. - Accept as many args as anyone tries to use. + * cp-lex.c (consume_string): Add second argument so that we can use + this routine for character constants too. Also, handle eof inside + the string or character constant better. Make static, as it isn't + used anyplace else. - * cp-decl2.c: Get rid of -fgnu-binutils. + * cp-lex.c (reinit_parse_for_block): Add second argument to + consume_string. Add support for character constants. - * ns32k.h (INDIRECTABLE_ADDRESS_P): Deleted. - (GO_IF_NONINDEXED_ADDRESS): Delete dupllicate test for reg+offset. - (MEM_REG): Don't accept constant here. - (INDIRECTABLE_2_ADDRESS_P): Adapt usage of MEM_REG. - (GO_IF_INDEXING, GO_IF_INDEXABLE_ADDRESS): New macros. - (GO_IF_LEGITIMATE_ADDRESS): Use them. + * cp-tree.h (consume_string): Remove declaration, not used any place + else. -Sat Mar 28 20:48:20 1992 Chip Salzenberg (chip at tct.com) + Wed Sep 15 12:44:13 1993 Per Bothner (bothner@kalessin.cygnus.com) - * stor-layout.c (layout_record, layout_union): - Limit effect of PCC_BITFIELD_TYPE_MATTERS to actual bitfields. - (layout_decl): Do not override a packed decl's alignment. + * cp-gc.c (build_t_desc): Make sure finish_table is called + for the methods and ivars tables. - * c-common.c (decl_attributes): Don't expect a simple - attribute like "packed" to be in a LIST_NODE. + Mon Sep 13 14:40:23 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * c-decl.c (finish_struct): If a field has the "packed" - attribute, don't override it with type's normal alignment. + * cp-pt.c (unify): Use the referent type if necessary. -Sat Mar 28 06:51:12 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Sep 10 16:34:37 1993 Mike Stump (mrs@cygnus.com) - * integrate.c (initialize_for_inline): Replace DECL_INCOMING_RTL - if it has an address shared with DECL_RTL, not just when the entire - value is shared. + * cp-typeck.c (build_binary_op_nodefault): Add missing fourth + argument to build_binary_op calls, and eliminate bogus delta2 + check. - * rs6000.c (input_operand): Clean up and make comments agree with - code; no changes to what is matched. + Fri Sep 10 14:52:59 1993 Mike Stump (mrs@cygnus.com) - * loop.c (add_label_notes): Handle operands of type 'E'. + * cp-typeck.c (build_binary_op_nodefault): Make sure delta2's match + when comparing pointers to _virtual_ member functions. - * rs6000.c (print_operand, case 'A'): Fix typo. + Fri Sep 10 14:27:45 1993 Mike Stump (mrs@cygnus.com) -Sat Mar 28 01:29:06 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-typeck.c (convert_for_assignment): Revert a cast. + * cp-typeck.c (build_binary_op_nodefault): Add missing fourth + argument to build_binary_op calls. - * output.h (current_function_uses_const_pool): New declaration. + Thu Sep 9 21:22:40 1993 Mike Stump (mrs@cygnus.com) - * i386.c (function_{prologue,epilogue}, simple_386_epilogue): - If the constant pool is used, the PIC reg will be used. + Complete re-vamp of pointer to member functions. Implements + complete semantics. Cures problems on CONVEX, i960 and alpha. - * expr.c (expand_builtin): Add support for named pattern strlenM. - * expr.h (strlen_optab): New declaration. - * optabs.c (init_optabs): Initialize strlen_optabs. - * i386.md (strlensi): New pattern. + * cp-tree.h (get_member_function_from_ptrfunc, build_ptrmemfunc): + New routines. + * cp-decl.c (build_ptrmemfunc_type): New routine, builds canonical + pointer to member function types. + * cp-decl.c (grokdeclarator): Use new type for POINTER_TYPE to + METHOD_TYPEs. + * cp-method.c (build_overload_name): Make the old mangling to show + through when mangling the new pointer to member function type. -Fri Mar 27 12:11:03 1992 Fred Fish (fnf at fishpond) + * cp-tree.h (TYPE_PTRMEMFUNC_P, TYPE_PTRMEMFUNC_FN_TYPE, + TYPE_GET_PTRMEMFUNC_TYPE, TYPE_SET_PTRMEMFUNC_TYPE): New macros + for pointer to member function code. + * cp-init.c (resolve_offset_ref): Handle pointer to member functions + specially. + * cp-type2.c (store_init_value): Make new pointer to member + functions initializable. + * cp-typeck.c (convert_for_assignment): Make new pointer to member + functions assignable. + * cp-type2.c (build_m_component_ref): Make new pointer to member + functions work. + * cp-typeck.c (build_x_function_call, build_function_call_real, + build_binary_op): Ditto. + * cp-class.c (add_virtual_function): Don't set the high bit on + DECL_VINDEXs. - * fixinc.svr4 (dbm.h): Fix unconditional redefinition of NULL + * cp-typeck.c (get_member_function_from_ptrfunc): New routine to + resolve a pointer to member function. + * cp-typeck.c (build_ptrmemfunc): New routine to build CONSTRUCTORs + for new pointer to member functions. Used by to generate + initialization and assignment expressions. + * cp-typeck.c (build_binary_op_nodefault): Implement == and != for + new pointer to member functions. + * cp-typeck.c (unary_complex_lvalue): Handle & in more reasonable + ways to make new pointer to member functions work. - * config.sub: Add i486 as a distinct CPU type. Recognize i486v4 - as distinct from i386v4. Change ncr3000 to i486. - * configure: Add i486-ncr-sysv4. - * config/x-ncr3000: New file. + * cp-parse.y (expr_no_commas): Don't dereference the second + argument, this is now done in build_m_component_ref as needed. + * cp-typeck.c (build_x_binary_op): Ditto. -Fri Mar 27 18:44:45 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Other misc work. - * fold-const.c (twoval_comparison_p, eval_subst): New functions. - (fold): If an operand of a comparison is a COMPOUND_EXPR, move - it outside the comparison. - (case GT_EXPR, ...): Replace old code to fold comparisons - of comparisons with new code using new functions above. - When changing code of unsigned comparisons, set variable CODE. + * cp-call.c (build_field_call, build_scoped_method_call, + build_method_call): Second arg to build_indirect_ref should be + NULL_PTR, not NULL or 0. + * cp-class.c (build_vbase_path, build_vfn_ref, popclass): Ditto. + * cp-cvt.c (convert_from_reference): Ditto. + * cp-decl2.c (setup_vtbl_ptr, finish_file): Ditto. + * cp-init.c (emit_base_init, build_virtual_init, + expand_aggr_vbase_init_1, expand_recursive_init_1, + get_member_function, resolve_offset_ref, build_new, build_delete, + build_vec_delete): Ditto. + * cp-search.c (dfs_init_vbase_pointers, init_vbase_pointers, + build_vbase_vtables_init): Ditto. + * cp-type2.c (build_x_arrow, build_functional_cast): Ditto. + * cp-typeck.c (build_modify_expr): Ditto. - * expr.c (get_inner_reference): Return BLKmode and -1 size for a - variable-sized object instead of aborting. - (do_jump, case COMPONENT_REF): If get_inner_reference returns a - size of -1, don't do anything special. - * fold-const.c (optimize_bit_field_compare, decode_field_reference): - Likewise. + Instead of calling get_identifier with the same value all the time, + call it once, and re-use the cached value. - * combine.c (reg_bitfield_target_p): Replace test with one that - compares the register number of X with that of a register which - is the target of the assignment. + * cp-decl.c (pfn_identifier, index_identifier, delta_identifier, + delta2_identifier): New cached calls to get_identifier. + * cp-tree.h (this_identifier, pfn_identifier, index_identifier, + delta_identifier, delta2_identifier): Allow them to be accessed + everywhere. + * cp-decl.c (init_decl_processing): Initialize pfn_identifier, + index_identifier, delta_identifier and delta2_identifier and + use a cached get_identifier call. + * cp-class.c (delta_name, pfn_name): Removed, use delta_identifier + and pfn_identifier instead. + * cp-class.c (popclass): Use a cached get_identifier call for `this'. - * loop.h (struct_induction): New field maybe_multiple. - * loop.c (strength_reduce): Track when code may be executed more - than once per iteration; pass to record_biv. - Call update_giv_derive on every JUMP_INSN. - (record_biv): Copy new maybe_multiple arg to struct induction. - (record_giv): Clear maybe_multiple. - (update_giv_derive): If passing JUMP_INSN, look at maybe_multiple - in biv update. + Tue Sep 7 16:01:14 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * expr.c (expand_expr, case MODIFY_EXPR): Add missing call to - do_pending_stack_adjust. + * cp-search.c (immediately_derived): New function. + (get_binfo): Use it. + (compute_visibility): Rewrite how private inheritance is handled, so + it actually works. Use the new immediately_derived fn. - * rs6000.h (OBJECT_FORMAT_COFF): Add definition. + Mon Sep 6 14:44:46 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Fri Mar 27 15:58:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (grokfndecl): Add empty statement after foundaggr label. - * c-typeck.c (check_format): If arg wants void *, accept any ptr. + Sat Sep 4 16:12:27 1993 Jason Merrill (jason@deneb.cygnus.com) - * ns32k.md (CALL_MEMREF_IMPLICIT, MOVD_FLOAT_OK): - New parameters replace GAS_SYNTAX. - * pc532.h (CALL_MEMREF_IMPLICIT, MOVD_FLOAT_OK): Define both. - * sequent.h (CALL_MEMREF_IMPLICIT): Defined. + * cp-decl.c (grokfndecl): Require class or enum argument to + operators. - * sequent.h (INDEX_RATHER_THAN_BASE): Defined. - * ns32k.c (print_operand_address): Check it here. + * cp-init.c (build_member_call): Make destructor without object + error more useful, don't complain of missing destructor. - * ns32k.c (print_operand_address): Treat all non-ints as symbolic. - (print_operand): Likewise. Also fix typo, use PUT_ABSOLUTE_PREFIX, - and test NO_ABSOLUTE_PREFIX_IF_SYMBOLIC. + Thu Sep 2 15:51:54 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * svr4.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): - Output newline after section op. - * i860v3.h (DTORS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP): - Delete newlines. + * cp-decl.c (globalize_nested_type): Make sure the type in question + has a lang_specific area before trying to clear DECL_CLASS_CONTEXT. - * Makefile.in (clean): Don't delete stage*. - (distclean): Do it here. - (extraclean): Delete config/patch*. + Wed Sep 1 13:40:30 1993 Chip Salzenberg (chip@fin) - * Makefile.in (SYSCALLS.c): Target deleted. - (SYSCALLS.c.X): Create SYSCALLS.c and use it in one rule. Delete also. + * cp-decl.c (start_function): Call duplicate_decls when user + redefines a builtin function. - * Makefile.in (ld): New target. - * t-* (ld, collect2*): Targets deleted. - (EXTRA_PROGRAMS): Moved ld here if it was in EXTRA_PASSES. - (EXTRA_PASSES): Delete ld. + Thu Sep 2 15:38:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * gcc.c, cccp.c: Don't include sys/file.h. + * cp-pt.c (instantiate_class_template): Only kick back the local + value if we're setting things up for the parser. - * fold-const.c (operand_equal_p): Floats must match bit for bit. + Wed Sep 1 12:54:38 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * gcc.c (link_command_spec): Put back -u*. + * cp-init.c (emit_base_init): Don't complain if the base has no + constructor; we should try to use the default constructor instead. -Fri Mar 27 11:33:46 1992 Simon J. Gerraty (sjg@melb.bull.oz.au) + Wed Sep 1 11:57:00 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * configure (m68k-bull-sysv*): Added config for Bull DPX/2 - * dpx2.h, dpx2g.h: New files. - * x-dpx2200, x-dpx2300, t-dpx2: New files. - * gstddef.h: Added _SIZET_ to the list of protection for size_t + * cp-call.c (find_scoped_type): Undo the sorry for now, it's hitting + a lot of code that it shouldn't be. -Fri Mar 27 14:47:47 1992 Paul Eggert (eggert@twinsun.com) + Mon Aug 30 13:08:48 1993 Mike Stump (mrs@cygnus.com) - * c-typeck.c (convert_arguments): -Wconversion wrongly warned when - passing enums, and didn't warn about int precision mismatches. + * cp-typeck.c (build_x_unary_op): unary & on an expression of + RECORD_TYPE that has an incomplete type gives the simple address of + the object, and should not give an error about method not found. - * fold-const.c (fold): If IEEE, 0-x is not x. + Mon Aug 30 11:06:26 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cse.c (simplify_unary_operation): fabs(-0.0) is 0.0, not -0.0. - * fold-const.c: Replace target_minus_zero with target_negative. - (fold_convert): Warn when converting NaN constants to integer. - (fold): fabs(-0.0) is 0.0, not -0.0. 0-x may not equal -x. - Do not optimize X++ == C to ++X == C+1 if C is floating point, - because it runs afoul of rounding error. - * real.h (REAL_VALUE_NEGATIVE): Add. + * cp-pt.c (instantiate_class_template): Don't try to instantiate a + template that's already being worked on. -Fri Mar 27 09:19:11 1992 Tom Wood (wood@dg-rtp.dg.com) + * cp-init.c (perform_member_init): Make an uninitialized reference + be a pedwarn, not a warning. - * m88k.c (emit_move_sequence): Check the size required for a zero - constant. + * cp-class.c (finish_struct): Make declaration of a negative width + for a bit-field be an error, not a warning. - * varasm.c (const_hash, compare_constant_1, record_constant_1): - For constructor of an array, include the size of the array in bytes. + Sat Aug 28 09:40:47 1993 Michael Tiemann (tiemann@blues.cygnus.com) -Fri Mar 27 09:09:53 1992 Michael Meissner (meissner@osf.org) + * cp-call.c (find_scoped_type): Add a `sorry' call if we hit an + uninstantiated type. - * t-decstatn (ALL): Remove variable. - * t-decrose (ALL): Ditto. - * t-i386rose (ALL): Ditto. - * t-encrose (ALL): Ditto. + Thu Aug 26 13:53:23 1993 Jason Merrill (jason@deneb.cygnus.com) -Fri Mar 27 17:51:32 1992 Jim Wilson (wilson@sphagnum.cygnus.com) + * cp-call.c (build_scoped_method_call): Don't produce an error + if the type has no destructor. - * rs6000.c (first_reg_to_save): When profiling, save space for the - argument registers, which need to be saved around the mcount call. - (output_prolog): Mark the link register as live when profiling. - (output_function_profiler): New function. Output code to call - mcount. - * rs6000.h (LIB_SPEC): Replace incorrect definition. Add - -L/lib/profiled and -L/usr/lib/profiled when profiling, -lg when - debugging, and -lc always. - (OVERRIDE_OPTIONS): No longer zero profile_flag. - (FUNCTION_PROFILER): Call output_function_profiler. + * cp-decl.c (record_builtin_type): Don't set TYPE_HAS_DESTRUCTOR + after all. - * .gdbinit (complaints): Set to 20. - (pbs): New command to call the cc1plus print_binding_stack function. + Wed Aug 25 19:10:24 1993 Jason Merrill (jason@deneb.cygnus.com) - * calls.c (expand_call): Delete obsolete references to is_builtin_new. + * cp-call.c (build_method_call): Check for class type value as + well - * Makefile.in (Makefile): Add dependence on version.c. + * cp-tree.h (IDENTIFIER_CLASS_TYPE_VALUE): Create macro + (IDENTIFIER_HAS_CLASS_TYPE_VALUE): Ditto -Thu Mar 26 19:21:00 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-init.c (is_aggr_typedef): Check for class type value as well + (for template destructors) + (build_delete): Don't assert aggregate type, don't check + TREE_GETS_DELETE if built-in type. - * i386.md (fixuns_truncMN2,fix_truncMdf2): Make a copy of the input - operand and clobber that, rather than clobbering the operand itself. +Fri Sep 24 15:57:14 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) -Thu Mar 26 18:06:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rtl.h: (HARD_FRAME_POINTER_REGNUM): New macro. + (hard_frame_pointer_rtx): New variable + * combine.c: (combinable_i3_pat): Don't add REG_DEAD notes for + HARD_FRAME_POINTER_REGNUM. + (subst, case SUBREG): Don't change register number or mode if it + is HARD_FRAME_POINTER_REGNUM. + * cse.c: (FIXED_REGNO_P): HARD_FRAME_POINTER_REGNUM is fixed. + (CHEAP_REG): HARD_FRAME_POINTER_REGNUM is cheap. + (FIXED_BASE_PLUS): Allow hard frame pointer as base. + (NONZERO_BASE_PLUS_P): Likewise. + (cannon_hash, case REG): Add HARD_FRAME_POINTER_REGNUM to list of + special registers for SMALL_REGISTER_CLASSES. + (find_best_addr): Addresses containing HARD_FRAME_POINTER_REGNUM + cannot be replaced. + (cse_main): value in HARD_FRAME_POINTER_REGNUM is preserved across + calls. + * dbxout.c: (dbxout_symbol): FRAME_POINTER_REGNUM has been eliminated + by now, use HARD_FRAME_POINTER_REGNUM. + * emit-rtl.c: (hard_frame_pointer_rtx): New variable. + (gen_rtx): return hard_frame_pointer_rtx if generating rtl + for HARD_FRAME_POINTER_REGNUM. + (enit_emit_once): Generate initial rtl for hard_frame_pointer_rtx. + * explow.c: (copy_all_regs): Don't copy HARD_FRAME_POINTER_REGNUM. + * flow.c: (life_analysis): Mark HARD_FRAME_POINTER_REGNUM as live at + the end of the function. + (insn_dead_p): Don't delete insns that set the hard frame pointer. + (mark_set_1): Don't add death information about + HARD_FRAME_POINTER_REGNUM. + (mark_used_regs, case REG): Don't put HARD_FRAME_POINTER_REGNUM in + regs_ever_live. Don't mark it as needed either. + * function.c: (instantiate_virtual_regs_1, case MEM): references to + MEM via the hard frame pointer shouldn't be copied. + * genattrtab.c: (hard_frame_pointer_rtx): New Dummy definition. + * global.c: (global_alloc): Make sure that it is always possible to + eliminate FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. + * jump.c: (thread_jumps): Value in HARD_FRAME_POINTER_REGNUM is never + modified by a call. + * local-alloc.c: (find_free_reg): Make sure we will always be able + to eliminate FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. + * loop.c: (invariant_p, case REG): hard_frame_pointer_rtx is + invariant. + * reload.c: (immune_p): Constants never overlap hard frame pointer + references. + (find_reloads_address): Compute invalid references to the hard + frame pointer in a register; also (reg + const) + and (reg + reg + const). - * protoize.c (shortpath): Add early check of size of shortname. + * reload1.c: (init_reload): use HARD_FRAME_POINTER_REGNUM instead of + FRAME_POINTER_REGNUM. + (reload): Only prohibit elimination of HARD_FRAME_POINTER_REGNUM, not + FRAME_POINTER_REGNUM if frame_pointer_needed. Never prohibit + elimination of FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. + Mark HARD_FRAME_POINTER_REGNUM as live at the start of a block if + it is still needed after elimination. + (eliminate_regs): For non-local goto's, don't delete stores into the + hard frame pointer. + (eliminate_regs_in_insn): adjust comment. + (mark_not_eliminable): if frame_pointer_rtx and hard_frame_pointer_rtx + are not the same, then frame_pointer_rtx is eliminable; + hard_frame_pointer_rtx never is if it is set.. + (order_regs_for_reload): HARD_FRAME_POINTER_REGNUM is a bad spill reg. + (choose_reload_regs): HARD_FRAME_POINTER_REGNUM is a bad choice. + * reorg.c: (mark_referenced_resource): if frame_pointer_needed, + HARD_FRAME_POINTER_REGNUM is also a referenced resource. + (mark_target_live_regs): value in HARD_FRAME_POINTER_REGNUM is not + call-clobbered. + (dbr_schedule): HARD_FRAME_POINTER_REGNUM should be valid at the + end of a function. + * rtlanal.c: (rtx_unstable_p): HARD_FRAME_POINTER_REGNUM is not + an unstable register. + (rtx_varies_p, case REG): hard_frame_pointer_rtx is invariant. + (rtx_addr_can_trap_p, case REG): hard_frame_pointer_rtx won't trap. + * sched.c: (memrefs_conflict_p): We can work out whether references + via hard_frame_pointer_rtx are likely to conflict. + (attach_deaths, case REG): Don't add death notes for + HARD_FRAME_POINTER_REGNUM. + * sdbout.c: (sdbout_symbol): Use HARD_FRAME_POINTER_REGNUM instead of + FRAME_POINTER_REGNUM. + * stmt.c: (expand_goto): Set hard_frame_pointer_rtx when restoring + the frame. Use it when restoring other registers. + (expand_end_bindings): ARG_POINTER_REGNUM will be eliminated into + HARD_FRAME_POINTER_REGNUM, not FRAME_POINTER_REGNUM; adjust code + accordingly. + * stupid.c: (stupid_find_reg): never use HARD_FRAME_POINTER_REGNUM. - * expr.c (do_jump): Adjust stack after any code that might be skipped. +Fri Sep 24 15:05:14 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Mar 26 06:37:35 1992 Michael Meissner (meissner@osf.org) + * reload1.c (eliminate_regs): Specially handle the case where INSN + is a note (an EXPR_LIST or INSN_LIST). + (eliminate_regs_in_insn): Pass the notes as INSN, + when calling eliminate_insn to process the notes. - * mips.c (toplevel): If NO_STAB_H is defined, include gstab.h - instead of stab.h. +Fri Sep 24 11:29:26 1993 Michael Meissner (meissner@osf.org) -Thu Mar 26 02:21:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * i386/osfrose.h (SET_ASM_OP): Define. - * Makefile.in (STAGESTUFF): Add EXTRA_PROGRAMS. +Fri Sep 24 04:47:33 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * configure: Reorder mips alternatives; put mips-mips-* at end. + * Makefile.in (toplev.o): Add bytecode.h and bc-emit.h to list + of dependencies. + (stmt.o): Add bytecode.h, bc-typecd.h, bc-opcode.h, bc-optab.h, + and bc-emit.h to list of dependencies. + (expr.o): Add bytecode.h, bc-opcode.h, bc-typecd.h, bc-optab.h, + bc-emit.h, and modemap.def to list of dependencies. + (emit-rtl.o): Add bytecode.h, bc-opcode.h, bc-typecd.h, + bc-optab.h, bc-emit.h, bc-opname.h to list of dependencies. + (integrate.o, regclass.o, varasm.o, function.o): Add bytecode.h to + list of dependencies. - * sparc.h (FRAME_POINTER_REQUIRED): 0 if frame is too big. - * sparc.c (compute_last_frame_offset): New function. +Thu Sep 23 23:58:58 1993 James Van Artsdalen (james@bigtex.cactus.org) -Wed Mar 25 21:17:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * att.h (ASM_OUTPUT_ASCII): Enclose macro in "do { .. } while (0)". + * sun386.h (ASM_OUTPUT_ASCII): Likewise. - * genattrtab.c (check_attr_test): Use XSTR instead of XEXP in one - place. +Thu Sep 23 11:55:47 1993 Ted Lemon (mellon@ncd.com) - * genextract.c (mark_operand_seen): Call xrealloc properly. + * toplev.c (lang_options): Add -fallow-single-precision. -Wed Mar 25 17:05:56 1992 Torbjorn Granlund (tege at zevs.sics.se) +Thu Sep 23 00:40:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp800.c (srcsi_operand): New function. - * hp800.md (mulsi, divsi, udivsi, modsi, umodsi): Use srcsi_operand - for inputs. - (mulsi): Use general_operand for output. - (one_cmplsi2): Use register_operand for output. + * Makefile.in (bi-parser.c): Supply explicit rule. + Add bi-parser.h as target. + Put these files in srcdir. -Wed Mar 25 15:50:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * bc-emit.c (bc_gen_rtx): Call gen_rtx. + (bc_print_rtl): #if 0 the contents. - * m68k.md (fsgldiv pattern): If FSGLDIV_USE_S, opcode has .s, not .x. - * amix.h (FSGLDIV_USE_S): Defined. + * Makefile.in (bc-optab.o, bc-emit.o): Add missing deps. + (bi-parser.c, bi-lexer.c): Don't depend on .h files here. - * xm-rs6000.h (REAL_NM_FILE_NAME): Defined. + * varasm.c (handle_pragma_weak): Test HANDLE_PRAGMA_WEAK + and WEAK_ASM_OP and SET_ASM_OP. - * x-i386sco (CCLIBFLAGS): Define as empty. + * Makefile.in (stmt.o): Fix typo. -Wed Mar 25 16:52:53 1992 Michael Meissner (meissner at osf.org) + * emit-rtl.c (gen_label_rtx): If output_bytecode, make a CODE_LABEL + but with different contents. - * collect2.c (OSF/rose scan_prog_file): If we are building a - program instead of a shared library, don't create an initializer - function entry. + * rtl.h (BYTECODE_LABEL, BYTECODE_OFFSET, BYTECODE_BC_LABEL): + (BYTECODE_UID): New macros. + (struct rtx_def): Delete elements label, offset, bc_label, uid. -Tue Mar 24 04:00:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in (bc-arity.h, bc-opcode.h, bc-opname.h): Use `./'. + (bi-arity, bi-opcode, bi-opname, bi-lexer): Use host compiler. + Link with HOST_LIBS and depend on HOST_LIBDEPS. + (bi-unparse): Deleted. + (bytecode.distclean): Don't do anything with bi-unparse + (bi-arity.o, bi-opcode.o, bi-opname.o, bi-parser.o, bi-reverse.o) + (bi-lexer.o): Use host compiler. - * Version 2.1 released. + * expr.c (expand_increment): Don't store directly ito a subreg + that is narrower than a word. - * xcoffout.h: Renamed from xcoff.h. - * dbxout.c, final.c, toplev.c, varasm.c, xcoffout.c: Use new name. - * Makefile.in: Corresponding changes. +Wed Sep 22 22:18:35 1993 Chip Salzenberg (chip@fin.uucp) - * dbxout.c (dbxout_type): Don't check DECL_IGNORED_P. + * combine.c (init_reg_last_arrays): New function. + (combine_instructions): Use it. + (force_to_mode): Narrow mask to fit mode (except VOIDmode). + (record_value_for_reg): When zeroing reg_last_set_value, also + zero reg_last_set_{mode,nonzero_bits,sign_bit_copies}. + (record_dead_and_set_regs): Likewise. - * t-rs6000: Complete replacement, to build collect2 properly. +Wed Sep 22 22:13:07 1993 James Van Artsdalen (james@bigtex.cactus.org) - * Makefile.in (mostlyclean): Delete sorted indices that aren't used. - (extraclean): Delete patch outputs, *.d, *.Z, *.tar. + * bc-emit.c (bc_initialize): Add MODE arg to REAL_VALUE_ATOF calls. - * Makefile.dos (getpwd.o): New target. - (OBJS, protoize, unprotoize): Add getpwd.o. - (SYSCALLS.c, SYSCALLS.c.X): Copy from Makefile.in. + * Makefile.in (bi-lexer.c): File is in $(srcdir). -Tue Mar 24 06:26:26 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * reg-stack.c (record_label_references): Don't follow a null label + reference chain. - * cse.c (cse_insn): When deleting dead code after - making unconditional branch, check for end of chain. +Wed Sep 22 15:56:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sched.c (update_flow_info): Add code for REG_LABEL case. + * Makefile.in (bi-arity, bi-opcode, bi-opname, bi-unparse, bi-lexer): + Make the rules explicit. Don't use $^. + (bi-run.o, bi-parser.o, bi-lexer.o): Eliminate $<. + (bc-arity.h, bc-opcode.h, bc-opname.h): Eliminate $< and $@. - * function.c (instantiate_virtual_regs_1): Don't modify a MEM - without copying it unless the modified MEM is valid. + * c-typeck.c (set_init_index): Handle and allow CONST_DECL. + (build_c_cast): When making a CONSTRUCTOR for a union cast, + specify its type. - * cse.c (rtx_cost): Assign ASM_OPERANDS a high cost. + * Makefile.in (bi-lexer.o, bi-parser.o): Use ALL_CFLAGS. -Tue Mar 24 05:48:25 1992 Ken Raeburn (raeburn@wombat.gnu.ai.mit.edu) + * bi-arity.c (main): Make sure there's some value within + each pair of braces. - * cp-*: Disabled 22 March changes relating to dbxout.c; the problem - will be fixed properly, with more extensive reworking of the C++ - front end, later. This fix was buggy. - * dbxout.c (dbxout_type_methods): Reverted 22 March changes; if a - template class is passed, print a warning message and emit no info - about methods. + * expr.c (bc_adjust_stack): Use VALIDATE_STACK_FOR_BC, + not VALIDATE_STACK. + * bc-emit.c (bc_emit_bytecode): Likewise. + (bc_emit_instruction) [! __GNUC__]: Don't really use bc-typecd.def. -Mon Mar 23 14:18:30 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * varasm.c (bc_assemble_integer): Make definition static. - * make-cc1.com: Add getpwd.c. + * expr.c (bc_strdup): Don't use strcpy's value. -Mon Mar 23 12:53:02 1992 Jyrki Kuoppala (jkp@batman.cs.hut.fi) + * bytetypes.h: New file. Typedefs moved from bytecode.h. + (union stacktype): Moved here. + * bytecode.h: Typedefs deleted. + * bi-run.h: (union stacktype): Deleted. + (BI_PARAMS): Don't continue the parmlist. + * bc-emit.c: Include bytetypes.h, if __GNUC__. - * pc532-min.h (HAVE_ATEXIT): Defined. +Wed Sep 22 15:49:47 1993 Ted Lemon (mellon@ncd.com) - * ns32k.c (print_operand) [PC_RELATIVE]: - Always use output_address for MEM. + * c-decl.c (flag_allow_single_precision): New variable. + (c_decode_option): Handle -fallow-single-precision. + * c-tree.h (flag_allow_single_precision): Declared. + * c-typeck.c (default_conversion): Implement -fallow-single-precision. - * pc532.h (BASE_REG_NEEDED): Defined. +Wed Sep 22 11:18:24 1993 Mike Stump (mrs@cygnus.com) -Mon Mar 23 07:28:14 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (finish_struct): Move special C++ only code that + handles anonymous unions inside structures here. + * stor-layout.c (layout_record): From here. - * combine.c (try_combine): Correct error in last change; don't - pass STRICT_LOW_PART or ZERO_EXTRACT to reg_overlap_mentioned_p. +Wed Sep 22 14:14:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sun3.h (CPP_SPEC): Delete extra brace. + * enquire.c (FPROP): Recognize 80387 or 68881 XFmode format. -Mon Mar 23 02:43:56 1992 Michael Tiemann (tiemann@mole.gnu.ai.mit.edu) + * c-typeck.c (build_component_ref): For a field in an anonymous union, + make two nested COMPONENT_REFs. + (lookup_field): Additional arg INDIRECT. - * cp-decl.c (pop_from_top_level): Take care of C_C_D. +Wed Sep 22 14:45:42 1993 Kresten Krab Thorup (krab@iesd.auc.dk) -Sun Mar 22 17:24:09 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * tm.texi (CLEAR_INSN_CACHE): New macro. + * libgcc2.c (__clear_cache): add case for new CLEAR_INSN_CACHE. - * pyr.h: Remove TARGET_INDEX. Update other TARGET switches. - Fix several comments. - (REGNO_OK_FOR_BASE_P): Allow reg 0. - (REGNO_OK_FOR_INDEX_P): Reformulate. - (REG_OK_FOR_INDEX_P): Disallow reg 0. + * libgcc2.c (__enable_execute_stack): Add case for NeXT/__MACH__. + * config/m68k/next.h (INITIALIZE_TRAMPOLINE): Append call to + __enable_execute_stack. + (CLEAR_INSN_CACHE): New macro. -Sun Mar 22 15:10:49 1992 Michael Meissner (meissner@osf.org) + * varasm.c (output_constructor): Use the type given + by the constructor expression only if available. Otherwise + use the type of the declared type. - * mips-tfile.c (mark_stabs): Make function defintion agree with - prototype. +Tue Sep 21 19:51:26 1993 Andrew McCallum (mccallum@vein.cs.rochester.edu) - * mips.md (cpu, branch_likely attributes): Make these attributes - const. - (all functional units): Restore functional units that look at the - -mcpu= switch for scheduling now that genattrtab uses less memory. + * objc/Object.[hm] (-compare:, -shouldNotImplement:): Added. -Sun Mar 22 13:57:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * objc/archive.c (objc_write_type, objc_write_types): Take + take char** args for writing strings in stead of char* to + match NeXT. Also correct some typos in error messages. - * c-typeck.c (convert_for_assignment): - Only explicit 0 converts to pointer. +Tue Sep 21 18:35:04 1993 Per Bothner (bothner@kalessin.cygnus.com) - * Makefile.in (doc): Don't depend on gplus.info. - (gplus.info): Target deleted. + * c-typeck.c (push_member_name): Take a decl instead of a string. + Allow DECL_NAME to be NULL (anonymous fields). + * c-typeck.c (push_init_level, process_init_element): Change + callers appropriately. - * c-decl.c (store_parm_decls): Call build_type_copy with just one arg. +Tue Sep 21 16:44:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (do_include): Use entire filename when checking for repeat. - Use lookup_include. - (lookup_include): New function. + * libgcc2.c (L_bb): Test inhibit_libc. - * protoize.c (find_extern_def): Store ??? one char at a time. + * Makefile.in (ENQUIRE, CROSS_TEST): New variables. + (all.cross): Use them. - * sparc.h (ASM_OUTPUT_FLOAT): Fix typo. + * mips-tfile.c, mips-tdump.c [CROSS_COMPILE]: Include mips/a.out.h. - * fold-const.c (operand_equal_p): Reject NaNs and infinities. + * arm.h, clipper.h, i386.h, i860.h, pyr.h, spur.h: + (INIT_CUMULATIVE_ARGS): Pass just the return value type + to aggregate_value_p. - * varasm.c (immed_real_const): Distinguish minus zero from zero. +Tue Sep 21 10:50:19 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * sparc.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): - Use `inf' for infinities. Use hex for minus-zero. + * emit-rtl.c (gen_label_rtx, emit_line_note): add conditional for + bytecode. - * objc-actions.c (build_selector_translation_table): - Don't make a duplicate decl here for _OBJC_SELECTOR_REFERENCES. - Just call finish_decl to store the initial value. - Call push_obstack_nochange to balance with finish_decl. - Use selector_type for declaring individual selector names. + * expr.c (mode_to_const_map, mode_to_load_map, mode_to_store_map): + new variable. + (bc_init_mode_to_opcode_maps): new function; initialize maps. + (expand_assignment, expand_expr, expand_increment): add + conditional for bytecode. + (bc_expand_expr, bc_load_memory, bc_store_memory, + bc_allocate_local, bc_allocate_variable_array, bc_load_externaddr, + bc_strdup, bc_load_externaddr_id, bc_load_localaddr, + bc_load_parmaddr, bc_canonicalize_array_ref, + bc_expand_component_address, bc_push_offset_and_size, + bc_expand_address, bc_runtime_type_code, bc_gen_constr_label, + bc_expand_constructor, bc_store_field, bc_store_bit_field, + bc_load_bit_field, bc_adjust_stack): new function. -Sun Mar 22 13:11:32 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * function.c (put_var_into_stack, expand_main_function): do + nothing for bytecode. + (bc_build_calldesc): new function. + (init_function_start): use it if outputting bytecode. + (expand_function_start, expand_function_end): add conditional for + bytecode. + (bc_expand_function_start, bc_expand_function_end): new function. - * loop.c (update_giv_derive): Correctly handle the case where - more than one biv update occurs after a giv is defined. + * integrate.c (output_inline_function): signal error for bytecode. - * cse.c (rehash_using_reg): Add missing arg to call to exp_equiv_p. + * regclass.c (fix_register): signal error for bytecode. - * expmed.c (expand_mult_add): Add missing arg to call to type_for_mode. + * stmt.c (struct nesting): new members bc_stack_level, skip_label). + (struct goto_fixup): new members bc_target, label, bc_handled, + bc_stack_level. + (emit_nop, expand_computed_goto, expand_label, expand_goto, + expand_goto_internal, fixup_gotos, expand_asm, + expand_asm_operands, expand_expr_stmt, expand_start_expr_stmt, + expand_end_expr_stmt, expand_start_cond, expand_start_else, + expand_end_cond, expand_start_loop, expand_loop_continue_here, + expand_end_loop, expand_exit_loop_if_false, expand_null_return, + expand_return, expand_start_bindings, expand_end_bindings, + expand_decl, expand_start_case, pushcase, + check_for_full_enumeration, expand_end_case): add conditional for + bytecode. + (bc_expand_goto_internal, bc_expand_fixup, bc_fixup_gotos, + bc_expand_start_cond, bc_expand_end_cond, bc_expand_start_else, + bc_expand_end_bindings, bc_expand_decl, + bc_expand_variable_local_init, bc_expand_decl_init, + bc_expand_start_case, bc_pushcase, + bc_check_for_full_enumeration_handling, bc_expand_end_case, + bc_new_uid): new function. - * reorg.c (fill_slots_from_thread): In the case where have a reg-reg - copy and will substitute our destination for our source in the - following insn, correctly check for it modifying our destination. + * toplev.c (output_bytecode): new variable. + (f_options): add entry for -fbytecode. + (fatal_insn_not_found, compile_file, rest_of_decl_compilation, + rest_of_compilation, main): add conditional for bytecode. -Sun Mar 22 09:20:16 1992 Michael Tiemann (tiemann@cygnus.com) + * config/m68k/m68k.c config/m68k/m68k.h: add bytecode specific + definitions. - * cp-typeck.c (unary_complex_lvalue): Don't complain about taking - the ``address'' of a bound static method or member. + * varasm.c (text_section, data_section, make_function_rtl, + make_decl_rtl, assemble_asm, assemble_start_function, + assemble_zeros, assemble_string, assemble_variable, + assemble_external, assemble_external_libcall, assemble_label, + assemble_name, assemble_static_space, + assemble_trampoline_template, assemble_integer, assemble_real, + decode_addr_const, output_constant_def, output_constant_pool, + output_constant, output_constructor): add conditional for + bytecode. + (bc_output_constructor, output_byte_asm, bc_make_rtl, + bc_output_data_constructor, bc_assemble_integer): + new function. + (handle_pragma_weak): break out asm writing code from + handle_pragma_token, move to varasm.c, so bytecode-specific + macros can access static varasm data and functions. - * cp-init.c (resolve_offset_ref): Fix bug in handling of static - members and member functions. + * c-pragma.c (handle_pragma_token): use handle_pragma_weak. - * cp-decl2.c (finish_file): If CURRENT_CLASS_TYPE is non-NULL on - entry to this function, punt. - - * cp-parse.y (template_parm): Use CLASS_TYPE_NODE instead of - CLASS_TYPE value. - - * cp-cvt.c (build_type_conversion): Add another add-hoc rule to find - unsigned->int conversion (if conversion to long does not exist). - - * cp-method.c (build_overload_name): Don't call `array_type_nelts' - if the TYPE_DOMAIN of an array type is NULL_TREE. - - * cp-init.c (build_offset_ref): Set up and use DECL even in case - where NAME resolves to a method. - - * cp-call.c (ideal_candidate): Half of Jan 28 change was missing. - Now PARMS are not converted in place if BASETYPE is NULL. - - * cp-typeck.c (build_component_ref): Don't return a TYPE_DECL. - - * cp-type2.c (build_functional_cast): If CURRENT_FUNCTION_DECL is - NULL, don't wrap EXPR_AS_CTOR in a NEW_EXPR. This make it possible - to parse default initializers that involve constructor calls. - * cp-typeck.c (convert_for_initialization): Handle this change. - * cp-method.c (dump_init): Grok INDIRECT_REFs that have - TREE_HAS_CONSTRUCTOR set. - - * cp-decl.c (push_overloaded_decl): Don't use the - DECL_ASSEMBLER_NAME for GLOB as the TREE_PURPOSE of the new GLOB. - Use ORIG_NAME instead. - - * cp-decl.c (grokvardecl): If FIELD has incomplete type, complete it - with TYPE. - - * cp-decl2.c (flag_this_is_variable): Define the value -2 to mean an - object of known type is being constructed. - * cp-decl.c (resolves_to_fixed_type_p): Test FLAG_THIS_IS_VARIABLE - for the value -2 instead of testing DECL_CONSTRUCTOR_P in case we - are looking at `current_class_decl'. - * cp-search.c (init_vbase_pointers): Set FLAG_THIS_IS_VARIABLE to -2 - instead of 0. - (build_vbase_vtables_init): Ditto. - * cp-*.c: All tests of FLAG_THIS_IS_VARIABLE changed to reflect the - new semantics. - - * cp-typeck.c (comptypes): Don't use IS_AGGR_TYPE_2; test explicitly - that both are RECORD_TYPE. - (build_binary_op_nodefault): Ditto. - (convert_for_assignment): Ditto. - * cp-cvt.c (convert_to_pointer): Ditto. - (convert_to_pointer_force): Ditto. - * cp-call.c (convert_harshness): Ditto. - - * cp-search.c (get_first_matching_virtual): Fix typo. - - * cp-tree.c (layout_basetypes): When warning about certain - inheritance relationships, only print "virtual" when the - inheritance is virtual. - -Sun Mar 22 01:28:41 1992 Ken Raeburn (Raeburn@Cygnus.COM) - - Fix dbx info for methods of template classes: - * cp-decl.c (make_type_decl): New function. Creates a TYPE_DECL - node and assigns as its DECL_ASSEMBLER_NAME the encoded form of the - type name as it will be used in assembler output. All calls to - build_decl(TYPE_DECL,...) changed to call this. - * dbxout.c (dbxout_type_methods): Instead of skipping digits and - assuming the human-readable type name follows in the assembler names - for methods, use DECL_ASSEMBLER_NAME of the type. - Handle the special DECL_NAME that is made for templates. - * cp-lex.c (build_lang_field_decl): Set DECL_ASSEMBLER_NAME - correctly if new decl is a TYPE_DECL. - (build_lang_decl): Ditto. - * cp-decl.c (pushdecl): Use DECL_ASSEMBLER_NAME only for - FUNCTION_DECL and VAR_DECL nodes; all others use DECL_NAME. - * cp-tree.h (make_type_decl): Declare it. - - * cp-pt.c (overload_template_name, undo_template_name_overload): - Revert 4 March change. - - * cp-decl2.c: No longer define NEW_OVERLOAD_SCHEME. - (grokfield): Use new encoding scheme always. - - * cp-pt.c (overload_template_name): Deleted extra assignment to - IDENTIFIER_LOCAL_VALUE slot. - - * cp-method.c (dump_aggr_type): Use DECL_CONTEXT rather than - DECL_CLASS_CONTEXT. - - * cp-pt.c (instantiate_class_template): Move some common code from - two branches to before branch point. - - * cp-method.c (dump_aggr_type): Don't discard last character of - context string; it's not whitespace. - -Sun Mar 22 15:58:48 1992 Per Bothner (bothner@rtl.cygnus.com) - - * cp-tree.h: Add more enum->int casts needed by some compilers. - -Sun Mar 22 20:40:25 1992 Mike Stump (mrs@cygnus.com) - - * cp-typeck.c (build_modify_expr): Handle preincrement and - predecrement as valid lvals. - - * gplus.gperf: Finish off changing ASM to ASM_KEYWORD. - * cp-hash.h: Rebuilt. - -Sat Mar 21 15:43:04 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * c-typeck.c (build_c_cast): Don't warn if convert explicit 0 to ptr. - - * local-alloc.c (wipe_dead_reg): If insn has multiple sets and - the reg appears in a destination, extend life to end of insn. - * global-alloc.c (global_conflicts): Analogous change. - (mark_reg_conflicts): New function. - * combine.c (try_combine): If I2 has multiple dests, make sure - we don't change one of them to overlap anything used within another. - - * configure (pyramid): Commented out. - - * toplev.c (main): Handle -gen-aux-info, with argument. - (compile_file): Assume aux_info_file_name already computed. - Don't make it local here. - * protoize.c (munge_compile_params): Produce -aux-info. - Set aux_info_file_name_index. - (gen_aux_info_file): Produce and store the aux-info file name. - (input_file_name_index): Renamed from filename_index. - (aux_info_file_name_index): New var. - * Makefile.in (SYSCALLS.c.X): Use -aux-info. - * gcc.c, hp800.h, next.h, sparc.h, sun2.h, sun3.h, svr4.h: - (WORD_SWITCH_TAKES_ARG): Handle -aux-info. - * gcc.c (default_compilers): Pass -aux-info to cc1*. - - * configure (mips-*-sysv*): Renamed from mips-*-sysv and moved down. - - * gcc.c (execute): Undo Mar 12 change. - - * configure (i386-*-bsd*): New alternative. - * i386bsd.h: New file. - -Sat Mar 21 15:14:08 1992 Ron Guilmette (rfg at ncd.com) - - * sparc.c (output_move_double): Check for XEXP (op2, 0) being a - LOW_SUM, rather than checking op2. Handle both ldd and std there. - -Sat Mar 21 14:14:10 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * vms.h (CPP_PREDEFINES): Do not define __GNU__. - -Sat Mar 21 21:35:37 1992 Jyrki Kuoppala (jkp@batman.cs.hut.fi) - - * ns32k.md (call_value): Added a missing "{". - - * ns32k.c (print_operand): Fixed typo X -> x, FILE -> file. - -Sat Mar 21 11:11:04 1992 Michael Meissner (meissner@osf.org) - - * mips.h (MIPS_VERSION): Bump Meissner version # to 14. - (CPP_PREDEFINES): Always define SYSTYPE_BSD43. - (CPP_SPEC): Don't define it here. - (ASM_SPEC): Pass -cpp/-nocpp/-mips1/-mips2/-mips3 to MIPS assembler, - and only pass -nocpp by default unless .s files are assembled for - MIPS compatibility. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to MIPS linker. - (MD_STARTFILE_PREFIX): Define to be /usr/lib/cmplrs/cc/ if not - already defined. - (NM_FLAGS): Define as appropriate for most MIPS systems. - (PREFERRED_DEBUGGING_TYPE): If -ggdb prefer stabs over the normal - ECOFF debug format, but -g selects ECOFF. - (DEFAULT_GDB_EXTENSIONS): Define as 1. - (DOLLARS_IN_IDENTIFIERS): Don't define if already defined. - - * mips.c (mips_output_filename): If emitting encapsulated stabs, - emit #@stabs immediately after the first .file, so that the @stabs - is the second symbol. GDB 4.4 only checks symbol #2 to see whether - it is encapsulated stabs, or ECOFF. - - * mips.md (subdi define_splits): Use ltu instead of lt. - (branch_zero_true): Generate correct code when not optimizing, and - an always true/false branch is generated. - (branch_zero_false): Ditto. - - * mips-bsd.h (CPP_PREDEFINES): Always define SYSTYPE_BSD43. - (CPP_SPEC): Don't define it here. Remove -Z{BSD43,SYSV} support. - Don't pass -I in here. - (SYSTEM_INCLUDE_DIR): Define to be /bsd43/usr/include. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the linker. Remove - -Z{BSD43,SYSV} support. Always pass -systype /bsd43/ to the linker. - - * mips-sysv.h (CPP_PREDEFINES): Always define SYSTYPE_SYSV. - (CPP_SPEC): Don't define it here. Remove -Z{BSD43,SYSV} support. - Don't pass -I in here. - (SYSTEM_INCLUDE_DIR): Define to be /sysv/usr/include. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the linker. Remove - -Z{BSD43,SYSV} support. Always pass -systype /sysv/ to the linker. - (MD_STARTFILE_PREFIX): Remove, this is now defined in mips.h. - - * mips-news.h (CPP_SPEC): Don't pass -I in here. - (SYSTEM_INCLUDE_DIR): Define to be /usr/include2.0. - (ASM_SPEC): Pass -cpp/-nocpp/-mips1/-mips2/-mips3 to MIPS assembler, - and only pass -nocpp by default unless .s files are assembled for - MIPS compatibility. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the linker. - - * mips-news5.h (CPP_PREDEFINES): Define SYSTYPE_SYSV. - (CPP_SPEC): Don't define it here. Remove -Z{BSD43,SYSV} support. - Don't pass -I here. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the linker. - - * iris.h (ASM_SPEC): Pass -cpp/-nocpp/-mips1/-mips2/-mips3 to MIPS - assembler, and only pass -nocpp by default unless .s files are - assembled for MIPS compatibility. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the linker. - - * iris.h (DOLLARS_IN_IDENTIFIERS): Define as 0, for iris assembler. - (NO_DOLLAR_IN_LABEL): Define, to force static constructors to use a - period instead of a dollar sign. - - * decstatn.h (ASM_SPEC): Pass -cpp/-nocpp/-mips1/-mips2/-mips3 to - MIPS assembler, and only pass -nocpp by default unless .s files are - assembled for MIPS compatibility. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the MIPS linker. - - * decsrose.h (ASM_SPEC): Pass -cpp/-nocpp/-mips1/-mips2/-mips3 to - MIPS assembler, and only pass -nocpp by default unless .s files are - assembled for MIPS compatibility. - (LINK_SPEC): Pass -mips1/-mips2/-mips3 to the MIPS linker. - - * Makefile.in (collect2.o): Define macros where the standard places - binaries are installed, so that if it is invoked outside of gcc, it - has a better chance of finding the correct version of the tools to - invoke. - - * mips-tdump.c (toplevel): Declare things void * on Silicon Graphics. - - * mips-tfile.c (toplevel): Declare things void * on Silicon - Graphics. - (stabs_seen): Move static variable to file scope. - (mark_stabs): New function to put out the @stabs symbol for GDB to - switch to encapsulated stabs. - (pseudo_ops): Call mark_stabs if #@stabs found. - (parse_stabs_common): Call mark_stabs if needed to add @stabs. - - * sdbout.c (sdbout_dequeue_anonymous_types): Don't core dump if - TREE_VALUE is null. - - * decstabs.h (new file): DECstation w/encapsulated stabs. - * irisgdb.h (new file): SGI iris w/encapsulated stabs. - * mips-gbsd.h (new file): Mips BSD43 w/encapsulated stabs. - * mips-gdb.h (new file): Mips w/encapsulated stabs. - * mips-gnews.h (new file): Sony NEWS w/encapsulated stabs. - * mips-gnews5.h (new file): Sony NEWS 5.0 w/encapsulated stabs. - * mips-gsvr4.h (new file): Mips SV.4 w/encapsulated stabs. - * mips-gsysv.h (new file): Mips SV.3 w/encapsulated stabs. - * mips-svr4.h (new file): Mips System V.4. - * x-iris (new file): Specify that iris needs alloca.o since it's - alloca is buggy. - - * dbxout.c (toplevel): If NO_STAB_H is defined, include gstab.h just - like if USG is defined. - * final.c (toplevel): Ditto. - * mips-tfile.c (toplevel): Ditto. - * xcoffout.c (toplevel): Ditto. - - * xm-mips.h (NO_STAB_H): Define, except on OSF/1. - -Fri Mar 20 23:51:54 1992 James Van Artsdalen (james at bigtex.cactus.org) - - * reg-stack.c (subst_asm_stack_regs): A REG_UNUSED note never - applies to an input reg, even if that reg is tied to an output. - - * reg-stack.c (record_asm_reg_life): Use XVECLEN only on a PARALLEL. - (subst_asm_stack_regs): Likewise. - -Fri Mar 20 18:57:43 1992 Michael Meissner (meissner@osf.org) - - * mips.h (MIPS_VERSION): Bump Meissner version # to 13. - (mips_declare_object): Declare new function. - (ASM_OUTPUT_LABEL): Remove cruft from when collect spit out assembly - language instead of C code. - (ASM_GLOBALIZE_LABEL): Ditto. - (ASM_OUTPUT_INT): Ditto. - (ASM_OUTPUT_INT_CONST): Remove, no longer used. - (ASM_OUTPUT_PTR_INT_SUM): Ditto. - (ASM_OUTPUT_LABEL): Don't set that we've seen an identifier here. - (ASM_DECLARE_OBJECT_NAME): New macro, call mips_declare_object to - emit the label, and mark that no .extern is needed for the name. - (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Call mips_declare_object. + * function.h (enum pragma_state): moved from c-pragma.c - * mips.c (mips_declare_object): New function to output the stuff - needed for global variables, bss variables, and static bss - variables. + * bc-config.h, bc-emit.c, bc-optab.c, bc-optab.h, bc-trans.h, + bc-typecd.def, modemap.def, bytecode.def, bc-emit.h, bc-typecd.h, + bi-arity.c, bi-defs.h, bi-lexer.c, bi-opcode.c, bi-opname.c, + bi-parser.c, bi-parser.h, bi-reverse.c, bi-run.c, bi-run.h, + bi-unparse.c: new file. bc-* are exclusively compiler files, bi-* + are interpreter files. -Fri Mar 20 14:13:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in: add rules and/or dependencies for bc-emit.o, + bc-optab.o, bytecode, bi-arity, bi-opcode, bi-opname, bi-lexer, + bi-run.o, bi-parser.c, bi-parser.o, bi-lexer.o bi-arity.o, + bi-opcode.o, bi-opname.o, bi-reverse.o, bc-arity.h, bc-opcode.h, + bc-opname.h, bytecode.mostlyclean, bytecode.distclean, + bytecode.realclean - * cp-xref.c (GNU_xref_file): Get rid of arbitrary limit--malloc nmbuf. - * cp-parse.y (scoped_id): Error if spec'd type is undefined. +Tue Sep 21 10:20:55 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m68k.c (output_function_epilogue): Output at least a nop. + * jump.c (jump_optimize): Try putting RETURN at end of function + both at start and at end of our optimization. - * xm-hp320.h (USG): Defined. +Mon Sep 20 17:22:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68k.c (output_function_prologue, output_function_epilogue): - Change %I to %0I. - (print_operand): Likewise. + * expr.c (expand_expr): Handle flag_volatile here. + * c-typeck.c (build_indirect_ref): TREE_THIS_VOLATILE no longer + depends on flag_volatile. - * varasm.c (data_section): Add forward decl. +Mon Sep 20 15:21:31 1993 Doug Evans (dje@cygnus.com) - * m68k.c (print_operand): Make %! print fpcr. - * crds.h, hp320.h, mot3300.h, news.h, tower-as.h (PRINT_OPERAND): - Likewise. - * m68k.md (fix_trunc*): Use %!. + * gstddef.h: Back out change of Sep 15 (handles Sun lossage). + Prevented bootstrapping. - * toplev.c (compile_file): Optionally call setvbuf for output file. +Mon Sep 20 12:21:56 1993 Kresten Krab Thorup (krab@iesd.auc.dk) - * loop.c (move_movables): Fix typo. + * objc/archive.c (objc_read_string): Allocate n+1 chars instead of + just n. -Fri Mar 20 17:42:12 1992 Paul Eggert (eggert@twinsun.com) +Sun Sep 19 13:06:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (SYSCALLS.c): Use `cat' to create this file, instead - of having it consist of `#include' directives. - (mostlyclean): Delete SYSCALLS.c. - * SYSCALLS.c: File deleted. + * function.c (combine_temp_slots): Handle deletion properly. + Free the RTL that is allocated. + * rtl.c (rtx_free): New function. - * getpwd.c (new file): Get and cache working directory, using PWD - if it works and getcwd otherwise. - * Makefile.in (OBJS, protoize): add getpwd.o - * cp-xref.c (GNU_xref_file): Likewise. - * dbxout.c (dbxout_init): Likewise. - * dwarfout.c (output_compile_unit_die): Likewise. - * protoize.c (main): Likewise. + * config/m68k/m68k.c (output_move_double): Handle register overlap + case that occur in soft-float XFmode. Code basically copied from + i386.c. -Fri Mar 20 12:58:57 1992 Ron Guilmette (rfg at ncd.com) +Sun Sep 19 14:40:08 JDT 1993 Michael Ben-Gershon (mybg@cs.huji.ac.il) - * dwarfout.c (location_or_const_value_attribute): Fixed to use - DECL_INCOMING_RTL as the "location" for formal parameter variables. + * cse.c (simplify_unary_operation): If REAL_ARITHMETIC is defined, + and a FIX operation is applied to convert a CONST_DOUBLE to an INT, + the CONST_DOUBLE must first be rounded to zero. -Fri Mar 20 13:26:16 1992 Michael Collison (collison@osf.org) +Sun Sep 19 12:49:05 1993 James Van Artsdalen (james@bigtex.cactus.org) - * i386rose.h (INIT_SECTION_ASM_OP): OSF doesn't support a true - initialization section. + * Makefile.in (objc-headers): Depend on stmp-fixinc to build the + include/ subdirectory first. -Fri Mar 20 07:23:15 1992 Tom Wood (wood at dg-rtp.dg.com) +Sun Sep 19 09:45:16 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * m88k.md (set zero_extract patterns): Use the + constraint. + * gstddef.h (size_t): Acorn RISCiX requires __size_t defined. - * crtstuff.c (__do_global_ctors_aux): Declare it. +Sun Sep 19 09:08:09 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m88k.h (CONDITIONAL_REGISTER_USAGE): Mark the PIC register fixed, - but not call used. - - * m88k.c (m88k_builtin_saveregs): Get a properly aligned block. + * genrecog.c (preds): Correct typo in name of `comparison_operator'. + (add_to_sequence): If PREDICATE_CODES specified, warn if we find a + predicate not in that list. - * m88k.md (cpu attribute): Use const form. + * reload.c (find_reloads): Reject an alternative if two operands + match the same output and we have to do a reload. - * m88k.h, m88k.c, m88kdgux.h (uses of *_ASM_OP): Add tabs. + * rs6000.c (rs6000_override_options): Change processor type to + "rios1"; allow "rios" as synonym. + Add synonyms for "mpc6xx". + * rs6000.h (enum processor_type): Change from RIOS to RIOS1. + (PROCESSOR_DEFAULT): Likewise. + * rs6000.md (attribute "cpu"): Change from "rios" to "rios1"; all + uses changed. -Fri Mar 20 05:46:26 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * xm-alpha.h: Add extern declaration for alloca. - * expmed.c (emit_store_flag): Need to prevent SUBTARGET from being - OP0 in one more case. + * a29k.h (PREDICATE_CODES): Fix typos and add missing entries. + * alpha.h, i860.h i960.h, m88k.h, mips.h, rs6000.h: Likewise. - * loop.c (add_label_notes): New function. - (move_movables): Use it when hoisting a `move_insn' movable - to ensure we create any required REG_LABEL notes. +Sat Sep 18 09:27:03 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp800.h (CONDITIONAL_REGISTER_USAGE): Make reg 27 a global_reg - for now. + * expr.c (convert_move): Use emit_library_call_value. - * combine.c (make_field_assignment): Use correct mode when shifting - the source of the assignment. +Sat Sep 18 08:01:44 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * fold-const.c (invert_truthvalue): Correct error in last change. + * alpha.h (REG_ALLOC_ORDER): Add missing entries. -Thu Mar 19 18:59:24 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * combine.c (recog_for_combine): Fix typos in previous change. - * stmt.c (expand_end_case): Convert do_tablejump arg to Pmode. + * reload.c (earlyclobber_operand_p): New function. + (combine_reloads): Use it. + (find_reloads): Set reload_earlyclobbers earlier. + (refers_to_regno_for_reload_p): Count something being stored into + if it is an earlyclobber operand. -Thu Mar 19 16:54:15 1992 Michael Meissner (meissner@osf.org) +Fri Sep 17 21:40:02 1993 Per Bothner (bothner@cygnus.com) - * collect2.c (main): Only pass -fxxx and -mxxx options to gcc when - building constructors. + * fold-const.c (invert_truthvalue): Instead of aborting, + build a TRUTH_NOT_EXPR when unable to optimize. + (The aborts were not a problem for C, which always first + calls truthvalue_conversion, but that should not be + necessary for a language with real Booleans.) -Thu Mar 19 16:44:21 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Sep 17 20:38:53 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fold-const.c (invert_truthvalue): Correctly check for floating - comparison. + * c-typeck.c (output_init_element): Update constructor_bit_index + for union types. -Thu Mar 19 14:42:49 1992 Tom Wood (wood at dg-rtp.dg.com) + * libgcc2.c: Declare __fixunsxfdi only if really have XFmode. + Likewise for __fixunstfdi. - * function.c (expand_main_function): Do so if INVOKE__main is defined. - * libgcc2.c (__main): Provide if INVOKE__main is defined. - * crtstuff.c (__do_global_ctors_aux): Renamed from __do_global_ctors. - (__do_global_ctors): Simple non-static function that invokes - __do_global_ctors_aux. +Fri Sep 17 18:08:37 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * crtstuff.c ({CTOR,DTOR}_LIST_{BEGIN,END}): Allow alternate way - to represent and define __{CTOR,DTOR}_LIST__. - * i386v.h, aix386.h (CTOR_LIST_{BEGIN,END}): Use these to push - instead of the funny definition of CTORS_SECTION_ASM_OP. - * svr3.h (CTORS_SECTION_ASM_OP): Use the .init section. + * combine.c (recog_for_combine): Always reject a PARALLEL containing + our special CLOBBER. - * m88kv3.h (CTOR_LIST_BEGIN): Emit code to .init to push a zero. - (CTOR_LIST_END): Do nothing. - (ASM_OUTPUT_CONSTRUCTOR): Emit code to .init to push the address. - (DTOR_LIST_{BEGIN,END}): Output a block of four words. - (ASM_OUTPUT_DESTRUCTOR): Output the address and three words of -1. - (DO_GLOBAL_DTORS_BODY): Ignore all values of -1. + * cse.c (fold_rtx, case MINUS): Copy result obtained from + hash table. - * real.h (REAL_VALUE_ISNAN): Define. - * fold-const.c (target_isnan): New function. - * sun3.h, sparc.h (ASM_OUTPUT_{FLOAT,DOUBLE}): Use REAL_VALUE_ISNAN. + * cse.c (fold_rtx, case SUBREG): If paradoxical SUBREG of a + constant, return the constant. - * sun3.h: Delete extra #endif. + * c-typeck.c (lookup_field): Use HOST_WIDE_INT instead of long or + int when we want integer wide enough to hold a pointer difference. -Thu Mar 19 14:25:50 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) +Fri Sep 17 16:03:22 1993 Per Bothner (bothner@cygnus.com) - * hp800.c (output_move_double): Don't check for CONST_DOUBLE - when classifying operand types, CONSTANT_P now includes it. - Use split_double to assign operand vectors for CNSTOP. + * dbxout.c (dbxout_type): For CHAR_TYPE and BOOLEAN_TYPE (in + languages that have them - not C), adopt an AIX convention + to distinguish these from other types. -Thu Mar 19 13:59:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Sep 17 09:02:06 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp320.h (SPACE_AFTER_L_OPTION): Defined. - (LIB_SPEC): Defined. + * expr.h (emit_library_call_value): Fix declaration. - * toplev.c (compile_file): Output aux_info_file in source file's dir. +Thu Sep 16 12:05:44 1993 Ian Lance Taylor (ian@cygnus.com) -Wed Mar 18 17:42:12 1992 Paul Eggert (eggert@twinsun.com) + * Makefile.in (fixinc.ready): New target, like libgcc2.ready, + depending on xgcc and cpp. + (stmp-fixinc): Depend on fixinc.ready instead of xgcc and cpp. + (clean): Remove fixinc.ready. - * c-aux-info.c (gen_aux_info_record): Don't put the absolute path - name into the output file: it's useless, expensive, and often wrong. - Use "." instead. - * protoize.c (is_syscalls_file): Look for SYSCALLS.c only at the - end of the file name. - (abspath): Remove useless test of '\0' versus '/'. Add apollo fix. - (shortpath): Stop when replacement filename is longer than the - original; this avoids buffer overrun. Do not pretend that - `a/b/c' is a path prefix of `a/b/cd'. - (gen_aux_info_file): Report errors when compilation fails. - Do not use stdio in child process. - Don't say `exit(errno)'; errno might be too large. - (process_aux_info_file): Increment error count if aux info file cannot - be generated. Allow the invocation filename to be relative; - for now, it will always be ".". - (do_processing): Replace strlen (x) with sizeof (x) - 1. +Thu Sep 16 10:22:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Mar 19 13:31:24 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * reload.c (find_reloads): For PLUS operand, call find_reloads_toplev. - * cse.c (simplify_binary_operation, PLUS and MINUS cases): Use - arg0s and arg1s instead of arg0 and arg1, so that resulting values - will be sign extended. + * optabs.c (expand_complex_abs): Fix typo in prev change. - * sched.c (sched_analyze_1): Don't call sched_analyze_2 at the end. - This code was never executed, and is wrong. - (sched_analyze_2): Convert from if statements to a switch. - Add support for PRE_DEC/PRE_INC/POST_DEC/POST_INC; pass them to - sched_analyze_1 because they are writes. - (sched_analyze_insn): Delete special case code to handle REG_INC - notes, obsoleted by change above. +Thu Sep 16 02:06:11 1993 Jim Wilson (wilson@cygnus.com) - * sparc.c (output_block_move): Rewrite to more efficiently handle - constant length strings whose length is not a multiple of their - alignment. Also, the length of strings handled without a loop now - is a multiple of their alignment, instead of fixed size. + * flags.h (current_function_has_nonlocal_goto): Declare. + * function.h (struct function): New field has_nonlocal_goto. + * function.c (current_function_has_nonlocal_goto): New var. + (push_function_context): Save it. + (pop_function_context): Restore it. + (init_function_start): Init it. + * integrate.c (function_cannot_inline_p): Don't inline if it's set. + * stmt.c (expand_goto): Set it. - * objc-actions.c (build_selector_translation_table): Add cast for - array index from enum to int to satisfy old compiler. + * reorg.c (mark_set_resources): For CALL_INSN, if followed by a + NOTE_INSN_SETJMP note, then assume that all registers are clobbered. + Handle case where CALL_INSN is in a sequence. - * c-parse.gperf: Change ASM to ASM_KEYWORD. - * gplus.gperf: Likewise. +Wed Sep 15 17:38:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (install-man): Delete duplicate lines. + * gstddef.h: Delete the conditional that used to semi-avoid + interference with sys/stdtypes.h on Sun. (fixincludes makes + it ok.) -Thu Mar 19 02:32:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Sep 15 16:17:09 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * c-decl.c (init_decl_processing): Disable `sqrt'. + * pa.h (ASM_FILE_START): Fix access information for $LIT$ + subspace. -Thu Mar 19 01:09:16 1992 James Van Artsdalen (james at bigtex.cactus.org) +Wed Sep 15 14:53:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386.c (output_move_double): Properly check for signedness in a - const_double. + * config/ns32k/ns32k.md: Add peepholes for stack adjust plus pushes. -Wed Mar 18 18:51:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Sep 15 13:38:24 1993 Doug Evans (dje@canuck.cygnus.com) - * gcc.c (link_command_spec) [not LINK_LIBGCC_SPECIAL]: Put back -s. + * c-typeck.c (lookup_field): New function (for chill). + (build_component_ref): Call it. - * config.sub (i486): Accept as CPU type. +Wed Sep 15 08:12:32 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * collect2.c (do_wait): Handle NO_SYS_SIGLIST. - * xm-hp320.h (NO_SYS_SIGLIST): Defined. + * libgcc2.c: Declare __fixunsxfdi and __fixunstfdi. -Wed Mar 18 15:58:31 1992 Tom Wood (wood at dg-rtp.dg.com) + * integrate.c (copy_for_inline, copy_rtx_and_substitute): + Always preserve the volatil flag when copying ASM_OPERANDS. - * crtstuff.c, dwarfout.c, svr3.h, svr4.h (*_ASM_OP): Remove tabs - and newlines. - * dwarfout.c, svr3.h, svr4.h - (ASM_OUTPUT_*, ASM_DECLARE_*, ASM_DWARF_*): Put tabs here when needed. +Tue Sep 14 21:56:20 1993 Jim Wilson (wilson@cygnus.com) -Wed Mar 18 17:26:44 1992 Ron Guilmette (rfg at ncd.com) + * c-typeck.c (valid_compound_expr_initializer): New function. + (digest_init): Handle compound expressions as initializers when + pedantic. - * svr4.h (MULTIBYTE_CHARS): Added definition. + * varasm.c (immed_double_const, immed_real_const_1): Don't touch + const_double_chain if not inside a function. -Wed Mar 18 17:36:30 1992 Michael Meissner (meissner@osf.org) +Tue Sep 14 16:22:03 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * gcc.c (collect_obstack): New static obstack to build the - environment variables to pass to collect, so that it can reliably - find the compiler passes. - (putenv): New function to add a variable to the environment. - Stubbed out for MSDOS and VMS at present, or if HAVE_PUTENV is - defined. - (putenv_from_paths): New function to take a path list, and build - the corresponding environment variable for it. - (main): Pass argv[0] to collect through the environment variable - COLLECT_GCC. Rebuild the COMPILER_PATH and LIBRARY_PATH - environment variables to include all prefixes specified with -B, - -b, and -V. Construct COLLECT_GCC_OPTIONS environment variable to - consist of all of the options passed to gcc, except for the -B, - -b, and -V options. + * c-typeck.c (digest_init): Compare types using comptypes + instead of comparing pointers. (Helps Chill front end.) - * collect2.c (main): Correctly size the number of arguments passed - to the compiler when building the constructor lists to account for - any options passed through the environment variable - COLLECT_GCC_OPTIONS. If the environment variable COLLECT_GCC - specifies a full pathname, use that for the pathname to invoke gcc - with. Print the name "collect2" in lowercase if -v. +Tue Sep 14 12:16:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * xm-mips.h (HAVE_PUTENV): Define if OSF/1. + * calls.c (emit_library_call_value): Finish making it work. + * optabs.c (expand_float): Use emit_library_call_value. + (expand_unop, expand_binop): Likewise. + (expand_complex_abs): Likewise. + Also pass SUBMODE as output mode to emit_library_call_value. + * function.c (aggregate_value_p): Allow type node as argument. -Wed Mar 18 07:27:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/ns32k/ns32k.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): + If omitting frame pointer, output an adjspd if necessary. + Use movd to save registers if four or less need saving. + Set DEPTH properly. - * hp800.c (actual_fsize): Remove duplicate declaration. - (profile_flag): Remove definition; defined in flags.h. - (hp_profile_labelno, local_fsize, save_fregs): Move declarations to - top of file. + * reload.c (find_dummy_reload): New args inmode, outmode. + (find_reloads): Pass new args. + (push_reload): Likewise. - * hp800.h (OPTIMIZATION_OPTIONS): Do same thing as Sparc. +Mon Sep 13 12:52:03 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * combine.c (reg_bitfield_target_p): Use rtx_equal_p instead of - assuming the actual rtx is used. + * c-typeck.c (set_init_index): Don't allow variable indices. -Wed Mar 18 00:20:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-decl.c (complete_array_type): Handle TREE_PURPOSE + of array constructor elements. - * gstddef.h: Handle _GCC_PTRDIFF_T, _GCC_SIZE_T, _GCC_WCHAR_T. - * fixincludes: Use those macros in inserted conditionals. + * expr.c (store_constructor): Handle TREE_PURPOSE of array constructor. + (expand_expr, ARRAY_REF case): Likewise. - * gstddef.h: Handle _T_SIZE_ and _T_PTRDIFF_, like _T_WCHAR_. + * varasm.c (output_constructor): Handle index value in + the TREE_PURPOSE, for array constructors. - * sun3.h (CPP_SPEC): Delete the alternative for fpa as default. - Define symbols with __ as well as without. + * c-typeck.c (output_init_element): When putting an elt into a + CONSTRUCTOR, always set the TREE_PURPOSE (even for arrays). + Copy the node if it's an INTEGER_CST. + (output_pending_init_elements): If have gap and not incremental, + advance constructor_unfilled_fields or constructor_unfilled_index. - * hp320.h (LINK_LIBGCC_SPECIAL, RELATIVE_PREFIX_NOT_LINKDIR): - Define unless USE_GAS. +Sun Sep 12 23:00:25 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) -Tue Mar 17 17:19:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if + non-zero) to sizetype before subtraction. - * fixincludes (making directories): Always use find. +Sun Sep 12 16:18:18 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (pushdecl): Don't warn if define nonansi builtin as static, - or if define ANSI builtin as inline static. + * c-typeck.c (push_init_level): Pop any implicit levels + that have been filled up. + Don't die if constructor_type is 0. + (process_init_element): If VALUE is 0 for union type, + update constructor_bit_index. - * hp800hpux.h (LINK_LIBGCC_SPECIAL, RELATIVE_PREFIX_NOT_LINKDIR): New. +Sun Sep 12 10:59:08 1993 Bill Cox (bill@cygnus.com) - * fixinc.svr4: Special changes for Sony MIPS-NEWS. + * c-typeck.c (digest_init): Remove obsolete comments on args + TAIL, OF_WHAT. -Tue Mar 17 15:12:57 1992 Tim Moore (moore@defmacro.cs.utah.edu) +Sun Sep 12 08:45:36 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp800.h (INITIAL_FRAME_POINTER_OFFSET): Get sign right, include - fixed area. + * loop.c (basic_induction_var): New arg MODE. + Use it to call convert_modes. + (strength_reduce): Supply the new arg to basic_induction_var. -Tue Mar 17 14:06:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expmed.c (expand_shift): Use convert_modes. + (emit_store_flag): Likewise. - * Makefile.in (all.indirect): Renamed from all-internal. +Sat Sep 11 16:44:15 1993 Doug Evans (dje@canuck.cygnus.com) - * t-mips (ALL): Deleted. + * collect2.c (main): Provide upward compatibility with old version + of collect (avoids infinite mutual recursion between the two). -Tue Mar 17 10:35:18 1992 Michael Meissner (meissner@osf.org) +Sat Sep 11 13:05:07 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * halfpic.c (half_pic_address_p): Fix typo in last change. + * c-typeck.c (constructor_no_implicit): New variable. + If set, dis-allows eliding of braces in initializers. + (Set by Chill front-end.) + * c-typeck.c (process_init_element): Use it. - * x-decrose (CLIB): Add -lbsd, since vfork moved to libbsd.a. - * x-encrose (CLIB): Ditto. - * x-i386rose (CLIB): Ditto. +Sat Sep 11 15:55:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Mar 17 07:02:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * stor-layout.c (layout_record): Turn off PCC_BITFIELD_TYPE_MATTERS + rounding of field bitpos, if maximum_field_alignment is nonzero. - * mips.md (movdi): FP_REGS don't allow DImode, so remove them - from the constraints. +Fri Sep 10 08:52:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips.md (unaligned moves): Use UNSPEC to distinguish SETs that are - unaligned from those that aren't. + * c-typeck.c (check_init_type_bitfields): Check for mismatch + between field's mode and its type's mode. - * combine.c (try_combine): Update LOG_LINKS correctly when we split a - PARALLEL that loads from memory both as a full-word and sign-extended. + * expr.c (protect_from_queue): Don't alter an existing MEM. + (convert_modes): Use X's mode (not OLDMODE) unless it is VOIDmode. -Tue Mar 17 21:23:10 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) +Fri Sep 10 01:01:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - * vax.c (split_quadword_operands): Fix typo. + * config.sub: Recognize operating system `netbsd*'. - * make-cc1.com: Add xcoffout.c. +Thu Sep 9 18:09:14 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) -Mon Mar 16 17:12:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-typeck.c (really_start_incremental_init, push_init_level): + Add support for arrays with non-zero lower bounds. (Used by Chill.) - * configure (mips-dec-ultrix*): Use x-decstatn. - * x-decstatn (CLIB): Delete. +Thu Sep 9 19:20:59 1993 Jim Wilson (wilson@cygnus.com) - * expr.c (move_by_pieces_1): Add negative ints--don't subtract ints. + * tree.c (make_node): Put PARM_DECLs of nested functions onto + parent's saveable obstack. - * next.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Turned off. - * t-next (EXTRA_PROGRAMS, ld): Use collect2. - * configure (m68k-next-*): Use t-next. +Thu Sep 9 14:17:00 1993 Ian Lance Taylor (ian@cygnus.com) - * mips-bsd.h (TARGET_MEM_FUNCTIONS): Defined. + * Makefile.in (CROSS_LIBGCC1): New variable. Rule to use when + building libgcc1.a for a cross compiler. Defaults to + libgcc1.cross. + * cross-make (LIBGCC1): Default to $(CROSS_LIBGCC1) rather than + libgcc1.cross. + * config/i386/t-next, config/i386/t-sol2, config/m88k/t-dgux, + config/m88k/t-luna, config/m88k/t-dgux-gas, + config/m88k/t-luna-gas, config/m88k/t-m88k, + config/m88k/t-m88k-gas, config/m88k/t-sysv4, + config/m68k/t-next, config/mips/t-bsd, config/mips/t-bsd-gas, + config/mips/t-mips, config/mips/t-mips-gas, + config/mips/t-osfrose, config/mips/t-svr3, + config/mips/t-svr3-gas, config/mips/t-svr4, + config/mips/t-svr4-gas, config/mips/t-ultrix, config/pa/t-pa, + config/sparc/t-sol2, config/h8300/t-h8300, config/sh/t-sh, + config/t-libc-ok (CROSS_LIBGCC1): Defined to be libgcc1.null. -Mon Mar 16 14:04:08 1992 Tim Moore (moore@defmacro.cs.utah.edu) +Thu Sep 9 09:48:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp800.md (movsi + 10, movsi + 11): Add '*' to constraints. - (fix_truncsfsi2, fix_truncdfsi2): Add an alternative to put result - directly in a general register. - * hp800.h (ASM_DECLARE_FUNCTION_NAME): If function is not - TREE_PUBLIC, don't do the argument descriptor magic. - (EXPAND_BUILTIN_SAVEREGS): call hppa_builtin_saveregs. - (LEGITIMIZE_ADDRESS): Don't legitimize CONST addresses. - (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Put tabs back in. - * xm-hp800.h (S_ISDIR): Define for BSD. + * expr.c (expand_expr): Set ignore for COND_EXPR with VOID_TYPE. - * hp800.c (hppa_builtin_saveregs): New function. - * va-hp800.h : Rewrite. + * expr.c (convert_modes): New function. + (convert_to_mode): Use that. + * expr.h (convert_modes): Declared. + * optabs.c (expand_twoval_binop): Use convert_modes. + (expand_complex_abs): Likewise. + (emit_cmp_insn): Likewise. + (expand_inline_function): Likewise. + * expmed.c (expand_divmod): Likewise. + (emit_store_flag): Likewise. + * loop.c (basic_induction_var): Likewise. + * integrate.c (expand_inline_function): Likewise. + * optabs.c (widen_operand): New arg OLDMODE. + (expand_binop, expand_unop): Fix calls to widen_operand. -Sun Mar 15 23:38:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Sep 8 18:25:50 1993 Doug Evans (dje@cygnus.com) - * objc-actions.c (really_start_method): Dynamically allocate `buf'. + * sparc.c, sparc.h, sparc.md: Cosmetic changes only. Just + reordered code a little. - * sparc.h (TARGET_HOPE_ALIGN): Renamed from TARGET_ALIGN. - * sparc.c (output_move_double, output_fp_move_double): Use new name. - * sparc.h (TARGET_FORCE_ALIGN): New flag. - (FUNCTION_ARG_BOUNDARY): Defined. - (FUNCTION_ARG, FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): - (FUNCTION_ARG_PARTIAL_NREGS): Handle TARGET_FORCE_ALIGN. - (ROUND_REG): New subroutine macro. +Wed Sep 8 14:49:59 1993 Jim Wilson (wilson@cygnus.com) - * sparc.h (CC1_SPEC): Don't try to recognize -dalign. + * dbxout.c (dbxout_parms): For parameters in registers, if use + DECL_RTL, then must use TREE_TYPE instead of DECL_ARG_TYPE. - * hp320.h (ASM_OUTPUT_ASCII): Put tab here. - (ASCII_DATA_ASM_OP): Not here. - * mot3300.h: Likewise. + * mips.md (fix_truncdfsi2, fixtruncsfsi2): Mark SImode scratch + register as early clobbered when dest is in memory. - * Makefile.in (mostlyclean): Don't delete .s or .i files. - (extraclean): Do that here. + * fixincludes (sbusdev/audiovar.h): Fix wrongly edited // comments + nested within /* */ comments. - * a29k.h, fx80.h, gmicro.h, i860v3.h, i860v4.h (*_ASM_OP): Remove tabs. - * m88kv4.h, m88kdgux.h, mips.h, romp.h, rs6000.h: Likewise. - * sun386.h, tower-as: Likewise. - * arm.h, hp800.h (*_ASM_OP): Remove extra tabs and newlines. - * m68ksgs.h (*_ASM_OP): Remove tabs. - (ASM_OUTPUT_*): Put the tabs here when appropriate. - * m68kv4.h, m88k.h, next.h: Likewise. + * gcc.c (process_command): Don't warn for -x after last input file + if spec_lang is zero. -Sun Mar 15 18:37:49 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fixinc.mips (bsd43/bsd43.h): Change /**/ to ##. - * reload1.c (inc_for_reload): Rework to try to do addition in - INCLOC rather than assuming when it can be done; this fixes a bug - on hp800 and generates better code on some CISC machines. + * expr.c (convert_move): When truncating, call force_reg first if + it is something that gen_lowpart won't understand. -Sun Mar 15 15:12:39 1992 Ron Guilmette (rfg at ncd.com) + * sys-protos.h (getrlimit, getrusage, setrlimit): Return int not void. - * crtstuff.c: If defined, invoke INIT_SECTION_PREAMBLE. +Wed Sep 8 11:28:41 1993 John Hassey (hassey@dg-rtp.dg.com) - * xm-sparcv4.h, x-sparcv4: New files. - * configure (sparc-*-sysv4*): Use them. + * m88k.c (output_call): Avoid use of jsr.n r1, this loses on + the 88110. -Sun Mar 15 16:41:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Sep 8 10:51:07 1993 David Edelsohn (edelsohn@npac.syr.edu) - * sparc.md (subdi3): Fix unterminated comment. + * rs6000.h: (MASK_*, TARGET_*): Add target masks and tests. + (TARGET_SWITCHES): Add target switches for various architectures + and mnemonics options. + (TARGET_OPTIONS): Add cpu type as special target option. + (OVERRIDE_OPTIONS): Call rs6000_override_options to decipher. -Sun Mar 15 04:08:59 1992 Torbjorn Granlund (tege at zevs.sics.se) + * rs6000.c (rs6000_cpu, rs6000_cpu_string): New variables. + (rs6000_override_options): New function. - * hp800.c (output_block_move): Major rewrite. - * hp800.md (movstrsi): Rewrite to match new output_block_move. FAIL - if the actual operands are better handled by a library call. - (movstrsi recognizer): Rewrite. + * rs6000.md (define_attr): Expand list of instruction attributes. + (define_function_unit): Compute delay information based + upon processor type and expand functional unit types. + (mulsi3, divsi3, divmodsi4, divsf3, divdf3, muldf3, movsf): + Use expanded attributes. + (load with update): Likewise. - * sparc.md (movstrsi): FAIL for all blocks with unknown size. +Wed Sep 8 06:34:32 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Mar 14 19:06:02 1992 James Van Artsdalen (james at bigtex.cactus.org) + * c-typeck.c (output_init_element): When adding to + constructor_pending_elts, copy field. - * c-decl.c (builtin_function): Don't declare static. +Wed Sep 8 06:15:58 1993 David Gershovich (dgirsh@iil.intel.com) -Sat Mar 14 15:57:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expmed.c (make_tree, case CONST_INT): Properly set high part if + unsigned. - * expr.c (get_pointer_alignment): Convert bytes to bits - when handling PLUS_EXPR. + * optabs.c (expand_binop): Must always widen second operand + of shift. - * cp-search.c (push_stack_level): Declare tp as char *. +Wed Sep 8 05:16:59 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips.c (mips_asm_file_end): Use TREE_ASM_WRITTEN to avoid - duplicate .extern commands. + * c-typeck.c (push_init_level): Diagnose extra brace group at end + of record. Set constructor_type to 0. + (pop_init_level): Don't output anything if constructor_type is 0. + (process_init_element): Do nothing if constructor_type is 0. - * mips-tdump.c: Include fcntl.h. - * mips-tfile.c (open, fstat): Declarations deleted. +Tue Sep 7 19:11:20 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * xm-mipsnews.h: New file. - * mips-news5.h: New file. Needs papers from Ron Cole. - * configure (mips-sony-sysv*): New alternative. + * c-common.c (c_build_type_variant): Allocate new type in same + obstack as old one. -Sat Mar 14 07:11:14 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Sep 7 17:45:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * integrate.c (initialize_for_inline): If DECL_INCOMING_RTL is - the same object as DECL_RTL, store copy in both places. + * c-typeck.c (digest_init): Fix error message text. -Sat Mar 14 10:12:39 1992 Michael Tiemann (tiemann@cygnus.com) +Tue Sep 7 14:32:51 1993 Leonid Baraz (lbaraz@iil.intel.com) - * cp-spew.c (yylex): Fix some fencepost errors found by Chip - Salzenberg. + * sched.c (schedule_block): Correct type of BIT. - * cp-init.c (is_aggr_typedef): Now calls `error' instead of `fatal' - if NAME is non-AGGR type. + * fold-const.c (fold): Don't try to process an RTL_EXPR. - * cp-class.c (duplicate_tag_error): Set CLASSTYPE_VBASE_SIZE. +Tue Sep 7 06:18:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Mar 14 00:28:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * dbxout.c (dbxout_type): Handle enum constants bigger than one word. + Don't print big unsigned values as negative. + * c-decl.c (build_enumerator): Choose type properly for wide constants. + (finish_enum): Always set type of the enumerators to the enum type. + * c-typeck.c (default_conversion): For enum that's unsigned, + if it's at least as wide as int, convert to an unsigned type. - * gcc.c (do_spec_1): Don't copy closing delim in %(...) or %[...]. - (read_specs): Don't ignore newline that ends a comment. - (handle_braces): Properly terminate scan for %*. - (validate_all_switches): Scan any extra specs from specs file. + * config/i386/sol2.h (LIB_SPEC, LINK_SPEC, SWITCH_TAKES_ARG): + Definitions copied from sparc/sol2.h. + (CPP_SPEC): Copied from sparc/sol2.h, but deleted -msparclite. - * x-iris: File deleted. +Mon Sep 6 14:43:20 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * cccp.c (output_line_command): Avoid outputting line number 0. + * genextract.c (insn_name_ptr): Define for debugging. + (walk_rtx, case MATCH_OP_DUP): Expand recog_dup_loc using XEXP not + XVECEXP. - * final.c (asm_fprintf): Handle %O. - * m68k.c: Insert %O before `move' in MOTOROLA calls to asm_fprintf. +Mon Sep 6 13:28:03 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Mar 13 20:17:40 1992 Mike Stump (mrs@cygnus.com) + * rtlanal.c (modified_between_p): Handle vectors. + (modified_in_p): New function. + (refers_to_regno_p): If setting AP, FP, or SP, we clobber the + virtual registers. + * optabs.c (emit_libcall_block): Don't move insns that reference + things set in previous insns. - * cp-typeck.c, cp-type2.c, cp-tree.c, cp-spew.c, cp-search.c, - cp-parse.y, cp-init.c, cp-decl.c, cp-cvt.c, cp-class.c, cp-call.c: - Merged in updated cp-* files for gcc-2.1. +Mon Sep 6 08:35:34 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Thu Mar 12 02:29:26 1992 Mike Stump (mrs@cygnus.com) + * config/mips/mips.h: Don't declare abort. - * cp-type2.c (build_functional_cast): remove incorrect error message. +Mon Sep 6 01:03:58 1993 Jim Wilson (wilson@cygnus.com) -Fri Mar 13 14:54:23 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * protoize (abort): Correct volatile function declaration. - * objc-actions.c (get_arg_type_list) [not NEXT_OBJC_RUNTIME]: - 1st arg always an object. - (synth_module_prologue): Don't use parser interface, just build nodes. - Use `void *' to avoid problems with TAG_SUPER vs _TAG_SUPER. - (TAG_SUPER, _msg_id, _msgSuper_id): Deleted. - (objc_getClass_id, objc_getMetaClass_id): Deleted. - (selector_type): Renamed from _selector_type. - (forward_declare_categories, build_objc_symtab_template): - Don't use parser interface, just build nodes. - (create_builtin_decl): New function. +Sun Sep 5 18:23:09 1993 Doug Evans (dje@canuck.cygnus.com) - * hp800hpux.h (LIB_SPEC): New definition. + * Makefile.in (USER_H): Add va-h8300.h. - * arm.h (TARGET_WHEN_DEBUGGING): Name corrected. + * collect2.c (our_file_name, last_file_name): deleted. + (our_file_names): New variable. + (is_in_prefix_list): New function. + (find_a_file): Call is_in_prefix_list. + (main): Make COLLECT_NAMES a list of our invocations. + If we've invoked ourselves, try again with ld_file_name. - * protoize.c (abspath): Make abs_buffer a little longer. +Sun Sep 5 16:00:47 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * encore.h (NO_ABSOLUTE_PREFIX_IF_SYMBOLIC): Defined. - (EXTERNAL_PREFIX, IMMEDIATE_PREFIX): Defined. - (TARGET_DEFAULT): Changed to 9. - (ENCORE_ASM): Defined. + * function.c (assign_parms): When parm needs conversion on entry, + don't store it back in the slot where it was passed. - * sequent.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Deleted. - (IMMEDIATE_PREFIX): Define as 0. - (SEQUENT_ASM): Defined. - * ns32k.c (print_operand): Output f.p. as ints if SEQUENT_ASM. - Output doubles using 0f, not 0d, if ENCORE_ASM. +Sun Sep 5 14:51:14 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * configure: If no configuration matches, print error and exit. - (m68k-sun-sunos*): Renamed from m68k-sun-sunos4*. + * c-decl.c (grokdeclarator): For PARM_DECLs, only call + c_build_type_variant is constp or volatilep is true. - * configure (copy): New variable. - If hard link fails, make a copy. +Sun Sep 5 06:44:09 1993 David Edelsohn (edelsohn@npac.syr.edu) - * mips.c (mips_asm_file_end): Don't set flags in identifiers. - Just output every identifier found in extern_head. + * rs6000.c: (print_operand): Convert fprintf of single letters + to putc and convert fprintf of constant strings to fputs. + Output '%u' operand as hexadecimal. - * configure (sparc-tti-*): Renamed from sparc-unicom-*. - (m68k-tti-*): Replaced. - (m68k-tti2-*): Deleted +Sat Sep 4 11:16:18 1993 Craig Burley (burley@gnu.ai.mit.edu) - * config.sub (pbd): Alias for sparc-tti, not sparc-unicom. - (pbb): New machine alias. - (*-tti): Implies os=-sysv3. - (-oss*): Alias for -sysv3. + * c-common.c (truthvalue_conversion): A complex value is nonzero + if either part is nonzero, not if both parts are nonzero. -Fri Mar 13 17:20:52 1992 david d [zoo] zuhn (zoo at lynx.spa.umn.edu) +Fri Sep 3 19:02:41 1993 Paul Eggert (eggert@twinsun.com) - * x-mips: add -mld. + * c-decl.c (build_enumerator): Apply default conversion to + constant-expression. -Fri Mar 13 14:48:05 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) +Fri Sep 3 18:03:47 1993 Chris Lang (chrisl@mirc00.ncms.org) - * hp800.h (REGISTER_NAMES): Name register 112, the shift amount - register, as "SAR". It was left out. + * cccp.c (skip_if_group): Check for traditional mode when + skipping ahead to next #, ignore unless at beginning of line. -Fri Mar 13 04:08:53 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Sep 3 18:00:15 1993 Michael Meissner (meissner@osf.org) - * i386isc.h (STARTFILE_SPEC): Use crt1, not crt0. + * i386/osfrose.h, i386/osfelf.h (LINK_SPEC): Pass -v and -dn on to + the ELF linker, which now accepts these switches. - * x-i386sco (CC,OLDCC): Don't define `i386' here. - (RCCFLAGS): Define it here, along with other SCO symbols. - (XCFLAGS): Use that. New variable. - (CLIB): Use -lPW to get alloca(). +Fri Sep 3 13:34:22 1993 Doug Evans (dje@cygnus.com) -Fri Mar 13 14:11:41 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) + * i386/x-linux: Add -Iinclude to BOOT_CFLAGS. - * Changes to enable use of sqrt builtin functions. - * c-decl.c (init_decl_processing): Enable BUILT_IN_FSQRT for - __builtin_sqrt. Also enable for sqrt if not traditional. - * cp-decl.c (init_decl_processing): Enable BUILT_IN_FSQRT for - __builtin_sqrt. - * expr.c (expand_builtin, case BUILT_IN_FSQRT): New case. Call - expand_unop to expand the operation. If that fails break and - emit a call to the library sqrt function. - * optabs.c (init_optabs): Initialize new optabs for sqrt functions. - * expr.h (sqrt_optab): Declare here so that expr.c can see it. +Fri Sep 3 01:54:19 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Fri Mar 13 08:56:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * pa.h (READONLY_DATA_ASM_OP): Define. + (READONLY_DATA_SECTION): Define. + (EXTRA_SECTIONS): Add in_readonly_data. + (EXTRA_SECTION_FUNCTIONS): Add readonly_data. - * cse.c (delete_dead_from_cse): Fix error in last change. +Thu Sep 2 19:19:14 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * a29k.h (PCC_BITFIELD_TYPE_MATTERS): Define as 1. + * clipper.h : Improve generated code for C400 Clipper. + (TARGET_SWITCHES): New options `c300' `c400'. + (TARGET_C300, TARGET_C400): New defines. + (TARGET_DEFAULT): Define as TARGET_C300. + (CONDITIONAL_REGISTER_USAGE): New define. - * reorg.c (fill_slots_from_thread): Add missing arg in call to - try_split call that was recently added. +Thu Sep 2 17:47:57 1993 Doug Evans (dje@canuck.cygnus.com) - * fold-const.c (invert_truthvalue, case COMPOUND_EXPR): New case. + * glimits.h (__INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__): New macros. + (INT_MAX, LONG_MAX, LONG_LONG_MAX): Use them. + (UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): Ditto. -Fri Mar 13 01:02:56 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Sep 2 14:26:28 1993 Michael Meissner (meissner@osf.org) - * collect2.c (ordinary scan_prog_file): Don't count | in sym name. + * i386/osfrose.h (YES_UNDERSCORES): Delete macro, since we have + redefined all of the macros that are based on using it. + (CPP_SPEC, CC1_SPEC): Remove #ifndef NO_UNDERSCORE version. + OSF/ELF will now omit the leading underscore by default. + (LINK_SPEC): Pass -dy through to ELF linker. Do not pass -v to + ELF linker. - * ns32k.md (movsf): Remove #if 0 around #ifndef GAS_SYNTAX. + * i386/osfelf.h (CPP_SPEC, CC1_SPEC): Remove #ifndef NO_UNDERSCORE + version. OSF/ELF will now omit the leading underscore by default. + (LINK_SPEC): Pass -dy through to ELF linker. Do not pass -v to + ELF linker. - * pc532.h (GAS_SYNTAX): Defined. -Thu Mar 12 00:10:23 1992 Stefan Petri (petri@jupiter.ibr.cs.tu-bs.de) + * final.c (tree.h): Include tree.h to get the declaration for + decl_printable_name. + (last_filename): Global to hold last filename encountered in a + NOTE. + (add_bb): New function to do common code for emitting a basic + block profiling increment. Remember the current function, and if + debugging, line number and filename for each basic block. + (add_bb_string): New function to remember strings for profiling + basic blocks. + (end_final): Bump name array size to 20. Use BSS to store profile + block count array unless -fno-common. Eliminate redefining name + within for loop block. Add a length field and three new parallel + arrays for basic blocks to hold function name, and if debugging, + line number and file name for basic block profiling. + (final_start_function): Save a printable version of the current + function name away if profiling basic blocks. + (final_end_function): Forget the current printable version of the + current function name if profiling basic blocks. + (final): Move basic block profiling support to just call add_bb. + (final_scan_insn): Ditto. + (output_source_line): Save filename in last_filename. If the file + name was changed and profiling basic blocks, remember the new file + name for the next call to add_bb. - * configure (pyramid): Re-enable. + * libgcc2.c (L_bb): If BLOCK_PROFILER_CODE is defined, expand it + here directly. If BLOCK_PROFILER_CODE is not defined, add code + that appends basic block profile information into a text file + bb.out. Move sun3 specific block profiling code to m68k/sun3.h. - * pyr.h (STRUCTURE_SIZE_BOUNDARY): Restore definition from gcc-1.40. - (PCC_BITFIELD_TYPE_MATTERS): Define as 1 instead of empty. + * Makefile.in (final.o): Final.c now includes tree.h. - * pyr.h (STATIC_CHAIN_INCOMING_REGNUM): Added. + * m68k/sun3.h (BLOCK_PROFILER_CODE): Move the sun3 specific basic + block profiling code here from libgcc2.c. - * pyr.h (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT, - INITIALIZE_TRAMPOLINE): Added, inspired by convex.h +Wed Sep 1 19:00:06 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) - * pyr.h (INITIAL_FRAME_POINTER_OFFSET): New definition. + * rs6000.md (truncdfsf2): Round to single instead of doing nothing. - * pyr.md (indirect_jump): New pattern. + * jump.c (jump_optimize): When optimize conditional jump around + unconditional jump, handle case where prev_label can be zero. - * libgcc2.c [L_trampoline]: Don't include gstddef.h in this case. - (__enable_execute_stack): Cloned definition for pyramid - from that for convex. + * c-decl.c (finish_decl): For static const variables, preserve + initializers instead of discarding them. -Thu Mar 12 13:23:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Sep 1 18:43:01 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * collect2.c (FREAD, FWRITE): #undef if USG. + * reload.c (find_reloads): Bump REJECT for a hard register; just + not for a pseudo. - * x-mipsv: New file. - * configure (mips-*-sysv): Use it. + * rs6000.md: Clean up hex constants a bit in emitted insns. - * cccp.c (skip_to_end_of_comment): New arg NOWARN. Callers changed. - (do_xifdef, do_endif): Pass 1 for NOWARN. + * rs6000.c (input_operand): Allow "easy" FP constants. + * rs6000.h (SECONDARY_MEMORY_NEEDED): New macro. + * rs6000.md (movdf): Simplify by taking advantage of + having SECONDARY_MEMORY_NEEDED. + Fix bugs relating to order in which moves are done. - * i386.h, hp800.h (ENCODE_SECTION_INFO): Handle CONSTRUCTOR node. - * i386.h (ENCODE_SECTION_INFO): Only decls can be global. +Wed Sep 1 18:08:36 1993 Jim Wilson (wilson@cygnus.com) - * cccp.c (warn_import): New variable. - (do_include): Test that. - (main): Handle -Wimport. + * reload.c (find_reloads_address_1): Handle SUBREGs same as REGs. - * hp800hpux.h (DBX_DEBUGGING_INFO): #undef it. - * x-hp800hpux: New file. - * configure (hp800-hp-hpux*): Use it. +Wed Sep 1 18:03:45 1993 Mike Stump (mrs@mole.gnu.ai.mit.edu) - * config.sub: Make triton alias for sysv3. + * collect2.c (is_ctor_dtor): Make sizeof argument match the + string. - * collect2.c: If CROSS_COMPILE, #undef the special OBJECT_FORMAT_*. +Wed Sep 1 15:01:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Mar 12 10:35:50 1992 Ron Guilmette (rfg at ncd.com) + * Makefile.in (start.encap): Build g++ here also. - * gcc.c (default_compilers): Use .i suffix (instead of .cpp) for all - preprocessor output files. - (execute): Print commands used to invoke passes if -save-temps. +Tue Aug 31 16:30:53 1993 Jim Wilson (wilson@cygnus.com) - * Makefile.in (mostlyclean): Delete *.i, not *.cpp. - Don't delete *.co. + * combine.c (make_compound_operation): Handle the case + (and (xor/ior (lshift...) (lshift...)) ...). + (make_field_assignment): In get_pos_from_mask call, only invert + bits in mode mask. -Thu Mar 12 07:13:33 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * reload.c (push_reload): Abort is secondary_reload wants same + class as an input reload. - * xcoff.h (DBX_FINISH_SYMBOL): When writing function name, strip off - any storage class at the end. + * Makefile.in (libgcc1.a, libgcc2.a): Don't use set -e. + * configure (i[34]86-*-lynxos, m68k-*-lynxos, sparc-*-lynxos): Use + xm-lynx.h, x-lynx. Don't run fixincludes. + * x-lynx, xm-lynx.h: New files. -Thu Mar 12 05:16:49 1992 Tom Wood (wood@dg-rtp.dg.com) + * Makefile.in (xsys-protos.h): Use fixtmp.c not tmp.c, and delete + it afterwards. - * config.sub (-triton*): Delete this OS (it's sysv3). - * configure (m88k-dolphin-sysv3): Rename alternative. - * xm-m88kdolph.h: Delete. Use xm-m88kv3.h instead. - * x-m88kdolph: New file. - -Thu Mar 12 00:19:14 1992 James Van Artsdalen (james at bigtex.cactus.org) + * function.c (assign_stack_temp): When allocate a slot too large, + split extra off into a slot of its own. + (combine_temp_slots): New function. + (free_temp_slots, pop_temp_slots): Call combine_temp_slots. - * i386.md (movstrsi recognizers): Fix reversed operands. +Tue Aug 31 06:35:37 1993 David Edelsohn (edelsohn@npac.syr.edu) -Thu Mar 12 00:01:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rs6000.md: (zero_extendqisi2, zero_extendqihi2): Change anonymous + patterns to use 16-bit and 32-bit hexadecimal values and masks + instead of bit ranges if constant. + (rotlsi3, lshrsi3, move condition codes, scc insns): Likewise. - * gcc.c (main): - Don't require machine_suffix for md_startfile_prefix or md_exec_prefix. +Tue Aug 31 06:25:52 1993 Paul Eggert (eggert@twinsun.com) - * toplev.c (main): Force flag_no_inline if not optimizing. + * c-decl.c (struct c_function): Remove unneeded enum_next_value. + (push_c_function_context, pop_c_function_context): Don't save it. - * dbxout.c (dbxout_type): Ignored names don't count in case UNION_TYPE. +Mon Aug 30 16:16:56 1993 Paul Eggert (eggert@twinsun.com) - * cp-decl.c (pushtag): Push on ->tags and make TYPE_STUB_DECL - even if type has no tag name. - * cp-class.c (finish_struct): Always call rest_of_type_compilation. + * c-decl.c (get_parm_info, store_parm_decls): If PROMOTE_PROTOTYPE, + promote all integral types shorter than int, including short enums. + * c-typeck.c (convert_arguments): Likewise. + * cp-decl.c (grokparms): Likewise. + * cp-except.c (finish_exception_decl): Likewise. + * cp-typeck.c (convert_arguments): Likewise. - * cse.c (simplify_unary_operation): For SQRT, do nothing. +Sun Aug 29 18:34:25 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * byteorder.h: Test __i860_big_endian__. + * rs6000.h (TARGET_NO_FP_IN_TOC): New; deleted TARGET_FP_IN_TOC. + (TARGET_SWITCHES): Rearrange to have three TOC choices. + (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Use TARGET_NO_FP_IN_TOC. + * rs6000.c (output_toc): Likewise. - * ns32k.c (print_operand_address): Test NO_ABSOLUTE_PREFIX_IF_SYMBOLIC. - Test BASE_REG_NEEDED inside indirect address too. - * sequent.h (NO_ABSOLUTE_PREFIX_IF_SYMBOLIC): Defined. - (SEQUENT_ADDRESS_BUG, SEQUENT_BASE_REGS): #if 0. +Sat Aug 28 15:04:35 1993 Jim Wilson (wilson@cygnus.com) -Wed Mar 11 22:55:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * mips.h (SELECT_SECTION): Simplify sdata_section test. - * c-decl.c (push_parm_decl): Clear immediate_size_expand temporarily. - * stor-layout.c (get_pending_sizes): Fix up SAVE_EXPR_CONTEXT. - (variable_size): No longer static. - * c-decl.c (grokdeclarator): Call variable_size, not save_expr. - Rename local `variable_size' to `size_varies'. + * lynx.h (CPP_SPEC): Use include_v not include-v. + (LINK_SPEC): Add missing `-' before `k' option. + (PREFERRED_DEBUGGING_TYPE): Define to DBX_DEBUG. + (SDB_DEBUGGING_INFO): Define. + (MD_EXEC_PREFIX): Define to /usr/local/lib/gcc-. + (LINK_LIBGCC_SPECIAL_1): Define. + (NAME__MAIN, SYMBOL__MAIN): Define. -Wed Mar 11 18:53:23 1992 Chip Salzenberg (chip@tct.com) + * sparc.h (EXTRA_CONSTRAINT): Delete 'S'. + * sparc.md (call+1, call+2, call_value+1, untyped_call+1): Split + into two patterns, one using address_operand and 'p', the other + immediate_operand and 'i'. - * collect2.c (OBJECT_FORMAT_COFF, OBJECT_FORMAT_ROSE): - (OBJECT_FORMAT_NONE): Three alternative strategies for finding inits. - OBJECT_FORMAT_COFF is completely new. - (is_ctor_dtor): New function. - [OBJECT_FORMAT_NONE, OBJECT_FORMAT_ROSE] (scan_prog_file): - Use is_ctor_dtor. +Fri Aug 27 15:43:19 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * x-rs6000 (CLIB): Add -lld. - * t-rs6000: New file. - * configure (rs6000...): Use that file. + * combine.c (nonzero_bits): Fix reversed test for when we + need to insert extra bits when sizes differ. + (nonzero_bits, case EQ): Always return STORE_FLAG_VALUE when returning + integer mode; remove now-redundant test. -Wed Mar 11 17:31:13 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * rs6000.h (LINK_SPEC): Add -bexport:/usr/lib/libg.exp when -g. - * reload1.c (inc_for_reload): Call gen_add2_insn with negated - constant instead of gen_sub2_insn. +Fri Aug 27 13:17:28 1993 Jim Wilson (wilson@cygnus.com) -Wed Mar 11 17:30:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rs6000.c (print_operand_address): When TARGET_MINIMAL_TOC, use + r30 instead of r2 for TOC references. + (output_prologue): If TARGET_MINIMAL_TOC, and the constant pool + is needed, then setup r30. + (output_toc): When TARGET_MINIMAL_TOC, use .long instead of .tc. + * rs6000.h (TARGET_MINIMAL_TOC): New macro. + (TARGET_SWITCHES): Add -mminimal-toc and -mno-minimal-toc. + (ELIMINABLE_REGS): Add elimination for r30. + (CAN_ELIMINATE): Add case for r30. + (INITIAL_ELIMINATION_OFFSET): Add case for r30. + (toc_section): When TARET_MINIMAL_TOC, initialize toc_table. - * c-typeck.c (build_binary_op): For shifts, always use op0 type. +Thu Aug 26 17:59:38 1993 Doug Evans (dje@cygnus.com) - * stmt.c (expand_end_bindings): - Load virtual_incoming_args_rtx via a pseudo reg. + * gstdarg.h, gvarargs.h: Add support for H8/300H. + * va-h8300.h: New file. - * math-68881 (pow): Add missing parens; typo in fp constant. +Thu Aug 26 15:15:27 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * i386isc.h (LIB_SPEC): Add -lg. + Cygnus<->FSF C++ front-end merge. + Wed Aug 25 17:55:58 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * libgcc2.c (__CTOR_LIST__, __DTOR_LIST__): - Don't define if CTOR_LISTS_DEFINED_EXTERNALLY. - (__builtin_saveregs): Handle NO_UNDERSCORES for sparc. + * cp-class.c (alter_visibility): Properly grok protected visibility. - * pbb.h, pbd.h: New files from Mike Bloom. - * configure (m68k-tti2-*): Turned back on. + Wed Aug 25 12:55:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * c++: Add a colon command in case system doesn't handle #!/bin/sh. + * cp-typeck.c (c_sizeof): If we're given an OFFSET_TYPE, work with + the type it refers to. -Mon Mar 11 19:54:43 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-decl.c (finish_function): Properly handle inline functions, + don't just call rest_of_compilation. - * i386.md (integer truncMN2): Delete patterns. Not needed on i386. + * cp-decl2.c (flag_inline_debug): Deleted, never used. + (lang_f_options): Deleted -finline-debug. + * toplev.c (lang_options): Likewise. -Wed Mar 11 16:58:56 1992 Tom Wood (wood@dg-rtp.dg.com) + Tue Aug 24 16:06:23 1993 Mike Stump (mrs@poseidon.cygnus.com) - * m88kv3.h (STARTFILE_SPEC, LIB_SPEC): Search for crt{begin,end}.o - (DO_GLOBAL_CTORS_BODY, CTORS_SECTION_ASM_OP, ASM_OUTPUT_CONSTRUCTOR, - DTORS_SECTION_ASM_OP): Implement new svr3 scheme. + * cp-dem.c: Deleted. See demangler in the binutils distribution. -Wed Mar 11 16:24:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Tue Aug 24 14:24:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * fold-const.c (fold): When correcting constant result of GE, LE, NE, - make sure we really have a constant result. + * cp-decl.c (start_function): Don't get ready to complain about a + built-in C-linkage function against a C++-linkage function. - * ns32k.md (call, call_value): Support GAS_SYNTAX and GNX_V3 like 1.40. + Tue Aug 24 13:54:43 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) - * c-decl.c (pushdecl): Properly use prev implicit decl in warning. + * g++.c: also include -Wed Mar 11 16:05:20 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + Tue Aug 24 05:39:57 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * Makefile.in (OBJS): Add xcoffout.o. - (dbxout.o, final.o, toplev.o, varasm.o): Add xcoff.h dependency. - (xcoffout.o): Add rule to build. + * cp-parse.y (id_scope): Renamed from scoped_id. Also added handler + for case when rule appears after `dont_see_typename' action. Now + handles pointer-to-member syntax. - * xcoffout.c: Change names of rs6000_*_section_name variables to - xcoff_*_section_name, and move definitions of them here from - rs6000.c. - * xcoff.h: Likewise, move declarations here from rs6000.h. - * rs6000.c: Delete definitions of rs6000_*_section_name variables. - * rs6000.h: Delete declarations of rs6000_*_section_name variables. + Mon Aug 23 14:04:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * rs6000.c (output_epilog): Add comment to note lack of traceback - table support. - * rs6000.h: Refine comment explaining ASM_SPEC definition. - (XCOFF_DEBUGGING_INFO): Define. - (DBX_CONTIN_LENGTH, DBX_NO_XREFS): Move to xcoff.h. - (ASM_FILE_START): When -g, emit private_data_section. - (ASM_DECLARE_FUNCTION_NAME): When -g, output .lglobl for static - functions. Also, output .function debug info. - (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Add bss_section call. - - * dbxout.c: Include xcoff.h when XCOFF_DEBUGGING_INFO is defined. - Define default values for DBX_DECL_STABS_CODE, - DBX_STATIC_CONST_VAR_CODE, DBX_REGPARM_STABS_CODE, and - DBX_REGPARM_STABS_LETTER. These exist to be overriden for xcoff. - Include entire file if either DBX_DEBUGGING_INFO or - XCOFF_DEBUGGING_INFO is defined. - (dbxout_type): Add early exit if DBX_TYPE_DEFINED, used for xcoff. - (dbxout_symbol): Use DBX_DECL_STABS_CODE instead of N_LSYM for - tags and typedefs. Use DBX_STATIC_CONST_VAR_CODE instead of N_FUN - for static const variables. Add DBX_STATIC_BLOCK_START and - DBX_STATIC_BLOCK_END around output of stab info, for xcoff use. - (dbxout_finish_symbol): Use DBX_FINISH_SYMBOL instead if defined. - (dbxout_syms, dbxout_parms): No longer static, referenced from - xcoffout.c. - (dbxout_parms): Use DBX_REGPARM_STABS_CODE instead of N_RSYM. Use - DBX_REGPARM_STABS_LETTER instead of 'P'. - (dbxout_reg_parms): No longer static. - * final.c: Also include gstab.h if XCOFF_DEBUGGING_INFO defined. - Include xcoff.h if XCOFF_DEBUGGING_INFO defined. - (final_start_function): Call xcoffout_output_first_source_line - when XCOFF_DEBUG. Set next_block_index if XCOFF_DEBUG. - (final_end_function): Call xcoffout_end_function if XCOFF_DEBUG. - Call xcoff_end_epilogue if XCOFF_DEBUG. - (final_scan_insn): Call xcoffout_begin_function, - xcoffout_begin_block, and xcoffout_end_block if XCOFF_DEBUG. - (output_source_line): Also call dbxout_source_file if XCOFF_DEBUG. - * flags.h: Define XCOFF_DEBUG. Also declare - use_gdb_dbx_extensions if XCOFF_DEBUGGING_INFO. - * toplev.c: Also declare use_gdb_dbx_extensions if - XCOFF_DEBUGGING_INFO. Include xcoff.h in XCOFF_DEBUGGING_INFO. - (compile_file): Also call dbxout_init, and dbxout_finish if - XCOFF_DEBUG. - (rest_of_decl_compilation): Also call dbxout_symbol if - XCOFF_DEBUG. - (rest_of_type_compilation): Also call dbxout_symbol if - XCOFF_DEBUG. - (main): Add support for recognizing -g when XCOFF_DEBUGGING_INFO. - * varasm.c: Include xcoff.h if XCOFF_DEBUGGING_INFO. - (assemble_variable): Also call dbxout_symbol when XCOFF_DEBUG. - Change all returns to goto finish. At finish label, - call dbxout_symbol if XCOFF_DEBUG. - - * dbxstclass.h: New file. Define XCOFF specific storage classes. - * xcoff.h: New file, for XCOFF support. Included by xcoffout.c, - dbxout.c, final.c, toplev.c, and varasm.c. - * xcoffout.c: New file for XCOFF support. Most of the support is - implemented by dbxout.c, this just includes stuff that can not be - easily performed within dbxout.c. - - * toplev.c (struct W_options): Add entry for warn_inline, so user - can turn this warning on. - -Wed Mar 11 15:11:42 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - - * optabs.c (init_optabs): Fix typo (Imode instead of TImode) in - HAVE_subti3 case. - -Wed Mar 11 13:10:20 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) - - * sparc.h (REG_ALLOC_ORDER): Make %g3 more desirable. - -Wed Mar 11 12:35:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * fixincludes (egrep cmd): Delete misplaced `#e[nl]'. - - * jump.c (jump_optimize): Try to fix last change. - - * expmed.c (init_expmed): Use big, ugly factor in mult_is_very_cheap. - -Wed Mar 11 08:00:18 1992 Tom Wood (wood@dg-rtp.dg.com) - - * toplev.c (rest_of_compilation): Use sdbout_types to clear the - anonymous types queue if any. - * sdbout.c: Correct spelling of sdbout_dequeue_anonymous_types. - - * genattrtab.c (attr_string): Don't assume a terminating null. - -Wed Mar 11 07:05:38 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload1.c (reload_as_needed): Delete erroneous test of - basic_block_needs. - - * stmt.c (expand_end_case): Know that we will obtain a constant - if we were passed a COMPOUND_EXPR whose second operand is constant. - Fold the MINUS_EXPR we make for casesi. - - * reorg.c (update_block_from_store): Deleted. - (update_block): Always leave USE; don't try to update live regs. - - * explow.c (copy_to_suggested_reg): Add new arg for mode to use. - * expmed.c (expand_divmod): Pass new arg to copy_to_suggested_reg. - - * reload1.c (set_label_offsets, reload_as_needed): Consistently - ignore non-eliminables when computing num_not_at_initial_offset. - - * rs6000.md (subsi3): Remove unnecessary call to force_reg. - - * rs6000.c (output_epilog): Separate setting LR from loading - it from memory in some cases. - Branch to FP restore routine instead of calling it. - - * flow.c (propagate_block): CC0 is not live when we delete a dead - insn. - * cse.c (delete_dead_from_cse): An insn setting CC0 is not live - if the next insn doesn't reference CC0. + * cp-parse.y (datadef): Disallow forward declaration of an enum. - * cse.c (cse_insn): If we see a narrow AND with a constant, check if - we have seen a wider AND. + * cp-class.c (finish_struct): Set LAST_X to X, so we keep the chain + in some semblance of sanity. Makes more than one nested typedef + work properly. + * cp-decl.c (grokdeclarator): Rewrite how class-local typedefs are + handled to generate a TYPE_DECL that's useful. - * combine.c (can_combine_p): Allow SUBREG of non-tiable regs if we - are going to do is copy it to CC0. + * cp-decl.c (start_function): Don't error out if it's a static + function; don't return 0, which can cause other problems. - * reload.c (find_secondary_reload): If X is a pseudo with an - equivalent MEM, use the MEM to see if a secondary reload is needed. - Don't call REG_CLASS_FROM_LETTER for 'r'. - * reload1.c (emit_reload_insns): Handle reloading pseudos - with equivalent MEM when we have secondary reloads; use the MEM - when required. + Sun Aug 22 18:00:57 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * romp.md (reload_outsi): Pattern should be a single PARALLEL - whose second component is a CLOBBER. + * cp-decl.c (duplicate_decls): Set DECL_OVERLOADED flag on "C" + functions so that they are treated properly when "C++" functions of + the same name are declared before they are. -Wed Mar 11 03:11:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Sun Aug 22 13:31:44 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * gcc.c (find_a_file, do_spec_1): Always obey require_machine_suffix. - (machine_explicit): Var deleted. - -Tue Mar 10 23:12:24 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) - - * m68k.md (68000 special shifts): No longer accept a shift count - of 16. Delete support for shifts by 16 places. - (shift by 16 bits): New patterns which apply to all 68k models. - * m68k.h (RTX_COSTS): Shifts by 16 are cheap. - -Tue Mar 10 20:37:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * dwarfout.c (location_or_const_value_attribute): - Reenable changes disabled on Feb 21. - * function.c (instantiate_decls): Likewise. - - * sdbout.c (sdbout_symbol): Handle (mem (const...)). - * dbxout.c (dbxout_symbol): Likewise. - - * xm-i386isc.h: New file. - * configure (i386-*-isc*): Use it. - - * hp320.h (MD_STARTFILE_PREFIX): Deleted. - - * m68k.h (RTX_COSTS): If MULT is a shift, jump to shift case. + Fix how we handle binding levels, and tweak Niklas's new scoping + code to work 100%. This work should significantly improve how + g++ handles the use of nested classes. + * cp-tree.h (NEW_CLASS_SCOPING): Default to 1 now! + * cp-decl.c (pop_binding_level): Set current_binding_level to be + class_binding_level if it's non-NULL. Change code that looks for + our method of climbing back up the binding levels when we're + dealing with a parm. + (pushlevel_class): Call push_binding_level, not pushlevel. + (poplevel_class): Don't weird out if level is 0. DO NOT set + class_binding_level to the level_chain, this was the biggest bug + that made the pushes and pops to end up being unbalanced. + Call pop_binding_level instead of manually putting the level on + the free_binding_level chain. + (pop_from_top_level): Don't call poplevel if previous_class is + non-NULL. + (finish_function): Call expand_start_bindings and + expand_end_bindings in a balanced way. + (finish_function): Don't flail around screwing with the RTL for + the function in a very special case, just always call + rest_of_compilation as we normally would. + (finish_method): Call poplevel, not pop_binding_level. + * cp-class.c (pushclass): Don't call unuse_fields. + * cp-tree.c (break_out_calls): Always call copy_node, not just + when changed++ == 0. + * cp-search.c (bridge_obstack): Deleted. + (push_class_decls): Use search_obstack, not bridge_obstack. + (init_search_processing): Don't init bridge_obstack anymore. - * sun3.h (TARGET_MEM_FUNCTIONS): Defined. + * cp-init.c (build_new): Don't clear LOOKUP_COMPLAIN on flags, since + we need to honor the visibility of what we find. - * toplev.c (rest_of_compilation): Call sdbout_dequeue_anonymous_types - even if we don't output assembler code. + Sat Aug 21 12:07:26 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * jump.c (jump_optimize): In `if (foo) bar; else break;' optimization, - include in range1 and range2 any line numbers at the beginning. + * cp-decl.c (grokdeclarator): Give an error about an array of + offset types and method types, in addition to reference types. + Also make sure to set `type' to be error_mark_node for each. - * c-typeck.c (spelling_length): Initialize `size'. - (PUSH_SPELLING): `spelling_size' is measured in elements. - (get_spelling): Use xmalloc if there is no buffer yet. + * cp-parse.y (primary, PLUSPLUS/MINUSMINUS): Resolve the OFFSET_REF + here. + * cp-typeck.c (build_x_unary_op): Not here. -Tue Mar 10 20:25:56 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * cp-class.c (finish_struct): Set DECL_CLASS_CONTEXT only if it's + a virtual function. + * cp-decl.c (grokfndecl): Communicate the virtual bit to function + decls that overload a virtual function from a base class. + * cp-search.c (dfs_pushdecls): Look at DECL_CLASS_CONTEXT if it's + a virtual function. - * integrate.c (save_for_inline_copying): - Set up LABEL_NAME of label copies. + Fri Aug 20 13:35:54 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * sparc.md: Clean up attribute settings. Add default length of 2 - for insns of type multi. Make sure all insns have correct type and - length attribute values. + Make the g++ driver work with MS-DOS. + * g++.c (P_tmpdir, {R,W,X}_OK) [__MSDOS__]: Defined. + (choose_temp_base_try, choose_temp_base, perror_exec, + run_dos) [__MSDOS__]: New functions for the g++ program to operate + correctly under MS-DOS. + (temp_filename, temp_filename_length) [__MSDOS__]: New variables. + (main): Fix off-by-one error in allocation of arglist. When + running the main GCC program, handle running it under OS/2, MS-DOS, + as well as on a system that has execvp(2). Only find the location + of the GCC executable if we're not using DOS. -Tue Mar 10 19:13:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (poplevel): Only call remember_end_note if we haven't + already created the block. Set TREE_USED on the block. + (duplicate_decls): If the type of either the old or new decl is an + error_mark_node, we've already issued an error so set types_match + to be 1 now. + (xref_defn_tag): Mark the TYPE_DECL as ignored if doing dwarf + debugging. - * c-decl.c (warn_parentheses): Default is 0. - (c_decode_option): -Wall implies -Wparentheses. + * cp-parse.y (base_init, nodecls): Call keep_next_level to make + sure the BLOCK node is kept with the outermost curly braces of a + function. + (compstmt): For `{ }', insert a .pushlevel and do all of the other + stuff we need in every other compstmt situation, to generate proper + debugging for such things and handle the binding levels properly for + them. -Tue Mar 10 17:49:51 1992 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) + Thu Aug 19 18:24:25 1993 Mike Stump (mrs@cygnus.com) - * hp800.md (shNadd recognizers): Put the MULT first, to obey insn - canonicalization rules. + * cp-init.c (build_vec_delete): Wrap void COND_EXPR in NOP_EXPR, so + that the backend does not abort when trying to use the void mode + expression. Fixes make check (tString.o) in libg++. - * hp800.md (subsi3): Don't handle constants for operand 2, but - do handle them for operand 1, for the subi insn. + Thu Aug 19 12:21:12 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * hp800.md (compare into ordinary reg): Use "arith11_operand", not - "arith_operand" for operand 2. Use `I', not `J' as constraint. - Don't change the constant in the output code (i.e. undo Mar 10 - change). - * hp800.c (arith11_operand): New predicate function. Fix comment. + * cp-typeck.c (build_x_unary_op): When we receive an OFFSET_REF, + resolve it before looking for a way to handle the operation. - hp800.md (mulsi3): Don't handle CONST_INT specifically, rely on - machine independent code. - * hp800.h (RTX_COST): Define. - * hp800.c (ABS, mul_operands, emit_mul_by_constant) Remove. - (mul_by_constant_aux, test_factor_and_output): Remove. + * cp-method.c: Include ctype.h. - * hp800.md (addsi3): Use "register_operand" for operand 1, not - "arith_operand". + Thu Aug 19 12:00:08 1993 Mike Stump (mrs@cygnus.com) - * hp800.md: Clean up spacing and comments in a few places. + * cp-class.c, cp-search.c (NEW_SEARCH, NEW_CONVERT, + CHECK_convert_pointer_to_single_level): Remove ability to revert to + old code, and remove checks. Cleans-up the code a little. - * hp800.c (output_move_double): Handle auto increment and auto - decrement. Remove unused enums. Test for either operand being a - REGOP instead if RNDOP, since we require at least one operand to - be a register. Pass the MEM address to find_addr_reg, not the - entire MEM rtx (in two places). + Thu Aug 19 00:41:55 1993 Mike Stump (mrs@cygnus.com) - * hp800.h (WORDS_BIG_ENDIAN): Fix typo in comment. - (RTX_COST): Return cost of a PLUS, to indirectly give the right - cost for the shNadd insns. Adjust the cost for division. + * cp-init.c (expand_aggr_init): Avoid faulting, give error instead. -Tue Mar 10 15:57:24 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + Wed Aug 18 22:43:25 1993 Mike Stump (mrs@cygnus.com) - * sparc.md: Add pattern for optimizing bitfield compares. This - pattern was accidently lost when other (now-obsolete) bitfield - patterns were removed. + * cp-lex.h (RID_BIT_TYPE, RIDBIT_SETP, RIDBIT_NOTSETP, RIDBIT_SET, + RIDBIT_RESET, RIDBIT_RESET_ALL, RIDBIT_ANY_SET): New RID macros, + replaces RIDBIT macro. The new macros allow us to easily expand + past 32 RIDs. + * cp-decl.c (grokvardecl, grokdeclarator): Use them. - * sparc.c (arith32_operand): Deleted. - * sparc.md (movstrsi): Now uses nonmemory_operand for length. + * cp-decl.c (grokdeclarator): Implement `mutable' keyword. + * cp-lex.c (init_lex, ): Ditto. + * cp-lex.h (enum rid): Ditto. + * cp-ptree.c (print_lang_decl): Ditto. + * cp-tree.h (struct lang_decl_flags, DECL_MUTABLE_P): Ditto. + * cp-typeck.c (build_component_ref_1, build_component_ref): Ditto. + * gplus.gperf (mutable): Ditto. + * cp-hash.h: Regenerate. - * sparc.c (output_arc_profiler): Emit insns from first to last - instead of last to first, since it is much clearer. Eliminate - profiler_target, since it resulted in illegal rtx sharing. + * cp-tree.h (struct lang_type): Fill out type_flags to multiple of 4 + bytes for MIPS. - * sparc.c (legitimize_pic_address): Make -fPIC work again, re the - Feb 27 cse.c LO_SUM fix. Put addresses inside UNSPEC when loading - them to ensure that cse won't mistakenly optimize them. - * sparc.md: Two new patterns, to match (HIGH (UNSPEC (..))) and - (LO_SUM (reg) (UNSPEC (..))) as generated above. + Fri Aug 13 16:07:46 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Mar 10 14:58:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-lex.c (DEBUG_DEFAULT_FUNCTIONS): Take out the #undef, so we can + use the command line to turn this on. - * mips-news.h (ASM_SPEC): Move %{G*} outside of -mgas conditional. - * nws3250v4.h, xm-nws3250v4.h, x-nws3250v4: New files. From cph. + * cp-decl.c (grokdeclarator): Look for IDENTIFIER_TEMPLATE in the + name of current_class_type, not in current_class_type itself. - * i860.c (sfmode_constant_to_ulong): Fix typo in last change. + * cp-decl.c (pushdecl): Change to also check TREE_PUBLIC on the decl + in question, and do a pedwarn_with_decl instead of + warning_with_decl for conflicting extern declarations. - * expr.c (store_expr): Initialize `label'. + Fri Aug 13 12:26:41 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 3b1.h (HAVE_ATEXIT): #undef this. + * cp-tree.h: Delete all the old PARANOID stuff, it's suffered + serious bit rot. + (PRINT_LANG_DECL, PRINT_LANG_TYPE): Deleted, not used anymore. + (LANG_ID_FIELD, SET_LANG_ID): New macros. + ({,SET_}IDENTIFIER_{LABEL_VALUE, IMPLICIT_DECL, AS_DESC, AS_LIST, + ERROR_LOCUS}): Redefine these macros to use the new LANG_ID_FIELD + and SET_LANG_ID ones, so everything is much cleaner and readable. - * hp800.md (compare into ordinary reg): Make large ints "negative". + * cp-decl.c (pushtag) [NEW_CLASS_SCOPING]: Push into the template's + class scope before trying to push the decl, and then pop back out. + (globalize_nested_type) [NEW_CLASS_SCOPING]: Asserts 348 and 349 + aren't correct, shadow can come out to be null in some situations. - * hp800hpux.h: New file. - * configure (hp800-*-bsd*): Renamed from hp800-*-*. - (hp800-*-hpux*): New configuration. + Thu Aug 12 10:56:50 1993 Mike Stump (mrs@cygnus.com) -Tue Mar 10 11:03:47 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + * cp-method.c (build_overload_name): Allow the debugger to + deterministically demangle names with more than 9 nested class + levels. - * expmed.c (init_expmed): Make the lea pattern in the canonical way. + Thu Aug 12 00:46:54 1993 Mike Stump (mrs@cygnus.com) -Tue Mar 10 10:32:30 1992 Tom Wood (wood@hal) + * cp-search.c (pushd_stack_level): Fix memory corruption problem. + Don't assume that the obstack won't move, because they will. Among + other things, the fix allows one to nest classes upto 240 levels + deep, instead of 60 or so. - * m88k.h (ASM_OUTPUT_{COMMON,LOCAL}): Compute size consistently. + Thu Aug 12 00:38:05 1993 Per Bothner (bothner@kalessin.cygnus.com) -Tue Mar 10 07:41:09 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl2.c (finish_file): Use new get_file_function_name(). + * cp-tree.h (FILE_FUNCTION_FORMAT): No longer needed. - * recog.c (constrain_operands, case 'E'): Fix typo. + Fri Aug 6 11:37:08 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * function.c (setjmp_protect): Don't put vars from inline functions - on the stack. + * cp-decl.c (pop_binding_level) [DEBUG_CP_BINDING_LEVELS]: Don't + call abort, since we need to see where things end up. - * c-typeck.c (process_init_constructor): Don't use host integers for - bounds and index computation; use trees instead. - If specifying index in array with unset bounds, assume lower bound - of zero and check specified index against zero. + Fri Aug 6 11:13:57 1993 Mike Stump (mrs@cygnus.com) - * tree.h (mode_for_size): Don't declare here. - * machmode.h (mode_for_size): Declare here instead. + * cp-class.c (finish_struct): Blast away old DECL_SIZE on + base_layout_decl so that the old value is not reused, but rather the + new value in the TREE_TYPE (TYPE_SIZE ()) will be. - * reorg.c (fill_slots_from_thread): Try to split THREAD immediately - so we don't get confused if it gets split later. + Thu Aug 5 18:45:26 1993 Mike Stump (mrs@cygnus.com) - * reorg.c (fill_slots_from_thread): Don't take add from loop - head if the increment amount depends on the target register, since - we can't undo the operation. + * cp-init.c (emit_base_init): Move vbase vtable pointer init to very + end of base initialization code. Completes July 30 change. The + dynamic type of a virtual base should not be the type of the current + constructor, until after all bases are initialized. -Mon Mar 9 12:18:04 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) +Thu Aug 26 06:00:09 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * unroll.c (final_biv_value): Fail if the biv is not MODE_INT. + * expr.c: (apply_args_register_offset): Don't use ANSI-style + definition. - * combine.c (distribute_notes, case REG_DEAD): Call rtx_equal_p - to verify that it was the set that modified the register, and - not a clobber. +Wed Aug 25 19:37:26 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Sun Mar 8 22:20:24 1992 James Van Artsdalen (james at bigtex.cactus.org) + * expmed.c (store_bit_field): Do not use bitfield instructions for + STRICT_ALIGNMENT machines if the MEM's alignment isn't as big as + the MEM's mode. - * c-parse.y,c-lex.c,cp-hash.h,cp-parse.y,cp-spew.c,objc-parse.y: - Rename `ASM' to `ASM_KEYWORD' to avoid trouble with SCO - . +Wed Aug 25 19:17:13 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Mar 8 23:16:37 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) + * c-typeck.c (format_char_info_print_table, "p"): Allow width. - * expr.c (move_by_pieces, move_by_pieces_ninsns): Remove March 4 and - March 5 changes. Set max_size to MOVE_MAX + 1 instead. +Tue Aug 24 18:36:31 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Mar 8 17:08:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rs6000.c (output_{pro,epi}log): Don't need no-ops after calls + to functions to save and restore FP regs. - * expr.c (do_tablejump): New arg MODE. - * stmt.c (expand_end_case): Pass that arg. +Tue Aug 24 15:43:43 1993 Michael Meissner (meissner@osf.org) - * c-decl.c (pushtag): Push even anonymous types on tags list. - (parmlist_tags_warning): Handle anonymous types in the list. + * osfrose.h (SUBTARGET_SWITCHES): Add -mlarge-align and + -mword-align to control whether alignments of > 4 are honored. + (ASM_OUTPUT_ALIGN_CODE): If -mlarge-align allow alignments > 4. + (ASM_OUTPUT_ALIGN): Ditto. + (ASM_OUTPUT_LOOP_ALIGN): Always do a .align 2. + (FUNCTION_BLOCK_PROFILER): Define. + (BLOCK_PROFILER): Define. -Sun Mar 8 15:08:58 1992 James Van Artsdalen (james at bigtex.cactus.org) +Tue Aug 24 14:04:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * i386mach.h (perform_fixdfsi): Rename from *_fix_trundfsi2. - Restore float control word correctly. - * i386rose.h (perform_fixdfsi): Likewise. + * pa.c (compute_frame_size): Always align stack to 64 byte + boundary. - * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Allow float constants, - even if -msoft-float is used: reg-stack.c may emit an insn to load - the function value register with 0.0. + * pa.h (STACK_BOUNDARY): Stack pointer is 512 bit (64 byte) + aligned. - * i386.md (bit test insns): Don't allow memory operands as the - first argument of the zero_extract. + * pa.c (output_call): Use ASM_OUTPUT_INTERNAL_LABEL instead of + output_asm_label. - * i386isc.h (RETURN_POPS_ARGS): Comment this out: ISC uses the - standard definition. +Tue Aug 24 11:24:27 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * Merge of Objective C related changes since June 1. + + * objc/xforward.c, objc/mutex.h: Files removed. + * objc/encoding.[ch]: New files. + * objc/todo: File removed. + + Tue Jun 1 00:05:12 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * expr.c (apply_args_register_offset): New function + (apply_args_reg_offset): New variable + (apply_args_size): Added initialization of apply_args_reg_offset. + + * objc-act.c (offset_is_register): New variable + (forwarding_offset): Use apply_args_register_offset to get + register offset. + (encode_method_def, encode_method_prototype): Prepend argument + offset by '+' if passed in register. + (apply_args_register_offset): Added declaration. + + Sun Jun 6 20:57:03 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc/encoding.h, objc/encoding.c: New files. + * objc/Object.m (-performv): Use new objc_msg_sendv. + * objc/sendmsg.c (objc_msg_sendv): Use new encoding facilities. + * objc/objc.h (arglist_t): Data-definition changed. + * objc/xforward.c: File removed. + * objc/Makefile (sendmsg.c, fflags, xforward): Targets removed; + (OBJC_O): Added encoding.o; + (OBJC_H): Added encoding.h, removed mutex.h. + + * objc/objc.h (nil_method): Don't define it, import it from sendmsg.c. + + Wed Jun 16 17:39:56 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc/objc-api.h: (CLS_SETNUMBER): Clear old number + * objc/sendmsg.c (__objc_update_dispatch_table_for_class): + Don't free dtable... (memory leak to make posing work) + * objc/class.c (class_pose_as): lazy copy dtables. + #include sarray.h + + Tue Jun 22 21:39:11 1993 Kresten Krab Thorup (krab@xiv) + + * objc/class.c (class_pose_as): Rewritten + * objc/sendmsg.c (__objc_update_dispatch_table_for_class): + Free old dispatch table and install a new. + + Tue Aug 24 00:41:35 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc-act.c (generate_method_descriptors, generate_ivar_lists, + generate_dispatch_tables): Reorganized use of constructors. + (build_descriptor_table_initializer, build_ivar_list_initializer, + build_dispatch_table_initializer): Removed argument `int *size'. + + Tue Aug 24 00:52:04 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc/sendmsg.c (__objc_install_dispatch_table_for_class): + Dynamically expand dispatch table when full. - * i386sco.h (STARTFILE_SPEC): Use crtbegin.o. - (ENDFILE_SPEC): Use crtend.o. - (CPP_SPEC): #undef before defining. - (RETURN_POPS_ARGS): Caller pops args on SCO. +Mon Aug 23 19:37:33 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Sun Mar 8 14:25:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * pa.h (TARGET_TRAILING_COLON): Delete switch. TARGET_GAS now + controls the use of trailing colons. - * configure: Fatal error if srcdir has already been configured. - Remove periods from error messages. +Mon Aug 23 18:46:14 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - * 3b1.h, mot3300.h (ASM_OUTPUT_OPCODE): Change swap to swap.w. - (SGS_SWAP_W): Deleted. - * m68ksgs.h (ASM_OUTPUT_OPCODE): If SGS_SWAP_W, change swap to swap.w. - * m68k.md: Delete all SGS_SWAP_W conditionals. + * config/m68k/dpx2g.h (ASM_LONG): Move from dpx2.h. - * m68k.md (shift using swap, dbra patterns): Change clrw to clr%.w. + * configure (m68k-bull-sysv): Add support for working with native + assembler. + * config/m68k/dpx2.h (MOTOROLA): Define this. + (VERSADOS): This the name of the DPX2 assembler. Define this in case. + (USG): Define this. + (SGS_NO_LI): define this to suppress jump table usage. + (TARGET_DEFAULT): Define this to 3 inside the conditional USE_GAS + since bitfields do not work a clean way on DPX2. + (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, + SELECT_RTX_SECTION): #undef these. + (READONLY_DATA_SECTION): Define to data_section. + (*_ASM_OP, ASM_OUTPUT_*): Define these accordingly to the native + assembler syntax. + (LONG_DOUBLE_TYPE_SIZE): Set to 64 to not use XFmode. + (REAL_ARITHMETIC): Define this to use the software floating point + emulator. + (JUMP_TABLES_IN_TEXT_SECTION): Define this to 1. + (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Override m68k.h default. + (ASM_OUTPUT_ASCII): add a new variable to take care of the lentgh of + the operand field which must be < 80 chars. + (PRINT_OPERAND_ADDRESS): Override m68k.h default. + (PUT_SDB_TYPE): Output type in decimal. + (PUT_SDB_FUNCTION_[START|END]): Override sdbout.c default. + (PUT_SDB_BLOCK_[START|END]): Override sdbout.c default. - * hp800.h (output_global_address): Use `-' for PLUS of neg integer. - Clean up spacing and braces in several places in file. +Mon Aug 23 18:33:26 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * byteorder.h (htons): Use unsigned int for arg type. + * fold-const.c (twoval_comparison_p): Add new arg, SAVE_P; all + callers changed. + (fold, case EQ_EXPR): If SAVE_P is true after call to + twoval_comparison_p, call save_expr on the expression we make. -Sun Mar 8 07:36:44 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Aug 23 07:57:41 1993 Michael Meissner (meissner@osf.org) - * rs6000.c (print_operand, case 'A'): New case. - * rs6000.md (sri): New %A to use "sli" for count of zero to work - around bug in RS/6000 assembler. + * i386/osfrose.h (CC1_SPEC, CPP_SPEC): If NO_UNDERSCORE is + defined, the ELF compiler defaults to -mno-underscores to remove + leading underscores. Clean up ROSE -pic options so that they are + never passed when building ELF objects. + * i386/osfelf.h: Likewise. - * config.sub (os): Add "aos" to basic list, no longer the same - as "bsd"; "acis" is an alternate for "aos". - (romp): No longer has a default system. - * configure (romp-*-aos*): Renamed from romp-*-bsd*; BSD means - real BSD (4.3 Tahoe+), AOS means IBM system. +Sun Aug 22 23:36:24 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * Makefile.in (crtbegin.o, crtend.o): Use -o for output instead of - putting in crtstuff.o and renaming to desired name. + * expr.c (expand_builtin_apply): Fix typo. - * reload1.c (reload): Re-check eliminability of registers on each - reload pass. + * pa.md (untyped_call): New define_expand. - * jump.c (mark_jump_label): Make multiple REG_LABEL notes if - more than one label is mentioned in an insn. +Fri Aug 20 12:24:50 1993 Ian Lance Taylor (ian@spiff.gnu.ai.mit.edu) - * integrate.c (copy_rtx_and_substitute): Properly initialize - const_equiv_map for the equivalents of AP and FP. + * gcc.c (main): Correct August 6 change. - * rs6000.h (TARGET_MEM_FUNCTION): Define. +Thu Aug 19 19:19:19 1993 Jim Wilson (wilson@cygnus.com) -Sun Mar 8 00:05:47 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * combine.c (simplify_shift_const, XOR case): When applying + distributive law, use shift_mode and GET_MODE (varop) instead of + result_mode. - * c-decl.c (store_parm_decls): Copy function type before changing it. - * tree.c (build_type_copy): New subroutine. +Thu Aug 19 08:28:50 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * t-next (LIBGCC1): Assigned, instead of LIBGCC. + * rs6000.md (scc): Fix typo in scc with compare and set. - * m68k.h (SHIFT_COUNT_TRUNCATED): Deleted. + * combine.c (can_combine_p): Don't reject SUBREG assignments here. + (subst): Instead, do it here, but also allow it in as a + nested SUBREG since the inner one will be eliminated. + (simplify_and_const_int): Convert (and (neg X) (const_int 1)) + to a shift when X is known to be either 0 or 1. -Sat Mar 7 23:47:57 1992 James Van Artsdalen (james at bigtex.cactus.org) + * fold-const.c (fold): Handle EQ_EXPR and NE_EXPR where both + args are comparisons or BIT_AND_EXPR with constant 1. - * i386.md (xorsi3,xorhi3): Don't emit a byte opcode with an SImode - operand. +Wed Aug 18 23:37:05 1993 Jim Wilson (wilson@cygnus.com) -Sat Mar 7 22:49:21 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * mips.h (SELECT_SECTION): Put object in sdata only if size is + known, i.e. greater than 0. - * c-typeck.c (convert_arguments): -Wconversion warning - if argument is passed as float. - For fixed arguments, warn if type passed doesn't match - what default_conversion produces. +Wed Aug 18 17:48:51 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * gcc.c (cross_compile): New variable, 1 if cross-compiling. - (read_specs): Read it from specs. - (process_command): Dump it to specs. + * combine.c (try_combine): Don't split a PARALLEL of a SIGN_EXTEND + and the object being sign extended if we have made assumptions + about the form the I2DEST. - * gcc.c (process_command): Don't use MD prefixes and - standard_startfile_prefix* here. - (main): Use them here, if not cross-compiling. + * combine.c (nonzero_bits): Handle case when BYTE_LOADS_EXTEND is + not on and we are asked for something in a mode wider than it. -Sat Mar 7 18:13:45 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Aug 18 02:21:35 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * reload1.c (reload_as_needed): Eliminate regs in (use (mem ..)) - and (clobber (mem ...)) insns. + * pa.md (movdf insn): Distinguish between offsettable and + nonoffsettable memory locations when loading/storing a GR. + (movdi insn): Likewise. Loading a DImode constant can take as + many as 4 insns (length of 16 bytes). - * combine.c (distribute_notes): Fix minor bug in handling of - multi-register values when only one part is used. + * pa.md (zero_extendqihi2): No need to explicitly set a length; + the defaults are correct. + (zero_extendqisi2, floatsisf2, floatsidf2): Likewise. + (fix_truncdfsi2, fix_truncsfdi2, fix_truncdfdi2): Likewise. - * optabs.c, expr.c: Always call emit_library_call with no_queue == 1. + * pa.c (emit_move_sequence): Check both reload_in_progress and + reload_completed when choosing a scratch/temporary register. - * function.c (fix_lexical_addr): Correctly set BASE in non-separate - AP case. + * pa.h (TARGET_KERNEL): Delete switch and all references to it. + * pa.c (emit_move_sequence): Always handle secondary reloads for + symbolic addresses. + (secondary_reload_class): Symbolic operands always need a secondary + reload from R1_REGS if their target class is not R1_REGS. + * pa.md (HIGH for symbolic operands): TARGET_KERNEL version is now + the only choice. Delete ! TARGET_KERNEL version. -Sat Mar 7 15:39:57 1992 Jyrki Kuoppala (jkp@batman.cs.hut.fi) + * pa.h (DEFAULT_GDB_EXTENSIONS): GDB extensiosn are on by default. + * pa-hpux.h (DEFAULT_GDB_EXTENSIONS): Turn GDB extensions off. + * pa-hpux7.h (DEFAULT_GDB_EXTENSIONS): Likewise. - * ns32k.h (TRANSFER_FROM_TRAMPOLINE): changed "ret" to "ret 0" + * pa.h (TARGET_GAS): New target flag to control use of GAS + specific assembler directives. + (TARGET_SWITCHES): Support -mgas and -mno-gas. + (ASM_DECLARE_FUNCTION_NAME): If TARGET_GAS then emit .PARAM + directives for static functions so argument relocations work. + * pa-ghpux.h (TARGET_DEFAULT): Enable TARGET_GAS. + * pa-gux7.h, pa-utahmach.h, pa.h (TARGET_DEFAULT): Likewise. + * pa1-ghpux.h, pa1-utahmach.h, pa1.h (TARGET_DEFAULT): Likewise. -Sat Mar 7 15:41:46 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) + * pa.c (hppa_legitimize_address): Rework address computation for + x[n - m] so that problems with implicit space register selection + are avoided. - * fixincludes: Don't do special fixes on signal.h, which were only - needed because of #endif comment fixes. + * pa.h (EXTRA_CONSTRAINT): Delete unused 'S' constraint. + * pa.md (call_internal_symref): Make pattern unavailable if + TARGET_LONG_CALLS. + (call_value_internal_symref): Likewise. -Sat Mar 7 15:11:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Aug 16 18:47:56 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m68k.h (ASM_OUTPUT_ALIGN): Don't crash if LOG is more than 1. + From parkes@uiuc.edu: + * encore.h, ns32k.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use .double instead + of .word. + * ns32k.h (CASE_VECTOR_MODE): Now SImode; was HImode. + * ns32k.md (tablejump): Now SImode and uses cased. - * varasm.c (decode_reg_name): Make various prefixes optional - whether or not they are in REGISTER_NAMES. - (strip_reg_name): New subroutine. + * fold-const.c (fold, case EQ_EXPR): Re-enable converting + signed MOD operations to unsigned when inside comparisons + against zero, but only when the second operand of the MOD + is an integral power of two. - * i386.c: Fatal error if EXTRA_CONSTRAINT is defined. +Mon Aug 16 12:38:28 1993 John Hassey (hassey@dg-rtp.dg.com) - * collect2.c [USG] (R_OK, W_OK, X_OK): Define them if missing. + * fixinc.dgux: Fixed va_list problem in _int_varargs.h - * x-hp320g (RANLIB, RANLIB_TEST): Defined. +Mon Aug 16 11:26:57 1993 Kevin Buettner (kev@spuds.geg.mot.com) - * Makefile.in (EXTRA_PROGRAMS): New variable is list of programs. - (native): Build them. Don't build EXTRA_PARTS. - (rest.encap): Build EXTRA_PARTS. - (GCC_PARTS): Include EXTRA_PROGRAMS. - (install-common): Build EXTRA_PROGRAMS. - * t-convex (EXTRA_PROGRAMS): Define instead of EXTRA_PARTS. + * configure (m88k-mot-sysv4*): Added new configuration for m88k + delta machines running svr4. - * Makefile.in (distclean): Don't delete backups, etc. - (extraclean): New target--delete those things here. - (gcc.xtar): Use extraclean. - (cleanconfig): Deleted. - (realclean): Depend on distclean. + * config/m88k/mot-sysv4.h: New file. -Sat Mar 7 14:54:29 1992 Tom Wood (wood@dg-rtp.dg.com) +Mon Aug 16 11:16:32 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * genattrtab (attr_printf): Provide alternate based on HAVE_VPRINTF. + * combine.c: (use_crosses_set_p): Check for partially overlapping + hard regs. -Sat Mar 7 14:25:58 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) +Sun Aug 15 20:17:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * hp800.c (secondary_reload_class): Change `=' to `==' in `if'. + * reorg.c (find_end_label): If a suitable RETURN insn exists at + the end of the current function, place a label in front of it for + the end_of_function_label. -Sat Mar 7 13:25:17 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Aug 13 16:40:03 1993 Pat Rankin (rankin@eql.caltech.edu) - * cccp.c (do_line): Fix typo. + * c-typeck.c (check_format): For scan of "%[", skip over scan set + til closing ']' to avoid processing it as ordinary format characters. - * configure (decoding args): Delete excess fi. +Fri Aug 13 16:02:23 1993 Chip Salzenberg (chip@fin.uucp) -Sat Mar 7 09:29:41 1992 Michael Meissner (meissner@osf.org) + * c-common.c (declare_hidden_char_array): New function to + factor out duplicate code in declare_function_name. + Don't set DECL_EXTERNAL (which is illegal without TREE_PUBLIC) + to prevent output; instead, set TREE_ASM_WRITTEN. + (declare_function_name): Use declare_hidden_char_array. - * mips.h (CONST_COSTS): Complete last change. +Fri Aug 13 14:58:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips.md (movsi_ulw, movsi_usw): Complete last change. + * config/ns32k/encore.h (ASM_OUTPUT_ALIGN_CODE): Override as no-op. -Sat Mar 7 07:28:03 1992 Tom Wood (wood at dg-rtp.dg.com) +Fri Aug 13 14:29:17 1993 Stephen Moshier (moshier@world.std.com) - * config.sub (*-dolphin, -triton*): New vendor/OS. - * configure (m88k-dolphin-trition): New alternative. - * m88kdolph.h: New file. - * xm-m88kdolph.h: New file. + * sparc.h (LONG_DOUBLE_TYPE_SIZE): Define to 128. -Sat Mar 7 10:07:44 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * real.c (GET_REAL, PUT_REAL): Add TFmode versions. + (MAXDECEXP, MINDECEXP): New decimal exponent limits + that vary with definition of LONG_DOUBLE_TYPE_SIZE. + (endian, ereal_atof, real_value_truncate, einfin, emdnorm, asctoeg): + Add cases for TFmode. + (etartdouble): New function converts REAL_VALUE_TYPE to TFmode + for use by ASM_OUTPUT_LONG_DOUBLE. + (edivm, emulm): Ifdef out, replace by faster multiply and divide. + (etoe113, toe113, e113toe): New type conversions for TFmode. + (asctoe113, e113toasc): New TFmode binary <-> decimal conversions. + (at top level): Define constants ezero, eone, emtens, etens, ... + in a new 20-byte format when LONG_DOUBLE_TYPE_SIZE = 128 and + set NE to 10. Otherwise, the internal format remains 12 bytes wide. + (etoudi, etodi, ditoe, uditoe): New functions, signed and unsigned + DImode float and fix, for real.c used in a libgcc-of-last-resort. + (esqrt): New function, correctly rounded square root for libgcc. + (etodec): Delete ifdef'd version. + (eroundi, eroundui): Rename to efixi, efixui and always + round towards zero. - * make-l2.com: Do not allow the user to run this with gcc 1.nn. + From frank@atom.ansto.gov.au (Frank Crawford): + (etoibm, toibm, ibmtoe): New conversions for IBM 370 float format. + (e53toe, e64toe, toe64, etoe53, toe53, etoe24, toe24, asctoe53, + asctoeg, make_nan): Ifdef for IBM. - * make-gcc.com: Use the new compiler to build libgcc2.c (through - make-l2.com). + * real.h (REAL_VALUE_TYPE): Define array at least 20 bytes wide + if LONG_DOUBLE_TYPE_SIZE is 128 bits. + (etartdouble): Declare and use for REAL_VALUE_TO_TARGET_LONG_DOUBLE + when long double is TFmode. + (REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX): Must always round + towards zero. -Sat Mar 7 05:36:16 1992 K. Richard Pixley (pixley@nutrimat.gnu.ai.mit.edu) +Fri Aug 13 07:50:42 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in: added the exec_prefix variable for installing host - dependent programs and libraries. + * expr.c (expand_expr, case SAVE_EXPR): Set MEM_IN_STRUCT_P + appropriately when the result is a MEM. -Sat Mar 7 00:09:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * integrate.c (expand_inline_function): Copy args that are in + hard regs instead of substituting them directly into insns. - * genextract.c (mybzero): New fn. Used instead of bzero. + * rs6000.md (subsi3): Merge alternatives. + (comparison patterns): Eliminate generation of "sfi."; no such + instruction exists. - * Makefile.in (all): Indirect to all-internal. - (all-internal): New rule, following where cross-make gets inserted. +Thu Aug 12 21:24:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * vms.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Defined. + * config/m68k/sun3.h (CPP_PREDEFINES): Define _CROSS_TARGET_ARCH. - * protoize.c: Don't declare fork or vfork. +Thu Aug 12 19:02:47 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * i860.c (sfmode_constant_to_ulong): Use REAL_VALUE_FROM_CONST_DOUBLE. + * rs6000.md (attribute "type"): Add new type, "branch". + (attribute "length"): New attribute; put on all insns that don't + have default length. + (branch patterns): If conditional branch won't reach, take + conditional branch around an unconditional branch. - * gcc.c (handle_braces): Verify actual suffix length matches - desired. + * rs6000.md (plus): Split (plus (COMPARISON FOO ...) ...) at FOO. - * hp800.h (GO_IF_LEGITIMATE_ADDRESS): Add parens for clarity. +Thu Aug 12 14:04:40 1993 Michael Meissner (meissner@osf.org) - * c-typeck.c (pointer_int_sum): Handle intop which is sum or diff - of arguments with different types. + * i386/osfrose.h (SUBTARGET_SWITCHES): Add -munderscores and + -mno-underscores. + (CPP_SPEC): If -mno-underscores, define __NO_UNDERSCORES__. + (LPREFIX): Redefine, to take -m{,no-}underscores into account. + (ASM_GENERATE_INTERNAL_LABEL): Ditto. + (ASM_OUTPUT_INTERNAL_LABEL): Ditto. + (ASM_OUTPUT_LABELREF): Ditto. - * c-typeck.c (PUSH_SPELLING): If no buffer yet, use xmalloc. + * i386/osfelf.h (CPP_SPEC): If -mno-underscores, define + __NO_UNDERSCORES__. - * m68k.c (output_dbcc_and_branch): Use \n\t between pair of insns. + * c-decl.c (pushdecl): Don't give nested warning messages if + DECL_IN_SYSTEM_HEADER is set in order not to give warnings when + defining new instances of __FUNCTION__ and __PRETTY_FUNCTION__. - * sparc.h (TARGET_MEM_FUNCTIONS): Defined. +Thu Aug 12 13:42:04 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Fri Mar 6 18:48:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * sparc.c (legitimize_pic_address): Delete 4th arg SCRATCH. + Fix all callers. + (emit_move_sequence): Delete 3rd arg SCRATCH_REG. Fix all + callers. If operand1 is an invalid PIC address, then legitimize + it before doing anything else. + * sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Delete case for invalid + PIC addresses. + (CONSTANT_ADDRESS_P): Reject invalid PIC addresses. + (LEGITIMATE_PIC_OPERAND_P): New macro. + (GO_IF_LEGITIMATE_ADDRESS): Reject invalid PIC addresses. + (LEGITIMIZE_ADDRESS): Fix call to legitimize_pic_address. + * sparc.md (reload_insi): Delete. + (*): Fix all callers of legitimize_pic_address and emit_move_sequence. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Don't call ON_EXIT here. - * crtstuff.c, libgcc2.c (__do_global_ctors): Call it here. + * sched.c (sched_analyze_insn): Handle USE before a JUMP_INSN just + like a USE before a CALL_INSN. + * function.c (thread_prologue_and_epilogue_insns): For the + epilogue, put USE insns immediately before the return insn. - * i386sco.h (HAVE_ATEXIT): Defined. + * sparc.h (ASM_OUTPUT_DOUBLE): Always use REAL_VALUE_TO_TARGET_DOUBLE. + (ASM_OUTPUT_FLOAT): Always use REAL_VALUE_TO_TARGET_SINGLE. - * collect2.c (my_exit, main): Avoid dereferencing 0. +Wed Aug 11 19:48:24 1993 Per Bothner (bothner@kalessin.cygnus.com) - * stmt.c (expand_decl_init): Don't alter TREE_USED of the variable. + * tree.c (get_file_function_name): New function + for language-independent constructor name generation. + * objc-act.c (build_module_descriptor): Use it. + * tree.h (CONSTRUCTOR_NAME_FORMAT): Removed. -Fri Mar 6 18:24:39 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Aug 11 19:50:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * mot3300.h (SIZE_TYPE): Define as "unsigned int". + * reorg.c (try_merge_delay_insns): Fix typo. + (fill_simple_delay_slots): Only access the JUMP_LABEL field + if the INSN needing delay slots is a JUMP_INSN. - * combine.c (make_extraction): STRICT_ALIGNMENT is now non-zero if - true, instead of relying on whether it is defined or not. - * c-typeck.c, cp-typeck.c (build_c_cast): Likewise. - * stor-layout.c (layout_type) Likewise. - * expr.h (MUST_PASS_INSTACK_BAD_ALIGN): Likewise. - * expr.c: Set default value of SLOW_UNALIGNED_ACCESS to zero. - (move_by_pieces, move_by_pieces_ninsns, emit_push_insn): - SLOW_UNALIGNED_ACCESS and STRICT_ALIGNMENT now true if non-zero. - * function.c (assign_stack_local, assign_outer_stack_local): - Remove turned-off code using STRICT_ALIGNMENT. - * config/*.h: Change representation of STRICT_ALIGNMENT and - SLOW_UNALIGNED_ACCESS. - * gmicro.h (SLOW_UNALIGNED_ACCESS): Set to 1. +Wed Aug 11 15:09:52 1993 Michael Meissner (meissner@osf.org) - * Makefile.in (cleanconfig): Remove obsolete reference to - file aux-output2.c. + * c-typeck.c (output_init_element): Don't call default_conversion + for a STRING_CST if type is directly suitable for it. + (digest_init): Eliminate a lot of code that checks the variable + 'element', since element is always 0 in these code paths. - * c-lex.c (yylex): Don't make out-of-range shift for very wide chars. +Wed Aug 11 17:59:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Mar 6 18:07:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * combine.c (combine_instructions): Fix typo on test of basic block + number. - * toplev.c (compile_file): No -Wunused warnings for static vars. +Wed Aug 11 17:44:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * collect2.c (main): Don't handle -B, -b, -V, -m or -f. - collect2 gets only the options that ld would get. - Process COLLECT_GCC_OPTIONS envvar. - (savestring): New function. + * configure (m68k-hp-bsd4.4*): Add missing *; + move before m68k-hp-bsd*. - * genattrtab.c: Revert to previous version - because the new one uses vsprintf and it isn't trivial - to avoid it. +Wed Aug 11 09:21:56 1993 Ian Lance Taylor (ian@cygnus.com) -Fri Mar 6 17:26:09 1992 Tom Wood (wood at dg-rtp.dg.com) + * fixincludes: Get SIZE_TYPE by invoking gcc rather than cc; gcc + location is passed in as fourth argument. + * Makefile.in (stmp-fixinc): Depend upon xgcc and cpp; pass + objdir/xgcc -Bobjdir/ as fourth argument to $(FIXINCLUDES). - * m88k.md ( expressions): Don't rely on the assembler being able - to handle constant expressions (Dolphin Triton88 can't). +Tue Aug 10 15:12:11 1993 Jim Wilson (wilson@cygnus.com) - * genattrtab.c: Add a hash table mechanism to share RTL and strings. - (attr_hash_add_rtx, attr_hash_add_string): New functions. - (attr_rtx): New function to generate a shared RTL. - (attr_printf, attr_printf): New functions to generate a shared string. - - * genattrtab.c: Extend the treatment of DEFINE_ATTR to allow a CONST - expression as the default value, indicating a constant attribute. - (struct attr_desc): Add `is_const' field. - (check_attr_test): Add `is_const' parameter. Disallow use of insn - attributes and MATCH_OPERAND in a constant expression; allow - SYMBOL_REF in a constant expression. All callers updated. - (chech_attr_value): Allow a SYMBOL_REF as a constant expression. - (convert_const_symbol_ref): New function that converts a constant - SYMBOL_REF to a COND that explictly tests each value. - (make_canonical): Use `convert_const_symbol_ref' for constant - SYMBOL_REF expressions. - (make_length_attrs, find_attr, make_internal_attr): Mark `is_const' - as false. - (gen_attr): Get rid of a top-level CONST node and mark `is_const' true. - (walk_attr_value): Use of a constant SYMBOL_REF does not set - `must_extract' or `must_constrain'. - (write_attr_get): Deal with constant attributes. + * cse.c (cse_insn): After inserting src_eqv, check to see if it is + identical to any uninserted SET_SRCs, and if so, set their src_elt + to src_eqv_elt. -Fri Mar 6 16:14:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Aug 10 12:56:46 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * cccp.c (main, path_include) [__MSDOS__]: Handle MSDOS syntax in path. + * pa.h (DOLLARS_IN_IDENTIFIERS): Define as 2. - * expr.c (store_expr): Fix bugs in last change. +Mon Aug 9 19:02:49 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * objc-actions.c (receiver_is_class_object): Fix typos. + Merged fixproto stuff from Cygnus. - * ecoff-cmp: File deleted. + Fri Aug 6 12:23:04 1993 Per Bothner (bothner@kalessin.cygnus.com) - * config.sub (3b1): Convert to m68000, not m68k. + * fixproto, Makefile.in: Rename tmp.[ci] -> fixtmp.[ci]. - * cccp.c (do_line): Handle "syetem header" indicator flag `3'. + Tue Aug 3 22:24:58 1993 Per Bothner (bothner@kalessin.cygnus.com) - * t-i386isc: New file. - * configure (i386-*-isc*): Use the new file. - * i386isc.h (LIB_SPEC, ENDFILE_SPEC): Use crtbegin.o/crtend.o. + * fixproto: Find not only nested directories, but also + links to directories. -Fri Mar 6 14:37:25 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) + Mon Aug 2 18:58:35 1993 Per Bothner (bothner@kalessin.cygnus.com) - * expmed.c (expand_dec): Fix comment. + * fixproto: Add kludge to getting hit by double globbing. + * scan-types.sh: Fix to emit #define, not a typedef. + * patch-header.c (main): Make sure to print a space after + a function name when we didn't see a '('. + * Makefile.in (stmp-fixproto): Fix so (/*...*/) becomes (). -Fri Mar 6 09:49:54 1992 Tom Wood (wood at dg-rtp.dg.com) + Fri Jul 30 17:18:22 1993 Per Bothner (bothner@kalessin.cygnus.com) - * m88k.c (emit_move_sequence): Check reload_in_progress in - addition to reload_completed. + * fixproto: Append seen files to fixproto.list file, + instead of done_files variable (which could become too long). + * fixproto: Don't generate a huge rel_souce_files variable + (which might become too long); instead loop over directories. + * fixproto: Remove signal() from list of required functions + for signal.h, because we can't grok its complicted prototype. + * Makefile.in (mostlyclean): Also delete fixproto.list. - * m88k.md (cpu attribute): Fix. + Thu Jul 29 12:43:53 1993 Per Bothner (bothner@kalessin.cygnus.com) -Fri Mar 6 06:24:08 1992 Michael Meissner (meissner@osf.org) + * scan-decls.c (skip_to_enclosing_brace): New function. + * scan-decls.c (main): After a parameter list, skip + any following function body (usually for inline functions). - * mips.h (CONST_COSTS): Fix eliminate_constant_term calling - sequence. + * fixproto: Fix to make sure stdlib.h and unistd.h get + the proper required_list, even when they need to be created. + * fixproto: Direct cpp error messages to /dev/null. + * patch-header.c: Make less verbose. - * mips.c (simple_memory_operand): Move offset variable for calling - eliminate_constant_term into a local block by the call. - (mips_address_cost): Ditto. + Wed Jul 28 16:12:39 1993 Per Bothner (bothner@kalessin.cygnus.com) - * mips.md (movsi_ulw, movsi_usw): Fix eliminate_constant_term - calling sequence. + * fixproto: Rewrite to use a case statement instead of eval to + set required_list and extra_check_list. + * fixproto: Simplify remaining call to tr improving portability. -Fri Mar 6 00:30:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * scan-decl: Recognize inline functions, emitting typecode 'I'. + * patch-header (read_scan_file): Handle inline functions. + * patch-header (read_scan_file): Fix thinko. Rename variable. - * fixincludes: Don't fix comments on #endif, #else. - It made the egrep string too long. +Mon Aug 9 17:47:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (store_expr): Handle size mismatch copying from string cst. + * c-typeck.c (build_c_cast): For (void *) (FOO *) 0, return a nop_expr + so it doesn't count as a null pointer constant. + (convert_for_assignment, build_binary_op): Pedantically warn about + that case if looking for a null_pointer_constant. + (build_conditional_expr): Likewise. -Thu Mar 5 22:11:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * ns32k.c (output_move_double): Fix typos in last change. - * objc-actions.c (receiver_is_class_object): Clean up syntax. + * expr.c (store_expr): Don't return TEMP if it's a MEM. - * sun386.h (ASM_GENERATE_INTERNAL_LABEL): Start with a star. +Mon Aug 9 15:26:27 1993 Jim Wilson (wilson@cygnus.com) - * reload1.c (reload): Change `=' to `==' in `if' - inside REGISTER_CONSTRAINTS conditional. + * varasm.c (assembler_variable): For XCOFF_DEBUG, restore section + if dbxout_symbol call changes it. -Thu Mar 5 21:29:33 1992 Michael Tiemann (tiemann@mole.gnu.ai.mit.edu) + * sched.c (schedule_insns): Don't emit a NOTE at the end of the last + basic block if that would put it between a JUMP_INSN and a BARRIER. - * cp-parse.y (yyprint): Make declarations declare __inline - consistently. + * mips.h (OPTIMIZATION_OPTIONS): Use |=, not &= to set -mpgopt. + * mips.c (function_arg, DFmode case): Set regbase to GP_ARG_FIRST + if cum->arg_number greater than or equal to 2. -Thu Mar 5 18:34:32 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) +Mon Aug 9 07:31:07 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m68k.md (dbra patterns): Fix NO_ADDSUB_Q ifdef conditionals. - Fix location of comment regarding use of REG_NOTES in dbra insns. + * optabs.c (widen_operand): New function. + (expand_binop, expand_unop): Call it. -Thu Mar 5 18:30:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Aug 8 17:32:04 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (libgcc.a): If $(LIBGCC1) is empty, ignore it. - * cross-make (LIBGCC1): Make definition empty. + * combine.c (num_sign_bit_copies): Properly handle case when MODE is + narrower than that of X. + (simplify_shift_const): Remove change of July 26. -Thu Mar 5 17:48:38 1992 Torbjorn Granlund (tege@wombat.gnu.ai.mit.edu) +Sun Aug 8 17:26:57 1993 Jim Wilson (wilson@cygnus.com) - * reload.c (find_reloads): Correctly detect different operand - constraint alternatives (by changing subscription from 0 to loop - variable i). + * sparc.c (sparc_type_code): Support range types. -Thu Mar 5 16:58:38 1992 Tom Wood (wood at dg-rtp.dg.com) + * expr.c (expand_increment): Call save_expr on inner expression if + it is itself an increment expression. - * Makefile.in (libsubdir): Rename $(libdir)/gcc gcc-lib. - * gcc.c (STANDARD_EXEC_PREFIX): Ditto. + * configure (*-*-riscos*): Set broken_install. + (mips-*-riscos[56789]sysv4): Use xm-sysv4.h. + * mips/xm-sysv4.h: New file. + * mips/svr3-5.h, mips/svr4-5.h (_SC_PAGE_SIZE): Define to + _SC_PAGESIZE if that exists. - * c-typeck.c: Implement a spelling stack to store and print - compoment names for error messages. + * sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Use fp_zero_operand. + * sparc.c (reg_or_0_operand): Use fp_zero_operand. + (fp_zero_operand): New function. - (push_{string,member_name,array_bounds}): New functions. - (SPELLING_DEPTH, RESTORE_SPELLING_DEPTH, SAVE_SPELLING_DEPTH): New - macros to save and restore the spelling stack. - (digest_init, process_init_constructor): Use these. + * c-typeck.c (build_array_ref): Force array to be allocated on the + stack if it is accessed by out-of-bound constant integer subscript. - (spelling_length, print_spelling): New functions. - (error_init, pedwarn_init): Use them. + * configure (mips-*): Standardize indentation. + (mips-*-*bsd*): Use t-bsd and t-bsd-gas. + (mips-*-*sysv4*): Use t-svr4 and t-svr4-gas. + (mips-*-*sysv*): Use t-svr3 and t-svr3-gas. + * mips/t-bsd, mips/t-bsd-gas, mips/t-svr3, mips/t-svr3-gas, + mips/t-svr4, mips/t-svr4-gas: New files. - (get_spelling): New function. - (convert_for_assignment): Use `get_spelling' to interpret messages - that are based on the spelling stack. - (process_init_constructor): Pass `&initialization_message'. +Sun Aug 8 11:33:51 1993 John F Carr (jfc@Athena.mit.edu) -Thu Mar 5 15:22:22 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + * expmed.c (SLOW_UNALIGNED_ACCESS): Define, but allow override. + (store_bit_field): Test that instead of STRICT_ALIGNMENT. + Also, allow fetching as non-bitfield if memory is aligned enough. + (extract_bit_field): Install code here like that in store_bit_field. - * expr.c (init_expr): Initialize forced_labels to zero. - (save_expr_status): Saved forced_labels away and initilize to - zero. - (restore_expr_status): Restore value of forced_labels. - * function.h (struct function): Add forced_labels field. - * integrate.c (function_cannot_inline_p): Reject function with - nonzero forced_labels. +Sun Aug 8 04:26:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Mar 5 15:08:47 1992 Tom Wood (wood at dg-rtp.dg.com) + * expr.c (expand_assignment): If WANT_VALUE is 0, return NULL. + (store_expr): Likewise. + Rename arg SUGGEST_REG to WANT_VALUE. + Never return TARGET if WANT_VALUE unless BLKmode. + Instead, return TEMP or a value copied from TARGET. + Pass 0 for WANT_VALUE in recursive calls that ignore value. - * regclass.c (fix_register): Use decode_reg_name. - * stmt.c (expand_asm_operands): Ditto. - * varasm.c (decode_reg_name): Ignore a leading '#'. + * varasm.c (contains_pointers_p): New function. + (assemble_variable): Use that. - For RMS: - * cp-call.c (build_method_call): Delete now redundant tests of - TREE_EXTERNAL before calls to assemble_external. - * cp-init.c (build_virtual_init, build_builtin_call): Ditto. - * cp-method.c (hack_identifier): Ditto. - * cp-typeck.c (build_component_ref, build_function_call_real): Ditto. - * c-parse.y (primary): Ditto. + * toplev.c (rest_of_decl_compilation): Don't look at DECL_IGNORED_P. + Don't output a read-only initialized extern variable. -Thu Mar 5 13:49:29 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) + * c-common.c (declare_function_name): Set DECL_EXTERNAL in the decls. - * expr.c (move_by_pieces_ninsns): Finish Mar. 4 change. Do not - choose a mode which has a size greater than MOVE_MAX. +Sat Aug 7 22:25:42 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68k.c: Change all occurances of "mov." to "move%.l" so that - ASM_OUTPUT_OPCODE can choose the right syntax. - * m68k.md: Change "mov." to "move." in comments for consistency. + * c-typeck.c (process_init_element): Don't call clear_momentary + if value is 0. -Thu Mar 5 10:04:52 1992 Tom Wood (wood at dg-rtp.dg.com) +Sat Aug 7 15:53:06 1993 Doug Evans (dje@canuck.cygnus.com) - * stmt.c (warn_if_unused_value): Handle NON_LVALUE_EXPR. + * caller-save.c (MAX_MOVE_MAX, MAX_UNITS_PER_WORD): New macros. + (regno_save_mode, regno_save_mem): Use them. + * tm.texi (MAX_MOVE_MAX, MAX_UNITS_PER_WORD): Document them. - * limits.h (_LIMITS_H_): Correct misspellings. + * c-decl.c (init_decl_processing): Make long long available to + use for SIZE_TYPE and PTRDIFF_TYPE. - * Makefile.in ("if" and "["): Romp, 4.3 BSD, and Ultirx systems - fail when the condition is false. Change troublesome instances to - either use "case" or use '-' as a prefix to the compilation rule. +Sat Aug 7 14:47:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Mar 5 09:08:11 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/ns32k/ns32k.md (strict_low_part add/subtract recognizers): + Use %2, not %1, in template. - * rs6000.md (lshrdi3): Add earlyclobber to first alternative. +Sat Aug 7 07:40:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * explow.c (stabilize): Copy RTX_UNCHANGING_P and MEM_VOLATILE_P. + * reload.c (find_reloads): Don't combine two reloads if their + reload_reg_rtx values differ. -Thu Mar 5 06:05:31 1992 Michael Tiemann (tiemann@cygnus.com) + * alpha.c (add_long_const): New function. + (output_{pro,epi}log): Use it. + If register save area is more than 32768 from SP, compute its + address into a register. - * cp-parse.y (.pushlevel): Stack and unstack STMT_DECL_MSG. + * expmed.c (expand_divmod): Clean up code and documentation, + especially in areas related to when copies are made. - * cp-parse.y (unary_expr): Add EXTENSION support. - ({maybe_label,label}_decls, label_decl): Define these rules as from - c-parse.y. - * cp-decl.c ({lookup,shadow,define}_label): Update from c-decl.c. - * gplus.gperf: Add EXTENSION and LABEL. - * cp-hash.h: Remade using gperf. + * reload.c (push_reload, find_reloads): Treat (subreg (pseudo)) + and (subreg (mem)) the same. + If we have (subreg:M1 (mem:M2 ...) ...), never do anything + special if M1 and M2 are the same size. -Wed Mar 4 21:38:41 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) + * tree.c (print_obstack_name): New function; derived from + original debug_obstack. + (debug_obstack): Call print_obstack_name. + * print-tree.c (print_node): Print obstack node is contained in. - * expr.c (move_by_pieces): Do not choose a mode which has a size - greater than MOVE_MAX. +Sat Aug 7 04:47:43 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Mar 4 23:24:25 1992 Per Bothner (bothner@cygnus.com) + * c-decl.c (finish_decl): Allow file-scope static incomplete array. - * cp-class.c, cp-decl.c, cp-decl2.c, cp-init.c, cp-lex.c, - cp-method.c, cp-typeck.c: Casts from enum to int that - are necessary (not alas not quite sufficient) to get - cc1plus to compile using system cc on Sony NewsOS 3.2 - (presumably Portable C Compiler). +Fri Aug 6 13:03:27 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Wed Mar 4 22:05:39 1992 Michael Tiemann (tiemann@cygnus.com) + * expr.c (expand_expr, case PLUS_EXPR): Goto binop2 not + both_summands if we should not be returning a plus. - * cp-type2.c (build_functional_cast): Fix typo in code searching - down type lattice looking for constructor. +Fri Aug 6 16:35:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Mar 4 16:52:21 1992 Jim Wilson (wilson@cygnus.com) + * config/m68k/m68k.md (call and call_value pic recognizers) [HPUX_ASM]: + Output plain bsr, without `@PLTPC'. - * gstdarg.h: Include va-sparc.h on sparc systems. Delete now - obsolete `#ifndef __sparc__'. - * va-sparc.h (va_start): Provide alternate definition when - included via stdarg.h. Delete obsolete comment. - (va_arg): Add missing set of parentheses. +Fri Aug 6 16:12:08 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Mar 4 15:21:20 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) + * alpha.c (reg_or_6bit_operand): New function. + * alpha.h (PREDICATE_CODES): Add reg_or_6bit_operand to list. + * alpha.md (shifts): Use reg_or_6bit_operand for shift counts. - * fixincludes: Make egrep pattern more general. Check for - additional special case problems in Ultrix, News-OS, and IRIX. +Fri Aug 6 15:57:58 1993 Ian Lance Taylor (ian@cygnus.com) -Wed Mar 4 15:15:45 1992 James Van Artsdalen (james at bigtex.cactus.org) + * gcc.c (main): If standard_startfile_prefix is a relative path, + prepend standard_exec_prefix/MACHINE/VERSION and, if + GCC_EXEC_PREFIX is defined, GCC_EXEC_PREFIX/MACHINE/VERSION. - * i386.c (function_epilogue): Don't make a special case for - current_function_returns_struct: this is done via - current_function_pops_args. + * configure: If config.status did not change, don't update its + modification time. - * sun386.h (DATA_SECTION_ASSM_OP): Fix typo in undef. +Fri Aug 6 15:23:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Mar 4 14:21:37 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) + * c-typeck.c (output_init_element): Fix backward test in last change. + Use TYPE_MAIN_VARIANT. - * fixincludes, fixinc.svr4: Only change #else and #endif at the - beginnings of lines, aside from whitespace, so it doesn't change - them within comments. +Fri Aug 6 06:43:09 1993 Michael Meissner (meissner@osf.org) -Wed Mar 4 09:48:21 1992 Michael Tiemann (tiemann@mole.gnu.ai.mit.edu) + * g++.c (fancy_abort): Provide function in case user does + #define abort fancy_abort when building GCC. - * cp-method.c (build_decl_overload): Braino in handling of DELETE - (NEW was handled correctly). +Fri Aug 6 00:15:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Mar 4 09:14:57 1992 Jeffrey A. Law (law@wombat.gnu.ai.mit.edu) + * cccp.c (main): If -v, print header search dir list. - * Makefile.in (install-man): Install the g++ manual page. + * c-typeck.c (output_init_element): Call default_conversion here. + Set constructor_erroneous, etc., here. + (process_init_element): Not here. - * m68k.md (dbCC peepholes): Two new peepholes to recognize cases - where a compare/branch can be done (for free) as part of a dbCC - insn. This turns jCC;dbf into dbCC;jCC (the jCC is now outside the - inner part of the loop). +Thu Aug 5 20:55:47 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * m68k.c (valid_dbcc_comparison_p): New function which returns TRUE - if the given comparison is a valid comparison operator for the dbCC - instruction. - (output_dbcc_and_branch): New function to output a dbCC;jCC - instruction sequence (including possible counter adjustments in - SImode) + Cygnus<->FSF merge. -Wed Mar 4 04:32:11 1992 Michael Tiemann (tiemann@cygnus.com) + Thu Aug 5 17:07:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-dem.c (optable): Add entry for `operator='. + * cp-class.c (build_vtable, prepare_fresh_vtable): Turn on + WRITABLE_VTABLES stuff that I disabled July 30th. + * cp-pt.c: Include flags.h to get write_symbols. - * cp-decl.c (finish_function): Emit a jump to RETURN_LABEL if - CLEANUP_LABEL is non-zero. (Suggested by niklas@appli.se) + Thu Aug 5 15:50:25 1993 Mike Stump (mrs@cygnus.com) -Wed Mar 4 04:28:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-class.c (finish_struct): Make DWARF conditional code, really + DWARF conditional (write_symbols == DWARF_DEBUG). + * cp-decl.c (pushtag): Ditto. + * cp-decl2.c (finish_vtable_vardecl): Ditto. + * cp-pt.c (end_template_instantiation): Ditto. + * cp-search.c (dfs_debug_mark): Ditto. - * libgcc1.c (perform_lesf2): Condition tested was backwards. + Wed Aug 4 15:42:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Mar 4 03:11:48 1992 Ken Raeburn (Raeburn@Cygnus.COM) + * cp-typeck.c (build_object_ref): Pass the original basetype, not + the type value of it, into build_scoped_ref (completes change of + Jul 1). - * cp-pt.c (overload_template_name): Extra pushlevel isn't needed; - omit it. - (undo_template_name_overload): Don't pop the level that isn't pushed - any more. + Wed Aug 4 14:40:35 1993 Mike Stump (mrs@cygnus.com) - * cp-class.c (pushclass): Don't bother processing unnamed tags. - (popclass): Likewise. + * cp-class.c (related_vslot): Additional check to make sure vslots + are related. + * cp-class.c (modify_vtable_entries): Use DECL_CONTEXT, not + DECL_CLASS_CONTEXT when finding the vtable to put the virtual + function in, as otherwise we might not be able to find secondary + vtables. Ensures that the virtual function pointer will be put in + the correct vtable, instead of the wrong one. + * cp-class.c (modify_vtable_entry): Delete unused argument context. + * cp-class.c (modify_vtable_entries): Ditto. - * cp-init.c (build_vec_delete): If pointer is null, don't do - anything. + Tue Aug 3 08:24:50 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-parse.y (member_init): Accept base class names that are - template type names. + * cp-init.c (nc_nelts_field_id): New variable to cache the value of + the "nelts" identifier, to avoid unnecessary calls to get_identifier. + (init_init_processing): Use it. + (build_new): Likewise. + (build_vec_delete): Likewise. - * cp-decl.c (start_decl): Don't prepend decl of `this' to arg lists - of methods of uninstantiated types. + * cp-decl2.c (walk_vtables): Make sure the type of VARS isn't an + error_mark_node when we're running down the list. - * cp-pt.c (instantiate_template): If no text has been saved away, - don't try to parse it; an external reference will result. + * cp-decl.c (grokdeclarator): Give an error and return an + error_mark_node, instead of saying sorry, when we're dealing with a + structure that's not yet been defined. Make sure type isn't an + error_mark_node when looking for an anonymous type. - * cp-parse.y (yyprint): Declare this at head of file. + * cp-pt.c (end_template_instantiation): If we're supplying dwarf + debug info, set up the TYPE_STUB_DECL and output the rest of the + debug output for the decl. - * cp-pt.c (instantiate_class_template): If the template specified - hasn't been defined, don't reject the instantiation; make it a - normal undefined type. + * cp-search.c (pop_search_level): Change from a macro into a + function, so we can more easily debug it. - * cp-parse.y (template_def): Try to recover from errors more - gracefully. + * cp-search.c (dfs_debug_mark): Only mark the type name as ignored + if we aren't doing dwarf debugging. -Tue Mar 3 15:37:35 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-typeck.c (build_unary_op): Only allow the prefix operators to + be lvalues, not the postfix ones. - * protoize.c (munge_compile_params): Compute the maximum number of - params (`temp_parms' length) safely. + * cp-decl.c (duplicate_decls): Delete the code that saved and + restored the UID of a decl, it's no longer necessary. - * dwarfout.c (const_value_attribute): Punt quasi-constant values. - (location_or_const_value_attribute): Ditto. + * cp-call.c (compute_conversion_costs_ansi): Avoid generating + warnings when we call build_type_conversion. - * Makefile.in (install-common): Install the cross compilation - driver program even when $(tooldir)/bin doesn't exist. + Mon Aug 2 17:56:36 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Mar 3 14:39:55 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-decl.c (start_function): Complain about redeclaration of a + template function, being careful to only deal with pre-parsed + declarations that *are* in fact from templates. - * i386.h (enum reg_class): Undo Jan 17 change that deleted class BREG. - (REG_CLASS_NAMES,REG_CLASS_CONTENTS,REGNO_REG_CLASS): Likewise. - (REG_CLASS_FROM_LETTER): Likewise. - * i386.c (regclass_map): Likewise. + Fri Jul 30 18:03:10 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * svr4.h (LINK_SPEC): Don't do -z or -t here: it's already in - link_command_spec. But do handle -G. + * cp-class.c, cp-decl.c, cp-pt.c, cp-tree.h: Delete all of the old + code for DEBUG_CP_BINDING_LEVELS, and replace it with a new, cleaner, + and more usable format. - * i386.md (casesi): Rewrite pattern to reflect the way to emitted - code actually works. + Fri Jul 30 17:06:24 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Mar 3 09:59:15 1992 Jeffrey A. Law (law@super.super.org) + * cp-class.c (build_vtable, prepare_fresh_vtable): Temporarily + disable the change of June 20th making vtables readonly by default. - * m68k.md (dbra pattern in HImode): New pattern to match - decrement_and_branch insns when the loop counter is decremented in - HImode. + Fri Jul 30 14:47:09 1993 Mike Stump (mrs@cygnus.com) -Tue Mar 3 07:57:18 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-init.c (emit_base_init): Make sure we initialize the pointer to + vtables even when we are not in charge. Fixes virtual calls to derived + objects that have a static base type, so that they call derived + functions, not base functions. + * cp-search.c (build_vbase_vtables_init): Change comments to reflect + uses of last argument more accurately. Also rename last argument to + a better name. - * rs6000.md (doz patterns): Add missing `I' constraint. + Wed Jul 28 16:23:52 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * reorg.c (mark_target_live_regs): A CALL_INSN livens all global regs. + * cp-search.c (build_type_pathname): Deleted fn. + * cp-class.c (build_type_pathname): Moved to here and made static, + since prepare_fresh_vtable is the only fn that ever uses it. + * cp-tree.h (build_type_pathname): Deleted prototype. - * vax.h (EXTRA_CONSTRAINT): New macro to select non-mode-dependent - MEM operands. - * vax.md (jlbc/jlbs): Use jbc/jbs if mode-dependent memory. - * vax.c (reg_or_nxmem_operand): Function deleted. + * g++.c (error) [!HAVE_VFPRINTF]: Move before fatal to avoid an + implicit declaration. - * expr.c (do_store_flag): Swap comparison code when putting - constant arg second. + Wed Jul 28 13:49:58 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) - * m68k.md (addhi3): Convert, e.g., 65535 to -1 before seeing if - we can use subqw. - (addqi3): Similarly for QImode constants + * Makefile.in (g++-cross): Add an explicit $(srcdir) for g++.c, pass + the quotes as part of GCC_NAME - * local-alloc (optimize_reg_copy_1): Renamed from optimize_reg_copy. - (optimize_reg_copy_2): New function. - (update_equiv_regs): Call optimize_reg_copy_[12]. + * g++.c: only define GCC_NAME if it's already undefined - * combine.c (make_compound_operation, case AND): Turn SUBREG case - back on now that bug in i386.md has been fixed. - (simplify_comparison, case ASHIFT): If shifting low-order bit to - sign bit and doing equality comparison, convert to AND with low-order - bit (inequality case was already handled). - Also remove redundant test of CONST_OP in an earlier case. + Tue Jul 27 10:48:30 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * sun2o4.h (LINK_SPEC): No longer need -Bstatic with -g. + * cp-decl.c (finish_decl): Don't error on uninitialized const + arrays. Use error, not error_with_decl, so we know what really + brought about the problems. - * m68k.c, m68k.h: Avoid %X% for most upper-case X since it means - something special to SCCS. + * g++.c: New file, written in C so we don't do so many exec's, as we + did with the shell script. + * g++, c++: Deleted. + * Makefile.in (STAGESTUFF): Added g++ and g++-cross. + (all.cross): Added g++-cross. + (all.build): Depend upon g++. + (g++, g++-cross): New rules. + (install-common): Depend upon g++. Changed installation of g++/c++ + to install the g++ program, and link c++ to it. Likewise for + g++-cross and c++-cross. - * rs6000.md (type): Add new type, mtlr. - (function_unit branch): Add delay from mtlr to br. - (movsi): When moving to lr, type is "mtlr". + Mon Jul 26 09:40:37 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * unroll.c (reg_dead_after_loop): Check for infinite loop by - counting JUMP_INSNs we follow. - Use GET_RTX_CLASS, reg_referenced_p, and single_set. + * cp-typeck.c (build_unary_op) [case ADDR_EXPR]: When taking the + address of an increment/decrement operation, act on the thing + being incremented, not the ..._EXPR itself. - * expr.c (expand_increment): Set op0_is_copy when we are referencing - the low-order part of some value in a register. + Fri Jul 23 08:33:32 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * combine.c (force_to_mode): New arg REG; pass in recursive call. - If X has the same value as REG, use REG. - (make_field_assignment): Handle case when DEST and part of source - aren't the same, but are equal; pass destination to force_to_mode. + * cp-call.c (build_method_call): Check DECL_STATIC_FUNCTION_P, not + TREE_STATIC, when validating a method call in a static call context. - * m68k.md (addhi3): Generate addqw, subqw, or addw for - STRICT_LOW_PART versions the same way we handle the normal case. - (addqi3): Similarly for addqb, subqb, and addb. +Thu Aug 5 19:18:00 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * genattrtab.c (write_test_expr, case MOD): Double `%' in printf call. - (write_eligible_delay): Internal attribute "*delay_type" is always - used literally; it has no suffix or prefix. + * tree.h (TYPE_OBSTACK): New macro. + (struct tree_type): Add new field obstack. + * tree.c (make_node, copy_node): Set TYPE_OBSTACK. + (build_type_variant, build_type_copy, build_pointer_type): Put + new node in same obstack as old node; use push/pop obstacks. + * stor-layout.c (layout_type): Put size-related nodes in same + obstack as type. - * m68k.md, vax.md (sob): Rewrite inequality versions so that they - have a PLUS inside the comparison; combine cannot remove the PLUS - due to overflow considerations. - -Tue Mar 3 07:56:30 1992 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) - - * vms.h (L__main): Remove #include - - * make-gcc.com: Call make-l2.com. - -Tue Mar 3 05:37:08 1992 Michael Tiemann (tiemann@cygnus.com) - - * stor-layout.c (layout_type): Handle OFFSET_TYPE. - * cp-tree.c (build_member_type): Deleted. - * cp-typeck.c, cp-decl.c, cp-init.c: All callers of - `build_member_type' now call `build_offset_type'. - * cp-typeck.c (convert_arguments): An argument that's an OFFSET_REF - must be resolved by `resolve_offset_ref'. The OFFSET_REF case in - expand_expr does not do the right thing for G++ yet. - - * cp-decl.c (grokdeclarator): Take CONSTP and VOLATILEP into account - when building METHOD_TYPEs. - (start_function): Ditto. - - * cp-method.c (build_decl_overload): Change interface to take DNAME - instead of NAME. Also, special-case handling of the default - operator new and operator delete for the std. signatures. - * cp-*.c: All callers changed. - - * cp-class.c (build_vtable_entry): Rewrite built-in limit check to - work on platforms where SIZETYPE is unsigned. - -Mon Mar 2 08:49:16 1992 Tom Wood (wood at dg-rtp.dg.com) - - * m88k.c (m88k_debugger_offset): Delete warning. - - * m88k.h (OVERRIDE_OPTIONS): Set `m88k_cpu' based on `target_flags'. - - * m88k.md (cmpsi insn): Delete alternative that complements the - compare string for a swapped compare (it's wrong and unnecessary). - (cpu attribute): Define. - - From Jyrki Kuoppala: - * pc532.h, pc532-mach.h, pc532-min.h, xm-ps532-min.h: New files. - * configure (ns32k-pc532-mach*, ns32k-pc532-minix*): New alternatives. - - * dbxout.c (dbxout_type): Don't invoke dbxout_type_methods if - there are none. - - * vax.c (print_operand_address): Allow REG+TERM. - - * c-typeck.c (process_init_constructor): Reuse space for error - message strings. - -Mon Mar 2 02:54:48 1992 James Van Artsdalen (james at bigtex.cactus.org) - - * seq386gas.h: New file, for Sequent using 386 & GAS. - - * xm-i386sco.h: New file. - - * optabs.c (ldexp): New function. Used if host ldexp() is broken. - - * configure (i386-sequent-bsd*): Use seq386gas.h if --gas. - (i386-*-sco*): The host file is now xm-i386sco.h. - - * i386.md (SImode and HImode logical compare): If we are only - testing one byte of a mem, use a byte test opcode. - (bit test patterns): Likewise when emitting test opcodes. - -Sun Mar 1 14:47:31 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - - * longlong.h (_IBMR2 udiv_qrnnd): Switch off due to overflow problems. - -Sun Mar 1 11:19:55 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (force_to_mode): New function. - (make_field_assignment): Rework code that handles fixed-position - fields to make it both much more general and much simpler. - - * m68k.md: Add missing insns for using byte operations with - STRICT_LOW_PART; add was missing commutative equivalent and - most operations other than add and subtract were missing. - - * varasm.c (assemble_start_function): Add missing arg to call to - dbxout_begin_function. - - * fold-const.c (const_binop): Make minor source change to work - around bug in IBM RT PC compiler. - -Sun Mar 1 05:01:34 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - - * cp-typeck.c (build_modify_expr): When wrapping NEWRHS in a - SAVE_EXPR, call `break_out_cleanups' first. - -Sat Feb 29 23:19:20 1992 Jim Wilson (wilson@cygnus.com) - - * reload.c (find_reloads): Reset preferred_class to NO_REGS after - substituting a reg_equiv_address for a pseudo reg. - - * unroll.c (precondition_loop_p): Fix misplaced paren when checking - for MODE_FLOAT rtx. - -Sat Feb 29 13:59:54 1992 Michael Tiemann (tiemann@cygnus.com) - - * cp-typeck.c (build_modify_expr): To complete 24 Feb change, - COND_EXPRs must evaluate LHS in conditional slot if LHS has side - effects. Otherwise the SAVE_EXPRs in lhs will only be evaluated - once, even though they are referenced on both branches of the - conditional. - -Sat Feb 29 13:32:35 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) - - * README.X11: Add warning to not use gas when compiling PIC code. - - * fixincludes: Allow TAB as well as SPC before symbols to change. - Don't change "sun" if it's part of a multiword name that contains - underscores. - Make intermediate dir, if needed, when doing special-case fixes. - Use previously fixed file, if it exists, as source for all special - fixes. Do less copying when making special fixes. - Ignore errors when chmod'ing a file that might not exist. - * fixinc.svr4: Preserve whitespace around "#" when fixing #else and - #endif. - Allow TAB as well as SPC before symbols to change. - Combine "sun" cases as in fixincludes. - -Sat Feb 29 11:10:55 1992 James Van Artsdalen (james at bigtex.cactus.org) - - * i386.md (movstrsi): Print opcode as "movsl" so that seq386.h can - change it into smovl. - -Sat Feb 29 09:15:51 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * function.c (expand_function_end): Allocate rtl that points to - trampoline permanently. - - * reload1.c (gen_input_reload): If one operand of a PLUS is a MEM, - move it into a reg and add the other (makes code agree with comments). - - * explow.c (eliminate_constant_term): Rework so it does not directly - add integer values; call simplify_binary_operation instead. - Second arg is now pointer to rtx, not int. - Assume constant is always second operand of PLUS. - (memory_address): Pass rtx pointer to eliminate_constant_term. - * halfpic.c (half_pic_address_p): Likewise. - * mips.c (simple_memory_operand, mips_address_cost): Likewise. - (mips_debugger_offset): Likewise. - * expr.c (expand_expr, case PLUS_EXPR): Likewise. - Don't add INTVALs; use simplify_binary_operation instead. - Remove obsolete OLD_INDEXING code. - Put a MULT in the first operand of the PLUS. - - * combine.c (combinable_i3pat): Don't combine if I3DEST is a hard - reg in a non-valid mode. + * reload.c (push_reload, find_reloads): Refine when we reload + inside a SUBREG by respecting BYTE_LOADS_*_EXTEND; see comments + in push_reload. -Sat Feb 29 09:14:19 1992 Eric Youngdale (youngdale@v6550c.nrl.navy.mil) +Thu Aug 5 14:17:59 1993 Michael Meissner (meissner@osf.org) - * vms.h (ASM_OUTPUT_COMMON): Use SIZE instead of ROUNDED bytes. - (DO_GLOBAL_CTORS_BODY): Do not call fflush(stdout). + * i386/osfrose.h (ASM_DECLARE_FUNCTION_SIZE): Enable setting the + size for elf functions. - * gcc.texi: Update GLOBAL[DEF,REF,VALUE] documentation. +Thu Aug 5 01:44:37 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * make-l2.com: Remove call to test_gcc2. + * toplev.c (rest_of_compilation): If not optimizing, turn off + DECL_INLINE for functions declared as inline. Avoid turning on + DECL_INLINE when -finline-functions is used without -O. -Sat Feb 29 02:52:59 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Aug 5 00:06:45 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (main): Rename envvars to CPLUS_INCLUDE_PATH and - OBJCPLUS_INCLUDE_PATH. + * collect2.c (handler): Check whether c_file and o_file are 0. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Use `move', not `mov'. +Wed Aug 4 18:06:26 1993 Samuel A. Figueroa (figueroa@cs.nyu.edu) -Fri Feb 28 19:39:09 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) + * i386/gas.h (ASM_FILE_START): Write out two backslashes for each + backslash in the filename. - * fixincludes: Don't change symbols that already start with `_' - into `__symbol__'. Merge all of the sun* substitutions so they - don't fight each other. - Comment out junk after #elses and #endifs, to prevent warnings - when -pedantic is given. +Wed Aug 4 18:00:43 1993 Holger Teutsch (holger@hotbso.rhein-main.de) -Fri Feb 28 13:42:05 1992 Jim Wilson (wilson@cygnus.com) + * clipper.md (movdf+2): Allow `f' register as source operand in + first alternative. - * sched.c (schedule_insns): Don't update value of reg_live_length - when it is negative, because negative values are special. Earlier - fix Dec 17 disabled the fprintf call, but not the assignment. +Wed Aug 4 07:35:03 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * unroll.c (copy_loop_body): After incrementing the base reg for a - split DEST_ADDR giv, must subtract the const_adjust from the base - reg to get its true current value. + * reload1.c (eliminate_regs_in_insn): Always do elimination in + REG_NOTES if we changed anything in the insn. - * loop.c (maybe_eliminate_biv_1): When handling COMPARE, verify - that mult_val is positive, which makes the code match the comment, - and surrounding code. + * genattrtab.c: Include gvarargs.h after hconfig.h, like elsewhere. - * sparc.c (legitimize_pic_address): Always test reload_completed - in addition to reload_in_progress. +Wed Aug 4 01:32:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sched.c (schedule_block): Don't reorder any USE insns at the end - of a function. Exclude them all from scheduling. + * c-typeck.c (output_init_element): Call digest_init before + calling output_constant. Always pass 0, 0 for last 2 args + to digest_init. - * c-typeck.c (build_array_ref): Check for when `ar' is an - error_mark_node and don't emit a second error message for that node. + * expr.c (do_tablejump) [PIC_CASE_VECTOR_ADDRESS]: If pic, + copy INDEX to a register early, to avoid invalid address later. - * Makefile.in: Correct misc typos in comments or spacing. - (mostlyclean): Update names of files to delete. +Tue Aug 3 23:56:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (install-man): Also install cccp man page. - (uninstall): Also delete cccp man page. Don't delete protoize and - unprotoize man pages twice. + * gcc.c (process_command): Don't check whether file `-' exists. - * Makefile.in (libgcc2.a): Delete unnecessary -fstrength-reduce -O - flags on gcc command lines, superseded by LIBGCC2_CFLAGS. +Tue Aug 3 18:52:13 1993 John Hassey (hassey@dg-rtp.dg.com) - * Makefile.in (config.status): Verify that file does not exist - before printing an error and failing. Prevents problem with Sun's - KEEP_STATE feature. + * configure (m88k-dg-dgux*): Use fixinc.dgux. + * x-dgux (INSTALL_HEADERS): Definition deleted. + * fixinc.dgux: New file. -Fri Feb 28 05:15:58 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Aug 3 17:34:53 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * stmt.c (expand_computed_goto): Call emit_queue. + * calls.c (store_one_arg): Don't pass ARG->STACK as TARGET if it + is a different mode than the expression (i.e., a promoted mode). - * function.c (assign_parms): Don't generate convert whose operand - is register that is not valid in its mode. + * combine.c (force_to_mode): Now pass actual AND mask instead + of number of bits; generalize appropriately. + Move most cases from simplify_and_const_int in. + (simplify_and_const_int): Remove most code from here; call + force_to_mode instead. + (subst, make_extraction, make_compound_operation): Change calls + to force_to_mode. + (make_field_assignment): Likewise. + (simplify_comparison): Add call to force_to_mode when + doing a sign bit comparison. + * optabs.c (code_to_optab): New variable. + (init_optab): Initialize it. + * expr.h: Declare code_to_optab. - * reload.c (find_reloads_toplev): Don't do anything with paradoxical - SUBREGs if BYTE_LOADS_ZERO_EXTEND. +Tue Aug 3 15:40:16 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Feb 27 09:59:09 1992 Jeffrey A Law (law at b115.super.org) + * gstddef.h: Test and define __INT_WCHAR_T_H. - * toplev.c (main): Enable caller-saves for all machines at - optimization levels of -O2 or higher. - * mips.h (OPTIMIZATION_OPTIONS): toplev.c will turn on - caller-saves at -O2 now. Do not do it here. - * sparc.h (OPTIMIZATION_OPTIONS): Likewise +Mon Aug 2 22:42:10 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Feb 27 06:47:31 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * configure (i[34]86-sequent-sysv*): New alternative. + * config/i386/seq-sysv3.h: New file. - * cp-call.c: Move some extern declarations to file level. + * combine.c (struct undo): Rename `rtx' fields to `r'. + (undo_all, SUBST, gen_rtx_combine): Corresponding changes. - * emit-rtl.c (init_emit_once): Cast VOIDmode to int in array index. +Mon Aug 2 18:53:23 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * reorg.c (mark_target_live_regs): Don't make recursive call if - function being compiled has infinite loop. + * combine.c (subst): Move simple operations inside IF_THEN_ELSE + if the IF_THEN_ELSE is in the second operand as well as the first. + (subst, case NEG): Use plus_constant to make a PLUS. + (subst, case MINUS): Simplify (minus 1 (comparison foo bar)). + (subst, case EQ): Add a number of missing cases where + comparisons may be replaced with arithmetic or logical ops. + (subst, case IF_THEN_ELSE): Handle (if_then_else COND (OP Z C1) Z) + in a more general manner. + (simplify_and_const_int): Make AND with gen_binary in case we + can simplify it. - * cse.c (fold_rtx, case 'o'): New case to support folding LO_SUM. +Mon Aug 2 14:45:43 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - * global-alloc.c (global_alloc): When calling reload, pass the - result of get_insns instead of basic_block_head[0]. + * genattrtab.c (substitute_address): In prototype, don't specify + the arg types of the arg functions. - * c-typeck.c (process_init_constructor): Don't check array index - against limits if array bounds weren't specified. + * config/m68k/x-dpx2 (CLIB): Fix typo. - * gcc.c (link_command_spec): Put back -s. +Mon Aug 2 06:36:53 1993 John F Carr (jfc@Athena.mit.edu) - * gcc.c (find_a_file): Add missing paren in init of file_suffix. + * local-alloc.c (block_alloc): Don't attempt to allocate a + SCRATCH if it will not fit in scratch_list. - * i386sun.h (LIB_SPEC): Insert missing blank. +Mon Aug 2 00:02:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sun386.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Add #undef. + * calls.c (expand_call): Check properly for volatile function. - * sparc.h (LINK_SPEC): Correct comment. +Sun Aug 1 04:18:23 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sun3.h, i386sun.h (LINK_SPEC): Don't force -Bstatic if -g. + * c-common.c (decl_attributes): Support attributes `volatile' + with alias `noreturn', and `const'. + * c-parse.in (attrib): Accept those attributes. - * mips-news.h (ASM_SPEC): Add missing "}". + * c-typeck.c (build_binary_op): Warn about ordered comparison + between pointers to complete and incomplete types. - * Makefile.in (install-native): Don't include install-proto. - (.y.c): Suppress default rule for using Yacc. + * c-parse.in (stmt): In an expr stmt, call default_conversion + for arrays and for functions. - * combine.c (apply_distributive_law, case SUBREG): Check that word - numbers are the same. - Don't change a single-word operation into a multi-word operation. - Put all checks on SUBREGs in one place. - (gen_lowpart_for_combine): Use correct word number when making - explicit SUBREG. + * c-decl.c (finish_struct): No pedwarn for field with enum type + if size matches int. + (grokdeclarator): No error for void type for extern or global var. - * README.SCO: Obsolete file deleted. + * c-typeck.c (digest_init): No error for a STRING_CST that already + went through digest_init. + (parser_build_binary_op): Generate a NON_LVALUE_EXPR, not NOP_EXPR, + around a constant value. -Wed Feb 26 21:23:02 1992 Jim Wilson (wilson@cygnus.com) + * config/m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL) + (ASM_GENERATE_INTERNAL_LABEL): Definitions deleted. - * sparc.md (DImode sethi): Correctly handle CONST_DOUBLE, was - wrong endian. - (DImode lo_sum): Don't output CONST_DOUBLES as 64 bit constants, - just output the low 32 bits. + * expr.c (do_tablejump): Use PIC_CASE_VECTOR_ADDRESS if defined. + * config/m68k/m68k.h (PIC_CASE_VECTOR_ADDRESS): Defined. + (GO_IF_LEGITIMATE_ADDRESS): If pic, accept LABEL+INDEX. - * unroll.c (find_splittable_givs): For combined address givs, save - the increment amount in add_val. - (copy_loop_body): For combined address givs, increment by the - amount calculated by find_splittable_givs, not by the amount that - the giv it was combined with gets incremented by. + * c-decl.c (grokdeclarator): Warn here for volatile fn returning + non-void type. + (start_function): Not here. - * expr.c (clear_pending_stack_adjust): Check flag_no_inline, not - optimize, to determine whether functions declared inline will be - inlined. + * c-decl.c (grokdeclarator): Don't pass on const and volatile + fron function value type to function type. - * dbxout.c: Delete all #ifndef DBX_DEBUGGING_INFO stubs. None of - them are needed. +Sat Jul 31 01:48:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp800.c, hp800.h: Fix typos in comments. + * c-typeck.c (digest_init): Finish getting rid of tail. + Also get rid of old_tail_contents. Don't set free_tree_list. + (free_tree_list): Var deleted. -Wed Feb 26 02:39:52 1992 Michael Tiemann (tiemann at rtl.cygnus.com) + * c-typeck.c (process_init_element): Treat string constants specially + only for arrays of integers. - * cp-call.c (build_method_call): If conversion of INSTANCE_PTR - yields error_mark_node, return error_mark_node immediately. +Fri Jul 30 06:49:58 1993 Torbjorn Granlund (tege@sics.se) -Tue Feb 25 23:40:01 1992 Mike Stump (mrs at cygnus.com) - - * tree.c (array_type_nelts): Fix documentation, really nelts-1 - * cp-tree.c cp-tree.h cp-init.c (expand_vec_init): Fixed - multi-dimensional array inits. - -Mon Feb 24 00:03:23 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-tree.c (build_cplus_new): Set TREE_SIDE_EFFECTS bit on - NEW_EXPR. - - * cp-typeck.c (build_modify_expr): Handle WITH_CLEANUP_EXPRs - specially when they appear in expressions (not initializations). - Also handle COND_EXPRs on the right-hand-side specially (in case one - of the COND_EXPR's branches is a WITH_CLEANUP_EXPR). - -Sun Feb 23 15:11:27 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl2.c (finish_anon_union): Make RTL for ANON_UNION_DECL based - on MAIN_DECL. - - * cp-decl.c (lookup_tag): Deal with the fact that `clear_anon_tags' - may have been run. - - * cp-decl.c (cplus_expand_expr_stmt): Give line number for usage - whcih incurs warning message. - -Sat Feb 22 20:49:45 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (init_decl_processing,auto_function): New approach to - defining the default functions `operator new' and `operator delete'. - * cp-init.c (init_init_processing): Rest of changes here. - * libgcc2.c (_builtin_{new,delete,New}): Gone. - * libgcc2.c (_new_handler): New name for section that defines the - default new handler. - -Sat Feb 22 02:09:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Version 2.0 released. - - * gcc.c (do_spec_1): Handle SPACE_AFTER_L_OPTION. - * hp320.h (SPACE_AFTER_L_OPTION): Defined. - Note: for 2.1, try making a space there on all systems. - - * i386mach.h (perform_*): New macros, copied from i386rose.h. - - * Makefile.in (distclean): New target. - (realclean): Avoid duplication with self or with distclean. - (gcc.xtar.Z): Depend on gcc.xtar. - (gcc.xtar): Fixes in copying files. - - * expr.c (do_store_flag): Don't correct CODE before where it is set. - - * cp-parse.y (stmt): Pass pushcase_range all the args it wants. - -Fri Feb 21 18:14:52 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (distribute_notes): Correctly handle the case of a - REG_DEAD note for a multi-word hard register when not all of - the words are used. - -Fri Feb 21 16:47:32 1992 Michael Meissner (meissner@osf.org) - - * mips.h (MIPS_VERSION): Change Meissner version # to 12. - (half_pic support): Move the halfpic support to halfpic.h which is - included in the decrose case, and nop the support in other MIPS - platforms. - (OPTIMIZATION_OPTIONS): Move setting caller-saves to -O2. - (OBJECT_FORMAT_COFF, EXTENDED_COFF): Define unless OSF/rose. - (INITIAL_FRAME_POINTER_OFFSET): Always recalculate the frame size, - don't rely on cached values. - - * mips.c (half_pic support): Move the halfpic support to halfpic.c, - which is only compiled for OSF/rose. - (expand_block_move): Use copy_addr_to_reg instead of copy_to_reg in - case either the source or destination is an integer constant - converted to an appropriate pointer type. - (mips_debugger_offset): Use a local variable to hold function - result. - - * decrose.h (toplevel): Include halfpic.h for halfpic support. - (PTRDIFF_TYPE): Change to 'int' to match current include files. - (WCHAR_TYPE): Change to 'unsigned int' to match include files. - (INIT_SECTION_ASM_OP): Delete, since the OSF/rose assembler doesn't - support a true initialization section. - - * encrose.h (PTRDIFF_TYPE): Change to 'int' to match current include - files. - (WCHAR_TYPE): Change to 'unsigned int' to match include files. - - * t-decrose (EXTRA_OBJS): Define as halfpic.o to provide halfpic - support. - (CONFIG2_H): Treat halfpic.h as another config file. - (halfpic.o): Add dependencies. - - * halfpic.h (new file): Common include file for systems needing the - OSF/rose half-pic shared library support. - - * halfpic.c (new file): Common support file for systems needing the - OSF/rose half-pic shared library support. Currently these are stub - functions. - -Fri Feb 21 16:07:02 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-parse.y (get_current_declspecs): New function - (needed for naming sections). - -Fri Feb 21 01:34:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * dwarfout.c (location_or_const_value_attribute): Use DECL_RTL again. - Seems to be safer for the moment. - * function.c (instantiate_decls): Don't instantiate DECL_INCOMING_RTL. - - * dwarfout.c (output_mem_loc_descriptor): Handle CONST like SYMBOL_REF. - - * collect2.c (errno): Declare if not macro. - - * dbxout.c [MIPS]: Include gstab.h, not stab.h. + * expmed.c (mult_is_very_cheap): Delete. + (mult_cost): Delete. + (init_expmed): Delete computation of mult_cost and mult_is_very_cheap. + (expand_mult): Compute mult_cost here for every constant multiplier. + (synth_mult): Return found algorithms through a struct pointer. + +Fri Jul 30 06:45:35 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * dbxout.c (dbxout_symbol): No longer flush leading _ for C++ syms. + * fold-const.c (fold, case NOP_EXPR): Delete a pair of conversions + back to the original type when intermediate type is at least as wide. - * cp-parse.y (.hush_warning): Set $$. + * combine.c: Remove change of July 21. + (this_basic_block): New variable. + (combine_instructions): Set it. + (try_combine, distribute_links): Use it and basic_block_head + to see if we've gone to a new basic block instead of trying + to reproduce calculation done in flow. - * gstdarg.h: Handle _HIDDEN_VA_LIST as in gvarargs.h. + * stmt.c (expand_return): Don't use jumps for "return x == y" if + they are expensive. -Thu Feb 20 07:41:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Jul 30 02:03:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * vax.c (reg_or_nxmem_operand): New function. - (split_quadword_operands): Add missing return type (void). - * vax.md (jlbc/jbc/jlbs/jbs): Handle QImode operands properly. + * config/i386/i386.md (ffssi2 and ffshi2 recognizers): + Generate unique labels by hand. - * caller-save.c (set_reg_live): Use mode of SUBREG to see how many - hard regs are written. +Thu Jul 29 01:47:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * combine.c (simplify_shift_const, case IOR, AND, XOR): Perform - logic computation in RESULT_MODE, not mode of VAROP. + * c-typeck.c (push_init_level): For braces around scalar, just warn. + (process_init_element): Special handling for {"foo"}. + (struct constructor_stack): New field `replacement_value'. + (push_init_level, really_start_incremental_init): Clear new field. + (pop_init_level): Return the replacement_value if any. + At top level in initializer, output that value, + and set the array size from it. -Wed Feb 19 18:32:05 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-typeck.c (digest_init): Delete arg TAIL. Fix all calls. - * hp320.h (PRINT_OPERAND): Support codes '$' and '&'. + * objc-act.c (build_shared_structure_initializer): + Call default_conversion for NAME. + (add_objc_string): Make an ADDR_EXPR to return. + (init_objc_symtab): Make ADDR_EXPR for UOBJC_SELECTOR_TABLE_decl. - * reload1.c (reload): Add cast of enum in index. + * objc-act.c: Build all CONSTRUCTORs with types. + (build_constructor): New function. All CONSTRUCTOR builds changed. + (init_def_list, init_objc_symtab): New arg TYPE. + (init_module_descriptor): Likewise. + (init_objc_symtab): Pass TYPE arg to init_def_list. + (generate_objc_symtab_decl): Pass TYPE arg to init_objc_symtab. + (build_module_descriptor): Pass TYPE arg to init_module_descriptor. + (build_descriptor_table_initializer): New arg TYPE. + (generate_method_descriptors): Pass TYPE arg to + build_descriptor_table_initializer. + (generate_protocols): Pass TYPE arg to build_protocol_initializer. + (uild_protocol_initializer): New arg TYPE. + (build_ivar_list_initializer): New arg TYPE. + (generate_ivar_lists): Pass TYPE arg to build_ivar_list_initializer. + (build_dispatch_table_initializer): New arg TYPE. + (generate_dispatch_tables): Pass TYPE arg to + build_dispatch_table_initializer. + (build_category_initializer): New arg TYPE. + (build_shared_structure_initializer): New arg TYPE. + (generate_category): Pass TYPE arg to build_category_initializer. + (generate_shared_structures): Pass TYPE arg to + build_shared_structure_initializer. - * vms.h (CPP_PREDEFINES): Define __GNUC__ as 2. + * config/i386/x-ncr3000 (CC, OLDCC): Deleted. + * config/i386/xm-sysv4.h [__HIGHC__]: Include alloca.h. -Wed Feb 19 21:43:36 1992 Ron Guilmette (rfg at ncd.com) + * convert.c (convert_to_integer): Don't pass truncate into ABS_EXPR. - * dwarfout.c (output_mem_loc_descriptor): Deleted useless blank line. - (output_mem_loc_descriptor) Added code to handle CONSTs in DECL_RTL - expressions. - (dwarfout_finish): Added code to put a null string at the end of - the terminating .debug_macinfo section. + * configure: Ignore -enable... and --enable... options. -Tue Feb 18 18:34:13 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Wed Jul 28 20:15:05 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (main): Fix typo in comment or spacing. - * dbxout.c (dbxout_block): Likewise. - * expr.c (convert_move): Likewise. - * reload1.c (emit_reload_insn): Likewise. - * rtl.h (REG_NOTES): Likewise. - * sun4o3.h: Likewise. - * ultrix.h (CPP_PREDEFINES): Likewise. - * toplev.c (flag_no_common): Likewise. - * stmt.c (layout_type): Likewise. - * gcc.c (is_linker_dir, lookup_compiler): Likewise. + * Makefile.in (compare): Add ./ in tail command. - * sched.c (schedule_block): Comment code handling USE insns as - obsolete. +Wed Jul 28 15:36:11 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Feb 18 14:44:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * integrate.c (copy_rtx_and_substitute, case LABEL_REF): If + we turn off LABEL_REF_NONLOCAL_P, increment function_call_count. - * c++: Run gcc in same dir as c++ was in, if exists there. - Use `exec' to run it. - New var `havefiles'; special message if no input files specified. - Pass through any unrecognized options. + * integrate.c (copy_for_inline, case LABEL_REF): Properly copy + LABEL_REF with LABEL_REF_NONLOCAL_P set. + Copy LABEL_OUTSIDE_LOOP_P flag. + (copy_rtx_and_substitute, case LABEL_REF): Likewise. + (copy_rtx_and_substitute, case CONST): Make recursive call for + a LABEL_REF in the constant pool. - * g++: Now a link to c++. + * c-iterate.c (iterator_loop_{pro,epi}logue): Set TREE_SIDE_EFFECTS + on the MODIFY_EXPRs we make. + Pass const0_rtx as TARGET to expand_expr. + * cp-cvt.c (build_up_reference): Set TREE_SIDE_EFFECTS on MODIFY_EXPR. + * stmt.c (expand_return): Likewise. -Tue Feb 18 04:54:52 1992 david d [zoo] zuhn (zoo at lynx.spa.umn.edu) +Wed Jul 28 12:17:39 1993 Michael Meissner (meissner@osf.org) - * protoize.c (main): added support for -p flag, to specify which - gcc is the one to call for -fgen-aux-info support. + * i386/osfrose.h (SUBTARGET_OVERRIDE_OPTIONS): Use this instead of + OVERRIDE_OPTIONS. -Tue Feb 18 07:29:23 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Jul 28 13:45:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * combine.c (try_combine): Don't clobber OTHER_INSN's PATTERN if - we aren't able to change the insn. + * expr.c (expand_expr, case ADDR_EXPR): Treat CONCAT like REG. - * romp.md (bit_insv): Add missing CLOBBER when making pattern to - match mftb; likewise for the DEFINE_INSN. + * c-decl.c (start_function): Warn if volatile fn returns non-void. -Tue Feb 18 01:03:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Jul 28 13:22:15 1993 Jim Wilson (wilson@cygnus.com) - * rs6000.h (bss_section): Set `in_section' correctly. + * c-parse.in (simple_if, if_prefix, stmt): Undo Jul 7 change. + (if_prefix): Store stmt_count in $$ not $1. + (stmt): Add comment explaining why empty-if warning is here. - * expmed.c (synth_mult): Count second shift for alg_compound. - Count extra shift for lea case. - * m68k.h (RTX_COSTS): Reduce cost of multiply. + * sparc.c (shift_operand): New function. + * sparc.md (ashlsi3, ashrsi3, lshrsi3): Use shift_operand. - * function.c (instantiate_decls): Instantiate DECL_INCOMING_RTL. + * loop.c (strength_reduce): Don't ignore a giv that depends on a + reversed biv. -Mon Feb 17 19:17:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips/x-sysv (ALLOCA): Define. + * mips-5.h (STARTFILE_SPEC): Define. + * x-iris3: New file. + * configure (mips-sgi-*): Use x-iris3 instead of x-iris. + * Makefile.in (libgcc.a): Do `chmod +w *' between two ar commands. - * a29k.md (divmodsi4, udivmodsi4): Don't use reg 180 explicitly. - Instead use 'q' constraint letter. + * i960.h (INITIAL_FRAME_POINTER_OFFSET): Negate, and subtract 64 + bytes. -Mon Feb 17 16:15:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * sched.c (schedule_block): Do not emit line number notes before + other notes. - * global-alloc.c (global_alloc): Always call `reload'. + * varasm.c (assemble_variable): flag_no_common applies only if + external linkage. -Mon Feb 17 10:38:38 1992 Jim Wilson (wilson at sphagnum.cygnus.com) + * calls.c (expand_call): For unaligned arguments on + BYTES_BIG_ENDIAN machines, correct bitfield offset calculations. + * expr.c (move_block_from_reg): New argument SIZE. If SIZE less + than word and BYTES_BIG_ENDIAN, shift block left to align it + before storing it to memory. + * expr.h (move_block_from_reg): Add new argument to prototype. + * function.c (assign_parms): Pass extra argument SIZE to + move_block_from_reg calls. + (locate_and_pad_parm): For !ARGS_GROW_DOWNWARD case, move downward + padding pad_below call after round_up call. + * mips.c (function_arg): Shift all structures less than 4 bytes, + not just those which are QImode or HImode. + * a29k.h, alpha.h, i960.c, m88k.c, pa.c, romp.h, rs6000.h: + Add new parameter to move_block_from_reg calls. - * a29k.md (movdi define_split): Use DImode in operand_subword - calls, not DFmode. +Wed Jul 28 12:40:06 1993 Doug Evans (dje@canuck.cygnus.com) -Mon Feb 17 08:20:33 1992 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) + * expmed.c (store_split_bitfield): Fix handling of bitfields that + cross word boundaries, can only handle a word at a time. + (extract_split_bitfield): Likewise. - * varasm.c (assemble_external): Check that DECL is some sort of - _DECL before referencing its DECL_RTL. +Wed Jul 28 06:44:50 1993 John Hassey (hassey@dg-rtp.dg.com) -Sun Feb 16 13:05:36 1992 Michael Tiemann (tiemann at cygnus.com) + * configure: Use m88k/x-sysv3 for m88k-*-sysv3. + * m88k/x-sysv3: New file, use gnu alloca. - * cp-call.c (build_method_call): Add call to `assemble_external' in - case this is the first use of FUNCTION. - * cp-class.c (build_vfn_ref): Ditto for VTBL. - * cp-decl2.c (write_vtable_entries): Ditto for FN. - * cp-init.c (build_offset_ref): Ditto for T. - * cp-typeck.c (build_function_call_real): Ditto for FUNCTION. - * cp-method.c (hack_identifier): Ditto for VALUE. Also remove - action that made call to `assemble_external' when !TREE_USED (VALUE). +Tue Jul 27 13:53:06 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * cp-lex.c (do_identifier): Remove call to `assemble_external' when - implicitly declaring ID. + * fixproto: Pass '-' to tr as the 1-character range '---'. + * cross-make: Define STMP_FIXPROTO to empty for cross. + * patch-header.c (read_scan_file): Minor re-write to avoid + obstack_copy0, since that uses the non-portable bcopy(). + * Makefile.in (patch-header): Use $(HOST_OBSTACK). + * gen-protos.c (main): Disable obnoxious warning message. - * cp-parse.y (primary): Simplify the rules for calling - `assemble_external'. +Tue Jul 27 16:42:44 1993 John F Carr (jfc@Athena.mit.edu) - * cp-decl.c (finish_function): For destructors, don't call - expand_expr_stmt if EXPRSTMT is VOID_ZERO_NODE. + * fold-const.c (optimize_bit_field_compare): Preserve volatility + of bitfield. - * cp-typeck.c (default_conversion): Parallel Jan 21 change in - c-typeck.c. +Tue Jul 27 01:33:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Dec 16 23:31:54 1992 Ron Guilmette (rfg at ncd.com) + * c-typeck.c (convert_for_assignment): Mismatch in signedness + of pointer targets should not inhibit warnings for const mismatch. - * dwarfout.c (fundamental_type_code): Deleted gunk for handling - OFFSET_TYPEs. (They are *not* fundamental types). - (fundamental_type_code): Fixed typo. - (location_attribute, const_value_attribute): Changed to take one - rtx parameter rather than one tree parameter. - (location_or_const_value_attribute): Changed to use DECL_INCOMING_RTL - rather than DECL_RTL for formal parameters. Also changed calls to - location_attribute and const_value_attribute to provide the rtl - parameter. - (fund_type_attribute): Changed to accept an actual fundamental type - code as a parameter directly. Also changed all calls correspondingly. - (type_attribute): Separated tests for ERROR_MARK and for VOID_TYPE - and added comments. - (output_unspecified_parameters_die): Changed to take one tree param - and to generate *both* an AT_name and an AT_type attribute when the - input parameter represents of function definition. Also adjusted - all calls correspondingly. + * function.c (assign_parms): Don't copy too much when extending + parm_reg_stack_loc. -Sun Feb 16 00:54:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config/m88k/m88k.h (ASM_DECLARE_OBJECT_NAME): Don't make a .size + if the size is not known. Use DECL, not decl. + * config/svr4.h, config/i386/osfrose.h: Likewise. - * fixincludes: Add #ifndef around size_t declaration in types.h. + * c-typeck.c (set_init_index): Add pedantic warning. + (set_init_label): Likewise. - * varasm.c (assemble_external): Do nothing if arg isn't a decl. +Tue Jul 27 14:22:48 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - * Makefile.in (cp-parse.c): Update "expect" msg. + * gstddef.h (_WCHAR_T_H): Test this and define this. - * next.h (CPP_SPEC): Rename -bsd to -strict-bsd. + * configure (m68k-bull-sysv): Test for --stabs; + generate either native coff or dbx-in-coff debugging information. - * Makefile.in (mostlyclean): Add ld, mips-tfile, mips-tdump. + * config/m68k/dpx2.h (CPP_PREDEFINES): added -D_POSIX_SOURCE + -D_XOPEN_SOURCE -D_BULL_SOURCE to the list. + (CPP_SPEC): removed ansi definition. + * config/m68k/dpx2g.h (DBX_DEBUGGING_INFO): Remove this to let gcc + deals with gas and coff. + * config/m68k/dpx2cdbx.h: New file for gas and dbx-in-coff. + * config/x-dpx2 (CLIB): removed -lc_s and added -lmalloc. + (X_CFLAGS): removed -D_SYSV and added -D_POSIX_SOURCE -D_XOPEN_SOURCE + -D_BULL_SOURCE to deal with the posix stuff. - * protoize.c (directory_specified_p): Don't match files in subdirs. +Mon Jul 26 17:42:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * xm-rs6k-m.h: Renamed from xm-rs6000-mach.h. - * configure (rs6000-*-mach*): Changed accordingly. + * c-typeck.c (digest_init): Add `static' to definition. - * collect2.c (handler): No error msg here. Just resend signal. - (write_c_file): Arg to write_list... is pointer. - (do_wait): Fix typo. - (scan_prog_file for non-OSF): Preserve all underscores. + * combine.c (simplify_shift_const): Inhibit hacks based on + num_sign_bit_copies if shift_mode differs from the mode of varop. - * Makefile.in (install-collect2): Install gcc in libsubdir. + * toplev.c (main): When -W sets warn_uninitialized, avoid later warning + if warn_uninitialized is not supported. -Sat Feb 15 15:26:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Jul 26 14:14:02 BST 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * varasm.c (decode_reg_name): Empty string is not a reg number. + * collect2.c (NAME__MAIN, SYMBOL__MAIN): Add default definitions. + (write_c_file, scan_prog_file [OBJECT_FORMAT_ROSE]): + Use macros instead of explicitly __main. - * fold-const.c (merge_component_references): NE tests against - mismatched constants forces 1, not 0, as value. + * function.c (expand_main_function): Likewise. - * i386gas.h (ASM_OUTPUT_OPCODE): Convert repz to repe. + * libgcc2.c (__main): Use macro SYMBOL__MAIN instead of invoking + directly. - * collect2.c: Get rid of PROTO macro; use non-prototype decls. - Don't include gstddef.h (had conflicts). Use gstdarg.h, not stdarg.h. - (xcalloc, xmalloc): Add casts. - (do_wait): Avoid macros WTERMSIG, WEXITSTATUS missing on some machines. +Mon Jul 26 16:03:33 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-typeck.c (default_conversion): Don't use initial value if BLKmode. + * fold-const.c (fold, case EQ_EXPR): Remove code that converts + mod to unsigned mod; it isn't correct for negative operands. - * objc-actions.c (finish_objc): Fix typos in last change. + * toplev.c (strip_off_ending): Allow .ad* for Ada. - * c-aux-info.c, dbxout.c, cccp.c (errno): Declare, if not a macro. +Mon Jul 26 14:06:04 1993 Bill Cox (bill@majipoor.cygnus.com) - * i386.md (QI bit test recognizer): Split into separate patterns - for memory and register args. Make a scratch reg for memory. + * c-decl.c (print_lang_decl, print_lang_type): Correct function + headers to match prototype, and calls. -Fri Feb 14 23:39:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Jul 25 17:01:34 1993 Per Bothner (bothner@kalessin.cygnus.com) - * tree.c (get_identifier): Improve -Wid-clash message. + * fixproto: New script to add prototypes and otherwise clean up + system include files (especially for C++ and also gcc -Wimplicit). + * scan-decl.c: New program used by fixproto to analyze header + files (it extracts declarations from cpp output). + * patch-header.c: New program used by fixproto to analyze and + patch header files. + * scan.c: New file. Routines used by scan-decls and + patch-header. + * scan.h: New file. Common declarations. + * gen-protos.c: New file. Massages a list of prototypes. + * Makefile.in: Add fixproto support. + * populate: Deleted. Superseded by fixproto. -Fri Feb 14 16:22:48 1992 Michael Collison (collison at osf.org) +Sun Jul 25 03:56:18 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386rose.h (CPP_SPEC): Define the macros LANGUAGE_OBJECTIVE_C and - LANGUAGE_C_PLUS_PLUS if we are compiling Objective C or C++. - (INIT_SECTION_ASM_OP): Define as .init. - (CC1PLUS_SPEC): Define it. - (LINK_LIBGCC_SPECIAL): Define this to work around linker bug. + * c-typeck.c (start_init): Fill in p->next. -Fri Feb 14 00:38:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config/i386/i386.md (movstrictqi): Change q<-g alternative to q<-m. - * Makefile.in (protoize.o, unprotoize.o): g++-include is under libdir. +Sat Jul 24 18:17:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (enquire.o): Make the command one long line. + * expr.c (emit_move_insn_1): For complex stack push, + don't use change_address. - * gcc.c (do_spec_1): Omit relative prefixes from -L'ing - only if RELATIVE_PREFIX_NOT_LINKDIR is defined. - * rs6000.h (RELATIVE_PREFIX_NOT_LINKDIR): Defined. +Sat Jul 24 15:05:50 1993 Per Bothner (bothner@kalessin.cygnus.com) - * varasm.c (assemble_external): Test TREE_EXTERNAL. + * fixincludes (unistd.h): Generalize AIX fix (for using + C++ keyword new) to unistd.h as well as stdio.h. + * fixincludes (sys/wait.h): Fix NeXT problem with + a 'wait(union wait*)' prototype that breaks Posix.1. + * fixincludes (math.h): For C++, patch AIX's use of + 'class' as function name. - * jump.c (follow_jumps): If can't find chain end, return orig label +Sat Jul 24 02:48:31 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mot3300.h (PRINT_OPERAND): Always print 16 hex digits for a double. + * function.c (put_reg_into_stack): New subroutine. + (put_var_into_stack): Use that; handle CONCAT. - * objc-actions.c (build_module_descriptor) [NEXT_OBJC_RUNTIME]: Ret 0. - (finish_objc): Value 0 from build_module_descriptor means no ctor. - When referencing a class_name symbol, don't output a .globl for it. - (finish_objc): Put artificial refs in text section. + * varasm.c (assemble_variable): For array whose size comes from + the initializer, determine proper alignment here. + (assemble_align): New function. - * cccp.c (pedwarn_with_file_and_line): Handle -w, -W. + * c-typeck.c: Handle gaps in record initializers. + (constructor_bit_index): New variable. + (constructor_stack): New field bit_index. + (really_start_incremental_init, push_init_level): Save and init it. + (pop_init_level): Restore it. + (output_init_element): Update constructor_bit_index. + Use it to output gaps. + (pop_init_level): Speed up by using constructor_bit_index. -Fri Feb 14 07:44:08 1992 James Van Artsdalen (james at bigtex.cactus.org) + * c-typeck.c (process_init_element): Accept STRING_CST for subarray. - * i386.c (notice_update_cc): sCOND opcodes don't change the flags. - Don't record test or compares involving stack-like regs, since - final can't omits tests or compares involving such regs correctly. + * loop.c (mark_loop_jump): Handle weird cases like jumping to + a symbol_ref. - * i386.c (seq,sne,beq,bne): These opcodes use the state of - cc_status from before the curren insn. +Fri Jul 23 15:55:14 1993 Doug Evans (dje@canuck.cygnus.com) - * reg-stack.c (stack_reg_mentioned_p): Don't make static. + * c-tree.h: Fix prototypes for print_lang_decl, print_lang_type. -Fri Feb 14 06:27:48 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Jul 23 15:06:05 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): Disable "if (...) {... x = C;} if (x) ..." - optimization; there doesn't seem to be a way to fix it. + * c-typeck.c (start_init): Second arg is now a tree. -Thu Feb 13 18:06:06 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Jul 23 08:26:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * seq386.h (ASM_OUTPUT_OPCODE): New macro. Change "movs" into - "smov" at the start of a string move mnemonic - Sequent as(1) - doesn't handle the former. + Cygnus<->FSF merge. + Thu Jul 22 09:54:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Feb 13 17:21:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (push_overloaded_decl): Fix typo in warning msg. - * c-decl.c (finish_struct): Use pedwarn for pedantic warning. - (grokdeclarator): Likewise. - * c-parse.y (component_decl_list2): Likewise. + Tue Jul 20 13:13:18 1993 Mike Stump (mrs@cygnus.com) -Thu Feb 13 22:11:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (build_vtable, prepare_fresh_vtable): Make the vtables + readonly by default. - * combine.c (make_extraction): Default modes to byte and register - size, as appopriate, when the bitfield insn doesn't exist. + Mon Jul 19 13:16:58 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * a29kunix.h (LINK_SPEC): Pass default option file to gld. - (LINK_LIBGCC_SPECIAL): Define to work around gld bug. + * cp-tree.h (NEW_CLASS_SCOPING): Turn this off for now. - * explow.c (copy_to_suggested_reg): Try getting mode from TARGET. + Mon Jul 19 11:04:51 1993 Jason Merrill (jason@rtl.cygnus.com) - * rs6000.h (ASM_FILE_END): New macro. - (EXTRA_SECTIONS): New section read_only_private_data. - (EXTRA_SECTION_FUNCTIONS): New function read_only_private_data_section. - (SELECT_RTX_SECTION): Always make non-toc data private, read-only. - (SELECT_SECTION): Put read-only data in appropriate sections. + * cp-class.c (build_vfn_ref): Rename `index' to `idx'. - * jump.c (jump_optimize): Place branch in correct place when - optimizing "if (...) {... x = C;} if (x) ...". - (redirect_jump): Ensure jump's UID is within range of jump chain. + Fri Jul 16 07:44:49 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * a29k.c (output_prologue): Correctly set LR1 when more than 64 - registers are needed. + * cp-class.c (finish_struct): Check both if the type has a default + constructor, and if it has a non-const copy constructor, so we'll know + not to generate a const copy constructor for the type we're working on. + * cp-lex.c (cons_up_default_function): Add other front-end debugging + info. + (default_copy_constructor_body): And take it out of here. -Wed Feb 12 22:22:46 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-expr.c (cplus_expand_expr): Add missing arguments to expand_expr. - * make-cccp.com: Define link as a local symbol to avoid - possible conflict with a user defined global symbol. + Thu Jul 15 16:54:33 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * make-cc1.com: Likewise. + * cp-lex.c (default_copy_constructor_body): Also check to copy + anonymous unions, since they don't show up as FIELD_DECLs. + (largest_union_member): New function. -Thu Feb 13 11:05:07 1992 Michael Meissner (meissner at osf.org) + Thu Jul 15 16:23:18 1993 Mike Stump (mrs@cygnus.com) - * mips.c (make_temp_file): Store created filename into a static - file-scope variable, not an auto. - (mips_asm_file_end): Use the appropriate filename in printing - errors. + * cp-expr.c (cplus_expand_expr): Use resolve_offset_ref to handle + OFFSET_REFs, as anything else would be wrong. + + Thu Jul 15 13:23:40 1993 Mike Stump (mrs@cygnus.com) -Thu Feb 13 01:15:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h (CLASSTYPE_INTERFACE_KNOWN, + SET_CLASSTYPE_INTERFACE_UNKNOWN_X, SET_CLASSTYPE_INTERFACE_UNKNOWN, + SET_CLASSTYPE_INTERFACE_KNOWN): New access methods. + * cp-class.c (import_export_vtable, duplicate_tag_error, + finish_struct): Use new access method. + * cp-decl.c: (grokfndecl, grokdeclarator, xref_tag): Ditto. + * cp-gc.c (build_t_desc): Ditto. + * cp-lex.c (set_vardecl_interface_info, make_lang_type): Ditto. + * cp-pt.c (end_template_instantiation, do_pending_expansions): + Ditto. + * cp-search.c (dfs_debug_mark): Ditto. - * cccp.c (skip_if_group): Skip comments after the #. + * cp-decl.c (grok_reference_init): Reword error message. - * cccp.c (macarg): Don't assume stringify will compress spaces. - (macroexpand): In stringify, compress space only outside tokens. + Wed Jul 14 09:17:18 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cexp.y (exp1): Use pedwarn for comma in #if. + * cp-cvt.c (convert_to_reference): Adjust change of May 30th to + accept more things (and still handle ARM p308 properly). Disable + the old way, but leave it to be properly fixed later. - * cp-decl.c (push_binding_level, pop_binding_level): - Change `inline' to `__inline'. + Tue Jul 13 22:43:38 1993 Mike Stump (mrs@cygnus.com) - * combine.c (make_compound_operation): Undo previous change. + * cp-decl.c (get_binfo_from_vfield): New function. + * cp-decl.c (finish_function): Use get_binfo_from_vfield to get the + binfo used to find the vtable for this vfields. Corrects problem + with vtable pointers being wrong during called member functions, + called from destructors. -Wed Feb 12 18:47:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Tue Jul 13 11:52:37 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * function.c (instantiate_virtual_regs_1, case IF_THEN_ELSE): - Don't special case; allow all operands to be processed. The last - two operands are nontrivial on the Vax. + * cp-decl.c (grokdeclarator): Don't pedwarn about a duplicate long + for `long long', until we figure out how we really want to handle it. -Wed Feb 12 18:58:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Sat Jul 10 14:54:36 1993 Chip Salzenberg (chip@fin.uucp) - * gcc.c (do_spec_1): Only absolute prefixes turn into -L's. - (link_command_spec): Handle LINK_LIBGCC_SPECIAL. + * cp-tree.h (warn_redundant_decls, warn_missing_braces): Declared. + * cp-decl.c (warn_redundant_decls): Not declared here. + * cp-decl2.c (warn_missing_braces): Defined. + (lang_decode_option): Handle -Wmissing-braces. + * cp-type2.c (process_init_constructor): Test warn_missing_braces. -Wed Feb 12 18:38:29 1992 Chris Smith (csmith at convex.com) + * cp-typeck.c (build_binary_op_nodefault): Make warning + message distinguish between right/left and shift/rotate. - * convex.h (DEFAULT_CALLER_SAVES): define again, bug is fixed. - * convex.h (BRANCH_COST): Define as 0, so we won't use complex - alternatives to branches (whose expansions contain branches - on convex). + * cp-decl.c (init_decl_processing): When making SIZETYPE, + start with name in SIZE_TYPE. If -traditional, use a signed + version of that type, if it is unsigned. -Wed Feb 12 17:23:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-typeck.c (c_sizeof, build_c_cast): Set TREE_OVERFLOW in + addition to TREE_CONSTANT_OVERFLOW. - * config.sub: Accept just `hppa' for machine. + * cp-decl.c (finish_enum): Store layout results into variant types. - * Makefile.in (Install-collect2): New target. + * cp-typeck.c (internal_build_compound_expr): When pedantic, don't + simplify a COMPOUND_EXPR, so that it won't be mistaken for an + lvalue or an integer constant expression. -Wed Feb 12 13:55:24 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (program): After extdefs, pop any unpopped binding lvls. - * reorg.c (relax_delay_slots): Don't convert jump to return here. + * cp-decl.c (grokdeclarator, ARRAY_REF case): Build array type, + and then build the variant array type. - * configure (a29k-ultra-*): Deleted. - (a29k-*-bsd*): Merged with a29k-ultra-*. - (romp-*-mach*): Fixed typo in xmake_file name. - * xm-a29kunix.h: Renamed from xm-a29k-ult.h. - * x-a29kunix: New file. + * cp-lex.c (real_yylex): Avoid invalid shift for erroneous empty + char const. - * reload.c (find_reloads): Don't use class from preference if it - is a single-register class. + * cp-decl.c (complete_array_type): Make maxindex -1 for empty + constructor. -Wed Feb 12 13:03:16 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-type2.c (initializer_constant_valid_p): Allow cast of ptr to + wider integer. - * m88k.h (FUNCTION_BOUNDARY, ASM_OUTPUT_ALIGN): Pack code tightly - when compiling crtstuff.c (flag_inhibit_size_directive). + * cp-decl.c (pushdecl): Copy DECL_FRAME_SIZE for inline function decls. -Wed Feb 12 10:34:09 1992 Michael Meissner (meissner at osf.org) + * cp-decl.c (finish_decl): Do not allocate static var of + unknown size. + (complete_array_type): Use 0 as default maxindex. - * decrose.h (*_SPEC): Compress some whitespace in the specs. Also, - simpify which LANGUAGE_xxx names are defined, to be the ones uses by - the system(s). - * decstatn.h (*_SPEC): Likewise. - * iris.h (*_SPEC): Likewise. - * mips.h (*_SPEC): Likewise. - * mips-bsd.h (*_SPEC): Likewise. - * mips-news.h (*_SPEC): Likewise. - * mips-sysv.h (*_SPEC): Likewise. +Fri Jul 23 07:18:20 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Feb 12 10:34:09 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * function.c (aggregate_value_p): An ARRAY_TYPE is also an aggregate. - * caller-save.c (insert_save_restore): Properly check for insns that - reference CC0. +Fri Jul 23 01:54:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Feb 12 03:17:00 1992 Chris Smith (csmith at convex.com) + * gcc.c (main): Improve "No input files" error message. - * convex.h (DEFAULT_CALLER_SAVES): don't define, to sidestep a bug. - * convex.md (ffssi2): Comment out. +Thu Jul 22 23:00:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Wed Feb 12 00:08:42 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * reorg.c (relax_delay_slots): Do not redirect a jump if doing so + invalidates insns in the jump's delay slots. + (redirect_with_delay_slots_safe_p): New function. - * make-libgcc2.com: Do not save .s file. +Thu Jul 22 18:01:29 1993 John Hassey (hassey@dg-rtp.dg.com) - * vms.h: Wrap #include in #ifdef L__main/endif + * invoke.texi, m88k.h, m88k.c: Changed serialize-volatile + to use tb1 instead of fldcr, fldcr has problems on 88110. + Made serialize-volatile the default behavior for all models. -Tue Feb 11 21:58:42 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) +Thu Jul 22 11:19:28 PDT 1993 Ron Guilmette (rfg@netcom.com) - * libgcc2.c (DO_GLOBAL_DTORS_BODY): New macro. + * fixinc.svr4 (making LIB absolute): Just concat with $ORIG_DIR. - * make-l2.com: New file to build libgcc2 on VMS. + * configure: Use `sed' rather than `cat' to put `MAYBE_TARGET_DEFAULT' + definition in. (This is a work-around for an NFS bug.) - * vms.h (DO_GLOBAL_CTORS_BODY): Replacement definition. +Thu Jul 22 14:59:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * vms.h (DO_GLOBAL_DTORS_BODY): Likewise. + * c-typeck.c: Output most constructors an element at a time. + (digest_init): Deleted code for raw constructors. + (process_init_constructor): Function deleted. + (start_init, finish_init): New functions. + (really_start_incremental_init) + (push_init_level, check_init_type_bitfields, pop_init_level) + (set_init_index, set_init_label, process_init_element) + (output_init_element, output_pending_init_elements): New functions. + * c-tree.h: Declare most of those functions. - * make-cccp.com: Define bison and rename as local symbols to avoid - possible conflict with user defined global symbols. + * c-parse.in (cast_expr): Use new initializer parsing functions. + (initdcl, notype_initdcl): Likewise. + (init): Likewise. + (initlist_maybe_comma, initlist1): These replace initlist. + (initelt): New nonterminal. + Change specified index syntax to `[INDEX]='. + Change specified field syntax to `.NAME='. -Tue Feb 11 22:17:32 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (output_constant_def_contents): New function. + (output_constant_def): Use it. + (deferred_constants): New list of constants not yet output. + (defer_addressed_constants): New function. + (output_deferred_addressed_constants): New function. + (make_decl_rtl): Don't ever replace old rtl; + instead, change its mode if necessary. - * sched.c (attach_deaths): Don't treat PIC offset table register - specially; flow.c doesn't. +Wed Jul 21 15:50:19 1993 Jim Wilson (wilson@cygnus.com) - * combine.c (make_compound_operation, case AND): We can have - a (and (subreg (lshiftrt ..) ..) ..); handle same as without SUBREG. - - * Makefile.in (HOST_CLIB, HOST_ALLOCA, HOST_MALLOC, HOST_OBSTACK): New - variables to override. - (USE_HOST_*, HOST_LIBDEPS): Use HOST_PREFIX and new variables. - (HOST_LIBS): Use HOST_CLIB. + * expr.c (expand_expr, COMPONENT_REF case): For unaligned object + in an aligned union, set MEM_IN_STRUCT_P if create a MEM rtx. -Tue Feb 11 21:32:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * sparc.c (output_move_double): Only set highest_first if first reg + of dest overlaps memory src address. Otherwise, if addreg1 set and + is same as second reg of dest, suppress trailing decrement. + + * sparc.md (movdi+1): Delete & from r/i constraint. - * Makefile.in (install-common-headers): Copy byteorder.h to - compilation dir. + From rfg@netcom.com: + * fixinc.svr4 (): Don't apply specialized fixes to + if we are on Solaris. They are not needed in that case. - * config.sub: Allow unicos as operating system. + * combine.c (nonlocal_label_list): New variable. + (combine_instructions): Set it. + (try_combine, distribute_links): CALL_INSN terminates a basic + block if nonlocal_label_list is set. - * m88kv4.h (INIT_SECTION_ASM_OP): Add #progbits. + * config/mips/{bsd-4.h, bsd-5.h, iris3.h, mips.h, news4.h, + news5.h, nws3250v4.h, osfrose.h, svr3-4.h, svr3-5.h, svr4-4.h, + svr4-5.h, ultrix.h} (CPP_SPEC): Define LANGUAGE_ASSEMBLY, not + LANGUAGE_C, when compiling a .s file. - * vax.h (DYNAMIC_CHAIN_ADDRESS): New macro. + * m68k.h (TARGET_SWITCHES): Recognize -m68851, -mno-68851, + -m68302, -mno-68302, -m68332, -mno-68332. - * c++: Propagate quoted args properly. + * lynx.h, i386/lynx.h, m68k/lynx.h, sparc/lynx.h: New files. + * i386.h (OVERRIDE_OPTIONS, SUBTARGET_OVERRIDE_OPTIONS): Define. + * m68k.h (TARGET_SWITCHES): Add SUBTARGET_SWITCHES. + (OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS. + (SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define. + * sparc.h (TARGET_SWITCHES): Add SUBTARGET_SWITCHES. + (OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS. + (SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define. -Tue Feb 11 16:35:01 1992 Jim Wilson (wilson at cygnus.com) + * fixincludes (sys/types.h sys/stdtypes.h): Delete newline before + do. + (machine/cpu.h): Delete space in `2>& 1'. - * fixincludes: Define TERM to `unknown', to ensure that it is - valid. Otherwise, ex may fail. - * fixinc.svr4: Likewise. + * config.sub (lynx): Recognize as vendor. + (lynxos): Recognize as OS. + * configure (i386-*-lynxos, sparc-*-lynxos, m68k-*-lynxos): + Recognize as new configurations. -Tue Feb 11 18:04:32 1992 Michael Meissner (meissner at osf.org) + * gcc.c (link_command_spec): Move %{T*} after %{L*} and %D. - * decrose.h (CPP_SPEC): Define the macros LANGUAGE_OBJECTIVE_C and - LANGUAGE_C_PLUS_PLUS if we are compiling Objective C or C++. - Silicon Graphics in particular uses LANGUAGE_C_PLUS_PLUS. - * decstatn.h (CPP_SPEC): Likewise. - * iris.h (CPP_SPEC): Likewise. - * mips-bsd.h (CPP_SPEC): Likewise. - * mips-news.h (CPP_SPEC): Likewise. - * mips-sysv.h (CPP_SPEC): Likewise. + * optabs.c (expand_binop): Synthesize double word shifts and + rotates from single word shifts. + * sparc.md (ashldi3, lshrdi3): Obsolete, deleted. - * decstatn.h (CPP_PREDEFINES): Eliminate __ versions, since - gcc will do these automatically. Eliminate LANGUAGE_C, since it is - handled in CPP_SPEC. +Wed Jul 21 15:55:18 1993 Ian Lance Taylor (ian@cygnus.com) -Tue Feb 11 15:38:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * fixinc.svr4: When fixing ftw.h, preserve remainder of + ftw and nftw declaration; don't just rewrite it. - * flow.c (find_basic_blocks): Don't delete labels used in non-jumps. +Tue Jul 20 23:35:36 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * vms.h (DO_GLOBAL_CTORS_BODY): Modify the return address - only the first time __main is called. + * collect2.c (is_ctor_dtor): Delete leading _'s from sym names + in `special' table, in neither-dots-nor-dollars case. - * fixinc.svr4: Change headers to test __STRICT_ANSI__ instead of - testing __STDC__ != 0. +Tue Jul 20 18:49:09 1993 Michael Meissner (meissner@osf.org) - * fixinc.svr4 (mman.h): Fix backward __STDC__ conditional. - Don't add declarations of munmap and mprotect. + * i386/osfrose.h, i386/osfelf.h (CC1_SPEC): Don't turn on + -mhalf-pic if ELF. - * varasm.c (output_constant): Allow empty constructor for any type. + * i386/osfrose.h (ASM_FILE_END): Put filename, sans directory into + the .ident string. - * dwarfout.c (ASM_OUTPUT_DWARF_DATA8): Just one definition; - test WORDS_BIG_ENDIAN "at run time". +Tue Jul 20 15:07:06 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Feb 11 09:00:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * combine.c: Add prototypes for static functions. + (subst, case IF_THEN_ELSE): Add missing arg to make_compound_operation. + (make_compound_operation, case ASHIFTRT): Delete extra gen_unary arg. - * reload.c (find_reloads): Don't substitute in MATCH_DUPs if we - are not generating replacements. +Mon Jul 19 18:15:48 1993 John F Carr (jfc@Athena.mit.edu) -Tue Feb 11 08:45:14 1992 Tom Wood (wood at dg-rtp.dg.com) + * rs6000.c (current_file_function_operand): New function. + * rs6000.h (ENCODE_SECTION_INFO): New macro. + (PREDICATE_CODES): Add current_file_function_operand. + * rs6000.md: Add variants of call and call_value patterns for + calls to functions defined in the same file. Omit the TOC pointer + reload after such calls. - * m88kv4.h ({CTORS,DTORS}_SECTION_ASM_OP): Fix typo. +Mon Jul 19 13:17:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Mon Feb 10 22:34:47 1992 Chris Smith (csmith at convex.com) + * reorg.c (fill_simple_delay_slots): Try filling any insn needing + delay slots with a JUMP_INSN. - * convex.h(HARD_REGNO_NREGS): define correctly for 64-bit regs +Mon Jul 19 00:33:24 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Feb 10 21:50:23 1992 Michael Meissner (meissner at osf.org) + * varasm.c (assemble_variable): New arg DONT_OUTPUT_DATA. + * toplev.c (rest_of_decl_compilation): Pass 0 as DONT_OUTPUT_DATA. - * mips.h (MIPS_VERSION): Change Meissner version # to 11. - (CPP_SPEC): Define the macros LANGUAGE_OBJECTIVE_C and - LANGUAGE_C_PLUS_PLUS if we are compiling Objective C or C++. - Silicon Graphics in particular uses LANGUAGE_C_PLUS_PLUS. - (FP_DBX_FIRST): Change the test so that stabs in ECOFF uses the - value 38, in addition to stabs in GAS. +Sun Jul 18 15:38:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips.md (all function units): Make the function units simpler, and - not depend on the cpu type, to work around a memory hungry - genattrtab, which attempts to grow the data segment to than 32 - megabytes. + * c-typeck.c (c_expand_return): Set TREE_SIDE_EFFECTS + for the MODIFY_EXPR that we make. -Mon Feb 10 16:34:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * stmt.c (expand_return): When expanding assignment into DECL_RESULT, + ignore the "value"--do it for effect. - * convex.h (REAL_VALUE_TRUNCATE): Obsolete definition deleted. + * fold-const.c (fold): Handle CONJ_EXPR. + * c-typeck.c (build_unary_op): Support CONJ_EXPR. + Change BIT_NOT_EXPR to CONJ_EXPR if arg is complex. - * config.sub (convex-*): These are BSD, not sysv. +Sun Jul 18 14:22:05 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * dbxout.c (have_used_extensions): New var. - (dbxout_type, dbxout_type_fields, dbxout_symbol): - Set have_used_extensions when use an extension. - (dbxout_symbol): Don't use `Tt' extension unless extensions - have been used. + * function.c (init_function_start): Initialize trampoline_list here. + (expand_function_end): Not here. -Mon Feb 10 12:28:59 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Jul 18 01:24:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * xm-a29k-ult.h: Fix typo in placement of copyright notice. + * c-typeck.c (common_type): Use TYPE_MAIN_VARIANT when preferring + long int to int (when width is the same). -Mon Feb 10 05:36:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * varasm.c (assemble_variable): Move debugging output calls + to after section has been selected. Select the section again + if the debugging output call changes the section. + * dbxout.c (dbxout_symbol_location): Call in_text_section + to decide whether to use DBX_STATIC_CONST_VAR_CODE. - * dbxout.c (dbxout_type): Don't use GDB extensions if they are empty. + * objc-act.c (synth_module_prologue): Call layout_type for the array + type used for _OBJC_SELECTOR_TABLE. -Mon Feb 10 00:10:20 1992 Michael Tiemann (tiemann at cygnus.com) +Sat Jul 17 00:41:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (finish_struct): Use DECL_CHAIN, not TREE_CHAIN to walk - through the list of methods identified by a visibility declaration. + * expr.c (expand_increment): Convert constant subtract to add + before setting single_insn. Compensate for this when choosing + the tree code to pass to `build'. - * cp-cvt.c (convert_pointer_to): No longer need to abort if BINFO is - not a TREE_VEC or AGGR_TYPE node. + * toplev.c (rest_of_compilation): If function is extern inline, + even if we can't inline it, don't compile it. - * cp-parse.y (stmt): Improve error handling for try/except. +Fri Jul 16 21:33:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (add_method): If we create RTL for a copy of METHOD, - copy the RTL to METHOD's DECL_RTL slot. + * dwarfout.c (dwarfout_init): Report failure of getpwd. - * cp-method.c (dump_type): Print `const' and/or `volatile' for - VOID_TYPE and REAL_TYPEs, too. +Fri Jul 16 15:59:07 1993 Ian Lance Taylor (ian@cygnus.com) -Sun Feb 9 21:07:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config/m68k/hp320.h (LINK_LIBGCC_SPECIAL, SPACE_AFTER_L_OPTION) + (LIB_SPEC): Move outside of USE_GAS conditional. - * varasm.c (assemble_integer): Pass third arg in recursive calls. - Act appropriately if word-by-word loop doesn't finish. +Fri Jul 16 14:26:25 1993 David d `zoo' Zuhn (zoo@cygnus.com) - * Makefile.in (bootstrap*): Don't override value of ALLOCA. + * config.sub: if [ "$os" ] --> if [ x"$os" != x"" ] - * dbxout.c (dbxout_symbol, dbxout_parms): Do leaf function remap - only if LEAF_REG_REMAP and only in leaf functions. +Fri Jul 16 05:50:35 1993 Paul Eggert (eggert@twinsun.com) -Sun Feb 9 16:46:27 1992 Michael Tiemann (tiemann at cygnus.com) + * c-typeck.c (check_format): With -Wformat, warn about + printf("%ld", 1) even if sizeof (int) == sizeof (long), + since the code isn't portable. Similarly for "%d" vs 1L. - * cp-init.c (maybe_adjust_addr_for_delete): Build final COND_EXPR - with TREE_TYPE (addr). + * c-typeck.c (convert_arguments) [PROMOTE_PROTOTYPES]: + With -Wconversion, use unpromoted type to check for signedness changes. -Sun Feb 9 14:20:49 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Jul 15 13:04:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * rs6000.h (rs6000_{bss,private_data,read_only}_section_name): - Add declarations. - (rs6000_text_section_asm_op): Deleted. - (ASM_FILE_START): Initialize section names and enter bss section once. - (EXTRA_SECTIONS): Add `private_data' and `bss'; - delete `global_variable'.. - (read_only_data_section): Don't form name here. - (global_variable_section): Deleted. - (private_data_section, bss_section): New functions. - (ASM_DECLARE_FUNCTION_NAME): Don't write function name with [PR]. - (ASM_OUTPUT_POLL_PROLOGUE): No longer needed. - (SELECT_{RTX_,}SECTION): Just calls data_section or - private_data_section. - (ASM_OUTPUT_LOCAL): Put in bss section. - (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Now a constant. - * rs6000.c (rs6000_text_section_asm_op): Deleted. - (rs6000_{bss,private_data,read_only}_section_name): Add definitions. - (rs6000_gen_section_name): New function. + * fixincludes (stdlib.h): Check carefully for definition of size_t. -Sun Feb 9 08:29:21 1992 James Van Artsdalen (james at bigtex.cactus.org) +Wed Jul 14 19:05:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386.h (REGNO_REG_CLASS): Use a lookup table: AIX can't handle - complex tertiary expressions. - (GO_IF_LEGITIMATE_ADDRESS): Simplify slightly for the AIX - compiler. + * fixincludes: Fix size_t definition in stdlib.h as in types.h. + Also a conditional to prevent repeated definition. - * i386.c (regclass_map): New variable. Lookup array for - REGNO_REG_CLASS. +Wed Jul 14 14:53:26 1993 Ian Lance Taylor (ian@cygnus.com) -Sat Feb 8 01:20:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * fixincludes: Don't discard comment end characters on lines that + look like "#endif */". Fixes Esix 4.0.4 problem. - * cp-parse.y (yyprint): Test __GNUC__, not __GNU__. - Use __inline, like everywhere else. +Wed Jul 14 12:20:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * a29k.h, romp.h (OVERRIDE_OPTIONS): Deleted. - (OPTIMIZATION_OPTIONS): Defined, instead. - * rs6000.h (OPTIMIZATION_OPTIONS): New macro. - (OVERRIDE_OPTIONS): Don't change optimization. + * pa.c (emit_move_sequence): Use cint_ok_for_move instead of + checking each condition ourselves. - * final.c (leaf_renumber_regs_insn): No longer static. - * dbxout.c (dbxout_symbol, dbxout_parms): Call that. + * pa-utahmach.h (CPP_PREDEFINES): Do not define HPUX_SOURCE, hp700 + or HP700. + * pa1-utahmach.h (CPP_PREDEFINES): Do not define hp9000s800, + hp9k8, HPUX_SOURCE, or hp800. - * c-decl.c (lookup_name): Do nothing special if type is error mark. - (grokdeclarator): Ignore putative type name whose type is error mark. - * c-parse.y (primary): If var type is error mark, return error mark. + * Allow unconditional jumps in delay slots of call and millicode + call instructions. + * pa.h (TARGET_JUMP_IN_DELAY): New target flag to allow/disallow + jump instructions in call delay slots. + (TARGET_SWITCHES): Add -mjump-in-delay and -mno-jump-in-delay. + Provide -mno alternatives for most options. + (output_call): Declare. + * pa.c (output_call): New function to output a function call or + millicode call, possibly with a jump in the delay slot. + (output_mul_insn): Accept additional argument, use output_call. + (output_div_insn): Likewise. + (output_mod_insn): Likewise. + (jump_in_call_delay): New function to determine if the given + JUMP_INSN is in the delay slot of a call or millicode call. + * pa.md (uncond_branch): New type attribute. Explicitly disallow + uncond_branch in most delay slots. + (in_call_delay attribute): New test for delay slot of call insns. + Allow uncond_branches in the delay slot if TARGET_JUMP_IN_DELAY. + (define_delay for calls, millicode calls, branches, returns, etc): + Broken up into two define delays. One for calls and millicode + calls, a second for branches, returns, etc. + (millicode insns): Pass the current insn down to + output_{mul,div,mod}_insn. + (jump insn): Use "uncond_branch" type attribute. Length of this + insn varies if it is in the delay slot of a call. + (call_internal_symref): Use output_call. + (call_value_internal_symref): Likewise. + (call_internal_reg): Use %r syntax instead of just register numbers. + (call_value_internal_reg): Likewise. - * c-typeck.c (build_array_ref): Return early if arg is error mark. +Wed Jul 14 02:19:11 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (test-protoize): Rule deleted. + * rtl.def (CONCAT): New rtx code. + * emit-rtl.c (gen_lowpart_common, gen_highpart): Handle CONCAT. + (operand_subword): Likewise. + (gen_reg_rtx): For complex mode, return a CONCAT of two pseudos. + * stmt.c (expand_decl): Make a CONCAT, for decls of complex type. + * dbxout.c (dbxout_symbol_location): Subroutine broken out from + dbxout_symbol. Handle CONCAT here. + (dbxout_symbol_name): New subroutine. Handle anonymous decls too. + (dbxout_reg_parms): Simplify using dbxout_symbol_location. + Handle CONCAT. - * stmt.c (emit_case_nodes): Handle just-left-subtree case - like just-right-subtree--delete mysterious code that tests cost_table. + * c-typeck.c (build_c_cast): When casting to union, if value is array + or function, do default_conversion. - * varasm.c (decode_reg_name): Accept decimal number as reg name. +Wed Jul 14 00:52:23 1993 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * c-decl.c (finish_decl): If pop_obstacks goes to perm obstack, - call permanent_allocation. + * config.sub: Add case for Bull dpx/2. - * gcc.c (link_command_spec): Use -lgcc, not libgcc.a. +Mon Jul 12 17:26:53 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Feb 7 16:56:17 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * fixincludes: When looking for #define CTRL, + accept multiple spaces between the two words. - * rs6000.h (DOLLARS_IN_IDENTIFIERS): Define to zero, because the - assembler does not accept dollar signs. + * reload1.c (reload): Don't free scratch_list or scratch_block if 0. -Fri Feb 7 15:36:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Jul 12 17:12:31 1993 Paul Eggert (eggert@twinsun.com) - * Makefile.in (mostlyclean): Fix name of tmp-proto.1. + * c-common.c (unsigned_conversion_warning): Just use `warning', + not `pedwarn'; these diagnostics are not required by Standard C. + * c-typeck.c (convert_for_assignment): Use `convert_and_check', + not `convert', for converting arithmetic types, since + `convert_and_check' no longer reports an error + where it should just warn. - * configure: Delete excess space in assignment to srcdir. +Mon Jul 12 16:44:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-decl2.c (DOLLARS_IN_IDENTIFIERS): Default now 1, as in C. + * config/i386/i386.md (ffssi2, ffshi2): Assume bsf produces + garbage if input is 0. Use jumps to load output in that case. - * i386gas.h (ASM_OUTPUT_LOOP_ALIGN): New macro. - (ASM_OUTPUT_ALIGN_CODE): Use 16-byte boundary on 486. + * config/vax/vax.h (INITIALIZE_TRAMPOLINE): Add code to + do an rei to clear the insn cache. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Use operands for the memrefs - to avoid dependence on assembler syntax. +Sun Jul 11 18:13:47 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Feb 7 10:26:32 1992 Michael Meissner (meissner at osf.org) + * config/ns32k/ns32k.c (output_move_double): Do the low reg first, + when only the high reg has an overlap. - * Makefile.in (EXTRA_OBJS): New variable for extra object files - needed when linking cc1, cc1plus, and cc1objc. + * c-typeck.c (convert_arguments): Don't warn about sign change + for an INTEGER_CST inside NOP_EXPR, if value not fits new type. + Delete the code to check for VAL having enumeration type. -Fri Feb 7 07:34:03 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i860.c (output_move_double): Fix typos in Jun 28 change. - * reload1.c (set_label_offsets, reload_as_needed): Recompute - num_not_at_initial_offset when we pick up offsets from offsets_at. +Sat Jul 10 16:05:26 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * unroll.c (unroll_loop): Copy initial and final values to avoid - sharing. + * i860.c (output_move_double): Only set highest_first if first reg + of dest overlaps memory src address. Otherwise, if addreg1 set and + is same as second reg of dest, suppress trailing decrement. - * cse.c (simplify_relational_operation): Complete last change by - correctly handling <= and >=. +Sat Jul 10 19:49:31 1993 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) -Thu Feb 6 23:57:02 1992 Michael Tiemann (tiemann at cygnus.com) + * jump.c (jump_optimize): Correctly identify branches to the end + of a function so that they may be turned into RETURN insns. - * cp-decl.c (grokdeclarator): Invert sense of warning about - initialized extern vars, since in C++, const has funny semantics. +Sat Jul 10 17:37:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Feb 6 15:12:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * collect2.c (main): Allocate COLLECT_NAME string with xmalloc. - * cse.c (simplify_relational_operation): Test properly for floating - equality; don't deduce this from < and >. +Sat Jul 10 14:44:29 1992 Chip Salzenberg (chip@fin.uucp) - * xm-mips.h (alloca): Don't define or declare if MIPS_OVERRIDE_ALLOCA. - * xm-irix4.h (MIPS_OVERRIDE_ALLOCA): Defined. + * basic-block.h (REGSET_ELT_TYPE): Make unsigned to avoid + signed arithmetic overflow. + * hard-reg-set.h (HARD_REG_ELT_TYPE): New unsigned type to + avoid signed arithmetic overflow. + (HARD_REG_SET): Define as HARD_REG_ELT_TYPE, or array thereof. + (HARD_CONST): Always cast to HARD_REG_ELT_TYPE. + (*_HARD_REG_*): Use unsigned HARD_CONST and HARD_REG_ELT_TYPE + types instead of assuming HOST_WIDE_INT. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Use explicit reg var - to avoid dependence on register name syntax. +Sat Jul 10 10:25:16 1993 Karl Berry (karl@cs.umb.edu) - * mot3300.h (PUT_SDB_START_DIM, PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM): - New macros. - (PUT_SDB_DIM): Deleted. - (PRINT_OPERAND): Handle %$ and %&. - (ASM_OUTPUT_OPCODE): Handle f%$move and f%&move. + * fixincludes: Check for symlinks being available in /tmp. - * gstdarg.h: If not __GNUC__, use system's stdarg.h. +Sat Jul 10 02:01:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Feb 6 22:36:36 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * config/m68k/3b1.h (MY_ISCOFF, OBJECT_FORMAT_COFF, NO_SYS_SIGLIST): + New definitions. - * vms.h (DEFAULT_GDB_EXTENSIONS): Define as 0. +Fri Jul 9 20:40:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Thu Feb 6 13:32:37 1992 Michael Meissner (meissner at osf.org) + * pa.md (dbra and movb patterns): Fix constraints so that FP + registers are never preferred. - * mips.h (MIPS_VERSION): Set Meissner version # to 10. - (flag_half_pic, mips_branch_likely): New global variables. - (call_memory_operand): New function declaration. - (half_pic_encode_section_info): Likewise. - (mips_constant_address_p): Likewise. - (mips_debugger_offset): Likewise. - (CC1_SPEC): Make OSF/1 -pic-xxx switches to -mhalf-pic, which is - currently undergoing development. - (DEBUGGER_AUTO_OFFSET): Emit correct information if frame pointer is - omitted. - (DEBUGGER_ARG_OFFSET): Likewise. - (TARGET_SWITCHES): Add -mabicalls and -mhalf-pic switches. - (PIC_OFFSET_TABLE_REGNUM): Define as the GP register ($28). - (EXTRA_CONSTRAINT): Add 'S' constraint for half-pic references. - (CONSTANT_ADDRESS_P): Call mips_constant_address_p. - (ENCODE_SECTION_INFO): Reorder test to test optimize first, and to - call half_pic_encode_section_info if half pic. - (PREDICATE_CODES): Add call_memory_operand. +Fri Jul 9 17:36:35 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * mips.c (flag_half_pic): New global variable to indicate to produce - half-pic output for OSF/rose. - (mips_branch_likely): New global variable to indicate the branch - should use the branch likely form of the instruction. - (mips_sw_reg_names): Use $fp instead of fp, since regdef.h no longer - defines fp. - (call_memory_operand): New function to return TRUE if the argument - is a valid MEM for a call instruction. - (mips_move_1word): Emit comment in la of half-pic addresses as a - temporary flag to put the right code down. - (mips_constant_address): New function to determine if something is a - constant address or not. Add stub code for -mhalf-pic. - (override_options): Set flag_half_pic if -mhalf-pic. - (override_options): Mark %? as valid for print_operand. - (mips_debugger_offset): New function to correct the offset for - variables and arguments if the frame pointer has been omitted. - (print_operand): %? now emits a 'l' if mips_branch_likeley is set. - (mips_asm_file_start, function_prologue): If -mabicalls, emit the - pseudo ops that the Pyramid System V.4 port seems to want. - (compute_frame_size): Reserve space for saving GP if -mabicalls. - (half_pic_encode_section_info): Stub function for encoding whether - or not to generate a half pic reference. + * va-clipper.h: Make var/stdargs compatible with apogee's acc. + (__gnuc_va_list): Replace __va_f and __va_r with __va_reg. + (__va_list, _SYS_INT_STDARG_H): New defines. + (va_arg): Corresponding changes. - * mips.md (type attribute): Add pic attribute. - (cpu attribute): New attribute to get the CPU type. - (branch_likely attribute): New attribute to say whether or not we - can use branch likely instructions. - (define_delay): Note that we can annull false branches if -mips2. - (memory function unit): Add pic in addition to load. - (various function units): Use the cpu attribute. - (branch patterns): Support branch likely instructions if -mips2. - (call, call_internal): Use call_memory_operand instead of - memory_operand. If -mhalf-pic put function address in a register. - (call_value, call_value_internal): Likewise. + * config/clipper/clipper.c (clipper_builtin_saveregs) : Dito. - * decrose.h (INIT_SECTION_ASM_OP): Define as .init. +Fri Jul 9 13:39:08 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Feb 6 10:07:17 1992 Tom Wood (wood at dg-rtp.dg.com) + Cygnus<->FSF merge. + Fri Jul 9 12:17:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * m88k.c (preserve_registers): Change to walk the epilogue delay - insns in the forward rather than reverse order (for reorg.c change). + * cp-typeck.c (build_array_ref): Force the array to be allocated on + the stack if it is accessed by a out-of-bound constant integer + subscript. -Thu Feb 6 02:54:28 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (pushdecl): Undo change to generate a new _TYPE node for + a typedef. - * cse.c (simplify_binary_operation, case PLUS): Don't make - a (const (plus X Y)) with X a CONST_INT. + Thu Jul 8 16:25:52 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * fixincludes: Simplify egrep command. + * cp-decl.c (pushtag): Don't mark the binding layer marker; for + dwarf debugging, do mark the TYPE_DECL we created as ignored. -Thu Feb 6 01:11:28 1992 Mark Eichin (eichin at cygnus.com) + * cp-tree.h (IN_CHARGE_NAME): Define to not need DOLLAR_IN_LABEL. + (VTBL_PTR_TYPE): Likewise. + (VTABLE_DELTA_NAME, VTABLE_INDEX_NAME, VTABLE_PFN_NAME, + VTABLE_DELTA2_NAME): Use two leading underscores. - * cp-lex.c (process_next_inline): if we get a "parse error at end of - saved function text", set yychar to something that - restore_pending_input will digest (if it thinks input is still - pending, it will abort, but we've already reported the problem to - the user.) + Thu Jul 8 14:31:40 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Feb 5 18:42:56 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-tree.h (TREE_ANON_UNION_ELEM): Deleted, it's never set. + * cp-decl.c (build_default_constructor): Delete checking + TREE_ANON_UNION_ELEM. + * cp-init.c (emit_base_init): Likewise. + * cp-type2.c (my_friendly_abort): Update count. - * reorg.c (fill_simple_delay_slots): When filling delay slots by - searching backward, put each new insn we find at the head of the - delay list instead of at the tail. + * cp-type2.c (build_functional_cast): Disable assert 323 (see + comments for explanation). - * cse.c (fold_rtx): When associating operations, avoid infinite - recursion if the new expression contains our operand. + * cp-typeck.c (comp_target_parms): Return 0 if strict is != 0, not + just > 0. -Wed Feb 5 21:18:06 1992 Mark Eichin (eichin at cygnus.com) + * cp-decl.c (init_decl_processing): Don't set WARN_RETURN_TYPE. - * cp-decl.c (globalize_nested_type): If the type isn't found at all, - this is an anonymous forward reference, so permit it. - Abort if type is already globally defined. + Wed Jul 7 18:36:59 1993 Niklas Hallqvist (niklas@della.appli.se) -Wed Feb 5 18:01:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Add the changes to redo how we handle scoping. [Merged by bpk.] - * varasm.c, hp800.h, i386.h, m88k.h, mips.h, romp.h, vms.h: - (ENCODE_SECTION_INFO): Renamed from ENCODE_SEGMENT_INFO. + * cp-class.c ({pop,push}_nested_class): New functions to use + instead of plain {push,pop}class. These functions will see to + that static entities of enclosing classes will be visible. + * cp-tree.h ({pop,push}_nested_class): Declare them. + * cp-decl.h ({finish,start}_function): Use these new functions + instead of plain {push,pop}class calls. + (grokdeclarator): Ditto. + * cp-decl2.c (build_push_scope): Ditto. + * cp-class.c (popclass): Only call pop_class_decls if MODIFY is + set. - * sparc.md (nonlocal_goto): Copy static chain into - virtual_stack_vars_rtx, not frame pointer itself. - (nonlocal goto return recognizer): Jump to %o0+0. + * cp-decl.c (start_decl): Maybe call pushdecl_class_level instead of + pushdecl. This is used for nested types. + (grokdeclarator): Remove the {push,pop}level calls around the + indirect recursion occuring when groking class-local typedefs. + Remove the error check of such typedefs hiding other fields in the + same scope. Remove the pushdecl_class_level call since start_decl + does the work now. - * toplev.c (main): Fix test for -Wid-clash. + Class scoping (and type value caching) redone. The new behaviour + is triggered by NEW_CLASS_SCOPING being defined to 1. The old + behavior is accomplished by defining it to the value 0. The entries + below describes the effective changes when NEW_CLASS_SCOPING is set + to non-zero. -Wed Feb 5 16:58:15 1992 Ron Guilmette (rfg at ncd.com) + * cp-class.c (set_class_shadows): Add prototype. + (previous_class_values): New variable. + (pushclass): Adapted to not use previous_class_type & unuse_fields. + Removed setting of IDENTIFIER_CLASS_VALUE. + (popclass): Adapted to not use previous_class_type. Don't reset + IDENTIFIER_CLASS_VALUE. Moved call of pop_class_decls. + (maybe_push_cache_obstack): New function. + * cp-decl.c (current_class_depth): Add extern decl. + (previous_class_values): Add extern decl. + (pop_decl_level): Don't reset IDENTIFIER_CLASS_VALUE. + (set_class_shadows): New function. + (poplevel_class): Adjust setting of IDENTIFIER_CLASS_VALUE to only + happen if we're not leaving a toplevel class. + (push_to_top_level): Don't use adjust_type_value. + (set_identifier_type_value): Reverse the choice between class and + local scope when installing the type value. + (set_identifier_local_value): Set the type value if we're seeing a + TYPE_DECL. + (set_nested_typename): Added comment. + (pushtag): Don't call set_identifier_type_value. Leave out + setting of IDENTIFIER_CLASS_VALUE. + (adjust_type_value): Removed. + (pushdecl): Don't call adjust_type_value. + (pushdecl_class_level): Call push_class_level_binding. Set the + type value if we're seeing a TYPE_DECL. + (push_class_level_binding): New function whose guts came from + pushdecl_class_level. + (globalize_nested_type): See to that both the class_shadowed and + type_shadowed lists in the binding stack gets updated correctly. + Don't call set_identifier_type_value on the DECL_NESTED_TYPENAME. + Clear DECL_CLASS_CONTEXT as well as DECL_CONTEXT. Install a + correct IDENTIFIER_{CLASS,TYPE}_VALUE if needed. + (grokdeclarator): Prefer pushdecl_class_level over pushtag when + recording a nested typedef. + (build_enumerator): Don't install a method-local enumerator into + class scope. + * cp-decl2.c (grokfield): Don't call set_identifier_type_value. + * cp-search.c (closed_envelopes): New list containing information + of what decls should be pushed when entering a class scope. + (dfs_pushdecls): Build and maintain the closed_envelopes list + instead of managing the IDENTIFIER_CLASS_VALUEs directly. + (dfs_compress_decls): Adapted to recognize the envelopes + dfs_pushdecls has installed in the IDENTIFIER_CLASS_VALUE slots. + (push_class_decls): Tell overload_template_name to push the + template decls into class scope instead of building a new level. + Added code to open up the envelopes in closed_envelopes and + install the class/type values in the class binding contour with + proper shadowing. + (dfs_popdecls): Removed. + (pop_class_decls): Removed the actual decl-popping code, leaving + just the obstack freeing pop_search_level call. The popping is + automatically handled by poplevel now. + * cp-tree.h (NEW_CLASS_SCOPING): A new macro constant defaulted to + the value 1. + (adjust_type_value): Prototype removed. + (push_class_level_binding): Added prototype. - * dwarfout.c (dwarfout_init): Add two words containing the starting - and ending address of the .text section for this compilation unit to - the special initial entry in the .debug_srcinfo section. + Wed Jul 7 11:04:09 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Feb 4 14:51:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (pushdecl): When processing a typedef statement, + generate a whole new ..._TYPE node. Be careful that the type we're + looking at isn't an error_mark_node. - * dbxout.c (dbxout_symbol): Handle DBX_OUTPUT_CONSTANT_SYMBOL. - (dbxout_block): Handle DBX_OUTPUT_CATCH. + * cp-class.c (finish_struct): Set the DECL_CONTEXT on the type we've + found. + * cp-decl.c (pushtag): Mark the TYPE_DECL as ignored when using + dwarf debugging; don't ignore it if it's anonymous for dwarf + debugging. Put the DECL_CONTEXT in the TYPE_CONTEXT of TYPE. + (globalize_nested_type): Remember to set TYPE_CONTEXT. + * cp-pt.c (overload_template_name): Set DECL_CONTEXT. + * cp-search.c (compute_visibility): Set DECL_CONTEXT if the context + is NULL. - * cccp.c (lookup_import, add_import, do_include): - Use bcmp and bcopy to access st_ino and ->inode fields. + * cp-class.c (finish_struct): Mark the tag as ignored for dwarf + debugging. - * dbxout.c (dbxout_init): Pass syms to DBX_OUTPUT_STANDARD_TYPES. + * cp-except.c (EHS_type): Don't make it static. + * cp-class.c (finish_struct): Don't create a default copy + constructor for the EHS_type. - * fold-const.c (operand_equal_p): Check that modes match. - (comparison_equiv_p): New function. - (fold): Use that when converting ?: to min_expr or max_expr. + * cp-class.c (get_vtable_name): Leave the numbers in the name for + the vtable, so we're uniform with what prepare_fresh_vtable is + doing. Introduces a binary incompatability. - * c-common.c (c_expand_expr_stmt): Test for ERROR_MARK as type. + * cp-tree.c (build_cplus_method_type): Mark the first argtype (the + this pointer) as artificial. -Tue Feb 4 12:03:26 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-init.c (do_friend): Don't allow a friend of a class that's not + yet been defined; instead, complain. Make sure we mark every decl + that comes in as being a friend of something. - * stmt.c (expand_end_case): Don't crash if function called - is not an ADDR_EXPR. + * cp-decl2.c (grokclassfn): Mark the __in_chrg parameter as + artificial. Don't mark it as readonly, and for destructors make + sure the first arg in the arg_types chain has TREE_SIDE_EFFECTS set, + so it's seen as artificial. + (finish_vtable_vardecl): For dwarf debugging, make the vtable's + VAR_DECL node be ignored. -Tue Feb 4 14:17:22 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (redeclaration_error_message): Use comptypes to see if + OLDDECL and NEWDECL have the same type. + * cp-typeck.c (comptypes): Compare the main variants of the types, + after we've checked the qualifiers that could have been used on them. - * expr.h ({float[sd]i[sd]f,fix[sd]f[sd]i,fixuns[sd]f[sd]i}_libfunc): - New declarations. - * optabs.c: Define them. - (expand_float, expand_fix): Use them instead of making a new - SYMBOL_REF each call. - (init_optabs): Initialize them. + * cp-call.c (EVIL_RETURN, QUAL_RETURN, TRIVIAL_RETURN, ZERO_RETURN): + Rewrite definitions to not use do/while(0), to avoid bogus warnings + on compilers that can't deal with a return inside it. Change all + uses of them to do `return FOO_RETURN'. -Tue Feb 4 00:27:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Tue Jul 6 13:00:44 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * Makefile.in (protoize.1, unprotoize.1): Rename temp files < 14 chrs. + * cp-decl.c (duplicate_decls): Set GIVE_ERROR so we know where the + previous declaration was for empty parameter name list declarations. - * cccp.c (skip_if_group): Make unknown cmd name a pedantic warning. + * cp-class.c (finish_struct): Clean up error message about anonymous + classes. -Mon Feb 3 18:10:41 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (finish_struct): Don't play with TAIL when we're + dealing with a TYPE_DECL of a RECORD_TYPE; the list continues on + just fine, and TAIL is only used for managing FN_FIELDS. - * romp.h (LEGITIMATE_CONSTANT_P, ENCODE_SEGMENT_INFO): Use - SYMBOL_REF_FLAG. + * cp-decl.c (pushlevel): Change cast to HOST_WIDE_INT. + * cp-search.c (breadth_first_search): Likewise. - * x-romp-mach: New file. - * configure (romp-*-mach*): New alternative. + Fri Jul 2 19:24:55 1993 Steve Chamberlain (sac@rtl.cygnus.com) -Mon Feb 3 16:43:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-method.c: Include "cp-class.h" - * cp-typeck.c (warn_for_assignment): Print arg num in origin 1. + Fri Jul 2 18:16:10 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * sparc.md (nonlocal_goto trap recognizer): Fix opcode spelling. + * cp-call.c (build_overload_call_real): Don't look at a required + template instantiation and a speculative template instantiation as + two different functions if they are really the same function. - * function.c (fix_lexical_addr): Properly search for correct display. + Thu Jul 1 22:28:46 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * romp.h (OVERRIDE_OPTIONS): Don't set flag_omit_frame_pointer. + * cp-tree.h: Don't include "cp-class.h" here. + * cp-call.c, cp-cvt.c: Include it here instead. -Mon Feb 3 11:11:58 1992 Michael Tiemann (tiemann at cygnus.com) + Thu Jul 1 18:42:03 1993 Mike Stump (mrs@cygnus.com) - * gcc.c (@c++-cpp-output): Delete extraneous "}}}" at the end of the - rule. + * cp-decl.c (duplicate_decls): Fix typo. (olddecl->olddecls) -Mon Feb 3 11:38:19 1992 Ron Guilmette (rfg at ncd.com) + Thu Jul 1 18:34:12 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * dwarfout.c (dwarfout_init): Generate an initial 2-word entry in the - .debug_srcinfo section containing the addresses of the starts of the - .line and .debug_sfnames sections. Generate it after the initial entry - for the .line section. + New implementation of argument matching. This is now much cleaner + to read, and is designed such that it should be easy to tweak + things when incorrect decisions are made based on the candidates + being examined. - * dwarfout.c [DWARF_TIMESTAMPS]: Ensure time_t and time declared. - (dwarfout_init): Make third word of initial .debug_srcinfo entry be - the compilation date/time if DWARF_TIMESTAMPS is defined, or else -1. + * cp-decl2.c (flag_ansi_overloading): New variable. + (lang_f_options): Add -fansi-overloading. + * toplev.c (lang_options): Add -fansi-overloading and + -fno-ansi-overloading. - * dwarfout.c (dwarfout_init): Output compilation directory name as - the first thing in the .debug_sfnames section. + * cp-class.h (harshness_code): New struct. + (candidate): New members `h' and `h_len' used by new method. New + anonymous union `v', with ansi_harshness and old_harshness. + Deleted member `harshness' (used by old method, now in `v'). + Change every file that uses harshness to refer to it in the union + as appropriate. + (EVIL_CODE, CONST_CODE, ELLIPSIS_CODE, USER_CODE, STD_CODE, + PROMO_CODE, QUAL_CODE, TRIVIAL_CODE): New macros. -Mon Feb 3 04:12:51 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-call.c (EVIL_RETURN, QUAL_RETURN, TRIVIAL_RETURN, + ZERO_RETURN): New macros. + (rank_for_overload): Renamed to rank_for_overload_old. + (rank_for_overload_ansi): New function for new method. + (rank_for_overload): Call the appropriate fn based on the new flag. + (rank_for_ideal): New function for new method. + (compute_harshness): Renamed to compute_harshness_old. + (compute_harshness_ansi): New function for new method. + (compute_conversion_costs): Renamed to compute_conversion_costs_old. + (compute_conversion_costs_ansi): New function for new method. + (compute_conversion_costs): Call the appropriate fn based on the + new flag. + (ideal_candidate): Renamed to ideal_candidate_old. + (ideal_candidate_ansi): New function for new method. + (ideal_candidate): Call the appropriate fn based on the new flag. + (strictly_better): New function for new method. + (build_method_call): Change things to use the new method if + -fansi-overloading is set. + (build_overload_call_real): Likewise. + * cp-cvt.c (convert_to_aggr): Likewise. - * Makefile.in (install-dir): `parent' is a shell variable. + * cp-call.c (build_overload_call_real): Only use the speed hack + to trigger immediately if the OVERLOAD_NAME has a global value if we + aren't using the new overloading scheme. -Mon Feb 3 09:43:51 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-cvt.c (build_type_conversion): Only accept using an `operator + double' if there isn't a conflicting `operator int', if + -fansi-overloading is on. - * m88k.h (EXTRA_SECTIONS): Use init and fini sections from svr3.h, - but only when using svr3.h. + Thu Jul 1 17:54:44 1993 Mike Stump (mrs@cygnus.com) -Sun Feb 2 19:50:29 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-decl.c (duplicate_decls): Propagate some changes from C + front-end. Conflicts with built-in functions are now only warnings. - * i386.h (ADDRESS_COST): New macro. + Thu Jul 1 15:43:48 1993 Mike Stump (mrs@cygnus.com) -Sun Feb 2 17:08:47 1992 Michael Meissner (meissner at osf.org) + * cp-call.c (build_field_call): Use real type if type is a + REFERENCE_TYPE. + * cp-parse.y (primary): Cleanup and move some code out into new + function build_object_ref. + * cp-tree.h (build_object_ref): New function. + * cp-typeck.c (build_object_ref): Define new function. + * cp-typeck.c (build_x_function_call): Return error_mark_node if + first argument is, and handle when TREE_PURPOSE is a binfo and comes + from lookup_fnfields. - * mips.c (simple_memory_operand): Don't recognize references to - variables in .sdata or .sbss, which has the effect of not putting - stores into delay slots. This fixes a bug and also doesn't temp the - MIPS linker from trying to put 4 instructions into the delay slot - when it rewrites the function as a PIC function. + Thu Jul 1 13:48:46 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sun Feb 2 16:58:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-lex.c (readescape): Don't complain for \% unless pedantic. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Do ON_EXIT last. + Wed Jun 30 10:35:50 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * Makefile.in (install-dir): Create the parent of mandir if nec. + * cp-decl2.c (bad_specifiers): Moved to cp-decl.c. New args + `inlinep' and `object' (old object renamed to type), so we can see + where the thing was declared. Use error_with_decl instead of error. + * cp-decl.c (grokdeclarator): Pass INLINEP and DECL down; move calls + so we'll have a valid DECL to give it. + * cp-tree.h (bad_specifiers): Deleted prototype. - * real.h (REAL_VALUE_TRUNCATE): sizeof says what cast to float does. + * cp-call.c (build_scoped_method_call): If it's a reference, work + with the actual type. + * cp-type2.c (build_scoped_ref): Likewise. - * dbxout.c (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY): New parameter macro. - (DBX_OUTPUT_MAIN_SOURCE_FILENAME, DBX_OUTPUT_SOURCE_FILENAME): - (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise. - These are used in place of ASM_... - * newpbb.h (DBX_OUTPUT_MAIN_SOURCE_FILENAME): Macro renamed. - (DBX_OUTPUT_SOURCE_FILENAME): Likewise. - * next.h (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY): Macro renamed. - (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise. + Tue Jun 29 19:49:57 1993 Mike Stump (mrs@poseidon.cygnus.com) -Sun Feb 2 12:51:54 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-lex.c (default_copy_constructor_body): Hack broken code to work + marginally better than how it worked before, so that PlotFile3D's + make check of libg++ works. - * cp-typeck.c (build_component_ref_1): Call `compute_visibility' - with a BASETYPE_PATH, not a TREE_LIST. + Tue Jun 29 12:44:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-class.c (build_vtable_entry): Apologize if we cannot build a - proper vtable because of builtin liminations. + * cp-typeck.c (mark_addressable): Don't complain about taking the + address of an object with register storage class; it's legal in C++. -Sun Feb 2 07:30:08 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-typeck.c (convert_arguments): Only warn about passing an object + through an ellipsis. - * reload.c (combine_reloads): Don't combine two reloads with different - secondary reloads; copy secondary reload to combined reload. + * cp-parse.y (typed_declspecs): Make sure the TYPESPEC we hit + upon is non-null. - * cse.c (cse_main): PIC_OFFSET_TABLE_REGNUM is not clobbered by calls - if -fpic or -fPIC. - * reorg.c (mark_target_live_regs): Likewise. - * sched.c (attach_deaths): Likewise. + Tue Jun 29 11:58:03 1993 Tony Deigh (tonyd@bostech.com) - * flow.c (find_basic_blocks): Don't separate a CALL_INSN from - following CLOBBER insns. + * cp-decl.c (grokdeclarator): Look at the decl as a FUNCTION_TYPE + before seeing if its TYPE_MAIN_VARIANT matches or it's a friend; + this way, we can properly detect declaration of another class's + methods inside another class. Solves chainon aborts. - * function.c (use_variable, use_variable_after): Don't interpret - reference to internal arg pointer as variable-sized object. - (expand_function_start, expand_function_end): Add USE for virtual - arg pointer if stupid alloc and it is not the real arg pointer. + Tue Jun 29 09:47:36 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * flow.c (insn_dead_p, mark_set_1, mark_used_regs): Don't treat - ARG_POINTER_REGNUM specially if it isn't fixed. - * sched.c (attach_deaths): Likewise. - * reorg.c (mark_target_live_regs): Likewise; also make set of regs - clobbered on call agree with cse and flow. + * cp-class.c (finish_struct): Use pedwarn_with_decl for warnings + about non-static const/ref in class without a ctor, so the line + number is helpful. - * function.c (fix_lexical_addr): Rework to look for AP references - using internal_arg_pointer; make some related cleanups. - * expr.c (expand_expr, case VAR_DECL, SAVE_EXPR): Treat - inline_function_decl just like current_function_decl. - * stmt.c (expand_end_bindings): When restoring arg pointer, restore - into the virtual form so we will subtract the proper offset, since - the saved value includes the offset. + Tue Jun 29 02:46:39 1993 Mike Stump (mrs@cygnus.com) -Sat Feb 1 14:41:34 1992 Ken Raeburn (Raeburn@Cygnus.COM) + * cp-cvt.c (build_up_reference): Delete unneed cast. + * cp-typeck.c (convert_for_assignment): Likewise. - * cp-pt.c (end_template_decl): For method template, no longer call - popclass; it isn't needed any more. If after processing template - we're not at the global binding level, throw away any other binding - levels, rather than aborting. Also deleted some other unused code. + Mon Jun 28 19:19:34 1993 Mike Stump (mrs@rtl.cygnus.com) -Sat Feb 1 09:13:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-lex.c (real_yylex): Use pedwarn to warn about using catch, try + and throw as identifiers. - * xm-rs6000-mach.h, rs6000-mach.h: New files. - * configure (rs6000-*-mach): New option. + Mon Jun 28 11:13:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sat Feb 1 00:57:24 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-method.c (hack_identifier): Only look for visibility if we have + a basetype path. - * i386.c: Include tree.h - (symbolic_operand): New predicate function. - (symbolic_reference_mentioned_p): New function. - (legitimize_pic_address,emit_pic_move): New functions. - (function_prologue): Delete unused variable nregs. - If the PIC reg is used, save the old contents and initialize with - a pointer to the GOT. - (simple_386_epilogue): Count the PIC reg if it is used. - (function_epilogue): Delete unused variable "insn". Restore the - original contents of the PIC reg if it was used. + * cp-decl.c (grokdeclarator): Also forbid the subscripting operator, + and class member access operator being declared as a non-member + function. - (output_pic_addr_const): New function to handle PIC symbol - reference suffixes. - (print_operand_address): Use that if flag_pic is true. - (print_operand): Likewise. Don't print a prefix in front of any - constant if the 'P' code is used. + * cp-init.c (add_friend): Pedwarn on duplicate friend decls. - (output_387_binary_op): abort if the op is not one we handle. + * cp-init.c (is_friend_type): New function. + (is_friend): Call it; rewrite in minor ways, to clean the code up. + * cp-tree.h (is_friend_type): Add prototype. + * cp-search.c (compute_visibility): Also check if the + CURRENT_CLASS_TYPE is a friend of CONTEXT, which can buy us access + to the field in question. - (maximum_field_alignment): New variable. - (handle_pragma_token): New function. Handle `weak' and `pack'. + * cp-init.c (sort_member_init): Disable assert that was wrong. - * i386.h (CONDITION_REGISTER_USAGE): New macro. Mark PIC reg as - fixed and call used if flag_pic is true. - (PIC_OFFSET_TABLE_REGNUM): New macro. - (FUNCTION_PROFILER): Output PIC compatible code if flag_pic. - (INITIAL_ELIMINATION_OFFSET): Count the PIC reg if it is used. + * cp-class.c (finish_struct): Make declaration of a non-static const + or reference member get a pedwarn if the class it's in has no + constructor. - (GO_IF_LEGITIMATE_ADDRESS): If flag_pic is true, reject bare - label or symbol references, but allow constant pool references. - In all cases, don't bother to check for a constant as the first - operand of a PLUS. - (LEGITIMIZE_ADDRESS): Call legitimize_pic_address for symbolic - references if flag_pic is true. In all cases, HImode regs are not - valid memory pointers. - (LEGITIMATE_PIC_OPERAND): New macro. - (SYMBOLIC_CONST): New macro. - (ENCODE_SEGMENT_INFO): New macro to notice static variables. - (CONST_COSTS): Symbolic constants cost more if flag_pic is true. + * cp-decl2.c (grokfield): Fix up the error message about member + initialization. - * i386.md (movsi): Use define_expand. Call emit_pic_move for - symbolic constants if flag_pic is true. - (divmodM4,udivmodM4): Change predicates so that only regs are - allowed in operands that can't be a mem. Avoids reload - congestion. - (indirect_jump): Allow any reg or mem as operand, not just reg 0. - (casesi): New insn, only used if flag_pic is true. - (call,call_pop,call_value,call_value_pop): Use define_expand to - record if this function ever emits a call, which will implicitly - use the PIC address register. + * cp-typeck.c (c_expand_return): Make sure we don't set + CURRENT_FUNCTION_RETURNS_VALUE if we set CURRENT_FUNCTION_RETURNS_NULL. - * svr4.h (SELECT_SECTION): Any item whose initial value involves - linker relocation must go in the data section if flag_pic is true. + * cp-method.c (dump_init): Don't emit digit_buffer if we're giving + an enum's tag. - * i386v4.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output in PIC style. If - flag_pic is false, ADDR_DIFF_VECs are not output and this is not - used. - (JUMP_TABLES_IN_TEXT_SECTION): New macro. +Fri Jul 9 16:45:25 1993 David d `zoo' Zuhn (zoo@cygnus.com) - (WEAK_ASM_OP,DEF_ASM_OP): New macros. - (maximum_field_alignment): New variable. Declare here. - (PCC_BITFIELD_TYPE_MATTERS): New macro. Value depends on - maximum_field_alignment. - (BIGGEST_FIELD_ALIGNMENT): New macro. Likewise. - (HANDLE_PRAGMA): New macro. - (ASM_OUTPUT_ALIGNED_LOCAL): New macro. + * config.sub: Make -solaris reflect the most recent major release. -Sat Feb 1 00:15:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Jul 9 16:18:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * flow.c (flow_analysis, find_basic_blocks): - If have nonlocal labels, calls end basic blocks. - Each call can jump to each nonlocal label. - Pass extra arg to find_basic_blocks. - * function.c (nonlocal_label_rtx_list): New function. + * Change length attributes to use bytes instead of instruction + counts. + * pa.h (CASE_VECTOR_MODE): Change to DImode. + * pa.c (compute_movstrsi_length): Return length in bytes. + (pa_adjust_insn_length): Return adjustment in bytes. + (output_cbranch): Handle lengths as bytes. + (output_bb, output_dbra, output_movb): Likewise. + * pa.md (default length define_attr): Lengths are in bytes now. + (asm_attributes): Likewise. + (delay slot attributes): Deal with lengths in bytes. + (explicit length computations): Compute length in bytes. - * dbxout.c (dbxout_init): Vars wd and wd_gotten moved to top level - and renamed to cwd and cwd_gotten. + * Make more dbra insns and support movb insns. + * pa.h (output_dbra, output_movb): Declare. + * pa.md (dbra pattern): Use output_dbra. + (dbra pattern #2): New pattern. Also use output_dbra. + (movb, inverted movb): New patterns. + * pa.c (pa_adjust_insn_length): dbra and movb insns which have + their output in a FP register do not need adjustment. + (output_cbranch, output_bb): Handle conditional jump to the + following instruction. + (output_dbra): New function extracted from dbra pattern. + (output_movb): New function. + (eq_neq_comparison_operator): New function. + (movb_comparison_operator): New function. - * c-decl.c (start_function): -Wmissing-prototypes warns if static - function was previously used without a prototype. +Fri Jul 9 01:07:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * loop.c (find_and_verify_loop): Initialize uid_loop_num[0]. - (loop_optimize): Give up fast if no loops. + * config/m68k/mot3300.h (ASM_OUTPUT_OPCODE): Don't add .w suffix + to jump insns. - * stmt.c (expand_end_bindings): Don't adjust fp in nonlocal goto hndlr - if there is a nonlocal_goto insn. + * combine.c, cse.c: Include stdio.h before rtl.h. - * Makefile.in (cccp.o): Use just libdir in GPLUSPLUS_INCLUDE_DIR. +Wed Jul 7 18:06:45 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * gcc.c (do_spec_1): Supply missing arg in some recursive calls. + From moshier@world.std.com: + * sparc.c (singlemove_string): Convert SFmode by REAL_VALUE... macros. + * sparc.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): + Use REAL_VALUE_TO_DECIMAL to generate decimal string. + (REAL_ARITHMETIC): Define. -Fri Jan 31 21:50:03 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Use + STARTING_FRAME_OFFSET. + (STARTING_FRAME_OFFSET): Set to -16. - * m68k.h (OVERRIDE_OPTIONS): -fPIC is only supported on the 68020 - and later cpus. Give an error if -fPIC is tried on a 68000. + * c-parse.in (simple_if): Save stmt_count, and print empty body + warning here. + (if_prefix): Don't save stmt_count here. + (stmt): Don't print empty body warning here. -Fri Jan 31 21:39:33 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * combine.c (simplify_comparison): Add parentheses to satify gcc. + * sparc.c (sparc_frw_save_restore): Likewise. + * expr.c (convert_to_mode): Move misplaced parentheses. - * flow.c (find_auto_inc): If emitting a move insn in front of the - first insn in a block, update basic_block_head. +Wed Jul 7 16:37:26 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * caller-save.c (init_caller_save): Correctly check for case where the - save or restore insns aren't recognized. + * Improve code for conditional branches and dbra insns on the PA. + * pa.c (pa_adjust_insn_length): Rewrite so that it only adjusts + insns which really need adjustment. + (output_cbranch): Rework so that output templates are simpler. + Use shorter sequence for long backwards conditional branches with + a filled delay slot that is nullified. More agressively use "skip" + instructions. More agressively nullify the delay slot if nothing + useful could be placed there. + (output_bb): Likewise. + (forward_branch_p): New function. + * pa.md (conditional branches): Use the full displacement range + for the branch target. Update length computations to match current + reality. + (branch on bit patterns): Likewise. + (decrement_and_branch_until_zero): Re-enable pattern. Rewrite to + be simpler and more efficient. Also handle case where loop counter + is in a FP register. -Fri Jan 31 21:02:35 1992 Mark Eichin (eichin at cygnus.com) +Wed Jul 7 11:19:03 1993 Ian Lance Taylor (ian@cygnus.com) - * cp-decl.c (pushtag): when calling pushdecl, if we're in a - class_binding_level just do a pushdecl_class_level. Otherwise - pushdecl gets called multiple times on class-nested enums, which - short circuits the name list in the global_binding_level. + * glimits.h (MB_LEN_MAX): Don't override the value from the system + . Just define it if it is not already defined. -Fri Jan 31 00:14:20 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * collect2.c (main): Search for ld in the compiler directories. - * stmt.c (expand_goto): Use nonlocal_goto pattern if it exists. - * sparc.md (nonlocal_goto): New pattern. - Also nameless pattern for the special trap insn. +Wed Jul 7 13:40:55 1993 Jim Wilson (wilson@kropotkin.gnu.ai.mit.edu) - * gcc.c (S_ISDIR): Add default definition. + * collect2.c (fork_execute, scan_prog_file): Use "fork" in error + messages instead of "vfork" when vfork is defined to fork. - * function.c (expand_function_end): - Set up arg_pointer_save_area at start of function. +Tue Jul 6 16:38:36 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * c++: Accept -nostdlib, not -nostinc. + * sparc.c (sparc_type_code): Recognize SET_TYPE. For special + Fortran/Pascal types, just return qualifiers instead of aborting. - * va-sparc.h: If GCC v1, define __extension__ as nothing. - * va-i860.h, va-pyr.h, va-spur.h: Likewise. + * c-decl.c (insert_block): Correct typo in comment. - * cp-class.c (finish_struct): Fill in DECL_ALIGN of vtable field. + * combine.c (simplify_and_const_int, LSHIFTRT case): Must be at + least as many sign bit copies as bits in mask. - * regclass.c (reg_class_record): - Don't follow indirect loops in constraints. + * c-typeck.c (build_conditional_expr): All simplified results + must go through pedantic_non_lvalue. + * cp-typeck.c (build_conditional_expr): Likewise. + * fold-const.c (fold, COND_EXPR case): Likewise. + (pedantic_non_lvalue): New function. + * tree.h (pedantic_non_lvalue): Add declaration. - * function.c, expr.h (current_function_internal_arg_pointer): New var. - * function.c (assign_parms): Set it. - (push_function_context, pop_function_context): Save and restore it. - * expr.c (expand_builtin): Use it. - * function.h (struct function): New slot to save it in. + * fold-const.c (invert_truthvalue): Check for ERROR_MARK input. - * cse.c (cse_main): Calls do clobber arg pointer if not fixed. + * m68k.h (LEGITIMATE_BASE_REG_P): New macro. + (INDIRECTABLE_1_ADDRESS_P, GO_IF_INDEXABLE_BASE, + LEGITIMATE_INDEX_REG_P): Accept SUBREG everywhere REG is accepted. - * hp320.h (HAVE_ATEXIT): New definition. + * sparc.h (EXTRA_CONSTRAINT): For 'T', pass address not mem to + strict_memory_address_p call. For 'U', don't accept unallocated + pseudo-reg when strict. - * Makefile.in (ALL_CPPFLAGS): New variable. - Use in all compile steps instead of CPPFLAGS. - (X_CPPFLAGS, T_CPPFLAGS): New vars, used in ALL_CPPFLAGS. - * x-vax (X_CPPFLAGS): Use this instead of X_CFLAGS. + * sparc.c (output_move_quad): Implement CNSTOP case. - * stmt.c (expand_end_bindings): Fix typo. + * i960.h (ASM_OUTPUT_COMMON): Use SIZE not ROUNDED. -Fri Jan 31 12:15:09 1992 Ron Guilmette (rfg ay ncd.com) +Tue Jul 6 02:12:15 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c (LINE_LAST_ENTRY_LABEL): Definition added. - (dwarfout_finish): Put a label on the last .line section entry. - (dwarfout_finish): Make first word of final .debug_srcinfo record - contain the offset of the final .line section entry. + * cse.c (simplify_binary_operation, case MINUS): Fix backwards + test added in last change. -Fri Jan 31 10:31:44 1992 James Van Artsdalen (james at bigtex.cactus.org) + * config/i386/sun.h (SIZE_TYPE): Deleted. - * cp-tree.c (__eprintf): Make definition match assert.h - declaration. + * c-typeck.c (convert_arguments): Don't warn for -Wconversion + about signedness of an arg that's extended from narrower unsigned type. -Thu Jan 30 23:17:11 1992 Per Bothner (bothner at cygnus.com) + * c-decl.c (duplicate_decls): Don't warn for non-extern var decl + following an extern one (for -Wredundant-decls). - * c++: The flags -c, -S, or -E suppress passing -lg++ - to gcc. (Otherwise, gcc prints a warning.) +Mon Jul 5 17:50:27 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Jan 30 21:10:02 1992 Ron Guilmette (rfg at ncd.com) + * reload1.c (emit_reload_insns): Don't use gen_lowpart_common to + get reload register into proper mode. + * reload.c (subst_reloads): Likewise. - * dwarfout.c (dwarfout_init): Fix generation of initial .debug_aranges - entry to be Dwarf Version 1 compliant. + * combine.c (subst, case PLUS): Simplify (plus (comp A B) -1), etc. -Thu Jan 30 15:51:27 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * fold-const.c (fold, case EQ_EXPR, LE_EXPR): If comparing results + of signed MOD with zero, use an unsigned MOD. - * i386sun.h (LINK_SPEC): Delete useless %{-Bstatic} term. - * sun2o4.h (LINK_SPEC): Likewise. - * sun3.h (LINK_SPEC): Likewise. - * sparc.h (LINK_SPEC): Delete useless %{Bstatic} term. + * calls.c: Fix typo: had ARGS_GROW_DOWNARD. - * cccp.c (default_include): Delete use of obsolete - NO_STANDARD_INCLUDE_DIR macro. - * protoize.c (default_include): Likewise. + * configure (rs6000-ibm-aix): Use default files for aix3.2 and + aix31.h for aix3.[01]. Add new file x-aix31. + * rs6000.c (input_operand): Fix missing operand on a return. + (print_operand): Add new code '.'. + (rs6000_sa_size): Delete unused variable `i'. + (output_prolog, output_epilog): Use new RS6000_CROR_BIT_NUMBER. + * rs6000.h (CPP_PREDEFINES): Define _AIX32. + (ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP): Use ".text[PR]" as + csect name. + (RS6000_CROR_BIT_NUMBER): New macro. + (PRINT_OPERAND_PUNCT_VALID_P): Allow `.' as valid. + * rs6000.md (call patterns): Use %. in cror. + * x-rs6000 (CLIB): No longer need -lm. + * aix31.h, x-aix31.h: New files. + * aix32.h: Deleted. - * Makefile.in (libgcc1.null): Delete dummy.o and dummy.c. +Mon Jul 5 17:44:09 1993 John F Carr (jfc@Athena.mit.edu) -Thu Jan 30 15:34:06 1992 Michael Meissner (meissner at osf.org) + * romp.md (movhi): When storing a constant in an HImode register, use + cal16 instead of cal so that the high bits are clear (combine + requires this). - * gstdarg.h: Include va-mips.h on MIPS systems. +Mon Jul 5 17:15:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * va-mips.h (va_start): Provide alternate definition when included - via stdarg.h. - (va_arg): Use __alignof(...) instead of sizeof(...) to determine - whether or not to dword align the argument pointer. + * objc-act.c (encode_type_qualifiers): Add casts to enums in indices. -Thu Jan 30 13:06:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Jul 5 02:25:54 1993 Doug Evans (dje@wookumz.gnu.ai.mit.edu) - * Makefile.in (install-common): Get c++ and g++ from srcdir. + * Makefile.in: Parameterize libgcc.a and install-libgcc + (LIBGCC and INSTALL_LIBGCC). - * i860.h (FIXED_REGISTERS): Arg pointer is no longer fixed. + * tree.c (get_narrower): Preserve unsignedness when bitschange == 0. - * assert.h (__eprintf): Add const to string args in GCC ANSI case. +Sun Jul 4 02:55:46 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (cccp.o, protoize.o, unprotoize.o): - Define LOCAL_INCLUDE_DIR based on $(prefix). + * expmed.c (store_split_bit_field, extract_split_bit_field): + Handle fields split across more than 2 aligned units. - * stmt.c (expand_end_bindings): Arg pointer needs no special - treatment if not fixed. + * expr.c (store_field): Test STRICT_ALIGNMENT at run time. + (expand_expr, COMPONENT_REF case): Fetch unaligned field as bitfield. - * cp-parse.y, c-lex.c (yyerror): - Avoid sign-extension of characters in error messages. + * collect2.c (error, fatal, fatal_perror): Say collect2, not collect. -Thu Jan 30 11:39:56 1992 Ron Guilmette (rfg at ncd.com) + * c-parse.in (primary): In statement expression case, + if compstmt returns something other than a BLOCK, + return it unchanged. - * dwarfout.c (dwarfout_finish): Fix generation of .debug_pubnames - terminating entry to be 4-bytes of zero followed by a null string. +Sat Jul 3 20:32:43 1993 Minh Tran-Le (tranle@intellicorp.com) -Thu Jan 30 09:30:19 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fixinc.svr4: Added fixup for __STDC__ == 0 and __STDC__ == 1 + cases found in sequent PTX-2.0.x headers. - * rs6000.c (ccr_bit): Fix typo causing reference to possibly - undefined operand. +Sat Jul 3 18:54:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * rs6000.h (ASM_SPEC): Remove until new AIX assembler is available. - (ASM_OUTPUT_POOL_PROLOGUE): Add missing "." in csect name. - (ENCODE_SEGMENT_INFO): Deleted. - (ASM_OUTPUT_EXTERNAL): Move code from ENCODE_SEGMENT_INFO here, - using permalloc instead of putting name into saveable_obstack. - Re-enable macro. - (ASM_OUTPUT_EXTERNAL_LIBCALL): Re-enable. + * pa.c (call_operand_address): Do not accept registers anymore. + * pa.md (call expanders): Emit different patterns for named calls + and indirect calls. + (call_internal_symref, call_internal_reg): New patterns. + (call_internal): Deleted. Now handled by call_interal_{symref,reg}. + (call_value_internal_symref, call_value_internal_reg): New patterns. + (call_value_internal): Deleted. Now handled by + call_value_internal_{symref,reg). -Wed Jan 29 21:50:26 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Jul 3 16:40:52 1993 Doug Evans (dje@wookumz.gnu.ai.mit.edu) - * rs6000.h (ASM_SPEC): Add -u, now require new /bin/as for AIX. - (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): No longer needed. + * collect2.c (main): Give ld_file_name an initial value. - * rs6000.h (ENCODE_SEGMENT_INFO): New macro; add [RW] or [DS] to name. - (RS6000_OUTPUT_BASENAME): New macro. - (ASM_OUTPUT_*): Use it instead of assemble_name when required. - (ASM_OUTPUT_POOL_PROLOGUE): Remove trailing [RW] or [DS]. - * rs6000.c (print_operand, case 'z'): New case, for name in CALL_INSN. - (output_toc): Use RS6000_OUTPUT_BASENAME instead of assemble_name - for toc entry name. - * rs60000.md (call): Use %z. +Fri Jul 2 16:36:56 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Wed Jan 29 17:17:42 1992 Michael Tiemann (tiemann at cygnus.com) + * sparc.md (ashldi3+2): Change lshift to ashift. - * cp-init.c (build_member_call): Fix bug involving static members - that are function pointers. + * sparc.md (zero_extendhisi2, extendhisi2, extendqihi2, + extendqisi2): Preserve the SUBREG_WORD value of subreg operands. + (ashldi3): Delete, obsoleted by lshldi3 pattern. + (lshldi3): Rename to ashldi3 for consistency with SImode shifts. -Wed Jan 29 13:25:18 1992 Tom Wood (wood at dg-rtp.dg.com) +Fri Jul 2 01:10:56 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gcc.c (do_spec_1): For %D, only add -L options that are relevant. - (is_linker_dir): Determine if a -L option is relevant. + * Makefile.in (install-headers-tar): Ignore exit status of the + first tar command. -Wed Jan 29 00:57:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Thu Jul 1 14:31:45 1993 Doug Evans (dje@canuck.cygnus.com) - * configure: Turn ns32k alternatives back on. + * flow.c (find_auto_inc): In *p=expr;q=p+size case, avoid clobbering q + if referenced in expr. - * Makefile.in (getopt.o, getopt1.c): Join two lines into one. +Fri Jul 2 01:26:01 1993 Paul Eggert (eggert@twinsun.com) - * x-i386v4, x-i860v4 (GCC_CFLAGS): Add missing `-B./'. + * tree.h (pushcase, pushcase_range): Add a new converter + function argument that specifies how to convert case labels to the + nominal type. + * stmt.c (pushcase, pushcase_range): Likewise. + * c-parse.in (label): Use `convert_and_check' when checking for + overflow in case labels. + * cp-parse.y (simple-stmt): Similar change, but use `convert' instead; + this leaves the behavior unchanged for C++. A C++ expert should look + into this. - * reload.c (find_dummy_reload, push_reload): Don't reuse dying input - reg as a reload if it is a fixed reg. + * tree.h (TREE_OVERFLOW): New macro. + * c-common.c (constant_expression_warning, overflow_warning, + convert_and_check): Distinguish between TREE_OVERFLOW, which is just + for warnings, and TREE_CONSTANT_OVERFLOW, which is for required + pedantic diagnostics. + * c-typeck.c (c_sizeof, build_c_cast): Set TREE_OVERFLOW in addition + to TREE_CONSTANT_OVERFLOW. + (store_init_value): STRIP_TYPE_NOPS is required before + constant_expression_warning. + * fold-const.c: (const_binop, fold_convert, fold): + Set TREE_OVERFLOW in addition to TREE_CONSTANT_OVERFLOW. - * c-tree.h (C_MISSING_PROTOTYPE_WARNED): Deleted since unused. +Thu Jul 1 20:55:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 29 00:42:34 1992 Tim Moore (moore at fast.cs.utah.edu) + * reload1.c (eliminate_regs): Fix typo in BYTE_LOADS_ZERO_EXTEND. - * hp800.c (print_operand): Handle INSN_ANNULLED_BRANCH_P in '*' - operand type. - * hp800.h (DEFAULT_GDB_EXTENSIONS): Define as 0. - * hp800.md (cmpsi): Change arith_operand to arith5_operand. - (bCC patterns): Delete pattern that matches a compare with a - constant first operand. Change arith_operand to arith5_operand. - (fp branches): Change type to cbranch. +Thu Jul 1 20:00:00 1993 DJ Delorie (dj@ctron.com) - * function.c (assign_parms): Set current_function_arg_offset_rtx - correctly for ARGS_GROW_DOWNWARD. - * gstdarg.h: Include va-hp800.h. - * va-hp800.h: Complete rewrite. + * gcc.c (choose_temp_base): Try multiple variables. Don't + assume that the variable points to a valid directory. -Tue Jan 28 17:04:38 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * gcc.c (pexecute): Handle the MS-DOS return codes correctly. + Add .exe to file name when appropriate. - * varasm.c (make_decl_rtl): Delete unused var `i'. + * configure.bat: Make gcc use its own obstack.o. - * c-convert.c (convert_to_pointer): - Abort if no integer type is as wide as a pointer. + * objc/makefile.dos: New file for building with djgpp. - * gcc.c (default_compilers, .i case): Add error message for -pg - and -fomit-frame-pointer incompatibility. +Thu Jul 1 18:15:17 1993 Paul Eggert (eggert@twinsun.com) - * Makefile.in (install-common): Install c++ and g++ shell scripts in - bindir. + * fixincludes, fixinc.svr4: Don't create absolute symbolic links; + make them relative instead. + * fixincludes: Remove special case for IRIX 4.0.1 that was + superseded by a more general fix to fixincludes. -Tue Jan 28 15:44:10 1992 Michael Collison (collison at osf.org) + * fixinc.svr4: Remove everything after #endif, instead of trying + to turn it into comments, which loses inside comments. + * fixincludes: Likewise. Remove #endif workarounds for Ultrix 4.[12] + and SunOS 4.1, which are no longer needed because of this bug fix. - * x-encrose (OLDCC): changed to $(GNU_ROSE_BIN)/gcc +Thu Jul 1 14:56:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * ns32k.h: Added trampoline code. + * pa.h (OVERRIDE_OPTIONS): Define. Give a warning if -fpic or + -fPIC was specified on the command line. -Tue Jan 28 14:19:52 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * configure (hppa1.0-hp-hpux8.02): New target. + (hppa1.1-hp-hpux8.02): Accept "--gas" in this configuration. + * pa-oldas.h: New target for 1.0 machines running HPUX 8.02. + * pa.c (output_arg_descriptor): Reverse polarity of test for + HP_FP_ARG_DESCRIPTOR_REVERSED. + * pa.h (ASM_DOUBLE_ARG_DESCRIPTORS): Likewise. + * pa-hpux7.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Define. + * pa1-oldas.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Define. + (TARGET_DEFAULT): Clear useless bits in TARGET_DEFAULT. + * pa-utahmach.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Do not define here. + * pa1-utahmach.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Likewise. + * pa1-ghpux.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Likewise. + * pa1-hpux.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Likewise. - * rtl.def (UNSPEC, UNSPEC_VOLATILE): New RTL codes. - * cse.c (canon_hash): UNSPEC_VOLATILE operations are volatile. - * loop.c (invariant_p): Likewise. - * reorg.c (mark_referenced_resources): Likewise. - * sched.c (sched_analyze_2): Likewise. - * rtlanal.c (volatile_refs_p, side_effects_p, may_trap_p): Likewise. - (reg_referenced_p): Support UNPEC and UNSPEC_VOLATILE. +Thu Jul 1 09:48:23 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Jan 28 11:50:35 1992 Michael Meissner (meissner at osf.org) + * fold-const.c (fold, case GE_EXPR, LT_EXPR): Don't assume + result of comparison is integer_type_node. - * mips.c (toplevel): Add include of , since isdigit is - used. +Thu Jul 1 00:23:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) -Tue Jan 28 05:47:08 1992 Michael Tiemann (tiemann at cygnus.com) + * config/i386/mach.h (SIZE_TYPE): Definition deleted. - * cp-decl.c (xref_tag): Addition to eichin's Jan 25 change. If REF - is extant, and it's seen in the global scope outside of - CLASS_BINDING_LEVEL, set its IDENTIFIER_GLOBAL_VALUE if NULL. +Wed Jun 30 16:16:20 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (pushclass): Forcibly remove any remnants of incomplete - type that was previously pushed. + * config/m68k/sun3.h (SIZE_TYPE): Definition deleted. - * cp-decl.c (various places): Remove all error messages about C++ - constructs being invalid in C language context; extern "C" is a - linkage specifier--no more. +Wed Jun 30 16:55:25 1993 John F Carr (jfc@Athena.mit.edu) - * cp-method.c (dump_type_prefix,dump_type): Never need to output - `unsigned' since its always part of an unsigned integer type name. - (build_overload_name): Change test for unsigned to use - `unsigned_type' instead of examining TREE_UNSIGNED. + * mips.c (gen_int_relational): For test with constant result, + copy const0_rtx or const_true_rtx to result register instead + of allocating a new pseudo-register. - * cp-call.c (ideal_candidate): Don't convert PARMS in place if - BASETYPE is NULL_TREE. +Wed Jun 30 15:19:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) -Tue Jan 28 02:21:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config.sub: Recognize `gnu' as a valid operating system. Sheesh. - * c-decl.c (grokdeclarator): Use `auto' for nested fn fwd decls. +Wed Jun 30 13:43:45 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * g++: New file. + * pa.c (output_function_prologue): Emit SAVE_SP flag if a frame + pointer is needed. - * fixincludes: - Convert machine names in #if's to have underscores. - Fix specific files stdlib.h, locale.h, hsfs/... for Sunos 4.1. - * fixinc.svr4: Convert machine names in #if's to have underscores. +Wed Jun 30 00:52:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gcc.c (do_spec_1): For %D, also make -L's for startfile_prefix. - Also append the machine + * collect2.c (main): Don't look for `gld' or `TARGET-gld'. - * fold-const.c (fold_convert): Properly handle real-to-real case. + * fixincludes (stdtypes.h): Verify that size_t etc. follow whitespace. - * configure (i486-*-sysv4*): New alternative. + * expr.c (expand_expr, case PLUS_EXPR): In the special case + to return sym+integer as an expression, limit it to when + the non-CONST_INT arg is at least a constant. + (expand_increment): Do preinc with single insn if there's such an insn. -Tue Jan 28 00:37:24 1992 Ron Guilmette (rfg at ncd.com) + * stmt.c (expand_end_case): Pass 1 as UNSIGNEDP to emit_cmp_insn + when handling wide values. + Save original minval in orig_minval and use for making the table. - * dwarfout.c (location_attribute): Fix handling of objects which - were optimized out of existance for Dwarf Version 0 compliance. +Tue Jun 29 22:28:06 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Tue Jan 28 00:42:57 1992 James Van Artsdalen (james at bigtex.cactus.org) + * pa.c (singlemove_string): Use zdepi and ldil to load constants + into registers when appropriate. - * Makefile.in (mostlyclean): Delete stack dump files too. +Tue Jun 29 11:26:35 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Jan 27 18:26:27 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config.sub: Recognize -sysv* after -sysvr4. - * rs6000.h (HAVE_ATEXIT, NO_DOLLAR_IN_LABEL): Now defined. + * config/vax/vax.h (GO_IF_NONINDEXED_ADDRESS): Declare reg_equiv_mem. -Mon Jan 27 13:32:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Jun 28 20:12:04 1993 Steve Chamberlain (sac@apple-gunkies.gnu.ai.mit.edu) - * libgcc2.a (L_exit): Declare __CTOR_LIST__ and __DTOR_LIST__ - with length 2; get rid of __CTOR_END__ and __DTOR_END__. - (L_ctor_list, L_dtor_list): New library members. + * config/sh/*: Major rework. - * cccp.c (main): Add terminating null, then call trigraph_pcp. +Mon Jun 28 02:46:47 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fixincludes, fixinc.svr4: Fail unless an arg was given. - * Makefile.in (install-fixincludes): Pass output dir as argument. + * fixincludes (file): When changing VA_LIST to DUMMY_VA_LIST, + preserve _NEED___VA_LIST. - * Makefile.in: Renamed libgcc[12] to libgcc[12].a. - Likewise for tmplibgcc[12]. + * config/ns32k/ns32k.c (output_move_double): + Handle reg[n,n+1] = mem[reg[n] + reg[n+1]]. + * config/ns32k/ns32k.md (movdf, movdi): Delete `&' from constraint. - * toplev.c (rest_of_decl_compilation): Treat all fcns as if external. + * config/sparc/sparc.c (output_move_double): Use new local var + highest_first to make sure addreg1 gets handled in the overlap case. + In 2-reg-overlap case, really use proper reg in new address. - * Makefile.in (TAGS): Do the work in srcdir. - Include c-parse.h in files to move. + * config/i860/i860.c (output_move_double): + Handle reg[n,n+1] = mem[reg[n] + reg[n+1]]. Use new local var + highest_first to make sure addreg1 gets handled in the overlap case. + * config/i860/i860.md (movdf, movdi): Delete `&' from load constraint. -Mon Jan 27 10:54:24 1992 Jim Wilson (wilson at sphagnum.cygnus.com) + * config/sparc/sol2.h (CPP_SPEC): For -compat-bsd, put the ucbinclude + dirs before, not after. - * cccp.c (get_filename): Don't pass -1 file descriptor to close. + * expr.c (store_field): Store unaligned field with bit field methods. -Mon Jan 27 00:26:33 1992 Michael Tiemann (tiemann at cygnus.com) + * config/vax/vax.h (GO_IF_NONINDEXED_ADDRESS): If reload_in_progress, + check a REG's reg_equiv_mem the way we would check a MEM. - * cp-decl.c (start_function): Preserve TREE_TYPE of RESULT_DECL, in - case we have a named return value. - (finish_function): Restrict the cases under which we build - `no_return_label'. Use CURRENT_FUNCTION_RETURN_VALUE to eliminate - the generation of needless cleanups when functions end with a return - stmt. No longer zeros out CLEANUP_LABEL. Also, call `emit_jump' - instead of `expand_null_return' in case NO_RETURN_LABEL is - non-NULL. + * reload.c (find_reloads_address): Be selective about what inner + addresses to allow in an indirect mem ref. - * cp-decl2.c (grokfield): Don't specially hack static member - function names. +Sun Jun 27 16:40:59 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-except.c (cplus_expand_raise): Test correct predicate that we - have a non-null value return. - (cplus_expand_{throw,reraise}): Ditto. - - * cp-typeck.c (c_expand_return): Handle case where named return - value has incomplete type. - -Sun Jan 26 20:50:55 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-parse.y (LC): Fix rule to use `push_obstacks_nochange'. - (structsp): Use `pop_obstacks'. - -Sun Jan 26 17:39:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * c-parse.y (LC): Use push_obstacks_nochange and always call - end_temporary_allocation. - (structsp, template_instantiate_once): After LC, use pop_obstacks. - - * c-decl.c (grokdeclarator): - Static function decl within a function is not external. - -Sun Jan 26 08:14:53 1992 Michael Meissner (meissner at osf.org) - - * mips.h (MIPS_VERSION): Bump meissner version # to 9. - (enum processor_type): Delete PROCESSOR_R2000, since a r2000 - schedules just like a r3000. - (mips_isa, mips_isa_string, mips_cpu_string): New global variables. - (MD_EXEC_PREFIX): If not defined, define as "/usr/lib/cmplrs/cc/". - (TARGET_SWTICHES macros): Move setting the processor from - TARGET_SWITCHES to TARGET_OPTIONS. Also, delete the -mfixed-ovrfl - switch, and move -mwc8/-mwc16 to not use any bits, since we can't - support these in GCC 2.00. Readjust the positions the bits are in. - (TARGET_OPTIONS): Define to add switches -mcpu=x to set which - processor type to schedule for, and -mipsx to specify the - instruction set architecture level. - (BRANCH_LIKELY_P): New macro, true if MIPS ISA >= 2. - (HAVE_64BIT_P): New macro, true if MIPS_ISA >= 3. - (HAVE_SQRT_P): New macro, true if MIPS_ISA >= 2. - (BRANCH_COST): Define as 2 if r4000/r6000, 1 otherwise. - (ASM_OUTPUT_SKIP): Eliminate OSF/1 gas work around. + * emit-rtl.c (copy_rtx_if_shared): Don't try to copy a 0-length vector. - * mips.c (mips_isa, mips_isa_string, mips_cpu_string): New global - variables. - (print_options): Print CPU and ISA level. - (override_otpions): Handle TARGET_OPTIONS setting cpu and ISA. - (override_options, print_operand): %: is no longer supported, since - -mfixed-ovfl is eliminated. + * config/m68k/x-apollo68 (TAROUTOPTS): New definition. - * mips.md (type attribute): Add fsqrt. - (all define_function_units): Redo, to add full r6000 and r4000 - support, and to use the default case in case another processor type - is added. Also, tests against PROCESSOR_R2000 eliminated. - (add, subtract patterns): Delete use of %:. - (sqrtdf2, sqrtsf2): Define if the MIPS ISA >= 2. + * config.sub: Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4. - * decrose.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define these to - use the defaults on the OSF/1 reference platform. - (i386rose.h): Likewise. + * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Check for -iwithprefixbefore. + (option_map): Add --include-with-prefix-before and + --include-with-prefix-after. -Sun Jan 26 07:58:00 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Jun 27 16:04:52 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * cse.c (cse_insn): Don't call insert_regs on a SUBREG. - When scanning table for SUBREG assignment, ignore invalid entries. + * va-clipper.h: Use and define Macro __GNUC_VA_LIST. Define struct + __gnuc_va_list. + +Sun Jun 27 08:32:19 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cse.c (cse_insn): When looking for first non-deleted entry in - table, start by scanning backwards from the deleted entry. + * machmode.h (INTEGRAL_MODE_P, FLOAT_MODE_P): New macros. + * cse.c (simplify_*_operation, fold_rtx, record_jump_cond, cse_insn): + Use them. + * combine.c (subst, apply_distributive_law): Likewise. + (reversible_comparison_p): Likewise. + Can reverse if MODE_COMPLEX_INT or MODE_PARTIAL_INT. + + * function.c (fixup_stack_1): Handle + current_function_internal_arg_pointer. + + * stor-layout.c: Add prototypes for layout_record and layout_union. + (smallest_mode_for_size): New function. + (variable_size): Allow variable sizes if global_bindings_p returns a + negative value. + (mode_for_size): Fix incorrect comment. + (layout_decl): If DECL has a size already, don't copy from type. + (layout_type, case INTEGER_TYPE, ENUMERAL_TYPE): Use smallest + integer mode that fits, whether or not it fits exactly. + + * emit-rtl.c (restore_emit_status): Clear LAST_LABEL_NUM. - * function.c (assign_parms): Set current_function_return_rtx - unconditionally. - (expand_function_start): Don't set it here. + * calls.c (expand_call): If function hasn't been used before, + call assemble_external. -Sat Jan 25 06:44:16 1992 Mark Eichin (eichin at cygnus.com) + * expr.c (store_constructor): Treat QUAL_UNION_TYPE just + like UNION_TYPE. + (safe_from_p, case ADDR_EXPR): EXP is safe from X it is is static or + if the object whose address is being taken is safe from X. + (expand_expr): Fix misplaced comment from last change. + (expand_expr, case *_DECL): If not already used, assemble external. + (expand_expr, case EXIT_EXPR): Simplify. + (expand_expr, TRUTH_{AND,OR}IF_EXPR): Properly handle IGNORE case. - * cp-decl.c (set_identifier_local_value): New function. Clone of - set_identifier_type_value, but uses level->shadowed instead. Only - used in pushdecl, where the non-global install was previously - setting the local value directly which "stuck" and didn't get - cleared the next time through. - (pushdecl): use set_identifier_type_value so that the local value - actually gets erased when we leave this level. Changed code that - checks for global_binding_level to recognize that if - class_binding_level is set, we're not in the global one. - (poplevel_class): restore shadowed list too, like poplevel does. - (print_binding_level): added no_print_functions and - no_print_builtins variables to eliminate clutter while trying to - debug binding level problems. + * tree.c (array_type_nelts): Tighten up code and make more general. + (build_function_type): Allow function to return array. + (decl_function_context): Treat QUAL_UNION_TYPE like UNION_TYPE. -Fri Jan 24 18:03:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fold-const.c (fold, case TRUTH_XOR_EXPR): End with `return', + not `break'. - * tree.c (pop_momentary): Don't reference freed stack entry. + * dwarfout.c (output_compile_unit_die): Add support for Ada. -Fri Jan 24 14:20:05 1992 Michael Tiemann (tiemann at cygnus.com) + * c-iterate.c (collect_iterators, case SAVE_EXPR): Simplify code + added in previous change. - * cp-parse.y (stmt): Call `define_case_label' for default label. - * cp-decl.c (current_function_return_value): New variable. - (define_{case_}label): Clear CURRENT_FUNCTION_RETURN_VALUE. - * cp-typeck.c (c_expand_return): Set CURRENT_FUNCTION_RETURN_VALUE. + * expr.c: Fix typo: was ARGS_GROW_DOWNARD. - * cp-tree.c (lang_printable_name): Use DECL_RING, and don't free - the printable name for CURRENT_FUNCTION_DECL. + * combine.c (subst, case IF_THEN_ELSE): Install correct version of + last change. -Fri Jan 24 14:17:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Jun 26 15:38:33 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gvarargs.h: If _ANSI_H, undef _VA_LIST_. + * cccp.c (main): For -iwithprefix, if no include_prefix, + make a default from GCC_INCLUDE_DIR. + Support -iwithprefixbefore. - * c-typeck.c (pointer_int_sum): Don't distribute * into pointer diff. + * reload.c (find_reloads): When merging reloads again after they have + been changed, do check reload_reg_class and reload_nocombine. - * hp320.h (MD_STARTFILE_PREFIX): Defined. - (STANDARD_STARTFILE_PREFIX): Deleted. + * config/sparc/sparc.md (movdf recognizer): Remove & from + constraint for loading mem to cpu reg. -Fri Jan 24 09:30:41 1992 Fred Fish (fnf at fishpond) + * expr.c (expand_assignment): If FROM is scalar function call, + expand_expr FROM before TO. - * assert.h (__eprintf): Declare as prototype for __STDC__ + * gcc.c (translate_options): `*' inhibits warning of extraneous arg. -Fri Jan 24 05:28:53 1992 James Van Artsdalen (james at bigtex.cactus.org) +Sat Jun 26 11:07:23 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * i386.md (jump,indirect_jump,tablejump): Don't output an align - directive here: let the following BARRIER do it. + * reload1.c (reload): Use reg_equiv_address for invalid addresses + of the form (mem (reg)). -Thu Jan 23 11:54:11 1992 Ron Guilmette (rfg at ncd.com) + * config/*/xm-*.h: Remove line that #define's alloca + to __builtin_alloca. - * i486v4.h: New file. + * fold-const.c (fold, case PLUS_EXPR, MINUS_EXPR): Apply + distributive law to multiplication. + (fold, case *_DIV_EXPR): Replace code to handle (A*C1)/C2 with + more general code to handle addition as well. + (fold, case *_MOD_EXPR): Add simplified version of above code. -Thu Jan 23 20:34:22 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * integrate.c (function_cannot_inline_p): Can now inline nested + functions. + (expand_inline_function): Set up static chain if needed. + (output_inline_function): Don't switch to temporary allocation + here. + * toplev.c (compile_file): Switch to temporary allocation when + writing out inline function. + * cp-decl2.c (write_vtable_entries, finish_file): Likewise. + * c-decl.c, cp-decl.c (poplevel): Start new function context + when writing inline function. - * fixinc.svr4: Surround uses of ${INPUT} with "" instead of '' - so that it will get expanded. + * c-decl.c (init_decl_processing): When making SIZETYPE, + start with name in SIZE_TYPE. If -traditional, use a + signed version of that type, if it is unsigned. -Thu Jan 23 17:50:13 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fold-const.c: Add prototypes for static functions. + ({l,r}{shift,rotate}_double): COUNT arg is HOST_WIDE_INT, PREC is int. + (all_ones_mask): Remove __inline__. + (range_test): Make static; not used elsewhere. + * tree.h: Add more decls for functions in fold-const.c. - * cse.c (qty_mode): New variable. - (reg_rtx): Deleted. - (hard_regs_in_table, regs_invalidate_by_call): New variables. - (new_basic_block): Clear hard_regs_in_table. - (delete_reg_equiv): New name for reg_invalidate; don't update reg_tick. - (mention_regs): Don't set reg_rtx. - Update reg_tick for all registers in a multi-register hard register - reference. - (insert_regs): Don't do anything special with SUBREG. - Only insert register in a class if it is the same mode. - Don't set reg_rtx; set qty_mode instead. - (insert): Update hard_regs_in_table. - Get constant equivalence in proper mode. - (merge_equiv_classes): Call delete_reg_equiv. - (invalidate): Call delete_reg_equiv and update reg_tick. - Invalidate all parts of multi-word hard regs and invalidate - any multi-word hard reg overlapping what we are to invalidate. - Only look at constant in proper mode. - (remove_invalid_refs): Use refers_to_regno_p. - (invalidate_for_call): New function. - (canon_hash, refers_to_mem_p, fold_rtx, equiv_constant): Look at - constant in proper mode. - (cse_rtx_addr_varies_p, cse_process_notes): Likewise. - (exp_equiv_p): Likewise. - Check reg_tick for all parts of multi-word hard register. - (canon_reg): Don't use reg_rtx; get register from regno_reg_rtx or - build hard reg in proper mode. - (record_jump_equiv): Split into two pieces. - (record_jump_cond): Second part of record_jump_equiv; make recursive - call to some equivalences if args are SUBREGs. - (cse_insn): Only replace register with equivalent if proper mode; - don't use reg_rtx. - Call invalidate_for_call. - Don't avoid call to gen_lowpart for hard register. - Make a SUBREG if gen_lowpart_if_possible fails for SUBREG - assignment. - (invalidate_from_clobbers): Update reg_tick of SP; invalidate - REG entry in table, if present; use stack_pointer_rtx. - (cse_main): Don't allocate reg_rtx. - Initialize regs_invalidated_by_calls. - (cse_basic_block): Allocate qty_mode. + * calls.c (expand_calls): Fix typo: ALLOCATE_OUTGOING_ARGS + should be ACCUMULATE_OUTGOING_ARGS. - * rs6000.h (ADDITIONAL_REGISTER_NAMES): Add so we can disambiguate - fixed and floating registers. + * tree.def (TRUTH_{AND,OR,XOR}_EXPR): Make code class be 'e' like + the rest of the truth operations. + * fold-const.c (fold_truthop): Treat a BIT_AND_EXPR with a constant of + one as if it were surrounded with an NE_EXPR. + (fold): Don't move operation into conditional if it + is BIT_{AND,OR}_EXPR with the constant 1; change it to TRUTH_*_EXPR + instead. + When moving things inside conditions, move comparisons as well as + binary operations. + Don't make a SAVE_EXPR when moving things inside conditionals unless + the value would really have been used twice. - * rs6000.md (ashrdi3): Reject all but constant shift counts. + * expr.c (do_store_flag): When computing via a shift, allow for + an inner RSHIFT_EXPR in BITNUM. + Sometimes do the operations as signed. - * jump.c (simplejump_p): Don't access PATTERN unless we know it is - a JUMP_INSN. + * combine.c (subst): apply_distributive_law can also handle AND. + (subst, case IF_THEN_ELSE): Make a shift when appropriate. + (simplify_shift_const): If we have an outer operation and made + a shift, see if it can be simplified. - * combine.c (get_last_value): Don't do a recursive call for a - paradoxical SUBREG. +Sat Jun 26 03:25:35 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): In "if (...) x = a; else x = b;", - don't move "x = b;" if it has non-trivial REG_NOTES. Also, allow - B to be any constant, not just a CONT_INT. + * configure (i370-*-mvs*): New configuration. + * config/i370/i370.md, mvs370.c, tm-mvs.h, xm-mvs.h - * stor-layout.c (layout_type): Handle alignment for arrays the same - as we do for records and unions. + * final.c, varasm.c: Include ctype.h. + * c-lex.c: Include ctype.h. + (isalnum, isdigit): Macros deleted. - * calls.c (expand_call): Ignore `const' on void functions. + * config/sparc/sparc.c (output_move_double): Handle + reg[n,n+1] = mem[reg[n] + reg[n+1]]. + * config/sparc/sparc.md (movdi): Delete the earlyclobber in load case. - * i860.c: Include recog.c. - Remove many explicit declaration of vars from include files. - (i860_compare_op[01]): Define these here. - * i860.h (i860_compare_op[01]): Add declarations. - * i860.md (compare, branch): Rework to use define_expand for cmpxx. - Compare just saves operands in i860_compare_op[01]. Branch emits - both insns using the saved operands. +Sat Jun 26 03:15:38 1993 Doug Evans (dje@wookumz.gnu.ai.mit.edu) - * i860.h (PREFERRED_RELOAD_CLASS): Handle FP registers and constants. - (SECONDARY_INPUT_RELOAD_CLASS): We need a scratch register to copy - an integer constant to a floating-point register. - * i860.md (addsi3, subsi3): Allow use of floating registers. + * gcc.c (option_map): Add missing comma. -Thu Jan 23 13:33:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Jun 26 02:17:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386v4.h (CPP_PREDEFINES): Don't define X86. + * config/we32k/we32k.c: Clean up formatting. - * c-lex.c (readescape): Warn for \a and \x if warn_traditional. - Handle \v as vertical tab regardless of -traditional. + * calls.c (calls_function_1): Add declaration. - * fixincludes, fixinc.svr4: Make LIB absolute, near the beginning. + * config/m68k/m68k.md (fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2): + Require TARGET_68881 as well as TARGET_68040. - * fixincludes: Simplify egrep command while matching the same lines - (plus occasional additional lines). +Fri Jun 25 20:13:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * function.c (fixup_memory_subreg): New arg UNCRITICAL. Calls changed. + * calls.c (calls_function): Don't scan a single save_expr twice. + (calls_function_1): New subroutine for the actual recursion. - * gcc.c (process_command): Handle LPATH like LIBRARY_PATH. + * c-parse.in (all_iter_stmt_simple): Add missing `else'. - * svr3.h (ASM_LONG): Deleted. +Fri Jun 25 15:53:59 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * gvarargs.h: Ignore _VA_LIST_ if _ANSI_H_; - don't define _VA_LIST_ if already defined. + Cygnus<->FSF merge. + Fri Jun 25 10:00:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Jan 23 09:10:52 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-decl.c: Delete some #if 0'd code that has been there forever. - * m88kluna.h (includes): Include aoutos.h. + * cp-type2.c (my_friendly_abort): Update count of aborts (added by + emit_base_init rewrite). -Thu Jan 23 09:10:52 1992 Ron Guilmette (rfg at ncd.com) + Make default copy constructors work properly. + * cp-lex.c (cons_up_default_function): Mark the generated ctor with + RID_INLINE, so it won't get emitted unless it's needed. + * cp-decl.c (grok_ctor_properties): If CTYPE has virtual base + classes, make sure we don't pay attention to the int that we + magically added to the ctor decl. + * cp-ptree.c (print_lang_type): Note a const copy ctor vs a normal + copy ctor. Say if TYPE_HAS_DEFAULT_CONSTRUCTOR. + * cp-tree.h (cons_up_default_function): Modify prototype. + * cp-class.c (finish_struct): Also check TYPE_HAS_CONSTRUCTOR, so + we don't generate a default ctor if they already declared one + (taking whatever arg types). - * va-i860.h (__savereg): Fix typo. + Wed Feb 3 17:41:02 1993 Chip Salzenberg (chip@tct.com) - * i860.h (PREDICATE_CODES): Added definition. + * cp-class.c (needs_const_ctor): Eliminate as meaningless. + (finish_struct) Always generate default functions. + Generate exactly one copy constructor: either "X(X&)" or + "X(const X&)", but not both. + * cp-lex.c (cons_up_default_function): Take list of fields + as a new parameter. Use default_copy_constructor_body. + Set TREE_PUBLIC and DECL_EXTERNAL correctly for usage with + #pragma interface. + (default_copy_constructor_body): New function (uses obstacks). - * i386v4.h (ASM_FILE_START): Definition added which generates - .version directive. + Thu Jun 24 12:41:16 1993 Mike Stump (mrs@rtl.cygnus.com) -Wed Jan 22 23:15:45 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-call.c (build_scoped_method_call, build_method_call): Remove + maybe_adjust argument to build_delete as it is unneeded and remove all + support for the magic cookie key in the area just before the data + allocated by new []. + * cp-decl.c (finish_function, maybe_build_cleanup, + push_exception_cleanup): Likewise. + * cp-decl2.c (delete_sanity, finish_file): Likewise. + * cp-init.c (init_init_processing, build_new, + maybe_adjust_addr_for_delete, build_delete, build_vbase_delete, + build_vec_delete): Likewise. + * cp-tree.c (build_cplus_new): Likewise. + * cp-tree.h (build_delete): Likewise. - * make-cc1.com: Predefine symbols for "rename" and "bison"; always - generate c-parse.h when generating c-parse.c. + Wed Jun 23 17:18:41 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jan 22 20:01:11 1992 Per Bothner (bothner at cygnus.com) + * cp-decl.c (init_decl_processing): Also catch SIGBUS. + (sigsegv): Rename to signal_catch; also reset SIGBUS. - * sdbout.c (sdbout_record_type_name): Use typedef names - for C++. (A kludge.) - * sdbout.c (sdbout_one_type): Emit base classes as - dummy fields, just like dbxout.c when not using gdb extensions. + * cp-typeck.c (pointer_diff): Error if op1 is a pointer to an + incomplete type. -Wed Jan 22 20:01:11 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + Wed Jun 23 16:17:43 1993 Mike Stump (mrs@rtl.cygnus.com) - * fixincludes: Surround uses of ${INPUT} with "" instead of '' - so that it will get expanded. + * cp-search.c (dfs_get_vbase_types, get_vbase_types): Conform to ARM + 12.6.2 with respect to virtual bases. Virtual bases are now + initialized in dfs order. - * gcc.c (default_compilers): For c++, define __GNUG__ to 2, and - pass -trigraphs. + Wed Jun 23 16:04:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cccp.1, cpp.1, gcc.1, g++.1: Delete more RCS variables. + * cp-tree.c (layout_basetypes): Disable the warning relating to a + non-virtual dtor. -Wed Jan 22 19:02:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Tue Jun 22 20:03:59 1993 Mike Stump (mrs@cygnus.com) - * combine.c (simplify_shift_const, case ASHIFT): If we will - be suppressing a sign extension because the upper bits are - already the same, verify that the operand is in the same - mode as we will be doing the shift; don't ignore a SUBREG - inside the inner SHIFT. + * cp-lex.c (reinit_parse_for_block): Detect EOFs inside templates. -Wed Jan 22 09:25:07 1992 Tom Wood (wood at dg-rtp.dg.com) + Tue Jun 22 16:10:46 1993 Mike Stump (mrs@cygnus.com) - * c-typeck.c (comp_target_types): Make decl static. - Don't forget to return the value. - (function_types_compatible_p, comptypes): Initialize `val'. + * cp-class.c (finish_struct): Set TYPE_NONCOPIED_PARTS now that the + right vtable can be found, so that the vtable pointers are set + correctly when implementing default copy constructors. + * cp-typeck.c (build_modify_expr): Use TYPE_NONCOPIED_PARTS in the + same way the backend uses it when implementing default copy + constructors. -Tue Jan 21 13:29:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Tue Jun 22 10:50:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cross-make (ALL): Override with definition it here. - * configure: Don't edit its value explicitly here. + * cp-decl.c (grokdeclarator): Don't try to mangle the name of a fn + that has C linkage. - * crtstuff.c (__do_global_ctors): Include DO_GLOBAL_CTORS_BODY - in crtend.o, not in crtbegin.o. + * cp-init.c (xref_friends): Deleted fn, since it's the same as + xref_friend. + (xref_friend): Make it static. + (do_friend): Change call to xref_friend. + * cp-tree.h (xref_friend, xref_friends): Delete extern decls. - * svr3.h: Prepare to use with i386. - (PCC_BITFIELD_TYPE_MATTERS): Definition deleted. - This pertains to the individual cpu types. - (ASM_SHORT, ASM_LONG, ASM_DOUBLE): Likewise. - (DBX_DEBUGGING_INFO): Undef this. - (DBX_REGISTER_NUMBER): Deleted the #undef. - (STARTFILE_SPEC, LINK_SPEC, LIB_SPEC): Deleted. - * i860v3.h (STARTFILE_SPEC, LINK_SPEC, LIB_SPEC): New definitions. + * cp-tree.h (lang_type): Delete `dynamic' bit. + * gplus.gperf (dynamic): Delete reserved word. + * cp-hash.h: Generated a new version. + * cp-lex.c (init_lex): Delete doing an unset of `dynamic'. + * cp-parse.y (DYNAMIC): Delete token and setting it to %right. + (new, aggr): Delete DYNAMIC rules. + * cp-spew.c (init_spew, struct toks_follow_types): Delete DYNAMIC. - * att386.h: Coexist with svr3.h. - (ASM_FILE_START): Deleted. - (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise. - (ASM_BYTE_OP, NO_DOLLAR_IN_LABEL): Likewise. - (ASM_OUTPUT_LABELREF): Undef before defining. - (ASM_FILE_START_1): Undef before defining. - (EXTRA_SECTION_FUNCTIONS): Deleted. - (BSS_SECTION_FUNCTION): New macro; defines bss_section. + * cp-typeck.c (convert_for_assignment): There's no standard + conversion from a pointer to member to a `void *'. - * i386v.h, aix386.h: Include svr3.h. - (SCCS_DIRECTIVE, ASM_OUTPUT_IDENT): Deleted. - (TARGET_MEM_FUNCTIONS): Deleted. - (SDB_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Deleted. + * cp-decl.c (init_decl_processing): Add builtins for + __builtin_apply_args, __builtin_apply, and __builtin_return. - * Support constructors and destructors on svr3. From james@bigtex. - * i386v.h, aix386.h (STARTFILE_SPEC): Use crtbegin.o after crt1.o. - (LIB_SPEC): Use crtend.o before crtn.o. - (CTORS_SECTION_ASM_OP, ASM_OUTPUT_CONSTRUCTOR): New macros. - (INIT_SECTION_ASM_OP): Likewise. - * svr3.h (DTORS_SECTION_ASM_OP): New macros. - (DO_GLOBAL_CTORS_BODY): New macro. - (EXTRA_SECTIONS,EXTRA_SECTION_FUNCTIONS): Use .init and .fini - sections in addition to .bss. - ({INIT,FINI}_SECTION_FUNCTION): New macros for *_section functions. - ({CTORS,DTORS}_SECTION_FUNCTION): Macros deleted. - (ASM_OUTPUT_CONSTRUCTOR): Deleted. - (ASM_OUTPUT_DESTRUCTOR): Use ASM_LONG. - (INT_ASM_OP): Deleted. + Mon Jun 21 12:05:28 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * c-typeck.c (default_conversion): Don't use initial value if BLKmode. - If do use the initial value, update `type'. + * cp-decl2.c (grok_x_components): New function. Adjust the code that + handles ENUMERAL_TYPEs and UNION_TYPEs to make more sense. + * cp-parse.y (component_decl): Move a lot of code into that fn. + * cp-tree.h (grok_x_components): Add extern decl. - * arm.h (STRUCTURE_SIZE_BOUNDARY): New definition. + * cp-parse.y (component_decl_list): Don't warn about a semicolon + after a component_decl_list. - * stor-layout.c (layout_type): Ignore MAX_FIXED_MODE_SIZE for integers. + * cp-search.c (lookup_field): Be careful to handle operators + properly when complaining about ambiguities &c. - * ultrix.h (SIZE_TYPE): Use `unsigned int'. - * Makefile.in (install-common): Add missing -f in rm. - (install-fixincludes): Install the README file. + * cp-search.c (dfs_pushdecls): Make sure we have a context before + seeing if it derives from TYPE. - * fixincludes: Don't match on size_t, etc., since we don't actually - change them. + Fri Jun 18 08:14:11 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Jan 20 23:22:45 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-decl2.c (finish_anon_union): Use simple_cst_equal to find the + member that can hold all the values, instead of just doing a compare + between the DECL_SIZEs. - * cp-call.c (ideal_candidate): Don't see two functions as ambiguous - if one is argument-by-argument equivalent or better than another. + Wed Jun 16 10:57:37 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Jan 20 14:08:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-typeck.c (build_unary_op): Make sure it's the global fn `main' + before complaining about taking the address of it. - * toplev.c (strip_off_ending): Add ".ada". + * cp-decl.c (grokdeclarator): Also forbid `operator ()' as a + non-member fn. -Mon Jan 20 13:53:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (grok_reference_init): Don't allow an initializer list + as the initializer for a reference. - * protoize.c (xfree): No longer static. + * cp-method.c (dump_init): Handle a NON_LVALUE_EXPR. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Allow tm.h to override. + Sun Jun 13 12:55:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * final.c (leaf_renumber_regs_insn): Do just the pattern of an insn. + * cp-decl.c (grokvardecl): Don't complain about duplicate + definitions of `extern "C"' declarations (parallelize it with how + regular `extern' decls are handled). - * pyr.h (PCC_BITFIELD_TYPE_MATTERS): Defined. - (STRUCTURE_SIZE_BOUNDARY): Deleted. + * cp-decl.c (start_function): Avoid a null-reference on CTYPE. - * mips.c: Clean up spacing around square brackets. + * cp-cvt.c (build_default_binary_type_conversion): Look deeper into + what ARG1 and ARG2 are if they're POINTER_TYPEs. - * c-typeck.c (convert_arguments): - Get rid of feature to convert to a tagless union type. - (common_type): Add pedantic warning. - (comptypes, function_types_compatible_p): Return 2 meaning warn. - (comp_target_types): Do the warning here. - (type_lists_compatible_p): New function. + Thu Jun 10 12:09:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sun Jan 19 17:32:19 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (grokdeclarator): Make the warning about opr-eq being a + member function be a pedwarn. - * reload1.c (emit_reload_insns): Fix typos when checking for secondary - icode. + Thu Jun 10 00:30:08 1993 Mike Stump (mrs@cygnus.com) -Sun Jan 19 15:28:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h: (previous_class_type): Add external declaration. + * cp-class.c (prev_class_type): Rename to previous_class_type. + * cp-decl.c (struct saved_scope): Add previous_class_type slot. + * cp-decl.c (push_to_top_level, pop_from_top_level): Track + previous_class_type value. The only trick is that we have to call + popclass(-1) when we have a previous_class_type that we are about to + destroy, to keep things in sync. - * global-alloc.c (global_alloc): If LEAF_REGISTERS, those are the - regs that cost nothing to save, for setting regs_already_used. + Tue Jun 8 16:48:49 1993 Mike Stump (mrs@cygnus.com) - * expr.c (expand_builtin): Preserve function value reg - around the call to __builtin_saveregs. + * cp-cvt.c (build_thunk, convert_fn_ptr): New routines to handle + thunks. + * cp-cvt.c (cp_convert_to_pointer): Use convert_fn_ptr when + converting non-static pointer to members. - * configure (mips-sgi-irix4*, mips-sgi-irix*): Set install_with_cp. + Tue Jun 8 16:41:59 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * c-decl.c (start_function): - Check properly for `static' function in handling -Wmissing-prototypes. + * cp-lex.c (reinit_parse_for_block): Make sure not to try to use + consume_string on an escaped double-quote. - * libgcc2.c (__main): Omit this fn if INIT_SECTION_ASM_OP. + Tue Jun 8 16:25:43 1993 Mike Stump (mrs@cygnus.com) -Sun Jan 19 13:23:13 1992 Fred Fish (fnf at sunfish) + * cp-call.c (build_method_call): Don't search hidden functions from + base classes, as this violates chapter 10. - * amix.h (ASM_OUTPUT_ASCII): Override version in svr4.h. + Mon Jun 7 18:46:01 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sun Jan 19 13:16:56 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-init.c (emit_base_init): Rewrite, merging the two paths into + one for member initialization. Now members will be initialized in + order of declaration, not in the order of the mem-initializer list. + (perform_member_init, sort_member_init): New functions. - * cp-search.c (lookup_field): Accept IS_AGGR_TYPE_CODE, not - just == RECORD_TYPE. + Mon Jun 7 18:01:31 1993 Mike Stump (mrs@cygnus.com) - * cp-class.c (finish_struct): Clear a tentative setting of - DECL_BIT_FIELD. + * cp-search.c (is_subobject_of_p, lookup_field, lookup_fnfields): + Because virtual bases don't necessarily share the same binfo, use + the binfo hierarchy of TYPE_BINFO of any virtual bases, when + performing hiding checks. Fixes problem introduced on Thu Mar 25 + 23:09:27 1993. The symptom is the compiler reports non ambiguous + members as being ambiguous. - * cp-decl.c (start_decl): Don't call `pushclass' for incomplete - CONTEXT. + Sun Jun 6 11:45:44 1993 Michael Tiemann (tiemann@rtl.cygnus.com) - * cp-typeck.c (comp_target_types): Call `comp_target_parms' with - STRICT == 0, not -1. - (build_conditional_expr): Check that the target types of TYPE1 and - TYPE2 are aggr type before calling `common_base_type'. + * cp-call.c (EVIL,TRIVIAL): New macros. + (convert_harshness): Use these macros. -Sun Jan 19 04:10:16 1992 James Van Artsdalen (james at bigtex.cactus.org) + Sat Jun 5 19:06:13 1993 Michael Tiemann (tiemann@rtl.cygnus.com) - * configure: Fix typo inserting INSTALL=cp into makefile. + * cp-init.c (emit_base_init): Make clearing BINFO_BASEINIT_MARKED + symmetric with its setting. Fixes p2825. -Sat Jan 18 12:06:58 1992 Michael Tiemann (tiemann at cygnus.com) + Thu Jun 3 16:24:30 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-lex.c (build_with_cleanup): Delete obsolete function. - * cp-tree.c (break_out_cleanups): New function. - * cp-decl.c (cplus_expand_expr): Call `break_out_cleanups'. - * cp-typeck.c (build_compound_expr): Ditto. + * cp-parse.y (component_declarator, component_declarator0): + Allow attribute after nameless field. - * cp-call.c (convert_harshness): Make any inheritance relationship - preferable to a void* conversion. - * cp-tree.h (CLASSTYPE_MAX_DEPTH): New macro. - * cp-class.c (finish_struct_bits): Set CLASSTYPE_MAX_DEPTH. + * cp-lex.c (real_yylex): Take care to expand token_buffer before + storing each character. - * cp-cvt.c (build_up_reference): Don't return in ARRAY_REF case, - since we may need to adjust the return value for complex - inheritance. + * cp-lex.c (real_yylex): If an integer value overflows so the high + word is negative, it's of unsigned long long type. Integer constant + is unsigned for purposes of int_fits_type_p so that it compares huge + constants properly. Warn about integers so large that they are + unsigned. - * cp-decl2.c (lang_f_options): Add recognizers for -f{no-}builtin, - -f{no-}ident, and -ansi. Also, remove unnecessary "no-*" forms. + * cp-cvt.c (convert_from_reference): Do an or-equals on setting + TREE_SIDE_EFFECTS for NVAL. + * cp-tree.c (lvalue_p): For a SAVE_EXPR, check its first argument. - * cp-init.c (emit_base_init): If PEDANTIC, don't let base - initializers leak up the hierarchy. + Thu Jun 3 11:34:35 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-parse.y (structsp): Disable gratuitous error message. + * cp-decl2.c (grok_alignof): New function. + * cp-parse.y (unary_expr, ALIGNOF unary_expr rule): Move the code + into the new function, to reduce the size of the parser. + * cp-tree.h (grok_alignof): Add prototype. - * cp-call.c (convert_harshness): Don't overlook PENALTY when - signed/unsigned differences are noted (in both POINTER_TYPE and - REFERENCE_TYPE cases). + * cp-decl.c (grokdeclarator): Allow function-call notation for + initialization of scalars as well as aggregates. - * toplev.c (strip_off_ending): Grok ".ii" endings (C++ preprocessed - files). + * cp-decl.c (pushdecl): Don't pay attention to friends when noting a + missing `static' decl. Disable this code for now. - * cp-typeck.c (build_component_ref): Add special handler when - COMPONENT is the CLASSTYPE_VFIELD name for BASETYPE. + Wed Jun 2 12:23:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sat Jan 18 08:29:58 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (duplicate_decls): Do a regular error if the line number + on NEWDECL hasn't been set yet (e.g., before finish_struct). - * cse.c (cse_insn): Don't make constant pool entries in MODE_CC modes. + * cp-class.c (finish_struct): Remove warning about a bit-field + having a bad type in ANSI C++, it's not appropriate given the + warning immediately above. -Sat Jan 18 00:28:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-typeck.c (require_instantiated_type): Don't allow an + initializer list in an argument list. - * Makefile.in (install-common): Fix typo installing gcc. - - * crds.h, isi.h, newpbb.h, tti68k.h: Add #error because -m68000 - will cause a crash (I think), to ask people what to do. + * cp-decl.c (pushdecl): Change shadowing of a param in outermost + block of the fn from a pedwarn to an error, since it's a + redeclaration. - * gmicro.h (ASM_FILE_START): Don't do anything. - (TARGET_DEFAULT): Turn on the bitfield flag. - (TARGET_SWITCHES): Get rid of the bitfield options. + * cp-class.c (finish_struct): Say anonymous classes and structs are + useless, not just classes. - * c-lex.c (readescape): No warning for \?. + * cp-lex.c (real_yylex): Warn if catch, throw, or try are used as + identifier names. - * protoize.c (munge_compile_params): Fix cast that sets compile_params. - (xmalloc, xrealloc): No longer static. - * Makefile.in (protoize, unprotoize): Add LIBDEPS as deps. + * cp-decl.c (pushdecl): Make sure we have a CURRENT_FUNCTION_DECL + before setting its public flag. - * va-i860.h (va_arg): Use __extension__ to suppress pedantic warning. - * va-sparc.h, va-spur.h, va-pyr.h: Likewise. + * cp-decl.c (expand_static_init): Only complain about multiple + initializations of a static variable if we actually have an + initializer. + (finish_decl): Likewise for const. - * x-irix4.h: New file. - * config.sub: Don't convert irix to sysv. - * configure (mips-sgi-irix4*): New configuration. - (mips-sgi-irix*): Renamed from mips-sgi-sysv*. + * cp-search.c (build_mi_matrix): Fix off-by-one error in + clearing of MI_MATRIX. + (get_base_distance): Init NEW_BINFO to 0. - * gcc.c (process_command): - Handle the standard_exec_prefix* before the md_*_prefix. + * cp-pt.c (instantiate_member_templates): Initialize XXX to 0. - * i386.h, ns32k.h (PCC_BITFIELD_TYPE_MATTERS): Defined. + * cp-call.c (build_method_call): Zero out candidates. + (build_overload_call_real): Likewise. - * Makefile.in (libgcc1.null): Depend on GCC_PASSES. + Wed Jun 2 11:53:24 1993 Mike Stump (mrs@cygnus.com) - * cccp.c (lookup_import, add_import): VMS kludges so they compile. - (hack_vms_include_specification): Add forward declaration. + * cp-search.c (lookup_fnfields_here): Use TYPE_MAIN_VARIANT on + context types before comparing. Fixes const member functions not + being found in templates. - * stor-layout.c (layout_record): Handle BITFIELD_NBYTES_LIMITED - just like one of the things done for PCC_BITFIELD_TYPE_MATTERS. + Tue Jun 1 18:26:18 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * x-next, x-i386mach: Deleted. - * t-libc-ok: New file. Define just LIBGCC1. - * configure (i386-*-mach, m68k-next-*): Use t-libc-ok. + * cp-parse.y (structsp): Avoid a null-ref on ID. + (left_curly): Likewise. - * t-svr4 (FIXINCLUDES): Defined. - * t-m88kv4 (FIXINCLUDES): Defined. - * t-svr3 (EXTRA_PARTS): Defined. - * t-i386sco (EXTRA_PARTS): Defined. + Tue Jun 1 13:49:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * configure (sparc-*-sysv4*): New alternative. + * cp-decl.c (pushdecl): Communicate a `static' decl of a prototype + into its definition, if they forget to take care of it. - * configure (install_with_cp): New flag an alternative can set. - If host sets it, add INSTALL=cp to Makefile. - Set this for any system V, and for m68k-crds-unos. + * cp-init.c (emit_base_init): Make error message more useful about + insufficient initializers for a member of a class w/o a ctor. -Sat Jan 18 23:15:08 1992 Ron Guilmette (rfg at ncd.com) + Sun May 30 09:45:06 1993 Michael Tiemann (tiemann@rtl.cygnus.com) - * va-i860.h (va_list): Made __reg_base field type long* to avoid - compilation errors. - (__savereg): Add explicit cast to (__va_saved_regs *). + * cp-call.c (compute_conversion_costs): Penalise each argument that + matches an ellipsis, not just the ellipsis itself. + (build_method_call): Don't consider a candidate an easy match if + cp->ellipsis is non-zero (fixes p2778). -Fri Jan 17 15:09:34 1992 James Van Artsdalen (james at bigtex.cactus.org) + Sat May 29 09:34:57 1993 Michael Tiemann (tiemann@rtl.cygnus.com) - * i386.h (FUNCTION_BOUNDARY): Do larger alignments for i486. - (ASM_OUTPUT_ALIGN_CODE): Same here. - (ASM_OUTPUT_LOOP_ALIGN): But not here - do word aligns as before. + * cp-cvt.c (convert_to_reference): Match ARM rules more closely by: + (1) not converting between types of different signedness, and + (2) converting between types of different varieties if a const& + suggests we can use a temporary (fixes p2780). - (enum reg_class): Delete classes ADREG and BREG - neither used nor - useful. Add classes FP_TOP_REG and FP_SECOND_REG. - (REG_CLASS_NAMES): Likewise. - (REG_CLASS_CONTENTS): Likewise. - (REGNO_REG_CLASS): Reflect that change. - (REG_CLASS_FROM_LETTER): Likewise. Add "t" and "u" constraints. - (CLASS_MAX_NREGS): New classes use only 1 hard reg for any mode. + * cp-decl.c (decls_match): Handle pseudo-match of parameter lists + according to p308 of the ARM. + (push_overloaded_decl): Ditto. + * cp-typeck.c (comptypes): Rest of change (closes p2779). - (CONST_OK_LETTER_P): Document uses of letters. + * cp-call.c (compute_conversion_costs): Count ellipses when we see + them. + (ideal_candidate): Gracefully handle arg lists that have ellipses + (Fixes p2777). - * reg-stack.c: Add comments describing rules for asm statements - involving stack-like regs. - (asm_regs): Delete unused variable. - (fatal_for_asm): Delete unused function. + * cp-call.c (build_method_call): Delete some #ifdefs that are + obsoleted by ANSI. - (get_asm_operand_lengths): New function. - (constrain_asm_operands): New function. Like constrain_operands, - but records some information about the matched alternative. + Fri May 28 12:15:21 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - (record_asm_reg_life): New function. - (record_reg_life): If INSN is an asm statement, decode operands - and pass to record_asm_reg_life. - (record_reg_life_pat): Abort if any asm is seen here. + * cp-decl.c (finish_decl): Don't allow overloaded operators to have + default arguments. - (subst_asm_stack_regs): New function. - (subst_stack_regs): If INSN is an asm statement, decode operands - and pass to subst_asm_stack_regs. When handling REG_UNUSED notes, - emit the pops in the right order. + * cp-cvt.c (convert): If it's an anonymous enum, say so instead of + giving the cryptic `._123' as the enum type. - (change_stack): New argument to insert any new insns before INSN - instead of after. All callers changed. + Thu May 27 10:52:49 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - (emit_swap_insn): Abort if the reg is not found in REGSTACK. + * cp-decl.c (grokdeclarator): Return 0 instead of doing a 155 abort, + so we'll get the right error message later. - * Makefile.in (reg-stack.o): Depends on insn-config.h. + * cp-type2.c (readonly_error): Give a more useful error when the arg + is a RESULT_DECL. -Fri Jan 17 16:38:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-init.c (build_new): Set LOOKUP_COMPLAIN on the flags, so we'll + pay attention to the visibility of the constructor we're trying to + call. - * toplev.c, flags.h (in_system_header): Declare here. - * c-lex.c, cp-lex.c (in_system_header): Not here. - * toplev.c (rest_of_compilation): Don't warn of unused static function - if definition is in a system header. + * toplev.c (lang_options): Add warning about ctor/dtor privacy. + * cp-decl2.c (lang_decode_option): Grok it. Make -Wall effect it. + (warn_ctor_dtor_privacy): New variable, default being on. + * cp-tree.h (warn_ctor_dtor_privacy): Add extern decl. + * cp-class.c (finish_struct_methods): Make the ctor warning + conditionalized on the flag. + (finish_struct): Likewise for ctors. + * invoke.texi (Option Summary, Warning Options): Add it. + (Options to Request or Suppress Warnings): Explain it. - * gcc.c (do_spec_1): Add missing arg in recursive call. - (link_command_spec): Don't pass -s, -S, -u*, -X, -Y*. + * cp-decl.c (grokdeclarator): Use a pedwarn on extern inline. -Fri Jan 17 12:51:28 1992 Jim Wilson (wilson at cygnus.com) + Tue May 25 13:55:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - From Tiemann: - * rtlanal.c (reg_set_between_p): Call `reg_set_p' with INSN, not the - body of INSN so that CALL_INSNs are properly handled. - * explow.c (find_next_ref): Ditto. + * cp-init.c (build_delete): Don't pass the size as an argument to + builtin delete for a non-aggregate type. Only pass it for a class + when we'll be using its own operator delete(). (complies w/ $12.5) + (build_x_delete): Don't pass the size down to builtin delete. - * hp800.h, hp800.md: Delete RCS Header variables. + * cp-decl2.c (delete_sanity): If it's a pointer to a type that has + no destructor, then build a regular delete expression, instead of a + vector one (since we didn't push any info into the BI_header_type + area). - * reg-stack.c (replace_reg): Change `abort' to `abort ()'. + * cp-decl2.c (grok_array_decl): Add a pedwarn if they do `5[a]'. -Fri Jan 17 14:30:14 1992 Michael Meissner (meissner at osf.org) + * cp-typeck.c (comptypes): Don't warn about t2 being an + error_mark_node. - * caller-save.c (insert_save_restore): Don't pass a CODE_LABEL to - reg_mentioned_p when the machine has a condition code, since - CODE_LABEL's don't have the same format as normal INSN's do. + * cp-decl.c (finish_decl): If type is laid out, but decl is not, + call layout_decl. -Fri Jan 17 13:24:33 1992 Tom Wood (wood at dg-rtp.dg.com) + Mon May 17 10:35:55 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * Makefile.in (unprotoize.o): Use the rm -f option. + * cp-tree.h (error_not_base_type): Add prototype. - * cp-lex.c (check_newline): Define `used_up' as in c-lex.c. - (in_system_header): Define as in c-lex.c. + Fri May 14 17:16:55 1993 Mike Stump (mrs@poseidon.cygnus.com) -Fri Jan 17 08:14:04 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (finish_struct): Use get_binfo instead of binfo_value + to find vfields. Cures compiler_error. - * reorg.c (delete_from_delay_slot): Pass correct length to - emit_delay_sequence. + Thu May 13 14:57:51 1993 Mike Stump (mrs@cygnus.com) - * genattrtab.c (substitute_address): Handle IF_THEN_ELSE in addition - to COND. + * cp-tree.c (binfo_value): If type is the main binfo for elem, + return it. - * expr.c (expand_builtin, case BUILT_IN_STRLEN): Correct args in - expand_expr call. + Wed May 12 13:10:07 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Fri Jan 17 17:33:40 1992 James Van Artsdalen (james@raid) + * cp-typeck.c (c_expand_return): Pedwarn on using return without a + value in a function that requires one. Clear + CURRENT_FUNCTION_RETURNS_NULL, so we don't get a bogus warning about + reaching the end of a non-void function. - * x-i386v4 (CCLIBFLAGS): Delete macro. - (GCC-CFLAGS): Delete macro. Prevented Makefile.in from working. + Tue May 11 17:51:16 1993 Mike Stump (mrs@poseidon.cygnus.com) -Thu Jan 16 17:03:27 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-decl.c (start_decl): Allow -fexternal-templates compiled code to + fall back to old strategy of generating static copies for templates + that are not under the control of #pragma interface/implementation, + but warn if this happens. + * cp-decl2.c (warn_if_unknown_interface): Likewise. + * cp-lex.c (reinit_parse_for_method, cons_up_default_function): + Likewise. + * cp-pt.c (end_template_decl, instantiate_member_templates, + instantiate_template): Likewise. + * cp-tree.h (warn_if_unknown_interface): Likewise. - * Makefile.in (cleanconfig): Also delete tconfig.h. + Sat May 8 05:53:17 1993 Michael Tiemann (tiemann@cygnus.com) - * varasm.c (assemble_external): Only call ASM_OUTPUT_EXTERNAL once - for each symbol. - (assemble_external_libcall): Fix minor typo in spacing. + * cp-decl.c (finish_decl): TOPLEV should be set non-zero also if we + are at the pseudo-global level. Use TOPLEV instead of testing + CURRENT_BINDING_LEVEL. - * toplev.c (main): Force error if invalid -W option is used. + Fri May 7 12:42:46 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Jan 16 13:35:13 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-decl2.c (grok_array_decl): New function. + * cp-parse.y (primary): Use it instead of lots of code in the + parser. + * cp-tree.h (grok_array_decl): Add prototype. - * m88kdgux.h (CPP_PREDEFINES): Added __CLASSIFY_TYPE__ back and - noted when it would be useful. + * cp-parse.y (component_decl): Disable change about TYPE_DECLs going + into the TYPE_FIELDS list for now. + * cp-type2.c (store_init_value): Disable checks for now. - * m88k.h (ASM_FILE_END, ASM_OUTPUT_ASCII): Override svr4.h. + Thu May 6 16:59:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Jan 16 12:37:16 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-lex.c (check_newline): Use a while instead of a do-while to + avoid reading the line after the #pragma if we're at a newline. - * svr4.h (SVR4): Add this back. + Wed May 5 16:38:06 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cccp.c (lookup_import): Use bcmp to compare inodes. + * Makefile.in (stamp-cp-parse): Update reduce/reduce count to 13. - * cccp.c (main): Handle -idirafter option. + * cp-decl2.c (delete_sanity): New function. + * cp-parse.y (unary_expr): Call it, getting rid of a lot of + repeated code in the parser. + * cp-tree.h (delete_sanity): Add prototype. - * m68kv4.h, m88kv4.h, i386v4.h, sparcv4.h, i860v4.h (CPP_PREDEFINES): - Add __svr4__ in case user programs want to distinguish. + * cp-init.c (emit_base_init): Don't try to do anything with a member + that lacks a DECL_NAME (e.g., types we added in component_decl from + the parser). - * cp-lex.c (check_newline): Changes like Jan 12 changes in c-lex.c. + Wed May 5 12:57:33 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * Makefile.in (install-fixincludes): Renamed from `includes'. - Move comments so some shells are happier. Dep. on install-headers. + * cp-parse.y (get_current_declspecs): Obsolete, deleted. - * m88kdgux.h (CPP_PREDEFINES): Add __svr4__. Remove __CLASSIFY_TYPE__. - Add some assertions. + Tue May 4 13:46:09 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * c-decl.c (init_decl_processing): Don't give arg type for abort, etc. - Always declare strlen, etc., so -O doesn't alter the warnings. - * expr.c (expand_builtin): Open-code str* or mem* or ffs if -O. + * cp-type2.c (process_init_constructor): Don't check for private or + protected members; we do that in store_init_value now. - * c-decl.c (start_function): Fix backwards test for -W* options. + * cp-parse.y (simple_stmt): Use expr_no_commas instead of expr for + case labels. - * protoize.c (GUESSPATHLEN): Treat POSIX like USG--and use just 200. + * cp-typeck.c (build_binary_op_nodefault): Add 'right' and 'left' to + shift count warnings to distinguish them from each other. - * cccp.c (deps_output): Break line iff string is empty. - (do_include): Fix up the deps_output calls. + * cp-decl.c (finish_decl, grokdeclarator): Report overflows in + storage sizes. + (build_enumerator): Report overflows on enumerators. + * cp-decl2.c (grokbitfield): Likewise. + * cp-parse.y (unary_expr): Warn about overflows in parser-built + unary expressions. + * cp-typeck.c (c_sizeof): Call force_fit_type only for INTEGER_CST. + (build_c_cast): Ignore any integer overflow caused by a cast. + (convert_for_assignment): Warn if source had overflow in folding. + (build_conditional_expr): Check conversions in if-then-else + expressions. + * cp-tree.h (convert_and_check, overflow_warning, + unsigned_conversion_warning): Add prototypes for fns in c-common.c. - * vax.c (print_operand_address): Handle form index + (reg+offset). + * cp-decl.c (init_decl_processing): Make the arrays 200 long to + leave enough room for most names. - * m88k.h (TARGET_VERSION): Don't use __DATE__. + * cp-decl.c (lookup_label): Return a NULL_TREE if not within a + function. + * cp-parse.y (unary_expr, ANDAND identifier): Handle lookup_label + returning a NULL_TREE. - * gcc.c (default_compilers): Typos in c++-cpp-output case. + * cp-method.c (dump_init): Grok a FIELD_DECL as well. -Thu Jan 16 12:25:51 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-decl.c (finish_function): Move setting of the DECL_RESULT's + context and calling setjmp_protect after poplevel, so we have a + valid DECL_INITIAL for the fndecl (not an error_mark_node). - * loop.c (get_condition): In HAVE_cc0 code, generate a zero with - CONST0_RTX instead of just using const0_rtx. + Mon Jan 25 11:04:23 1993 Niklas Hallqvist (niklas at della.appli.se) - * cse.c (cse_isnsn): A CALL_INSN clobbers all fixed regs except - for ap, fp, and sp. + * cp-parse.y (component_decl): Handle anonymous unions as static + class members. + * cp-decl.c (grokdeclarator): Ditto. -Thu Jan 16 08:03:40 1992 Tom Wood (wood at dg-rtp.dg.com) - - * c-decl.c (finish_enum): Compute the precision properly if the - maximum value is negative. + * cp-decl.c (shadow_tag): Emit error message if static or extern + is specified as per ARM 7.1.1. + + * cp-decl2.c (finish_anon_union): Issue error if a global + anonymous union is not declared static, remove old funny error + about some optimizer failing. -Thu Jan 16 07:40:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (finish_struct): Corrected error message concerning + anonymous classes. - * reorg.c (try_merge_delay_insns, fill_slots_from_thread): Have - update_block put the phantom insn before THREAD. - (update_block): Update block status if WHERE, not INSN, is block head. - -Thu Jan 16 00:28:14 1992 Ron Guilmette (rfg ay ncd.com) - - * i860.c (output_fp_move_double): Fixed typo. - - * protoize.c (GUESSPATHLEN, pointer_type, const_pointer_type): - moved definitions declarations out of conditional region. - (string_list_cons, shortpath, munge_compile_params): Added casts. - (find_extern_def): Fixed string literal to avoid trigraph. - (find_rightmost_formals_list): Fixed to avoid unreached code warnings. - - * svr4.h (ASM_OUTPUT_ASCII): Fixed typo. - -Wed Jan 15 21:58:01 1992 Jeffrey A Law (law at b117b.super.org) - - * sparc.h (SELECT_RTX_SECTION): When generating PIC, place symbolic - operands in the data section. - -Wed Jan 15 21:45:09 1992 Michael Meissner (meissner at osf.org) - - * collect2.c (main): Pass any -b, -B, -m, -f, and - -V options to gcc instead of the linker, in order to allow - target switches that affect the size of pointers and search paths to - be passed through. - (main, choose_temp_base): Use TMPDIR environment variable, and the - P_tmpdir macro if defined to locate directory to put temp files. - (whole file): Reorganize so that all of the OSF/rose stuff goes at - the end of the file, rather than being scattered throughout. - (main, scan_prog_file): Invoke scan_prog_file twice, once on each - output of ld. - (scan_prog_file, read_file, write_file): On the second invocation, - rewrite the object file in place, adding a load command to put - __main in the list of initializer functions. This allows users - to put constructors and destructors into shared libraries. - (scan_prog_file): Move debug stuff and error routines to separate - functions. + * cp-lex.c (check_for_missing_semicolon): Allow trailing storage + specifiers. -Wed Jan 15 17:59:02 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Jan 29 09:39:17 1993 Niklas Hallqvist (niklas at della) - * combine.c (can_combine_p): Don't combine if DEST is still a field - assignment after we've tried to expand it. + * cp-parse.y (component_decl): Nested unions, enums and structs + should have their TYPE_DECLs in the TYPE_FIELDS slot of the + containing type so the access flags eventually will get correctly + set. -Wed Jan 15 16:01:13 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-type2.c (store_init_value): Check for the aggregate conditions + described in ARM 8.4.1. - * regclass.c (fix_register): Don't match a null register name. - * varasm.c (decode_reg_name): Likewise. + Mon May 3 19:10:28 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * i386.h (HI_REGISTER_NAMES): Give the eliminable arg pointer a - null name. + * cp-lex.c (real_yylex): Don't warn about floating point out of + range if target floating-point format is IEEE. -Wed Jan 15 13:40:50 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-class.c (finish_struct): Promote unsigned bitfields to signed + int if the field isn't as wide as an int. - * gcc.c (default_compilers): Pass -lang-asm, not -lang-asmc, to cpp. + * cp-search.c (dfs_pushdecls): Use warning_with_decl, so we give the + line number of the offending method declaration, rather than the + line number of the curly-brace that ends the class definition. - * gcc.c (process_command): Don't dump md_exec_prefix in specs. - Use the md_... prefixes only if no -b. + Mon May 3 18:04:15 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jan 15 13:35:09 1992 Ron Guilmette (rfg at ncd.com) + * cp-cvt.c (convert): When doing int->enum conversions, always call + pedwarn, even if we didn't give `-pedantic'. - * i386v4.h (RETURN_IN_MEMORY): Definition added. - (CPP_PREDEFINES): Added -DX86 (needed for some system headers). - (ASM_OUTPUT_DWARF_STRING): Deleted. - (ASM_OUTPUT_ASCII): Added specialized definition for i386/svr4. + * cp-decl.c (start_function): Add extern decl of + `flag_external_templates'. - * svr4.h (SVR4): Deleted useless define. - (ASM_FILE_END): Added definition. - (ESCAPES, STRING_LIMIT, STRING_ASM_OP, ASM_OUTPUT_LIMITED_STRING): - (ASM_OUTPUT_ASCII): Generic svr4 definitions added. + * cp-lex.c (check_newline): Warn if there's anything after a + `#pragma interface'. - * m68kv4.h (CPP_PREDEFINES): Don't define SVR4. - * sparcv4.h (CPP_PREDEFINES): Don't define SVR4. - (ASM_OUTPUT_ASCII): Deleted obsolete definition. + Mon May 3 12:39:49 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * xm-svr4.h (SVR4): Removed useless definition. - (POSIX): Added definition for protoize.c. + * cp-class.c (finish_struct_methods): Use `warning' on a class w/ a + private dtor and no friends, so the line number comes out right. Also + only emit this warning when `extra_warnings' is true. - * i860b.h (ASCII_DATA_ASM_OP, ASM_OUTPUT_ASCII): Moved from i860.h. - * i860v3.h (ASCII_DATA_ASM_OP): Added OS-specific definition. - * i860v4.h (ASCII_DATA_ASM_OP, ASM_OUTPUT_ASCII): - Deleted (now in svr4.h). + * cp-type2.c (process_init_constructor): Don't allow use of an + initializer list for a class with private or protected members. - * fixinc.svr4: Replaced all occurances of {1,\} in sed command - string with functional equivalents (to avoid bogus results). + Sat May 1 15:07:24 1993 Mike Stump (mrs@poseidon.cygnus.com) - * c-lex.c (readescape): Pass thru escaped x, a, and v if -traditional. - (readescape): Pedantic warning for \?, \(, \{, and \[. + * cp-decl.c (start_decl, start_function): Add a new flag + -fexternal-templates. Use flag_external_templates to determine when + template definitions should be made externally visible and + accessible. This permits non-exponential growth in object files + that use templates. + * cp-decl2.c (lang_f_options): Likewise. + * cp-lex.c (reinit_parse_for_method, cons_up_default_function): + Likewise. + * cp-parse.y (template_instantiate_once): Likewise. + * cp-pt.c (end_template_decl, instantiate_member_templates, + instantiate_template, end_template_instantiation): Likewise. + * toplev.c (lang_options): Likewise. - * dwarfout.c: Updated copyright. - (fundamental_type_code): Abort for all non-fundamental types. - (type_is_fundamental): Return 0 for all non-fundamental types. - (containing_type_attribute, output_ptr_to_mbr_type_die): New functions. - (output_pointer_type_die, output_reference_type_die): Added calls to - equate_type_number_to_die_number. - (output_type): Handle OFFSET_TYPE correctly. - (output_type): Ignore LANG_TYPE (for now). + Fri Apr 30 18:50:00 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jan 15 09:30:08 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-spew.c (arbitrate_lookup): If the next character is a '[', then + have the compiler assume it's an expression instead of a type. - * All cp-* files: Remove calls to `cleanup_after_call'. + Fri Apr 30 14:39:28 1993 Mike Stump (mrs@poseidon.cygnus.com) - * cp-method.c (fndecl_as_string): Add a missing space when printing - the return type. + * cp-class.c (maybe_fixup_vptrs): Use the VF_NORMAL_VALUE of the + vfields to get the binfo to get the vtable, so that we may pick up + the most derived version of the vtable. - * cp-typeck.c (build_modify_expr): Treat arrays specially in both - INIT_EXPR and NOP_EXPR cases. Also, if we take the address NEWRHS - when it's not a SAVE_EXPR, build a new NEWRHS using that address. - * cp-tree.c (lvalue_p): Handle WITH_CLEANUP_EXPR case. + * cp-class.c (finish_base_struct): Always set the VF_NORMAL_VALUE so + that maybe_fixup_vptrs can get the most derived vtable. - * cp-decl.c (grokvardecl): Don't get tripped up by static class - members of incomplete type. +Fri Jun 25 14:00:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 15 09:12:51 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * config.sub: Convert ...-sysvr4 into ...-sysv4. - * m68k.c (legitimize_pic_address): Re-enable code which was - mistakenly #ifdef'd out. + * config/m68k/news.h (CPP_PREDEFINES): Have two alternatives, + one for motorola and one for not motorola. -Wed Jan 15 08:12:18 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/m68k/tower-as.h, mot3300.h, m68kv4.h, hp320.h, amix.h: + * config/m68k/3b1.h, crds.h (CPP_PREDEFINES): Add __motorola__. - * reload.c (find_reloads): Check for insn not recognized. + * expr.c (store_expr): If TARGET is volatile mem ref, return it. - * caller-save.c (reg_{save,restore}_code): New variables. - (init_caller_save): Set them. - (insert_save_restore): Just make SET for pattern of insn and set - code from reg_{save,restore}_code. - (save_call_clobbered_regs): Put restore insns before JUMP_INSN that - ends basic block, but after any other insn that ends the block. + * toplev.c (lang_options): Add -fdollars-in-identifiers. + * c-decl.c (c_decode_option): Handle -fdollars-in-identifiers. - * sdbout.c (sdbout_symbol): Treat (mem (reg SP)) the same - as (mem (reg FP)). +Fri Jun 25 13:33:39 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * reorg.c (mark_referenced_resources): Fix typo in last change. - (emit_delay_sequences): Update chain correctly when previous or - next insn is also a SEQUENCE. + * pa-hpux.h (LINK_SPEC): Search shared libraries by default; turn + off shared library searching of -static is specified. + * pa-ghpux.h (LINK_SPEC): Likewise. -Wed Jan 15 08:10:29 1992 Chris Smith (cks at bach.convex.com) + * pa.h (TARGET_SHARED_LIBS): Delete switch and all references to + the switch. + * pa.c: References to TARGET_SHARED_LIBS deleted. + * pa.md: Likewise. - * t-convex: Use collect2 to link. - * convex.h: remove assembly output defines for old collect2. - * convex.h: define vprintf and wait macros for pcc mode boot of - collect2. + * pa-utahmach.h (TARGET_DEFAULT): Allow indexing on Mach ports. + * pa1-utahmach.h (TARGET_DEFAULT): Likewise. + * pa.h (TARGET_DISABLE_INDEXING): Clean up comments. - * convex.h (ASM_OUTPUT_DOUBLE_INT): define. +Fri Jun 25 00:50:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * convex.h (DEFAULT_GDB_EXTENSIONS): define as 0 until GDB version 4 - port is available. + * expr.c (store_expr): Ignore SUGGEST_REG if target is volatile. - * convex.c (ap_reload_needed): Fix comment. + * config/mips/mips.md (negdi2, negdi2_internal): Renamed from negdi3... -Wed Jan 15 07:08:25 1992 Tom Wood (wood at dg-rtp.dg.com) +Thu Jun 24 00:31:27 1993 Richard Stallman (rms@wookumz.gnu.ai.mit.edu) - * m88k.h (CONST_SECTION_FUNCTION): Trivial definition for targets - not based on svr[34].h (m88k-luna). + * gcc.c (option_map): Make --version alias for -dumpversion. - * m88k.h (PREDICATE_CODES): Use it. +Wed Jun 23 07:50:21 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m88k.md (casesi_enter): Don't use bsr.n with -fno-delayed-branch. - * m88k.h (ASM_OUTPUT_CASE_END): The lda goes here when bsr is used. + * romp.c (output_prologue): Delete unused var, INSN. + (output_encoded_offset): New function. + (output_epilogue): Minor changes to traceback table; call + new output_encoded_offset. + (romp_debugger_{auto,arg}_correction): New functions. + * romp.h (DBX_REGPARM_STABS_LETTER, DEBUGGER_{AUTO,ARG}_OFFSET): + New macros. - * m88k.c (legitimize_address): When converting a symbol_ref for - PIC, add a REG_EQUAL note. + * reorg.c (fill_slots_from_thread): When replacing a use of a + register with what it was set to, don't do it when either the + destination or source of the copy is set in the insn. + + * jump.c (jump_optimize): Properly make jump into store-flag + sequence when the jump can't be reversed but the TRUE branch + is const0_rtx. + + * expr.c (expand_expr): Set IGNORE if target is const0_rtx or + result type is VOID. + Move most IGNORE processing to one place to avoid expanding things + that don't need to be expanded. + (expand_expr, case CONSTRUCTOR, case COND_EXPR): If IGNORE, don't + expand anything we don't have to. + (expand_expr, case CONVERT_EXPR): Don't deal with IGNORE here. + +Wed Jun 23 07:47:32 1993 John F Carr (jfc@Athena.mit.edu) + + * regs.h (scratch_list, scratch_block, scratch_list_length): New vars. + * reload1.c (mark_scratch_live): New function. + (reload): Call it on each SCRATCH. + Free scratch list and block. + (spill_hard_reg): Reallocate any SCRATCH whose register we want to + spill. + * local-alloc.c (scratch_block, scratch_list{,_length}, scratch_index): + New variables. + (local_alloc): Allocate and initialize them. + (alloc_qty_for_scratch): Can allocate likely-spilled register + classes for SCRATCH. + (block_alloc): Likewise for regs in small register classes. + Only allocate a SCRATCH if it can fit in the block we make. + Don't mark regs used in SCRATCH live here; instead, make entry in + new tables. + +Tue Jun 22 19:52:08 1993 Richard Stallman (rms@wookumz.gnu.ai.mit.edu) + + * emit-rtl.c (copy_rtx_if_shared): In `E' case, get the length + before copying, and don't get it again after. + +Tue Jun 22 10:50:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * toplev.c (report_error_function): Change format of the + included-file stack to be more readable. + * cccp.c (print_containing_files): Likewise. -Wed Jan 15 06:22:34 1992 Michael Meissner (meissner at osf.org) +Mon Jun 21 19:21:18 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * mips.h (MIPS_VERSION): Bump Meissner version # to 8. - (fcmp_op): Add function declaration. - (TARGET_FLOAT64): Support for -mfp64 switch to support the R4000 FR - psw bit, which doubles the number of floating point registers. - (TARGET_SWITCHES): Likewise. - (HARD_REGNO_NREGS): Likewise. - (CLASS_FCMP_OP): New bit for classifing floating point compares. - (PREDICATE_CODES): Add cmp2_op and fcmp_op support. + * rs6000.c (print_operand, case 'J'): Write out shift count + of 0, not 32 for bit 31 of CCR. - * mips.c (various): Move extern declarations from inside of - functions to outside all functions. - (fcmp_op): Match comparison operators for floating point. - (mips_move_2words): Add -mfp64 support. - (override_options): Likewise. - (compute_frame_size): Likewise. - (override_options): Set up for fcmp_op. - (gen_conditional_branch): Redo floating point compares/branches, so - that it is like the rest of the compiler expects -- set cc0 to a - compare operator, instead of the exact test required, and put the - smarts in the branch operators to generate both the test and the - branch. - - * mips.md (cmpdf_eq, cmpdf_lt, cmpdf_le): Delete. - (cmpsf_eq, cmpsf_lt, cmpsf_le): Delete. - (cmpdf_internal): New define insn to match FP compares. - (cmpsf_internal): Likewise. - (branch_fp_true1, branch_fp_true2): Likewise. - (branch_fp_false1, branch_fp_false2): Likewise. - (branch_fp_true, branch_fp_false): New define_insns to match the - branch part of FP compares. - -Wed Jan 15 01:42:39 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * unroll.c (copy_loop_body): New parameter copy_notes_from, to - correct problem with bad debug info generated for preconditioned - loops. - (unroll_loops): Fix calls of copy_loop_body to pass new parameter. - -Wed Jan 15 01:01:39 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * gcc.c (main): Don't use TARGET_VERSION. - (endfile_spec, switches_need_spaces): New vars, initted from macros. - (set_spec, process_command): Read and write those vars. - (do_spec_1, process_command): Use the new vars, not the macros. - (SWITCHES_NEED_SPACES): New default macro definition. - - * Makefile.in (install-common): Install driver as gcc-$(target). - - * gstddef.h (wchar_t): Check for _T_WCHAR. - - * stmt.c (pushcase, pushcase_range): Return 5 if jump into stack level. - * c-parse.y, objc-parse.y (stmt): Print error msg for that. - * cp-parse.y: Likewise. - -Tue Jan 14 23:25:37 1992 Ron Guilmette (rfg at ncd.com) - - * dwarfout.c: Include if USG *or* POSIX. - (TREE_UID): Deleted. - (current_funcdef_number): Replacement for TREE_UID. - (dwarfout_file_scope_decl): Increment - current_funcdef_number after each funnction definition is processed. - (pending_sibling_stack_depth): Renamed globally to pending_siblings. - (pending_sibling_stack_size): Renamed to pending_siblings_allocated. - (PENDING_SIBLING_STACK_INCREMENT): Renamed PENDING_SIBLINGS_INCREMENT. - (pending_types_list, pending_types_allocated, pending_types, - PENDING_TYPES_INCREMENT, fake_containing_scope): New vars/macros. - - * dwarfout.c (total_ft_entries): Renamed to ft_entries_allocated. - (valid_ft_entries): Renamed to ft_entries. - (FT_ENTRIES_INCREMENT): Definition added. - (lookup_filename): Expand filename table (when needed) - by adding FT_ENTRIES_INCREMENT more table elements rather than - doubling current size. - (dwarfout_init): Allocate initial filename table. - - * dwarfout.c (INSN_LABEL_FMT, FUNC_END_LABEL_FMT): Use decimal format. - - * dwarfout.c (member_attribute): Rewritten for proper C++ support. - (output_array_type_die, output_set_type_die, output_entry_point_die, - output_enumeration_type_die, output_global_subroutine_die, - output_global_variable_die, output_inline_subroutine_die, - output_local_variable_die, output_member_die, output_pointer_type_die, - output_reference_type_die, output_string_type_die, - output_structure_type_die, output_local_subroutine_die, - output_subroutine_type_die, output_typedef_die, output_union_type_die): - Added calls to member_attribute (for C++). - - * dwarfout.c (inline_attribute): Test for TREE_INLINE in here. - (output_global_subroutine_die, output_local_subroutine_die): - Don't test for TREE_INLINE here. - - * dwarfout.c (output_formal_types): Fixed to handle METHOD_TYPE - nodes and to output all related type DIEs last (for SDB). - (type_ok_for_scope, output_pending_types_for_scope, pend_type): - Functions added to support C++. - (output_type, output_decl): Added `containing_scope' - parameter to handle C++ nested types. - (output_type): Don't output the type unless it's OK - for the current DIE chain (i.e. unless it's OK for the current scope). - (output_type): Output completed non-global tagged types - right away even if not finalizing. - (output_type): Use correct method to get head of chain - of C++ function members. - (output_decl): Skip first item on chain of DECL_ARGUMENTS - for a FUNCTION_DECL whose type is a METHOD_TYPE. - Suppress output of type DIEs for formal parms of a FUNCTION_DECL - until after all TAG_parameter DIEs have been output (for SDB - compatability). - Output DIEs for any LABEL_DECL nodes attached to outermost BLOCK of - a FUNCTION_DECL. - Handle LABEL_DECL nodes. - - * dwarfout.c (dwarfout_file_scope_decl): Un-pend all pending file- - scope types after each file-scope declaration is output. - (output_decls_for_scope): Un-pend all pending local types - at end of each local scope. - -Tue Jan 14 16:40:39 1992 Tim Moore (moore at fast.cs.utah.edu) - - * calls.c (expand_call): If ARGS_GROW_DOWNWARD, make slot_offset - negative and set highest_outgoing_arg_in_use to needed + 1. - (store_one_arg): If ARGS_GROW_DOWNWARD deal with negative slot_offset. - -Tue Jan 14 20:01:59 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * sparc.h (TARGET_SUN_ASM, TARGET_GNU): Delete support for - obsolete and undocumented flags -msun-asm and -mgnu. - * sparc.md: Likewise. - -Tue Jan 14 19:36:21 1992 Tim Moore (moore at fast.cs.utah.edu) - - * xm-hp800.h (hpux8): define. - * hp800.h (LINK_SPEC): Conditionalize on hpux8. - (STACK_BOUNDARY): Define for snake. - (CALL_USED_REGISTERS): Shift register is special. - (HARD_REGNO_MODE_OK): Don't allow modes smaller that SImode in fp - registers. - (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Eliminate - GENERAL_OR_FP_REGS, GENERAL_OR_SNAKE_FP_REGS classes. - (FUNCTION_ARG): Handle snake fp arguments. - (ASM_DOUBLE_ARG_DESCRIPTORS): define. - (ASM_DECLARE_FUNCTION_NAME): Use above macro to get around hpux - 8.0 change. - * hp800.md (movsi, movdi): Add ! and * to constraints of anonymous - define-insns to discourage SImode values in fp registers. Don't - modify the stack pointer when moving between general and fp registers. - (mulsi): Take out pattern that matches a degenerate multiplication - by 1; it doesn't seem to be needed and causes problems. - (sar_sub): Change so that const_int isn't the first argument of - the comparison. - * hp800.c (output_fp_move_double): As above, don't modify the - stack pointer when moving between general and fp registers. - (output_block_move): Don't make one CONST_INT rtx and store - different integer values in it; cons up a "new" one for each value. - (output_floatsisf2, output_floatsidf2): Fix typos. - (output_arg_descriptor): Conditionalize for HPUX 8.0. - -Tue Jan 14 14:38:09 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-typeck.c (build_unary_op): Call readonly_warning_or_error if - ARG is TREE_READONLY (in addition to the type being TYPE_READONLY). - - * cp-init.c (maybe_adjust_addr_for_delete): If the adjustment needs - to be done, zero out the storage that held part of the cookie. - -Tue Jan 14 13:12:48 1991 Ron Guilmette (rfg at ncd.com) - - * c-decl.c (poplevel): Set TYPE_CONTEXT for each tagged type - except inside function declaration parm list. - (grokdeclarator): Set TYPE_CONTEXT for tagged type in decl parm list. - (pushtag): Don't set TYPE_CONTEXT for tagged types here. - -Tue Jan 14 06:46:37 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * global-alloc.c (global_alloc): Count multi-word pseudos correctly - in local_reg_n_refs. - (find_reg): Evict pseudos that overlap the register we take, not just - that start with that register. - - * a29k.c (a29k_debug_reg_map): New variable. - (output_prologue): Initialize it. - * a29k.h (DBX_REGISTER_NUMBER): Use that map. - - * ultrix.h (WCHAR_TYPE): Make definition be a known type. - - * final.c (final_scan_insn): Call DBR_OUTPUT_SEQEND before we - clear `final_sequence', so it can call dbr_sequence_length. - - * reload1.c (reload): Clear insn_needs once we know we have - reloads, instead of always. - Don't skip processing of reloads for CALL_INSNs when caller-save - needs a spill register. - - * flow.c (mark_used_regs, case RETURN): Insert missing test for global - registers. - - * reorg.c (mark_referenced_resources): Mark asm's as volatile - when appropriate. - - * integrate.h (struct inline_remap): New field const_equiv_map_size. - * integrate.c (expand_inline_function): Set it; make larger map. - (subst_constants): Don't reference out-of-range entry in equiv map. - * unroll.c (unroll_loop): Set const_equiv_map_size. - -See ChangeLog.4 for earlier changes. - -Local Variables: -mode: indented-text -left-margin: 8 -fill-column: 76 -version-control: never -End: +See ChangeLog.7 for earlier changes.