--- gcc/ChangeLog 2018/04/24 17:51:19 1.1 +++ gcc/ChangeLog 2018/04/24 18:00:26 1.1.1.4 @@ -1,13233 +1,9828 @@ -Sat Feb 22 02:09:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Dec 26 05:12:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Version 2.0 released. + * Version 2.3.3 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. +Fri Dec 25 06:53:49 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * i386mach.h (perform_*): New macros, copied from i386rose.h. + * expmed.c (store_bit_field): If VALUE needs to be narrowed, do + it with gen_lowpart, not an explicit SUBREG. - * 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. + * a29k.md (divsf3): Fix typo in mode of DIV. - * expr.c (do_store_flag): Don't correct CODE before where it is set. +Fri Dec 25 00:03:26 1992 James Van Artsdalen (james at bigtex.cactus.org) - * cp-parse.y (stmt): Pass pushcase_range all the args it wants. + * Makefile.in (install-dir): Add missing semicolon. -Fri Feb 21 18:14:52 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i386sco4.h (_KR, _SVID, _NO_PROTOTYPE): Define if -traditional. - * 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. +Thu Dec 24 15:02:29 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Feb 21 16:47:32 1992 Michael Meissner (meissner@osf.org) + * fixinc.svr4: Don't change bitfield types to int. - * 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. + * seq386.h (TARGET_DEFAULT): Override. - * 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. +Wed Dec 23 20:19:17 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Feb 21 01:34:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * i386sco4.h (CPP_SPEC): Avoid repeated def of _M_SYSV. - * 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. +Tue Dec 22 15:40:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c (output_mem_loc_descriptor): Handle CONST like SYMBOL_REF. + * c-decl.c (store_parm_decls): Use TYPE_MAIN_VARIANT to compare types + when merging info from previous prototype. - * collect2.c (errno): Declare if not macro. + * fixinc.svr4: Add special fixes for netinet/in.h and sys/endian.h. - * dbxout.c [MIPS]: Include gstab.h, not stab.h. +Mon Dec 21 02:58:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dbxout.c (dbxout_symbol): No longer flush leading _ for C++ syms. + * m68kv4.h (ASM_OUTPUT_CASE_END): + Use switch_table_difference_label_flag. - * cp-parse.y (.hush_warning): Set $$. + * configure (m68k-motorola-sysv*): Set use_collect2. - * gstdarg.h: Handle _HIDDEN_VA_LIST as in gvarargs.h. +Sat Dec 19 20:19:44 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Feb 20 07:41:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * a29k.c (secondary_reload_class): Return CR_REGS for larger than + word memory, and BP_REGS for part-word mem with no DW. - * 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. + * a29k.md: Consistently use `&' in constraint of MATCH_SCRATCH. + Always use a reg as 4th arg of dmac/fmac even if ignored by insn. + Uses of `b' as a constraint in multi-word reload patterns should + be `c'. - * caller-save.c (set_reg_live): Use mode of SUBREG to see how many - hard regs are written. +Sat Dec 19 01:32:13 1992 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. + * Makefile.in (all.cross): Add `specs' as dep. -Wed Feb 19 18:32:05 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * build-make (CC): Delete the -V option. - * hp320.h (PRINT_OPERAND): Support codes '$' and '&'. + * getpwd.c (getpwd): Don't get upset if ERANGE is not defined. - * reload1.c (reload): Add cast of enum in index. +Fri Dec 18 20:56:59 1992 John Hassey (hassey@dg-rtp.dg.com) - * vms.h (CPP_PREDEFINES): Define __GNUC__ as 2. + * objc-actions.c (build_encode_expr): + Terminate the encode string with a null. + (encode_aggregate): Distinguish pointer to record from a + record. Output fields for record. Fix unions. -Wed Feb 19 21:43:36 1992 Ron Guilmette (rfg at ncd.com) +Fri Dec 18 17:17:39 1992 Michael Meissner (meissner@osf.org) - * 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. + * mips.h (MIPS_VERSION): Set Meissner version # to 33. + (struct mips_args): Add support for passing QI/HI mode structures + the way the MIPS compiler passes them. + (SIZE_TYPE, PTRDIFF_TYPE): Define as unsigned int, and int if not + defined already. -Tue Feb 18 18:34:13 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * mips.c (init_cumulative_args): Use a static structure to + initialize the CUMULATIVE_ARGS structure. + (function_arg_advance): Add a newline at the end of debug output. + (function_arg): If a structure is passed as a QImode or HImode + value in a register, record the fact for the call define_expands + and prologue expander to move the structure into the high part of + the register, and back again. If debugging, print if the argument + is a structure. + (mips_expand_prologue): Shift any QI/HI structures passed back, so + they can be used as normal QI/HI values. - * 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. + * mips.md (call): If there were any tiny structures passes as + QI/HI modes in registers, shift the register, so that the + structure value is in the high part of the register. + (call_value): Ditto. + (call_internal): Delete creating $31 rtx, since we can get it from + the normal insn patterns. + (call_value_internal): Ditto. - * sched.c (schedule_block): Comment code handling USE insns as - obsolete. +Fri Dec 18 05:14:14 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Feb 18 14:44:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Make abstract virtual functions work. + * cp-call.c (compute_conversion_costs): Undo change of Sept 1 about + setting HARSHNESS to 0 re: the conversion of the first argument. + (build_method_call): Delete the code that redid the RTL for calling + the right fn, since we will now behave correctly. (Even with this, + we ended up calling the wrong fn---the base class, rather than the + derived one.) - * 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. + * cp-decl2.c (grokclassfn): Try using the local value for a nested + type if the IDENTIFIER_TYPE_VALUE isn't there. - * g++: Now a link to c++. + * cp-method.c (build_overload_nested_name): Use DECL_NAME instead of + DECL_ASSEMBLER_NAME, since pushtag now mangles together + DECL_ASSEMBLER_NAME. This will make us emit `Q21D1B', not `Q221D1B'. -Tue Feb 18 04:54:52 1992 david d [zoo] zuhn (zoo at lynx.spa.umn.edu) +Thu Dec 17 17:51:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - * protoize.c (main): added support for -p flag, to specify which - gcc is the one to call for -fgen-aux-info support. + * Makefile.in (install-dir): Added missing then and semicolon. -Tue Feb 18 07:29:23 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Dec 17 15:19:36 1992 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. + * x-i386s4 (CC): New assignment. - * romp.md (bit_insv): Add missing CLOBBER when making pattern to - match mftb; likewise for the DEFINE_INSN. +Wed Dec 16 15:49:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Feb 18 01:03:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * objc-actions.c (finish_objc) [OBJC_SELECTORS_WITHOUT_LABELS]: + Always call build_selector_translation_table. - * rs6000.h (bss_section): Set `in_section' correctly. + * Makefile.in (install-dir): + If cross-compiler, create $(tooldir) and $(assertdir). - * expmed.c (synth_mult): Count second shift for alg_compound. - Count extra shift for lea case. - * m68k.h (RTX_COSTS): Reduce cost of multiply. +Wed Dec 16 14:19:08 1992 Richard Kenner (kenner at vlsi1.ultra.nyu) - * function.c (instantiate_decls): Instantiate DECL_INCOMING_RTL. + * rs6000.h (INITIALIZE_TRAMPOLINE): Get function address and toc + pointer from correct place relative to FNADDR. -Mon Feb 17 19:17:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (assemble_trampoline_template): If TRAMPOLINE_SECTION + is defined, put the trampoline template into that section. - * a29k.md (divmodsi4, udivmodsi4): Don't use reg 180 explicitly. - Instead use 'q' constraint letter. + * alpha.h (TRAMPOLINE_SECTION): New macro. -Mon Feb 17 16:15:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Dec 16 14:19:41 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * global-alloc.c (global_alloc): Always call `reload'. + * reload.c (get_secondary_mem): Don't save address if it isn't valid. -Mon Feb 17 10:38:38 1992 Jim Wilson (wilson at sphagnum.cygnus.com) +Wed Dec 16 13:59:17 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * a29k.md (movdi define_split): Use DImode in operand_subword - calls, not DFmode. + * varasm.c (assemble_trampoline_template): + Use readonly_data_section, not text_section. -Mon Feb 17 08:20:33 1992 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) +Wed Dec 16 11:32:11 1992 Michael Meissner (meissner@osf.org) - * varasm.c (assemble_external): Check that DECL is some sort of - _DECL before referencing its DECL_RTL. + * mips.h (MIPS_VERSION): Set Meissner version # to 32. + (compute_frame_size): Change function return type to long. + (epilogue_reg_mentioned_p): New function decl. + (mips_frame_info): Change unsigned longs to longs. + (ELIGIBLE_FOR_EPILOGUE_DELAY): Call epilogue_reg_mentioned_p. -Sun Feb 16 13:05:36 1992 Michael Tiemann (tiemann at cygnus.com) + * mips.c (epilogue_reg_mentioned_p): New function to return true + if any register used in the epilogue sequence is referenced. If + the stack size is greater than 32k bytes, return true for + registers $8 and $9, since they are used to hold temps. + (compute_frame_size): Change return type & variables to long. + (compute_frame_size): Use 1L in shifts to create GP save mask. + (save_restore): Merge function into save_restore_insns. + (save_restore_insns): Add FILE * argument, to write to the .s + file if non-NULL -- otherwise produce insns. Add arguments to + pass in that the prologue/epilogue has loaded the stack size into + $8 if large stack frame. Completely rewrite large stack frame + support, so that it doesn't abort if large stack frame, saved GP + registers, and no saved FP registers. If large stack frame, use + stack size stored in $8 if we can. + (function_prologue): Make tsize long. + (function_epilogue): Ditto. + (mips_expand_prologue): Ditto. + (mips_expand_epilogue): Ditto. + (mips_expand_prologue): Change call to save_restore_insns. + (mips_expand_epilogue): Ditto. + (function_epilogue): Call save_restore_insns instead of + save_restore. - * 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). +Wed Dec 16 07:33:08 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-lex.c (do_identifier): Remove call to `assemble_external' when - implicitly declaring ID. + * stmt.c (expand_goto): Set LABEL_REF_NONLOCAL_P in the LABEL_REF + we make in the non-local case. - * cp-parse.y (primary): Simplify rules for calling assemble_external. + * varasm.c (assemble_trampoline_template): Always put template in + text section. - * cp-decl.c (finish_function): For destructors, don't call - expand_expr_stmt if EXPRSTMT is VOID_ZERO_NODE. +Wed Dec 16 05:04:06 1992 Tom Wood (wood@dg-rtp.dg.com) -Sun Dec 16 23:31:54 1992 Ron Guilmette (rfg at ncd.com) + * combine.c (try_combine): Allow for the case where I3 becomes an + unconditional jump when it is the last nonnote insn. - * 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. +Tue Dec 15 20:30:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Feb 16 00:54:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cccp.c (do_pragma): Use index, not strchr. - * fixincludes: Add #ifndef around size_t declaration in types.h. + * seq386.h (FUNCTION_PROFILER): Add missing . to label name. - * varasm.c (assemble_external): Do nothing if arg isn't a decl. + * reload1.c (eliminate_regs_in_insn): Test old_body, not new_body, + since people have tested it that way. - * Makefile.in (cp-parse.c): Update "expect" msg. + * reload1.c (eliminate_regs_in_insn): Don't recopy new_body + if it is an asm_operands insn. - * next.h (CPP_SPEC): Rename -bsd to -strict-bsd. +Tue Dec 15 19:42:58 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * Makefile.in (mostlyclean): Add ld, mips-tfile, mips-tdump. + * sparc.md (return peepholes): Add QImode and HImode move/return + patterns. - * protoize.c (directory_specified_p): Don't match files in subdirs. +Tue Dec 15 17:42:07 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * xm-rs6k-m.h: Renamed from xm-rs6000-mach.h. - * configure (rs6000-*-mach*): Changed accordingly. + * alpha.h (ASM_SPEC): New macro. - * 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. + * alpha.h (TRAMPOLINE_{TEMPLATE,SIZE}, INITIALIZE_TRAMPOLINE): + Make major changes to fix numerous bugs. + (TRANSFER_FROM_TRAMPOLINE): New macro. + * alpha.md: Add new UNSPEC_VOLATILE 0 to flush instruction cache. - * Makefile.in (install-collect2): Install gcc in libsubdir. +Mon Dec 14 13:16:14 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sat Feb 15 15:26:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rs6000.c (output_epilog): Support LANGUAGE_STRING values for F77, + Ada, and Pascal. - * varasm.c (decode_reg_name): Empty string is not a reg number. +Sun Dec 13 16:42:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fold-const.c (merge_component_references): NE tests against - mismatched constants forces 1, not 0, as value. + * fixinc.sco: Complete rewrite by ian@cygnus.com. - * i386gas.h (ASM_OUTPUT_OPCODE): Convert repz to repe. +Sat Dec 12 17:51:43 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * va-alpha.h: Correctly form multi-word object. - * cp-typeck.c (default_conversion): Don't use initial value if BLKmode. + * alpha.c (alpha_builtin_savregs): Correctly compute ARGSIZE and NREGS. - * objc-actions.c (finish_objc): Fix typos in last change. + * alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Deleted. - * c-aux-info.c, dbxout.c, cccp.c (errno): Declare, if not a macro. +Sat Dec 12 08:42:43 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * i386.md (QI bit test recognizer): Split into separate patterns - for memory and register args. Make a scratch reg for memory. + * pa-hpux.h (TARGET_DEFAULT): Do not enable TARGET_SHARED_LIBS + by default in 2.3.3 since it doesn't really work. + * pa-ghpux.h, pa1-hpux.h, pa1-ghpux.h: Likewise. -Fri Feb 14 23:39:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * pa.md (floatsisf, floatsidf): Do not accept general registers. - * tree.c (get_identifier): Improve -Wid-clash message. +Fri Dec 11 00:13:52 1992 Ian Lance Taylor (ian@cygnus.com) -Fri Feb 14 16:22:48 1992 Michael Collison (collison at osf.org) + * configure (i[34]86-*-sco3.2v4*): Use fixinc.sco. + * fixinc.sco: New file. + Like fixinc.svr4 but turn !__STDC__ into !__STRICT_ANSI__. Don't + require space after getcwd argument in stdlib.h. + * x-i386s4: Don't use rcc: + (CC, OLDCC, RCCFLAGS, CCLIBFLAGS): Vars deleted. + * xm-i386sco.h (ONLY_INT_FIELDS): Define if not __GNUC__. + (CODE_FIELD_BUG): Likewise. + * rtl.h (struct rtx_def) [ONLY_INT_FIELDS]: Handle CODE_FIELD_BUG. - * 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. +Fri Dec 11 17:56:53 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Fri Feb 14 00:38:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-search.c (lookup_nested_field): Check for assignment to members + of an enclosing class only when looking at a member, not at other + things (like nested types). - * Makefile.in (protoize.o, unprotoize.o): g++-include is under libdir. + * cp-cvt.c (convert_to_reference): If a conversion can be found via + a constructor, then use it. Also fix a typo about when to + return the result of a type conversion. - * Makefile.in (enquire.o): Make the command one long line. +Fri Dec 11 08:15:53 1992 James Van Artsdalen (james@bigtex.cactus.org) - * 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. + * reload1.c (choose_reload_regs): Don't inherit a reload if the + previous reload wasn't at least as wide as the current reload. - * varasm.c (assemble_external): Test TREE_EXTERNAL. +Fri Dec 11 07:19:11 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * jump.c (follow_jumps): If can't find chain end, return orig label + * alpha.c (output_epilog): Remove garbage from one decl of EXTRA. + Subtract, not add, size from frame pointer. - * mot3300.h (PRINT_OPERAND): Always print 16 hex digits for a double. + * a29kunix.h (LINK_SPEC): Use -T, not -c, for new gld and change file + name to default.gld from default.ld. - * 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. + * function.c (assign_outer_stack_local): Align proper frame offset. - * cccp.c (pedwarn_with_file_and_line): Handle -w, -W. + * loop.c (get_condition): Check for overflow when canonicalizing + comparison. -Fri Feb 14 07:44:08 1992 James Van Artsdalen (james at bigtex.cactus.org) +Thu Dec 10 15:53:41 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * 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. + * enquire.c (i_define, u_define, f_define): Add #undef before #define. + * fixinc.svr4 (limits.h): Add #ifndef/#endif around macros that + are supposed to be defined in float.h. - * i386.c (seq,sne,beq,bne): These opcodes use the state of - cc_status from before the curren insn. + * combine.c (try_combine): Only use I2DEST as a scratch reg for + a split if it does not overlap any inputs of NEWPAT. - * reg-stack.c (stack_reg_mentioned_p): Don't make static. +Thu Dec 10 10:23:28 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Feb 14 06:27:48 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * combine.c (get_last_value): Never use value from later insn, even + if reg is only set once. - * jump.c (jump_optimize): Disable "if (...) {... x = C;} if (x) ..." - optimization; there doesn't seem to be a way to fix it. + * c-tree.h (IDENTIFIER_LIMBO_VALUE): Delete duplicate definition. -Thu Feb 13 18:06:06 1992 James Van Artsdalen (james at bigtex.cactus.org) +Thu Dec 10 08:54:03 1992 Tom Wood (wood@dg-rtp.dg.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. + * i386sco4.h (CPP_PREDEFINES): Define i386 and unix here. + (CPP_SPEC): Not here. -Thu Feb 13 17:21:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Dec 9 19:03:55 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * c-decl.c (finish_struct): Use pedwarn for pedantic warning. - (grokdeclarator): Likewise. - * c-parse.y (component_decl_list2): Likewise. + * pa.h (ASM_DECLARE_FUNCTION_NAME): Correctly get the return type + of DECL. -Thu Feb 13 22:11:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * x-pa (CC): Set to "/usr/local/bin/gcc" instead of + "/usr/local/gcc". - * combine.c (make_extraction): Default modes to byte and register - size, as appopriate, when the bitfield insn doesn't exist. +Tue Dec 8 17:50:26 1992 Michael Meissner (meissner@osf.org) - * a29kunix.h (LINK_SPEC): Pass default option file to gld. - (LINK_LIBGCC_SPECIAL): Define to work around gld bug. + * mips.h (MIPS_VERSION): Bump Meissner version number to 31. + (LEGITIMIZE_ADDDRESS): Split large offsets, even when not + optimizing. Otherwise, illegal stack offsets can be generated. - * explow.c (copy_to_suggested_reg): Try getting mode from TARGET. +Tue Dec 8 11:55:52 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * 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. + * pa.md (sh[123]add): Use "shadd_operand" as the predicate for + operand one. + * pa.c (shadd_operand): New function. - * 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. +Tue Dec 8 08:30:13 1992 Tom Wood (wood@dg-rtp.dg.com) - * a29k.c (output_prologue): Correctly set LR1 when more than 64 - registers are needed. + * hp320.h (AS_BUG_FLOATING_CONSTANT, AS_BUG_TRAILING_LABEL): New. + (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Output align 1 to + accomodate the "trailing label" bug. + (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_FLOAT_OPERAND): Define to + output values in hex to accomodate the "floating constant" bug. + (PRINT_OPERAND_FLOAT, PRINT_OPERAND): Ditto. -Wed Feb 12 22:22:46 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * gcc.c (temp_names): New variable. + (do_spec_1): Rewrite MKTEMP_EACH_FILE for %g/%u/%U. + (choose_temp_base): Abort if mktemp yields a null string. - * make-cccp.com: Define link as a local symbol to avoid - possible conflict with a user defined global symbol. +Tue Dec 8 08:30:13 1992 Niklas Hallqvist (niklas@della.appli.se) - * make-cc1.com: Likewise. + * integrate.c (expand_inline_function): Don't output line notes + for implicit formals. -Thu Feb 13 11:05:07 1992 Michael Meissner (meissner at osf.org) +Tue Dec 8 06:21:44 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * cse.c (max_uid): New variable. + (cse_end_of_basic_block): Use it to ignore insns made by CSE. + (cse_main): Set it. -Thu Feb 13 01:15:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Dec 7 21:22:29 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * cccp.c (skip_if_group): Skip comments after the #. + * cp-init.c (do_friend): Revert change of Sept 1; it seems to have + broken properly emitting friends. - * cccp.c (macarg): Don't assume stringify will compress spaces. - (macroexpand): In stringify, compress space only outside tokens. +Mon Dec 7 19:09:25 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cexp.y (exp1): Use pedwarn for comma in #if. + * reload1.c (eliminate_regs_in_insn): Make another copy of all the + RTL if we changed something and we aren't permanently replacing. - * cp-decl.c (push_binding_level, pop_binding_level): - Change `inline' to `__inline'. + * romp.md (reload_out{q,h}i): Write as proper PARALLEL. - * combine.c (make_compound_operation): Undo previous change. +Sun Dec 6 16:27:14 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Feb 12 18:47:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * alpha.md (add-mult): Add missing `&' in constraints of kludge + plus/plus/mult pattern. - * 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. +Sun Dec 6 16:26:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Feb 12 18:58:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * optabs.c (expand_binop): Correct sign of complex quotient imagpart. - * gcc.c (do_spec_1): Only absolute prefixes turn into -L's. - (link_command_spec): Handle LINK_LIBGCC_SPECIAL. +Sun Dec 6 07:59:16 1992 Michael Meissner (meissner@osf.org) -Wed Feb 12 18:38:29 1992 Chris Smith (csmith at convex.com) + * mips.h (MIPS_VERSION): Set Meissner version # to 30. + (LEGITIMIZE_ADDRESS): For + addresses, rewrite so + that + ( & ~0x7fff) is put into a pseudo reg. + This is to allow CSE to generate better code for repeated + references in the same general vicinity, such as when large stack + frames are used. - * 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). + * config/dec-osf1.h (LINK_SPEC): Pass -call_shared, -no_archive, + and -exact_version to the linker. If -call_shared, do not pass + -non_shared to the linker. + * mips-5.h (LINK_SPEC): Ditto. + * mips-5bsd.h (LINK_SPEC): Ditto. + * mips-svr4.h (LINK_SPEC): Ditto. + * mips-sysv.h (LINK_SPEC): Ditto. -Wed Feb 12 17:23:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Dec 4 19:50:29 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) - * config.sub: Accept just `hppa' for machine. + * fixincludes: fix _cplusplus typo in SCO's tinfo.h - * Makefile.in (Install-collect2): New target. +Fri Dec 4 19:22:35 1992 Randy S. Welch (randy@kcin.alphacdc.com) -Wed Feb 12 13:55:24 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * xm-plexus.h: New file. + * configure (m68k-plexus-sysv*): Use it. - * reorg.c (relax_delay_slots): Don't convert jump to return here. +Fri Dec 4 19:21:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-decl.c (start_function): Use TYPE_MAIN_VARIANT when comparing + return type with previous prototype declaration. - * reload.c (find_reloads): Don't use class from preference if it - is a single-register class. + * cccp.c (output_line_command): Use alloca for line_cmd_buf. -Wed Feb 12 13:03:16 1992 Tom Wood (wood at dg-rtp.dg.com) +Fri Dec 4 19:20:34 1992 Richard Kenner (kenner@mole.gnu.ai.mit.edu) - * m88k.h (FUNCTION_BOUNDARY, ASM_OUTPUT_ALIGN): Pack code tightly - when compiling crtstuff.c (flag_inhibit_size_directive). + * cse.c (cse_insn): Always pass result of canon_reg through + validate_change before using it in insn. -Wed Feb 12 10:34:09 1992 Michael Meissner (meissner at osf.org) + * c-decl.c, cp-decl.c (init_decl_processing): Don't use hardwired + sizes for the modes when making int{Q,H,S,D}I_type_mode and the + unsigned versions of them; the actual size depends on BITS_PER_UNIT. - * 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 Dec 4 19:13:35 1992 Jonas Olsson (ljo@po.cwru.edu) -Wed Feb 12 10:34:09 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i386bsd.h (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): + Copy definitions from i386v4.h to get PIC code correct. - * caller-save.c (insert_save_restore): Properly check for insns that - reference CC0. +Thu Dec 3 19:20:14 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Feb 12 03:17:00 1992 Chris Smith (csmith at convex.com) + * cp-decl.c: Include sys/types.h for systems that need things for + signal.h. - * convex.h (DEFAULT_CALLER_SAVES): don't define, to sidestep a bug. - * convex.md (ffssi2): Comment out. +Thu Dec 3 01:40:42 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Wed Feb 12 00:08:42 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * sparc.c (finalize_pic): Remove "*_" from GLOBAL_OFFSET_TABLE name. + * spc-sol2.h (ASM_SPEC): Pass "-K PIC" to assembler when pic. + (JUMP_TABLES_IN_TEXT_SECTION): Define. + (SELECT_RTX_SECTION): Define. - * make-libgcc2.com: Do not save .s file. + * fixincludes (sys/types.h): Check for [ \t]size_t not size_t. - * vms.h: Wrap #include in #ifdef L__main/endif +Wed Dec 2 15:40:36 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Feb 11 21:58:42 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * configure (rs6000-ibm-aix32): New target. + * rs6000-aix32.h: New file. - * libgcc2.c (DO_GLOBAL_DTORS_BODY): New macro. +Tue Dec 1 18:05:20 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * make-l2.com: New file to build libgcc2 on VMS. + * cp-type2.c (build_functional_cast): Revert change of Nov 2, + concerning clearing the TREE_VALUE of a default parameter. - * vms.h (DO_GLOBAL_CTORS_BODY): Replacement definition. +Tue Dec 1 13:33:25 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * vms.h (DO_GLOBAL_DTORS_BODY): Likewise. + * local-alloc.c (optimize_reg_copy_2): Correct reg_n_refs updates. - * make-cccp.com: Define bison and rename as local symbols to avoid - possible conflict with user defined global symbols. + * Makefile.in (INSTALLED_H): Add syslimits.h. -Tue Feb 11 22:17:32 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Dec 1 11:09:50 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * sched.c (attach_deaths): Don't treat PIC offset table register - specially; flow.c doesn't. + * cp-call.c (build_method_call): When looking for a default arg + initialized by a ctor, be careful of a null ref w/ operand 1. - * 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. +Tue Dec 1 10:43:13 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Feb 11 21:32:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * combine.c (num_sign_bit_copies): Return 1 on failure, not 0. + Fix typo in last change; return 1 on failure, not BITWIDTH. - * Makefile.in (install-common-headers): Copy byteorder.h to - compilation dir. +Tue Dec 1 09:39:47 1992 Michael Meissner (meissner@osf.org) - * config.sub: Allow unicos as operating system. + * mips.c (function_prologue): Do not emit a .loc before the + function if debug level is 1. This confuses gdb. - * m88kv4.h (INIT_SECTION_ASM_OP): Add #progbits. +Tue Dec 1 02:48:29 1992 James Van Artsdalen (james at bigtex.cactus.org) - * vax.h (DYNAMIC_CHAIN_ADDRESS): New macro. + * isc.h (TARGET_DEFAULT): New macro - don't make TARGET_IEEE_FP + default for ISC. - * c++: Propagate quoted args properly. +Fri Nov 27 01:30:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Feb 11 16:35:01 1992 Jim Wilson (wilson at cygnus.com) + * Version 2.3.2 released. - * fixincludes: Define TERM to `unknown', to ensure that it is - valid. Otherwise, ex may fail. - * fixinc.svr4: Likewise. + * objc/core.c (searchForMethodInHierarchy): + If SEL or NAME is 0, return 0. -Tue Feb 11 18:04:32 1992 Michael Meissner (meissner at osf.org) + * gcc.c (LINK_LIBGCC_SPECIAL_1): New parameter. + * rs6000.h (LINK_LIBGCC_SPECIAL_1): Defined. - * 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. + * t-hp320g (RANLIB, RANLIB_TEST, AR, AR_FLAGS): + Just copy value of ..._FOR_TARGET. + (LIBCONVERT): Use TARGET_TOOLPREFIX. - * decstatn.h (CPP_PREDEFINES): Eliminate __ versions, since - gcc will do these automatically. Eliminate LANGUAGE_C, since it is - handled in CPP_SPEC. + * reload.c (find_reloads) [SMALL_REGISTER_CLASSES]: + Don't use preferred_class for a multiword register. -Tue Feb 11 15:38:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cccp.c (do_include): Initialize searchptr to 0. - * flow.c (find_basic_blocks): Don't delete labels used in non-jumps. +Fri Nov 27 07:40:54 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * vms.h (DO_GLOBAL_CTORS_BODY): Modify the return address - only the first time __main is called. + * combine.c (subst, make_field_assignment, num_sign_bit_copies): + Protect calls to significant_bits; unless we only care if the + result is a power of two, don't call if mode size is wider + than HOST_BITS_PER_WIDE_INT. + (extended_count, simplify_shift_const, simplify_comparison): Likewise. - * fixinc.svr4: Change headers to test __STRICT_ANSI__ instead of - testing __STDC__ != 0. +Thu Nov 26 10:31:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fixinc.svr4 (mman.h): Fix backward __STDC__ conditional. - Don't add declarations of munmap and mprotect. + * gstdarg.h (va_end): #undef before the declaration. - * varasm.c (output_constant): Allow empty constructor for any type. + * gstdarg.h (va_arg): Alternative definition for big-endian machines. + * gvarargs.h (va_arg): Copy both definitions from gstdarg.h. - * dwarfout.c (ASM_OUTPUT_DWARF_DATA8): Just one definition; - test WORDS_BIG_ENDIAN "at run time". + * limitx.h, limit.y: Test and define _GCC_LIMITS_H_, not _LIMITS_H_. -Tue Feb 11 09:00:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips.c (mips_debugger_offset): Don't crash for unknown cases. - * reload.c (find_reloads): Don't substitute in MATCH_DUPs if we - are not generating replacements. + * c-typeck.c (build_unary_op): Call pedantic_lvalue_warning + for *all* cases of incrementing a cast. -Tue Feb 11 08:45:14 1992 Tom Wood (wood at dg-rtp.dg.com) + * libgcc2.c (__udiv_w_sdiv): Cast 1 before shifting by 31. - * m88kv4.h ({CTORS,DTORS}_SECTION_ASM_OP): Fix typo. + * fixincludes (PWDCMD): New variable, set specially for Apollos. + Use it to get the working dir. -Mon Feb 10 22:34:47 1992 Chris Smith (csmith at convex.com) + * combine.c (num_sign_bit_copies): Fix 1-off error in PLUS case. - * convex.h(HARD_REGNO_NREGS): define correctly for 64-bit regs + * c++: Put newline into `for arg do'. -Mon Feb 10 21:50:23 1992 Michael Meissner (meissner at osf.org) +Thu Nov 26 08:32:20 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * expmed.c (struct algorithm): Make coeff a HOST_WIDE_INT. - * 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. + * romp.c (output_epilog): Always call output_fpops. -Mon Feb 10 16:34:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Nov 25 16:24:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * convex.h (REAL_VALUE_TRUNCATE): Obsolete definition deleted. + * Makefile.in (install-fixincludes): Use SYSTEM_HEADER_DIR. - * config.sub (convex-*): These are BSD, not sysv. + * m68ksgs.h (ASM_OUTPUT_DOUBLE_OPERAND): Really use the operand VALUE. - * 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. + * tree.h (CONSTRUCTOR_NAME_FORMAT): Let config.h override this. + * tower-as.h (CONSTRUCTOR_NAME_FORMAT): Defined. -Mon Feb 10 12:28:59 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c++: Replace `for arg do' which ash can't handle. - * xm-a29k-ult.h: Fix typo in placement of copyright notice. + * t-next (OTHER_FIXINCLUDES_DIRS): Delete /NextDeveloper/Headers. -Mon Feb 10 05:36:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * apollo68.h (HAVE_ATEXIT): Commented out. - * dbxout.c (dbxout_type): Don't use GDB extensions if they are empty. + * regclass.c: Fix typo in use of SECONDARY_INPUT_RELOAD_CLASS. + (copy_cost): Fix typo in use of SECONDARY_OUTPUT_RELOAD_CLASS. -Mon Feb 10 00:10:20 1992 Michael Tiemann (tiemann at cygnus.com) +Wed Nov 25 14:15:50 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * cp-class.c (finish_struct): Use DECL_CHAIN, not TREE_CHAIN to walk - through the list of methods identified by a visibility declaration. + * fixinc.svr4 (regexp.h): Don't add a getrnge declaration if a + conflicting declaration is already present. - * cp-cvt.c (convert_pointer_to): No longer need to abort if BINFO is - not a TREE_VEC or AGGR_TYPE node. +Wed Nov 25 06:47:18 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-parse.y (stmt): Improve error handling for try/except. + * rs6000.h (LINK_LIBGCC_SPECIAL): No longer define. - * cp-class.c (add_method): If we create RTL for a copy of METHOD, - copy the RTL to METHOD's DECL_RTL slot. + * stmt.c (expand_value_return): Don't emit move between differing + modes when PROMOTE_FUNCTION_RETURN is defined; convert instead. - * cp-method.c (dump_type): Print `const' and/or `volatile' for - VOID_TYPE and REAL_TYPEs, too. + * integrate.c (expand_inline_function): Ensure a REG used as + COPY has REG_USERVAR_P set if LOC does. -Sun Feb 9 21:07:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * optabs.c (expand_binop, expand_twoval_binop): If we are going + to fail, remove any load from MEM we did due to -fforce-mem; + if the MEM was volatile, this will cause an extra load. + (expand_complex_abs): Likewise. + Correct use of variable LAST so it doesn't include the load + from MEM (to fix unrelated bug). - * varasm.c (assemble_integer): Pass third arg in recursive calls. - Act appropriately if word-by-word loop doesn't finish. +Tue Nov 24 00:23:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (bootstrap*): Don't override value of ALLOCA. + * i386bsd.h (FUNCTION_PROFILER): Use mcount, not _mcount. - * dbxout.c (dbxout_symbol, dbxout_parms): Do leaf function remap - only if LEAF_REG_REMAP and only in leaf functions. + * t-next (OTHER_FIXINCLUDES_DIRS): Leave just /LocalDeveloper/Headers + and /NextDeveloper/Headers. -Sun Feb 9 16:46:27 1992 Michael Tiemann (tiemann at cygnus.com) +Mon Nov 23 22:06:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-init.c (maybe_adjust_addr_for_delete): Build final COND_EXPR - with TREE_TYPE (addr). + * ns32k.md (movsi): Split alt 1 to deprecate xy classes in operand 1. -Sun Feb 9 14:20:49 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * combine.c (make_extraction): When making a low part subreg of a reg, + use inner_mode, not is_mode. - * 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. +Mon Nov 23 21:11:13 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Feb 9 08:29:21 1992 James Van Artsdalen (james at bigtex.cactus.org) + * romp.h (ASM_FILE_START): Stop at first blank in VERSION_STRING. - * 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. +Mon Nov 23 21:09:20 1992 Tom Wood (wood@dg-rtp.dg.com) - * i386.c (regclass_map): New variable. Lookup array for - REGNO_REG_CLASS. + * fold-const.c (range_test): Convert the constants to the unsigned + type before expanding the range test. -Sat Feb 8 01:20:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Nov 23 20:54:45 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-parse.y (yyprint): Test __GNUC__, not __GNU__. - Use __inline, like everywhere else. + Mon Nov 23 13:21:43 1992 Brendan Kehoe (brendan@cygnus.com) - * a29k.h, romp.h (OVERRIDE_OPTIONS): Deleted. - (OPTIMIZATION_OPTIONS): Defined, instead. - * rs6000.h (OPTIMIZATION_OPTIONS): New macro. - (OVERRIDE_OPTIONS): Don't change optimization. + * c++ (first): Only shift if $first is no, on the chance we got no + arguments at all. If we didn't get anything, say so (since -lg++ + will fake out the gcc driver into thinking we want to do something). - * final.c (leaf_renumber_regs_insn): No longer static. - * dbxout.c (dbxout_symbol, dbxout_parms): Call that. + * cp-decl.c (start_decl): If grokdeclarator returns a + void_type_node, return a NULL_TREE. - * 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. + * cp-typeck.c (build_modify_expr_1): When calling build_opfncall for + `operator=', use make_node to create a plain NOP_EXPR for it to use, + rather than trying to pass NOP_EXPR down hoping it gets there intact. + (build_modify_expr): Ditto. + * cp-parse.y (expr_no_commas): Ditto. + * cp-method.c (build_opfncall): Use TREE_CODE on ARG3 for a + MODIFY_EXPR, since it'll be coming in properly as a tree now. - * c-typeck.c (build_array_ref): Return early if arg is error mark. + Sat Nov 21 02:33:28 1992 Brendan Kehoe (brendan@cygnus.com) - * Makefile.in (test-protoize): Rule deleted. + * cp-init.c (expand_default_init): Clear DECL_REGISTER if we're + going to call a ctor, otherwise we may end up generating bogus and + confusing error messages about taking the addr of something declared + to be `register'. - * stmt.c (emit_case_nodes): Handle just-left-subtree case - like just-right-subtree--delete mysterious code that tests cost_table. + * cp-typeck.c (build_x_function_call): Recognize a ptr-to-method + that is being passed in as a function argument or as part of + a COMPONENT_REF. + (build_indirect_ref): If ERRORSTRING is NULL (it's passed in that + way in many places), then don't try to use it. - * varasm.c (decode_reg_name): Accept decimal number as reg name. + Thu Nov 19 01:41:58 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * c-decl.c (finish_decl): If pop_obstacks goes to perm obstack, - call permanent_allocation. + * cp-dem.c (do_builtin_type): Recognize `w', a wide character, since + it's now a type according to the ANSI X3J16 working paper; output + "wchar_t" for it. + (cplus_demangle): Accept `w' as an integral type. - * gcc.c (link_command_spec): Use -lgcc, not libgcc.a. + Wed Nov 18 21:29:14 1992 Brendan Kehoe (brendan@cygnus.com) -Fri Feb 7 16:56:17 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-class.c (finish_struct): Re-enable code to cut down on the size + of symbol output, the positives outweigh the negatives. - * rs6000.h (DOLLARS_IN_IDENTIFIERS): Define to zero, because the - assembler does not accept dollar signs. + Wed Nov 18 19:51:59 1992 Mike Stump (mrs@cygnus.com) -Fri Feb 7 15:36:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-search.c (dfs_walk): Move setting of + vbase_decl_ptr_intermediate out of #ifdef code. - * Makefile.in (mostlyclean): Fix name of tmp-proto.1. + Wed Nov 18 18:49:13 1992 Mike Stump (mrs@cygnus.com) - * configure: Delete excess space in assignment to srcdir. + * cp-decl.c (grokdeclarator): Make wording on error message + stronger. - * cp-decl2.c (DOLLARS_IN_IDENTIFIERS): Default now 1, as in C. + Tue Nov 17 17:46:11 1992 Brendan Kehoe (brendan@cygnus.com) - * i386gas.h (ASM_OUTPUT_LOOP_ALIGN): New macro. - (ASM_OUTPUT_ALIGN_CODE): Use 16-byte boundary on 486. + * cp-search.c (CHECK_convert_pointer_to_single_level): Don't define. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Use operands for the memrefs - to avoid dependence on assembler syntax. +Mon Nov 23 19:44:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Feb 7 10:26:32 1992 Michael Meissner (meissner at osf.org) + * mot3300.h (switch_table_difference_label_flag): Define it. - * Makefile.in (EXTRA_OBJS): New variable for extra object files - needed when linking cc1, cc1plus, and cc1objc. + * ns32k.md (addsi3): Add & for alternative 1 in operand 0. -Fri Feb 7 07:34:03 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Nov 23 18:29:27 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * reload1.c (set_label_offsets, reload_as_needed): Recompute - num_not_at_initial_offset when we pick up offsets from offsets_at. + * genattrtab.c (obstack.h): Include after sys/time.h. - * unroll.c (unroll_loop): Copy initial and final values to avoid - sharing. - - * cse.c (simplify_relational_operation): Complete last change by - correctly handling <= and >=. - -Thu Feb 6 23:57:02 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (grokdeclarator): Invert sense of warning about - initialized extern vars, since in C++, const has funny semantics. - -Thu Feb 6 15:12:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * cse.c (simplify_relational_operation): Test properly for floating - equality; don't deduce this from < and >. - - * xm-mips.h (alloca): Don't define or declare if MIPS_OVERRIDE_ALLOCA. - * xm-irix4.h (MIPS_OVERRIDE_ALLOCA): Defined. - - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Use explicit reg var - to avoid dependence on register name syntax. - - * 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. - - * gstdarg.h: If not __GNUC__, use system's stdarg.h. - -Thu Feb 6 22:36:36 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * vms.h (DEFAULT_GDB_EXTENSIONS): Define as 0. - -Thu Feb 6 13:32:37 1992 Michael Meissner (meissner at osf.org) - - * 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. - - * 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. - - * 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. - - * decrose.h (INIT_SECTION_ASM_OP): Define as .init. - -Thu Feb 6 10:07:17 1992 Tom Wood (wood at dg-rtp.dg.com) - - * m88k.c (preserve_registers): Change to walk the epilogue delay - insns in the forward rather than reverse order (for reorg.c change). - -Thu Feb 6 02:54:28 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * cse.c (simplify_binary_operation, case PLUS): Don't make - a (const (plus X Y)) with X a CONST_INT. - - * fixincludes: Simplify egrep command. - -Thu Feb 6 01:11:28 1992 Mark Eichin (eichin at cygnus.com) - - * 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.) - -Wed Feb 5 18:42:56 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - - * cse.c (fold_rtx): When associating operations, avoid infinite - recursion if the new expression contains our operand. - -Wed Feb 5 21:18:06 1992 Mark Eichin (eichin at cygnus.com) - - * 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 Feb 5 18:01:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * varasm.c, hp800.h, i386.h, m88k.h, mips.h, romp.h, vms.h: - (ENCODE_SECTION_INFO): Renamed from ENCODE_SEGMENT_INFO. - - * sparc.md (nonlocal_goto): Copy static chain into - virtual_stack_vars_rtx, not frame pointer itself. - (nonlocal goto return recognizer): Jump to %o0+0. - - * toplev.c (main): Fix test for -Wid-clash. - -Wed Feb 5 16:58:15 1992 Ron Guilmette (rfg at ncd.com) - - * 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. - -Tue Feb 4 14:51:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * dbxout.c (dbxout_symbol): Handle DBX_OUTPUT_CONSTANT_SYMBOL. - (dbxout_block): Handle DBX_OUTPUT_CATCH. - - * cccp.c (lookup_import, add_import, do_include): - Use bcmp and bcopy to access st_ino and ->inode fields. - - * dbxout.c (dbxout_init): Pass syms to DBX_OUTPUT_STANDARD_TYPES. - - * 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. - - * c-common.c (c_expand_expr_stmt): Test for ERROR_MARK as type. - -Tue Feb 4 12:03:26 1992 Michael Tiemann (tiemann at cygnus.com) - - * stmt.c (expand_end_case): Don't crash if function called - is not an ADDR_EXPR. - -Tue Feb 4 14:17:22 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. + * c-decl.c (duplicate_decls): For builtins, create new function + type instead of trying to modify old one. -Tue Feb 4 00:27:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Nov 23 16:28:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (protoize.1, unprotoize.1): Rename temp files < 14 chrs. + * i386bsd.h (COMMENT_BEGIN): Redefine as #. + (ASM_APP_ON, ASM_APP_OFF): Redefine to use #. - * cccp.c (skip_if_group): Make unknown cmd name a pedantic warning. + * combine.c (num_sign_bit_copies): Inhibit x-1 special case + when x is a paradoxical subreg. -Mon Feb 3 18:10:41 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * xm-linux.h (malloc, calloc): Definitions deleted. - * romp.h (LEGITIMATE_CONSTANT_P, ENCODE_SEGMENT_INFO): Use - SYMBOL_REF_FLAG. +Mon Nov 23 11:52:41 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * x-romp-mach: New file. - * configure (romp-*-mach*): New alternative. + * pa.md (sh[123]add): Use "nonmemory_operand" instead of + "register_operand" as the predicate for the first operand. -Mon Feb 3 16:43:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Nov 23 00:29:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-typeck.c (warn_for_assignment): Print arg num in origin 1. + * gcc.c (default_compilers): Pass -i* after -U*. - * sparc.md (nonlocal_goto trap recognizer): Fix opcode spelling. +Sun Nov 22 17:03:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * function.c (fix_lexical_addr): Properly search for correct display. + * hp320.h (FUNCTION_PROFILER): Complete replacement. - * romp.h (OVERRIDE_OPTIONS): Don't set flag_omit_frame_pointer. + * xm-hp320.h (index, rindex): Defined. -Mon Feb 3 11:11:58 1992 Michael Tiemann (tiemann at cygnus.com) + * gstddef.h: Fix prev change; test of _STDDEF_H was backwards. - * gcc.c (@c++-cpp-output): Delete extraneous "}}}" at the end of the - rule. +Sun Nov 22 16:12:38 1992 Tom Wood (wood@dg-rtp.dg.com) -Mon Feb 3 11:38:19 1992 Ron Guilmette (rfg at ncd.com) + * toplev.c (W_options): Delete -Wreturn-type, as it is in lang_options. + * c-decl.c (c_decode_option): Decode -Wreturn-type. - * 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. + * c-decl.c, cp-decl.c (pushdecl): Don't inherit DECL_INITIAL when + redeclaring the current function. - * 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. + * integrate.c (expand_inline_function): Use the original + declaration of the inlined function rather than a redeclaration as + the BLOCK_ABSTRACT_ORIGIN of the body. - * dwarfout.c (dwarfout_init): Output compilation directory name as - the first thing in the .debug_sfnames section. +Sat Nov 21 19:54:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Feb 3 04:12:51 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cccp.c (main): Do -D's and -A's and -U's in order specified. - * Makefile.in (install-dir): `parent' is a shell variable. + * gcc.c (default_compilers): When running cpp, + move %{D*} and %{U*} (in that order) just before %i. -Mon Feb 3 09:43:51 1992 Tom Wood (wood at dg-rtp.dg.com) +Sat Nov 21 18:24:55 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * m88k.h (EXTRA_SECTIONS): Use init and fini sections from svr3.h, - but only when using svr3.h. + * xm-pa.h: Remove #ifdef hpux stuff. + (S_ISDIR): Remove. + * xm-pahpux.h: New file, developed from old xm-pa.h. Define + rindex/index. + * pa-hpux7.h, pa-gux7.h: New files. -Sun Feb 2 19:50:29 1992 James Van Artsdalen (james at bigtex.cactus.org) + * configure (hppa1.0-*-hpux*, hppa1.0-*-hpux*): Use xm-pahpux.h. + (hppa1.0-*-hpux7*): New alternative. - * i386.h (ADDRESS_COST): New macro. +Sat Nov 21 14:10:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Feb 2 17:08:47 1992 Michael Meissner (meissner at osf.org) + * spc-sol2.h (SWITCH_TAKES_ARG, LINK_SPEC): New override definitions. - * 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. + * xm-mot3300.h (index, rindex): Defined. -Sun Feb 2 16:58:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Nov 21 07:54:53 1992 Michael Meissner (meissner@osf.org) - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Do ON_EXIT last. + * mips.h (MIPS_VERSION): Set Meissner version number to 29. - * Makefile.in (install-dir): Create the parent of mandir if nec. + * mips.c (mips_expand_prologue): If profiling, emit an insn to + block other insns from being scheduled before the end of the + prologue. - * real.h (REAL_VALUE_TRUNCATE): sizeof says what cast to float does. + * mips.md (blockage): New unspec_volatile insn to prevent other + insns from being scheduled before it. - * 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. +Sat Nov 21 06:03:38 1992 Brendan Kehoe (brendan@cygnus.com) -Sun Feb 2 12:51:54 1992 Michael Tiemann (tiemann at cygnus.com) + * sdbout.c (template_name_p): New function. + (sdbout_record_type_name): Use it to possibly use the + DECL_ASSEMBLER_NAME instead of DECL_NAME if looking at a template. + (sdbout_symbol): Ditto. - * cp-typeck.c (build_component_ref_1): Call `compute_visibility' - with a BASETYPE_PATH, not a TREE_LIST. +Fri Nov 20 15:31:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (build_vtable_entry): Apologize if we cannot build a - proper vtable because of builtin liminations. + * dbxout.c (dbxout_type): Handle need for name of a RECORD_TYPE + when it has none. -Sun Feb 2 07:30:08 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * configure (sparc-*-solaris2): Set broken_install. - * reload.c (combine_reloads): Don't combine two reloads with different - secondary reloads; copy secondary reload to combined reload. + * integrate.c (subst_constants): Inhibit special treatment of subreg + when the stuff inside is not a reg. - * 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. + * config/plexus.h (SIZE_TYPE): Fix syntax. - * flow.c (find_basic_blocks): Don't separate a CALL_INSN from - following CLOBBER insns. + * gcc.c (do_spec_1): Handle MKTEMP_EACH_FILE. - * 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. +Fri Nov 20 15:10:20 1992 david d `zoo' zuhn (zoo at cirdan.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. + * fixincludes (math.h): Get rid of inconsistent inline definitions + for abs that are present in HP-UX 8.0. - * 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. +Fri Nov 20 10:07:48 1992 Michael Meissner (meissner@osf.org) -Sat Feb 1 14:41:34 1992 Ken Raeburn (Raeburn@Cygnus.COM) + * collect2.c (FREAD, FWRITE): Undef these macros if they were + defined before including ldfcn.h. - * 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. +Fri Nov 20 15:38:47 1992 Tom Wood (wood@dg-rtp.dg.com) -Sat Feb 1 09:13:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * integrate.c (expand_inline_function): Mark all notes as integrated. - * xm-rs6000-mach.h, rs6000-mach.h: New files. - * configure (rs6000-*-mach): New option. + * final.c (final): When producing SDB debugging info, delete line + number notes from inlined functions in other files as well as + duplicate line number notes. -Sat Feb 1 00:57:24 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu) - * 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. + * config.sub: Added machines and operating systems for Emacs + ports, since Emacs now uses config.sub for its configuration. + New manufacturers recognized not to be operating systems: High + Level Hardware (highlevel, defaults to using BSD), Gould + (gould, defaults to System V), Commodore (cbm, defaults to + amigados), National Semiconductor (ns, defaults to Genix), and + Masscomp (masscomp, defaults to RTU). + Recognize the NS1600 (ns16k) and the Clipper (clipper) as + processors. + Recognize these processors with default manufacturers: the + Cydra (cydra) from Cydrome (cydrome), the XPS100 (xps100) from + Honeywell (honeywell), and the Orion (orion) and Orion 1/05 + (orion105) from High Level Hardware (highlevel). + If the ISC operating system is given with a version number, + don't kill it and set it to 2.2; just have it default to 2.2 + if omitted. + Make Irix SGI's default operating system, not SYSV. + Make BSD Encore's default, so it applies for all Encore + machines, not just the umax and mmax abbreviations. + All of Encore's machines use BSD, not just the ns32k-based + ones. Make it the manufacturer's default. + Make it possible to specify an operating system for a Gould + machine. Make sysv the manufacturer's default, so it applies + when we specify the manufacturer as well as when we omit it. + Add Uniplus (uniplus), Iris (iris), Xenix (xenix), and RTU + (rtu) as recognized operating system names. - (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. +Wed Nov 18 17:58:18 1992 Karl Berry (karl@cs.umb.edu) - (output_387_binary_op): abort if the op is not one we handle. + * i386iscgas.h (SDB_DEBUGGING_INFO): #undef. + (DBX_DEBUGGING_INFO): #define. + (DBX_OUTPUT_MAIN_SOURCE_{DIRECTORY,FILENAME}): Override dbxout.c. - (maximum_field_alignment): New variable. - (handle_pragma_token): New function. Handle `weak' and `pack'. + * bsd386.h (LPREFIX) [NO_UNDERSCORES]: Define as `.L'. - * 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. +Wed Nov 18 13:50:43 1992 Michael Meissner (meissner@osf.org) - (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. + * mips.c (compute_frame_size): Make sure the {gp,fp}+offset fields + are always initialized, even if there were no gp/fp registers + saved. - * 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. +Wed Nov 18 09:58:50 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * svr4.h (SELECT_SECTION): Any item whose initial value involves - linker relocation must go in the data section if flag_pic is true. + * a29k.md (insv): Remove constraints from operand matching + const_0_operand. - * 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. + * regclass.c (regclass): Add missing cast from enum to int. - (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. +Wed Nov 18 09:40:01 1992 John Hassey (hassey@dg-rtp.dg.com) -Sat Feb 1 00:15:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * core.c (initialize_class): The class may not have an initialize + method. - * 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. +Wed Nov 18 09:40:01 1992 Wilson Tien (wtien@urbana.mcd.mot.com) - * dbxout.c (dbxout_init): Vars wd and wd_gotten moved to top level - and renamed to cwd and cwd_gotten. + * xm-m68kv.h (rindex, index): use strrchr and strchr instead. - * c-decl.c (start_function): -Wmissing-prototypes warns if static - function was previously used without a prototype. +Wed Nov 18 01:27:37 1992 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * loop.c (find_and_verify_loop): Initialize uid_loop_num[0]. - (loop_optimize): Give up fast if no loops. + * config.sub: Added Xenix operating system. - * stmt.c (expand_end_bindings): Don't adjust fp in nonlocal goto hndlr - if there is a nonlocal_goto insn. +Tue Nov 17 18:32:01 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (cccp.o): Use just libdir in GPLUSPLUS_INCLUDE_DIR. + * reload.c (combine_reloads): Don't combine with a reload needed + for multiple things. - * gcc.c (do_spec_1): Supply missing arg in some recursive calls. +Mon Nov 16 08:52:52 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) -Fri Jan 31 21:50:03 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * pa.c (output_move_double): Handle indirect stores to memory + via an auto-incremented/auto-decremented register in the same + manner in which loads are handled. - * m68k.h (OVERRIDE_OPTIONS): -fPIC is only supported on the 68020 - and later cpus. Give an error if -fPIC is tried on a 68000. +Thu Nov 12 21:02:59 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Fri Jan 31 21:39:33 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Cygnus<-->FSF merge. - * flow.c (find_auto_inc): If emitting a move insn in front of the - first insn in a block, update basic_block_head. + Thu Nov 12 15:02:53 1992 Brendan Kehoe (brendan@cygnus.com) - * caller-save.c (init_caller_save): Correctly check for case where the - save or restore insns aren't recognized. - -Fri Jan 31 21:02:35 1992 Mark Eichin (eichin at 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. - -Fri Jan 31 00:14:20 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * 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. - - * gcc.c (S_ISDIR): Add default definition. - - * function.c (expand_function_end): - Set up arg_pointer_save_area at start of function. - - * c++: Accept -nostdlib, not -nostinc. - - * va-sparc.h: If GCC v1, define __extension__ as nothing. - * va-i860.h, va-pyr.h, va-spur.h: Likewise. + * cp-decl.c (finish_decl): Don't try to use TYPE if it's an + error_mark_node. - * cp-class.c (finish_struct): Fill in DECL_ALIGN of vtable field. + * cp-decl.c (sigsegv): Set to the default handler before calling + anything, so we can avoid possible infinite loops. Call + my_friendly_abort instead of just error(). + * cp-type2.c (my_friendly_abort): If I is 0, it's coming from sigsegv. + + * cp-type2.c (my_friendly_assert): New function. + * cp-call.c, cp-class.c, cp-class.h, cp-cvt.c, cp-decl.c, cp-decl.h, + cp-decl2.c, cp-dem.c, cp-edsel.c, cp-except.c, cp-expr.c, cp-gc.c, + cp-hash.h, cp-init.c, cp-input.c, cp-lex.c, cp-lex.h, cp-method.c, + cp-pt.c, cp-search.c, cp-spew.c, cp-tree.c, cp-tree.h, cp-type2.c, + cp-typeck.c, cp-xref.c, cp-parse.y: Don't include assert.h, and use + the new function `my_friendly_assert' instead of the `assert' macro. + + Wed Nov 11 22:14:51 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * tree.h (perm_calloc): Add decl. + * cp-parse.y (except_stmts): Declare return type of get_insns, + since we don't (can't) include rtl.h. + * cp-tree.c (TYPE_HASH): Use HOST_WIDE_INT instead of int when + casting pointers to integers. + (ld_cmp): Likewise. + * cp-call.c (build_method_call): Likewise. + * cp-class.c (finish_struct_methods): Likewise. + * cp-method.c (build_overload_value): Add decl of index. + (build_opfncall): Cast to HOST_WIDE_INT, not int. + * cp-search.c (get_binfo): Likewise. + (get_base_distance): Likewise. + (breadth_first_search): Likewise. Also declare to return + HOST_WIDE_INT, not int. + + Wed Nov 11 14:34:25 1992 Mike Stump (mrs@rtl.cygnus.com) + + Thu Nov 5 15:58:38 1992 Tim Moore (moore at defmacro.cs.utah.edu) + + * cp-decl.c (duplicate_decls): Round to obstack alignment when + testing if newdecl is at the top of the permanent obstack. + + Wed Nov 11 13:56:18 1992 Mike Stump (mrs@rtl.cygnus.com) + + * cp-search.c (build_vbase_vtables_init): Make sure external virtual + tables are declared on machines that need the declaration by calling + assemble_external. + + Wed Nov 11 12:51:44 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl2.c (grokfield): If the init field is really a list with + just an error_mark_node, then it wasn't a real initialization, so + don't treat it like one. - * regclass.c (reg_class_record): - Don't follow indirect loops in constraints. + Tue Nov 10 16:21:20 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-init.c (build_new): If arg 1 of an array reference is an + error_mark, then just pretend that there were 0 elements. - * 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. + Tue Nov 10 13:23:30 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * cse.c (cse_main): Calls do clobber arg pointer if not fixed. + * cp-typeck.c (build_x_function_call): If the type of FUNCTION is an + error_mark, don't bother checking its lang-specific info. - * hp320.h (HAVE_ATEXIT): New definition. + Tue Nov 10 12:38:36 1992 Mike Stump (mrs@rtl.cygnus.com) - * 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. + * cp-decl.c (decls_match): Avoid core dumping when TREE_TYPE is + NULL_TREE, as is the case when olddecl is a TEMPLATE_DECL. - * stmt.c (expand_end_bindings): Fix typo. + Tue Nov 10 11:03:36 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl.c (pushdecl_top_level): Disable assert for now; it's + always acted correctly. + + Mon Nov 9 12:04:27 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Fri Jan 31 12:15:09 1992 Ron Guilmette (rfg ay ncd.com) + * cp-parse.y (try_for_typename): Deleted rule. + (scoped_id): Don't use it. - * 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. + Fri Nov 6 18:07:37 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Fri Jan 31 10:31:44 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-init.c (expand_aggr_init): If INIT is 0, don't bother trying to + play with its type. - * cp-tree.c (__eprintf): Make definition match assert.h - declaration. + Thu Nov 5 16:52:37 1992 Chip Salzenberg (chip@tct.com) -Thu Jan 30 23:17:11 1992 Per Bothner (bothner at cygnus.com) + * cp-decl.c (finish_decl): Set TREE_STATIC, TREE_PUBLIC and + DECL_EXTERNAL correctly for use with #pragma interface. - * c++: The flags -c, -S, or -E suppress passing -lg++ - to gcc. (Otherwise, gcc prints a warning.) + Fri Nov 6 10:07:01 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Jan 30 21:10:02 1992 Ron Guilmette (rfg at ncd.com) + * cp-class.c (finish_struct): Don't try to work with a field that + got a bogus type. - * dwarfout.c (dwarfout_init): Fix generation of initial .debug_aranges - entry to be Dwarf Version 1 compliant. + * cp-method.c (build_overload_value): Don't call debug_tree! -Thu Jan 30 15:51:27 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-call.c (build_method_call): If processing a default argument + that calls a ctor for its default value, use INSTANCE_PTR for the + parm list, discarding what we knew before. - * 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. + * cp-decl.c (grokdeclarator): If initializing a const member and + acting pedantic, then do make it an error. - * cccp.c (default_include): Delete use of obsolete - NO_STANDARD_INCLUDE_DIR macro. - * protoize.c (default_include): Likewise. + * cp-decl2.c (warn_traditional): New variable. + (lang_decode_option): Use it for -Wtraditional and -Wno-traditional. + * cp-tree.h (warn_traditional): Add decl. + * cp-lex.c (readescape): For x, avoid overflow when shifting in if. + Warn for \a and \x if warn_traditional; pass through + the escaped x and a if -traditional. Support \e like \E; for both, + pedwarn about ANSI C. - * Makefile.in (libgcc1.null): Delete dummy.o and dummy.c. + * cp-call.c (find_scoped_type): Delete arg TAGS; instead, compute it + inside from TYPE. If TAGS is null, don't return immediately, since + we need to look for TYPE_DECLs. + (resolve_scope_to_name): Call find_scoped_type without replicating + the tags. -Thu Jan 30 15:34:06 1992 Michael Meissner (meissner at osf.org) + Thu Nov 5 17:53:32 1992 Brendan Kehoe (brendan@cygnus.com) - * gstdarg.h: Include va-mips.h on MIPS systems. + * cp-decl.c (grokdeclarator): Constant class members can be + initialized. - * 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. + Thu Nov 5 17:11:30 1992 Mike Stump (mrs@cygnus.com) -Thu Jan 30 13:06:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Thu Nov 5 19:48:17 1992 Niklas Hallqvist (niklas@appli.se) - * Makefile.in (install-common): Get c++ and g++ from srcdir. + * cp-pt.c (instantiate_class_template): Types are used in later + processing, so they must go into the permanent obstack. - * i860.h (FIXED_REGISTERS): Arg pointer is no longer fixed. + Thu Nov 5 13:02:56 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * assert.h (__eprintf): Add const to string args in GCC ANSI case. + * cp-decl.c (grokdeclarator): Don't allow members to be initialized + in the class declaration. - * Makefile.in (cccp.o, protoize.o, unprotoize.o): - Define LOCAL_INCLUDE_DIR based on $(prefix). + * cp-decl2.c (finish_file): Set the DECL_CLASS_CONTEXT on a function + that's a file-scope set of ctors/dtors for global variables, so + is_friend will see things the way they should be seen. - * stmt.c (expand_end_bindings): Arg pointer needs no special - treatment if not fixed. + * cp-call.c (find_scoped_type): New function. + (resolve_scope_to_name): Use it to check for names that might be in + base classes. - * cp-parse.y, c-lex.c (yyerror): - Avoid sign-extension of characters in error messages. + Wed Nov 4 00:43:15 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Jan 30 11:39:56 1992 Ron Guilmette (rfg at ncd.com) + * cp-parse.y (db_yyerror): Deleted fn. + (yyprint, yyerror, init_parse, yyhook, reduce_cmp, token_cmp, + print_parse_statistics,set_yydebug, debug_yytranslate): Moved to + cp-lex.c. + (reduce_count, token_count): Ditto. + (current_declspecs): Made static. - * dwarfout.c (dwarfout_finish): Fix generation of .debug_pubnames - terminating entry to be 4-bytes of zero followed by a null string. + * cp-typeck.c (build_c_cast): Warn if casting between a pointer and + an integer whose sizes differ. -Thu Jan 30 09:30:19 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (unary_expr): Finish making new with placement work; + use the rule `new' instead of the token `NEW' when parsing it. - * rs6000.c (ccr_bit): Fix typo causing reference to possibly - undefined operand. + Tue Nov 3 02:16:47 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-typeck.c (c_expand_return): Avoid referencing DECL_NAME if it's + null when checking for a ref to or the addr of a local variable. -Wed Jan 29 21:50:26 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-search.c (dfs_pushdecls): Don't try to use the context of a + field which has none at the time. - * rs6000.h (ASM_SPEC): Add -u, now require new /bin/as for AIX. - (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): No longer needed. + * cp-decl.c (redeclaration_error_message): Don't complain about + redefinition of a function if it's a definition of an abstract + virtual function. + (duplicate_decls): For an abstract virtual, don't use the old RTL + from abort when creating the RTL for the newdecl. - * 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. + Tue Nov 3 00:15:44 1992 Brendan Kehoe (brendan@cygnus.com) -Wed Jan 29 17:17:42 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-decl.c (grokdeclarator): For `inline', `unsigned', and `signed', + see them as types, not as storage class specs, when looking for more + than one storage class. - * cp-init.c (build_member_call): Fix bug involving static members - that are function pointers. + * cp-lex.c (readescape): New arg ignore_ptr. + (real_yylex): Pass new arg, handle result that comes back. -Wed Jan 29 13:25:18 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-decl.c (WCHAR_TYPE_SIZE): Deleted; never used. - * gcc.c (do_spec_1): For %D, only add -L options that are relevant. - (is_linker_dir): Determine if a -L option is relevant. + Mon Nov 2 10:23:52 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jan 29 00:57:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-lex.c (real_yylex): Let skip_white_space handle \r. - * configure: Turn ns32k alternatives back on. + * cp-parse.y (parmlist): Warn on a decl `foo (...)', without a first + argument. - * Makefile.in (getopt.o, getopt1.c): Join two lines into one. + * cp-type2.c (build_functional_cast): If expr_as_ctor's argument is + a SAVE_EXPR, don't wipe out the argument. - * x-i386v4, x-i860v4 (GCC_CFLAGS): Add missing `-B./'. + * cp-call.c (build_method_call): Only complain about not having an + object for a called method if the method is non-static. - * reload.c (find_dummy_reload, push_reload): Don't reuse dying input - reg as a reload if it is a fixed reg. + Sun Nov 1 16:50:14 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * c-tree.h (C_MISSING_PROTOTYPE_WARNED): Deleted since unused. + * cp-decl2.c (warn_char_subscripts): Declare. + (lang_decode_option): Handle -Wchar-subscripts. + * cp-typeck.c (build_array_ref): If the type of either the array or + its index is an error_mark_node, then return one. Add code to see + if the index is a character (add warning), then do the default + promotions. Don't warn if it's a register array. Make a ref + volatile if the array is volatile. + * cp-tree.h (warn_char_subscripts): Add decl. + + * cp-typeck.c (common_type): If either type is nonsense (an + error_mark), use the other type. + + Thu Oct 29 18:39:50 1992 Mike Stump (mrs@cygnus.com) + + * cp-decl.c (grokdeclarator): Fix problem introduce by me on Oct 22 + 17:41:13. Put back call to build_offset_type that I took out, as it + is not wrong, as the comment for build_offset_type had led me to + believe. + + Thu Oct 29 17:30:12 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-cvt.c: Delete block-level extern decls; include flags.h instead. + * cp-tree.h (flag_int_enum_equivalence): Declare here. + * cp-call.c: Not here. + + * Makefile.in (stamp-cp-parse): There are now only 29 shift/reduce + conflicts, because of the removed wrapper stuff. + + * cp-lex.c (lastiddecl, ridpointers): Define here. + (NORID): Don't define here. + * cp-lex.h (NORID): Define here instead. + (ridpointers, lastiddecl, token_buffer, looking_for_typename): Ditto. + (make_pointer_declarator, make_reference_declarator, + reinit_parse_for_function, reinit_parse_for_method, yylex): Likewise. + * cp-parse.y: Don't define any of them in here. + + * cp-typeck.c (commonparms): Call tree_cons with NULL_TREEs, not 0s. + (convert_arguments): Likewise. + Throughout the file, say `ANSI C++ forbids', not `ANSI C forbids'. + * cp-lex.c, cp-type2.c: Likewise. + + Remove wrapper functionality from the compiler. + * cp-call.c (build_method_call): Delete wrap and wrap_type. + Delete code that used them. Don't set err_name to "wrapper", since + wrapper_name doesn't exist anymore. + * cp-class.c (finish_base_struct): Don't worry about TYPE_WRAP_TYPE. + * cp-decl.c (grokfndecl): Delete code for WRAPPER_EXPR and + ANTI_WRAPPER_EXPR. + (grokdeclarator): Likewise. Don't set TREE_HAS_WRAPPER_PRED. + * cp-decl2.c (grokclassfn): Likewise. + (check_classfn): Likewise. + * cp-init.c (get_member_function): Don't check TYPE_NEEDS_WRAPPER. + * cp-lex.c (real_yylex): Don't check WRAPPER_OR_ANTI_WRAPPER_NAME_P. + * cp-method.c (wrapper_name, wrapper_pred_name, anti_wrapper_name): + Deleted variables. + (init_method): Don't do any setup for *WRAPPER_*. + (hack_wrapper): Deleted function. + * cp-parse.y (wrapper): Deleted rule. + (identifier_or_opname): Deleted all wrapper predicates. + (notype_declarator): Deleted predicates LEFT_RIGHT for wrappers. + * cp-ptree.c (print_lang_type): Deleted message for printing "wrapper". + * cp-search.c (get_wrapper): Deleted fn. + * cp-tree.h (struct lang_type): Deleted has_wrapper_pred and + wrap_type members. + (build_wrapper, hack_wrapper, get_wrapper): Deleted decls. + (wrapper_name, wrapper_pred_name, anti_wrapper_name): Deleted decls. + (TYPE_WRAP_TYPE, TYPE_HAS_WRAPPER, TYPE_NEEDS_WRAPPER, + TYPE_HAS_WRAPPER_PRED, WRAPPER_DECL_FORMAT, WRAPPER_PRED_DECL_FORMAT, + ANTI_WRAPPER_DECL_FORMAT, WRAPPER_NAME_FORMAT, + WRAPPER_PRED_NAME_FORMAT, ANTI_WRAPPER_NAME_FORMAT, + WRAPPER_NAME_P, WRAPPER_PRED_NAME_P, ANTI_WRAPPER_NAME_P, + WRAPPER_OR_ANTI_WRAPPER_NAME_P): Deleted. + (enum overload_flags): Deleted WRAPPER_FLAG, WRAPPER_PRED_FLAG, + and ANTI_WRAPPER_FLAG tags. + * cp-typeck.c (build_function_call_real): Delete wrapper code. + (unary_complex_lvalue): Don't check TYPE_NEEDS_WRAPPER. + * stmt.c (warn_if_unused_value): Don't check *WRAPPER_EXPR. + * tree.def (WRAPPER_EXPR, ANTI_WRAPPER_EXPR): Deleted. + + Wed Oct 28 15:38:44 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-cvt.c (convert_to_reference): New arguments FNDECL, PARMNUM, + and ERRTYPE. Use them to give warnings about const and volatile + references being used incorrectly. Call itself with dummy arguments + where appropriate. + (convert): Call convert_to_reference with dummy args. + (convert_force): Likewise. + * cp-typeck.c (warn_for_assignment): Remove static declaration, + cp-cvt.c needs to see it now. + (convert_for_initialization): Call convert_to_reference with fndecl, + parmnum, and errtype. + + Tue Oct 27 17:38:18 1992 Mike Stump (mrs@cygnus.com) + + * cp-decl.c (grokdeclarator): Fix problem introduce by me on Oct 22 + 17:41:13. Only output error or warning message about extra + qualifiers when we are inside a class declaration. + + Tue Oct 27 16:21:41 1992 Mike Stump (mrs@cygnus.com) + + * cp-tree.h (THIS_NAME_P): Fix to reflect September 1 change in + THIS_NAME. + + Tue Oct 27 12:35:59 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-parse.y (operator_name): Remove check for top-level operator + decl. + * cp-decl.c (grokdeclarator): Complain here about type conversion + operators that aren't declared as members of classes. + + * cp-decl.c (grokdeclarator): Only call do_friend on a friend if + decl's non-zero. + + Tue Oct 27 09:31:08 1992 Mike Stump (mrs@cygnus.com) + + * cp-lex.c (do_identifier): Add missing fourth argument to + lookup_field. + + Mon Oct 26 15:15:39 1992 Mike Stump (mrs@cygnus.com) + + * cp-cvt.c (convert_to_reference): Check for ambiguities + between constructor and conversion operators a bit harder. + + Sat Oct 24 19:34:39 1992 Brendan Kehoe (brendan@cygnus.com) + + Mon Sep 14 14:36:53 1992 Chip Salzenberg (chip@tct.com) + + cp-decl.c (poplevel): If apparently nested inline function has + DECL_ABSTRACT_ORIGIN, don't output it; propagate TREE_ADDRESSABLE. + (pushdecl): When copying inline details into an extern decl, + copy DECL_RESULT, TREE_ASM_WRITTEN. Set DECL_ABSTRACT_ORIGIN. + + Fri Oct 23 18:52:19 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl.c (poplevel): Use error_with_decl on an unused label, so + its line number comes out correct. + + Thu Oct 22 18:31:50 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-parse.y (operator_name): If a type conversion operator is + defined at the top level, don't crash, complain. + + Thu Oct 22 17:41:13 1992 Mike Stump (mrs@cygnus.com) + + * cp-decl.c (grokdeclarator): Return void_type_node instead of + NULL_TREE on errors, to forestall another error message. Check for + redundant or illegal qualification on class members. + + Thu Oct 22 13:15:57 1992 Mike Stump (mrs@cygnus.com) + + * cp-tree.h (ANON_AGGRNAME_P): Check the second charater as well, as + it could be $vtbl_ptr_type, and not an ANON_AGGRNAME. + + Wed Oct 21 19:31:36 1992 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-call.c (build_method_call): Initialize b_or_d to 0. + + * cp-typeck.c (compparms): Delete dead code for returning if either + TREE_PURPOSE is true when t1 and t2 are both 0. + + * cp-parse.y (object): Only pass one argument into build_x_arrow. + + * cp-parse.y (unary_expr): Add code to parse `&&label'. + (stmt): Expand computed gotos. + + * cp-method.c (fndecl_as_string): Say it's static before giving its + type, it looks better (and matches how you'd declare it). + + Wed Oct 21 16:22:43 1992 Mike Stump (mrs@cygnus.com) + + * cp-decl.c (start_decl): return NULL_TREE, not error_mark_node to + signify error. + * cp-decl2.c (cplus_decl_attributes): New function. Don't call + decl_attributes if the first argument is NULL_TREE. + * cp-tree.h (cplus_decl_attributes): Declare new function. + * cp-parse.y: Changed all calls to decl_attributes into calls to + cplus_decl_attributes, as all calls may pass NULL_TREE in the first + argument. -Wed Jan 29 00:42:34 1992 Tim Moore (moore at fast.cs.utah.edu) + Wed Oct 21 11:40:35 1992 Mike Stump (mrs@cygnus.com) - * 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. + * cp-call.c (build_method_call): Avoid an abort on parse errors by + changing an assert into a conditional my_friendly_abort. - * 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. + Tue Oct 20 16:52:32 1992 Mike Stump (mrs@cygnus.com) -Tue Jan 28 17:04:38 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-tree.h (TYPE_ASSEMBLER_NAME_STRING, + TYPE_ASSEMBLER_NAME_LENGTH): New macros. + * cp-search.c (build_type_pathname): Use new macros. + * cp-decl.c (pushtag): Set DECL_ASSEMBLER_NAME for TYPE_DECLs with + build_overload_name so that assembler names for template type things + are like __vt$t1X1Zi$1T.4 and not __vt$X$T.4. + * cp-decl.c (pushdecl): Since the rest of the compiler wants to use + DECL_NAME for TYPE_DECLs, use that instead of DECL_ASSEMBLER_NAME. + + Tue Oct 20 11:29:50 1992 Mike Stump (mrs@cygnus.com) + + Wed Oct 7 16:01:55 1992 Chip Salzenberg (chip@tct.com) + + [ changes propagated from 921005 snapshot ] + * cp-lex.c (readescape): No warning if digits in \x are all 0's. + + Fri Oct 9 15:18:19 1992 Brendan Kehoe (brendan@cygnus.com) + + * cp-decl.c (duplicate_decls): Only find out if olddecl is a + friend after we know it's not a TREE_LIST. + + Wed Oct 7 16:04:34 1992 Mike Stump (mrs@cygnus.com) + + Wed Oct 7 12:26:07 PDT 1992 Ron Guilmette (rfg at netcom.com) + + * cp-lex.c (readescape): Permit \? as an escape sequence. + + Tue Oct 6 17:54:09 1992 Mike Stump (mrs@cygnus.com) + + Major MI revamp. + + * cp-search.c (get_binfo, find_base_distance): Fix comments. + Disable incorrect code that would incorrectly find ambiguities where + none existed. Add some code to find all ambiguities. + * cp-search.c (get_binfo2_recursive, get_binfo2): Added to find + ambiguities. + + * cp-search.c (convert_pointer_to_single_level): Added so that one + can convert pointer unambiguously to an immediate base class + pointer. + + * cp-search.c (dfs_walk): Added comments. Fixed to keep track of + how it walks the inheritance hierarchy so that when we get down to + the bottom, we have a pointer to what we want. + * cp-search.c (dfs_find_vbases): Changed to use new intermediate + pointer instead of incorrectly trying to convert at the bottom. + * cp-search.c (init_vbase_pointers): Changed to set up new + intermediate pointer. + + * cp-*.c: Rename child -> base_binfo, child_child -> + base_base_binfo, child_binfos -> base_binfos, .*_child -> + .*_base_binfo. Rename DERIVED_FROM_P to UNIQUELY_DERIVED_FROM_P. + + Tue Oct 6 14:51:13 1992 Brendan Kehoe (brendan@rtl.cygnus.com) + + * cp-spew.c (yylex_ctr): Make unsigned. + * cp-decl2.c (spew_debug): Add extern reference. + (lang_decode_option): New option `-spew-debug', so masochists can + use it when they need to. + + Mon Oct 5 15:47:35 1992 Brendan Kehoe (brendan@rtl.cygnus.com) + + Implement protected baseclasses. + * cp-class.c (finish_base_struct): Set TREE_VIA_PROTECTED. + (finish_struct_methods): Check for either public or protected + members to kick out of the "all members are private" test. + * cp-decl.c (xref_tag): Set TREE_VIA_PROTECTED appropriately. + * cp-parse.y (base_class_visibility_list): Remove code about + `protected' visibility not being implemented. + * cp-pt.c (tsubst): Set via_protected and call hash_tree_cons + with it as necessary. + * cp-search.c (compute_visibility): Set visibility if protected. + Return the appropriate visibility when resolving a field. + (lookup_field): Set TREE_VIA_PROTECTED for btypes from its child. + When complaining about a member being protected, differentiate when + it's from a protected base class (could be a public member in the + base). + (lookup_fnfields): Set TREE_VIA_PROTECTED. + (get_baselinks): Pass TREE_VIA_PROTECTED into hash_tree_cons. + Also pass a 0 when necessary. + * cp-tree.c (propagate_binfo_offsets): Set TREE_VIA_PROTECTED. + (layout_vbasetypes): Ditto. + (layout_basetypes): Ditto. + (list_hash_lookup): Check TREE_VIA_PROTECTED when looking at an + incomplete basetype. + (hash_tree_cons): New argument `via_protected'. Set TREE_VIA_PROTECTED + when necessary. + (list_hash_lookup_or_cons): Check TREE_VIA_PROTECTED when making + sure a hash list is sane. + (make_binfo): Set TREE_VIA_PROTECTED for the new child. - * varasm.c (make_decl_rtl): Delete unused var `i'. + Mon Oct 5 13:27:44 1992 Mike Stump (mrs@cygnus.com) - * c-convert.c (convert_to_pointer): - Abort if no integer type is as wide as a pointer. + * cp-init.c (maybe_adjust_addr_for_delete): Make sure we don't + evaluate the addr twice if it has side effects. - * gcc.c (default_compilers, .i case): Add error message for -pg - and -fomit-frame-pointer incompatibility. + Mon Oct 5 13:05:37 1992 Mike Stump (mrs@cygnus.com) - * Makefile.in (install-common): Install c++ and g++ shell scripts in - bindir. + * cp-init.c (build_vec_delete): Make sure we don't evaluate the base + expression twice if it has side effects. -Tue Jan 28 15:44:10 1992 Michael Collison (collison at osf.org) + Mon Oct 5 12:38:35 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * x-encrose (OLDCC): changed to $(GNU_ROSE_BIN)/gcc + * cp-decl.c (grokdeclarator): Issue a warning or error if we're + being ANSI-careful when they do `extern inline'. + (flag_ansi): Add extern decl. - * ns32k.h: Added trampoline code. + Mon Oct 5 12:34:32 1992 Mike Stump (mrs@cygnus.com) -Tue Jan 28 14:19:52 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-class.c (finish_struct): Don't give an error if an enumeration + type is stuck in a bit-field, as it is legal c++. - * 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. + Mon Oct 5 11:43:09 1992 Mike Stump (mrs@cygnus.com) -Tue Jan 28 11:50:35 1992 Michael Meissner (meissner at osf.org) + Mon Sep 14 16:39:10 1992 Chip Salzenberg (chip@tct.com) - * mips.c (toplevel): Add include of , since isdigit is - used. + * cp-cvt.c (convert_to_integer): Don't pass truncation thru lshift + if shift count >= width of narrower type. Instead, just use 0. -Tue Jan 28 05:47:08 1992 Michael Tiemann (tiemann at cygnus.com) + Fri Oct 2 13:21:40 1992 Ken Raeburn (raeburn@kyriath.cygnus.com) - * 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. + * cp-decl.c (start_function): Reinstate error check for missing + semicolon erroneously removed. - * cp-class.c (pushclass): Forcibly remove any remnants of incomplete - type that was previously pushed. +Thu Nov 12 17:37:23 1992 Michael Meissner (meissner@osf.org) - * 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. + * mips.md (movdf_internal): Split movdf insn into two -- one for + normal use, and one for -msoft-float, and don't prefer FPU + registers in the -msoft-float case. + (movsf_internal): Ditto for movsf. - * 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. +Thu Nov 12 07:30:17 1992 James Van Artsdalen (james at bigtex.cactus.org) - * cp-call.c (ideal_candidate): Don't convert PARMS in place if - BASETYPE is NULL_TREE. + * i386.h (HARD_REGNO_MODE_OK): Restrict MODE_INT from FP regs only. -Tue Jan 28 02:21:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * i386.md (floatMN2 recognizers): Don't omit mode on a + match_operand that might be reloaded. Split into separate + patterns for each mode. + (zero_extract test): Disable for now. - * c-decl.c (grokdeclarator): Use `auto' for nested fn fwd decls. + * i386.c (float_op): Delete - no longer used. - * g++: New file. +Wed Nov 11 11:55:22 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + + * combine.c (simplify_comparison, case ASHIFTRT): mode_for_size + returns BLKmode on error, not VOIDmode. - * 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. + * romp.md (reload_outdi): Write as proper PARALLEL. - * gcc.c (do_spec_1): For %D, also make -L's for startfile_prefix. - Also append the machine +Wed Nov 11 01:06:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fold-const.c (fold_convert): Properly handle real-to-real case. + * toplev.c (lang_options): Change +e... to -+e... - * configure (i486-*-sysv4*): New alternative. + * xm-tower.h: Include xm-svr3.h. + (bcopy, bzero, bcmp, USG): Macros deleted. -Tue Jan 28 00:37:24 1992 Ron Guilmette (rfg at ncd.com) +Tue Nov 10 12:26:23 1992 Steve Chamberlain (sac@cygnus.com) - * dwarfout.c (location_attribute): Fix handling of objects which - were optimized out of existance for Dwarf Version 0 compliance. + * sdbout.c (plain_type_1): Handle LONG_TYPE_SIZE like INT_TYPE_SIZE. -Tue Jan 28 00:42:57 1992 James Van Artsdalen (james at bigtex.cactus.org) +Tue Nov 10 14:20:27 1992 Michael Meissner (meissner@osf.org) - * Makefile.in (mostlyclean): Delete stack dump files too. + * mips.md (ffssi2): Add =& constraints to the two match_scratch + clobbered registers. Fix from John F Carr. -Mon Jan 27 18:26:27 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips-tdump.c (toplevel): Move #undef index and rindex before + including sym.h. - * rs6000.h (HAVE_ATEXIT, NO_DOLLAR_IN_LABEL): Now defined. +Tue Nov 10 10:37:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Jan 27 13:32:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in (install-common): Delete deps $(srcdir)/g++ $(srcdir)/c++ - * 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. + * expr.c (init_expr_once): Try indexing mem by fp as well as sp. - * cccp.c (main): Add terminating null, then call trigraph_pcp. +Tue Nov 10 10:28:59 1992 Chris Smith (csmith@convex.com) - * fixincludes, fixinc.svr4: Fail unless an arg was given. - * Makefile.in (install-fixincludes): Pass output dir as argument. + * genattrtab.c (main): Unlimit stack size. - * Makefile.in: Renamed libgcc[12] to libgcc[12].a. - Likewise for tmplibgcc[12]. +Tue Nov 10 10:17:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (rest_of_decl_compilation): Treat all fcns as if external. + * print-rtl.c (print_rtx): Use sizeof spaces - 1 to get the length + of the spaces string. - * Makefile.in (TAGS): Do the work in srcdir. - Include c-parse.h in files to move. +Tue Nov 10 09:56:32 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) -Mon Jan 27 10:54:24 1992 Jim Wilson (wilson at sphagnum.cygnus.com) + * pa-hpux.h (LINK_SPEC): Disable linking against shared libraries. + * pa-ghpux.h (LINK_SPEC): Likewise. - * cccp.c (get_filename): Don't pass -1 file descriptor to close. +Tue Nov 10 08:39:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) -Mon Jan 27 00:26:33 1992 Michael Tiemann (tiemann at cygnus.com) + * elxsi.h (GO_IF_LEGITIMATE_ADDRESS): Verify that register is valid + for use as base register (un-allocated pseudos aren't when strict). - * 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. +Mon Nov 9 22:17:23 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-decl2.c (grokfield): Don't specially hack static member - function names. + * xm-3b1.h (index, rindex): Define as macros. - * cp-except.c (cplus_expand_raise): Test correct predicate that we - have a non-null value return. - (cplus_expand_{throw,reraise}): Ditto. + * i386bsd.h: Complete rewrite. - * cp-typeck.c (c_expand_return): Handle case where named return - value has incomplete type. +Mon Nov 9 14:22:38 1992 Michael Meissner (meissner@osf.org) -Sun Jan 26 20:50:55 1992 Michael Tiemann (tiemann at cygnus.com) + * mips.h, decrose.h: Move LINK_LIBGCC_SPECIAL to decrose.h. - * cp-parse.y (LC): Fix rule to use `push_obstacks_nochange'. - (structsp): Use `pop_obstacks'. +Mon Nov 9 12:39:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Jan 26 17:39:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * unroll.c (final_biv_value): Make a note after loop_end + if we need to use NEXT_INSN (loop_end). - * c-parse.y (LC): Use push_obstacks_nochange and always call - end_temporary_allocation. - (structsp, template_instantiate_once): After LC, use pop_obstacks. + * objc-actions.c (build_message_expr): Don't crash if super_type is 0. - * c-decl.c (grokdeclarator): - Static function decl within a function is not external. +Mon Nov 9 07:42:30 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) -Sun Jan 26 08:14:53 1992 Michael Meissner (meissner at osf.org) + * caller-save.c (save_call_clobbered_regs): Ensure any insns we add + are in the same basic block as the insn we added them for. - * 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. +Mon Nov 9 12:35:57 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * 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. + * pa.h (TARGET_*): Move it to the beginning of the file. + (CPP_SPEC): Handle -mnosnake. + * pa-ghpux.h pa-hpux.h pa1-ghpux.h pa1-hpux.h pa1.h pa.h: Move + definition of TARGET_DEFAULT to before inclusion of other pa*h files. + Only define TARGET_DEFAULT if not already defined. + Get rid of hpux8 conditionals. - * 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. +Sun Nov 8 20:38:19 1992 James Van Artsdalen (james at bigtex.cactus.org) - * decrose.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define these to - use the defaults on the OSF/1 reference platform. - (i386rose.h): Likewise. + * i386.md (movstrsi): mask move count after signed shift. -Sun Jan 26 07:58:00 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Nov 8 00:24:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (cse_insn): Don't call insert_regs on a SUBREG. - When scanning table for SUBREG assignment, ignore invalid entries. + * fixinc.svr4: Avoid use of | in sed regexp; use multiple s commands. - * cse.c (cse_insn): When looking for first non-deleted entry in - table, start by scanning backwards from the deleted entry. + * i386mach.h: Include i386gstabs.h, not i386gas.h. - * function.c (assign_parms): Set current_function_return_rtx - unconditionally. - (expand_function_start): Don't set it here. + * gsyslimits.h: Renamed from syslimits.h. + * Makefile.in (USER_H): syslimits.h deleted. + (install-common-headers): Install gsyslimits.h as syslimits.h. + Depend on gsyslimits.h and assert.h. -Sat Jan 25 06:44:16 1992 Mark Eichin (eichin at cygnus.com) + * cccp.c (rescan): Accept # as command inside macro args, etc. + If an actual newline at the same level precedes. - * 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. + * fixincludes (EXINIT): Set it to `set', not null. -Fri Jan 24 18:03:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * toplev.c (main): Use strncmp when testing for gstabs+ vs gstabs. - * tree.c (pop_momentary): Don't reference freed stack entry. +Sat Nov 7 17:46:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Jan 24 14:20:05 1992 Michael Tiemann (tiemann at cygnus.com) + * optabs.c (expand_unop): + For complex negation, do get_insns, not gen_sequence. - * 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. + * c-decl.c (finish_decl): Don't clear DECL_INITIAL in inline fn decls. - * cp-tree.c (lang_printable_name): Use DECL_RING, and don't free - the printable name for CURRENT_FUNCTION_DECL. + * c-typeck.c (process_init_constructor): Strip NOP_EXPR from indices. + Clear end_index if there's an error in a range. -Fri Jan 24 14:17:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * mips-5sysv.h, mips-5svr4.h, mips-5bsd.h (CPP_PREDEFINES): + Add single-underscore variants of all the predefined symbols. - * gvarargs.h: If _ANSI_H, undef _VA_LIST_. + * gstddef.h [_ANSI_H_]: When undefing at the end, test _STDDEF_H, + not __need_ptrdiff_t. - * c-typeck.c (pointer_int_sum): Don't distribute * into pointer diff. + * mips.c (gen_int_relational): Handle overflow when incrementing cmp1. - * hp320.h (MD_STARTFILE_PREFIX): Defined. - (STANDARD_STARTFILE_PREFIX): Deleted. +Fri Nov 6 23:03:14 1992 Brendan Kehoe (brendan@lisa.cygnus.com) -Fri Jan 24 09:30:41 1992 Fred Fish (fnf at fishpond) + * elxsi.c: Include config.h. - * assert.h (__eprintf): Declare as prototype for __STDC__ +Fri Nov 6 18:53:21 1992 Chip Salzenberg (chip@tct.com) -Fri Jan 24 05:28:53 1992 James Van Artsdalen (james at bigtex.cactus.org) + * i386sco.h (STARTFILE_SPEC): Fix line wrap. + (SIGNED_CHAR_SPEC): Defined to set _CHAR_UNSIGNED. - * i386.md (jump,indirect_jump,tablejump): Don't output an align - directive here: let the following BARRIER do it. +Fri Nov 6 19:06:56 1992 Jim Wilson (wilson@sphagnum.cygnus.com) -Thu Jan 23 11:54:11 1992 Ron Guilmette (rfg at ncd.com) + * dbxout.c (dbxout_symbol): Give name ` ' to unnamed enums. - * i486v4.h: New file. +Fri Nov 6 15:26:30 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + + * optabs.c (init_libfuncs): Add casts when comparing/incrementing enum. + +Fri Nov 6 15:41:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Jan 23 20:34:22 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * toplev.c (main): Really accept -gstabs+. - * fixinc.svr4: Surround uses of ${INPUT} with "" instead of '' - so that it will get expanded. +Fri Nov 6 06:46:22 1992 Tom Wood (wood@dg-rtp.dg.com) -Thu Jan 23 17:50:13 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * m88k.md (tcnd_divide_by_zero, divsi3, udivsi3): Allow the + explicit trap for divide by zero to resume execution along the + expected path. - * 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. + * t-m88kv4 (FIXINCLUDES): Delete. - * rs6000.h (ADDITIONAL_REGISTER_NAMES): Add so we can disambiguate - fixed and floating registers. +Fri Nov 6 03:08:13 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * rs6000.md (ashrdi3): Reject all but constant shift counts. + * i386.md (andsi3): Mask immed op to 0xff in QI-reg ff00-byte case. - * jump.c (simplejump_p): Don't access PATTERN unless we know it is - a JUMP_INSN. + * gstddef.h: Find ansi.h in machine subdir. + [__need_ptrdiff_t]: Don't undef _SIZE_T_ or _WCHAR_T_. + * gvarargs.h, gstdarg.h: Don't test, define or undef _VA_LIST_ + on NET 2 systems. Don't include ansi.h. - * combine.c (get_last_value): Don't do a recursive call for a - paradoxical SUBREG. + * c-lex.c (readescape): Support \e like \E. Warn only if -pedantic. - * 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. +Fri Nov 6 08:34:17 1992 Tim Moore (moore at defmacro.cs.utah.edu) - * stor-layout.c (layout_type): Handle alignment for arrays the same - as we do for records and unions. + * integrate.c (copy_rtx_and_substitute)[ARGS_GROW_DOWNWARD]: Map + virtual args pointer to the top of the argument block. + * calls.c (expand_call)[ARGS_GROW_DOWNWARD] Fix fencepost error in + calculating high_to_save and low_to_save. Use - high_to_save to + address stack_area. - * calls.c (expand_call): Ignore `const' on void functions. +Fri Nov 6 00:41:53 1992 Paul Eggert (eggert@twinsun.com) - * 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. + * sparc.h (TARGET_EDOM, GEN_ERRNO_RTX): Deleted. - * 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. +Thu Nov 5 18:55:44 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Jan 23 13:33:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * alpha.c (output_prologue): Fix typo: `add' should be `addq'. - * i386v4.h (CPP_PREDEFINES): Don't define X86. +Thu Nov 5 18:35:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-lex.c (readescape): Warn for \a and \x if warn_traditional. - Handle \v as vertical tab regardless of -traditional. + * Makefile.in (install-fixincludes): Add semicolon in new for-loop. - * fixincludes, fixinc.svr4: Make LIB absolute, near the beginning. +Thu Nov 5 15:24:14 1992 Michael Meissner (meissner@osf.org) - * fixincludes: Simplify egrep command while matching the same lines - (plus occasional additional lines). + * i386rose.h, decrose.h (REAL_LD_FILE_NAME): Define to be the + correct location on OSF/1 -- /usr/bin/ld points to + /usr/ccs/gcc/ld, which is collect. + (REAL_NM_FILE_NAME): Ditto for nm. + (REAL_STRIP_FILE_NAME): Ditto for strip. - * function.c (fixup_memory_subreg): New arg UNCRITICAL. Calls changed. +Wed Nov 4 13:36:10 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * gcc.c (process_command): Handle LPATH like LIBRARY_PATH. + * optabs.c (expand_binop): When trying to expand a multiple word + add into multiple single word adds, don't overwrite OP0 and OP1 in + case we must backtrack. We use instead new variables XOP0 and XOP1. - * svr3.h (ASM_LONG): Deleted. +Wed Nov 4 16:45:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gvarargs.h: Ignore _VA_LIST_ if _ANSI_H_; - don't define _VA_LIST_ if already defined. + * config.sub: Don't discard SCO version number if it's 3.2v4. -Thu Jan 23 09:10:52 1992 Tom Wood (wood at dg-rtp.dg.com) + * xm-vax-vms.h (HOST_FLOAT_FORMAT): Defined. - * m88kluna.h (includes): Include aoutos.h. + * varasm.c: Fix typos in last change. -Thu Jan 23 09:10:52 1992 Ron Guilmette (rfg at ncd.com) +Wed Nov 4 10:11:28 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * va-i860.h (__savereg): Fix typo. + * va-pa.h (va_end): Do it like in other va-*.h files. - * i860.h (PREDICATE_CODES): Added definition. +Wed Nov 4 07:23:46 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * i386v4.h (ASM_FILE_START): Definition added which generates - .version directive. + * local-alloc.c (optimize_reg_copy_1): If P is a CALL_INSN, count + it as being crossed by SRC since SRC used to die there. -Wed Jan 22 23:15:45 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) +Wed Nov 4 00:13:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * make-cc1.com: Predefine symbols for "rename" and "bison"; always - generate c-parse.h when generating c-parse.c. + * x-next (libgcc2.a, stdarg.h): New rules. -Wed Jan 22 20:01:11 1992 Per Bothner (bothner at cygnus.com) + * varasm.c (immed_real_const_1, immed_double_const): + Don't push on const_double_chain in nested function. - * 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. + * expr.c (emit_move_insn): Do return a value, in complex case. -Wed Jan 22 20:01:11 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Tue Nov 3 10:45:09 1992 H.J. Lu (hlu@yardbird.eecs.wsu.edu) - * fixincludes: Surround uses of ${INPUT} with "" instead of '' - so that it will get expanded. + * i386linux.h (STARTFILE_SPEC): -static is added to ld if + -pg, -g or -p is passed down by gcc. - * gcc.c (default_compilers): For c++, define __GNUG__ to 2, and - pass -trigraphs. +Tue Nov 3 15:14:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.1, cpp.1, gcc.1, g++.1: Delete more RCS variables. + * pa.c (output_ior): Handle "ior" against zero. -Wed Jan 22 19:02:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i386mach.h (YES_UNDERSCORES): Define it. - * 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. + * sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Use REAL_VALUE_MINUS_ZERO. + (ASM_OUTPUT_DOUBLE_OPERAND): Likewise. -Wed Jan 22 09:25:07 1992 Tom Wood (wood at dg-rtp.dg.com) +Tue Nov 3 08:25:35 1992 Chris Smith (csmith@convex.com) - * c-typeck.c (comp_target_types): Make decl static. - Don't forget to return the value. - (function_types_compatible_p, comptypes): Initialize `val'. + * convex.h (REG_CLASS_FROM_LETTER): Add 'A', index regs. + (movsi alternative): Use it to make psh.w sp (push the + stack pointer) a noninstruction. -Tue Jan 21 13:29:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Nov 3 08:05:10 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cross-make (ALL): Override with definition it here. - * configure: Don't edit its value explicitly here. + * jump.c (jump_optimize): Ensure operand of REG_NOTES is an INSN; + otherwise, we might try to read outside allocated memory. - * crtstuff.c (__do_global_ctors): Include DO_GLOBAL_CTORS_BODY - in crtend.o, not in crtbegin.o. + * va-alpha.h (va_end): Don't define enum if va_end already defined. - * 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. +Tue Nov 3 02:56:22 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * objc/Makefile: Use $(srcdir), not `..'. - * i386v.h, aix386.h: Include svr3.h. - (SCCS_DIRECTIVE, ASM_OUTPUT_IDENT): Deleted. - (TARGET_MEM_FUNCTIONS): Deleted. - (SDB_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Deleted. + * objc-actions.c (build_message_expr): Use save_expr for receiver. - * 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. + * va-i860.h (va_end, anonymous enum): Don't declare if + va_end already defined as macro. + * va-mips.h, va-i960.h (va_end): If already a macro, don't declare. - * c-typeck.c (default_conversion): Don't use initial value if BLKmode. - If do use the initial value, update `type'. +Mon Nov 2 21:17:40 1992 Paul Eggert (eggert@twinsun.com) - * arm.h (STRUCTURE_SIZE_BOUNDARY): New definition. + * va-sparc.h (va_end): If already def as macro, don't declare. - * stor-layout.c (layout_type): Ignore MAX_FIXED_MODE_SIZE for integers. +Mon Nov 2 16:04:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * ultrix.h (SIZE_TYPE): Use `unsigned int'. - * Makefile.in (install-common): Add missing -f in rm. - (install-fixincludes): Install the README file. + * i386linux.h: Include i386gstabs.h, not i386gas.h. - * fixincludes: Don't match on size_t, etc., since we don't actually - change them. +Mon Nov 2 14:46:31 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) -Mon Jan 20 23:22:45 1992 Michael Tiemann (tiemann at cygnus.com) + * Makefile.in (install-cross-tools): Delete old symlink before + making new one; else symlink will fail and we will use + backed strategy. - * cp-call.c (ideal_candidate): Don't see two functions as ambiguous - if one is argument-by-argument equivalent or better than another. +Sun Nov 1 17:55:56 1992 Jim Wilson (wilson@sphagnum.cygnus.com) -Mon Jan 20 14:08:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (decode_rtx_const): Handle PC same as LABEL_REF. - * toplev.c (strip_off_ending): Add ".ada". +Sun Nov 1 03:19:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Jan 20 13:53:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Version 2.3.1 released. - * protoize.c (xfree): No longer static. + * x-i386s4: Renamed from x-i386sco4. + * configure (i[34]86-*-sco*): Use new name. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Allow tm.h to override. + * sol2-c1.asm, sol2-ci.asm, sol2-cn.asm: Renamed from sol2-crt... + * t-sol2: User new names. - * final.c (leaf_renumber_regs_insn): Do just the pattern of an insn. +Sat Oct 31 15:19:54 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * pyr.h (PCC_BITFIELD_TYPE_MATTERS): Defined. - (STRUCTURE_SIZE_BOUNDARY): Deleted. + * Version 2.3 released. - * mips.c: Clean up spacing around square brackets. + * Makefile.in (install-libobjc): New target. + ($(srcdir)/gcc.dvi, $(srcdir)/cpp.dvi): New targets. + (extraclean): rm *diff, *lose, config/*lose. + (mostlyclean): rm config/core. - * 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. + * objc-actions.c (OBJC_SELECTORS_WITHOUT_LABELS): Define by default. -Sun Jan 19 17:32:19 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Oct 30 20:11:52 1992 James Van Artsdalen (james at bigtex.cactus.org) - * reload1.c (emit_reload_insns): Fix typos when checking for secondary - icode. + * i386.c (output_move_double): Undo 10/25 change. Handle case + where part of a dest reg is used in a src mem rtx, without using + stack. -Sun Jan 19 15:28:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Oct 30 18:52:57 1992 Michael Meissner (meissner@osf.org) - * global-alloc.c (global_alloc): If LEAF_REGISTERS, those are the - regs that cost nothing to save, for setting regs_already_used. + * mips.h (MIPS_VERSION): Bump meissner version number to 28. - * expr.c (expand_builtin): Preserve function value reg - around the call to __builtin_saveregs. + * mips.md (addsi3, subsi3): Don't allow -32768 as the second + operand, the assembler complains if the instruction fills a delay + slot. - * configure (mips-sgi-irix4*, mips-sgi-irix*): Set install_with_cp. +Fri Oct 30 16:11:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (start_function): - Check properly for `static' function in handling -Wmissing-prototypes. + * combine.c (simplify_shift_const): + For a subreg, require subreg_lowpart_p and not paradoxical. - * libgcc2.c (__main): Omit this fn if INIT_SECTION_ASM_OP. + * Makefile.in (install-fixincludes): Ignore dirs that don't exist. -Sun Jan 19 13:23:13 1992 Fred Fish (fnf at sunfish) +Thu Oct 29 20:15:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * amix.h (ASM_OUTPUT_ASCII): Override version in svr4.h. + * gvarargs.h, gstdarg.h [4.3 net 2]: If _VA_LIST_, is undefined + then va_list is already declared. -Sun Jan 19 13:16:56 1992 Michael Tiemann (tiemann at cygnus.com) + * i386gas.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): + Override, if NO_UNDERSCORES. - * cp-search.c (lookup_field): Accept IS_AGGR_TYPE_CODE, not - just == RECORD_TYPE. +Thu Oct 29 17:30:52 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-class.c (finish_struct): Clear a tentative setting of - DECL_BIT_FIELD. + * flow.c (life_analysis): Mark FP live at end of function. + * reload1.c (reload): If FP was eliminated, remove it from + being live in any basic block. - * cp-decl.c (start_decl): Don't call `pushclass' for incomplete - CONTEXT. + * varasm.c (output_constant_pool): Labels can be deleted by being + turned into NOTEs, not just have INSN_DELETED_P. - * 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'. +Thu Oct 29 16:15:47 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Jan 19 04:10:16 1992 James Van Artsdalen (james at bigtex.cactus.org) + * gstdarg.h: Use _ANSI_STDARG_H_, not _ANSI_STDARG_H. - * configure: Fix typo inserting INSTALL=cp into makefile. + * gstddef.h [4.3 net 2]: If _SIZE_T_, etc. are undefined + then type is already declared. -Sat Jan 18 12:06:58 1992 Michael Tiemann (tiemann at cygnus.com) + * m68k.c (print_operand_address) [MOTOROLA !SGS]: + Don't subtract 2 in the address displacement. - * 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. +Thu Oct 29 14:36:23 1992 Michael Meissner (meissner@osf.org) - * 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. + * libgcc2.c (__builtin_vec_new): #undef NULL before including + stdio.h to prevent redeclaration message. + (pyramid __enable_execute_stack): Ditto. - * 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. + * i386rose.h (YES_UNDERSCORES): Define. + (ASM_OUTPUT_LABELREF): Don't redefine. - * cp-decl2.c (lang_f_options): Add recognizers for -f{no-}builtin, - -f{no-}ident, and -ansi. Also, remove unnecessary "no-*" forms. + * mips.h (ASM_FINAL_SPEC): If cross compiling, don't invoke + mips-tfile by default. - * cp-init.c (emit_base_init): If PEDANTIC, don't let base - initializers leak up the hierarchy. + * decrose.h (ASM_FINAL_SPEC): If cross compiling, don't invoke + mips-tfile by default. - * cp-parse.y (structsp): Disable gratuitous error message. + * mips-tdump.c, mips-tfile.c: Handle the case where CROSS_COMPILE + is defined more gracefully. - * cp-call.c (convert_harshness): Don't overlook PENALTY when - signed/unsigned differences are noted (in both POINTER_TYPE and - REFERENCE_TYPE cases). +Thu Oct 29 12:10:16 1992 Tim Moore (moore at defmacro.cs.utah.edu) - * toplev.c (strip_off_ending): Grok ".ii" endings (C++ preprocessed - files). + * combine.c (make_extraction): Fix paren error in if for INNER is reg. - * cp-typeck.c (build_component_ref): Add special handler when - COMPONENT is the CLASSTYPE_VFIELD name for BASETYPE. +Thu Oct 29 13:49:03 1992 Jim Wilson (wilson@sphagnum.cygnus.com) -Sat Jan 18 08:29:58 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * xm-mipsbsd.h: Really delete file. - * cse.c (cse_insn): Don't make constant pool entries in MODE_CC modes. +Thu Oct 29 02:48:28 1992 Tom Wood (wood@dg-rtp.dg.com) -Sat Jan 18 00:28:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * dwarfout.c, arm.c, m88k.c: Include "assert.h" instead of . - * 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. +Thu Oct 29 00:43:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gmicro.h (ASM_FILE_START): Don't do anything. - (TARGET_DEFAULT): Turn on the bitfield flag. - (TARGET_SWITCHES): Get rid of the bitfield options. + * gstddef.h [4.3 net 2]: Force inclusion of ansi.h. + Undef _SIZE_T_, _PTRDIFF_T_, _WCHAR_T_ at end. - * c-lex.c (readescape): No warning for \?. + * Makefile.in (libgcc2.a, libgcc1.a): Use || to exit if cp fails. + (install-float-h-cross): Use fi, not done. + Write float.h in $(tmpdir), not in `.'. + (tmpdir): New variable. - * protoize.c (munge_compile_params): Fix cast that sets compile_params. - (xmalloc, xrealloc): No longer static. - * Makefile.in (protoize, unprotoize): Add LIBDEPS as deps. + * i386gas.h (NO_UNDERSCORES): Test was backwards. + (SDB_DEBUGGING_OUTPUT): Defined. - * va-i860.h (va_arg): Use __extension__ to suppress pedantic warning. - * va-sparc.h, va-spur.h, va-pyr.h: Likewise. +Wed Oct 28 16:33:34 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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*. + * gstdarg.h, gvarargs.h: + On Net 2 system, don't test, define or undef _VA_LIST_. + Use _ANSI_H_, __BSD_NET2__ and ____386BSD____ to test for this. - * gcc.c (process_command): - Handle the standard_exec_prefix* before the md_*_prefix. + * i386bsd.h (CPP_PREDEFINES): Add ____386BSD____. - * i386.h, ns32k.h (PCC_BITFIELD_TYPE_MATTERS): Defined. + * c-decl.c (pushdecl): Allow redeclaring builtin as any sort of static. - * Makefile.in (libgcc1.null): Depend on GCC_PASSES. + * Makefile.in (install-cross-tools): Fix typo. + (all.build): Dep on xgcc instead of $(GCC_PASSES). - * cccp.c (lookup_import, add_import): VMS kludges so they compile. - (hack_vms_include_specification): Add forward declaration. +Wed Oct 28 15:25:42 1992 Tom Wood (wood@dg-rtp.dg.com) - * stor-layout.c (layout_record): Handle BITFIELD_NBYTES_LIMITED - just like one of the things done for PCC_BITFIELD_TYPE_MATTERS. + * m88k.c (print_operand): When AS_BUG_FLDCR is defined, use alternate + fldcr form. + * m88kdgux.h (AS_BUG_FLDCR): Define to accomodate 4.30 assembler bug. - * x-next, x-i386mach: Deleted. - * t-libc-ok: New file. Define just LIBGCC1. - * configure (i386-*-mach, m68k-next-*): Use t-libc-ok. + * m88kv3.h (CPP_PREDEFINES): Add -Dunix. - * t-svr4 (FIXINCLUDES): Defined. - * t-m88kv4 (FIXINCLUDES): Defined. - * t-svr3 (EXTRA_PARTS): Defined. - * t-i386sco (EXTRA_PARTS): Defined. + * m88kdolph.h (SDB_ALLOW_FORWARD_REFERENCES): Don't override. - * configure (sparc-*-sysv4*): New alternative. +Wed Oct 28 05:34:11 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * 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. + * reload1.c (gen_input_reload): In PLUS, if OP0 and OP1 are the + same, use RELOADREG when generating the addition. -Sat Jan 18 23:15:08 1992 Ron Guilmette (rfg at ncd.com) + * reload.c (find_reloads_address): When copying memref after we've + made recursive calls on it, copy any replacements we made. - * va-i860.h (va_list): Made __reg_base field type long* to avoid - compilation errors. - (__savereg): Add explicit cast to (__va_saved_regs *). + * combine.c (can_combine_p): Don't substitute an expression + containing a register that will be clobbered in I3. -Fri Jan 17 15:09:34 1992 James Van Artsdalen (james at bigtex.cactus.org) + * objc/core.c, objc/hash.c: Include tconfig.h, not config.h. + Include gstdarg.h. + * objc/object.m: Include tconfig.h, not config.h. + Include gstdarg.h before stdio.h. + * objc/objc.h: Don't include gstdarg.h here. + * objc/objc-proto.h (CLASS_LOCATION_SHIFT): Use HOST_BITS_PER_LONG, + not BITS_PER_WORD. + (setClassNumber, getClassNumber): `info' field is long, not int. - * 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. +Wed Oct 28 10:54:50 1992 Michael Meissner (meissner@osf.org) - (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. + * libgcc2.c (L_caps_new): Properly close comment. - (CONST_OK_LETTER_P): Document uses of letters. +Wed Oct 28 05:50:10 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * 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. + * pa.md (mulsi): Input predicates back to srcsi_operands. + Don't handle constants specifically for TARGET_SNAKE, but call + force_reg to put them in registers. + (indexed addressing mode patterns): Remove the patterns with + unscaled index. Switch off patterns that never match. - (get_asm_operand_lengths): New function. - (constrain_asm_operands): New function. Like constrain_operands, - but records some information about the matched alternative. + * longlong.h (file header): Add comment describing sdiv_qrnnd. + (__hppa sub_ddmmss): Swap input operands. - (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. + * gcc.c (process_command): Check that we have enough 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. +Wed Oct 28 00:40:18 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - (change_stack): New argument to insert any new insns before INSN - instead of after. All callers changed. + * configure (i[34]86-*-sysv*): Take note of $stabs. + * i386gas.h (SDB_DEBUGGING_INFO): #undef deleted. + (DBX_DEBUGGING_INFO): Definition deleted. + * i386gstabs.h: New file. - (emit_swap_insn): Abort if the reg is not found in REGSTACK. + * Makefile.in (mostlyclean): Don't delete tmp-limits.h. - * Makefile.in (reg-stack.o): Depends on insn-config.h. + * i386vgas.h: File deleted. -Fri Jan 17 16:38:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Oct 27 15:35:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * libgcc2.c: Include stdio.h. + [__GNU_LIBRARY__] (write): Defined. - * gcc.c (do_spec_1): Add missing arg in recursive call. - (link_command_spec): Don't pass -s, -S, -u*, -X, -Y*. + * Makefile.in (install-cross-tools): When handling $(tooldir)/include, + do all cd's starting from build directory. -Fri Jan 17 12:51:28 1992 Jim Wilson (wilson at cygnus.com) + * i386gas.h (NO_UNDERSCORES): Don't define, if YES_UNDERSCORES. + * i386linux.h (YES_UNDERSCORES): Defined. - 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. +Tue Oct 27 14:17:43 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * hp800.h, hp800.md: Delete RCS Header variables. + * configure (i[34]86-*-linux): Set broken_install. + * x-linux (INSTALL): Delete. + * x-iris (INSTALL): Delete. - * reg-stack.c (replace_reg): Change `abort' to `abort ()'. +Tue Oct 27 13:39:22 1992 Tim Moore (moore@hal.gnu.ai.mit.edu) -Fri Jan 17 14:30:14 1992 Michael Meissner (meissner at osf.org) + * pa.h (ASM_GLOBALIZE_LABEL): Give function symbols CODE type, + others DATA type. - * 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. +Mon Oct 26 16:40:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Jan 17 13:24:33 1992 Tom Wood (wood at dg-rtp.dg.com) + * c-typeck.c (build_c_cast): Don't warn about size change between + pointer and integer if the value is constant. - * Makefile.in (unprotoize.o): Use the rm -f option. + * Makefile.in (libobjc.a): If ln fails, copy libobjc.a. - * cp-lex.c (check_newline): Define `used_up' as in c-lex.c. - (in_system_header): Define as in c-lex.c. +Mon Oct 26 16:21:11 1992 Tim Moore (moore@defmacro.cs.utah.edu) -Fri Jan 17 08:14:04 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * pa.h (EXPORT_PARMS, ASM_DECLARE_FUNCTION): Blow away usage of + EXPORT_PARMS. BUGGY_GAS isn't a problem any more. + (TEXT_SPACE_P, FUNCTION_NAME_P): New macros. + (ENCODE_SECTION_INFO): Use TEXT_SPACE_P. + (STRIP_NAME_ENCODING): Strip a '*' which might preceed a '@'. + (ASM_OUTPUT_EXTERNAL): Give only function labels a CODE type. + (ASM_OUTPUT_LABELREF): Use FUNCTION_NAME_P. + * pa.c (hppa_encode_label): Change function name encoding to + preserve leading '*' if there is one. + (function_label_operand): Use FUNCTION_NAME_P macro. - * reorg.c (delete_from_delay_slot): Pass correct length to - emit_delay_sequence. +Mon Oct 26 14:39:46 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * genattrtab.c (substitute_address): Handle IF_THEN_ELSE in addition - to COND. + From Tim Moore: + * function.c (locate_and_pad_parm): In ARGS_GROW_DOWNWARD case, + don't pad to argument alignment if where_pad is downward. - * expr.c (expand_builtin, case BUILT_IN_STRLEN): Correct args in - expand_expr call. +Mon Oct 26 11:21:36 1992 Chris Smith (csmith@convex.com) -Fri Jan 17 17:33:40 1992 James Van Artsdalen (james@raid) + * convex.h (SHIFT_COUNT_TRUNCATED): Undefine. - * x-i386v4 (CCLIBFLAGS): Delete macro. - (GCC-CFLAGS): Delete macro. Prevented Makefile.in from working. +Mon Oct 26 07:48:35 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Jan 16 17:03:27 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * alpha.c (print_operand, new 'L'): New case. + * alpha.md (movhi/movqi patterns): For long constants, use 'i' + constraint instead of 'K'; use "%L1" in template. - * Makefile.in (cleanconfig): Also delete tconfig.h. + * configure (alpha): Set use_collect2. - * varasm.c (assemble_external): Only call ASM_OUTPUT_EXTERNAL once - for each symbol. - (assemble_external_libcall): Fix minor typo in spacing. +Mon Oct 26 04:19:24 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (main): Force error if invalid -W option is used. + * xm-alpha.h: Declare calloc. -Thu Jan 16 13:35:13 1992 Tom Wood (wood at dg-rtp.dg.com) +Sun Oct 25 17:19:52 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88kdgux.h (CPP_PREDEFINES): Added __CLASSIFY_TYPE__ back and - noted when it would be useful. + * function.c (fixup_var_refs_insns): Don't call delete_insn if not -O. + Make a NOTE_INSN_DELETED instead. - * m88k.h (ASM_FILE_END, ASM_OUTPUT_ASCII): Override svr4.h. +Sun Oct 25 11:57:04 1992 Chris Smith (csmith@convex.com) -Thu Jan 16 12:37:16 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * convex.h (target_flags): prevent -mnoc2 from clearing + TARGET_INDIRECTS. + (TARGET_INDIRECTS): Always on. - * svr4.h (SVR4): Add this back. +Sun Oct 25 16:56:18 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * cccp.c (lookup_import): Use bcmp to compare inodes. + * calls.c (expand_call): Don't call convert_to_mode if we obtained + VALUE in the proper mode; VALUE might be a CONST_INT. - * cccp.c (main): Handle -idirafter option. +Sun Oct 25 03:18:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68kv4.h, m88kv4.h, i386v4.h, sparcv4.h, i860v4.h (CPP_PREDEFINES): - Add __svr4__ in case user programs want to distinguish. + * expr.c (gen_push_operand): No longer static. - * cp-lex.c (check_newline): Changes like Jan 12 changes in c-lex.c. + * i386.c (output_move_double): Divert first word via the stack + if it's a register used in the input operand. + * i386.md (movdi): Delete the `&' from constraint. - * Makefile.in (install-fixincludes): Renamed from `includes'. - Move comments so some shells are happier. Dep. on install-headers. +Sat Oct 24 21:41:00 1992 Chris Smith (csmith@convex.com) - * m88kdgux.h (CPP_PREDEFINES): Add __svr4__. Remove __CLASSIFY_TYPE__. - Add some assertions. + * convex.md (movstrictsi): Correct output constraint is + not =. - * 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. +Sat Oct 24 14:10:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (start_function): Fix backwards test for -W* options. + * news.h (FUNCTION_EPILOGUE): Fix typos. - * protoize.c (GUESSPATHLEN): Treat POSIX like USG--and use just 200. + * cccp.c (get_lintcmd): Length of `LINTLIBRARY' is 11. - * cccp.c (deps_output): Break line iff string is empty. - (do_include): Fix up the deps_output calls. +Sat Oct 24 13:22:09 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * vax.c (print_operand_address): Handle form index + (reg+offset). + * arm.md (DImode patterns): Add `&' to target operand constraints. - * m88k.h (TARGET_VERSION): Don't use __DATE__. + * Makefile.in (setting version variable): Prepend $(srcdir) to + version.c. - * gcc.c (default_compilers): Typos in c++-cpp-output case. + From Wilson: + * longlong.h (sparclite): Use machine independent USItype instead + of explicit types. -Thu Jan 16 12:25:51 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Sat Oct 24 10:35:18 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * loop.c (get_condition): In HAVE_cc0 code, generate a zero with - CONST0_RTX instead of just using const0_rtx. + * rs6000.md (movdi): Tests were in wrong order. - * cse.c (cse_isnsn): A CALL_INSN clobbers all fixed regs except - for ap, fp, and sp. + * rs6000.h (LEGITIMIZE_ADDRESS): Indexed addresses are not valid + for DImode and TImode; GO_IF_LEGITIMATE_ADDRESS knows this. -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. + * Makefile.in (mostlyclean): Add missing semicolon. -Thu Jan 16 07:40:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * a29k.c (a29k_set_memflags, a29k_set_memflags_1): New functions. + * a29k.md (movqi, movhi, reload_{in,out}{qi,hi}): Use them. - * 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 + * alpha.c (get_aligned_mem): Copy memory flags to new MEM. + (alpha_set_memflags, alpha_set_memflags_1): New functions. + * alpha.md (movqi, movhi, reload_{in,out}{qi,hi}): Use new functions. -Wed Jan 15 17:59:02 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * alpha.h (ASM_FILE_START): Stop at blank in version string. - * combine.c (can_combine_p): Don't combine if DEST is still a field - assignment after we've tried to expand it. +Sat Oct 24 04:35:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 15 16:01:13 1992 James Van Artsdalen (james at bigtex.cactus.org) + * reload1.c (emit_reload_insns): If not -O, Don't try find_equiv_reg. + (choose_reload_regs): If not -O, don't inherit reloads. - * regclass.c (fix_register): Don't match a null register name. - * varasm.c (decode_reg_name): Likewise. +Fri Oct 23 18:07:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386.h (HI_REGISTER_NAMES): Give the eliminable arg pointer a - null name. + * news.h (FUNCTION_EPILOGUE): + If no frame ptr, increment stack ptr to free up the local space. -Wed Jan 15 13:40:50 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * gcc.c (process_command): Discard after first space in spec_version. - * gcc.c (default_compilers): Pass -lang-asm, not -lang-asmc, to cpp. + * print-tree.c (print_node): Always output `>' to match `<'. - * gcc.c (process_command): Don't dump md_exec_prefix in specs. - Use the md_... prefixes only if no -b. + * Makefile.in (version): Use sed to extract. + Ignore excess after space. + (install-fixincludes): Fix typo in last change. -Wed Jan 15 13:35:09 1992 Ron Guilmette (rfg at ncd.com) + * configure (i386-ibm-aix*): Use aix386ng.h if not --with-gas. + * aix386ng.h: New file. - * 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. +Fri Oct 23 15:14:49 1992 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * sdbout.c (sdbout_symbol): Return if a symbol's DECL_NAME is + empty, since we won't be able to make a symtab of it. - * m68kv4.h (CPP_PREDEFINES): Don't define SVR4. - * sparcv4.h (CPP_PREDEFINES): Don't define SVR4. - (ASM_OUTPUT_ASCII): Deleted obsolete definition. + * convex.h (P_tmpdir): Remove definition. + * xm-convex.h: Put it here. - * xm-svr4.h (SVR4): Removed useless definition. - (POSIX): Added definition for protoize.c. +Fri Oct 23 10:27:34 1992 Michael Meissner (meissner@osf.org) - * 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). + * i386rose.h (ASM_OUTPUT_LABELREF): Define so that external + identifiers have leading underscores in front of them. - * fixinc.svr4: Replaced all occurances of {1,\} in sed command - string with functional equivalents (to avoid bogus results). + * mips-tfile.c (parse_stabs_common): Allow stabs with line numbers + of 0. These come from g++ for compiler generated functions that + take arguments. - * c-lex.c (readescape): Pass thru escaped x, a, and v if -traditional. - (readescape): Pedantic warning for \?, \(, \{, and \[. +Fri Oct 23 07:49:12 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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). + * romp.c (output_fpops): Add SYMBOL_REF and LABEL_REF cases to + constants handled. -Wed Jan 15 09:30:08 1992 Michael Tiemann (tiemann at cygnus.com) +Fri Oct 23 01:58:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * All cp-* files: Remove calls to `cleanup_after_call'. + * flow.c (find_basic_blocks): Check for LABEL_REF_NONLOCAL_P + in label_value_list. + * jump.c (mark_jump_label): Copy LABEL_REF_NONLOCAL_P from + LABEL_REF into REG_LABEL note. - * cp-method.c (fndecl_as_string): Add a missing space when printing - the return type. + * toplev.c (push_float_handler): Declare arg old_handler. - * 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. + * t-next (OTHER_FIXINCLUDES_DIRS): Defined. - * cp-decl.c (grokvardecl): Don't get tripped up by static class - members of incomplete type. + * Makefile.in (OTHER_FIXINCLUDES_DIRS): New variable, normally empty. + (install-fixincludes): Run fixincludes on those dirs. + * fixincludes: Convert //-style comments to /*...*/ style. -Wed Jan 15 09:12:51 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * loop.c (record_biv): Clear total_benefit field of new iv_class. + (get_condition): + Verify op 2 of source is label_ref before looking within. - * m68k.c (legitimize_pic_address): Re-enable code which was - mistakenly #ifdef'd out. +Thu Oct 22 21:17:53 1992 Tim Moore (moore at defmacro.cs.utah.edu) -Wed Jan 15 08:12:18 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (STRIP_NAME_ENCODING): New macro to decode a symbol name + munged by ENCODE_SECTION_INFO. + (assemble_start_function, assemble_variable): Use STRIP_NAME_ENCODING. + * pa.h (STRIP_NAME_ENCODING): New definition. - * reload.c (find_reloads): Check for insn not recognized. +Thu Oct 22 17:53:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * Makefile.in (mostlyclean): Clean objc subdir only if it exists. - * sdbout.c (sdbout_symbol): Treat (mem (reg SP)) the same - as (mem (reg FP)). + * news.h (FUNCTION_PROLOGUE): Do allocate local stack space + when no frame pointer. - * 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. +Thu Oct 22 15:21:27 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Wed Jan 15 08:10:29 1992 Chris Smith (cks at bach.convex.com) + * i960.h (FUNCTION_VALUE): Simplify, just return reg 0. + * i960.c (i960_function_value): Delete. - * 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. +Thu Oct 22 09:42:50 1992 Michael Meissner (meissner@osf.org) - * convex.h (ASM_OUTPUT_DOUBLE_INT): define. + * mips-tfile.c (parse_stabs_common): Ignore stab line numbers + of 0, since the G++ front end generates them. Check whether + line numbers can fit within the index field, and if not report + an error. - * convex.h (DEFAULT_GDB_EXTENSIONS): define as 0 until GDB version 4 - port is available. + * mips.c (function_arg): Align passed structures to double word + boundary if structure has double word alignment. - * convex.c (ap_reload_needed): Fix comment. + * mips.h (STACK_DYNAMIC_OFFSET): Do not define this macro in order + to work around a bug. -Wed Jan 15 07:08:25 1992 Tom Wood (wood at dg-rtp.dg.com) +Thu Oct 22 08:00:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88k.h (CONST_SECTION_FUNCTION): Trivial definition for targets - not based on svr[34].h (m88k-luna). + * gstdarg.h, gvarargs.h: Treat _AIX and _M_UNIX like __svr4__. - * m88k.h (PREDICATE_CODES): Use it. + * i386gas.h (NO_UNDERSCORES): Defined. - * 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. - - * m88k.c (legitimize_address): When converting a symbol_ref for - PIC, add a REG_EQUAL note. - -Wed Jan 15 06:22:34 1992 Michael Meissner (meissner at osf.org) - - * 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. - - * 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. + * next.h (INCLUDE_DEFAULTS): Put in GPLUSPLUS_INCLUDE_DIR, + GCC_INCLUDE_DIR, LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR. + Don't define at all if cross-compiling. - * 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. + * tree.c (copy_node): Copy the excess bytes--don't clear them. -Wed Jan 15 01:42:39 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Thu Oct 22 06:40:55 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.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. + * a29k.h (TARGET_SWITCHES): Add missing complementary switches: + -mno-stack-check and -mstorem-bug. -Wed Jan 15 01:01:39 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * a29k.md (long constant split): Use gen_lowpart instead of making + a SUBREG directly. - * 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. + * arm.h (STORE_FLAG_VALUE): Remove bogus definition. - * Makefile.in (install-common): Install driver as gcc-$(target). +Thu Oct 22 03:04:28 1992 Tom Wood (wood@dg-rtp.dg.com) - * gstddef.h (wchar_t): Check for _T_WCHAR. + * m88k.c (prologue_marked): New variable. + (m88k_end_prologue): Output the epilogue mark here if the start of + the epilogue passed the end of the prologue. + (m88k_begin_epilogue): Don't output the epilogue mark if the end + of the prologue hasn't been processed yet. - * 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. +Thu Oct 22 03:20:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Jan 14 23:25:37 1992 Ron Guilmette (rfg at ncd.com) + * function.c (put_var_into_stack): When we operate on a pseudo + that holds the address, use proper modes. - * 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. + * combine.c (make_extraction): Use is_mode, not inner_mode, + for BYTES_BIG_ENDIAN adjustment to offset for non-bitfield case. + Update is_mode when stripping subreg from around a mem. - * 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. + * m68k.h (GO_IF_INDEXABLE_BASE): Allow LABEL_REF only if jump table. - * dwarfout.c (INSN_LABEL_FMT, FUNC_END_LABEL_FMT): Use decimal format. +Wed Oct 21 18:55:24 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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++). + * gstdarg.h: Check and define _ANSI_STDARG_H along with _STDARG_H. - * 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. +Wed Oct 21 11:41:39 1992 Tom Wood (wood at gen-rtx) - * 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. + * toplev.c (push_float_handler, pop_float_handler): New functions. + * fold-const.c (real_value_truncate): + Use them, in case another handler is already in effect. - * 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. +Wed Oct 21 22:08:31 1992 H.J. Lu (hlu@yardbird.eecs.wsu.edu) -Tue Jan 14 16:40:39 1992 Tim Moore (moore at fast.cs.utah.edu) + * Makefile (all.build): Add target $(GCC_PASSES) for xgcc. + * build-make (CC): Defined. + (CROSS_GCC_FLAGS): Deleted. + (HOST_CC): Delete -V option; CC supplies that. - * 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. +Wed Oct 21 12:34:39 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) -Tue Jan 14 20:01:59 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + From Wilson: + * longlong.h (sparclite udiv_qrnnd): Remove comma before + __AND_CLOBBER_CC. - * sparc.h (TARGET_SUN_ASM, TARGET_GNU): Delete support for - obsolete and undocumented flags -msun-asm and -mgnu. - * sparc.md: Likewise. +Wed Oct 21 12:24:24 1992 Michael Meissner (meissner@osf.org) -Tue Jan 14 19:36:21 1992 Tim Moore (moore at fast.cs.utah.edu) + * decrose.h (WORD_SWITCH_TAKES_ARG): Add -pic-names. + (CC1_SPEC): If -pic-names, pass -mhalf-pic to cc1. - * 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. + * i386rose.h (WORD_SWITCH_TAKES_ARG): Add -pic-names. + (CC1_SPEC): If -pic-names, pass -mhalf-pic to cc1. -Tue Jan 14 14:38:09 1992 Michael Tiemann (tiemann at cygnus.com) +Wed Oct 21 07:34:16 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-typeck.c (build_unary_op): Call readonly_warning_or_error if - ARG is TREE_READONLY (in addition to the type being TYPE_READONLY). + * configure (alpha): Only accept OSF/1. - * 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. + * alpha.h (ASM_FILE_START): Change .verstamp ident for BL9. + * alpha.md (div/mod): Change calling sequence to agree with BL9. -Tue Jan 14 13:12:48 1991 Ron Guilmette (rfg at ncd.com) + * expr.c (do_store_flag): Ensure we don't get confused when + emit_store_flag fails and an operand has a QUEUED. - * 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. +Wed Oct 21 02:53:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Jan 14 06:46:37 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cexp.y (integer_overflow): Do nothing unless pedantic. - * 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. +Tue Oct 20 17:02:15 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * a29k.c (a29k_debug_reg_map): New variable. - (output_prologue): Initialize it. - * a29k.h (DBX_REGISTER_NUMBER): Use that map. + * README, sparc.h, flow.c, regs.h: Change global-alloc.c to global.c. - * ultrix.h (WCHAR_TYPE): Make definition be a known type. + * i960.md (call, call_value): Use 'd' not 'r' constraint for scratch. - * final.c (final_scan_insn): Call DBR_OUTPUT_SEQEND before we - clear `final_sequence', so it can call dbr_sequence_length. + * gcc.c (WORD_SWITCH_TAKES_ARG): Handle -Ttext and -Tbss in + addition to -Tdata. + * i960.h (WORD_SWITCH_TAKES_ARG): Delete, now unnecessary. + * next.h (WORD_SWITCH_TAKES_ARG): Add -Tbss. + * sparc.h, sun2.h, sun3.h (WORD_SWITCH_TAKES_ARG): Add -Ttext and + -Tbss. - * 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. +Tue Oct 20 16:49:57 1992 Ron Guilmette (rfg at netcom.com) - * flow.c (mark_used_regs, case RETURN): Insert missing test for global - registers. + * dwarfout.c (dwarfout_file_scope_decl): Generate DIEs for + built-in non-fundamental types. - * reorg.c (mark_referenced_resources): Mark asm's as volatile - when appropriate. +Tue Oct 20 14:58:18 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * objc-actions.c (handle_impent, handle_class_ref): Use __ + to start the generated names, not period. -Mon Jan 13 19:12:18 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Tue Oct 20 14:38:30 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * unroll.c (find_splittable_givs): When completely unrolling loop, - use biv initial value stored in splittable_regs instead of - bl->initial_value, since the later may not be safe. + * cp-method.c (fndecl_as_string): Undo change of Sep 14th for + emitting a space after the return type of a fn. - * sched.c (schedule_block): When calculating whether a register - crosses a call, must do this after registers are killed and before - new registers are made live. + Wed Oct 7 16:01:55 1992 Chip Salzenberg (chip@tct.com) - * x-rs6000: Define INSTALL as /usr/ucb/install -c. /etc/install - (the SYS V version) does not handle -c option as Makefile.in - intends it. + * cp-lex.c (readescape): No warning if digits in \x are all 0's. -Mon Jan 13 11:21:24 1992 Michael Meissner (meissner at osf.org) +Tue Oct 20 06:50:28 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * mips-tfile (parse_stabs_common): Don't relocate N_LBRAC and - N_RBRAC stabs for compatibility with other stabs implementations. + * expr.c (force_operand): Clarify comment to say what it can return. + * integrate.c (copy_rtx_and_substitute): Don't assume force_operand + on an address returns a REG; it might be a SUBREG. Use force_reg. -Mon Jan 13 07:41:32 1992 Michael Tiemann (tiemann at cygnus.com) +Tue Oct 20 04:54:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-decl.c (grokdeclarator): Don't set TREE_PRIVATE here. - TREE_PRIVATE is only for visibility. - (start_function): Don't test TREE_PRIVATE here. #pragma - interface/implementation should properly handle the case of static - (i.e. non-public) defns in implementation section now. + * tree.c (make_node, copy_node): + Don't assume node length is multiple of int. -Mon Jan 13 07:31:38 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Oct 19 18:14:56 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * rs6000.c (output_ascii): The AIX assembler silently truncates - strings longer than 666 characters, so break them up well before that. + * genrecog.c (write_tree): For type SPLIT, check subroutine return + values for non-zero value not positive value. -Mon Jan 13 00:26:47 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Mon Oct 19 16:11:04 1992 Michael Meissner (meissner@osf.org) - * c-decl.c (pushdecl): Warn about shadowing at top level any symbol - that was declared among the function parms. But don't warn for - parms in a nested function. - * tree.c (chain_member): New function. + * c-typeck.c (print_table, scan_table): Add support for XPG4's %S + and %C formats for printing/reading wide characters. %lc and %ls too. - * sparc.c (output_return): Handle structure value in all the cases. +Mon Oct 19 17:58:18 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * toplev.c (main): -gstabs+ means use stabs with gdb extensions. + * arm.c (output_epilogue): Restore sp's value if no frame pointer. - * fixincludes: Insert #undef NULL before #define NULL. + From Wilson: + * pa.h (WORD_SWITCH_TAKES_ARG): Delete sparc related cruft. - * gvarargs.h (va_list): Check some macros to avoid redefinition. +Mon Oct 19 14:49:03 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * tree.h (DECL_PACKED): New macro. - * c-common.c (decl_attribute): Handle `packed'. - * stor-layout.c (layout_record): Handle DECL_PACKED. - * c-parse.y (attrib): Accept `packed' with no arg. + * cp-parse.y (primary): Don't try building a CALL_EXPR or + converting types if $$ is an error_mark. - * c-decl.c (shadow_tag): For useless keyword, just warn. - (duplicate_decls): Don't preserve volatile bit from old decl - if that is just a default declaration for abort, exit, etc. +Mon Oct 19 14:01:02 1992 Tom Wood (wood@dg-rtp.dg.com) - * cccp.c (do_assert, do_unassert, check_assertion): - No pedantic warnings in system header files. + * m88k.h (SECONDARY_INPUT_RELOAD_CLASS): Require a temporary for a + pic address with a large constant term. + * m88k.md (reload_insi): New pattern. + (addsi3 pattern for large constants): Delete. Causes reload trouble. + * m88k.c (emit_move_sequence): Add scratch register. All callers + changed. + (legitimize_address): Add scratch register. All callers changed + to pass zero instead of gen_reg_rtx result. Allocate another temp + register for -fPIC case. Use scratch register for pic cases with + a large constant term. - * ultrix.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Defined. - (WCHAR_TYPE_SIZE): Defined. + * m88k.h (FUNCTION_PROFILER_LENGTH, FUNCTION_BLOCK_PROFILER_LENGTH, + BLOCK_PROFILER_LENGTH, REG_PUSH_LENGTH, REG_POP_LENGTH): Added. + (ADJUST_INSN_LENGTH): Account for profiling code. - * i386.h (HI_REGISTER_NAMES): Add a name for dummy reg 16. +Mon Oct 19 16:46:52 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dbxout.c (flag_minimal_debug): Make it static. + * Makefile.in (libobjc.a): Don't mkdir objc if dir exists. -Sun Jan 12 18:10:46 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * expr.c (store_field): If trying to sign-extend a constant, + use value_mode as the mode. - * c-lex.c (check_newline): Check #line for `3' meaning system header. - * cccp.c (output_line_command): Output `3' if system header. - * c-tree.h (system_header_p): Declare it. - (ridpointers): Declaration deleted. +Mon Oct 19 10:59:20 1992 Michael Meissner (meissner@osf.org) - * dwarfout.c (fundemental_type_code): Treat OFFSET_TYPE like integer. - (type_is_fundamental, output_type): Likewise. + * xm-umips.h (index): Define to be strchr. + (rindex): Define to be strrchr. - * optabs.c (expand_float): Abort if FROM has VOIDmode. - * expr.c (expand_expr, FLOAT_EXPR case): Don't pass a VOIDmode. + * mips-tdump.c (index, rindex): Undefine these, since the MIPS + include files have a field spelled index. -Sun Jan 12 16:11:40 1992 Michael Meissner (meissner at osf.org) +Mon Oct 19 03:34:04 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * mips.h (ASM_OUTPUT_SPACE): If assembler is gas, don't use the - .space directive, since the table PREDICATE_CODES generates tickles - a bug. + * Makefile.in (mostlyclean): Delete libobjc.a. + (libobjc.a): Create the objc subdir. -Sun Jan 12 15:59:41 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Oct 18 17:52:05 1992 Arne H. Juul (arnej@lise.unit.no) - * expmed.c: Include real.h. - (make_tree): Properly handle CONST_INT and handle many more rtl codes. - (expand_mult_add): Don't do folding here; just call make_tree and fold. - * Makefile.in (expmed.o): Includes real.h. + * objc/Makefile: Add .SUFFIXES .m and .m.o rule to keep non-GNU + make happy. -Sun Jan 12 12:26:20 1992 Michael Tiemann (tiemann at cygnus.com) + * Makefile.in (libobjc.a): Remove libobjc.a in current directory + before attempting to hardlink it or make will fail in later stages. + (sublibobcj.a): Don't use $(MAKEFLAGS) for objc subdir stuff. - * cp-decl.c (store_parm_decls): Finish change started 11 Jan 1992. +Sun Oct 18 06:00:27 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * cp-decl.c (pushtag): Don't set CLASSTYPE_TAGS after - CURRENT_CLASS_TYPE has been defined. + * cse.c (canon_reg): Don't call validate_change if INSN is zero. - * cp-lex.c (check_newline): Set INTERFACE_UNKNOWN if we see a - #pragma implementation or if it's the toplevel file. +Sun Oct 18 01:09:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Jan 11 22:04:34 1992 Michael Meissner (meissner at osf.org) + * i860.h (PRINT_OPERAND): For `h', always use OPERAND_HIGH_ADJ_PART + even for integer constant addresses. - * mips.md (fix_truncsfsi2_opt): Delete, since the optimizer will - strip the clobbers when substituting a register for a cs'ed value, - unlike GCC 1. - (fix_truncdfsi2_opt): Likewise. - (long long shifts): Fix various typos. + * final.c (output_addr_const): Always use FILE, not asm_out_file. -Sat Jan 11 15:26:24 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cccp.c (collect_expansion): Don't add whitespace at end + if inside a string and not traditional. + (rescan): At end of string, if inside macro, always keep scanning. - * expr.h (GEN_FCN): Alternate definition if FUNCTION_CONVERSION_BUG. - * xm-romp.h (FUNCTION_CONVERSION_BUG): Define it. + * expr.c (store_field): If signed bitfield and want value, sign extend. - * i386.md (cmpstrsi recognizers): Change back to repz. +Sat Oct 17 21:11:09 1992 H.J. Lu (hlu@yardbird.eecs.wsu.edu) -Sat Jan 11 11:18:32 1992 Michael Tiemann (tiemann at cygnus.com) + * Makefile.in (all.build): New rule for making gcc with a + cross-compiler. + (install.build): New target. + (line 271): Add `####build overrides'. + (gen*.o): Depend on hconfig.h, not config.h. + ($(HOST_PREFIX_1)rtl.o, $(HOST_PREFIX_1)print-rtl.o, + $(HOST_PREFIX_1)rtlanal.o, $(HOST_PREFIX_1)obstack.o, + $(HOST_PREFIX_1)malloc.o): Add final `h' to the regexp to replace. - * cp-decl.c (store_parm_decls): Don't put non-PARM_DECL nodes in the - list that will become DECL_ARGUMENTS. + * configure: If $host == $taget, but $host != $build, merge + `build-make' and emit `build = $build'. + * build-make: New file for making gcc with a cross-compiler. - * cp-decl2.c (grokfield): Convert () initialization to = - initialization in FIELD context. - * cp-decl.c (parmlist_is_exprlist): Now non-static. +Sat Oct 17 19:24:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-decl.c (grokdeclarator): Don't let static class members be - declared `static' at top-level. + * c-typeck.c (process_init_constructor): When initializing a union, + handle the case of an empty init list. - * cp-decl.c (pushdecl_class_level): Don't use DECL_ASSEMBLER_NAME. + * reload.c (find_reloads_address): Redo last change: copy the mem + in the same way it's usually done. - * cp-decl.c (grokdeclarator): Don't let language linkage interfere - with declarator grokking--the two are independent. + * Makefile.in (gcc.xtar): Fix typo in last change. + (mostlyclean): Don't use $(MAKEFLAGS) for objc subdir stuff. - * cp-call.c (compute_conversion_costs): Look for constructor or type - conversions regardless of whether we have CONTRAVARIANCE_HARSHNESS - or not. Also, `#if 0' some dead code. +Sat Oct 17 19:15:16 1992 John Wroclawski (jtw@pmws.lcs.mit.edu) - * cp-method.c (report_type_mismatch): Fix bugs in formatting error - messages. + * decstatn.h (SIZE_TYPE): Fix typo. - * cp-decl.c (grokvardecl): Verify that when static class members are - declared at toplevel, the types match their initial declaration. +Sat Oct 17 17:46:08 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Sat Jan 11 08:41:24 1992 Fred Fish (fnf at fishpond) + * cp-method.c: Don't try to include string.h or strings.h. + * cp-decl.c: Ditto. - * config/m68kv4.h (NO_DOLLAR_IN_LABEL): Undefine so that the - default for m68k/SVR4 systems is to use '$', which is more - widely supported. +Sat Oct 17 13:50:49 1992 Fred Fish (fnf@fishpond.cygnus.com) -Sat Jan 11 10:56:10 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * fixinc.svr4 (string.h): + Remove #defines for other compiler's builtin functions. - * Finish PIC implementation on the 68k - * output.h (flag_pic): Declare here so that insn-*.c can see it. +Sat Oct 17 00:39:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * reload1.c (reload): When compiling PIC ignore REG_EQUIV notes - which are CONSTANT_P, but are not LEGITIMATE_PIC_OPERAND_P. + * protoize.c: Add #undef getopt after getopt.h. - * m68k.md (call, call_value): Make these into define_expands. If - compiling PIC code, then load the address of the function into a - register so that we make indirect calls. - (Non-PIC call, call_value): New define_insns. These are - standard call insns. - (PIC call, call_value): New define_insns which output PIC calls. - (movsi): Make this into a define_expand. Legitimize PIC addresses - if necessary. Old movsi code is now an unnamed define_insn pattern. + * gstdarg.h, gvarargs.h (va_list) [__SVR4_2__]: + Don't set or test _VA_LIST. - * m68k.h (GO_IF_LEGITIMATE_ADDRESS case INDIRECTABLE_1_ADDRESS_P): - Use LEGITIMATE_PIC_OPERAND_P to reject SYMBOL_REFS and LABEL_REFS - without PIC relocation when compiling PIC code. + * gstddef.h: Do nothing if _ANSI_STDDEF_H already defined. - * m68k.c (legitimize_pic_address): New function. Given an address - return that address as "legitimized" PIC code. - (print_operand_address): When generating PIC code, handle PIC - relocated label_refs just like a PIC relocated symbol_ref. - (print_operand_address): If -fpic then add ":w" to displacement in - PIC relocated references. - (print_operand_address): If -fPIC then add ":l" to displacement in - PIC relocated references. +Fri Oct 16 11:39:06 1992 H.J. Lu (hlu@yardbird.eecs.wsu.edu) -Fri Jan 10 18:03:08 1992 Ken Raeburn (Raeburn@Cygnus.COM) + * emit-rtl.c (gen_lowpart_common): Fix typo in last change. - * cp-init.c (build_new): Don't allocate header for arrays if no - destructor is needed. Also fix broken calculation of array size. - (build_delete): Don't skip array header if no destructor is needed. +Fri Oct 16 22:35:15 1992 Eric Youngdale (youngdale@v6550d.nrl.navy.mil) -Fri Jan 10 14:54:19 1992 Michael Tiemann (tiemann at cygnus.com) + * make-cc1.com: Correct previous patch. - * cp-cvt.c cp-decl2.c cp-expr.c cp-gc.c cp-init.c cp-lex.c cp-parse.y - cp-pt.c cp-search.c cp-tree.c: Clean up problems found with -Wreturn - (from rfg). +Fri Oct 16 20:07:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-typeck.c cp-tree.c cp-cvt.c cp-lex.c cp-call.c cp-class.c: - Add (unsigned) casts to all places where native SVr4 compilers - expect to see unsigned values. + * objc-actions.c (start_class): + For an INTERFACE_TYPE, push to permanent obstack. + (build_message_expr): Use TYPE_MAIN_VARIANT when comparing types. -Fri Jan 10 08:34:36 1992 Fred Fish (fnf at sunfish) + * Makefile.in (libobjc.a): Don't use $(MAKEFLAGS). + Add braces around shell variable references. + (collect2): Delete file before linking it. + * objc/Makefile (all): Don't use $(MAKEFLAGS). + (VPATH): Get rid of ../ since srcdir now absolute. - * m68ksgs.h (REGISTER_NAMES): Provide separate versions for - SUPPORT_SUN_FPA defined and not defined. +Fri Oct 16 14:23:25 1992 Michael Meissner (meissner@osf.org) -Fri Jan 10 22:36:41 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * decstatn.h (all defines): Protect all defines with an #ifndef, + to allow dec-osf1.h to selectively override macros. - * Improve I/O performance of gcc on VMS. - * cccp.c (VMS_open, VMS_fopen, VMS_freopen): New functions. - (open, fopen, freopen): Define as macros on VMS. - * toplev.c (VMS_fopen): New function. - (fopen): Define as macro on VMS. +Fri Oct 16 10:44:47 1992 Tom Wood (wood@dg-rtp.dg.com) -Fri Jan 10 22:00:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Makefile.in (libobjc.a): Compute srcdir1 without changing + directories. Use srcdir1 to locate objc/Makefile. Put quotes + around all potential multi-word values. Recompute GCC_FOR_TARGET. + (sublibobjc.a): Use same text as libobjc.a. + (mostlyclean): Use $(MAKE) and srcdir1 for objc action. + * objc/Makefile (SUBDIR_INCLUDES): Don't use ../$(srcdir). + (all): Use $(MAKE). - * genrecog.c (merge_trees): If two trees both have actions, but - one adds clobbers and one doesn't, ignore the one that does. +Fri Oct 16 04:16:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * genemit.c (gen_split): Say that we are giving the definition number - in our error message. - * genrecog.c (fatal): Likewise. - * genoutput.c (scan_operands): Likewise. + * function.c (find_fixup_replacement): Renamed from find_replacement. - * caller-save.c: Include expr.h (for gen_move_insn). - (regno_save_elim): Deleted. - (init_save_areas): Don't initialize it. - (setup_save_areas): Don't set it. - (save_call_clobbered_regs, restore_referenced_regs): Accept mode, - not spill register. - (insert_save_restore): Don't do our own register elimination and - reloading; instead set the insns we make to the desired mode. - * reload1.c (struct elim_table): New field MAX_OFFSET. - (reload): Always call init_save_areas. - Initialize max_offset each pass. - At each CALL_INSN, create a need for a spill register that will - be used by caller-save. - Pass mode for insns to save_call_clobbered_regs instead of a - spill reg number. - Call reload_as_needed if we will have to reload the caller-save - insns, even if nothing else needs reload (unlikely). - (eliminate_regs_in_insn): Record maximum offset value. - * Makefile.in (caller-save.o): Includes expr.h. + * varasm.c (output_addressed_constants): Handle NON_LVALUE_EXPR. - * reload.c (find_reloads): CALL_INSNs can't have output reloads. - * reload1.c (emit_reload_insns): Put any reloads for a CALL_INSN - in front of any immediately-preceeding USE insns. +Fri Oct 16 02:25:17 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * flow.c (life_analysis): Mark all global regs as live at the end of - the function. - (propagate_block): Each call makes all global registers live. - (mark_used_regs): A RETURN may use the stack pointer and uses all - global regs. - * cse.c (cse_insn): A CALL_INSN clobbers any global regs. - * reorg.c (mark_referenced_resources): Calls used global regs. - (mark_set_resources): CALL_INSNs clobber global regs. + * pa.md (call define_expands): If TARGET_LONG_CALLS, then force + the address of the function into a register. + * pa.h (TARGET_SWITCHES): New switch "-mlong-calls". + * pa.c (call_operand_address): Only allow registers if + TARGET_LONG_CALLS. -Fri Jan 10 17:24:06 1992 Michael Meissner (meissner at osf.org) +Fri Oct 16 00:21:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * collect2.c (whole file): Major rewrite to merge in collect3 - functionality which uses GCC to build up the constructor and - destructor tables, instead of using the assembler. Also improve - the support for cross compilers to find the tools. The old assembly - language support has been removed. + * Makefile.in (libobjc.a): Get directories right, using shell vars + thisdir1, srcdir1. Put quotes around $(GCC_CFLAGS). Use $(MAKE). - * mips-tfile.c (CODE_MASK): Move to mips.h to use with mips-tdump - also. - (MIPS_IS_STAB): Likewise. - (MIPS_MARK_STAB): Likewise. - (MIPS_UNMARK_STAB): Likewise. +Thu Oct 15 17:07:18 1992 Mike Stump (mrs@hal.gnu.ai.mit.edu) - * mips-tdump.c (various): Changes by Per Bothner to print - encapsulated stabs, and to shorten the output. + * configure, config.sub, config/elxsi.{c,h,md}, config/xm-elxsi.h, + config/x-elxsi: Add support for new 64 bit CPU, called Elxsi. - * mips.h (MIPS_VERSION): Set Meissner version # to 7. - (cmp2_op): Make cmp2_op a real function instead of just a - macro to cmp_op. - (OPTIMIZATION_OPTIONS): -O now sets flag_caller_saves and - flag_schedule_insns_after_reload. - (CC1_SPEC): Fix typo preventing -mgpopt from being set if - optimization. - (PREDICATE_CODES): Define. - (USE_COLLECT, EXTENDED_COFF, NO_UNDERSCORES): Delete, not needed in - GCC 2.00. - (ASM_INT_OP, ASM_SHORT_OP, ASM_CHAR_OP): Likewise. - (CODE_MASK): Move from mips-tfile. - (MIPS_IS_STAB): Likewise. - (MIPS_MARK_STAB): Likewise. - (MIPS_UNMARK_STAB): Likewise. +Thu Oct 15 16:55:22 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * mips.c (cmp2_op): Make this a real function, instead of a macro - pointing to cmp_op. - (volatile_buffer): New static variable to support .set volatile. - (mips_move_1word): Do .set volatile/.set novolatile around volatile - memory references. - (mips_move_2words): Likewise. + * alpha.c (alpha_builtin_saveregs): Fix bug in last change. - * mips.md (sne define_split): Fix so that it generates a gtu 0. - (all set cc define_splits): Remove reload_completed tests. - (all set cc define_insns): Don't allow 0 as operand 1. + * fold-const.c (distribute_bit_expr): Test for BIT_{AND,IOR}_EXPR. -Fri Jan 10 16:40:45 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * cse.c (cse_insn): Add missing call to apply_change_group. - * m68k.md (addsi3, addhi3, subsi3, stack adjustment peepholes): - Perform small (8 < N <= 16) constant additions and subractions to - address registers with two addqw (or subqw) instructions. +Thu Oct 15 15:09:45 1992 Michael Meissner (meissner@osf.org) -Fri Jan 10 06:54:22 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * t-mips (CCLIBFLAGS, LIBGCC2_CFLAGS): Delete, so that libgcc.a is + built with the -G 8 option, instead of -G 0, so that the linker + doesn't complain when linking in libg++.a. + * t-decstatn (CCLIBFLAGS, LIBGCC2_CFLAGS): Ditto. - * calls.c (expand_call): Check for _longjmp as well as longjmp; - clean up code a bit and merge with check for setjmp-like names. - Emit a BARRIER if this is a call to longjmp in addition to - volatile calls. +Thu Oct 15 14:30:25 1992 Jim Wilson (wilson@sphagnum.cygnus.com) -Fri Jan 10 02:25:54 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * mips-tfile.c (parse_def): Allow spaces in arguments for C++. + Correct test for null when searching for end of name. - * c-typeck.c (digest_init): Properly return error_mark_node - after invalid element in array initializer. +Thu Oct 15 11:55:51 1992 Tim Moore (moore@defmacro.cs.utah.edu) - * gcc.c (pexecute): Use `fork' in error message if don't have vfork. + * pa.c (compute_frame_size): Take an fregs_live parameter instead + of setting the static variable save_fregs. + (output_function_prologue): Initialize save_fregs to 0 and pass to + compute_frame_size. + * pa.h (INITIAL_FRAME_POINTER_OFFSET): Pass extra null parameter + to compute_frame_size. - * Makefile.in: Add .NOEXPORT. +Thu Oct 15 08:40:07 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Jan 9 13:36:25 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * alpha.h (TARGET_FPREGS): New flag. + (TARGET_SWITCHES): Remove temporary -mfp and add -msoft-float and + -mfp-regs. + (TARGET_DEFAULT): Set to -mfp-regs -mno-soft-float. + (CONDITIONAL_REGISTER_USAGE): Use TARGET_FPREGS. + (FUNCTION_VALUE, FUNCTION_ARG, LIBCALL_VALUE): Use integer registers + for FP items if -mno-fp-regs. + * alpha.c (alpha_builtin_saveregs): Store integer regs twice instead + of storing the FP regs if -mno-fp-regs. - * expr.c (expand_expr): Handle OFFSET_REF. + * fold-const.c (fold): Add missing test in case when we + distribute a NOP_EXPR into a COND_EXPR and try to pull it back + out again. - * cse.c (simplify_binary_operation): Never use associative law for - floating arithmetic. +Thu Oct 15 08:11:00 1992 Tom Wood (wood@dg-rtp.dg.com) - * fixinc.svr4: Renamed INCLUDES to INPUT. + * fold-const.c (simple_operand_p): Don't regard global or static + variables as simple. + (fold_truthop): Only require the RHS to be simple. - * i386.md (cmpstrsi recognizers): Output repe, not repz. + * m88k.h (CPP_SPEC): Add -D__m88110__ when -m88110 is in effect, + similarly for -m88100. + * m88kdgux.h (CPP_SPEC): Ditto. + * m88kluna.h (CPP_PREDEFINES): Drop -Dmc88100. + (CPP_SPEC): Reproduce the predefine -Dmc88100 when -m88100 is in + effect. Otherwise, supply -D__mc881x0__ when -m881x0 is in effect. -Thu Jan 9 18:02:34 1992 Dennis P. Glatting (dennisg at tti) +Thu Oct 15 02:09:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tree.h (CONSTRUCTOR_NAME_FORMAT): Changed name format. Old format - was recognized as destructors not constructors. - * objc-actions.c (build_module_descriptor): - Null-terminate global_object_name. + * expr.c (get_inner_reference): + If flag_volatile, treat every INDIRECT_REF as volatile. -Thu Jan 9 10:35:58 1992 Tom Wood (wood at dg-rtp.dg.com) + * collect2.c (main): If COLLECT_GCC is a relative name, use it anyway. - * sdbout.c (sdbout_syms): Don't attempt to output a LABEL_DECL. + * x-next: New file. + * configure (m68k-next-*): Use that. -Thu Jan 9 08:17:44 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Changes from NeXT: - * fold-const.c (merge_component_references): Treat constants as - unsigned, so we don't get extra sign bits where we don't want them. + * libgcc2.c [L_ctors] (__CTOR_LIST__, __DTOR_LIST__): + Initialize these default definitions if __NeXT__. -Wed Jan 8 19:12:59 1992 James Van Artsdalen (james at bigtex.cactus.org) + * gvarargs.h [__NeXT__]: Define _VA_LIST_ if _ANSI_STDARG_H_ was + defined; then define _ANSI_STDARG_H_. - * reload.c (combine_reloads): Don't use a fixed_reg as an reload - reg, even if it dies. + * gstddef.h (_ANSI_STDDEF_H): Define, along with _STDDEF_H. - * loop.c (record_giv): Fix typo extracting insn_uid. + * next.h (INCLUDE_DEFAULTS): New macro. -Wed Jan 8 15:41:10 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-method.c (index, rindex): Delete declarations. + (build_overload_value): Cast result of index. - * cpp.texi, gcc.texi: Files renamed. - * invoke.texi, extend.texi, md.texi, rtl.texi, tm.texi: New subfiles. - * Makefile.in: Corresponding changes. + * cccp.c (cplusplus_comments): New var. + (main): Set it according to options. + (rescan, handle_directive, skip_if_group, validate_else): + (skip_to_end_of_comment, macarg1, discard_comments): + Use cplusplus_comments to enable C++ comment syntax. - * fixincludes: Renamed INCLUDES to INPUT. +Wed Oct 14 11:34:58 1992 Chip Salzenberg (chip@tct.com) - * m68k.c (notice_update_cc, print_operand): Fix typos. + * libgcc2.c (__gcc_bcmp): Don't depend on signedness of `char'. - * cp-decl.c (expand_static_init): Save and restore current obstacks. +Wed Oct 14 18:52:28 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * c-decl.c (poplevel): Put labels in BLOCK_VARS of top-level block. + * sched.c (sched_note_set): Set subreg_p for anything except a + paradoxical subreg. -Wed Jan 8 12:53:48 1992 Michael Tiemann (tiemann at cygnus.com) + * configure (sparc-*-solaris2): Use xm-spc-sol2.h not xm-spcv4.h. - * cp-decl.c (expand_static_init): Switch to PERMANENT_OBSTACK during - expansion. + * reload.c (find_reloads): Don't let an operand have a numbered + constraint that makes it match itself. -Wed Jan 8 07:45:58 1992 Tom Wood (wood at dg-rtp.dg.com) +Wed Oct 14 10:38:31 1992 Tim Moore (moore@defmacro.cs.utah.edu) - * m88kv3.h (STARTFILE_SPEC): SVR3 has *crt0.o files. + * pa.md (sCC patterns): Comparison operator should have SImode, + not CCmode. + (indexed addressing mode patterns): New patterns to use indexed + addressing if possible. + * pa.c (output_and): Do handle (const_int 0) as an operand; it + seems to occur in unoptimized compilation. + * pa.h (REGNO_OK_FOR_FP_P): Logic bug. + * va-pa.h : When __GNUC__ == 1, don't include the gcc 1 varargs + file (va-hp9k8.h). Instead, the definitions are explicitly defined + here. This avoids multiple typedefs of va_list. + * xm-pa.h (HAVE_VPRINTF) Define in HPUX 8.0. - * configure (m88k-*sysv{3,4}): The files are named m88kv{3,4}. + * pa.md (mulsi): Use the hardware multiply instruction, xmpyu, if + TARGET_SNAKE. + (umulsidi3): New pattern. + (reload_insi, reload_outsi, reload_indi, reload_outdi): New + patterns. These are needed because SImode and DImode pseudoregs + may be allocated (or reloaded) in floating point registers for + multiplication. That means that their addresses, which were + legitimate for SImode and DImode, aren't valid any more. + (movsi, movhi, movqi, movdf, movdi, movsf): Pass null scratch + operand to emit_move_sequence. + (fp SImode load and store patterns): Move before main movsi + pattern. + (fp DImode load and store patterns) New patterns. + (movhi, movqi patterns): Support moves to/from fp registers. + (movdf pattern): Ensure at least one operand is a register. + * pa.c (emit_move_sequence): Take reload scratch register + argument, deal with reloads of SImode and DImode mems into + floating point registers, handle function_label_operand moves. + (secondary_reload_class): A scratch register is needed if + reloading a function_label_operand address (probably doesn't + happen) or an SImode or DImode value into/out of a floating + point register. + * pa.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, + REG_CLASS_FROM_LETTER): Define a new register class + FP_OR_SNAKE_FP_REGS, used only be reload_{in,out}{si,di}. + (HARD_REGNO_MODE_OK): Allow all integer modes in Snake floating + point registers. QImode and HImode pseudoregs may end up there + when using xmpyu. -Wed Jan 8 06:01:44 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * pa.md (pic symbolic address pattern): New pattern. + (movsi, movdi patterns): Remove some * constraints from fp registers. + (pic label address pattern): Fix typo. + (function_label_operand patterns): New patterns for loading a + label address in HPUX 8.0. + * pa.c (finalize_pic): No real initialization is necessary for pic. + (output_function_prologue): Save r19, the pic offset table + register. If profiling, save and restore the structure value + return register (r28) around the call to mcount. + (hppa_encode_label, function_label_operand): New functions. + Record if a label is a code label so it can be treated specially + in HPUX 8.0. + * pa.h (TARGET_SHARED_LIBS): New flag. Generate code that can be + linked with HPUX 8.0 shared libraries. + (TARGET_SWITCHES): New flags: -mshared-libs and -mno-shared-libs. + (PIC_OFFSET_TABLE_REGNUM): This is really r19. The preliminary + docs from HP were wrong. + (ASM_DECLARE_FUNCTION_NAME): Specify "ENTRY" param in .EXPORT + directive. + (ENCODE_SECTION_INFO): Encode function labels. + (ASM_OUTPUT_LABELREF): Deal with function labels. + (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Don't do anything for + now; their only use (saving stuff during profiling) interacts in a + wierd way with required assembler directives at the start of a + function. Instead, do the save and restore in the function + prologue. + (hppa_encode_label): Declare. + * pa-hpux.h, pa-ghpux.h (TARGET_DEFAULT): Link against shared + libraries. + (LINK_SPEC): Don't link against shared libraries if debugging or + profiling. + * pa1-hpux.h, pa1-ghpux,h (TARGET_DEFAULT): Link against shared + libraries. - * romp.md (mftbi): Allow memory in the contraints since there can't - be an input reload on an insn that uses cc0. +Wed Oct 14 10:17:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (FIXED_BASE_PLUS_P): Include virtual_incoming_args_rtx. - (NONZERO_BASE_PLUS_P): New macro. - (find_comparison, simplify_relational_operation_args): Use - NONZERO_BASE_PLUS_P instead of FIXED_BASE_PLUS_P when appropriate. + * Makefile.in (gcc.xtar): Copy the objc subdir. + (mostlyclean): Run the mostlyclean target in the objc subdir. + (objc-runtime, libobjc.a, sublibobjc.a): New targets. + (objc, objective-c): Dep on objc-runtime. - * m68k.md (peepholes): Don't change around stack adjusts and pushes - when we are pushing something whose address involves sp. + * objc/*: New files. - * cse.c (simplify_unary_operation): Check for operations on - integers by looking at mode of OP, not output mode, to avoid - confusion with FIX operations whose result is an integer. +Wed Oct 14 07:17:19 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * rtl.h ([df]const[012]_rtx): Deleted. - (const_tiny_rtx): New declaration. - (CONST0_RTX): Use const_tiny_rtx instead of {d,f,}const0_rtx. - (CONST1_RTX, CONST2_RTX): New macros. - * emit-rtl.c ([df]const[012]_rtx): Deleted. - (const_tiny_rtx): New definition. - (init_emit_once): Initialize const_tiny_rtx instead of old vars. - * cse.c (simpify_binary_operation): Use CONST[01]_RTX. - * varasm.c (immed_real_const_1): Likewise. - * combine.c (subst): Likewise. - * reg-stack.c (record_reg_life, stack_reg_life_analysis): Likewise. - * convex.md, i860.md, m88k.c, spur.md, vax.h, ns32k.md: Likewise. + * alpha.md (smax, smin): Fix typo in output strings. -Tue Jan 7 22:11:17 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * a29k.c (const_16_operand, const_24_operand): Fix typo in declaration + of MODE. + (gpc_reg_or_immediate_operand, and_operand, add_operand): Likwise. - * x-i386isc (ENQUIRE_LDFLAGS): New defn: add -posix. +Wed Oct 14 00:12:16 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * protoize.c (_POSIX_SOURCE): Define only if POSIX. + * pa.h (RTX_COST): Fix spacing typo. - * m68k.h (FPA_REG_P): Always define this somehow. +Tue Oct 13 21:51:05 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * c-decl.c (c_decode_option): Handle -Wchar-subscripts. - * c-typeck.c (build_array_ref): Do the real work. + * a29k.md (call, call_value): Don't use call_operand, since + checking for recursive calls at this point is not safe. -Tue Jan 7 21:15:54 1992 Michael Meissner (meissner at osf.org) +Tue Oct 13 18:52:17 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * mips.md (branch_zero_false): Use correct mode (CC_0) on - match_operator. + * cp-type2.c (my_friendly_abort): Tell them to write to bug-g++. -Tue Jan 7 14:24:45 1992 James Van Artsdalen (james at bigtex.cactus.org) +Tue Oct 13 18:16:12 1992 Chris Smith (csmith@convex.com) - * reg-stack.c (replace_reg): get mode class from a mode, not a reg. + * convex.h (P_tmpdir): define to use /tmp. + (RETURN_POPS_ARGS): correct definition to return size. + (ASM_IDENTIFY_GCC): output something between gcc2_compiled and + first function to keep gcc2_compiled out of assembler stabs. -Tue Jan 7 14:16:18 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * convex.md (adddi3, ordi3, xordi3): check sign of CONST_INT + operands before using as immediates; these insns are word only. + (ashrdi3): don't use negative shift counts. - * reg-stack.c (emit_pop_insn): Fix typo FPmode_reg. + * convex*.h (CPP_SPEC): define __NO_INLINE_STDLIB - * protoize.c (longjmp): Don't declare it. + * xm-convex.h: remove temporary workaround from OS 8.0. -Tue Jan 7 09:47:47 1992 Michael Tiemann (tiemann at cygnus.com) +Tue Oct 13 14:10:15 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * cp-lex.c (real_yylex): From John Hassey, allocate space for the - terminating null on wide character literals. + * cp-lex.c (check_newline): Verify that main_input_filename is + valid before using it. -Tue Jan 7 07:41:42 1992 Tom Wood (wood at dg-rtp.dg.com) +Tue Oct 13 19:08:54 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m88kv3.h (LIB_SPEC): Add -lg. + * a29k.c: Now includes reload.h. + (spec_reg_operand): Validate mode and know that some regs support + MODE_PARTIAL_INT and some MODE_INT. + (call_operand, reload_memory_operand, a29k_get_reloaded_address) + New functions. + (in_operand): Allow constants with MODE_PARTIAL_INT. + (out_operand): Allow special registers with any mode. + Any MEM a word or wider is valid. + (extend_operator): Deleted. + (secondary_reload_class): A pseudo is the same as memory; we need + BP_REGS for multi-word memory or for bytes and halfword if -mndw. + (print_operand): Delete %X; add %m. + (print_operand, case 'F'): Check for SYMBOL_REF. + * a29k.h (PROMOTE_MODE, ADJUST_COST): New macros. + (CALL_USED_REGISTERS): LR0 is call-used. + (HARD_REGNO_MODE_OK): Handle MODE_PARTIAL_INT and the special + registers that can only hold those modes. + (MODES_TIEABLE_P): Clean up and handle MODE_PARTIAL_INT modes. + (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add new + classes LR0_REGS, FC_REGS, and CR_REGS. + (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise. + (PREDICATE_CODES): Update for new and deleted predicates. + * a29k.md: Use GEN_INT when appropriate. + (define_attr type): New types for SQRT. + (call patterns): Use SCRATCH for LR0. + Use new predicate call_operand so that some integers can be + used as addresses; fix CALLI so it doesn't accept constant. + (EXBYTE, EXTHW, INBYTE, INHW): Use ZERO_EXTEND instead of AND + when combine will make it. + Use PSImode for BP value and don't reference BP explicitly. + Clean up define_expands for these operations. + (rotlsi3): Use PSImode pseudo for FC. + (sign_extend): Sign extension insns clobber BP. + ({load,store}_multiple): Use PSImode pseudo for CR. + (MTSR): Add pattern for TRUNCATE from SImode to PSImode. + (sqrtsf2, sqrtdf2, movpsi): New patterns. + (load/store bytes/halfword): Clean up to accept temporaries as + input and use PSImode when required. + (movhi, movqi): Allocate temporaries here. + (reload_inqi, reload_outqi, reload_inhi, reload_outhi): New + patterns. + (movdf, movdi, movti): Use SCRATCH for BP register. + (reload_{in,out}{df,di,ti}): New patterns. -Tue Jan 7 06:29:30 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Oct 13 16:52:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * stor-layout.c (layout_type): Don't over-align a structure - when strict alignment is not required. + * fixinc.svr4 (sys/stream.h, sys/strsubr.h): Delete spurious `extern' + in various structure definitions. - * rs6000.h (CALL_USED_REGISTERS): r31 should not be marked call-used. + * rtlanal.c (single_set): Fix typo in REG_UNUSED check. - * rs6000.md (add-and-compare): Fix duplicate operand number. + * cse.c (simplify_binary_operation): Insure that folded >> extends + the sign even if the host bootstrap compiler doesn't. - * a29k.md (inbyte, inhw): Correct duplicate operand number. + * final.c (output_asm_insn): Advance over the = when processing %=. - * fold-const.c (fold, case MULT_EXPR): Simplify (a * (1 << b)). - * combine.c (subst, case MULT): Likewise. - (simplify_shift_const, shift cases): Similarly, associate A << B << C. + * fixincludes (stdio.h): Fix va_list when preceeded by a *. - * genoutput.c (seen): New array. - (scan_operands): Give error if an operand number was specified - twice. Include pattern number in error message. - (gen_insn, gen_expand, gen_split, gen_peephole): Initialize `seen'. - (gen_split, gen_peephole): Add initializations for arrays that - are copied. +Tue Oct 13 14:52:57 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * optabs.c (expand_unop): Complete recent change; one TARGET was - not changed to TEMP. + * spc-sol2.h (STARTFILE_SPEC): Add crtbegin.o. + (LIB_SPEC): Add crtend.o for running ctors/dtors. + * t-sol2 (EXTRA_PARTS): Add crtbegin.o and crtend.o for C++. + (FIXINCLUDES): Deleted. + * configure (sparc-*-solaris2*): Set fixincludes here. - * expmed.c (expand_mult): Always try multiplication by value and - by negated value. Fix bug where we don't include the cost of the negate - when seeing which way is better. Write proper value in REG_EQUAL - note. +Tue Oct 13 20:15:45 1992 Eric Youngdale (youngdale@v6550d.nrl.navy.mil) - * optabs.c (extendtab): Replacement for {zero,sign}_extend_codes. - (can_extend_p): Use new table and return type is not enum insn_code. - (gen_extend_insn): Deleted; not used. - (init_extends): Make like init_flottab: use new table and initialize - unused entries to CODE_FOR_nothing, not zero. - * expr.c (convert_move): can_extend_p fails if it returns - CODE_FOR_nothing, not zero. - * expr.h (can_extend_p): Add definition. + * make-cc1.com: Simplify extraction of YYEMPTY from cp-parse.c. + Generate c-parse.y, objc-parse.y from c-parse.in if required. + Pat Rankin did some of this. - * expr.h: Add "extern" to function definitions. +Tue Oct 13 14:06:45 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Mon Jan 6 10:12:34 1992 Leonard Norrgard (vinsci at nic.funet.fi) + * sparc.md (in_branch_delay): Allow fpload and fpstore. - * m68k.c (SUPPORT_SUN_FPA): Conditionalize references to the - optional Sun 3 Floating Point Accelerator with SUPPORT_SUN_FPA. - * m68k.h (SUPPORT_SUN_FPA): Likewise. + * collect2.c (main): Only install a signal handler for signals + that already have handlers. + (fork_execute): Don't ignore signals before calling do_wait. - * m68k.c (notice_update_cc): New function. - * m68k.h (NOTICE_UPDATE_CC): Just call notice_update_cc. + * i960.md: Change 'f' constraint for dest to '*f' if it is not the + only alternative. Add '*f' dest constraints to all patterns where + it is valid but was previously missing. - * sun3.h (SUPPORT_SUN_FPA): New define. + * i960.h (OVERRIDE_OPTIONS): Enable function inlining. + * i960.c (g14_save_reg): Delete variable. + (i960_output_call_insn): Add two new parameters arg_pointer and + scratch_reg. Save/set/restore g14 if necessary. + (i960_expand_call): Delete function. + * i960.md (call, call_value): No longer call i960_expand_call, + instead call call_internal/call_value_internal pattern. + (call_internal, call_value_internal): Rewrite patterns to pass new + args to i960_output_call_insn. -Mon Jan 6 16:42:43 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * sparc.md (movstrsi+1): Add `+' to constraints for clobbered inputs. - * varasm.c (assemble_global, assemble_label): New functions. - * objc-actions.c (finish_objc): Call them to define and globalize. - Use output_constant to reference a class. + * i960.c (i960_output_call_insn): Emit bx instead of b, callx + instead of callj. - * Makefile.in (install-limits-h): New target. - (install-headers): Depend on install-limits-h. - (USER_H): Deleted LIMITS_H. - (INSTALLED_H): Added limits.h. - (mostlyclean): Remove tmp-limits.h. - * limitx.h: New file. + * sparc.c (sparc_frw_output_function_prologue): Frame pointer base + must be same as for regular sparc code. - * x-isc: File deleted. +Tue Oct 13 06:02:03 1992 Tom Wood (wood@dg-rtp.dg.com) - * objc-actions.c (build_module_descriptor): Init global_object_name. + * loop.c (loop_optimize): Verify that max_uid_for_loop is still + larger than the uid of any insn. Increase the number of exit + blocks from 4 to 32 per loop. + (find_and_verify_loops): Stop trying to relocate exit blocks when + allocating a new label would exceed max_uid_for_loop. - * Makefile.in (collect2): Depend on version.o. + * combine.c (subst): Don't change a conditional branch into a + conditional move. - * protoize.c (PATH_MAX): Definition deleted. Just test it - to see if param.h should be included. + * m88k.md (ext shift patterns): No longer needed. - * cse.c (simplify_binary_operation, case MULT): Make a copy - of the operand when converting 2.0 * X to X+X. + * m88k.c (mostly_false_jump): Recognize a sequence properly. + +Mon Oct 12 22:31:37 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * reload.c (find_reloads): Refine when we set force_reload and - better document the cases. + * pa.h (LEGITIMIZE_ADDRESS): Fix typo. -Mon Jan 6 08:22:19 1992 James Van Artsdalen (james at bigtex.cactus.org) +Tue Oct 13 00:14:09 1992 H Lu (hlu@eecs.wsu.edu) - * i386.c (output_float_compare): Output only single-pop compare - if both operands are the FP top of stack reg. - When comparing FP top of stack with itself, print `%st(0)' as the - reg name, not `%st'. + * Makefile.in (install-common): Put - on cmd that handles protoize. + (gcc.o, cccp.o): Define TOOLDIR for the compilation. + (all HOST_PREFIX_1 targets): Fix typos. -Mon Jan 6 12:01:51 1992 Tiggr (rcpieter at mole.gnu.ai.mit.edu) + * x-linux (cpp.a, linux.a, cc1.a, cc1plus.a, gcc.a): Targets deleted. + (LD, ALIBS, STANDARD_STARTFILE_PREFIX, GPLUSPLUS_INCLUDE_DIR): + Vars deleted. - * arm.md (mulsi3): Fixed contraints. + * i386linux.h: Delete NO_JUMPTABLE conditional and contents. + (GPLUSPLUS_INCLUDE_DIR): Defined. + (STARTFILE_SPEC): Changed. -Mon Jan 6 08:21:46 1992 Tom Wood (wood at dg-rtp.dg.com) + * gen*.c: Include hconfig.h, not config.h. - * m88k-move.sh: Renamed from m88k-movstr.sh. Rename the generated - files move*.asm from movstr*.asm to be SVR3-legit. - * t-m88k, t-m88kluna, t-m88kv4: Use the new names. +Mon Oct 12 16:25:22 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-aux-info.c, dbxout.c: Include errno.h as in protoize.c. + * configure.bat, vmsconfig.com: Make hconfig.h. - * Makefile.in (BISONFLAGS): Don't use -v since *.output is big. - (cp-parse.c): Do use -d to create cp-parse.h. - (cp-parse.o): Don't define PARSE_OUTPUT. - * x-mips, x-m88kdgux (BISONFLAGS): No -v. + * vax.h (PRINT_OPERAND): Detect `double' constants by DFmode, + since VOIDmode means an integer. -Mon Jan 6 07:54:55 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips.h (DEBUG_REGISTER_NAMES): New macro definition. + * print-rtl.c (reg_names): + Make it static. Use DEBUG_REGISTER_NAMES if that's defined. + * regclass.c (reg_names): Reinstate the definition here. - * genpeep.c (match_rtx): Loop over vectors (e.g., PARALLEL) in the - natural order so we see an operand before we see a MATCH_DUP referring - to it. + * fixinc.svr4: Delete excess fi in fixing stat.h. - * genrecog.c (write_tree_1): Simplify code that writes braces and - avoid writing them unnecessarily. - Don't write dead code when last test was unconditional. +Mon Oct 12 08:10:37 1992 James Van Artsdalen (jrv@goldman.gnu.ai.mit.edu) - * optabs.c (expand_binop, expand_twoval_binop, expand_unop): - Standardize loop for wider mode. - (emit_cmp_insn, emit_float_lib_cmp): Likewise. - (expand_binop): Correct how extensions are done: use convert_to_mode, - don't use SUBREG for non-integer operations, and remove test - involving HOST_BITS_PER_INT. - (expand_unop): Similar changes; make code closer to expand_binop. - Handle failure of recursive call when expanding. Fix incorrect use - of TEMP when widening. Use SUBREG for NEG and NOT. + * Makefile.in (install-fixincludes): Only delete an existing + syslimits.h if we install limits.h over it. - * reload.c (find_reloads_address_part): New function. - (find_reloads_address): Call it instead of push_reload when we are - reloading a PLUS or a constant. + * i386.h (PRINT_REG): Undo Oct 11 change. + (DEBUG_PRINT_REG): New macro, used from print-rtl.c. -Sun Jan 5 18:34:15 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * conditions.h (CC_NOT_SIGNED): New macro. + * final.c (alter_cond): If CC_NOT_SIGNED, convert signed + conditions to unsigned. - * make-cc1.com: Change file names from cp-tab.* to cp-parse.*. + * i386.md (cmpstrM patterns): Compare strings of unsigned chars, + not strings of signed chars. -Sun Jan 5 18:06:11 1992 Michael Tiemann (tiemann at cygnus.com) +Mon Oct 12 06:31:13 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-decl.c (grokdeclarator): Correctly grok REFERENCE_TYPE - parameters when TYPE_REFERENCE_TO is automagically converted. + * combine.c (try_combine): Save DEST of NI2PAT before calling + recog_for_combine, which might make it a PARALLEL. -Sun Jan 5 05:19:19 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * emit-rtl.c (gen_lowpart_common): Allow MODE_PARTIAL_INT where + MODE_INT is allowed. - * tree.h (CONSTRUCTOR_NAME_FORMAT): New macro. - * objc-actions.c (build_module_descriptor): Make constructor name - from name of file or of a global that it defines. - Return constructor name. - (finish_objc): Use name returned as name to call. + * combine.c (try_combine): Properly call single_set when validating + the result of a define_split. - * protoize.c (GUESSPATHLEN): New macro. - (main): Use that for initial buffer size for getcwd. - * dbxout.c (getwd, getcwd, GUESSPATHLEN): Define as in protoize.c. - (dbxout_init): Call getcwd in loop, as in protoize.c. - * c-aux-info.c (getwd, getcwd, GUESSPATHLEN): Define as in protoize.c. - (gen_aux_info_record): Call getcwd in loop. - * i386v.h, i386vgas.h (MAXPATHLEN): Don't define. +Mon Oct 12 00:24:29 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * svr3.h (LINK_SPEC): Don't pass -K. + * calls.c (calls_alloca): Don't look within DECL_INITIAL if it's 0. - * reload.c (find_reloads): Do record in non_reloaded_operands if no -O. + * varasm.c (simplify_subtraction): New function. + * rtl.h (simplify_subtraction): Declared. + * final.c (output_addr_const): Call it. - * m68k.c (output_function_prologue, output_function_epilogue): - Add braces and adjust conditionals to fix balance and indentation. + * print-rtl.c (DEBUG_PRINT_REG): Renamed from PRINT_REG. + (print_rtx): Use DEBUG_PRINT_REG. - * objc-actions.c (build_module_descriptor): Mark __objc_file_init used. +Sun Oct 11 16:27:53 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu.edu) -Sat Jan 4 13:27:40 1992 James Van Artsdalen (james at bigtex.cactus.org) + * genrecog.c (merge_trees): When splitting, remember to clear DUPNO + in addition to the other things we can test. - * protoize.c: unprotoize getcwd & fork declarations. - (edit_fn_declaration): use "VOLATILE", not "volatile". + * recog.c (general_operand, immediate_operand, const_double_operand): + Allow CONST_INT with MODE_PARTIAL_INT. + (nonmemory_operand): Likewise. -Sat Jan 4 20:19:41 1992 Michael Meissner (meissner at osf.org) +Sun Oct 11 07:53:39 1992 James Van Artsdalen (james at bigtex.cactus.org) - * mips.h (set_volatile): Add new global variable reference. + * xm-i38v4.h,xm-aix386.h (USE_C_ALLOCA): New macro. Define if not + using GNU C's builtin alloca. - * mips.c (set_volatile): New global variable to keep track of the - number of .set volatile's done. At present, no code actually turns - this on. - (mips_move_1word): Use %. instead of putting const0_rtx into an - unused operator and using %z to get to $0, which is hardwired to 0. - (mips_move_2words): Likewise. - (override_options): Allow %., %{, and %} punctuation. - (print_operands): Add support for %. to get the current name of - register 0, %{ to turn on .set volatile, and %} to turn on .set - novolatile. - (function_epilogue): Give an error if .set volatile was left on in - the epilogue. - (mips_asm_file_start): Don't emit .set nobopt unless we are filling - branch delay slots. + * i386.c (notice_update_cc): Only set CC_IN_80387 for float compares. - * mips.md (set reg on comparison define_splits): Don't allow the - scheduler to split any set of a comparision insns, to work around a - bug in sched.c. + * i386.h (PRINT_REG): Make register name arrays static within this + macro. -Sat Jan 4 23:01:41 1992 Jeffrey A Law (law at planet.super.org) +Sun Oct 11 01:41:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68k.c (output_function_prolog): Decrement (instead of - increment) num_saved_regs when a frame pointer is needed. - (the link/unlk will restore the frame pointer register) + * jump.c (jump_optimize): Don't optimize jumps to store-flag insns + when BLKmode values are being compared. -Sat Jan 4 11:11:24 1992 Dennis P. Glatting (dennisg at tti) +Sat Oct 10 16:51:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * next.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef before defining. + * print-rtl.c (print_rtx): Print hard reg name as well as number. + (PRINT_REG): New macro with default definition. + (reg_name): Moved here. + * regclass.c (reg_name): Deleted. -Sat Jan 4 07:40:25 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Oct 10 02:27:14 1992 James Van Artsdalen (james at bigtex.cactus.org) - * expr.c (convert_to_mode): Correctly zero-extend a constant into - a mode whose size is twice the host int size. + * i386sco.h (TARGET_DEFAULT): New macro - don't make TARGET_IEEE_FP + default for SCO. - * machmode.h (enum mode_class): Add MAX_MODE_CLASS. - (GET_CLASS_NARROWEST_MODE): New macro. - (byte_mode, word_mode): Add declarations. - * caller-save.c (choose_hard_reg_mode): Use GET_CLASS_NARROWEST_MODE. - * combine.c (make_extraction): Don't use explicit QImode and SImode. - * cse.c (simplify_unary_operation): Integer CONST_DOUBLEs have - VOIDmode, not DImode. - (simplify_binary_operation): Remove explicit DFmode reference. - * expmed.c (init_expmed): Don't make our own copy of word_mode. - (store_bit_field, extract_bit_field): Remove explicit - QImode reference; don't recompute word_mode. - (store_fixed_bit_field, {store,extract}_split_bit_field): Don't - recompute word_mode. - (emit_store_flag): Likewise. - (extract_fixed_bit_field): Replace explicit mode references with a - loop on modes; don't recompute word_mode. - * expr.c (convert_mode, move_block_{to,from}_reg, use_regs): Don't - recompute word_mode. - (emit_push_insn, do_jump_by_parts*): Likewise. - (push_block): Remove explicit QImode reference. - (get_inner_reference): Use mode_for_size. - * emit-rtl.c (restore_reg_data): Make unused regs word_mode. - (operand_subword): Don't recompute word_mode. - * fold-const.c (optimize_bit_field_compare): Likewise. - (merge_component_references): Likewise. - * flow.c (mark_set_1, mark_used_regs): Likewise. - * loop.c (combine_movables): Use GET_CLASS_NARROWEST_MODE. - * optabs.c (expand_binop): Replace SImode references in multi-word - multiply with the mode used for each subpart. - (expand_binop, expand_unop): Don't recompute word_mode. - * reg-stack.c (reg_to_stack): Use GET_CLASS_NARROWEST_MODE. - * reload.c (find_equiv_reg): Check for MODE_FLOAT, not SFmode/ DFmode. - * rtl.c (class_narrowest_mode, byte_mode, word_mode): Define. - (init_rtl): Initialize them. - * sched.c (attach_deaths): Don't recompute word_mode. - * stor-layout.c (mode_for_size): Use GET_CLASS_NARROWEST_MODE. - (get_best_mode): Likewise. - Don't recompute word_mode. - * unroll.c (unroll_loop): Replace default of SImode with word_mode. +Sat Oct 10 04:52:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * calls.c (calls_alloca): Don't recurse on BLOCK_SUPERCONTEXT. + * function.h (struct function): New fields const_rtx_hash_table, + const_rtx_sym_hash_table, first_pool, last_pool, pool_offset. + * function.c (pop_function_context, push_function_context): + Call {save,restore}_varasm_status. + * varasm.c: Include function.h. + (restore_varasm_status, save_varasm_status): New fns. + (init_const_rtx_hash_table): Allocate the hash tables in obstack. + (force_const_mem): Don't use CONST_DOUBLE_MEM for nested fns. + (clear_const_double_mem): Do nothing for nested fns. + * Makefile.in (varasm.o): Dep on function.h. -Sat Jan 4 03:42:09 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Oct 9 18:16:18 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * protoize.c (pointer_type): Use char * if non-ANSI. - (const_pointer_type): Likewise. - (malloc, realloc): Declare to return pointer_type. - (setjmp): Don't declare, to avoid trouble with macro defns. - (const): If not ANSI, define as empty macro. + * cp-decl.c (duplicate_decls): Only find out if olddecl is a + friend after we know it's not a TREE_LIST. -Sat Jan 4 00:59:53 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Fri Oct 9 18:10:19 1992 Jim Wilson (wilson@geech.gnu.ai.mit.edu) - * sparc.c (legitimize_pic_address): When converting a symbol_ref, - use an extra temp reg when -fPIC, and add a REG_EQUAL note to the - insn referencing the global offset table. This allows loop to - optimize these PIC sequences. + * sparc.c (sparc_type_code): Return reasonable result for COMPLEX_TYPE. -Fri Jan 3 20:29:57 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Oct 9 14:33:26 1992 Tom Wood (wood@dg-rtp.dg.com) - * i386.md (return): Always output return insns. + * reorg.c (start_of_epilogue_needs): New variable. + (mark_target_live_regs): Add in start_of_epilogue_needs when + NOTE_INSN_EPILOGUE_BEG is scanned. + (dbr_schedule): Compute start_of_epilogue_needs and update + end_of_function_needs to include sets by all instructions + following NOTE_INSN_EPILOGUE_BEG. - * i386.h (FUNCTION_PROLOGUE): If the last nonnote insn in a function - is a BARRIER, don't output a function epilogue. + * m88k.md (return): Always available once reload has completed. + (epilogue): Use a return insn rather than an indirect jump. -Fri Jan 3 12:43:09 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Oct 9 12:36:54 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * t-decrose, t-decstatn, t-encrose, t-i386rose, t-mips (ALL): - Use libgcc.a, not libgcc. + * spc-sol2.h (DBX_DEBUGGING_INFO): Defined. - * protoize.c (STRINGIFY): Provide non-ANSI alternative definition. + * function.c (aggregate_value_p): Return 1 if regs we would use + are not all call-clobbered. - * c-decl.c (get_parm_info): Keep non-parms in the parm list. + * stmt.c (POPSTACK): Pop discarded elts off all the stacks as we go. - * stmt.c (cost_table): Now short. - (estimate_case_costs): Handle that. +Fri Oct 9 07:30:14 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (float.h, *protoize.1, gcc.xtar.Z): - Make temp files, then rename. - (clean): Delete those temp files. + * reorg.c (mark_target_live_regs): Fix bug in last change. - * Makefile.in (c-parse.c): Don't use -d, since cp-parse.output is big. + * combine.c (subst, case SUBREG): Don't make a new REG for + stack, frame, or arg pointer. + * emit-rtl.c (gen_lowpart_common, gen_highpart, operand_subword): + Likewise. -Fri Jan 3 10:32:31 1992 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) + * local-alloc.c (optimize_reg_copy_1): Tighten up code to properly + handle the case when SRC or DEST is a multi-word hard register + and only some parts of the register are set or used. Also, avoid + updating register status for DEST if we can't do the optimization. - * Makefile.in (cp-parse.c): Add missing -o flag. + * jump.c (jump_optimize): Only use a REG as a target. -Fri Jan 3 08:21:04 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * alpha.c (alpha_builtin_saveregs): Don't use value of NREGS greater + than 6 when computing ARGSIZE. - * reg-stack.c: Complete last change (renaming DFmode_reg). + * va-alpha.h (va_arg): Put parens around all uses of __VA arg. - * expmed.c (init_expmed): Pass dummy pointer to number of clobbers to - recog so it can let us see patterns that need added clobbers. +Thu Oct 8 18:45:00 1992 Arne H. Juul (arnej@lise.unit.no) -Fri Jan 3 07:54:32 1992 Tom Wood (wood at dg-rtp.dg.com) + * Makefile.in (install-common-headers): added missing 'then' - * c-decl.c (implicitly_declare): Record whether this is an implicit - declaration before setting IDENTIFIER_IMPLICIT_DECL. +Thu Oct 8 15:52:22 1992 Michael Meissner (meissner@osf.org) -Thu Jan 2 21:17:12 1992 Michael Meissner (meissner at osf.org) + * mips.h (SELECT_RTX_SECTION): Rename macro from obsolete name + SELECT_SECTION_MODE. - * mips.c (compute_frame_size): Don't count FP registers twice. + * i386rose.h (whole file): Remove #ifdef before #undef of macros. + (LEGITIMATE_CONSTANT_P): Define, so that when half-pic is on, + half-pic addresses are not considered legitimate. + (SELECT_RTX_SECTION): If putting a half-pic pointer that is + loaded, put the pointer into the data section, rather than the + readonly_data_section. + (SELECT_SECTION): Define. + (ASM_OUTPUT_DOUBLE): If not cross compiling, emit double as two + longs, otherwise emit .double directive. + (ASM_OUTPUT_FLOAT): If not cross compiling, emit float as long, + otherwise emit .float directive. + (perform_fixdfsi): Copy arg to memory variable. + (SIZE_TYPE): Define to be long unsigned int. + (PTRDIFF_TYPE): Define to be int. + (WCHAR_TYPE)L: Define to be unsigned int. -Thu Jan 2 14:59:55 1992 Michael Tiemann (tiemann at hal) + * i386.md (movsi): Remove obsolete half-pic code. + (call insns): For half-pic insns, force address into register. - * cp-lex.h: Renamed from cp-parse.h. Now cp-parse.h is the file - created by bison from cp-parse.y. - * Makefile.in: reflect this naming change. +Thu Oct 8 14:22:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Jan 2 12:37:32 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (install-common-headers): Fix dir in chmods for assert.h. - * objc-actions.c (build_obj_method_call): Typo in NEXT case. + * va-i860.h (__savereg, va_arg): Put uses of __va in parens. - * next.h (HAVE_ATEXIT): Defined. + * vax.h (PRINT_OPERAND): Define new code, D. + * vax.md (movdi): Use D code for operand 1. - * c-decl.c (duplicate_decls): - No error if override decl that has DECL_BUILT_IN_NONANSI. +Thu Oct 8 13:23:25 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) - * Makefile.in (c-parse.c): Don't use -o, since cp-parse.output is big. + * pa.md (fp_alu function unit, case fpcc): Fpcc instructions use + the fpalu unit. In the most common case their result will be used + in a ftest instruction. Minimum distance between the fcmp and + ftest instruction is 4. - * Makefile.in (protoize, PROTOIZE): Delee these 2 new targets; - `protoize' was redundant. +Thu Oct 8 06:41:15 1992 Tom Wood (wood@dg-rtp.dg.com) - * c-typeck.c (build_function_call): If the fn is volatile, - make a pointer-to-volatile-function type pointer. - * calls.c (expand_call): Handle calls to such pointers as volatile. + * function.c (assign_parms): Provide a safe value for + DECL_INCOMING_RTL in case of syntax errors. - * expmed.c (init_expmed): Pass all 3 args to `recog'. + * dwarfout.c (dwarfout_init, dwarfout_finish): Don't output labels + or .debug_aranges entries for .data1 and .rodata1 as these + sections aren't currently used. - * varasm.c (output_constant): For REAL_TYPE, mode_for_size arg is bits. +Thu Oct 8 04:44:17 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * sparc.md (storing SF into mem at symb addr): Fix typos. + * reorg.c (mark_target_live_regs): Look at USE insns made by + update_block when scanning forward past target. + (mark_target_live_regs, dbr_schedule): Use GET_RTX_CLASS. - * protoize.c (my_access, my_stat, my_execvp, my_link, my_unlink): - (my_open, my_chmod): Macros that run access, stat,... with casts. - Renamed from former POSIX-only macros and made unconditional. - All calls to these functions also renamed. + * cse.c (PATHLENGH): Change from 20 to 10 to speed up compilations. - * m68k.h (LEGITIMATE_PIC_OPERAND_P): Undo change below, - thus making the behavior really change to accept all CONST_DOUBLE. +Thu Oct 8 03:07:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * libgcc1.c, libgcc2.c: Renamed from gnulib1.c, gnulib2.c. - * gcc.c (link_command_spec): Link with libgcc.a. - * Makefile.in (libgcc): Rename targets and variables from gnulib. - * *.h, t-*, x-*: Rename refs to those symbols and files. - * expr.c (LIBGCC_NEEDS_DOUBLE): Renamed from GNULIB_... + * fold-const.c (invert_truthvalue): Never alter ARG. - * m68k.c (symbolic_operand): Reject all CONST_DOUBLE. - * m68k.h (SELECT_RTX_SECTION): Use LEGITIMATE_PIC_OPERAND_P. - (LEGITIMATE_PIC_OPERAND_P): Reject the CONST_DOUBLEs - that symbolic_operand used to accept. + * Makefile.in (TAGS): Exclude =*.[chy] from tags table. -Thu Jan 2 21:06:13 1992 James Van Artsdalen (james at bigtex.cactus.org) + * c-lex.c (yylex): For floats, use REAL_VALUES_LESS to distinguish + underflow from overflow. Delete special case for 0.0. - * protoize.c (is_id_char,free_def_dec,check_aux_info): - Don't declare them `inline'. - (save_def_or_dec,munge_compile_params,find_extern_def,check_source, - scan_for_missed_items): Use alloca instead of variable length arrays. +Wed Oct 7 16:25:19 1992 Tom Wood (wood@dg-rtp.dg.com) - * Makefile.in (protoize,unprotoize): Get $(LIBS) for alloca. + * dwarfout.c (dwarfout_{begin,end}_function): New functions. + (body_{begin,end}_attribute): New functions. + (dwarf_attr_name): Print AT_body_begin and AT_body_end. + (output_{local,global}_subroutine_die): Output the new attributes. + * dwarf.h (enum dwarf_attribute): Add At_body_begin and AT_body_end. + * final.c (final_scan_insn): Call dwarfout_begin_function. + (final_end_function): Call dwarfout_end_function. -Thu Jan 2 21:40:52 1992 Jeffrey A Law (law at b115.super.org) + * m88k.h (FASTEST_ALIGNMENT): Define as 8 for -m88110 otherwise 4. + (CONSTANT_ALIGNMENT, DATA_ALIGNMENT): Base on FASTEST_ALIGNMENT. + * m88k.md (movstrsi): No predicate is needed for the source or + destination. + * m88k.c (best_from_align): Add a target processor dimension for + -m88000, -m88110, and -m88100. + (expand_block_move): Choose method and limits based on -m88xxx option. + (block_move_no_loop): Extend to allow DImode. + * m88k-move.sh: Add the modules moveDI96x and moveDI41x through + moveDI47x. + * t-m88k, t-m88kluna, t-m88ksvr4: New modules added to MOVE_ASM. - * sparc.h (OPTIMIZATION_OPTIONS): Enable caller-saves for -O2 - and higher optimization levels. + * m88k.c (output_call): Use different syntax for GAS. -Thu Jan 2 06:46:56 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * m88k.h (READONLY_DATA_SECTION): Don't override svr4.h + (ASM_OUTPUT_CASE_LABEL): For svr4, use .rodata. - * final.c (final_scan_insn): Compare debug_info_level with entries in - its enum, not with integers. +Wed Oct 7 15:47:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * reg-stack.c ({SF,DF}mode_reg): Deleted. - (FP_mode_reg): New array, indexed by register and by mode. - (reg_to_stack): Replace initialization of old vars with initialization - of FP_mode_reg. - (replace_reg): Use new array. + * configure (i486-ncr-sysv4): Use i386v4.h. + (i386-*-sysv4, i386-*-linux, i386-*-sysv): Handle 486 too. + (i486-*-sysv4, i486-*-linux): Deleted. + * i486v4.h, i486linux.h: Files deleted. - * romp.c, romp.h, romp.md: Rename symbolic_operand to - romp_symbolic_operand. +Wed Oct 7 12:40:00 PDT 1992 Ron Guilmette (rfg at netcom.com) - * emit-rtl.c (init_emit_once): Create virtual registers before the - structure value regsisters, since the latter might use the former. + * populate (progname): Just the basename of $0 please. + (target_dir): Use abs_target_dir and rel_target_dir for clarity. + (source_dir): Use abs_source_dir and rel_source_dir for clarity. + (*): List input and output dirs on startup. + (*): Don't be so verbose; Don't echo names of output dirs/files as + they are created. - * varasm.c (output_constant): Fix typo: missing arg to expand_expr. + * fixinc.svr4 (): Fix types of SIG_DFL, SIG_ERR, + SIG_IGN, and SIG_HOLD. + (): Turn definitions of stat, lstat, fstat, and mknod + into ANSI syntax and add __ to variables used. - * vax.md (call_pop, call_pop_value): Use correct register number for - stack pointer. Add new patterns for case of zero args. + * c-parse.in (component_decl_list): Do pedwarn for missing semicolon + after last field decl. -Thu Jan 2 08:12:59 1992 Fred Fish (fnf at sunfish) +Wed Oct 7 09:49:34 1992 Michael Meissner (meissner@osf.org) - * x-amix: Minor changes to some comments. - * x-amix (CCLIBFLAGS, GNULIB2_CFLAGS, XCFLAGS): Remove definitions. - * x-amix (manext): Add definition. + * decstatn.h (LINK_SPEC): Don't define if it is already defined, + ie dec-osf1.h has included decstatn.h. -Thu Jan 2 11:14:28 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * dec-osf1.h (MACHINE_TYPE): Redefine to say DEC OSF/1 instead of + ultrix. - * fold-const.c (fold, case PLUS_EXPR): If association permits - reduction to var+0, convert var to the desired type before returning - it. +Wed Oct 7 03:50:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 1 10:37:50 1992 Michael Tiemann (tiemann at cygnus.com) + * configure (target_cpu_default): Var renamed from target_default. + Set it to 2, for a 486. Define TARGET_CPU_DEFAULT macro. - * expr.c (convert_move): When GET_MODE_BITSIZE (TO_MODE) > - BITS_PER_WORD, check that it's also > GET_MODE_BITSIZE (FROM_MODE). + * i386.h (TARGET_CPU_DEFAULT): Add default definition. + (TARGET_SWITCHES): Include that in the default. - * expr.c (expand_expr): In CONSTRUCTOR case, preserve - MEM_IN_STRUCT_P when creating a new target when TARGET and EXP might - not be independent. + * toplev.c (main): Recover correctly from invalid -Wid-clash option. -Wed Jan 1 18:32:03 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cccp.c (finclude): Set fp->buf earlier, so it's freed on error. - * c-parse.y (parmlist_1): Accept `PARMS; PARMS'. - (parmlist_or_identifiers_1): Likewise. Also use plain parmlist_2. - Delete the ([names] decls) syntax. - (defn_parms, defn_parmlist_2): Deleted. - * c-decl.c (get_parm_info): Put parm decls into original order. - Don't nreverse the original decls list. - (pushdecl, duplicate_decls): Avoid error for forward parm decl. - (clear_parm_order): New function. - (push_parm_decl): Record original order of parms. + * Makefile.in (install-common-headers): Avoid ! operator, for assert.h. - * c-decl.c (struct binding_level): New slot subblocks_tag_transparent. - (pushlevel): Use that, not ->parm_flag. - (start_function): Set that slot. +Tue Oct 6 20:21:21 1992 Jim Wilson (wilson@geech.gnu.ai.mit.edu) - * config.sub: Always distinguish between amix and sysv4. - Convert commodore to cbm and digital to dec. + * unroll.c (copy_loop_body, JUMP_INSN case): Delete abort in the + code for setting the JUMP_LABEL field. - * m68k.md (stack adjust then push SI): New peephole. +Tue Oct 6 19:29:19 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * m68k.h, fx80.h (WCHAR_TYPE): Use precisely "long int". - * sun3.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Undef before defining. + * cp-call.c (build_overload_call_real): If `functions' is an + ADDR_EXPR (as with operator new and delete), give the name of its + argument as the error fn. - * cexp.y (yylex): Use LONG_TYPE_SIZE, not INT_TYPE_SIZE. - (LONG_TYPE_SIZE): Add default definition. +Tue Oct 6 14:15:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * objc-actions.c: Declare index and rindex. - (build_module_descriptor): Simplify last change. - Use a fixed name for the initialization function. - (init_objc): Don't do constructor here. - (finish_objc): Do it here, with proper name if not NEXT_OBJC_RUNTIME. + * configure: Correct conditional in setting build_xm_file. - * protoize.c: Unprotoized. - (edit_file): Improve message in -n case. + * function.c (get_first_block_beg): New function. - * Makefile.in (LANGUAGES): Add proto. - (C, C++, OBJC, OBJECTIVE-C): Aliases for l.c. targets. - (PROTOIZE, protoize, PROTO): Aliases for proto. - (rest.encap): Delete dep `proto'. + * cross-make (assertdir): Override usual definition. + * Makefile.in (install-common-headers): chmod assert.h in proper dir. + Use $(assertdir). + (assertdir): New variable. + (install-dir): Create dir $(includedir). + (includedir): Make this /usr/local/include. -Wed Jan 1 15:07:41 1992 Michael Meissner (meissner at osf.org) +Tue Oct 6 12:05:35 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) - * mips.md (extend*): Use gen_lowpart to make the SUBREG, rather than - doing it wrong by hand. If not optimizing, make sign extends from - memory not force the operand into a register first and do two - shifts -- combine already does this when optimizing. - (copyright): Add 1992 to list of years the file was modified. + * pa.md (memory function unit, load case): Loads take two cycles, + not one. -Wed Jan 1 06:10:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Oct 6 07:56:05 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * reload1.c (reload): When forcing an illegitimate constant into - memory, use mode of SET_DEST in case constant is VOIDmode. + * pa.md (adddi3): Fix typo. - * stmt.c (expand_end_case): Pass index type to emit_case_nodes instead - of unsigned flag. - (node_has_{low,high}_bound): Accept INDEX_TYPE as an argument and see - if the a node value is at the limit of values of the type. - (node_is_bounded): Accept INDEX_TYPE and pass to above functions; - always call them. - (emit_case_nodes): Accept INDEX_TYPE instead of UNSIGNEDP as arg; - pass index type to recursive calls and to calls to bound checking - functions. +Tue Oct 6 04:03:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * varasm.c (assemble_integer_zero): Deleted. - (assemble_integer, assemble_real): New functions. - (output_constant_pool, output_constant): Use new functions. - * final.c (end_final, profile_function): Likewise. + * m68k.c (floating_exact_log2, standard_68881_constant_p): + (standard_sun_fpa_constant_p): Use REAL_VALUE_FROM_CONST_DOUBLE. + (print_operand): Likewise. - * calls.c (calls_alloca): Don't interpret operands that are RTL as if - they were trees; check args of nested CALL_EXPR for alloca calls. +Mon Oct 5 18:39:29 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Wed Jan 1 16:51:30 1992 Fred Fish (fnf at fishpond) + * tree.h (TREE_VIA_PROTECTED): Set protected_flag, not static_flag. - * Makefile.in (manext): Include the '.' character. - (mandir): Don't use manext. - (install-man, uninstall): Change uses of manext. +Mon Oct 5 18:27:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 1 21:31:01 1992 Ron Guilmette (rfg at ncd.com) + * Makefile.in ($(srcdir)/INSTALL): Add -D INSTALLONLY. - * i860.md (cmpeqsi, cmpltsi, cmpgtsi): Made control flow more obvious. - (cmpnesi, cmplesi, cmpgesi): New patterns. - (cmpgeusi, cmpleusi): Fixed bug in compares against zero. +Mon Oct 5 14:46:08 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Tue Dec 31 11:16:37 EST 1991 Dennis P. Glatting (...!uunet!tti!dennisg) + * cp-parse.y (unary_expr): Use the `new' rule when looking for + something like `new(foo) char[10]'. - * objc-actions.c (build_module_descriptor): Emit a constructor - function. Constructor function calls a ObjC run-time routine passing - a pointer to the module's module structure. - (init_objc): Call different constructor function if not Next. - (build_selector_translation_table): Don't give a selector global scope. - Changed in construction of decl_specs. + * cp-decl.c (grokparms): Don't call digest_init on default args. -Tue Dec 31 18:06:23 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Oct 5 02:21:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * genrecog.c (add_to_sequence): Clear PREDS for "const_int_operand". - (same_modes): Properly check when we should ignore a mode test. + * reload1.c (allocate_reload_reg): Always check for asm + on failure instead of simply aborting. - * reload1.c (emit_reload_insns): Only change spill_reg_store for - output reloads. - Clear spill_reg_store when we did an input reload to a spill register. - (delete_output_reload): Use single_set. - (count_occurrences): Don't count use which is SET_DEST. + * optabs.c (init_optabs): Use cabs as the only libcall for abs. -Tue Dec 31 16:51:37 1991 Michael Meissner (meissner at osf.org) +Mon Oct 5 03:10:14 1992 Mark Eichin (eichin at tweedledumber.cygnus.com) - * mips.h (MIPS_VERSION): Change Meissner version # to 6. - (ASM_FINAL_SPEC): Don't pass -d and friends to mips-tfile. - (CONSTANT_ALIGNMENT): Align constructors on word boundaries. + * c++ (numargs): $# was used after set was called; instead, save + $# in $numargs and use that value instead. - * mips.md (extend*): Replace sign extension insns with a - define_expand that converts the expansion into the appropriate - shifts. Add insns that do sign extension from memory, which the - optimizer will utilitize if the thing being sign extended really - comes from memory. This allows the shifts to compete for CSE, at a - potential cost of generating worse code if reload spills a HI or QI - register to the stack. - (sne define_split): Instead of using a constant 0 as the second - argument to the slti instruction, use a hard coded regisiter 0. +Sun Oct 4 12:34:00 PDT 1992 Ron Guilmette (rfg at netcom.com) - * mips-sysv.h (MD_STARTFILE_PREFIX): Define to point into the - directory where the MIPS compilers live. - (LIB_SPEC): Add crtn.o after all libs. - (STARTFILE_SPEC): Use crt1.o, not crtn.o. - (MACHINE_TYPE): Correct typo, this is System V, not BSD. - Changes are from Ron Guilmette (rfg at ncd.com). + * dwarfout.c (hard-reg-set.h): Included to get decl of `reg_names'. + (PRINT_REG): Default definition added. + (dwarf_last_decl): Variable declaration added. + (output_reg_number): New function; handle -fverbose-asm reg printing. + (output_mem_loc_descriptor, output_loc_descriptor): Call it. + (output_decl): Set `dwarf_last_decl' each time this fn is called. + * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Declared. + (PRINT_REG): Definition moved from i386.c. + * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Not static. + (PRINT_REG): Definition moved to i386.h. - * configure (mips-*-sysv): Correctly use mips-sysv.h instead of - mips.h. Change is from Ron Guilmette. +Sun Oct 4 00:53:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Dec 31 16:51:37 1991 Michael Stump (mrs at charlie.secs.csun.edu) + * c-decl.c (shadow_tag_warned): Use pedwarn for useless keyword. - * t-decrose, t-decstatn, t-encrose, t-i386rose, t-mips: Remove - collect2 from EXTRA_PASSES, as collect2 does not need installing as - collect2. Also, change the symlink back to a hard link. + * c-lex.c (readescape): No warning if digits in \x are all 0's. - * Makefile.in: Add collect2 to STAGESTUFF as it is something that - needs removing or moving to stagen, but it should not be installed. +Sat Oct 3 14:37:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Dec 31 15:47:50 1991 Michael Tiemann (tiemann at hal) + * optabs.c (expand_complex_abs): New function. + * expr.h (expand_complex_abs): Add declaration. - * combine.c (simplify_comparison): Swap evaluation of OP0 and OP1 so - the lattern can use the result of the former. +Sat Oct 3 07:29:09 1992 Michael Meissner (meissner@osf.org) - * conditions.h: In comments, refer to `tm.h', since `tm-' is no - longer the form used for these files. + * configure (mips-dec-osf1): Use x-dec-osf1 instead of x-decstatn. -Tue Dec 31 11:45:26 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * x-dec-osf1 (new file): Like x-decstatn, except that INSTALL is + installbsd -c. - * cp-lex.c (lineno, finput): Decls deleted. +Sat Oct 3 05:04:43 1992 Tom Wood (wood@dg-rtp.dg.com) - * global-alloc.c (find_reg): New arg RETRYING. - (retry_global_alloc, global_alloc): Pass that arg. + * toplev.c (rest_of_decl_compilation): Don't call + dwarfout_file_scope_decl as this causes duplicates. - * Makefile.in (*protoize, *protoize.o): Compile with CC. - * protoize.c: Include config.h, not tconfig.h. - Always define _POSIX_SOURCE. +Sat Oct 3 01:35:23 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * convex*.h (CPP_SPEC): !ansi controls _POSIX_SOURCE, _CONVEX_SOURCE. - * conv1*.h, conv2*.h: Files deleted. + * explow.c (allocate_dynamic_stack_space) [MUST_ALIGN]: + Always add to size, always round up to STACK_BOUNDARY, + always round the address. - * m68k.h, fx80.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Defined. + * rtl.h (gen_realpart, gen_imagpart): Declared. -Tue Dec 31 08:08:32 1991 Tom Wood (wood at dg-rtp.dg.com) +Fri Oct 2 20:03:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cexp.y (yylex): Record the parsed characters when dealing with - multibyte characters. + * emit-rtl.c (gen_realpart, gen_imagpart): New functions. + * optabs.c (expand_unop, expand_binop): Use them. + * expr.c (expand_expr): Use them. -Mon Dec 30 17:13:30 1991 James Van Artsdalen (james at bigtex.cactus.org) + * cccp.c (main): Handle -U before -D (and -A). - * i386.md (mulhi3,mulsi3): If a multiply by constant 128, use the - two operand multiply instead of three operand form: the AT&T - assemblers generate incorrect object code for the latter. + * assert.h: Add magic comment at beginning. + * Makefile.in (includedir): New variable. + (USER_H): assert.h removed from value. + (install-common-headers): Install assert.h separately, in includedir, + but not if file exists and lacks the magic comment. -Mon Dec 30 17:39:36 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * reload1.c (reload): Move test for failure to find any group + to after the loop over i. Also check that all the regnos fit + below FIRST_PSEUDO_REGISTER. - * jump.c (jump_optimize): Complete last change: use expand_and result. + * expr.c (expand_expr): + For ABS_EXPR, give expand_unop the operand's mode. - * reload1.c (emit_reload_insns): Check if reload_in needs a secondary - reload if we have an in-out reload, since it might have been the - output the needed the secondary reload. +Fri Oct 2 14:58:06 PDT 1992 Ron Guilmette (rfg at netcom.com) - * cse.c (simplify_unary_operation): Mode of integer CONST_DOUBLE is - VOIDmode, not DImode. + * i386v4.h (DBX_REGISTER_NUMBER): Don't abort here on pseudo-regs. + * dwarfout.c (output_mem_loc_descriptor, output_loc_descriptor): + Catch cases of bogus DECL_RTL values involving pseudo-regs (for all + target systems) and print an annoying message if we ever see such a + case. - * fold-const.c (fold, case COND_EXPR): Make an ABS_EXPR when the - comparison is LE_EXPR or LT_EXPR. +Thu Oct 1 17:23:08 1992 Michael Meissner (meissner@osf.org) - * calls.c (calls_alloca): New function. - (expand_call): Preexpand any argument that contains a call to alloca - if this call will use the stack. + * mips-tfile.c (various): Rename some of the index variables and + fields to indx, so that it doesn't conflict with the BSD + index function, which may be #define'd to strchr. However, the + MIPS symbol table has a field called index, so #undef index and + rindex, and write our own functions local_index and local_rindex. - * rs6000.h (DATA_SECTION_OP): Make result a string to avoid compilation - error. + * mips-bsd.h (CPP_PREDEFINES): Add single underscore in front of + each of the defines, for RISC-OS 5.0 compatibility. - * rs6000.h, sparc.h, sun2o4.h, sun3.h (WCHAR_TYPE_SIZE): Fix - incorrect definition. + * mips-sysv.h (CPP_PREDEFINES): Add single underscore in front of + each of the defines, for RISC-OS 5.0 compatibility. -Mon Dec 30 16:10:46 1991 Michael Meissner (meissner at osf.org) + * mips-svr4.h (CPP_PREDEFINES): Add single underscore in front of + each of the defines, for RISC-OS 5.0 compatibility. - * mips.h (CC1_SPEC): Complete change deleting -mnogpopt and -mngpopt - in favor of -mno-gpopt. + * mips.h (CPP_PREDEFINES): Add single underscore in front of each + of the defines, for RISC-OS 5.0 compatibility. -Mon Dec 30 11:32:05 1991 Michael Tiemann (tiemann at cygnus.com) + * mips.c (override_options): Only call setvbuf to make stderr line + buffered for -mstats on Ultrix, and OSF/1. - * cp-class.c (build_vtable): If we're doing #pragma interface - and the interface is known, set TREE_PUBLIC, regardless of - TREE_EXTERNAL settings. +Thu Oct 1 15:18:55 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * cp-decl.c (make_temporary_for_reference): Don't call - `convert_pointer_to', since the type may not be an aggr type. + * reload1.c (emit_reload_insns): Add a case to handle + SECONDARY_MEMORY_NEEDED in the SECONDARY_OUTPUT_RELOAD_CLASS code. + * sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Also need a temp reg + when loading HImode and QImode values from memory to FP_REGS. + (SECONDARY_OUTPUT_RELOAD_CLASS): New macro. Define this to handle + HImode and QImode stores from FP_REGS to memory similar to above. - * cp-decl.c (finish_decl): Now takes 4th arg NEED_POP. - All callers changed. +Thu Oct 1 13:36:52 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (permanent_obstack): Declare it. - (add_method): push and pop obstacks before changing out of/into - temporary allocation. - * cp-decl.c (implicitly_declare): Add - push_obstacks_nochange/pop_obstacks around changes out of/into - temporary allocation. - (shadow_tag,xref_tag,start_decl,finish_decl): Ditto. - * cp-decl2.c (grokfield,get_temp_name): Ditto. - * cp-except.c ({ansi_}lookup_exception_object): Ditto. - * cp-lex.c (get_time_identifier): Ditto. - * cp-tree.c (build_exception_variant): Ditto. - * cp-typeck.c (mark_addressable): Ditto. + * cccp.c (rescan): If traditional, recognize # only at bol. - * cp-decl.c (grokdeclarator,maybe_build_cleanup): Delete calls to - preserve allocation status. Now handled by callers. + * expr.c (expand_expr): Just return the lowpart or highpart. -Mon Dec 30 01:44:21 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * configure (i386-*-linux, i486-*-linux): New alternatives. + * i386linux.h, i486linux.h, xm-linux.h: New files. - * c-lex.c (yyprint): Function moved here. - * c-parse.y, objc-parse.y: Moved from here. + * optabs.c (expand_unop): Handle complex negate and abs val. + (init_optabs): Set up libcalls for complex abs. + (init_complex_libcalls): New function. - * Makefile.in (c-parse.c, objc-parse.c, cp-tab.c, cexp.c): - cd to srcdir to run Bison. +Thu Oct 1 22:58:45 1992 Eric Youngdale (youngdale@v6550d.nrl.navy.mil) - * c-lex.c (check_newline): Get rid of #ident pedantic warning. - * cccp.c (do_ident): Put it here. - Don't warn if in system header file. + * make-cc1.com: Extract line containing "#define YYEMPTY" from + cp-parse.c, and append to cp-parse.h (a la Makefile.in). - * cccp.c (main, finclude): Warn if file ends in backslash-newline. + * cccp.c (main) [VMS]: Use .obj, not .o, in dependencies output. - * next.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): New definitions. +Thu Oct 1 17:15:49 1992 Chip Salzenberg (chip@tct.com) - * global-alloc.c (find_reg): Kick out local regs if that helps. - (global_alloc): Set up vars local_regs_live_length, local_regs_n_refs. + * c-common.c (declare_function_name): __FUNC__ variables + are compiler-created, so set DECL_SOURCE_LINE to zero. + * c-decl.c (pushdecl): Internally generated vars can be + detected with DECL_SOURCE_LINE of zero, not DECL_IGNORED_P. - * protoize.c (do_processing): Fix setting syscalls_absolute_filename. +Thu Oct 1 13:07:21 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * configure (m68k-*-sysv4*, m68k-*-amix*): New alternatives. - * config.sub (*-commodore): Default OS to Amigados. - (-amix*): Allow this as input. - (amiga): New abbreviation. + * pa.c (emit_move_sequence): When making a reference to the data + space before reload, emit an insn sequence which is much more + likely to create "addil" instructions rather than "ldil; add" + sequences. Doing so greatly reduces the chance of running into a + HPUX linker bug when compiling kernels. - * sparc.c (output_function_epilogue): Skip unimp differently in leaf. - Use jmp insn rather than separate add. - (output_return): Skip unimp here too. - * sparc.md (return "peepholes"). Handle skipping the unimp. + * pa.h (TARGET_KERNEL): New switch "-mkernel" which forces gcc to + avoid "ldil; add" sequences when %r29 and instead generate "addil" + sequences. This avoids a HPUX linker bug when compiling kernels. + * pa.md (add high part and dp register): Split into two patterns, + one for normal code, one for kernels. Kernel version only allows + "r1" as the destination register. - * fold-const.c (fold, optimizing 2*EXPR): Use save_expr. + * pa.h (LEGITIMIZE_ADDRESS, SYMBOL_REF case): Emit a sequence + which will cause "addil" instructions to be emitted instead of + "ldil; add" sequences. - * varasm.c (make_decl_rtl): Permit initializer for local explicit reg. +Thu Oct 1 01:09:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (kept_level_p): Changed to also return TRUE for binding - levels which contain only tagged type declarations. + * c-parse.in, cond.awk: New files. + * Makefile.in (c-parse.y, objc-parse.y): Construct from c-parse.in. + (gcc.xtar): Depend on c-parse.y, objc-parse.y. + (realclean): Delete c-parse.y, objc-parse.y. - * calls.c (expand_call): Cleaned up prev change. + * explow.c (allocate_dynamic_stack_space): If STACK_DYNAMIC_OFFSET + or STACK_POINTER_OFFSET, always round address up to BIGGEST_ALIGNMENT. -Mon Dec 30 11:29:47 1991 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) + * gstddef.h: If _ANSI_H_, undef _PTRDIFF_T_, _SIZE_T_, _WCHAR_T. - * cp-lex.c (real_yylex): Call REAL_VALUE_TRUNCATE with 2 args. + * gvarargs.h: In the first part (instead of va-*.h), define + __gnuc_va_list, as in gstdarg.h. Always use __gunc_va_list + as basis for defining va_list. + Move interaction with BSD-NET2 down to where va_list itself is defined. - * calls.c (expand_call): Handle allocating ARGBLOCK in the case - that ACCUMULATE_OUTGOING_ARGS is not defined. + * cccp.c (do_include): Delete unreachable goto after '"' case. -Mon Dec 30 10:27:11 1991 James Van Artsdalen (james at bigtex.cactus.org) +Thu Oct 1 16:57:22 1992 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) - * protoize.c: fix typo in inclusion. + * dpx2g.h (NO_DOLLAR_IN_LABEL): Undef because gas understands dollars + in labels and gdb expects them if configured for gas. + (STARTFILE_SPEC): Include huge.o to be compatible with native cc. + (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): + (CTOR_LISTS_DEFINED_EXTERNALLY, DO_GLOBAL_DTORS_BODY): + (STARTFILE_SPEC): Conditionally redefine for a collectless version + of gcc if USE_COLLECT2 is not defined. -Mon Dec 30 06:16:16 1991 Leonard Norrgard (vinsci at nic.funet.fi) + * dpx2.ifile: New ld command file to support not using collect2. - * c-decl.c (grokdeclarator): Changed erroneus error message. +Wed Sep 30 17:08:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Dec 29 16:16:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * libgcc2.c (__eprintf): Do nothing if inhibit_eprintf is defined. - * toplev.c (main): Last -On option wins. - * Makefile.in (ENQUIRE_CFLAGS): Add -O0. + * pbd.h, spc-sol2.h, tower.h (NO_UNDERSCORES): Deleted. - * Makefile.in (cp-tab.c): Change "expect" message. + * Makefile.in (install-fixincludes): rm syslimits.h before installing. + Install it with cp. Add an else-part to the if that installs it. - * final.c (leaf_renumber_regs): Renumber just the PATTERN. + * c-decl.c (start_enum): Push obstacks, switch to permanent if global. + (finish_enum): Pop obstacks. + (store_parm_decls): When clearing ->names, clear out the values + from the identifiers, restore shadowed values, and clear ->shadowed. -Sun Dec 29 14:20:15 1991 Per Bothner (bothner at cygnus.com) + * c-decl.c (grokdeclarator): Don't warn of const or volatile function + in a system header file. - * dbxout.c (dbxout_type): Tiemann's DECL_IGNORED_P optimization (Nov - 20) was a little too drastic: If it succeded, no type info was - emitted at all, which made for syntactically invalid stabs. - Instead, just set 'full=0', - * dbxout.c (dbxout_symbol): Re-write code for TYPE_DECL to be a - little cleaner. It *seems* to work ... + * sdbout.c: Don't use system syms.h on hpux. -Sun Dec 29 07:04:22 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cccp.c (do_xifdef): Skip all kinds of whitespace, in bof test. - * expr.c (convert_move): Add truncates from DImode to smaller modes. - (move_by_pieces, move_by_pieces_ninsns): Rework to remove explicit - references to integer modes. - Never need to align greater than BIGGEST_ALIGNMENT. +Wed Sep 30 15:09:10 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * optabs.c (init_extends, init_fixtab, init_floattab, init_optabs): - Add TImode operations. + * sparc.md (orcc peephole): Don't accept FP reg for operand 0. - * reload.c (find_reloads): Prefer alternatives that reload SCRATCH - instead of something else. +Wed Sep 30 00:47:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * rs6000.md (movti): Adjust constraints and alternative order so - we actually get to use the stsi insn. + * gstdarg.h, gvarargs.h: Use <...> to include va-*.h. - * rs6000.h (REG_ALLOC_ORDER): Put r9 in front of r11 so we don't try to - put a TImode value in r11 as often. + * c-decl.c (start_struct): Push the obstacks. + Switch to permanent if at top level. + (finish_struct): Pop them. - * caller-save.c (setup_save_areas): New parameter pchanged; set when - memory is allocated. - * reload1.c (reload): Pass pointer to something_changed to - setup_save_areas. + * c-decl.c (store_parm_decls): If we have (erroneously) a prototype + and old-style parm decls, throw away the old-style parm decls. - * loop.c (scan_loop): Don't suppress moving insns that can trap just - because we have passed a call inside a libcall/retval block. + * configure: Default $build after $host. Canonicalize all three + config names before the main dispatch and save in $canon_host, etc. + Write these into config.status and on terminal at the end. - * jump.c (get_label_before): Don't separate a CALL_INSN from any USE - insns immediately preceeding it. - (get_label_after): Likewise, for following CLOBBERs. +Tue Sep 29 18:41:54 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * cse.c (fold_rtx, case '<'): When seeing if we have seen this - comparison before, use a constant equivalence. - Add test for things like "(a | 1) != 0". - (fold_rtx, case '2'): Move code to handle associative operations to - here; add support for MINUS, SMAX, SMIN, UMAX, and UMIN. - (record_jump_equiv): See if OP1 is equivalent to a constant. + * unroll.c (find_splittable_givs): recog_memoized failure return + is -1 not 0. - * jump.c (jump_optimize): Don't pass a SUBREG as a target to - expand_and. +Tue Sep 29 22:19:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu) - * combine.c (subst): Never associate floating-point, even if not IEEE. - Associate MAX and MIN operations. + * config.sub (os handling): Recognize `linux' as a valid os. - * output.h (output_asm_insn, asm_fprintf): Add "extern" to decls. - (alter_subreg): Add declaration. - * rs6000.md (movsf, movdf): Don't declare alter_subreg here. - (trunc_call_rtl): Don't declare trunc_used; use rs6000_trunc_used. - * rs6000.c (rs6000_trunc_used): New name of trunc_used. - * rs6000.h (rs6000_trunc_used): Add declaration. +Tue Sep 29 16:05:47 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Dec 28 18:14:21 1991 Michael Tiemann (tiemann at cygnus.com) + * limitx.h: Use <...> in #include. - * cp-method.c (build_overload_name): Don't call OB_FINISH unless END - is nonzero. + * Makefile.in (ENQUIRE_CFLAGS): Remove -DNO_SC. -Sat Dec 28 17:46:05 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Tue Sep 29 10:14:27 1992 Richard Kenner (kenner@.vlsi1.ultra.nyu.edu) - * gcc.c (default_compilers): Handle -ansi in the C++ entries - exactly the same way as the C entries do. + * optabs.c (expand_binop): Convert X - C to X + (-C). - * rtl.c (add_dependence): Cast enums to int before doing an - ordered comparison, since some compilers can't do this. +Mon Sep 28 22:44:17 1992 Jim Wilson (wilson@cygnus.com) - * sparc.c (pic_address_needs_scratch): New function. Returns - true if the pic address X needs a scratch register when loaded. - (legitimize_pic_address): Clean up. New argument SCRATCH, which - is a scratch register for those loads that need it. - (emit_move_sequence): New argument SCRATCH_REG, which is a scratch - register for those loads that need it. When loading a pic label, - set %o7 instead of clobbering it so its value can be used later. - (compute_frame_size): Leaf functions need to allocate space for - register window in frame if size greater than 0. - (print_operand): Delete obsolete %^ which added %o7 to addresses. - All uses of %o7 are now explicit. - * sparc.h: Fix callers of legitimize_pic_address. - (REG_CLASS_FROM_LETTER): Add 'r' case. - (SECONDARY_INPUT_RELOAD_CLASS): New macro, to force reload to - allocate a scratch register for certain pic address reloads. - (flag_pic): Define as extern so that it will be defined for - insn-emit.c. - * sparc.md: Fix all callers of legitimize_pic_address and - emit_move_sequence. - (reload_insi): New pattern. Used to force reload to allocate a - scratch register for those pic address loads that need one. - (reload_insi+2): When loading pic label, set %o7 instead of - clobbering it. - (movdf, movsf): Reject matches that would require reloading via - use of a condition. - (tablejump): Now a define_expand, so can generate different - pattern when pic. - (pic_tablejump): Explicitly mention in rtl that %o7 is used, - instead of using %^. + * reload.c (find_reloads_address): If tem != ad, then create a new + mem to hold it and store it back into memrefloc. - * m88k.h, sparc.h: Delete references to non-existent - BLOCK_PROFILER_USED_REG_P macro. +Mon Sep 28 10:44:55 1992 Chip Salzenberg (chip@tct.com) -Sat Dec 28 14:31:36 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * regclass.c: Fix comment syntax after #endif. - * c-lex.c (check_newline): Set ignore_escape_flag for reading filename. - (yylex): Handle ignore_escape_flag in string constant. +Mon Sep 28 17:15:22 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gnulib2.c (__do_global_dtors): Count elements properly. + * gstdarg.h (va_arg, va_start): Explicitly cast to __gnuc_va_alist. - * m68k.md (tsthi): Don't allow address register. +Mon Sep 28 17:12:04 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Sat Dec 28 11:49:06 1991 James Van Artsdalen (james at bigtex.cactus.org) + * unroll.c (copy_loop_body, JUMP_INSN case): When invert jump + insn, must first construct new insn before trying to invert it, + so that validate_change will work properly. - * final.c (final): Initialize elements of line_note_exists. + * unroll.c (find_splittable_givs): Pass mem_mode not mode to + memory_address_p. - * protoize.c: Don't include on USG unless SVR4. + * unroll.c (copy_loop_body, JUMP_INSN case): When setting + JUMP_LABEL field, verify that what we think is a label actually + is. If it isn't then map the old JUMP_LABEL to find the new one. -Sat Dec 28 11:09:36 1991 Fred Fish (fnf at fishpond) + * sparc.md (orcc peephole): Don't allow FP regs to match pattern. - * Makefile.in (includes): Pre-remove the tmp dir; fix INSTALLED_H ref. + * i960.md (indirect_jump): Use bx instead of b*, and accept any + address_operand instead of just a register operand. -Sat Dec 28 06:31:16 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i960.c (i960_round_tree): Correct conversion of bits to bytes to + round up to nearest byte. + (i960_round_align): Likewise. - * sparc.md (movstrsi): Fix typo testing for more than 32 subunits. +Mon Sep 28 15:54:18 1992 Michael Meissner (meissner@osf.org) - * genrecog.c: Major rework. - We now check to see if pairs of comparison nodes can have anything - that they both match. If not, they can be reordered. An efficient - ordering is established that groups all nodes with identical rtl - codes inside groups with identical modes. This allows us to generate - a comparison tree that is a list of nested switch statements. - Also, genrecog.c is now indented properly so that debugging is eased. - (add_to_sequence): Enforce mode on the first arg of COMPARE, comparison - operation, SIGN_EXTEND, and ZERO_EXTEND. + * dec-osf1.h (LINK_SPEC): Fix typo. - * a29k.h, romp.h, rs6000.h (PREDICATE_CODES): Add definition. +Mon Sep 28 08:15:02 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) -Fri Dec 27 17:31:48 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * rs6000.md (subsi3): Remove last change. + (allocate_stack): Go back to calling subsi3. - * a29k.h, decrose.h, encrose.h, m88kdgux.h (WCHAR_TYPE_SIZE): - Add definition. - * rs6000.h, sparc.h, sun2o4.h, sun3.h, svr3.h, svr4.h: Likewise. +Mon Sep 28 02:41:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expmed.c (expand_mult): For negative values, try multiplication by - the original value as well as by negated value. + * optabs.c (expand_binop): Use get_insns, not gen_sequence. -Fri Dec 27 20:54:59 1991 Fred Fish (fnf at fishpond) + * c-typeck.c (build_unary_op): Address of nested fcn isn't constant. - * m68kv4.h: Include m68ksgs.h rather than m68k.h. + * libgcc2.c (__builtin_new): Avoid passing 0 to malloc. - * m68kv4.h: Define TARGET_DEFAULT to be 68020 + 68881. - (CPP_SPEC): Define based on TARGET_DEFAULT + * m68k.md (indirect_jump): Use address_operand as predicate. - * m68kv4.h (PCC_STATIC_STRUCT_RETURN): Undef this. - (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Defs deleted. - (ASCII_DATA_ASM_OP, ASM_OUTPUT_ASCII): Defs deleted. + * c-decl.c (finish_decl): Do the pop_obstacks sooner, when it's + time to start allocating in the ambient context's obstack. + Don't call permanent_allocation unless got back to permanent obstack. - * m68kv4.h (ASM_OUTPUT_SKIP, FUNCTION_VALUE_REGNO_P): - (FUNCTION_PROFILER, STRUCT_VALUE_REGNUM, BSS_ASM_OP): - (FUNCTION_VALUE, FUNCTION_EXTRA_EPILOGUE, LIBCALL_VALUE): - (STACK_BOUNDARY, EMPTY_FIELD_BOUNDARY, BIGGEST_ALIGNMENT): - Redefined to match m68k/SVR4 conventions. +Sun Sep 27 13:06:19 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m68ksgs.h (ASM_OUTPUT_SKIP): Redefined to use `.space'. - (ASM_NO_SKIP_IN_TEXT): Defined. + * function.c (assign_parms): If PROMOTE_FUNCTION_ARGS is defined, + see if the incoming register should be used in a wider mode. + (expand_function_start): Likewise for return value if + PROMOTE_FUNCTION_RETURN is defined. + * calls.c (struct arg_data): New field unsignedp. + (expand_call): Handle PROMOTE_FUNCTION_ARGS and + PROMOTE_FUNCTION_RETURN. - * amix.h, xm-amix.h, x-amix: New files. + * alpha.h (FUNCTION_VALUE): Promote mode for return value. -Fri Dec 27 20:43:11 1991 Michael Tiemann (tiemann at cygnus.com) + * alpha.h (BYTE_LOADS_SIGN_EXTEND): Define. - * cp-tree.h (build_overload_name): Declare this function. - * cp-decl2.c, cp-method.c: Delete random `extern' declarations. + * rs6000.md (subsi3): Don't bother calling negate_rtx for constant; + we shouldn't be called with a constant. + (maskir patterns): Don't mention an operand before it is used; + use operand number 1 for operand with '0' constraint. + (allocate_stack): Use reg_or_short_operand for predicate of + allocation amount; use negate_rtx and always make a PLUS. - * cp-lex.c (get_directive_line): Declare it extern. - (lineno,yychar,yylval,lastiddecl,finput): Ditto. - (ridpointers): Don't need to declare it here. - (check_newline): Handle new #pragmas. + * romp.h (EXTRA_CONSTRAINT, case 'Q'): Check for MEM instead of + calling memory_operand. + (SHIFT_COUNT_TRUNCATED): No longer define this. - * cp-class.c (add_method): Add a cast in call to `obstack_base'. +Sat Sep 26 18:14:15 1992 Michael Meissner (meissner@osf.org) -Fri Dec 27 20:22:05 1991 Michael Tiemann (tiemann at cygnus.com) + * config.sub (os handling): Recognize riscos as an operating + system. - * cp-decl.c (push_overloaded_decl): Now returns a value. - All callers changed. + * configure (dec-osf1): Use x-decstatn for xmake_file. + (mips computers): Handle RISC-OS 5 vs. RISC-OS 4 configuration + changes -- RISC-OS 5. passes -non_shared by default. - * cp-decl.c (duplicate_decls): Give better error message when user - declaration conflicts with built-in one. Also, when we decide to - keep a builtin function builtin, copy the DECL_RTL from OLDDECL to - NEWDECL. + * mips-5.h (new file): RISC-OS rev 5 config file. + * mips-5bsd.h (new file): RISC-OS rev 5, bsd 4.3 config file. + * mips-5g4.h (new file): RISC-OS rev 5, svr4 + stabs config file. + * mips-5gbsd.h (new file): RISC-OS rev 5, bsd 4.3 + stabs config file. + * mips-5gdb.h (new file): RISC-OS rev 5 + stabs config file. + * mips-5gsysv.h (new file): RISC-OS rev 5 svr3 + stabs config file. + * mips-5svr4.h (new file): RISC-OS rev 5 svr4 + stabs config file. + * mips-5sysv.h (new file): RISC-OS rev 5 svr3 config file. -Fri Dec 27 17:18:15 1991 Michael Meissner (meissner at osf.org) + * dec-osf1.h (LINK_SPEC): Pass -non_shared to linker unless + -shared was passed. + (SIZE_TYPE): Define as long unsigned int. + (PTRDIFF_TYPE): Define as int. + (WCHAR_TYPE_SIZE): Define as SHORT_TYPE_SIZE. - * mips.h (TRAMPOLINE_TEMPLATE): Define correctly for MIPS. - (TRAMPOLINE_SIZE): Define to be 9 words. - (INITIALIZE_TRAMPOLINE): Define correctly for MIPS. - (TRANSFER_FROM_TRAMPOLINE): Define to do a mprotect of the - trampoline, so that we can jump to it. I suspect the mprotect may - fail on some MIPS based systems, because the trampoline is on the - stack, and not in the data section. + * decrose.h (MACHINE_TYPE): Shorten verbage. - * mips.c (mips_output_filename): Don't warn about ECOFF not - handling #line's within functions if we are using the OSF/rose - object format. + * i386rose.h (TARGET_VERSION): Print appropriate information. -Fri Dec 27 15:35:38 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * xm-mips.h (HAVE_VFPRINTF, HAVE_PUTENV): Define on DEC OSF/1. - * c-typeck.c (build_array_ref): Special warning about `register' array. + * mips.c (siginfo): Print just current filename, and function + being compiled. - * gnulib2.c (L_trampoline): Don't create a function here. - The definition of TRANSFER_FROM_TRAMPOLINE can do that if nec. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Make the function here. + * mips-tfile.c (Size_t): Use long unsigned on OSF/1. + (toplevel): Don't define rindex and index on OSF/1. - * fx80.*: Renamed from alliant.*. - * configure: Alternative renamed to fx80-alliant-*. - * config.sub: Corresponding changes. +Sat Sep 26 17:46:57 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * cccp.c (traditional): No longer static. - * cexp.y (yylex): Handle full variety of character constants. - Include stdlib.h and locale.h if needed. + * arm.md (comment before extendhisi2): Remove the lie. + (zero_extendhisi2): Rewrite to work if op0 == op1. Use + gen_lowpart in preparation code. + (extendqisi2, extendhisi2): Likewise. + (extendqihi2): Expand. - * c-decl.c (shadow_tag): Change warnings to error or pedwarn. + * arm.md (restorehi): Rewrite for correctness, efficiency, and + clarity. Avoid generating insns involving truncate. Generate + needed pseudos in preparation statements. + (storehi): Likewise. + (storeinthi): Likewise. + (movhi): Call gen_storehi, gen_restorehi, gen_storeinthi according + their new definitions. Use force_reg to put address in register. - * gnulib2.c (__do_global_dtors): If length not given, count it. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Ignore length; scan till null. - (__CTOR_END__, __DTOR_END__): Declarations deleted. + * m68k.md (indirect_jump): Use %a0 for output, and p for constraint. - * cp-decl2.c (finish_file): Always change $ to _ - regardless of NO_DOLLAR_IN_LABEL. +Sat Sep 26 02:42:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Dec 27 15:04:40 1991 Tom Wood (wood at dg-rtp.dg.com) + * reload1.c (eliminate_regs_in_insn): Rerecognize if move insn + becomes a non-move. - * svr4.h (ASM_OUTPUT_ALIGNED_COMMON): Fix typo. + * Makefile.in (install-fixincludes): + Use - when making syslimits.h; fix if-statement syntax. - * m88k.c: Move extern decls. - (output_ascii): Use ASCII_DATA_ASM_OP. - * m88k.h (HAVE_ATEXIT): Delete. - (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL, - ASCII_DATA_ASM_OP): Override svr4.h. - (EXTRA_SECTIONS): No ctors/dtors for m88k-luna. - * m88kdgux.h (STANDARD_STARTFILE_PREFIX): No need to override svr4.h. + * jump.c (jump_optimize): When handling dispatch table that always + goes to the same place, verify previous insn exists. -Fri Dec 27 11:34:59 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * c-typeck.c (common_type): Renable code to merge qualifiers + given two pointers to compatible types. - * cp-pt.c (mangle_class_name_for_template): Use a local obstack - rather than fixed-size buffers. +Sat Sep 26 12:02:38 PDT 1992 Ron Guilmette (rfg at netocm.com) - * cp-class.c (add_method): Case obstack_base value to desired type - when reallocating vector node. + * dwarfout.c (location_attribute): If DECL_RTL looks like (MEM pseudo), + treat that variable as optimized away. -Fri Dec 27 09:16:50 1991 Ron Guilmette (rfg at ncd.com) +Fri Sep 25 19:48:46 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sort-protos: New file. + * c-decl.c (explicit_flag_signed_bitfields): New variable. + (c_decode_option): Set that for -f[un]signed-bitfields. + (grokdeclarator): If that's set, and -fsigned-bitfields, + disregard -traditional when handling bitfield signedness. - * i386.c: Remove decls of frame_pointer_needed; include flags.h. - * i386.c (output_387_binary_op, output_float_compare): - Moved declarations of strcat to top level. + * configure: Handle --build option. Make link hconfig.h. + * Makefile.in: In the targets such as $(HOST_PREFIX_1)rtl.o, + use sed to make them include hconfig.h instead of config.h. + (distclean): Add command to delete hconfig.h. - * i860.md (cmpnesf, cmpnedf): New patterns. - * i860.md (cmplesf, cmpgesf): Corrected to allow for IEEE conformance. +Fri Sep 25 19:56:35 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Thu Dec 26 11:20:07 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-search.c (compute_visibility): Don't mess with the context. - * cp-class.c: Declare N_* variables here. - * cp-class.h: Declare N_* variables extern here. + * cp-decl.c (grokdeclarator): Return value from do_friend + properly; this shouldn't have gone in yet. - * cp-gc.c (build_static_gc_entry): Call `assemble_gc_entry' instead - of implementing it directly. - * varasm.c (assemble_gc_entry): New function. +Fri Sep 25 02:23:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * calls.c (expand_call): Don't crash if somebody declared a void - function `const'. + * c-typeck.c (initializer_constant_valid_p): Really use endtype. - * cp-cvt.c (convert): Handle case when two equal array types are - distinct (in memory). - * tree.c (build_index_2_type): Don't set TREE_TYPE of lower bound. - (index_type_equal): New function. + * cccp.c (do_include): "Concatenate" multiple "strings" in #include. - * cp-spew.c (yylex): Extend special-case ptr-to-func ((*)()) parsing - to handle (*)[] and (&)[] declarations as well. + * vmsconfig.com: Renamed from configure.com. - * cp-decl2.c (finish_file): Unconditionally call - assemble_{constructor,destructor}. Also, delete code for writing - _init and _fini sections that was #if 0'd. These actions belong in - varasm if anywhere. + * next.h (CPP_PREDEFINES): Define __ARCHITECTURE__. - * cp-class.c (add_method): Fix handling of obstacks to correctly - extend TREE_VECs. + * dbxout.c (dbxout_symbol): For anonymous enum, output type anyway. -Thu Dec 26 15:24:45 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Sep 25 01:33:36 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * cccp.c (main): Add new option -include. Rename -i to -imacros. - * gcc.c (SWITCH_TAKES_ARG): Remove -i. - (WORD_SWITCH_TAKES_ARG): Add -include, -imacros. - * hp800.h (WORD_SWITCH_TAKES_ARG): Add all the standard alternatives. - * mips.h (SWITCH_TAKES_ARG): Remove -Y and -i. - * next.h, sparc.h (WORD_SWITCH_TAKES_ARG): Add -include, -imacros. - * sun2.h, sun3.h (WORD_SWITCH_TAKES_ARG): Copy from sparc.h. - * svr4.h (SWITCH_TAKES_ARG): Remove -i, -f. - (WORD_SWITCH_TAKES_ARG): Add -include, -imacros. + * function.h (struct function): Add epilogue_delay_list field. + * function.c (push_function_context): Save epilogue_delay_list. + (pop_function_context): Restore epilogue_delay_list. - * toplev.c (flag_gnu_linker): New variable. -fgnu-linker. - * flags.h (flag_gnu_linker): Declare it. - * varasm.c (assemble_constructor, assemble_destructor): - Handle flag_gnu_linker. + * sparc.md (nonlocal_goto): Force operands[0] to be a register. - * sparc.md (structure values): Separate unimp pattern deleted. - New pattern for combined call and unimp. `call' pattern changed. - (type): Deleted type marker, added call_no_delay_slot. + * va-sparc.h (va_arg): Add 3 more (void *) casts to avoid warnings + with -Wcast-align. -Thu Dec 26 05:04:28 1991 James Van Artsdalen (james at bigtex.cactus.org) + * sparc.c (SF_MODES): Accept all single word or smaller integer + modes not just SImode. These are needed for fix/float conversions. - * reg-stack.c (move_for_stack_reg): If a SET_DEST is REG_UNUSED, - just pop the SET_SRC. + * sched.c (sched_analyze_2, PRE_DEC case): Call sched_analyze_2 in + addition to sched_analyze_1. -Wed Dec 25 17:23:25 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * va-i960.h (va_start): Must access anonymous arg as offset from + start of argument block. - * c-decl.c (init_decl_processing): Fix type of exit, _exit. + * i960.md (movdi, movti, movdf, movtf): Make store zero to memory + a separate case, only accept offsettable memory addresses, and call + adj_offsettable_operand to calculate subword addresses. - * jump.c (cross_jump_death_matters): Move def to front, make static. + * i960.c (i960_output_ldconst): Pass missing xoperands argument to + output_asm_insn call. -Tue Dec 24 20:41:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * a29k.md (movti): Split CONST_INTs into 4 moves, and force all + other constants to memory. - * hard-reg-set.h (reg_names): Declare here. - * stmt.c (expand_asm_operands): Not here. +Thu Sep 24 21:51:46 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * gcc.c (handle_braces, do_spec_1, give_switch): Clear up %*. + Complete Cygnus<-->FSF merge. - * expr.c (expand_expr): Delete decl of lang_expand_expr. + Thu Sep 24 17:05:27 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * final.c (final_scan_insn): Delete line number followed by another - line number, if numbers are effectively consecutive. + * cp-decl.c (pushdecl): Use a friendly abort rather than an assert. + (grokparms): Pass whether init is set or not for the initialized + parameter to grokdeclarator. - * jump.c (jump_optimize): Set cross_jump_death_matters from cross_jump. - * reg-stack.c (reg_to_stack): Pass 2 for cross_jump to jump_optimize. - Don't set cross_jump_death_matters here. - (record_reg_life): Delete decl of call_used_reg_set. + Wed Sep 23 22:09:44 1992 Mike Stump (mrs@cygnus.com) - * c-decl.c (init_decl_processing): - Declare abort, exit, and _exit as volatile. + * cp-class.c (finish_struct), cp-decl2.c (warn_nonvdtor), + cp-tree.c (layout_basetypes), cp-tree.h (warn_nonvdtor): Re-enable + warnings for non-virtual destructors in some situations. - * c-decl.c (implicitly_declare): Set IDENTIFIER_IMPLICIT_DECL earlier. - (pushdecl): Test that and avoid nested extern warning. + Wed Sep 23 15:42:33 1992 Mike Stump (mrs@cygnus.com) - * c-decl.c (init_decl_processing): Don't handle EXPAND_BUILTIN_VARARGS. + Wed Sep 23 16:31:27 1992 Michael Meissner (meissner@osf.org) -Tue Dec 24 15:42:34 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-decl.c (duplicate_decls): Cast bcopy arguments to char * to + avoid warning on OSF/1. - * cp-init.c (add_friends): Add missing IDENTIFIER_POINTER macro - application to strncmp argument. + Wed Sep 23 11:36:44 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * cp-method.c (build_overload_*): Now uses SCRATCH_OBSTACK instead - of relying on fixed buffers of finite length. - (fndecl_as_string): Ditto. - All callers changed. - * cp-except.c (cplus_exception_name): Definition moved to - cp-method.c. + * cp-decl.c (start_method): Give the name of the class if a method's + being defined again, rather than say "aggregate scope". + * cp-decl2.c (grokfield, grokbitfield, groktypefield): Ditto. -Tue Dec 24 10:38:49 1991 Michael Collison (collison at osf.org) + Tue Sep 1 22:55:59 1992 Paul Eggert (eggert@twinsun.com) - * ns32k.c (hard_regno_mode_ok): Define this as a function now. - Also change the way it work so that we don't allow moves between - the general registers and the floating point registers. + * cp-cvt.c (convert_to_integer): Prefer unsigned + arithmetic if the output type is unsigned and is no more precise than + the computation type. This avoids unnecessary sign extension. - * ns32k.h (HARD_REGNO_MODE_OK): Turn it into a function call. + Tue Sep 15 20:26:18 1992 John F Carr (jfc at Athena.MIT.EDU) - * ns32k.md (call_value): fix to correct a bug where the compiler thinks - the return value of a function call is in f0 instead of r0. Fix - courtesy of vince russo. - (movqi, movhi): Fix up these patterns because they could return - undefined instruction templates. Fix courtesy of vince russo. + * cp-pt.c (tsubst): Don't call layout_type near start of function + with T. const and volatile attributes don't affect the memory + structure of the type, and T may not yet be a valid argument for + layout_type (for example, if it is an uninstantiated template). + Individual switch cases will call layout_type if necessary. -Tue Dec 24 10:14:20 1991 Ron Guilmette (rfg at ncd.com) + Mon Sep 21 15:59:22 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * mips-tfile.c (main): Move nested extern decl of version_string to - file-scope. - (catch_signal): Move nested extern decl of sys_siglist to - file-scope. + * cp-decl.c (pushdecl): Check if DECL_SOURCE_LINE is non-zero, not + if DECL_IGNORED_P is set, when checking for shadowing. We no longer + need DECL_IGNORED_P on builtin types. + (record_builtin_type): Don't set DECL_IGNORED_P for a builtin type. - * varasm.c (assemble_variable): Handle ASM_OUTPUT_ALIGNED_COMMON. - * svr4.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): New. - (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Deleted. + * cp-decl.c (start_decl): When working with virtual functions, + always use the node's DECL_CLASS_CONTEXT. + * cp-method.c (hack_identifier): Ditto. + * cp-search.c (compute_visibility): Ditto. - * gcc.c (SWITCH_TAKES_ARG, default_compilers): Eliminated -Y* option. - (execute): Moved decls of execv and execvp to top level. - (do_spec, do_spec1, handle_braces, give_switch): Support new %* spec. + * cp-decl.c (grokdeclarator): Don't allow a member to be declared + extern. - * c-lang.c (recognize_objc_keyword): Added explicit return. + * cp-decl.c (grokdeclarator): Return a void_type_node if we're + looking at a friend (even after calling do_friend). + (pushdecl): Disable some code that's untested and + doesn't necessarily help DWARF right now. + (finish_function): Always emit debugging info for the + return type of a function. + (pushdecl): Don't change the DECL_CONTEXT of virtual + methods. + (finish_enum): Always output debugging info for enums. + (grokdeclarator): It's an error if we're doing an init of an extern + at the top level. If we are at the top level, just warn. - * svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): New definitions. - (ASM_SPEC, LINK_SPEC): Support more standard svr4 options. - (LIB_SPEC): Fixed to link crtend.o *after* libc.a. + * cp-typeck.c (comp_target_parms): Check if strict is non-zero, not + just > 0. + (build_function_call_real): Don't return an error-mark node when + they call "main" from within the fn, it's only a pedantic warning. + (pointer_int_sum): Reword warning when using a ptr-to-mem in arith. - * svr4.h (CONST_SECTION_FUNCTION): Moved decl of `text_section' to - top level. + * cp-tree.c (layout_basetypes): Make record_align and const_size + unsigned. - * cexp.y (main): Add explicit return type and explicit value. - Move decl of yydebug to top level. + Mon Sep 21 14:53:43 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * gnulib2.c (__bb_init_func): Moved decl of ___tcov_init to top level. + * cp-tree.h (flag_no_ident): Add extern decl for cp-lex.c. - * toplev.c (main): Deleted obsolete checks for -opt and -noreg. - Moved decls of environ, version_string, language string to file-scope. - Compile-time error if PREFERRED_DEBUGGING_TYPE is missing. + * cp-decl.c (duplicate_decls): Save the DECL_UID and DECL_FRIEND_P + info from olddecl. Otherwise, they'd get clobbered when newdecl's + contents get copied into olddecl. - * tree.c (dump_tree_statistics): Deleted decl of class_obstack. - (object_permanent_p): Added explicit return type. + * cp-lex.c (check_newline): Delete pedantic error about using #ident, + since cccp.c already gives a warning. In the case that + ASM_OUTPUT_IDENT is defined, only actually spit it out if flag_no_ident + is not set. -Tue Dec 24 09:29:24 1991 Charles Hannum (mycroft at hal.gnu.ai.mit.edu) + Sat Sep 19 14:53:31 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * expr.h (lang_expand_expr): Fix typo. + Sat Sep 19 11:37:11 1992 John F Carr (jfc at Athena.MIT.EDU) -Tue Dec 24 06:52:45 1991 Michael Meissner (meissner at osf.org) + * cp-decl.c (finish_decl): Don't call + CLASSTYPE_DECLARED_EXCEPTION if TYPE is error_mark_node, to avoid + referencing a nonexistent field. - * gnulib2.c (__main): Make sure the exit module is pulled in if we - have atexit, since that module defines constructor/destructor - variables as bss symbols rather than as references. + Fri Sep 18 14:06:06 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * decrose.h (HAVE_ATEXIT): Define. - * encrose.h (HAVE_ATEXIT): Define. - * i386rose.h (HAVE_ATEXIT): Define. - * decstatn.h (HAVE_ATEXIT): Define. + * cp-parse.y (component_decl): Remove sorry about not implementing + methods in anonymous unions---they're illegal, and we generate an + error elsewhere to that effect. - * gcc.texinfo (HAVE_ATEXIT): Expand documentation. - (EXIT_BODY): Document. + * cp-decl.c (start_method): Make the error message about a + duplicated member a little more informative. - * protoize.c (POSIX): Make protoize accept TARGET_POSIX as a synonym - for POSIX to make the code and documentation agree. Also, if the - user defined _POSIX_SOURCE explicitly, turn on POSIX support in - protoize. + Fri Sep 18 12:28:13 1992 Brendan Kehoe (brendan at rtl.cygnus.com) -Tue Dec 24 00:14:38 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-parse.y: Define YYDEBUG if SPEW_DEBUG is defined. + (debug_yytranslate): YYDEBUG will always be defined, no need to test. - * calls.c (emit_call_1): Additional arg STRUCT_VALUE_SIZE. - Use as arg in call and call_value insns. - (expand_call): Record the size, to pass it. - * expr.c (emit_library_call): Pass 0 for STRUCT_VALUE_SIZE. - * sparc.md (call, call_value): Make use of new arg. - Generate an unimp instruction to use sparc calling convention. - Add nameless pattern to recognize it. - * sparc.c (output_function_epilogue): Skip the caller's unimp insn. + Fri Sep 18 10:46:19 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * Makefile.in (INSTALLED_H): New variable. - (includes): Preserve just those specific files. + * cp-parse.y (unary_expr): When parsing delete, first complain if + it's a non-pointer, then check if it's a pointer with the value zero. + Also be sure not to call build_delete if that's the case. - * expr.h (lang_expand_expr): Declare it. - * expr.c: Don't declare it. - * cp-expr.c (init_cplus_expand): Set up lang_expand_expr here. - * cp-lex.c (init_lex): Call init_cplus_expand. +Thu Sep 24 18:03:07 1992 Michael Meissner (meissner@osf.org) -Mon Dec 23 15:17:59 1991 Tom Wood (wood at dg-rtp.dg.com) + * mips.h (MIPS_VERSION): Set Meissner version # to 27. + (STRUCT_VALUE_REGNUM): Delete macro. + (STRUCT_VALUE): Define as 0, so that structure return addresses + are passed as the first argument. This fixes various codegen + problems with functions returning structures. - * configure: Delete m88k-v88r32 (this is supported by m88k-svr3) - and add m88k. - * config.sub: Delete v88r as a system type. + * mips.c (init_cumulative_args): Don't advance arg pointer if + function returns a structure. -Mon Dec 23 19:50:48 1991 Fred Fish (fnf at fishpond) +Thu Sep 24 12:38:31 1992 Torbjorn Granlund (tege@wombat.gnu.ai.mit.edu) - * 3b1.h, crds.h, hp320.h, m68k.md, m68ksgs.h, mot3300.h, news.h, - tower-as.h: Replace port oriented macros SGS_3B1, HPUX_ASM, and - SONY_ASM, with configuration oriented macros SGS_SWITCH_TABLES, - SGS_SWAP_W, SGS_CMP_ORDER, and SGS_NO_LI. + * pa.h (REGISTER_MOVE_COST): Fix typo. Use `||' instead of `|'. + (REG_CLASS_FROM_LETTER): Don't handle 'r' constraints here. + * pa.c (clobbered_register): Delete. + (srcsi_operand): Return 1 also for things matching + depi_cint_operand. + (secondary_reload_class): Replace. + * pa.md (ldo/ldil SImode and HImode recognizers): Use + "const_int_operand" for operand 1 and simplify final condition. + Remove `n' constraint. + (depi SImode and HImode recognizers): Remove `n' constraint. + (plus:SI ... high ... splitter): Don't overwrite input, go via + clobber operand instead. + (many patterns): Replace `in' constraint with just `i'. + (movstrsi): Don't do (clobber (match_scratch)), use explicit + pseudos instead, generated in preparation C code. Don't call + force_not_mem for operand 2. + (movstrsi recognizer): Add `&' to operand 3. + (andsi3): Fix typo. + (iorsi3): Fix typo. + (load-shift-16): New optimizer. + (load-shift optimizers): Set "type" attr. - * m68ksgs.h: New file. +Thu Sep 24 15:17:38 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68k.c (print_operand_address): Change switch labels for MOTOROLA. - Don't use a `%'. Add missing `L' to some labels. - For SGS assembler, use one symbol for the offset. + * toplev.c (lang_options): Add Objc options. -Mon Dec 23 17:03:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * configure.bat: Use xgcc, not gcc. - * recog.h (insn_name): New declaration. - * final.c (output_asm_insn): Don't declare insn_name here. +Thu Sep 24 06:30:47 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * dbxout.c (dbxout_function, dbxout_begin_function): - Pass missing arg to dbxout_really_begin_function. + * c-lex.c (yylex, case '"'): Initialize arg pased to readescape. - * jump.c (jump_optimize): Set new var can_reach_end. - * c-decl.c, cp-decl.c (finish_function): - Merge that into current_function_returns_null. + * genattrtab.c (length_used): New variable. + (walk_attr_value): Set it when we have (eq_attr "length" ...). + (write_const_num_delay_slots): Value is 1 unless LENGTH_USED is set. - * config.sub (fx2800): New machine alias. + * reorg.c (mark_set_resources, case CC0): Set RES->CC if IN_SEST. - * va-m88k.h (va_start): Test __GNUC__, not __CLASSIFY_TYPE__. + * regclass.c (forbidden_inc_dec_class, in_inc_dec): New variables. + (regclass): Don't alloca the costs twice. + Initialize forbidden_inc_dec_class. + For regs that have inc-dec, ignore forbidden classes. + (record_address_regs): Update in_inc_dec. - * m88kv4.h: New version from Wood. - (CPP_PREDEFINES): Put -A options here. Remove __CLASSIFY_TYPE__. +Thu Sep 24 02:36:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (initialize_builtins): Define __GNUC__ as 2. + * syslimits.h: New file, includes system's limits.h. + * limitx.h: Include syslimits.h instead of system's limits.h. + * Makefile.in (USER_H): Add syslimits.h. + (install-fixincludes): If we fix system's limits.h, install that + as syslimits.h - * rtl.h (read_rtx): New declaration. + * c-lex.c (readescape): New arg ignore_ptr. + (yylex): Pass new arg, handle result that comes back. - * c-lex.c: Don't include output.h. - (asm_out_file): Declare it. - (ridpointers): Allocate storage here. +Wed Sep 23 19:26:42 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-lex.h (lastiddecl, token_buffer): Declare here. - (yylex, make_pointer_declarator, reinit_parse_for_function): Likewise. - * c-parse.y, objc-parse.y: Not here. + * reload.c (find_reloads_address): Properly check for constant address. - * objc-actions.c (error_with_ivar, error_with_method): - (warn_with_method): Use count_error, not errorcount. + * cse.c (simplify_unary_operation, case SIGN_EXTEND): Use + HOST_BITS_PER_WIDE_INT, not HOST_BITS_PER_INT. -Mon Dec 23 11:50:37 1991 Ron Guilmette (rfg at ncd.com) + * fold-const.c (fold_convert): Add missing cast to HOST_WIDE_INT. - * sdbout.c: Fixed typo. - * stmt.c (init_stmt, init_stmt_for_function): Explict return type. - * gnulib2.c (__fixunsdfdi, __fixunssfdi): Move extern decls. - * recog.c (init_recog): Added explicit return type. - * longlong.h (count_leading_zeros): Moved decl of `__clz_tab'. - * print-rtl.c (insn_name_ptr): Make decl `extern'. + * jump.c (jump_optimize): Tighten up test for when we can't + delete a set of CC0. + Don't insert insns between set and use of CC0. - * objc-actions.h, objc-actions.c (doing_objc_thang): Make extern. - * objc-actions.h, objc-actions.c (finish_class): Return void. - * objc-actions.c (continue_class): Added default error return value. + * final.c (shorten_branches): Correctly access insn needing delay slot. - * fixinc.svr4: Map assertion tests to equivalent ANSI macro tests. + * combine.c (significant_bits, num_sign_bit_copies): Handle SUBREGs + made for promoted variables. - * i860.c (output_block_move): Disabled code to move by words or - halfwords until it can be made to work right. + * reorg.c (fill_simple_delay_slots): Don't make copy of insn that + references CC0. - * i860.c (output_block_move): Moved a sequence of common - `output_asm_insn' calls out of (and before) conditionals. + * romp.md (define_attr "type"): New type "ibranch". + (define_attr "length"): Set length for "ibranch" type. + (define_attr "in_delay_slot"): Add new type "ibranch"; + for "branch", only has delay slot if length is 4. + (define_attr "cc_type"): Add new type "ibranch". + (indirect branches): Now type "ibranch". - * i860.c (output_block_move): Corrected bugs in move loop. + * alpha.c (alpha_gp_dead_after): Return 0 if not optimizing. -Mon Dec 23 15:25:01 1991 Tom Wood (wood at dg-rtp.dg.com) +Wed Sep 23 00:11:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88kv4.h (CPP_PREDEFINES): Fix for varargs/stdarg. - (includes): Include svr4.h before m88k.h so the overrides in m88k.h - will take effect. + * gvarargs.h: Finish changing _ANSI_H to _ANSI_H_. -Mon Dec 23 07:06:27 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Sep 22 23:39:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i860.c (output_delayed_branch): Call insn_extract and - constrain_operands so that `which_alternative' is set properly. + * i386mach.h (perform_fixdfsi): Copy arg to memory variable. - * stor-layout.c (layout_type, case ARRAY_TYPE): Handle - TYPE_NO_FORCE_BLK similar to RECORD_TYPE. +Tue Sep 22 14:54:38 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * encrose.h, i386rose.h, mips.h (LIBG_SPEC): Deleted; unused. + * loop.c (basic_induction_var): Inside PLUS, when looking for promoted + var, make sure it's a REG. -Sun Dec 22 12:02:03 1991 James Van Artsdalen (james at bigtex.cactus.org) +Tue Sep 22 12:21:11 1992 Michael Meissner (meissner@osf.org) - * i386.c (function_epilogue): Use correct operand for insn mode. + * mips.h (MIPS_VERSION): Bump Meissner version # to 26. + (REG_PARM_STACK_SPACE): Use UNITS_PER_WORD instead of 4, and + substract FIRST_PARM_OFFSET. + (FIRST_PARM_CALLER_OFFSET): Delete unused macro. -Sun Dec 22 12:20:16 1991 Michael Tiemann (tiemann at cygnus.com) + * mips.c (init_cumulative_args): Print types of fntype and the + return type if -mdebuge. - * cp-decl.c (grokdeclarator): Don't set TREE_PUBLIC for member - functions that are really declared as inline methods. + * decrose.h (CPP_SPEC): Eliminate defining various builtin + functions with -D=__builtin_, if neither -fbuiltin nor + -fno-builtin were passed. + (CC1_SPEC): Eliminate passing -fno-builtin to the compiler if + neither -fbuiltin nor -fno-builtin were passed. Eliminate + %{save-temps: } since gcc no longer gives an unknown switch + message if it is used. - * cp-init.c (build_virtual_init): Add missing call to - `assemble_external' when we use a virtual function table. + * i386rose.h (CPP_SPEC): Eliminate defining various builtin + functions with -D=__builtin_, if neither -fbuiltin nor + -fno-builtin were passed. + (CC1_SPEC): Eliminate passing -fno-builtin to the compiler if + neither -fbuiltin nor -fno-builtin were passed. Eliminate + %{save-temps: } since gcc no longer gives an unknown switch + message if it is used. + (MASK_HALF_PIC): Move bit mask to 0x40000000, to allow for i386.h + to define more switches without overlapping our private switch. + (TARGET switches): Add -mdebugb to debug half-pic code. + (OPTIMIZATION_OPTIONS): Only set flag_gnu_linker FALSE always, and + flag_inline_functions if -O3. In particular never set + -fomit-frame-pointer which currently messes up debugging. + (GO_IF_LEGITIMATE_ADDRESS): Define i386-osfrose version that deals + with half-pic. + (OVERRIDE_OPTIONS): Define to initialize half-pic. + (ASM_FILE_END): Define to dump out half-pic variables if needed. - * cp-decl.c (implicitly_declare): Don't allocate a decl if at the - global binding level. + * t-i386rose (EXTRA_OBJS): Define as halfpic.o. + (CONFIG2_H): Add $(srcdir)/halfpic.h. + (halfpic.o): Add dependencies. - * vax.h (PRINT_OPERAND): Handle new 'R' case. - * vax.md: Change all patterns which passed a negated operand for - `rotl' to use 'R' as the negator, since rotl cannot acctually handle - negative arguments. +Tue Sep 22 03:12:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Dec 22 12:31:46 1991 Ron Guilmette (rfg at ncd.com) + * reload1.c (choose_reload_regs): When setting reg_has_output_reload, + loop over multiple regs only for hard reg. Set reg_is_output_reload + in separate loop. - * i386v4.h (TARGET_VERSION): Added definition. - * i860v4.h (TARGET_VERSION): Added definition. +Mon Sep 21 12:22:24 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) - * m68kv4.h: New file. - * fx2800.h: New file. + * reorg.c (mark_set_resources, case REG): A register is set iff + "in_dest" is nonzero. - * m88kv4.h (DWARF_DEBUGGING_INFO): Deleted redundant definition. - (It's defined already in svr4.h.) +Mon Sep 21 14:16:10 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * m88kv4.h (CPP_PREDEFINES): Added definition. + * combine.c (make_extraction): Make test whether to use AND or + {SIGN,ZERO}_EXTRACT depend on UNSIGNEDP. - * m88kv4.h (CPP_SPEC, LIB_SPEC, LINK_SPEC, STARTFILE_SPEC): - Deleted redundant definitions. (These are defined in svr4.h.) +Mon Sep 21 08:26:55 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cccp.c (errno, sys_nerr, sys_errlist): Moved extern decls to top lev. - * function.c (round_down): Likewise. - * calls.c, c-convert.c: Delete block-level extern decls. - * c-convert.c: Include flags.h. + * reload1.c (reload): If we can't get a register that we know won't + interfere with groups, get one that might instead of giving up. - * configure (i386-*-sysv*): Fixed tmake_file value. - (i860-*-sysv3*): Fixed xmake_file and tmake_file value. - (i860-alliant-*): New configuration. + * reload1.c (reload): Print the needs to the dump file. - * i860.c (recog_operand, call_used_regs, insn_template, - insn_n_operands, insn_outfun, alter_subreg): Moved extern - declarations out of local contexts and put them at file-scope. +Mon Sep 21 02:45:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i860.c (zero_operand): Deleted useless function. + * function.c (put_var_into_stack): Check REG != 0 before dereference. - * i860.c (singlemove_string): Added code to optimize moving halfword - constants. +Sun Sep 20 16:58:05 1992 Fred Fish (fnf at fishpond.cygnus.com) - * i860.c (output_block_move): Don't do CC_STATUS_INIT until it is - definitely necessary & appropriate. + * x-svr4: New generic SVR4 host makefile fragment. + * x-i386v4: File deleted. + * x-ncr3000: Get alloca using ALLOCA, not libucb.a. + * configure (i386-*-sysv4*): Use x-svr4, not x-i386v4. + * configure (i486-*-sysv4*): Use x-svr4. - * i860.c (output_block_move): Create up to 16 sequential load/store - pairs for constant length moves regardless of operand sizes (e.g. - byte, halfword, word). +Sun Sep 20 21:18:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i860.c (output_block_move): Try to generate widest kind of - sequential load/store pairs for constant length moves before trying - the less efficient (narrower) ones. + * combine.c (subst): Set and compare extend_op with 0, not NULL. - * i860.c (output_block_move): Don't do sequential load/store pairs - for constant length moves unless the size is a multiple of the - size of the operands moved each time (i.e. word, halfword, byte). + * cse.c (find_comparison_args): New args PMODE1, PMODE2. + (fold_rtx, record_jump_equiv): Use them to get modes of comparison. + (fold_rtx): Associate MINUS with nested PLUS. - * i860.c (output_block_move): Re-wrote code to do inline variable - length block moves to correct fatal errors (e.g. no check for zero - or neagtive start count) and to make it more efficient (saved 1 cycle - per iteration). + * seq386.h (LPREFIX): Overridden as `.L'. + (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise. - * i860.c (output_block_move): Make variable length moves with starting - alignment of 4 or 2 `#if 0' for now, until they can be fixed to work - right. Also reordered all three cases so that longer alignments are - checked for first. +Sun Sep 20 05:53:20 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Dec 22 01:25:07 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * combine.c (try_combine): Always call set_significant on new + patterns, so don't call just in split case. - * i386v4.h: Include svr4.h just once. + * combine.c (subst): Move sign extension inside arithmetic + when we have a constant computation inside another computation. - * protoize.c (fprintf, printf): Decls put in #if 0. + * emit-rtl.c (emit_insn_after_with_line_notes): New function. + * jump.c (jump_optimize): Delete insns that set registers that + are not used elsewhere. + Fix some bugs in "if (...) x = a; else x = b;" code. + Remove uses of reorder_insns. + Add code to make scc insns for "if (...) x = exp;" if EXP is simple + enough. + Optimize "if (...) x = b;" if jumps very expensive; don't use a REG + as the older value of X since it doesn't help and can hurt. + Correctly place generated insns in above case. - * emit-rtl.c (stack_slot_list): Delete superfluous extern decl. - (emit): Abort if arg isn't recognized. + * reload.c (find_reloads, find_reloads_toplev): Treat + BYTE_LOADS_SIGN_EXTEND just like BYTE_LOADS_ZERO_EXTEND. + * combine.c (subst, simplify_and_const_int, significant_bits): + Likewise. + (num_sign_bit_copies, case MEM): New case for BYTE_LOADS_SIGN_EXTEND. + (num_sign_bit_copies, case SUBREG): Handle just like significant_bits. - * c-parse.y (current_declspecs, declspec_stack): Declare static. - (undeclared_variable_notice): Likewise. - (lastiddecl): Declare extern. - * objc-parse.y: Same changes as c-parse.y. - (token_buffer): Declare extern. +Sat Sep 19 15:55:31 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-lex.c: Include output.h. - (check_newline): Decl of asm_out_file deleted. + * combine.c (combine_instructions): Clear significant_valid + at end of combine pass for a function. + (find_split_point, case MEM): See if first operand of the PLUS + that makes up an address is complex. + (subst): Add missing arg to recursive calls when IF_THEN_ELSE + is an arg of an operator. + (subst, case IF_THEN_ELSE): Generalize code to propagate comparison + result into arms by using known_cond. + If an arm is the first operand of the comparison, make it the + true arm. + Remove unneeded comparison when arms are identical. + Try to convert IF_THEN_ELSE to ABS, (neg (abs X)), [US]MIN, [US]MAX. + Convert (if_then_else (ne A 0) (OP X C) X) to (OP X (mult A C)). + (subst, case SET): If we don't have conditional moves, + convert IF_THEN_ELSE into logical operations. + (subst, case AND): Always make conditional moves, even if we + don't support them on the machine. + (known_cond, extended_count): New functions. + (gen_binary): For commutative operations, put constant last. + + * combine.c (try_combine): The insns made by a DEFINE_SPLIT might + contain a PARALLEL and the call to recog_for_combine might add it. + + * combine.c (simplify_comparison, case ASHIFT): Fix typo. + + * combine.c (try_combine): When removing REG_UNUSED note, + update reg_n_deaths. + Likewise, when making new REG_DEAD notes for distribute_notes. + (remove_death, move_deaths): Update reg_n_deaths. + (distribute_notes): When placing second REG_DEAD or REG_UNUSED note or + ignoring such a note, update reg_n_deaths. + + * rtl.h (SUBREG_PROMOTED_{VAR,UNSIGNED}_P): New macros. + * tree.h (DECL_MODE, DECL_RTL): Update comments. + * expr.h (PROMOTE_MODE): Provide default definition. + * expr.c (convert_move, convert_to_mode): Strip off a SUBREG made + for variables with promoted modes. + (store_expr): Store into variables with promoted modes by + doing the appropriate extension operation. + (expand_expr, case VAR_DECL): Generate SUBREGs for promoted objects. + (expand_expr, case SAVE_EXPR): Likewise for SAVE_EXPRs. + (expand_increment): Handle increment of promoted objects. + * function.c (fixup_var_refs{,_insns}): Add new parms for promoted + mode and signedness; all callers changed. + Insert mode conversions when required. + (fixup_var_refs_1): Add new parms for mode and signedness; + handle SUBREGs for promoted values. + (assign_parms): Promote the mode of parameters when useful for + the target machine. + * function.h (struct var_refs_queue): Remove unused field ORIGINAL. + Add new fields PROMOTED_MODE and UNSIGNEDP. + * integrate.c (expand_inline_function): Convert actual to formal's + mode (in case formal was promoted). + * loop.c (basic_induction_var): Add new parameter P. + Check for bivs that are set over multiple insns and also + allow a SIGN_EXTEND to be used; remove check for MINUS since + we don't make MINUS with a constant 2nd operand any more. + * optabs.c (expand_binop, expand_unop): Don't make SUBREG for promoted + variables as operands. + * stmt.c (tail_recursion_args): Use mode of DECL_RTL, not + DECL_MODE. + (expand_decl): Promote modes of scalar variables when useful on + target. + * unroll.c (find_splittable_regs): If any BIV update isn't + simple, don't split it. + (final_giv_value): Look for biv updates by matching insns; don't + try to reparse the insn. + * rs6000.h (PROMOTE_MODE): New macro. + + * rtlanal.c (reg_set_last): Allow old value to be a SUBREG. + + * rs6000.c (print_operand, case 'h', 'H', 'w'): Minor cleanups. + * rs6000.h (BRANCH_COST): Increase from 2 to 3. + * rs6000.md (smax, smin, umax, umin): Add define_splits. + + * alpha.h (PROMOTE_MODE): New macro. + (REG_ALLOC_ORDER): Put $0 in front of $21-$16. + (CONST_OK_FOR_LETTER): Change meanings of N, O, and P. + (BRANCH_COST): Increase from 3 to 4. + (PREDICATE_CODES): Add new predicates reg_or_cint_operand and + sext_add_operand. + * alpha.md (addsi3): subl can be used to sign-extend addition of + small negative constants. + (negsi2): Add pattern for (sign_extend (neg ..)). + (and pattern): Fix typo in constraint. + (ashldi3): Use new definition of constant letters. + (smax, smin, umax, umin): Add define_splits. + (compares): Can compare constant with zero by adding negative of + constant. + (store insns): Can store 0 into memory in both integer and FP. + * alpha.c (sext_add_operand, reg_or_cint_operand): New function.s + (print_operand, case 'r', case 'R'): Clean up code; use CONST0_RTX. - * c-lex.h (ridpointers, NORID): Declare/define here. - * c-lex.c, c-parse.y, objc-parse.y: Not here. + * rtl.c (note_insn_name): Fix typo: had NOT_INSN_DELETED_LABEL. - * sun3.h (WORD_SWITCH_TAKES_ARG): Add `-assert'. - (LINK_SPEC): Pass -assert to linker. + * jump.c (delete_insn): Don't change labels to NOTEs if we would + not really have deleted them. - * gbl-ctors.h (__CTOR_END__, __DTOR_END__): Remove `extern'. + * genconfig.c (walk_insn_part, case IF_THEN_ELSE): Refine when + HAVE_CMOVE_FLAG gets set. - * sparc.h (RTX_COSTS): Increase multiply cost to 20. - (MULSI3_LIBCALL): Use .umul. - (UMULSI3_LIBCALL): Deleted. +Sat Sep 19 14:52:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Dec 21 18:34:27 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * reload.c (find_reloads): Always use >= with FIRST_PSEUDO_REGISTER. - * combine.c (simplify_comparison): Allow OP0 to be VOIDmode if it - is a COMPARE or a comparison operation. + * i386mach.h (SIZE_TYPE): Defined. - * i860.md (bte): Remove now unneeded patterns. - Correct mode mismatch errors in patterns that will now be used. +Sat Sep 19 04:57:06 1992 James Van Artsdalen (james at bigtex.cactus.org) -Sat Dec 21 00:14:25 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i386.md (sCOND patterns): Don't allow a MEM in the SET_DEST, + because these insns can't have input reloads, and a MEM might need + an input address reload. - * ns32k.h (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Dummies deleted. - (INITIALIZE_TRAMPOLINE): Likewise. #error inserted. + * fold-const.c (fold_convert): Avoid using conversion of unsigned + to floating; offset value by hand to fit in signed type. - * ns32k.c (print_operand_address): For invalid address, just abort. +Sat Sep 19 00:50:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (FIXINCLUDES): New variable. - (includes, maketest): Use that. - * x-i386v4 (FIXINCLUDES): Override here. + * integrate.c (subst_constants): Do substitute in address of MEM dest. -Fri Dec 20 18:28:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload1.c (init_reload): Fix typo. - * dbxout.c (dbxout_really_begin_function): New subroutine. - (dbxout_function): Use that, but only if not DBX_FUNCTION_FIRST. - (dbxout_begin_function): New function. - * varasm.c (assemble_start_function): Call dbxout_begin_function. +Fri Sep 18 21:09:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dbxout.c (dbxout_function): Implement DBX_OUTPUT_FUNCTION_END. + * libgcc2.c: Declare _exit as volatile. - * sparc.md (movstrsi): Add missing double quote. + * function.c (assign_parms): Set MEM_IN_STRUCT_P right in stack slots. - * gcc.c (process_command): Handle -Xlinker. +Fri Sep 18 15:58:15 1992 James Van Artsdalen (james at bigtex.cactus.org) - * calls.c (expand_call): Treat vfork like setjmp. + * fixincludes: Don't look for *.h symlinks if the host doesn't + have symlinks. - * c-decl.c (implicitly_declare): Use push_obstacks_nochange. +Fri Sep 18 17:34:27 1992 Michael Meissner (meissner@osf.org) - * sparc.h (WORD_SWITCH_TAKES_ARG): Add -assert. - (LINK_SPEC): Pass -assert to linker. + * mips.md (call_internal): If the memory address to call is really + a constant integer, load it up into $at and do the call from + there. + (call_value_internal): Ditto. - * svr4.h (ASM_OUTPUT_LOCAL): Fix typo. +Fri Sep 18 03:48:17 1992 Tom Wood (wood@dg-rtp.dg.com) -Fri Dec 20 07:52:19 1991 Michael Tiemann (tiemann at cygnus.com) + * m88k.c (m88k_volatile_code): New variable. + (print_operand): Track volatile memory references and output a + serializing instruction before a load when necessary. + * m88k.h (TARGET_SWITCHES): Add -m{no,}serialize-volatile. + (OVERRIDE_OPTIONS): -m88110 and -m88000 imply -mserilize-volatile. + (ADJUST_INSN_LENGTH): Volatile memory operantions may be longer. + (CC_STATUS_INIT): Reset m88k_volatile_code to the unknown state. + * m88k.md (load store patterns): Prepend loads and stores with %V + and %v to track the type and address of the access. + + * m88k.c (m88k_version, m88k_version_0300): New variables. + * m88k.h (TARGET_OPTIONS): Generalize to -mversion-STRING. + (OVERRIDE_OPTIONS): Compute m88k_version_0300. + * m88k.md (call_movstrsi_loop): Renamed from call_block_move_loop. + Use call-value for the block move patterns. + + * m88kdgux.h (PERFERRED_DEBUGGING_TYPE): Compute based on + m88k_version. + (CPU_DEFAULT): Make it -m88000. + + * m88k.h: Don't use #elif + +Fri Sep 18 01:08:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * Makefile.in (install-common-headers): Don't copy byteorder.h. + +Thu Sep 17 20:06:22 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) + + Complete 13th Cygnus<-->FSF merge. + + Thu Sep 17 13:15:15 1992 Brendan Kehoe (brendan@rtl.cygnus.com) + + Do some much-needed housecleaning of the C++ front-end. + * cp-call.c (ideal_candidate): Move `p2' down inside #if 0'd (only) + section that actually uses it. Delete unused variable `buf'. + (build_method_call): Delete unused variable `dtor_specd'. + * cp-class.c (finish_struct): Delete unused variable `basetype'. + * cp-cvt.c (convert_to_aggr): Add missing argument decl for `protect'. + (convert_pointer_to): Delete unused variable `form'. + * cp-decl.c: Include string.h/strings.h for strncpy() decl. + Add decls for init_* fns. Delete unused decl `push_overload_decl_1'. + Don't use `c_function_varargs', C++ doesn't need it. + (push_binding_level): Add missing argument decls for + `tag_transparent' and `keep'. + (lookup_tag): Add missing argument decl for `tags_transparent'. + (lookup_name): Add missing argument decl for `prefer_type'. + (start_decl): Delete unused variables `classname' and `tmpl'. + (grokvardecl): Add missing argument decl for `initialized'. + (grokdeclarator): Delete unused variable `t'. + * cp-decl2.c (get_temp_name): Delete unused variable `temp'. + (finish_table): Delete unused variable `publicp'. + (finish_builtin_type): Add missing argument decl for `len'. + (finish_file): Delete unused variables `asm_out_file' and + `init_function_name'. + * cp-except.c (ansi_exception_object_lookup): Add missing + argument decl for `type'. + (cplus_expand_throw): Delete unused variables `cname', `name', + and `raise_id'. + * cp-init.c: Delete unneeded forward decl of `init_init_processing'. + (build_new): Delete unused variable `alignment'. + (expand_vec_init): Add missing argument decl for `from_array'. + (build_vec_delete): Delete unused variable `rval'. + * cp-input.c (feed_input): Add missing argument decl for `len'. + * cp-lex.c: Delete unused variable `nextlastiddecl'. + (check_newline): Delete unused variable `tmp'. Place `asm_out_file' + inside a conditional for ASM_OUTPUT_IDENT. + (real_yylex): Delete unused variable `typename_scope_in_progress' + and unused labels `relex' and `reswitch'. + * cp-method.c: Include string.h/strings.h for strncpy() decl. + (new_text_len): Deleted. + (dump_type_prefix): Delete unused variables `print_struct' and `name'. + (dump_tyupe): Delete unused variable `print_struct'. + (type_as_string): Delete unused variable `spaces'. + (do_inline_function_hair): Delete unused variable `cname'. + (flush_repeats): Delete unused variable `rval'. + (build_t_desc_overload): Delete unused variable `i'. + (build_opfncall): Add missing argument decl for `flags'. + (hack_identifier): Add missing argument decl for `yychar'. + * cp-parse.y (template_instantiate_once): Delete unused + variables `id' and `members'. + * cp-search.c (lookup_field): Add missing argument decl for `want_type'. + (tree_needs_constructor_p): Add missing argument decl for `i'. + (dfs_debug_mark): Delete unused variable `pending_vtables'. + (dfs_get_vbase_types): Delete unused variable `basetype'. + * cp-spew.c (init_spew): Delete unused variables `pc' and + `chars_following_typename'. + (yylex): Delete unused variables `dk' and `tmp'. Move decl of `t2' down + to the block that actually uses it. + * cp-tree.c (build_cplus_staticfn_type): Delete unused variable `ptype'. + (propagate_binfo_offsets): Delete unused variables `t' and `basetype'. + (layout_basetypes): Delete unused variable `binfo'. + (array_type_nelts_total): Delete unused variable `index_type'. + * cp-tree.h: Add many decls. + * cp-typeck.c (comp_array_types): Add missing argument decl + for `strict'. + (build_compound_expr): Delete unused variable `tmp'. + (convert_for_initialization): Delete unused label `converted'. + + Wed Sep 16 12:51:10 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * cp-decl2.c (lang_decode_option): Recognize more -fno-OPTION - options which need special treatment (in the turning off of the - option). + * cp-decl.c (init_decl_processing): Enable code to add sin and cos + as built-in functions. - * cp-parse.y (named_class_head_sans_basetype_either): Rule deleted. - (identifier_either): Rule deleted. - (delete): Don't call `build_x_delete'' if the type does not have a - destructor. We may still need to adjust the address passed to - `operator delete'. + * cp-decl.c (duplicate_decls): Enable code to preserve the DECL_UID + of olddecl. - * cp-init.c (build_delete): New argument MAYBE_ADJUST. All callers - changed. Also, add #if 0/#endif around code dealing with ALIGNMENT. - It's dead code, and that's unclear otherwise. - (maybe_adjust_addr_for_delete): New function. - (build_new): Initialize special header for arrays allocated with - `operator new[]'. This is a rewrite of Ken's code. - (init_init_processing): New built-in type BI_header_type. + * cp-search.c (lookup_nested_fields): Make sure we're climbing along + a chain of nested types, and nothing else. - * cp-init.c (build_{new,delete}): Call `build_builtin_call' for BIN, - BID. - (build_builtin_call): New function. + Tue Sep 15 17:38:34 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * cp-decl.c (grokvardecl): Set TREE_EXTERNAL. - (grokdeclarator): Set TREE_PUBLIC for all member functions. They - are effectively global. Do the same for static members. - (start_function): Don't clear TREE_EXTERNAL in case the function - belongs to another file's implementation. Other fixes to - TREE_PUBLIC/TREE_EXTERNAL logic based on interface/implementation. + * cp-search.c (lookup_nested_fields): New function. + * cp-tree.h: Declare it. + * cp-decl.c (lookup_name): Call it if there's no class-local + definition. (It could be nested.) + * cp-lex.c (do_identifier): Call lookup_nested_field() if necessary. - * cp-method.c (hack_identifier): Call `assemble_external' if - necessary. + Tue Sep 15 12:37:16 1992 Brendan Kehoe (brendan@rtl.cygnus.com) -Fri Dec 20 06:27:38 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon Aug 24 14:58:02 1992 Chip Salzenberg (chip at animal) - * reload1.c (emit_reload_insns): Always record first insn emitted - for a reload, including any insns for a secondary reload. - (gen_input_reload): Correct documentation of function. + * cp-typeck.c (build_conditional_expr): Determine constness + and volatility with TREE_... tests instead of TYPE_... tests. -Thu Dec 19 22:01:51 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Sep 14 18:00:35 1992 Chip Salzenberg (chip@tct.com) - * gnulib1.c (perform_fixdfsi): New customization macro. + * cp-decl.c (grokdeclarator): Remove redundant (and broken) + test for multiple destructors in a class. - * svr4.h (SELECT_RTX_SECTION): Undef before defining. + Fri Jul 31 19:09:10 1992 Chip Salzenberg (chip@tct.com) -Thu Dec 19 16:59:12 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-cvt.c (convert_to_integer): Push truncation inside COND_EXPR. - * cccp.c (hack_vms_include_specification): Make conversion of - filenames more versatile for user specified include directories. + Mon Sep 14 17:52:45 1992 Chip Salzenberg (chip@tct.com) -Thu Dec 19 17:38:18 1991 Michael Meissner (meissner at osf.org) + * cp-class.c (finish_struct): Always write all structure types, + even if they're defined in a "#pragma interface" header file. + Otherwise, XCOFF debugging info is messed up. - * mips.h (#error's): Put tab in front of all #error's, so that - ancient pre-ANSI compilers will not complain about unknown - directives, even if the #error is #ifdef'ed out. + Mon Sep 14 17:39:32 1992 Chip Salzenberg (chip@tct.com) - * mips.md (fix_trunc*): Reorder constraints so that 'd' comes before - 'f', and put a '*' in front of 'f' constraints to keep integer in - the GP registers. - (define_splits): Add reload_completed check for all define_splits - that use subreg on the arguments to work around bug in sched.c. + * cp-class.c (finish_struct): ``Actually, I don't understand + this code. What is it supposed to do?'' --Niklas Hallqvist - * cccp.c (lang_asm): New static variable to indicate we are - processing an assembly file and to ignore unknown directives in case - they are comments, like they are on the MIPS systems. - (main): Set lang_asm if -lang-asm switch. - (handle_directive, skip_if_group): Don't report about unknown - directives if lang_asm is set. + Mon Sep 14 17:27:23 1992 Chip Salzenberg (chip@tct.com) - * gcc.c (default_compilers array): Pass -lang-asm to cpp when - processing .S files instead of -lang-c. + * cp-decl.c (finish_decl): Don't dump core if a decl is anonymous. + A decl is at the global binding level if DECL_CONTEXT is null. + (grokdeclarator): Don't globalize a type if its first mention + is in a parameter. It's okay to initialize a function in a + non-global scope. -Thu Dec 19 15:06:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Tue Sep 15 12:15:26 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * c-decl.c (c_decode_option): Handle -fno-ident. - * c-lex.c (check_newline): Ignore #ident for -fno-ident. + * cp-typeck.c (c_expand_return): Emit a warning when they try to + return the address of a local variable. - * svr4.h (ASM_OUTPUT_LOCAL): Use assemble_name. + * cp-decl.c (finish_method): Make sure it's indeed nested before + checking for the qualified name. - * mips.h: Use #error, not #include, for error messages. + Mon Sep 14 18:59:25 1992 Mike Stump (mrs@cygnus.com) - * cccp.c (warning, main): Implement -Werror. + Wed Sep 2 11:04:24 1992 Chip Salzenberg (chip@tct.com) - * i386sco.h (CPP_SPEC): Move non-fixed option here. - (CPP_PREDEFINES): From here. + * cp-decl.c (init_decl_processing): Add sin and cos as built-in + functions. Fix type of __builtin_constant_p. - * gcc.c (do_spec_1): For %p, just pass -D options. - For %P, pass all -A options. Put in whitespace, fix typos. + * cp-lex.c (readescape): For \x, don't include leading 0's in count. - * c-parse.y (parmlist_2, defn_parmlist_2): Warn about (...). - * c-decl.c (get_parm_info): Don't warn here. + * cp-typeck.c (build_unary_op): For ADDR_EXPR, just set + TREE_CONSTANT if staticp, but don't clear TREE_CONSTANT. -Thu Dec 19 06:15:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon Sep 14 18:54:41 1992 Mike Stump (mrs@cygnus.com) - * toplev.c (compile_file): Avoid ordered comparison of debug_info_level - since it is an enum. + * cp-parse.y (permanent_obstack): Move to top of file. - * mips.c: Include gstab.h. + Mon Sep 14 18:50:19 1992 Mike Stump (mrs@cygnus.com) - * sparc.md: Fix typo. + Mon Sep 14 16:39:10 1992 Chip Salzenberg (chip@tct.com) - * caller-save.c (save_call_clobbered_regs): Don't save regs that - die in a CALL_INSN or that are born there. + [ Changes propagated from diffs to c-* in 920911 snapshot. ] -Thu Dec 19 04:28:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (duplicate_decls): Set DECL_INLINE in newdecl so it + is copied into olddecl. Don't set DECL_EXTERNAL in olddecl. + Preserve DECL_UID and DECL_FRIEND_P of olddecl. - * c-aux-info.c (gen_aux_info_record): Don't write space at line beg. + * cp-typeck.c (build_binary_op_nodefault): Don't assume that a + target integer fits in a HOST_WIDE_INT when checking shift widths. -Wed Dec 18 11:46:13 1991 Tom Wood (wood at dg-rtp.dg.com) + Mon Sep 14 18:15:42 1992 Mike Stump (mrs@cygnus.com) - * cse.c (cse_main): Use get_max_uid rather than computing it. + Mon Aug 24 14:32:03 1992 Chip Salzenberg (chip@tct.com) -Wed Dec 18 18:13:06 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (reserved_declspecs): Warn if storage class occurs here. + (declmods): Warn if storage class is not first. - * loop.c (scan_loop): Ensure replacement made by single-use code - is not modified in the life of the register being replaced. + Mon Sep 14 16:59:53 1992 Brendan Kehoe (brendan@rtl.cygnus.com) -Wed Dec 18 15:37:52 1991 Ron Guilmette (rfg at ncd.com) + * cp-method.c (fndecl_as_string): Don't output an extra space when + printing the return type of a function. - * rtl.h (fconst2_rtx, dconst2_rtx): Added extern declarations. + Mon Sep 14 16:01:53 1992 Mike Stump (mrs@cygnus.com) - * flags.h (flag_inhibit_size_directive): Declared. + Fri Jun 12 18:07:00 1992 Niklas Hallqvist (niklas@appli.se) - * svr4.h (INT_ASM_OP, INIT_SECTION_ASM_OP): Moved around. - (ASCII_DATA_ASM_OP): Definition added. - (flag_inhibit_size_directive): Deleted superfluous extern decls. + * cp-parse.y (structsp, named_class_head_sans_basetype): Call + overload_template_name in the case of template specializations so + that something like: - * Makefile.in: Correct number of expected shift/reduce conflicts - reported by bison for cp-parse.y. + template struct C { C(); }; + struct C { C(); }; - * sparcv4.h: New file. + works. - * i860.h (FUNCTION_ARG_BOUNDARY): Added definition. - (sfmode_constant_to_ulong): Added extern declaration. + Mon Sep 14 15:51:22 1992 Mike Stump (mrs@cygnus.com) - * i860.md (BTE/BTNE patterns): Changed all instances of - `(match_operand:SI 2 "zero_operand" "J")' to `(const_int 0)'. + Fri Apr 10 13:20:56 1992 Niklas Hallqvist (niklas@appli.se) - * i860.md (load then BTE/BTNE patterns): Added 8 new patterns, - for cond branch on EQ/NE of a zero-extended memref with small integer. + * cp-spew.c (spew_debug): exported this flag for use in cp-decl.c + (template_type_seen_before_scope): new global containing contextual + information for the parser, making the compiler grok nested types in + template classes. + (shift_tokens): Guard bcopy calls against moves of zero size. + (yylex): Handle nested types in template classes. - * i860.md: 20 new patterns (involving BTE/BTNE) like existing 20 - but simplified so that the combiner will find them. + * cp-parse.y (scoped_typename): Handle nested types in template + classes. + (template_type): Likewise. + (base_class.1): Likewise. + (member_init): Likewise. + (scoped_baseclass): New rule for handling of nested types in + template classes. - * i860.md (sfmode_constant_to_ulong, fconst2_rtx): Removed - superfluous nested extern declarations. + * cp-decl.c (xref_defn_tag): Conditionalized debug printout on + spew_debug (defined in cp-spew.c). + (binding_levels_sane): void function returned value. -Wed Dec 18 15:39:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Sep 14 15:41:28 1992 Mike Stump (mrs@cygnus.com) - * va-i860.h (va_start for stdarg.h): Divide reg counts by 4. + Mon Sep 14 17:26:18 1992 Chip Salzenberg (chip@tct.com) - * stmt.c (emit_case_nodes): Fix typo, near testing cost_table. + * cp-parse.y (unary_expr), cp-call.c (build_scoped_method_call): + NEVER use `maybe_adjust' feature in destructors. It's unsafe. - * i860.h (CUMULATIVE_ARGS): Define a named struct, then use it. + Mon Sep 14 15:12:34 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * function.c (expand_function_start): Compute sizes in proper order. + * cp-decl.c (finish_method): Complain when a qualifier is used as + part of a member declaration. - * svr4.h (MD_STARTFILE_PREFIX): Defined. - (STANDARD_STARTFILE_PREFIX): Deleted. + Mon Sep 14 11:47:30 1992 Mike Stump (mrs@cygnus.com) - * sparc.md (movstrsi): Disable if needs more than 32 insns. + * cp-decl2.c (groktypefield): Revert Wed Aug 19 14:47:08 1992 + change as it breaks template constructor declarations. Gez, this + code is horribly complex, and the comments are wrong. Note, + template constructor definitions are broken in the same way, as + declarations were with this patch in. - * expr.c (store_expr): Handle copying too-short STRING_CST. + Fri Sep 11 14:09:01 1992 Mike Stump (mrs@cygnus.com) - * gstdarg.h (_VA_LIST): Handle this like _VA_LIST_. + Fri Sep 11 10:34:45 PDT 1992 Ron Guilmette (rfg at netcom.com) - * m68k.h (LOCAL_LABEL_PREFIX): Remove the `L'. - Fix uses of %L by adding `L'. - * m68k.c (print_operand_address): Fix use of %L. - * m68k.md (movhi): Fix use of %L. They were inconsistent. + * cp-decl.c (duplicate_decls): For file-scope redefinitions, note + that the variable was previously *defined* at some specific (earlier) + point. -Wed Dec 18 14:59:26 1991 Michael Meissner (meissner at osf.org) + Fri Sep 11 13:49:55 1992 Mike Stump (mrs@cygnus.com) - * limits.h (whole file): Protect against inclusion. + Tue Sep 8 21:39:35 PDT 1992 Ron Guilmette (rfg at netcom.com) - * t-decrose (LIMITS_H): Don't install limits.h on OSF/1. - * t-encrose (LIMITS_H): Don't install limits.h on OSF/1. - * t-i386rose (LIMITS_H): Don't install limits.h on OSF/1. + * cp-decl2.c (finish_file): Don't pass `1's as the `functionbody' + flag to `poplevel' when getting ready to finishing up the per- + compilation-unit constructors and destructors. - * x-decrose (SYSTEM_INCLUDES): Don't do -I/usr/include. - * x-encrose (SYSTEM_INCLUDES): Don't do -I/usr/include. - * x-i386rose (SYSTEM_INCLUDES): Don't do -I/usr/include. + Fri Sep 11 13:28:02 1992 Mike Stump (mrs@cygnus.com) -Wed Dec 18 04:53:23 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * cp-decl.c (grokdeclarator): Upgrade local externs with + initializations to be errors, instead of warnings. - * cp-init.c (build_new): Rewrote some of the array-handling code. - Now stores the number of elements (after stripping off all outer - ARRAY_TYPE nodes) at the start of allocated storage, just before the - pointer the user's program sees. We also store the 2s compliment - value of the pointer returned so we can distinguish when deleting a - pointer whether it was "adjusted" or not. - (expand_vec_init): Added a type conversion for cases when the - address of an array gets passed in and we want to deal with the - elements. - (build_delete): Catch a case where deletion of arrays could slip - through. - (build_vec_delete): More array-handling rewrites. Extract the - stored value and use it as the number of objects to destroy; ignore - any value supplied by the user. + Fri Sep 11 13:03:52 1992 Mike Stump (mrs@cygnus.com) - * cp-init.c (init_vfields): Now static. + Thu Sep 10 09:40:56 PDT 1992 Ron Guilmette (rfg at netcom.com) - * cp-tree.h (struct lang_decl_flags): Merged "dummy" fields. + * cp-decl.c (grokdeclarator): Given an error if *either* a `static' + or an `extern' specifier is attached to a defining declaration of a + static data member. - * cp-tree.h (DECL_TEMPLATE_INSTANTIATIONS): New macro for finding a - list of instantiations already made of a template. (Only - implemented for functions currently.) - * cp-tree.def (DECL_TEMPLATE_INSTANTIATIONS): Describe it. - * cp-pt.c (instantiate_template): Maintain and make use of it. + Wed Sep 9 19:46:43 1992 Mike Stump (mrs@cygnus.com) - * cp-pt.c (tsubst, case REFERENCE_TYPE): Call build_reference_type - instead of constructing the type here. + * c++: Makes sure echo -nostdinc does not eat the -nostdinc. -Wed Dec 18 03:37:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Tue Sep 8 13:42:35 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * c-parse.y (label_decl): Use identifiers_or_typenames. + * cp-typeck.c (common_type, case FUNCTION_TYPE): An empty argument + list is represented as a void_type_node; make sure we check for + that, and not just an empty TYPE_ARG_TYPES list on either side. - * c-parse.y: Support FUNCTION ([ARGNAMES] DECLS) {...}. - (defn_parmlist_2, defn_parms): New nonterminals. - (identifiers_or_typenames): New nonterminal. - (parmlist_or_identifiers_1): Changed. - * c-decl.c (combine_parm_decls): New function. + Tue Sep 8 02:31:05 1992 Mike Stump (mrs@cygnus.com) -Tue Dec 17 22:18:43 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-tree.c (layout_basetypes, make_binfo): Added support for + debugging information about virtual base class pointers. - * function.c (expand_main_function): Build SYMBOL_REF with Pmode, - not VOIDmode. + Mon Sep 7 15:34:58 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * rs6000.h (HARD_REGNO_NREGS, CLASS_MAX_NREGS): FP regs can only hold - 64 bits, not any size FP value. + * cp-decl2.c (temp_name_p): Deleted function, never used anywhere. - * reload1.c (reload): Remove variable old_caller_save_needed. - Call init_save_areas and setup_save_areas instead of - allocate_save_areas and elim_save_addrs. - * caller-save.c (init_caller_save): New function, from part of - allocate_save_areas. - (setup_save_areas): New function, from rest of allocate_save_areas - and elim_save_addrs. - When scanning pseudos to find hard regs that might need caller-save, - look at all parts of multi-word registers. + Sun Sep 6 23:09:29 1992 John F Carr (jfc at Athena.MIT.EDU) - * flow.c (elim_reg_set): New variable. - (flow_analysis): Set it to contain those regs that we can eliminate. - (mark_used_regs): Don't set eliminable regs as live when they are used. + * cp-typeck.c (convert_arguments): Ignore arguments which are + ERROR_MARK_NODE to avoid crashes trying to reference fields which + are not present. - * global-alloc.c (global_alloc): Clear preferences with eliminable - regs, in addition to clearing conflicts. + Mon Sep 7 12:34:09 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * reload.c (find_reloads_toplev): Abort instead of making - a SUBREG of a VOIDmode constant. + * cp-decl.c (clear_anon_tags): Do assignment of B after we've seen + if we're to work on an anonymous aggregate. No need to make the + assignment for nearly every aggr we ever declare. - * emit-rtl.c (copy_rtx_if_shared): SCRATCH may always be shared. + Sun Sep 6 17:51:47 1992 Mike Stump (mrs@cygnus.com) -Tue Dec 17 21:06:03 1991 Michael Meissner (meissner at osf.org) + Sun Sep 6 13:12:16 1992 John Carr (jfc@Athena.MIT.EDU) - * mips.h (MIPS_VERSION): Bump MM version number to 5. - (processor_type): New enum to hold which type of - processor to schedule for. - (mips_cpu): New global to hold processor type. - (MASK_*, TARGET_*): Rearrange target bits, add bits to select - processor type, r4000 int/long/long long sizes. - (TARGET_SWITCHES): Delete redunant no options, only leave no- - version. - (CUMULATIVE_ARGS): Make this a structure, not a pointer to a - structure. - (INIT_CUMULATIVE_ARGS): CUMULATIVE_ARGS changes. - (FUNCTION_ARG_ADVANCE): Ditto. - (FUNCTION_ARG): Ditto. - (FUNCTION_ARG_PARTIAL_NREGS): Ditto. - (RTX_COSTS): Count simple memory refs as one instruction. - (REGISTER_MOVE_COST): Define as 4, to make sure constraints are - checked. + * cp-decl.c (pushdecl, finish_decl, store_return_init, + finish_function), cp-decl2.c (constructor_name, finish_file), + cp-except.c (cplus_expand_reraise), cp-init.c (emit_base_init, + expand_aggr_init_1), cp-typeck.c (build_modify_expr, + c_expand_asm_operands, c_expand_return): Include rtl.h and eliminate + unneeded casts. - * mips.md (hilo type attribute): Add hilo type attribute to - separate moves to/from the hi/lo registers with other register - transfers. - (move patterns): Set hilo attribute as appropriate. - (define_function_units): Update the integer and memory functional - units to include R4000 and R6000 processors, keyed off of the - -mr[46]000 switches. Add a new functional unit for transfering - stuff between register sets. - (mov{sf,df}_xfer*): Remove these patterns, as they are no longer - needed in GCC 2.00 to move between the different register sets, - and generate insn not found messages if used. - (movsi_ulw, movsi_usw): Correct test to see if stack loads are - aligned. Use UNITS_PER_WORD-1 instead of a hard coded 3. - (move define_expands): Delete move define_expands, since they are - illegal according to the documentation, and the bug they guard - against has long ago been fixed. + * cp-decl2.c (grokbitfield): Use NULL_TREE instead of NULL. - * mips.c (mips_cpu): New global to hold processor type. - (override_options): Set mips_cpu, check for 64 bit r4000 switches - if processor not a r4000. - (init_cumulative_args): CUMULATIVE_ARGS changes. - (function_arg_advance): Ditto. - (function_arg): Ditto. - (function_arg_partial_nregs): Ditto. - (mips_output_filename): Except for first .file, don't emit any other - .file if encapsulating stabs in ECOFF, just put out stabs. This - confuses gdb. - (mips_output_lineno): Don't put out .loc's if encapulating stabs in - ECOFF. - (mips_asm_file_start): Put a .set nobopt for MIPS assembler to - work around bug where the assembler goes bonkers if a branch - inside of a .set noreorder section jumps to a label outside of a - .set noreorder section. This is supposed to be fixed in 2.20 of - the assembler. - (function_epilogue): Correctly emit nops with tabs and newlines if - needed. + * cp-decl2.c (finish_file): Don't try and not use stdio.h. - * decrose.h (OBJECT_FORMAT_ROSE): Define, to tell collect to - enable OSF/rose support, rather than use nm. + * cp-except.c (cplus_expand_reraise): emit_move_insn takes 2 + arguments, not three. - * encrose.h (OBJECT_FORMAT_ROSE): Define, to tell collect to - enable OSF/rose support, rather than use nm. + Sat Sep 5 12:04:06 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * i386rose.h (OBJECT_FORMAT_ROSE): Define, to tell collect to - enable OSF/rose support, rather than use nm. + * cp-decl.c (finish_function): Undo change of Mon Aug 17 16:28:48 + 1992; it resulted in lots of unnecessary and incorrect warnings. - * t-decrose (EXTRA_PASSES): Build collect2 instead of collect-osf, - and link it to ld. + * cp-lex.c (do_identifier): For nested classes, check if a variable + being sought is actually in the scope of an enclosing class. If it + is, and the variable's non-static, bail. - * t-encrose (EXTRA_PASSES): Build collect2 instead of collect-osf, - and link it to ld. + * cp-decl.c (grok_enum_decls): Tighten up some code that was pretty + twisty. - * t-i386rose (EXTRA_PASSES): Build collect2 instead of collect-osf, - and link it to ld. + * cp-class.c (start_struct): Delete; it was #if 0'd out anyway (C++ + doesn't need it), and is an old hold-over from c-decl.c. - * x-decrose (DEBUG): Delete -g, since CFLAGS already passes it. - (GCC_CFLAGS): Define POSIX so we can build protoize. + * cp-class.c (minus_one_node): Delete, it's not used. + (init_class_processing): Delete init of minus_one_node. - * x-encrose (DEBUG): Delete -g, since CFLAGS already passes it. - (GCC_CFLAGS): Define POSIX so we can build protoize. + * cp-spew.c (yylex): Check return of resolve_scope_to_name to + be NULL_TREE. + (frob_identifier): Likewise. + (hack_more_ids): Likewise. - * x-i386rose (DEBUG): Delete -g, since CFLAGS already passes it. - (GCC_CFLAGS): Define POSIX so we can build protoize. + * cp-cvt.c (convert_to_real): Use REAL_VALUE_ATOF to make 0. - * t-decstatn (EXTRA_PASSES): Explicitly mention collect2. - (ld): Use $(SYMLINK) rather than just ln. + Fri Sep 4 19:23:17 1992 Mike Stump (mrs@cygnus.com) - * t-mips (EXTRA_PASSES): Explicitly mention collect2. + * cp-decl.c (grok_ctor_properties): When looking for copy + constructors, ignore the first argument since it is the in$chrg + parameter for the object to copy from. - * collect2.c (whole file): Rewrite file based on collect-osf, to - make it more portable. Highlights include: running ld only once if - there are no constructors; OSF/rose support; not assuming that the - linker, assembler, nm live in /bin; -v support to trace the commands - being executed and print a version number; loops instead of - recursion used to write out the tables; support for user using -r; - checking all error returns; not using the shell to start processes. + Fri Sep 4 14:35:31 1992 Mike Stump (mrs@cygnus.com) - * collect-osf.c (whole file): Deleted, merged into collect2.c. + * cp-cvt.c (build_up_reference): Prevent the compiler from dumping + core on semantic errors. -Tue Dec 17 15:49:06 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Thu Sep 17 17:28:13 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sched.c (schedule_insns): Don't update value of reg_live_length - when it is negative, because negative values are special. + * c-typeck.c (initializer_constant_valid_p): Warn about address + arithmetic destined for a type that's too narrow. + New argument ENDTYPE. - * sched.c (schedule_block): Make new_needs an int not an enum, since - some compilers won't accept using `|' and `&' with enums. + * limitx.h: Don't include-next if _LIBC_LIMITS_H_ defined. - * sparc.md: Don't emit nop after floating point compare; this is - no longer needed. +Thu Sep 17 20:45:16 1992 Paul Eggert (eggert@twinsun.com) - From Tom Wood: - * sched.c (memrefs_conflict_p): Exchange xsize and ysize when x - and y are exchanged. + * cexp.y (parse_escape): Diagnose '\x' with no digits. + Diagnose integer overflow when parsing \x escapes. -Tue Dec 17 15:01:04 1991 Mark Eichin (eichin at cygnus.com) +Thu Sep 17 11:52:53 1992 Michael Meissner (meissner@osf.org) - * cp-decl.c (set_nested_typename): use SET_IDENTIFIER_TYPE_VALUE, - not set_identifier_type_value, so that the binding doesn't get - unwound by leaving class scope. + * gcc.c (SIGNED_CHAR_SPEC): Use #if rather than ?: in default defn. -Tue Dec 17 10:57:12 1991 Tom Wood (wood at dg-rtp.dg.com) +Thu Sep 17 14:53:51 1992 Tim Moore (moore@defmacro.cs.utah.edu) - * toplev.c (main): Make -g0 produce no debugging information. + * pa.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Fix double integer + argument alignment. + (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_SIZE): Define. + * pa-hpux.h, pa-ghpux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, + WCHAR_SIZE): Define for hpux. + * x-pa, t-pa : New files. + * configure (hppa cases): add definitions for xmake_file and + tmake_file. -Tue Dec 17 15:15:20 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Wed Sep 16 22:22:15 1992 James Van Artsdalen (james at bigtex.cactus.org) - * gcc.c (do_spec_1): In %P, duplicate the names with __ just in front. + * i386.c (print_operand): Don't abort if error: might have been a + user asm. - * gstab.h: Renamed from stab.h. - * collect2.c, dbxout.c, final.c, mips-tfile.c: #include changed. - * dbxout.c (N_CATCH): Define this if stab.h does not. - * Makefile.in: Depend on gstab.h where appropriate. + * i386.md (addsi3,ashlsi3): Handle the case where the stack + pointer appears as an index reg. - * Makefile.in (STAGESTUFF): Remove collect and collect2. +Wed Sep 16 21:22:23 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-parse.y (parmlist_2): Allow just `...' with no named args. - * c-decl.c (get_parm_info): Pedantic warning for that usage. + * cse.c (fold_rtx): For SUBREG, actually test subreg_lowpart_p in the + code to handle narrowing subregs. And exclude binary ops like DIV + where truncating the args is not valid. - * final.c (final_scan_insn): Don't output blocks for -g1. + * libgcc2.c (__CTOR_LIST__, __DTOR_LIST__): Moved to separate member. + * Makefile.in (LIB2FUNCS): Added _ctors. - * Makefile.in (crtbegin.o, crtend.o): Use -g0. +Wed Sep 16 23:28:41 1992 Paul Eggert (eggert@twinsun.com) - * function.c (expand_main_function): Do nothing if INIT_SECTION_ASM_OP. + * cexp.y (parse_number): Warn about '9' in octal constants. + Commonize overflow detection for various radices. - * varasm.c (assemble_asm): Handle ADDR_EXPR of a STRING_CST. - * stmt.c (expand_asm): Likewise. - * c-parse.y (extdef, stmt): Accept STRING_CST or ADDR_EXPR in asm. +Wed Sep 16 19:33:37 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) -Tue Dec 17 15:01:11 1991 Tom Wood (wood at dg-rtp.dg.com) + * pa.md (casesi): Use emit_jump_insn to emit casesi0 pattern. + (xorsi3): Remove `r' from output template. + (movstrsi recognizer): Add `+' to operand 0 & 1 constraints. - * m88k.h (INIT_SECTION_ASM_OP): Override svr[34].h. - * m88kv4.h (INIT_SECTION_ASM_OP): Override svr4.h and m88k.h. - * m88kdgux.h ({INIT,CTORS,DTORS}_SECTION_ASM_OP): Override m88k.h - except when compiling crtstuff.c. +Wed Sep 16 14:53:51 1992 Michael Meissner (meissner@osf.org) -Mon Dec 16 21:50:42 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips.h (MIPS_VERSION): Set Meissner version # to 25. - * stmt.c (struct case_node): Remove unused field `test_label'. - (pushcase, pushcase_range): Don't initialize it. + * mips.c (gen_int_relational): Eliminate all vestiages of + figuring out whether the comparison will always be true or false. + Let the optimizer figure it out. + (gen_conditional_branch): Ditto. + (function_epilogue): Print correct number of half-pic pointers + and references. + (prev_half_pic_refs): New static variable. + (prev_half_pic_ptrs): New static variable. - * stmt.c (check_for_full_enumeration_handling): Only print warnings - if -Wswitch is specified. - (expand_end_case): Call check_for_full_enumeration_handling even if - -Wswitch is not specified. +Tue Sep 15 16:10:47 PDT 1992 Ron Guilmette (rfg at netcom.com) - * expr.c (convert_move): Add missing arg to call to force_reg. - (convert_to_mode): Likewise, for protect_from_queue. + * toplev.c (rest_of_decl_compilation): Call `dwarfout_file_scope_decl' + immediately for actual *definitions* of file-scope variables (and + file-scope typedefs too). -Mon Dec 16 20:33:10 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Sep 15 20:56:31 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * expr.c (expand_builtin): Check number and types of args. + * fixincludes (EXINIT): Clear it to avoid problems with bad values. + * fixinc.svr4 (EXINIT): Likewise. - * c-parse.y (stmt, extdef): Allow constant expression inside plain asm. + * print-tree.c (print_node): Don't print blank line for null + fields in a TREE_VEC. - * m68k.md (movhi): Use asm_fprintf to print .set or equivalent. - * m68k.c (print_operand_address): Use %R when printing pc register. - * m68k.h (ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): - Use %L. + * cccp.c (macroexpand): Don't output another error message if have + already output error message returned from macarg. - * c-typeck.c, cp-typeck.c (c_sizeof): Give error for incomplete type. + * c-decl.c (grokparms): Copy parm list if it isn't permanent, + instead of copying it if temporary allocation has been turned off. -Mon Dec 16 11:14:28 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * final.c (only_leaf_regs_used): Check for global_regs. - * cp-decl.c (init_decl_processing): Don't declare unused function - __builtin_vec_delete. + * c-parse.y (typespec): Don't warn if pedantic when typeof used. -Mon Dec 16 08:35:04 1991 Torbjorn Granlund (tege at hal.gnu.ai.mit.edu) + * c-tree.h (lang_identifier): Add limbo_value field for out of + scope block level extern declarations. + (IDENTIFIER_LIMBO_VALUE): New define, to access that field. + * c-decl.c (print_lang_identifier): Print value of limbo field. + (pushdecl): Check an extern decl against both previous global and + previous limbo declarations. For global declarations, clear limbo + value field. For block level extern declarations, set limbo field + if zero. + (grokdeclarator): If this is a block level extern, then allocate + it on the permanent obstack, not the temporary obstack. - * gnulib2.c (__udivmoddi4): Add comment. +Tue Sep 15 15:42:24 1992 Paul Eggert (eggert@twinsun.com) -Mon Dec 16 07:47:13 1991 Michael Tiemann (tiemann at cygnus.com) + * tree.c (int_fits_type_p): Negative ints never fit unsigned + types, and unsigned ints with top-bit-set never fit signed types. + * c-lex.c (yylex): Integer constant is unsigned for purposes of + int_fits_type_p so that it compares huge constants properly. - * cp-call.c (ideal_candidate): Always set BEST before using it. - Also, call `build_component_ref_1' with 3 args everywhere, and - `build_indirect_ref' with 2 args everywhere. +Tue Sep 15 14:44:51 1992 Michael Meissner (meissner@osf.org) -Mon Dec 16 07:17:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i386.md (string move, string compare): Always issue cld + instruction before doing a rep string move, so that we are + guaranteed that the bytes are moved/compared correctly. - * reload.h: Add `extern' to function declarations. - (gen_input_reload): Add declaration. - * reload1.c (reload): Allocate save area if caller-saves are needed; - check for case when it becomes needed after some spill registers are - obtained. - Can now eliminate frame pointer even when caller-saves are needed. - Perform register elimination of save area and see if caller-save needs - a spill register. - If required, find a spill register and pass it to caller-save code. - (gen_input_reload): No longer static. - * Makefile.in (caller-save.o): Now includes reload.h (again). - * global-alloc.c (global_alloc): Can eliminate frame pointer even if - we have caller-saves. - * toplev.c (compile_file): Call init_caller_saves. - - * caller-save.c: Major rewrite; almost entirely new code. - Integrate caller-saving with frame pointer elimination. - Don't try to save and restore registers that cannot be directly - copied to memory (such as MQ). - Correctly place save and restore insns. - Don't restore a saved register until end of block or if it is needed. +Tue Sep 15 00:09:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (mention_regs): Now returns int to indicate that the hash code - may have changed. - For COMPARE and comparison op, ensure that any register operand has - a quantity number. - (insert_regs): Return value from mention_regs. - (rehash_using_reg): New function. - (record_jump_equiv, mention_regs): Call rehash_using_reg if an operand - of a compare is a REG whose hash code is changing. + * gstdarg.h: (va_arg): Cast ptr to void *, then to TYPE *. + * va-i960.h, va-m88k.h, va-mips.h, va-pa.h, va-pyr.h, va-sparc.h: + Likewise. -Mon Dec 16 07:09:21 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * rtl.c (ftell): Declaration deleted. - * function.c (expand_main_function): New subroutine. Call __main. - * c-decl.c, cp-decl.c (store_parm_decls): Use that. - * cp-decl.c (init_decl_processing): Don't declare __main. +Mon Sep 14 15:17:09 1992 Michael Meissner (meissner@osf.org) - * objc-actions.c (init_objc): Call __objcInit as a constructor. + * configure (arg processing): Add --with-stabs switch. + (all mips configurations, except decrose): If --with-stabs, use + the configuration file that emits stabs as the debug debug + configuration, rather than the native MIPS ECOFF format. - * toplev.c (compile_file): Reenable SDB code #if 0'd before. +Mon Sep 14 13:28:29 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * protoize.c (version_string): Make it extern. - * Makefile.in (protoize, unprotoize): Link with version.o. + * configure (option case statement): Index with `$next_arg' instead + of `next_arg'. Clean up order and indentation for switches. + (several places): Remove space around assignment `='. + (usage printing): Don't use `-n' for echo (SysV lossage). + Print config.status with `tail +2'. -Sun Dec 15 23:31:47 1991 Michael Tiemann (tiemann at cygnus.com) +Mon Sep 14 23:46:19 1992 Paul Eggert (eggert@twinsun.com) - * cp-tree.c (virtual_member): When recurring, don't dive into - nonexistent baseclasses. + * c-lex.c (yylex): Warn about integers so large that they are unsigned. - * cp-decl.c (grokdeclarator): Set TREE_STATIC for initialized const - arrays. - * cp-typeck.c (mark_addressable): A decl that was TREE_STATIC might - be chagned to TREE_EXTERNAL due to #pragma interface/implementation. + * cexp.y (parse_number): Diagnose integer constants that are too large. + Diagnose duplicate `l' and `u' suffixes. Diagnose ` 0x ' and ` 0a '. + Warn about integer constants that are so large that they are unsigned. -Sun Dec 15 14:57:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Mon Sep 14 10:26:34 1992 Charles Hannum (mycroft@hal.gnu.ai.mit.edu) - * Makefile.in (SYSCALLS.c.X): Fix typo. - (INTERNAL_CFLAGS): Delete -DMERGED. + * reload1.c (init_reload): Fix typo in last change. - * dbxout.c (dbxout_init): Pass proper args to ASM_OUTPUT_MAIN_*. - * newpbb.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Add proper arguments. +Mon Sep 14 01:17:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * stmt.c (emit_case_nodes): Rewrite to change induction conditions. - Handle boundedness in the bounded node itself. - Handle branching entirely at the parent level. + * reload1.c (init_reload): For reg+reg+const, try various regs. - * gstdarg.h: Use va-i860.h. - * va-i860.h (va_start for ANSI): Fix typo. Call __builtin_next_arg. +Sun Sep 13 01:08:06 1992 Paul Eggert (eggert@twinsun.com) -Sat Dec 14 20:45:30 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cexp.y (exp): Detect signed integer overflow. + Replace `(unsigned)' with `(unsigned long)'. When + evaluating << and >>, compute the correct answer without shifting + by more than HOST_BITS_PER_LONG, or by a negative quantity. + (integer_overflow, left_shift, right_shift): New functions. - * Makefile.in (USER_H): va-hp9k8.h should be va-hp800.h. +Sun Sep 13 02:00:52 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * loop.c (invariant_p): Call-clobbered register is not invariant if - loop has calls. - (count_loop_regs_set): Count a CLOBBER as a setting of a register. + * arm.md: Clean up indentation. - * stmt.c: Move include of ctype.h and definition of cost variables to - front of file. - (expand_end_case): Always set use_cost_table. Check type here instead - of in estimate_case_costs. Don't suppress use of cost table when - not optimizing. - (estimate_case_costs): Now returns int. Check for any case tag - that is an unusual control character here and reject use of table - if so. Always do comparisons signed, since that's how we access the - cost table. - (balance_case_nodes): Don't check for strange control characters here. - (node_has_low_bound): Do checking if we don't have a left branch, - instead of if we do. - (node_has_{low,high}_bound): Remove spurious checks on branches. - (emit_case_nodes): Ensure operation passed to emit_cmp_insn matches - the branch we actually emit. - Fix case of a range node with no left or right branch; use of case - and default label were backward for the high test. - Remove unused variables defaulted_{left,right}. + * pa.c (output_load_address): Removed. Nothing uses it. + * pa.md (high:DI recognizer): Add return \"\". + * pa.md (sCC, bCC expanders): Remove constraints. + * pa.md (and-with-immediate optimizer): New pattern. + * pa.md (ior-with-immediate optimizer): New pattern. + * pa.c (consec_zeros_p, and_operand, ior_mask_p, ior_operand, + output_and, output_ior): New functions. + * pa.h (output_and, output_ior): Declare. + * pa.h (CONST_OK_FOR_LETTER_P): Add 'O' and 'P'. + * pa.c (compute_xdepi_operands_from_integer): New function. + Some code come from output_zdepi. + (output_zdepi): Removed. + (depi_cint_operand): New name for zdepi_operand. + * pa.md (adddi3): Extend to handle CONST_INT. + * pa.md (movstrsi): Change `!= 4' => `< 4' in test for alignment. + * pa.md (negsi2): Don't use @ for just one output template. + * pa.md (and-not patterns): Make them canonical. Put operands in + the right order. + * pa.md (casesi): Rewrite. Used to be buggy and slow. + * pa.md (several patterns): Make sure # of attribute alternatives + match # of constraint alternatives. + Return assembler output template instead of calling output_asm_insn. + Don't write to operands[n] for n >= max operand number in the + pattern, use xoperands instead. -Sat Dec 14 16:10:11 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sat Sep 12 15:06:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * protoize.c: Don't include limits.h. - Rename `pathname' to `filename' everywhere. - Clean up indentation of fprintf calls. - Use standard GNU format for file name/line in error messages. - (n_base_source_files): Renamed from base_source_files. - (convert_filename, invocation_filename, base_source_filenames): - `path' renamed to `filename'. - (syscalls_absolute_filename): Renamed from syscalls_pathname. - (find_file): Arg FILENAME no longer const. - (main): Fix getcwd error-checking logic. - (varargs_style_indicator): Delete `const'. - (savestring): Declare arg `input' const. + * regclass.c (record_reg_classes): + Ignore leading % when examining constraint. + Don't bypass usual cost computation when a pseudo "matches" + a non-pseudo in matching operands. - * Makefile.in (protoize, protoize.o, unprotoize, unprotoize.o): - Use GCC_FOR_TARGET. - (getopt.o, getopt1.o): Likewise. - (GCC_FOR_TARGET): Delete -B./. - (GCC_CFLAGS): Add -B./. Copy ALL_CFLAGS's definition, less XCFLAGS. + * c-lex.c (yylex): If integer value overflows so highword is negative, + it needs unsigned long long. - * cp-init.c (add_friends): Pass proper args to strncmp. +Fri Sep 11 21:09:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (compile_file): Clear DECL_RTL for vars not really output. - #if 0 possibly redundant code for SDB output. + * sys-types.h (va_alist): Supply `int' as the type to define it as. - * sys-types.h: Include gstddef.h to get size_t and wchar_t. +Fri Sep 11 12:39:39 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * ultrix.h (CPP_PREDEFINED): Add __unix, __ultrix, __bsd4_2. + * pa.md (non-[cf]branch define_delay): Use a single delay description + for the delay slots in "branch", "call", and "milli" insns. + (fbranch define_delay): fbranches have a single delay slot which + may be nullified when the branch is taken (regardless of direction + or distance to the target.) + (in_branch_delay attribute): Disallow fbranch insns explicitly. + (floating point branches): Use "fbranch" attribute for these insns. + Update output template to properly handle nullification. - * Makefile.in (STAGESTUFF): Add collect, collect2. +Fri Sep 11 10:34:45 PDT 1992 Ron Guilmette (rfg at netcom.com) -Sat Dec 14 12:16:12 1991 Michael Tiemann (tiemann at cygnus.com) + * c-decl.c (duplicate_decls): For file-scope redefinitions, + error message distinguishes previous definitions from mere decls. - * cp-search.c (get_baselinks): Use obstacks right, instead of - aborting when we know we're using them wrong. +Fri Sep 11 01:07:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-parse.y (structsp): Fix typo in exception declaration rule. + * c-convert.c (convert_to_integer): Don't pass truncation thru lshift + if shift count >= width of narrower type. Instead, just use 0. - * cp-typeck.c (build_modify_expr_1): Recursive call to - `build_modify_expr_1' used pre-BINFO representation for - BASETYPE_PATH argument. + * we32k.h (SIZE_TYPE): Defined. - * cp-decl.c (start_decl): Don't switch to temporary allocation for - decls of type REFERENCE_TYPE, as their initializers may live a long - time, too. +Fri Sep 11 00:03:45 1992 Paul Eggert (eggert@twinsun.com) -Sat Dec 14 07:11:03 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-decl.c (finish_struct): Don't assume that a target integer + fits in a HOST_WIDE_INT when checking bit-field widths. + * c-typeck.c (build_binary_op): Likewise, when checking shift widths. - * reload.c (find_reloads_toplev): If we have a SUBREG of a multi-word - constant, try to extract just the word we want. +Thu Sep 10 22:23:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * global-alloc.c (global_alloc): Correct reference to ELIMINABLES. + * optabs.c (expand_binop): + Convert op1 of shift libcall to word_mode. -Fri Dec 13 15:28:38 1991 Michael Meissner (meissner at osf.org) +Thu Sep 10 18:14:36 1992 Tim Moore (moore@defmacro.cs.utah.edu) - * configure (mips-mips-sysv): On MIPS System V, use xm-umips.h, not - xm-mips.h. + * final.c (shorten_branches): Do shorten branches with delay slots + if the number of delay slots is constant. + * genattrtab.c (write_const_num_delay_slots): New function; + creates const_num_delay_slots (). + (main): Call it. + * genattr.c (main): Write declaration for const_num_delay_slots (). - * gstddef.h (__PTRDIFF_TYPE__): Provide default definition in case - non-GCC 2.00 compiler is used. - (__SIZE_TYPE__): Ditto. - (__WCHAR_TYPE__): Ditto. +Thu Sep 10 17:33:42 1992 Michael Meissner (meissner@osf.org) -Fri Dec 13 14:49:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * mips.md (all move patterns): Do not allow memory to memory or + non-zero constant to memory moves to be generated, which causes + reload to generate the load/store using spilled registers, and + does not allow for efficient CSE or scheduling to be done. - * config.sub: Renamed from config.subr. - Support os -sym1. - Convert -svr3, -svr4 to -sysv3, -sysv4. - * configure: Used new name. + * dec-gosf1.h, iris4g.h: New files. - * Makefile.in (includes): Preserve files from GCC already in dir. +Thu Sep 10 12:46:17 1992 Torbjorn Granlund (tege@jupiter.sics.se) -Fri Dec 13 11:01:12 1991 Fred Fish (fnf at fishpond) + * pa.md (casesi): Add `&' to constraint for clobber operand. - * att386.h: Fix unparenthesized macro arguments in - ASM_OUTPUT_ASCII macro. + * optabs.c (expand_binop): Fix typo, `mode' => `methods'. - * i386v4.h: Select an assembly language syntax file and include - it. Supply missing macros from ones in i386v.h (TARGET_DEFAULT, - VALUE_REGNO, FUNCTION_VALUE_REGNO_P). +Thu Sep 10 00:21:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * svr4.h: Fix misspelled variable name labelno (was labeno). + * optabs.c (expand_binop): Delete #ifdef GPC; complex code now uncond. -Fri Dec 13 09:07:22 1991 Michael Tiemann (tiemann at cygnus.com) + * optabs.c (init_fixtab): Fix typo for fix_truncdfqi2. - * cp-typeck.c (build_component_ref): Call `assemble_external' as - nec. - (build_function_call_real): Call `assemble_external' as nec. for - function calls we build. Code slightly rearranged for clarity. - * cp-call.c (build_method_call): Call `assemble_external' as nec. +Wed Sep 9 13:25:53 PDT 1992 Ron Guilmette (rfg at netcom.com) -Thu Dec 12 22:03:52 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) + * c-common.c (declare_function_name): Allow for anonymous function. - * make-cc1.com: Change message given to user. Change c-parse_tab.* - to c-parse.* +Wed Sep 9 15:56:09 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * config-gcc.com: Purge excess versions of version.opt. + * Makefile.in (mostlyclean): Delete xlimits.h. -Thu Dec 12 20:25:20 1991 Michael Meissner (meissner at osf.org) + * final.c (output_addr_const): + If 2nd arg of MINUS is negative integer, put it in parens. - * Makefile.in (BOOT_CFLAGS): Remove quotes around the argument, - since this causes a syntax error when it is later expanded. +Wed Sep 9 10:10:30 1992 Michael Meissner (meissner@osf.org) -Thu Dec 12 17:53:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * va-mips.h (va_arg): Handle structures larger than 8 bytes. + (all macros): Put __ in front of all macro arguments. - * config.subr: Add many new machines and some OS's. +Wed Sep 9 00:45:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * va-i860.h: Rewrite from rfg. + * sol2-crt1.asm (.nope): Really store into environ. - * toplev.c (main): Handle -dm on USG systems. + * libgcc2.c (__gcc_bcmp): New function, in cond on L__gcc_bcmp. + * Makefile.in (LIB2FUNCS): Add L__gcc_bcmp. - * m68k.c (print_operand, print_operand_address): New functions. - * m68k.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Just call them. + * expr.c (expand_expr): Support IN_EXPR. - * m68k.c (S_*, D_*): Delete the #undefs at the end. +Tue Sep 8 20:04:43 1992 Paul Eggert (eggert@twinsun.com) - * stmt.c (expand_return): Special case if fcn returns void. + * c-convert.c (convert_to_integer): When optimizing LSHIFT_EXPR and + RSHIFT_EXPR, do compares at tree level. - * objc-actions.c (build_objc_method_call): Fix typo in NeXT case. + * tree.c (build_index_type, build_index_2_type): Don't pass + HOST_WIDE_INT to routine expecting an int. Don't pass negative + value even if hash code is INT_MIN. - * expr.c (expand_builtin, BUILT_IN_ARGS_INFO): Cast init of word_ptr. +Tue Sep 8 17:35:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * protoize.c: Delete the `extern "C"' for C++ compilation. + * dbxout.c (dbxout_type_fields): Handle nameless subrecords for Pascal. + (dbxout_type): Handle CHAR_TYPE, BOOLEAN_TYPE. FILE_TYPE, SET_TYPE. -Thu Dec 12 10:01:13 1991 Michael Meissner (meissner at osf.org) + * news.h (ASM_OUTPUT_OPCODE): Deleted. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Fix off by one error in - handling the constructor list when a valid count is supplied. + * c-parse.y (stmt): In for stmt, put proper lineno before increment. + Don't call position_after_white_space. - * collect2.c (write_hooks): Emit a count before the list of - constructors, to go back to the old format. +Tue Sep 8 06:31:17 1992 Michael Meissner (meissner@osf.org) - * collect-osf.c (write_s_file): Emit a count before the list of - constructors, to go back to the old format. + * cp-typeck.c (constant_print_warning): Deleted. - * gnulib2.c (exit): Provide default defintions as bss symbols for - all of the constructor/destructor related symbols if the macro - INIT_SECTION_ASM_OP is not defined. The second link that collect - does and/or gld will provide the right values. +Tue Sep 8 05:26:19 1992 Mike Stump (mrs@hal) - * decrose.h (HAVE_ATEXIT): Nuke macro, no longer used. - * encrose.h (HAVE_ATEXIT): Nuke macro, no longer used. - * i386rose.h (HAVE_ATEXIT): Nuke macro, no longer used. + Tue Aug 18 23:56:16 1992 Ron Guilmette (rfg at netcom.com) -Thu Dec 12 07:27:05 1991 Tom Wood (wood at dg-rtp.dg.com) + * tree.h (BINFO_VPTR_FIELD): Added to support debugging + information about virtual base class pointers. - * gbl-ctors.h (__CTOR_LIST__, __DTOR_LIST__): Renamed from *_BEGIN__. - * collect-osf.c collect2.c: Rename here as well. +Mon Sep 7 19:39:45 1992 Brendan Kehoe (brendan@cygnus.com) -Thu Dec 12 04:15:22 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-typeck.c (constant_print_warning): Deleted. + * c-common.c: Moved here. - * c-parse.y (stmt): Make asm alternatives allow expr. - * c-typeck.c (c_expand_asm_operands): Get the STRING_CST from the expr. +Mon Sep 7 17:03:07 1992 Paul Eggert (eggert@twinsun.com) - * c-parse.y (datadecl, datadecls, lineno_datadecl): New rules. - (xdecls): Use them. + * fold-const.c (fold): Check abs for constant integer overflow. -Wed Dec 11 18:36:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Mon Sep 7 01:31:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Just one definition; use ON_EXIT. - Test for -1 and handle both kinds of table format. - * gnulib2.c (__do_global_dtors): Check for -1... - (__do_global_ctors): Dummy defn of ON_EXIT if no other defined. - (__main): Do nothing if called again. - (exit): Use EXIT_BODY if defined. - * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__): - Renamed from *_BEGIN__. Add -1 as first elt. - (__CTOR_END__, __DTOR_END__): Add 0 as last elt. - (ON_EXIT): Dummy defn if no other is defined. + * c-common.c (check_case_value): Call constant_expression_warning. -Wed Dec 11 18:08:36 1991 Mark Eichin (eichin at cygnus.com) + * cse.c (simplify_binary_operation): For DIV by 0, do nothing. - * cp-parse.y (template_parm): removed some reduce/reduce conflicts - by noting which of identifier or identifier_defn would actually be - passed up in this context. + * c-decl.c (duplicate_decls): Set DECL_INLINE in newdecl + so it is copied into olddecl. -Wed Dec 11 17:52:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Sep 6 08:53:46 1992 Fred Fish (fnf at fishpond) - * flow.c (propagate_block): Adjust loop depth if it is changed in - notes at the end of a block. - Abort if loop depth ever reaches zero. + * m68k.md (fsglmul pattern): If FSGLMUL_USE_S, opcode has .s, not .x. + * amix.h (FSGLMUL_USE_S): Defined. -Wed Dec 11 16:30:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sun Sep 6 17:42:33 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * cccp.c (do_endif): Don't call record_control_macro at top level. + * pa.md (indirect_jump): Annul the next instruction if the delay + slot could not be filled instead of emitting a nop. -Wed Dec 11 14:45:42 1991 Mark Eichin (eichin at cygnus.com) + * pa.c (output_function_prologue): Undo Aug. 13 change. + If profiling, then this function makes calls. Reflect this in + CALLINFO. + (output_function_epilogue): If profiling, then be restore "rp" here. - * cp-decl.c (set_identifier_type_value): If we're in a - class_binding_level, shadow the type there. - (xref_defn_tag): New function. Calls xref_tag with special flag set - to indicate that we know we're defining something. - (pushdecl_top_level): if class_binding_level is set, search from it - instead of only from current_binding_level when trying to find - shadowed values. This is in support of tests m5.cc through m8.cc, - which broke after the changes for m9.cc were installed. + * pa.md (use_milli_regs attribute): Deleted, not necessary anymore. + All references deleted. + * pa.c (use_milli_regs): Deleted. - * cp-spew.c (do_aggr): New function. Looks ahead from AGGR to see if - we have AGGR identifier { or AGGR identifier : which are both - definitions, and passes up identifier_DEFN instead. This is in - support of test m9.cc. - (yylex): add SPEW_DEBUG case after EMPTY, so we don't have gaps in - the displayed stream. - (yylex, case AGGR): added call to do_aggr. - (debug_yychar): added call to debug_yytranslate for proper - translations. +Sun Sep 6 17:11:00 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * cp-parse.y (debug_yytranslate): New function to support SPEW_DEBUG - translations. - (TYPENAME_DEFN): new token, TYPENAME seen by do_aggr. - (IDENTIFIER_DEFN): new token, ditto. - (PTYPENAME_DEFN): new token, ditto. - (identifier_defn): corresponds to identifier, but when the - identifier has been seen by do_aggr. - (named_class_head_sans_basetype_defn): specially recognize aggr - identifier_defn. - (named_class_head): add parallel clauses calling xref_tag_defn when - we know we're defining this aggr. - (named_class_head_sans_basetype_defn_either): for when we don't care - if it is a defn or not (such as templates) - (identifier_either): ditto. + * arm.h (MOVE_MAX): Define as 4. - * cp-tree.h (xref_defn_tag): New declaration. + * ns32k.c (hard_regno_mode_ok): Don't abort if unknown mode, + return 0 instead. Declare argument MODE as `enum machine_mode'. -Wed Dec 11 12:37:51 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * i860.h (HARD_REGNO_MODE_OK): Allow BLKmode. - * cp-parse.y (label_colon): New nonterminal, with all label prefixes - from "stmt" moved here. - (stmt): Use it. Also provide useful message for label followed by - end of block (close-brace). +Sun Sep 6 16:57:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-init.c (BIVN): Deleted unused variable. - * cp-decl.c (init_decl_processing): Don't declare function - __builtin_vec_new; it's never used. + * expr.c (init_expr_once): Don't try HARD_REGNO_MODE_OK on VOIDmode + or BLKmode. -Wed Dec 11 10:59:48 1991 Michael Meissner (meissner at osf.org) +Sun Sep 6 14:27:57 1992 Michael Meissner (meissner@osf.org) - * toplev.c (main): Complete last change from RMS, use variable - 'level' which used to be named 'arg'. + * cp-typeck.c (constant_expression_warning): New fn from c-typeck.c. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Don't reference ON_EXIT for - those poor systems without atexit or on_exit. +Sun Sep 6 09:11:46 PDT 1992 Ron Guilmette (rfg at netcom.com) -Wed Dec 11 09:06:52 1991 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * c-decl.c (duplicate_decls): Don't set DECL_EXTERNAL in olddecl. + Preserve DECL_UID of olddecl. - * m68k.c (output_function_prologue, output_function_epilogue): - When saving/restoring only 2 registers, do so with two "movel" - instructions instead of a single "moveml". This results in - faster code for the 68020 and later machines. +Sun Sep 6 03:37:21 1992 James Van Artsdalen (james at bigtex.cactus.org) -Wed Dec 11 06:45:08 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i386.md (cmpstrsi): Rewrite expander to handle operands correctly. - * x-romp (MAKE): Add definition; the supplied `make' doesn't define it. +Sat Sep 5 22:55:53 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Dec 10 22:17:50 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * combine.c (try_combine): Make change missing from last modification + to splitting code. - * combine.c (try_combine): Always make a copy of I2's pattern if - it will be used in a PARALLEL (`added_sets_2' nonzero). +Sat Sep 5 19:21:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (BOOT_CFLAGS): New parameter. - (bootstrap*): Use it. + * stor-layout.c (layout_type): Caller must give size of FILE_TYPE. - * flow.c (find_basic_blocks): Set depth of last insn, not first, - into basic_block_loop_depth. - (propagate_blocks): Use consistently with new definition. +Sat Sep 5 16:34:50 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * cse.c (cse_end_of_basic_block, cse_basic_block): Remove previous - change; it can cause loops following around branches. + * arm.c (before functions): Remove xmalloc decl. + (arm_asm_output_label): Cast value from xmalloc. - * Makefile.in (USER_H): Add va-hp9k8.h. + * arm.md (storehi): Use match_operand for operand 0. + Use gen_lowpart to change mode of operand 0. + (storeinthi): Use match_operand for operand 0. + Change output code to reassign operand 0. + (truncsihi2, truncsiqi2, trunchiqi2): Remove these patterns. -Tue Dec 10 17:22:01 1991 Tom Wood (wood at dg-rtp.dg.com) +Sat Sep 5 02:39:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88k*.h: Include svr3.h as the default. m88kv4.h and m88kdgux.h - include svr4.h. Override svr[34].h as needed. - * t-m88k, t-m88kv4: Specify EXTRA_PARTS. + * news.h (ASM_OUTPUT_OPCODE): Defined. - * m88k.c (uses_arg_area_p): Check current_function_varargs. +Sat Sep 5 18:52:21 1992 Jukka Virtanen (jtv@kampi.hut.fi) -Tue Dec 10 15:41:03 1991 Michael Meissner (meissner at osf.org) + * stor-layout.c (layout_type): Handle BOOLEAN_TYPE, CHAR_TYPE, + and FILE_TYPE for Pascal. + (fixup_signed_type): New function. - * osf-main.c (whole file): Delete, since the constructor stuff was - moved to gnulib2.c. + * optabs.c (init_optabs): Use __gcc_bcmp, not real bcmp. + (expand_unop): Handle NEG for complex modes. + (expand_binop): Likewise. + (expand_complex_binop): New function. - * Makefile.in (collect2, collect2.o): Change to use the default - compiler to build collect2, instead of the newly built GCC, since - otherwise, collect2 will create a circular dependency. Also, pass - LDFLAGS when linking. + * expr.c (emit_move_insn): When moving word by word, + mark the whole thing as a libcall block. + (group_insns): New function. + (expand_expr): + Implement COMPLEX_EXPR, REALPART_EXPR, IMAGPART_EXPR, CONJ_EXPR. - * collect-osf.c (write_s_file): Change to the new way of doing - constructors and destructors of having an end marker instead of a - count. + * print-tree.c (print_node): Handle BOOLEAN_TYPE and CHAR_TYPE. + * emit-rtl.c (gen_highpart): New function. - * collect.c (REAL_AS_PATH, REAL_LD_PATH, REAL_NM_PATH): New macros - to allow cross compilers to specify where the real linker, - assembler, and nm live. - (NM_FLAGS): New macro to allow a configuration to change what flags - get passed to nm. - (alloca defines): Remove alloca defines, since config.h provides - them. - (write_hooks): Change to the new way of doing constructors and - destructors of having an end marker instead of a count. Cast all - alloca calls to be the appropriate pointer type. Put both - constructors and destructors into the data section, because the MIPS - tools do not like non-instructions in the .text section. +Fri Sep 4 23:20:59 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * decrose.h (HAVE_ATEXIT): Define, OSF/1 has atexit. - (FULL_PROTOTYPES, NO_CONST_IN_SYSCALL): Remove, no longer used. + * i860.md (mulsi3_big): Use low half of result. + Use offset 1 in subregs in actual fmlow insn. + (fmlow pattern): Split this into alternatives for big and little end. - * encrose.h (HAVE_ATEXIT): Define, OSF/1 has atexit. - (FULL_PROTOTYPES): Remove, no longer used. + * regclass.c (record_reg_class): For matching operands, handle + case where the earlier one is not a pseudo like the case + where the later one is not a pseudo. - * i386rose.h (HAVE_ATEXIT): Define, OSF/1 has atexit. +Fri Sep 4 17:24:11 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * t-decrose (LIB2FUNCS_EXTRA): Remove, osf-main.c is no longer - needed, since constructor/destructor support moved into gnulib2.c. + * pa.c (output_move_double): Use %R to store at auto-incr/decr + addr. Split incr and decr cases for store. - * t-encrose (LIB2FUNCS_EXTRA): Remove, osf-main.c is no longer - needed, since constructor/destructor support moved into gnulib2.c. +Fri Sep 4 03:49:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * t-i386rose (LIB2FUNCS_EXTRA): Remove, osf-main.c is no longer - needed, since constructor/destructor support moved into gnulib2.c. + * gcc.c (main): No program should return the error_count! + Return 2 if failure due to signal, 1 if just errors. + (execute): Increment signal_count. - * t-decstatn (CCLIBFLAGS, GNULIB2_CFLAGS): Define so that gnulib1 - and gnulib2 are both compiled with -G 0, in case the users compiles - and links this way. It also fixes a bug where the constructors and - destructors that collect2 produces are in the big data section, but - gnulib2 thinks they are in the small data section, because it only - sees a pointer. - (ld): Add -f to remove old ld link to collect2, if it exists. + * move-if-change: Undo previous change. - * t-mips (CCLIBFLAGS, GNULIB2_CFLAGS): Define so that gnulib1 - and gnulib2 are both compiled with -G 0, in case the users compiles - and links this way. It also fixes a bug where the constructors and - destructors that collect2 produces are in the big data section, but - gnulib2 thinks they are in the small data section, because it only - sees a pointer. - (ld): Add rule to link collect2 to ld. - (EXTRA_PASSES): Build collect2 (aka ld). + * c-decl.c (grokparms): Copy arg type list to savable obstack if nec. - * xm-mips.h (alloca): If not GNU C, declare alloca to be char *. +Fri Sep 4 19:40:32 1992 Paul Eggert (eggert@twinsun.com) - * mips-tfile.c (add_aux_sym_tir): Move code to record bitfield size, - so that it agrees with MIPS ECOFF practice, rather than the - documentation, which affects enum bitfields. Changes from Per - Bothner. + * c-typeck.c (constant_expression_warning): Now works; + it reports signed integer overflow in constant expressions, -Tue Dec 10 14:10:10 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * fold-const.c (left_shift_overflows, same_sign, overflow_sum_sign): + New macros. + (add_double, div_and_round_double, lshift_double, mul_double, + neg_double, const_binop, fold): Check for signed integer overflow. + Propagate overflow flags from operands to result. + (const_binop, fold_convert): Use pedwarn for overflow warnings. + Say `constant expression', not `constant folding', for user's sake. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Get rid of __reverse_order, etc. - * gnulib2.c (__do_global_dtors): Remove & before arrays. +Thu Sep 3 22:28:41 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) - * configure: Set a default value for xm_file. - Remove redundant defaulting of cpu_type. + Complete 12th Cygnus<-->FSF merge. - * svr4.h (ASM_DECLARE_FUNCTION_SIZE): Output internal label properly. + Thu Sep 3 12:29:24 1992 Brendan Kehoe (brendan@cygnus.com) - * function.c (assign_parms): Set current_function_args_info. - * output.h: Declare that var. - * tree.h (BUILTIN_ARGS_INFO): Renamed from BUILT_IN_VARARGS. - * expr.c (expand_builtin): Implement __builtin_args_info. - * c-decl.c (init_decl_processing): Declare it. - * va-i860.h: Use it. - Also update order of elements in struct __va_ctl. + These changes are propagated from changes to c-*.c. - * toplev.c (main): Eliminate -gsdb and -gdbx. - Clean up setting of use_gdb_dbx_extensions. + Mon Aug 17 16:28:48 1992 Chip Salzenberg (chip@tct.com) -Tue Dec 10 10:33:58 1991 Tom Wood (wood at gen-rtx) + * cp-decl.c (finish_function): Test only can_reach_end for the + warning about reaching the end of a non-void function. + (grokdeclarator): When promoting an argument, retain unsignedness + if traditional or if promoted type is not really getting wider. - * svr4.h (ASM_DECLARE_FUNCTION_SIZE): Use an internal label. + * cp-parse.y (datadef): For empty declaration, use pedwarn. -Tue Dec 10 07:12:28 1991 James Van Artsdalen (james@raid) + Mon Aug 17 17:08:11 1992 Chip Salzenberg (chip@tct.com) - * Makefile.in (crtbegin.o, crtend.o): crstuff.c is in $(srcdir). + * cp-cvt.c (convert): When converting to variant of same type, fold. -Tue Dec 10 06:56:26 1991 Michael Tiemann (tiemann at cygnus.com) + Wed Aug 19 16:58:41 1992 Chip Salzenberg (chip@tct.com) - * cp-decl.c (kept_level_p): New function, borrowed from c-decl.c. - * cp-parse.y (compstmt): Call it. + * cp-typeck.c (default_conversion): Convert enumeral types to + appropriate _signed_ type unless -traditional. -Mon Dec 9 18:37:32 1991 Ken Raeburn (Raeburn@Cygnus.COM) + Tue Aug 4 13:11:36 1992 Chip Salzenberg (chip@tct.com) - * cp-decl.c (grok_enum_decls): Don't give warning for class-local - enum types; this is a perfectly reasonable usage. + * cp-cvt.c (convert): If main variants match, + but the type is not identical, make a NOP_EXPR. -Mon Dec 9 12:23:48 1991 Ron Guilmette (rfg at ncd.com) + * cp-decl.c (warn_redundant_decls): Declared. + (duplicate_decls): Optionally warn about redundant declations. + (pushdecl): Never reuse global fcn decl in place of local extern; + just copy some info from it. + (init_decl_processing): __builtin_saveregs returns void *. + (store_parm_decls, finish_function, start_method, finish_method): + Compare TYPE_MAIN_VARIANT against void_type_node. - * toplev.c (main): Check that no extra chars follow the level # - in a -gNNN option. Also check that the debugging level requested - is between 0 and 3 (inclusive). + * cp-decl2.c (warn_redundant_decls): Defined. + (lang_decode_option): Decode -Wredundant-decls. -Mon Dec 9 20:34:48 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-typeck.c (build_conditional_expr): Don't use type1 as + temporary variable; set result_type directly. - * sched.c (schedule_block): Don't crash if `line' is zero. - (schedule_insns): Initialize line_note_head. + Tue Aug 4 12:04:17 1992 Chip Salzenberg (chip@tct.com) -Mon Dec 9 15:31:46 1991 Michael Meissner (meissner at osf.org) + * cp-tree.h (C_PROMOTING_INTEGER_TYPE_P): Defined. + * cp-class.c (finish_struct): Use it. + * cp-decl.c (duplicate_decls, grokdeclarator): Ditto. + (grokparms, start_function): Ditto. + * cp-typeck.c (self_promoting_args_p, default_conversion): Ditto. + * cp-parse.y (primary): Set TREE_CONSTANT in the NOP_EXPR for an enum. - * mips-tfile.c (pseudo_ops array): Correctly size the .stabs and - .stabn elements. + Tue Aug 4 09:17:32 1992 Chip Salzenberg (chip@tct.com) - * mips.c (function_prologue, function_epilogue): Use assemble_name - to print the current function, instead of fprintf, in case there is - a leading '*'. + * cp-decl.c (duplicate_decls, grokdeclarator, grokparms): + Use TYPE_MAIN_VARIANT when comparing against specific types. + (build_enumerator): Use STRIP_TYPE_NOPS. + (start_function): Force main() to return "int", not just any + integral type. - * mips-news.h (CPP_PREDEFINES): Define news3700, not news7300. + * cp-typeck.c (self_promoting_args_p, default_conversion): + Use TYPE_MAIN_VARIANT when comparing against specific types. + (unsigned_type, signed_type): If type is not known, return it + unchanged instead of returning its TYPE_MAIN_VARIANT. + (build_binary_op_nodefault): Use TYPE_MAIN_VARIANT when + comparing against specific types. Also use STRIP_TYPE_NOPS. + Also copy error messages from equivalent code in c-typeck.c. - * mips.md (ashldi3_internal3): Fix typos. - (ashrdi3_internal3): Ditto. - (lshldi3_internal3): Ditto. + * cp-parse.y (primary): Wrap a NOP_EXPR around an enum value. -Mon Dec 9 11:49:52 1991 Torbjorn Granlund (tege at hal.gnu.ai.mit.edu) + Wed Sep 2 18:06:47 1992 Mike Stump (mrs@cygnus.com) - * longlong.h (__a29k__ udiv_qrnnd): Change "q" to "1" for operand - 2 constraint. + Wed Sep 2 17:33:59 1992 Chip Salzenberg (chip@tct.com) -Mon Dec 9 11:22:58 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * cp-decl.c (grokdeclarator): Default friends to being PUBLIC. - * cp-typeck.c (build_x_function_call): A method might have type - pointer-to-method as well. Don't build an OFFSET_REF for any - "function" that already has pointer type. Only use - DECL_CLASS_CONTEXT to find type of `this' for FUNCTION_DECLs; for - method pointer expressions, look up the basetype of the method type. - (build_unary_op): Fix comment in typo. + Tue Sep 1 12:33:01 PDT 1992 Ron Guilmette (rfg at netcom.com) - * cp-tree.c: Fix typo in comment at start of file. + * cp-init.c (do_friends): Always return `void_type_node'. -Mon Dec 9 07:17:13 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (grokparms): Call digest_init on default arguments for + formal parameters. - * cse.c (cse_insn): When a jump is converted to unconditional, - delete the dead code, but leave the notes. - (cse_basic_block, cse_end_of_basic_block): Some unconditional jumps are - part of the basic block. - (cse_basic_block): Add missing arg to cse_end_of_basic_block call. - -Mon Dec 9 07:16:15 1991 Ron Guilmette (rfg at ncd.com) + * cp-decl.c (xref_tag): The BINFO records describing individual + inheritances aren't shared in the lattice. - * sys-types.h: New file. - * sys-protos.h: New file. - * SYSCALLS.c: Just include those files. - - * protoize.c (VOLATILE): Define this symbol conditionally so that - it can be used to declare GNU `volatile' functions. - (abort): Added VOLATILE extern declaration (but not if it's a macro). - (kill, fork): Added extern declaration. - (substr): Declare c as int. - - * gbl-ctors.h: New file. - * crtstuff.c: Include gbl-ctors.h. - (INIT_SECTION_ASM_OP): Delete default definition. - Only compile .init section code if INIT_SECTION_ASM_OP is defined. - (pointer): Globally changed to `func_ptr'. - * Makefile.in (crtbegin.o, crtend.o, gnulib2): Depend on gbl-ctors.h. - * gnulib2.c: Added definition of __builtin_saveregs for i860/svr4 - and fixed up definition of __builtin_saveregs for i860/non-svr4. - (__bb_avoid_warning): Added explicit return type. - (__builtin_new, __builtin_vec_new, __builtin_delete, - __builtin_vec_delete): Use `void*' where appropriate. - (exit): Change conditional to ON_EXIT. Make dummy if no real exit. - Include gbl-ctors.h. - (__main): Change conditional to INIT_SECTION_ASM_OP. - (__do_global_ctors): Conditional on INIT_SECTION_ASM_OP. - Use DO_GLOBAL_CTORS_BODY for the guts. - Include gbl-ctors.h. - -Mon Dec 9 01:07:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * fixinc.svr4: Don't change #ident or assertion tests. - Don't install inline.h. - - * c-common.c (get_directive_line): Declare c as int. - - * configure: Create additional file tconfig.h. - * protoize.c: Include that, not tm.h. - * Makefile.in (protoize.o, unprotoize.o): Depend on tconfig.h. - - * svr4.h (HAVE_ATEXIT): Defined. - * gnulib2.c (_main, exit): Use HAVE_ATEXIT to control use of atexit. - - * final.c (final_scan_insn): Output first and last note in a series. - - * objc-actions.c (build_objc_method_call): - New arg LOOKUP_OBJECT. - (build_message_expr): Pass RECEIVER for LOOKUP_OBJECT. - Pass RECEIVER or self_decl as OBJECT. - - * unx386.h (PRINT_IMMED_PREFIX, PRINT_OFFSET_PREFIX): Deleted. - - * rtl.h: Undef FLOAT. - - * svr4.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_SIZE): - Fix typo. - -Sun Dec 8 21:46:51 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * protoize.c (main): Declare `value'. - (abspath): Declare endp. Declare and set outp and inp. - - * cp-decl.c (sigsegv): Function deleted. - (init_decl_processing): Don't use it. - Also don't include signal.h. - - * t-svr4: New file. - * configure (i386-*-sysv4*, i860-*-sysv4*): Use that file. - -Sun Dec 8 12:01:36 1991 Ron Guilmette (rfg at ncd.com) - - * fixinc.svr4: New file. - - * final.c (profile_function): Specify return type. - (get_attr_length): Added a return statement to prevent warnings. - - * final.c (final_scan_insn): Switch to .text section before output - of jumptable lable (if requested by JUMP_TABLES_IN_TEXT_SECTION). - Don't switch sections again after the label. - - * configure (i386-*-sysv*): Configuration deleted. - (i386-*-sysv3, i386-*-sysv4, i860-*-sysv3, i860-*-sysv4): - Added assignment to `tmake_file' (to pick up def of EXTRA_PARTS). - (i860-*-sysv3, i860-*-sysv4): Added assignment to `xmake-file'. - (i860-*-sysv3): Deleted bogus GAS related stuff. - - * combine.c (combinable_i3pat): Added explicit return type. - - * i860.h (TARGET_FPU): Deleted this target flag. i860 fpu is on chip. - (TARGET_XP): New target flag for XR and XP models. - (TARGET_FLAGS, HARD_REGNO_MODE_OK): Adjusted for above changes. - (REG_ALLOC_ORDER): Use first the regs less likely for other purposes. - (LITERAL_COMPARE_BETTER_UNSIGNED): Defined. - (BRANCH_COST): Defined. - (CC_ONLY_*): Deleted these obsolete defines. - (CC_NEGATED): Added for IEEE behavior with cmpgesf and cmplesf. - (ASM_OUTPUT_CASE_LABEL): - Added .align so assembler doesn't barf on subsequent .long(s). - (FLOAT_TYPE_VALUE, INTIFY, FLOATIFY, FLOAT_ARG_TYPE): - Added definitions needed to build a useable gnulib1 library. - - * i860.md: Removed all references to CC_ONLY_* symbols. - (cmpledf, cmpgedf): Adjusted assembler code as suggested - by i860 manuals, for IEEE results. - (cbranch, flipped_cbranch, inverse_cbranch, flipped_inverse_cbranch): - Check for CC_NEGATED. - (bte, btne patterns): Complete rewrite. - (anonymous sign-extend patterns): Moved before the named patterns. - - * i860.md (addsi3, subsi3): Disparaged alternatives with a floating- - pointer input register to avoid complicated reloading problem. - (negsi2): Deleted bogus `I' constraint on operand 1. - (divdf3, divsf3): Added additional continuation characters - needed to make lines acceptable to `read_rtx' in the gen* programs. - - * i860.c: Include "flags.h" to get access to `optimize' flag. - (leaf_function_p): Added extern declaration. - (zero_operand): New function. - (must_preserve_r1, must_preserve_bytes): New variables. - (function_prologue, function_epilogue): - Support treatment of return-address reg (r1) in leaf functions. - - * i860v4.h (CPP_PREDEFINES): Add pre-assertions for i860/svr4. - (CPP_SPEC): Deleted definition. - (TYPE_OPERAND_FMT): New definition. - (ASM_OUTPUT_FUNCTION_PREFIX): #undef before defining. - (ASM_OUTPUT_EPILOGUE_SUFFIX): Deleted obsolete macro. - (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, - TDESC_SECTION_ASM_OP, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, - TDESC_SECTION_FUNCTION): Definitions added. - - * i860v3.h: Complete rewrite. Uses svr3.h. - - * i386v4.h: Don't include i386v.h. Include i386.h instead. - (SDB_DEBUGGING_INFO): #undef deleted. - (ASM_OUTPUT_DWARF_STRING): Added definition. + Tue Sep 1 12:27:17 1992 Mike Stump (mrs@cygnus.com) - * gcc.c (default_compilers): Pass -g* options to cpp. + * cp-call.c (convert_harshness, compute_conversion_costs): The + READONLY flag for a const object could be down in the type of the + reference. - * gcc.c (do_spec_1): Don't duplicate -A options in CPP_PREDEFINES. + * cp-call.c (compute_conversion_costs): Don't ignore the cost of + converting the first argument, if it is not a method. Fixes Mon Aug + 31 22:32:34 change. - * gnulib2.c (exit, __main, __do_global_dtors, __do_global_ctors): - New functions. + Tue Sep 1 11:58:52 1992 Mike Stump (mrs@cygnus.com) - * i386.h (PRINT_IMMED_PREFIX, PRINT_OFFSET_PREFIX): - Define here, and use IP. + * cp-tree.h (THIS_NAME): Use the name ``this'' instead of the more + cryptic name ``$t''. - * i386.h: Don't include syms.h or define FILNMLEN. + Mon Aug 31 22:32:34 1992 Mike Stump (mrs@rtl.cygnus.com) - * x-i860v3, x-i860v4: New files. - * x-i386v4 (CCLIBFLAGS, GCC_CFLAGS): Added definitions. + * cp-init.c (build_member_call): When forming method calls that use + a qualified name, convert the instance pointer to the type implied + by the qualification. Base::member_func(); converts this to be a + (Base *). - * xm-svr3.h: New file. - * xm-i86v3.h, xm-i86v4.h, xm-i386v.h: Rewritten. - * xm-i38v4.h: New file. + * cp-call.c (compute_conversion_costs): Don't penalize conversion + of the instance pointer on method calls, as they could be pointers + to base classes. - * svr4.h (LIB_SPEC): Make crtend.o come before any *crtn.o - file (to avoid hitting return without standard epilogue in .init code). - (INIT_SECTION_ASM_OP): Added definition for crtstuff.c (and friends). - (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): - Adjusted indentation of continuations to match those in rest of file. + Mon Aug 31 18:34:33 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * svr3.h (CPP_PREDEFINES): Don't define this here. - (ASM_FILE_START_1): Provide no-op default definition. - (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Undef these before defining. - (INT_ASM_OP, USE_CONST_SECTION, INIT_SECTION_ASM_OP, - CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, - EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, READONLY_DATA_SECTION, - CONST_SECTION_FUNCTION, CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION, - ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR, SELECT_SECTION, - SELECT_RTX_SECTION): Definitions added. + * cp-decl.c (start_function): When a friend function is being + defined, put it in (lexical) scope of the class in which it appears. -Sun Dec 8 15:27:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Aug 31 09:57:27 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * next.c (handle_pragma): Use get_directive_line. + * cp-typeck.c (build_modify_expr): For assignments to member + variables like "X::i", call resolve_offset_ref to get the lhs; all + the code and checking was in there, it just wasn't being used. - * gnulib2.c (__do_global_dtors, __do_global_ctors): - Remove the feature to control the order of execution. - This is not a clean solution to the overall problem. + * cp-class.c (finish_struct_methods): Give the name of the class + in question when reporting that all its member functions are + private. -Sun Dec 8 14:47:44 1991 Michael Meissner (meissner at osf.org) + Sun Aug 30 08:34:03 1992 Mike Stump (mrs@rtl.cygnus.com) - * mips-tfile.c (toplevel, add_local_symbol, parse_stabs_common): - More changes for smuggling stabs through from meissner@osf.org and - bothner@cygnus.com. + * cp-decl2.c (setup_vtbl_ptr): Disable the code, until problems can + be worked around. - * mips.h (ignore_line_number): New global, set when we must avoid - putting out a MIPS ECOFF .loc because the file changed inside of a - function, and we are also putting out stabs, which can handle this. - (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Define to put a comment - in front of the pseudo op, if we are encapsulating stabs in MIPS - ECOFF. - (ASM_OUTPUT_SOURCE_FILENAME): Change to call mips_output_filename. - (ASM_OUTPUT_SOURCE_LINE): change to call mips_output_lineno. + Sat Aug 29 10:34:10 1992 Mike Stump (mrs@rtl.cygnus.com) - * mips.c (toplevel): Include stab.h for encapsulating stabs. - (ignore_line_number): New global variable. - (reg_or_0_operand): Call register_operand for REG's as well as - SUBREG's. - (override_option): Don't allow ints in FP registers unless -mdebugh. - (mips_output_filename): New function to write the filename to the - assembler output. Add special support for encapsulating .stabs in - MIPS ECOFF. - (mips_output_lineno): New function to write the line number to the - assembler output. Add special support for encapsulating .stabs in - MIPS ECOFF. - (function_epilogue): Clear ignore_line_number. + * cp-init.c (emit_base_init): Undo Sat Jan 18 12:06:58 change by + tiemann that incorrectly makes -pedantic initialization of virtual + base classes 1 or more levels deep impossible. - * mips.md (fix_trunc??si_opt, mov??_internal): Change '!' constraint - back to '*'. + Sat Aug 29 10:03:07 1992 Mike Stump (mrs@rtl.cygnus.com) -Sat Dec 7 16:58:57 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * cp-class.c (finish_struct): Allow extern "C" functions to be + friends. - * cp-spew.c (scan_tokens): Stop scanning at semi-colon. + Sat Aug 29 04:43:22 1992 Mike Stump (mrs@rtl.cygnus.com) - * cp-spew.c: Made SPEW_DEBUG code useable: - (yylex): Use stderr in SPEW_DEBUG code. - (yytags): Deleted table. - (debug_yychar): Print to stderr, and don't try finding translations - for values over 256. + * cp-parse.y (used_extern_spec), cp-decl.c (start_decl, + start_function): Make sure extern in extern "C" (fndef | datadef) + applies to only one decl. Fixes problem introduced on Thu Aug 20 + 16:11:58. - * cp-class.c (push_lang_context): Fix typo in comment. + Thu Aug 27 09:33:13 1992 Brendan Kehoe (brendan@cygnus.com) - * cp-decl.c (finish_decl): Undo `pushclass' done in start_decl for - top-level decls of methods. + * cp-decl.c (grokdeclarator): Name operators properly when + complaining about trying to declare it as a method when not in a + class. - * cp-lex.c (restore_pending_input): Cast 0 to pointer type for - obstack_free. + * cp-decl.c (grok_reference_init): Forbid volatile->const refs, + and vice-versa. Also make the tests apply to all types, not just + aggregates. (Now fully compliant with ANSI C++ June 5 1996 WP + section 8.4.3.5.) - * cp-pt.c (do_pending_expansions): Use TREE_USED instead of - TREE_ADDRESSABLE for functions. Put in comments explaining why we - compile unused methods of classes that are interface-unknown: the - file initializer/cleanup functions might need them. - (mumblefrotz): Delete unused function; this code is in cp-parse.y. + * cp-decl.c (shadow_tag): Don't allow a function to be a member of + an anonymous union. -Sat Dec 7 15:46:55 1991 Timothy Moore (moore@cs.utah.edu) + * cp-class.c (finish_struct): For a type that's nested within a + class, use the class value itself when checking a typedef that uses + that new nested type. - * function.c: Handle ARGS_GROW_DOWNWARD. - (pad_below, pad_to_arg_alignment, round_down): New subroutines. - (locate_and_pad_parm): Use them, for the existing case. - Also handle the ARGS_GROW_DOWNWARD case, using them. + Wed Aug 26 20:24:07 1992 Brendan Kehoe (brendan@cygnus.com) -Sat Dec 7 15:46:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (decls_match): When converting from a + pseudo-METHOD_TYPE for a static member fn, handle the static + function being both in the new and old declarations. + (revert_static_member_fn): New function. - * tree.h (DECL_ARG_TYPE_AS_WRITTEN): New macro. - * c-decl.c (grokdeclarator): Store value there. + * cp-call.c (build_method_call): Put out proper line number for + error with the use of a private constructor. - * m68k.c (output_function_prologue, output_function_epilogue): - Support MOTOROLA syntax. + * cp-decl.c (grokdeclarator): If a storage class is erroneously + specified for an operator, print the operator's name out properly in + the error message (e.g., print `+' instead of `__pl'). - * toplev.c (main): Testing for -ggdb catches -g also. - Default use_gdb_dbx_extensions to 1 for -gstabs, 0 for -gdbx. - Specified default is for -g. + * cp-decl.c (grokdeclarator): Allow neither constructors nor + destructors to be declared const or volatile. - * cccp.c (handle_directive): Store start address in directive_start. - (do_xifdef): Use that, checking if at start of file. - (do_endif): Compute ep properly. + * cp-decl.c (grok_op_properties): New argument VIRTUALP. + Use it to disallow declaring new or delete as virtual. Also + use coerce_new_type() and coerce_delete_type() to + sanity-check overloading of new and delete. + (grokfndecl): Give grok_op_properties if the decl is virtual. + (start_method): Likewise. - * protoize.c (abspath): Fix errors referencing argument cwd. - (main): Allocate big enough buffer for getcwd. - Don't clobber varargs_style_indicator, copy it. - (savestring): New function. + * cp-tree.c (lvalue_p, ADDR_EXPR case): Casts to references are + lvalues. -Sat Dec 7 00:53:16 1991 Ron Guilmette (rfg at ncd.com) +Thu Sep 3 02:46:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (warn_redundant_decls, warn_nested_externs): New vars. - (c_decode_option): Support -Wredundant-decls and -Wnested-externs. - (pushdecl): Print those warnings. - * c-tree.h (warn_redundant_decls, warn_nested_externs): Declared. + * caller-save.c (setup_save_areas): Don't look at WORDS_BIG_ENDIAN. - * c-decl.c (pending_xref_error, c_mark_varargs): Added return type. + * fixincludes: If we find a link pointing to ., make a similar + link to ., not a link to an absolute name. + (stdio.h): Change stdio.h to use stdarg.h to get va_list. - * cccp.c (main): Added code to support the presence of -A (assertion) - options within CPP_PREDEFINES. + * cexp.y: Comment syntax fix. - * c-lang.c: Minor cleanups. +Thu Sep 3 01:48:16 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * c-lex.c (check_newline): Added support for the -g3 option. + * we32k.md (casesi): Use match_dup for second mention of operand 4. - * dwarfout.c (type_tag): Fixed bug in gcc Dwarf generation for - tagged types. +Wed Sep 2 06:58:32 1992 Michael Meissner (meissner@osf.org) - * dwarfout.c (output_decl): Added two pre-checks to see if nodes - are ERROR_MARK nodes before using them. + * gcc.c (default_compilers): Add missing comma between strings, so + that traditional compilers can compile gcc.c. + (main): Don't pass strcpy or strlen a NULL pointer if some of the + spec strings in default_compilers are NULL. + (validate_all_switches): Don't dereference a NULL pointer if some of + the spec strings in defalut_compilers are NULL. - * dwarfout.c (generate_new_sfname_entry): Function added. + * gcc.c (main): Use new loop var J to avoid conflict with I. - * dwarfout.c (lookup_filename): Call generate_new_sfname_entry - as soon as each new source filename is added to the list of - known filenames (thus avoiding an m68k forward-ref assembler bug). +Wed Sep 2 19:09:02 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * dwarfout.c (dwarfout_line): Initialize prev_file_entry_num to - (unsigned) -1 rather than zero to avoid bogus suppression of - first .debug_sfnames section entry. + * caller-save.c (init_caller_save): If we were unable to + find a simple insn which meets all its constraints to save + and restore with a single insn in a mode, then set + regno_save_mode to VOIDmode to insure that this mode is never + used to caller-save the current register. - * dwarfout.c (compare_filename_entries): Function deleted. (It's - no longer needed.) +Wed Sep 2 12:34:39 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * dwarfout.c (dwarfout_finish): Don't generate .debug_sfnames - section entries here anymore. (See lookup_filename.) + * caller-save.c (insert_save_restore): Correct test for + determining whether multiple registers can be saved. - * Makefile.in (realclean): Delete c-parse.h. - Delete objc-parse.output just once. + * sparc.md (SImode ldd peepholes): Add `f' to constraints. -Fri Dec 6 17:49:28 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * sparcv4.h (HANDLE_PRAGMA): Delete. + * sparc.c (handle_pragma_token): Delete. - * cse.c (FIXED_BASE_PLUS_P): The frame or argument pointer itself is - a fixed address. - (find_comparison_args): If we find something equivalent to a - fixed address, return the fixed address. + * config/spc-sol2.h: Change the location of the Sun bundled C + compiler in MD_STARTFILE_PREFIX (for backup defaults). - * combine.c (try_combine): Don't access new_i2_notes if it hasn't been - defined (it isn't defined unless newi2pat != 0). +Wed Sep 2 09:11:16 1992 Tom Wood (wood@dg-rtp.dg.com) -Fri Dec 6 16:01:02 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * m88k.h (MOVE_MAX): Express in bytes not bits. - * rtl.h (enum reg_note): Define two new values REG_DEP_ANTI, - REG_DEP_OUTPUT, which are used to mark LOG_LINKS. - * rtl.c (reg_note_name): Likewise. - (add_dependence): Return void. New parameter DEP_TYPE to indicate - type of dependence. + * m88k.c (output_ascii): Output known escape characters and don't + terminate the constant if an octal escape is used. - * sched.c: Major rewrite to delete much obsolete code, correct many - comments, delete unused variables, etc. Modify all callers of - add_dependence to pass new argument. Significant changes are: - (reassign_dependence): Deleted, was unnecessary. - (priority): Account for type of dependence when calculating - priority. - (flush_pending_lists): New function. Encapsulate code which makes - dependencies between an INSN and every insn on the - pending_read_insns and pending_write_insns lists. - (rank_for_schedule): Account for type of dependence with last - scheduled insn when deciding which ready insn to schedule next. - (launch_link): Give all birthing insns the same priority. - (schedule_block): Only sort the ready list once, after all ready - insns have been added to it. - (schedule_block): When deciding what REG_DEAD notes are needed on a - just scheduled insns, process all sets first (sched_note_set) then - process all uses (attach_deaths_insn). - (attach_deaths): Simplified by above change. - (sched_note_set): Likewise. - (update_flow_info): Renamed from update_links, since it no longer - does anything with LOG_LINKS. Sched_analyze_insn creates all - necessary new LOG_LINKS already. - (schedule_insn): Delete no op move insns after reload. +Wed Sep 2 06:38:37 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Dec 6 13:33:48 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * combine.c (make_compound_operation, case ASHIFTRT): Add new + code to handle (ashiftrt (neg (ashift FOO C1) C2)) just like we + currently handle (ashiftrt (OP (ashiftrt FOO C1) C2) C2). - * crtstuff.c: Give permission to link with non-free programs. +Wed Sep 2 00:15:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (flag_inhibit_size_directive): New var and -f option. - * svr4.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_SIZE): Use it. - * Makefile.in (crtbegin.o, crtend.o): Use that option. Use -g1. + * Makefile.in (install): Add semicolon to make an empty command. -Fri Dec 6 08:42:53 1991 Ron Guilmette (rfg at ncd.com) + * reload.c (find_reloads): If have any earlyclobbers, don't let any + reloads overlap with them. Make everything RELOAD_OTHER. - * Makefile.in (STAGESTUFF): Added __main and _exit to support g++. + * move-if-change: Give status 1 if file is unchanged. - * c-common.c (c_expand_expr_stmt): Made return type explicit. + * Makefile.in (SYSTEM_HEADER_DIR): New variable. + (xlimits.h): New target, broken out from install-limits-h. + Look in SYSTEM_HEADER_DIR for system's limits.h. + (start.encap): Dep on xlimits.h. + (install-limits-h): Install xlimits.h already made. + * cross-make (SYSTEM_HEADER_DIR): Overridden. - * c-common.c: (get_directive_line): Function added to support -g3. + * x-i386sco (X_CFLAGS): Deleted. + * x-i386sco4: New file, like old x-i386sco. + * configure (i386-*-sco3.2v4*): Use x-i386sco4. -Fri Dec 6 04:50:39 1991 Michael Tiemann (tiemann at cygnus.com) + * t-sol2 (gmon.o): Find gmon-sol2.c in config. - * cp-tree.h (OPERATOR_ASSIGN_CHARS_P): Flushed. - * cp-decl.c (grok_op_properties): Flush OPERATOR_ASSIGN_CHARS_P. - * cp-init.c (add_{friend,friends}): Ditto. + * c-typeck.c (process_init_constructor): Fix bugs in previous change. -Thu Dec 5 22:31:12 1991 Jeffrey A Law (law at super.super.org) +Tue Sep 1 23:51:19 1992 Brendan Kehoe (brendan@rtl.cygnus.com) - * m68k.h (CONST_COSTS): Show that constants which can be easily - generated are less expensive than most. + * gcc.c (default_compilers, ".C" and ".ii"): Pass `+e*' into cc1plus. + (process_command): Allow +e[012] to be passed down into cc1plus. + * cp-decl.c (lang_decode_option): The options `+e0' thru `+e2' will + be coming in prefixed as `-+e'. - * m68k.md (movsi): Use two instruction sequences to load constants - which are just outside moveq's range (within 8 of moveq's range). - Likewise for positive even constants within twice moveq's range. +Tue Sep 1 20:09:29 1992 Paul Eggert (eggert@twinsun.com) -Thu Dec 5 20:17:13 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) + * print-tree.c (print_node): Avoid 1 << (HOST_BITS_PER_INT - 1), + which overflows. Use unsigned % to compute HASH. - * config-gcc.com: Generate a file 'version.opt' which will be given - to the VMS linker to put the gcc version number in the image - header version number field. +Tue Sep 1 17:23:28 1992 Tim Moore (moore@hal) - * make-cc1.com: Compile c-lex.c when building gcc and objc, and - add c-lex.obj to the list of files given to the linker. - Add version.opt to the list of files given to the linker. + * pa.h (CPP_SPEC, TARGET_SWITCHES): new flags: -mnosnake, + -mpa-risc-1-0, -mpa-risc-1-1. + (ASM_DECLARE_FUNCTION_NAME): Emit argument descriptors for all + general registers if current_function_varargs. - * make-cccp.com: Add version.opt to the list of files given to the - linker. +Tue Sep 1 11:27:08 1992 Brendan Kehoe (brendan@rtl.cygnus.com) -Thu Dec 5 23:04:20 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * sparc.c (handle_pragma_token): Only use if HANDLE_SYSV_PRAGMA + isn't defined. (We'll be getting the fn from c-pragma.c, then.) - * combine.c (make_extraction): Don't make a STRICT_LOW_PART of a MEM; - clean up comments so they agree with the code. +Sat Aug 29 13:44:21 PDT 1992 Ron Guilmette (rfg at netcom.com) - * combine.c (try_combine): Correct test for when we can safely change - the mode of a pseudo; can't if it doesn't die in I3. + * tree.h (current_block): Decl deleted. + (set_block): Declared. + * stmt.c (expand_fixup): Create a BLOCK node (via pushlevel/poplevel) + to represent an artificial scope containing all of the fixup code. + Also emit NOTE_INSN_BLOCK_BEG/NOTE_INSN_BLOCK_END for that block. + (fixup_gotos): Declaration of NEWBLOCK deleted. + Call `set_block' to use the BLOCK made in expand_fixup. + Deleted code to insert NEWBLOCK into block hierarchy. + * c-decl.c, cp-decl.c (current_block): Function deleted. + (set_block): New function. + (poplevel): If using a previously created block, + don't insert it into the parent level. + * emit-rtl.c (emit_insns_after): Update last_insn if nec. - * c-decl.c (WCHAR_TYPE_SIZE): Deleted; never used. - * c-common.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Deleted, no longer needed. - (combine_strings): Use size of `wchar_type_node' to get number of - bytes in wchar_t. - * next.h (WCHAR_TYPE_SIZE): Delete; no longer used. +Tue Sep 1 10:53:58 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * cse.c (cse_main): Add new argument to cse_basic_block_call. - Don't call cse_around_loop here. - (cse_basic_block): Call cse_around_loop from here while we still - have our arrays allocated. + * pa.c (output_move_double): Use `ldo' for immediate adds (instead + of `addi' with bad syntax). + (output_load_address): Likewise. - * combine.c (simplify_comparison): Fix error in last change; don't - reference TEM before it is set. +Tue Sep 1 02:41:13 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * toplev.c (fatal_insn_not_found): Flush all files before aborting. + * tree.h (struct tree_type): Make `align' field an int. -Thu Dec 5 21:42:29 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-tree.h (IDENTIFIER_LIMBO_VALUE): New macro. + (struct lang_identifier): New field limbo_value. - * objc-actions.c (build_objc_method_call): Eval OBJECT and SELECTOR - only once. Always pass self_decl as self to the method. +Mon Aug 31 12:59:22 PDT 1992 Ron Guilmette (rfg at netcom.com) -Thu Dec 5 14:52:16 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * tree.c (make_node): Fix typo in July 6 change: + assignment of DECL_IN_SYSTEM_HEADER was inserted in bad place. - * ccrtstuff.c, gnulib2.c, protoize.c: Include tm.h not config.h, - since these are complied for the target, host defines do not apply. +Mon Aug 31 21:28:08 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Thu Dec 5 14:52:24 1991 Michael Meissner (meissner at osf.org) + * sched.c (sched_analyze_2): Remove an explicit dependence between + an insn that uses CC0 and the immediately previous insn + (SCHED_GROUP_P represents the dependence). + (schedule_block): Only check sets_cc0_p on an insn. - * dbxout.c (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): If - not defined, define as .stabs/.stabn/.stabd respectively. Change - all places emitting stabs to use the macros. - * cp-decl2.c: Ditto. - * cp-gc.c: Ditto. - * final.c: Ditto. - * varasm.c: Ditto. - * gcc.texinfo: Document ASM_STAB[DNS]_OP macros. +Mon Aug 31 15:32:13 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Dec 5 12:03:40 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * gcc.c (struct compiler): spec field is now array of 4 elements. + (read_specs): Clear the entire new element of compilers. + (lookup_compiler): Copy all of spec array. Check element 0 for @. + (main): Concatenate all elements of compiler spec. + (validate_all_switches): Validate from all elements of compiler spec. + (default_compilers): Split CPP commands into separate strings. - * gcc.c (process_command): Don't put `.' on startfile_prefix. - Cast result of alloca. +Mon Aug 31 10:06:16 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * config/*.h (ASM_OUTPUT_ASCII): Put parens around all uses of args. + * caller-save.c (restore_referenced_regs): When restoring a + referenced hard register, use CEIL instead of a truncating divide + to determine the maximum number of registers to restore. + (insert_save_restore): Document maxrestore parameter. + (CEIL): Define. - * hp800.h, hp800.c, hp800.md, xm-hp800.h: New files. - * va-hp800.h: New file. - * gvarargs.h: Use va-hp800.h if needed. - * config.subr, configure: Add alternatives for hp800, hp700. +Mon Aug 31 04:02:21 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Dec 5 09:35:15 1991 Michael Tiemann (tiemann at cygnus.com) + * fold-const.c (const_binop): Delete special case for mult by 3. - * cp-search.c (note_debug_info_needed): Do the right thing for - static member functions. + * toplev.c (lang_options): Add terminating zero. -Thu Dec 5 01:25:13 1991 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) + * configure.bat: Remove version number from initial message. - * version.c: Now 1.96. +Sun Aug 30 17:22:11 1992 James Van Artsdalen (james at bigtex.cactus.org) -Wed Dec 4 23:17:23 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cccp.c (do_pragma): In prev. change, really use U_CHAR *, not char *. - * reorg.c (try_merge_delay_insns, fill_simple_delay_slots): Correctly - update NEXT_TRIAL after possibly splitting an insn. + * aix386.h, i386gas.h, i386sun.h, i386v.h, i386v4.h, i386vgas.h, + seq386.h (TARGET_DEFAULT,VALUE_REGNO,FUNCTION_VALUE_REGNO): + Move from here, + * unx386.h (TARGET_DEFAULT,VALUE_REGNO,FUNCTION_VALUE_REGNO): + To here. + (TARGET_DEFAULT): Make TARGET_IEEE_FP default on. + (VALUE_REGNO): Test for MODE_FLOAT instead of specific modes. + (VALUE_REGNO,FUNCTION_VALUE_REGNO): MODE_FLOAT return reg depends on + TARGET_FLOAT_RETURNS_IN_80387. -Wed Dec 4 17:03:11 1991 Jim Wilson (wilson at sphagnum.cygnus.com) + * i386.h (TARGET_FLOAT_RETURNS_IN_80387): New macro. + (TARGET_SWITCHES): Add "no-80387", "no-soft-float", + "fp-ret-in-387", and "no-fp-ret-in-387". + Change no* switches to no-*. + (CONDITIONAL_REGISTER_USAGE): Make 387 regs fixed if the 387 is not + used at all. + (REG_CLASS_FROM_LETTER): Constraint letters 'f', 't' and 'u' are + NO_REGS if the 387 is not used. + (TRAMPOLINE_TEMPLATE): Use GEN_INT to generate const_int rtx. - * gplus.gperf: Add throw and template keywords. Update private, - protected, and public definitions. + * x-i386v4: New file. + (CLIB): Get alloca from libucb.a. + * configure (i386-*-sysv4*): Use x-i386v4. - * print-tree.c (print_node): Add missing indentation argument to - print_node call for values field. +Sun Aug 30 15:32:54 1992 Dennis Glatting (dglattin at trirex.com) -Wed Dec 4 18:39:33 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * objc-actions.c (create_builtin_decl): Set TREE_STATIC. + Don't set DECL_EXTERNAL or TREE_PUBLIC. - * objc-actions.c (build_objc_method_call): Define as static. +Sun Aug 30 03:08:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Dec 4 17:04:49 1991 Michael Meissner (meissner at osf.org) + * c-parse.y (initlist): Handle ranges of array elements. + * c-typeck.c (process_init_constructor): Handle ranges. - * mips-tfile.c (add_varray_page, alloc_type enum): Keep track of how - many pages we allocated for varrays as well as the small stuff. - (stabs_filename): New static to hold the special filename used for - passing stabs through. - (parse_stabs_common, parse_stabs, parse_stabn): New functions to - smuggle stabs through to the debugger. Stabs must be commented out, - just like the other debug directives. - (add_local_symbol): Check hash_ptr to see if it's null before - storing into it, in case no name is passed. - (add_file): Add support for the special stabs file. - (copy_object): Before copying the external symbols, figure out the - file indexes of each of the files, and then explicitly remap the - original file indexes of the external symbol to be the new file - index. If this isn't done, then bad file numbers can get generated - if a filename is repeated. - (various): Change the name of small_alloc to alloc_counts, since we - now track large memory allocations as well. + * fixincludes: When link points to a dir $dirname outside $INPUT, + copy that dir into $LIB/root$dirname. Translate the link itself + into a link to that new dir. Make a file DONE in each treetop dir + so no treetop is scanned twice. Improve progress messages. - * mips-tdump.c (toplevel): Delete unnecessary include file stamp.h. +Sat Aug 29 22:41:49 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Dec 4 11:05:04 1991 Michael Collison (collison at osf.org) + * alpha.h (ASM_FILE_START): Object file version number now 8.0. - * encore.h (ASM_OUTPUT_LABELREF_AS_INT): add definition - * ns32k.h: ditto + * alpha.h (ADJUST_COST): New macro. + * alpha.c (alpha_adjust_cost): New function. + * alpha.md: Adjust function unit delays and more precisely + describe function units. + + * alpha.h (CONST_OK_FOR_LETTER_P): Add new letters `O' and `P'. + * alpha.c (print_operand, case 'P'): New case. + * alpha.md (ashldi3): Special-case shifts by 1, 2, and 3 bits to + use arithmetic instructions. + Add pattern for sign-extending shifts by 1, 2, and 3 bits. - * ns32k.h (ASM_OUTPUT_LABEL, ASM_GLOBALIZE_LABEL): If COLLECT is - defined provide alternate definitions + * alpha.h (INITIALIZE_TRAMPOLINE): Use Pmode when appropriate. + (FUNCTION_MODE): Use Pmode. - * encrose.h (ASM_OUTPUT_INT): If COLLECT is defined provide - alternate definition + * alpha.md (div/mod): Indicate that reg 27 is clobbered too. -Wed Dec 4 01:39:07 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * alpha.md (cmov): Add define_split for if_then_else/plus case. - * cp-pt.c (end_template_decl): For method templates, pop the class - binding level before the others rather than after. + * expr.c (emit_library_call): Pass correct number of args to + convert_to_mode. - * cp-class.c: Added DEBUG_CP_BINDING_LEVELS code. Include cp-decl.h - if that symbol is defined, but don't list it in Makefile.in since - that's not the normal mode. - (pushclass): Print messages and frob indentation level. - (popclass): Likewise. + * expr.c (emit_block_move): Eliminate unnecessary test against + HOST_BITS_PER_WIDE_INT. - * cp-spew.c (yylex): If identifier_type says PTYPENAME, and - following token is "<", force looking_for_typename to be - non-negative. + * optabs.c (expand_{binop,unop}): Don't make invalid + paradoxical SUBREGs. - * cp-pt.c (mangle_class_name_for_template): Drop extra spaces - between last parm and closing ">". Print a message before aborting - if a parm type isn't handled. + * genattrtab.c (RTL_HASH, attr_rtx): Avoid warnings by casting + pointers to HOST_WIDE_INT instead of int. - * cp-decl.c (maybe_globalize_type): Don't do it if the identifier - that names the type doesn't currently have a type value. -Wed Dec 4 01:06:28 1991 Michael Tiemann (tiemann at cygnus.com) +Sat Aug 29 15:35:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-decl.c (finish_enum): Call `rest_of_type_compilation' for - ENUMTYPE. - * cp-class.c (finish_struct): Ditto. - * cp-decl.c (pushtag): Set TYPE_STUB_DECL. - * cp-search.c (note_debug_info_needed): Call - `rest_of_type_compilation' if we notice we need debug info for TYPE. - * dbxout.c (dbxout_init): Fix typo in comment. + * toplev.c (lang_options): New table. + (main): Recognize all language-dependent options of any language + and always treat them as language-specific and valid. - * cp-parse.y (DOT_STAR): New token. - (expr_no_commas): Handle DOT_STAR expressions. - * cp-lex.c (real_yylex): Recognize DOT_STAR. Also, rearrange - scanner to make it more efficient. + * c-decl.c (c_decode_option): -fnotraditional really undoes + -ftraditional. Handle -fno-traditional also. - * cp-decl.c (maybe_build_cleanup): When building cleanups, pass - TYPE_MAIN_VARIANT to `build_delete'. +Sat Aug 29 00:34:01 1992 James Van Artsdalen (james at bigtex.cactus.org) -Tue Dec 3 22:52:33 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * reg-stack.c (record_reg_life): Mark an unused reg as such, even + if it appears in SET_SRC. - * flow.c (mark_set_1): Make a REG_UNUSED note not a REG_DEAD note - for the part of multi-word hard registers not needed. +Fri Aug 28 17:40:49 1992 John F Carr (jfc at Athena.MIT.EDU) -Tue Dec 3 22:34:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * tree.c (chainon): Check for op2 being the last elt of the chain. - * configure: Support --objdir. +Fri Aug 28 13:26:56 PDT 1992 Ron Guilmette (rfg at ncd.com) - * objc-parse.y: Get rid of many static decls. - Reorder all token definitions to match c-parse.y. - (recognize_objc_keyword): New function. - * c-lex.c (token_buffer): No longer static. - (yylex): For @, call recognize_objc_keyword. Don't use keyword table. - * c-lang.c (recognize_objc_keyword): Dummy definition. + * cccp.c (do_pragma): Use rindex, not strrchr. - * objc-actions.c (build_objc_method_call) [!NEXT_OBJC_RUNTIME]: - Pass selector as arg to the method. - Always cast the method to a function type. + * tree.h (BLOCK_END_NOTE): Macro definition added. + (struct tree_block): `end_note' field added. + * stmt.c (last_block_end_note): New variable. + (remember_end_note): New function. + (expand_end_bindings): Save NOTE_INSN_BLOCK_END in last_block_end_note. + * c-decl.c, cp-decl.c (poplevel): Call `remember_end_note' for each + newly created BLOCK node. + * integrate.c (adjust_copied_decl_tree): New function. + (save_for_inline_copying): When making copies of NOTE_INSN_BLOCK_END + notes, stash a "forwarding" pointer in the original to point to the + copy. Also, when all BLOCKs & insns for a function have been copied, + call `adjust_copied_decl_tree' to fixup the end_note pointers in the + copied BLOCKs. - * xm-sparc.h (alloca): If using Sun CC, include alloca.h. - If using GCC, define as __builtin_alloca the way other machines do. +Fri Aug 28 13:25:59 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (print_containing_files): Print the nominal file names. + * cccp.c (do_pragma): In prev. change, use U_CHAR *, not char *. -Tue Dec 3 16:54:04 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Aug 28 09:11:56 1992 Tom Wood (wood@dg-rtp.dg.com) - * jump.c (jump_optimize): If branches are expensive, convert jumps - around increments or decrements by one into an increment by the - conditional expression. + * m88k.h (ADJUST_COST): Add definition. - * combine.c (simplify_comparison): Don't remove a SUBREG unless - it doesn't affect either operand. +Thu Aug 27 18:27:02 1992 James Van Artsdalen (james at bigtex.cactus.org) - * cse.c (find_comparison_args): Rework so that we can correctly - fold comparisons on machines that set CC0 to the result of a - condition test, not just a COMPARE. - (cse_insn): Don't set THIS_INSN_CC0 to a constant if we don't know - its mode. + * c-decl.c (init_decl_processing): Add sin and cos as built-in + functions. + * expr.c (expand_builtin): Likewise. -Tue Dec 3 12:01:12 1991 Jim Wilson (wilson at sphagnum.cygnus.com) + * expr.h (sin_optab,cos_optab): Declare optabs for sin and cos. + * optabs.c (sin_optab,cos_optab): Define them. + (init_optabs): Initialize them. - * mips.md: Use AND not IOR in define_function_unit definitions. - Correct setting of MODE attribute in various insn patterns. + * tree.h (BUILT_IN_SIN,BUILT_IN_COS): New builtin codes. -Tue Dec 3 08:31:18 1991 Michael Tiemann (tiemann at cygnus.com) + * reg-stack.c (record_note_if_dead): Delete function. + (record_reg_life_pat): Rewrite to handle any sort of pattern. + (record_reg_life): Change interface to record_reg_life_pat. - * cp-spew.c (scan_tokens): Delete Dec 2 change. - (yylex): Instead, copy TMP_TOKEN.YYLVAL.TTYPE if it was allocated on - the wrong obstack. - (probe_obstack): New function to support the above change. + (stack_reg_life_analysis): Don't assume that MODE_FLOAT values are + always returned in a float reg. - * cp-tree.h (CLASSTYPE_DEBUG_REQUESTED): New flag. - (CLASSTYPE_ASM_WRITTEN): Deleted. - cp-class.c (finish_struct): Now almost always assume that classes - with methods are to ignored for debugging purposes. - cp-search.c (dfs_debug_{mark,unmarkedp}): Rewritten to handle new - algorithm for minimizing debug output. + (subst_stack_regs_pat): Add support for sin and cos insns. - * cp-decl2.c (constructor_name): Handle case when THING is a - UNION_TYPE. + * i386.c (all gen_rtx (CONST_INT) references): Use GEN_INT to + generate const_int rtx. + (legitimize_pic_address): Pass NULL_RTX instead of "0" as pointer. -Tue Dec 3 06:35:38 1991 Michael Tiemann (tiemann at cygnus.com) + * i386.md (all patterns): Use GEN_INT instead of gen_rtx to get + const_ints. + Avoid double-negative "! NON_*" constructs for clarity. + Pass NULL_PTR as null parameter instead of 0. - * jump.c (duplicate_look_exit_test): If REG_MAP is non-zero, call - replace_regs on the REG_NOTES of COPY. + (sqrtM2): Patterns are only valid if IEEE FP or -ffast-math. + (sinM2,cosM2): New patterns. + (zero_extract test): New pattern. + (movstrsi): Rewrite expander to handle operands correctly. - * cp-spew.c (scan_tokens): Don't read past '='. +Thu Aug 27 16:58:09 1992 Michael Meissner (meissner@osf.org) - * cp-call.c (compute_conversion_costs): For now, treat - CONTRAVARIANCE_HARSHNESS as EVIL_HARSNESS, since we cannot tell the - difference between when we should accept it (pointers to the right - sort of methods) and when we shouldn't (base* to derived* - conversions). + * genattrtab.c (MAX_DIGITS): New macro to gauge how much space we + need to reserve when printing integers. + (expand_delays): Use sizeof and MAX_DIGITS to properly size the + strings when calling attr_printf. + (expand_units): Ditto. + (encode_units_mask): Ditto. + (make_numeric_value): Ditto. + (oballoc): New macro, to allocate from the hash_obstack. + (convert_const_symbol_ref): Call oballoc instead of xmalloc. + (get_attr_value): Ditto. + (fill_attr): Ditto. + (make_length_attrs): Ditto. + (gen_attr): Ditto. + (gen_insn): Ditto. + (gen_delay): Ditto. + (gen_unit): Ditto. + (find_attr): Ditto. + (main): Ditto. -Mon Dec 2 18:53:42 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Thu Aug 27 14:47:16 1992 Mike Stump (mrs@mole.gnu.ai.mit.edu) - * cse.c (cse_around_loop): Fix typo in comment. - * dbxout.c (dbxout_type_fields): Likewise. + * cp-decl.c (curent_block, struct binding_level, poplevel): Copy + Tue Aug 25 16:29:47 and Wed Aug 26 01:56:30 changes in c-decl.c by + rms. - * sched.c (sched_analyze_1): Pass the second and third args of a - ZERO_EXTRACT or SIGN_EXTRACT in the SET_DEST to sched_analyze_2. +Thu Aug 27 01:32:11 1992 Paul Eggert (eggert@twinsun.com) - * combine.c (make_compound_operation): Change (lshiftrt (ashift ...)) - to a ZERO_EXTRACT, not a SIGN_EXTRACT. + * c-lex.c, cp-lex.c (readescape): DEL isn't printable. + * c-typeck.c (check_format): Likewise. -Mon Dec 2 15:09:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Wed Aug 26 20:42:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): New arg AFTER_REGSCAN. - If not set, don't use duplicate_loop_exit_test. - * toplev.c (compile_file): Pass new arg to jump_optimize. + * c-lex.c (readescape): For \x, don't include leading 0's in count. - * next.h (SELECT_SECTION): Test TREE_CONSTANT as well as TREE_READONLY. + * c-decl.c (init_decl_processing): Fix type of __builtin_constant_p. - * xm-i86v[34].h: Renamed from xm-i860v[34].h. - * configure: Corresponding changes. + * expr.c (emit_block_move): When trying movstrMM, cvt size to mode MM. - * m68k.c (output_function_epilogue): Put %R on all regs in asm_fprintf. + * c-parse.y (stmt): For computed goto, convert arg to void *. - * t-decstatn (ld): Just copy collect2. - (collect): Target deleted. - (EXTRA_PASSES): Deleted collect. - (mips-tfile, mips-tdump): Depend on LIBDEPS. - * t-mips (mips-tfile, mips-tdump): Depend on LIBDEPS. - * collect2.c (main): Run /bin/ld. - Use fatal_perror where appropriate. + * fold-const.c (fold): Do A op C1 ? A : C2 opt only for INTEGER_TYPEs. - * objc-actions.c (build_message_expr): Fix typo. +Wed Aug 26 20:19:56 1992 Mike Stump (mrs@wombat.gnu.ai.mit.edu) - * configure: Add missing fi to finish last change. + * cp-decl.c (insert_block, delete_block): New functions. + * cp-parse.y (primary, using compstmt): Call delete_block instead + of clearing TREE_USED. - * cse.c (simplify_binary_operation): Restore missing break in case DIV. + 11th Cygnus<-->FSF merge. - * sdbout.c (sdbout_init): Explicitly do nothing. - (sdbout_typedefs): Function deleted. + Wed Aug 26 12:02:41 1992 Mike Stump (mrs@rtl.cygnus.com) -Mon Dec 2 12:504:35 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) + * cp-decl.c (finish_function): Don't core dump when a conversion is + ambiguous. - * config-gcc.com: Finish changeover from tm-*.h to *.h. + Tue Aug 25 16:32:42 1992 Mike Stump (mrs@rtl.cygnus.com) -Sun Dec 1 05:18:32 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-init.c (build_new), cp-typeck.c (build_c_cast): Handle ``new + type ( ... )'' better. Default constructors and better error + checking. - * cp-search.c (lookup_{field,fnfields}): If PROTECT is 0, don't - memoize the entry we find. + Tue Aug 25 01:21:48 1992 Mike Stump (mrs@cygnus.com) - * cp-decl.c (grokvardecl): Call `build_lang_field_decl' instead of - `build_decl' if we retroactively allocate a VAR_DECL. + * cp-decl2.c (finish_file): Mark " @%$#@!" as being internal. -Sun Dec 1 00:10:18 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Aug 24 16:40:15 1992 Brendan Kehoe (brendan@cygnus.com) - * configure: Convert option syntax from + to --. - Support --target. + * cp-lex.c (check_newline): For `#pragma implementation', use + strcmp to check if it was done at the top level, rather than relying + on the pointers being the same. - * i386v4.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_GLOBAL): Deleted. - (ASM_FILE_START): Deleted. - (STARTFILE_SPEC, LIB_SPEC, STANDARD_STARTFILE_PREFIX): Deleted. - (STDC_VALUE): Deleted. + Mon Aug 24 20:48:16 1992 Mike Stump (mrs@cygnus.com) - * real.h (REAL_VALUE_TRUNCATE): Check for same size as SFmode. + Fri Aug 21 14:19:27 1992 Ron Guilmette (rfg at ncd.com) - * config/*.h: Renamed from tm-*.h. #includes and comments changed. - * configure: Changed accordingly. - * t-*: tm-*.h file names changed. + * cp-decl2.c (grokclassfn): Mark the artificial `this' parameter as + "artificial". - * gnulib2.c (__enable_execute_stack): Renamed function. - * convex.h (INITIALIZE_TRAMPOLINE): Use new name. + Thu Aug 20 22:59:16 1992 Mike Stump (mrs@cygnus.com) -Sun Dec 1 08:57:45 1991 Michael Meissner (meissner at osf.org) + * cp-spew.c (arbitrate_lookup): Make sure the type name in an + argument list followed by &, or &) is seen as a type name, even when + there is an enumeration constant with the exact same name. - * cccp.c (main): Add cast in front of alloca for non GCC compilers. + Thu Aug 20 21:58:30 1992 Mike Stump (mrs@cygnus.com) -Sat Nov 30 22:33:24 1991 Chris Smith (csmith@convex.com) + * cp-search.c (get_first_matching_virtual): Don't core dump when a + declaration of a static member is seen with the same name as a base + class virtual function. - * config.subr: Recognize -c3*. - New alternatives for convex-c3*. - * configure: Alternatives for convex rewritten. + Thu Aug 20 21:20:31 1992 Mike Stump (mrs@cygnus.com) - * gnulib2.c (__execute_enable_stack): New function for Convex only. + * cp-decl.c (finish_function): Don't core dump on parse errors. - * gcc.c (do_spec_1): Use \ as quoting char. + Thu Aug 20 20:52:43 1992 Mike Stump (mrs@cygnus.com) - * convex.h (TARGET_SWITCHES): Add new machine types c32, c34, c38. - Add flag TARGET_INDIRECTS, true for c1 and c2, false for c3. - * convex.h (GO_IF_LEGITIMATE_ADDRESS): Avoid indirect - addressing if ! TARGET_INDIRECTS. - - * convex.h: (BITS_PER_WORD, UNITS_PER_WORD, WORDS_BIG_ENDIAN): - It now works to describe machine correctly. + * cp-method.c (build_component_type_expr): Don't core dump on parse + errors. - * convex.h (SIZE_TYPE, PTRDIFF_TYPE): Make them ints rather - than longs to match usage in /usr/include. + Thu Aug 20 18:31:58 1992 Mike Stump (mrs@cygnus.com) - * convex.h (enum reg_class): Add classes SP_REGS, the stack - pointer, and INDEX_REGS, the remaining A_REGS. - (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust - for new classes. - (INDEX_REG_CLASS, BASE_REG_CLASS): Use INDEX_REGS so gcc will - not index off the stack pointer (register 0). + Mon Aug 17 17:08:11 1992 Chip Salzenberg (chip@tct.com) - * convex.h (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE, - INITIALIZE_TRAMPOLINE): Define. + Copy some changes from the C front-end: - * convex.h (INITIAL_FRAME_POINTER_OFFSET): Define. + * cp-type2.c (process_init_constructor): Warn about partly bracketed + initializers. + * cp-typeck.c (build_component_ref): Don't warn for compound and + conditional expressions when pedantic. These are valid in ANSI C. - * convex.h (RTX_COSTS): Specify costs to prevent multiply - from being synthesized from shifts (which aren't faster). + Thu Aug 20 16:11:58 1992 Mike Stump (mrs@cygnus.com) - * convex.h (NOTICE_UPDATE_CC): No need to do CC_STATUS_INIT, - cc is never looked at. + * cp-decl.c (start_decl), cp-parse.y (have_extern_spec): extern "C" + int i; is only a declaration, but a definition, make it so. - * convex.h (VTABLE_USES_MASK, VINDEX_MASK, SET_DECL_VINDEX): - define so g++ works. + Thu Aug 20 14:46:39 1992 Mike Stump (mrs@cygnus.com) - * convex.h: If COLLECT is defined, define output macros for - collect to call. + Thu Aug 20 02:36:39 1992 Ron Guilmette (rfg at ncd.com) - * convex*.h: If !traditional, define _LONGLONG and 64-bit - typedefs to prevent types.h from murdering ansi compilations. + * cp-lex.c (cons_up_default_function): Use DECL_SOURCE_LINE = 0 for + compiler generated things, not DECL_IGNORED_P. - * convex.md (movsi): split into define_expand and two - anonymous define_insns, one that uses indirection and - one that doesn't. TARGET_INDIRECTS selects which. + Thu Aug 20 13:13:45 1992 Mike Stump (mrs@cygnus.com) - * convex.c (output_call): New routine. Scan forward from call - to decide if AP is live, omit AP reload if not. - * convex.md (call, call_value): use output_call. + Wed Aug 19 13:09:45 1992 Ron Guilmette (rfg at ncd.com) - * convex.md (bit manipulation peepholes): remove, now done in - combine. + * cp-decl.c (grokdeclarator): Propagate some changes from the C + front-end to deal with variable sized arrays. - * convex.md (indirect_jump): Define. + Wed Aug 19 16:55:43 1992 Mike Stump (mrs@cygnus.com) - * convex.c (const_double_{high,low}_int): Just return the - appropriate word, remove slow float computations. + * cp-cvt.c (convert_to_reference): Improve wording on error message. + * cp-method.c (type_as_string), cp-pt.c + (mangle_class_name_for_template), cp-xref.c (GNU_xref_decl): Delete + first argument to type_as_string as it is not needed anymore. - * math-convex: New file to use builtin instructions. + Wed Aug 19 15:29:02 1992 Mike Stump (mrs@cygnus.com) - * x-convex: Use cc -pcc to bootstrap gcc. + Wed Aug 19 13:09:45 1992 Ron Guilmette (rfg at ncd.com) -Sat Nov 30 10:21:26 1991 Ron Guilmette (rfg at ncd.com) + * cp-decl.c (kept_level_p): Update from C frontend. - * tm-i386v4.h (DBX_REGISTER_NUMBER): Different renumbering. + Wed Aug 19 14:47:08 1992 Mike Stump (mrs@cygnus.com) - * tm-svr4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Changed - so that the progbits parameter actually appears in the definitions. + * cp-decl2.c (groktypefield): Old style conversion operators + are being desupported. Conversion operators much have an + `operator' in front of them. - * tm-svr4.h (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Adapted - for change in CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP. + Wed Aug 19 01:57:04 1992 Mike Stump (mrs@cygnus.com) -Sat Nov 30 07:05:06 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-call.c (ideal_candidate): Fix bug introduced on Jan 21 + 7:24:21. Warn about ambiguous function calls with multiple + same cost conversions. - * cp-spew.c (follows_{identifier,typename}): New arrays. - * cp-spew.c (init_spew): Initialize new arrays. - * cp-decl.c (lookup_name): takes new parameter PREFER_TYPE. - All callers changed. - * cp-spew.c (yylex): Set LOOKING_FOR_TYPENAME every time we see an - AGGR or ENUM. + Wed Aug 19 00:08:18 1992 Mike Stump (mrs@cygnus.com) - * cp-lex.c (real_yylex): When composing EXTERN_LANG_STRING, call - `real_yylex', not `yylex'. Changed other places that depended on - calling `real_yylex' for their input. - - * cp-spew.c (scan_tokens): Never read past '{' or ':'. Fill the - token buffer with EMPTY tokens in that case. - (yylex): Handle EMPTY tokens. - - * cp-parse.y (structsp): Avoid using `yyungetc' to push a ';' back - on the input stream. - (START_DECLARATOR): New token. - (absdcl): Handle START_DECLARATOR. - * cp-spew.c (consume_token): Renamed from `discard_token'. - (struct token): Changed structure to make it smaller. - (spew_init): Renamed from init_spew. Now called from init_lex. - (scan_tokens): Renamed from slurp_next_token. - Many functions reformatted to match GCC indentation style. - - * cp-lex.c (arbitrate_lookup): Don't guess in favor of type if - yychar is ')'. - - * cp-decl.c (lookup_name): Fixed so that all binding levels use - `looking_for_typename' consistently. - * cp-type2.c (build_functional_cast): Handle new case that we are - called in a context where a method is appropriate (but we parsed it - as a ctor call). - - * cp-call.c (CONST_HARSHNESS): Change bit that we test. - (convert_harshness,compute_conversion_costs): Call CONST_HARSHNESS - consisently when needed. - - * cp-init.c (decl_constant_value): Keep enabled even when - CURRENT_FUNCTION_DECL is null. - -Sat Nov 30 01:23:38 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * sdbout.c (sdbout_init): Just call sdbout_one_type on each type. - - * tm-att386.h (ASM_OUTPUT_ASCII): Output a space after ASM_BYTE_OP. - * tm-sun386.h: Likewise. - * tm-i386.h (ASM_OUTPUT_BYTE, ASM_OUTPUT_CHAR): Likewise. - (ASM_OUTPUT_SHORT, ASM_OUTPUT_LONG, ASM_OUTPUT_DOUBLE): Likewise. - (ASM_OUTPUT_FLOAT, ASM_OUTPUT_ADDR_VEC_ELT): Likewise. - * tm-att386.h (ASM_BYTE_OP, ASM_SHORT, ASM_LONG, ASM_DOUBLE): - Don't end with space. - * tm-sun386.h, tm-bsd386.h: Likewise. - - * c-lex.h: Renamed from c-parse.h. All #includes changed. - * c-parse.c, c-parse.h: Renamed from c-parse.tab.*. - * Makefile.in: Changed accordingly. - (C_OJBS, realclean, TAGS): These changed too. - - * tm-svr4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): - Undef before defining. - - * tm-i386v4.h: Include tm-svr4.h. - (CPP_PREDEFINES): Define SVR4, and several assertions. - (LIB_SPEC): Delete -Qy. LINK_SPEC handles this. - (DBX_REGISTER_NUMBER): New macro. - -Fri Nov 29 22:16:06 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * rs6000.md: Cannot use "muls" and "muli" to do widening multiply - from HImode to SImode; delete the 12 patterns that try to do this. - -Fri Nov 29 21:32:52 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-cvt.c (build_type_conversion): Don't assume that if - TYPE_HAS_{INT,REAL}_CONVERSION implies that CLASSTYPE_CONVERSION for - the given type combination is non-NULL. - -Fri Nov 29 16:08:22 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * crtstuff.c: New file. Needs papers from rfg. - * Makefile.in (crtbegin.o, crtend.o): New targets. - - * objc-actions.c (build_message_expr): Lots of cleanups. - (build_objc_method_call): New subroutine. - Handles new option NEXT_OBJC_RUNTIME. - - * expr.c (do_jump): Any LABEL_REF is nonzero. - (expand_expr): Construct LABEL_REFs with Pmode. - -Fri Nov 29 14:43:32 1991 Michael Meissner (meissner at osf.org) - - * mips-tfile.c (parse_def): Change an error into a warning. - - * mips.md (fix_trunc??si_opt, mov??_internal): Change '*' constraint - to '!' to keep reload from allocating FP registers from holding - excess integer values. - (ashift right define_splits): Fix typo, so that the long long - arithmetic right shifts are recognized. - (all define_splits): dummy out constraints, since they are not used. - - * mips.c (override_options): Allow int's in FP registers again, now - that ! constraints are used. - -Fri Nov 29 13:20:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * dwarfout.c (output_compile_unit_die): Don't include the name - of the compiler which compiled the compiler in the AT_producer - string. It goofs up comparisons of stage2 & stage3 object files. - - * c-parse.y, objc-parse.y: Don't declare position_after_white_space - as static; it is now in c-lex.c. - -Fri Nov 29 05:15:26 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (xref_tag): Check that TREE_CODE (ref) is aggr type - before storing into CLASSTYPE_DECLARED_CLASS (ref). - - * cp-decl2.c (build_push_scope): Don't let non-aggr types appear in - `cname::fname' expressions. - - * cp-class.c (resolves_to_fixed_type_p): VAR_DECL and FIELD_DECL - nodes of ARRAY_TYPE may resolved to fixed type. Also handle other - cases of WITH_CLEANUP_EXPR. - - * cp-spew.c (frob_identifier): Handle case of a type conversion - operator that converts to a nested type. - - * cp-expr.c (cplus_expand_expr): In NEW_EXPR case, if ARGS is - permanent, build a new arglist instead of modifying it in place. - - * cp-typeck.c (convert_arguments): Add ??? to comment about virtual - function conversions. ??? I don't understand what that code is - supposed to do anymore. - (comp_target_parms): If STRICT <= 0, accept types whose - TYPE_MAIN_VARIANTs are equal. - - * cp-call.c (convert_harshness): Revamped to handle contravariance - better. - * cp-class.h (struct candidate): Declaration moved from cp-tree.h. - - * cp-class.c (duplicate_tag_error): New function. - * cp-parse.y (LC): Call it if we're redefining a tag. - * cp-decl.c (duplicate_decls): Only copy DECL_ARGUMENTS from OLDDECL - if non-NULL. Otherwise we get nonsense when we try to parse - inline function bodies of classes that have already been redefined. - * cp-lex.c (reinit_parse_for_method): If we get some text for a - class that's been redefined, flush the text. - * cp-tree.h (TYPE_REDEFINED): New field in `struct lang_type'. - - * cp-cvt.c (convert_to_integer): Only warn about anachronistic - conversion from int to enum if PEDANTIC is nonzero. - - * cp-typeck.c (convert_for_initialization): No longer give warning - messages about bitwise copy: this is currently how the default X(X&) - constructor is implemented. - * cp-init.c (expand_aggr_init_1): Ditto. - - * cp-method.c (dump_init): Handle WITH_CLEANUP_EXPR and TARGET_EXPR. - * tree.c (simple_cst_equal): Handle WITH_CLEANUP_EXPR. Correct - handling of TARGET_EXPR case. - - * cp-decl.c (grok_reference_init): If DECL is permanent, make it's - DECL_REFERENCE_SLOT permanent as well. - - * cp-cvt.c (build_type_conversion): If PEDANTIC, give message about - conversions which cast away const. - - * cp-decl.c (store_return_init): If PEDANTIC, give error about named - return values. - - * cp-init.c (decl_constant_value): Don't return DECL_INITIAL if - CURRENT_FUNCTION_DECL is null or if the initializer is a - CONSTRUCTOR. - -Thu Nov 28 05:29:52 1991 Michael Tiemann (tiemann at cygnus.com) - - * integrate.c (expand_inline_function): When passing objects by - invisible reference, correctly compute the amount of space to be - allocated in the pseudo-frame we create for the inline function. - - * cp-typeck.c (mark_addressable): Add call to - `mark_inline_for_output' that got lost in Nov 25 change. - - * cp-decl.c (push_overloaded_decl): If the value of a name is an - ADDR_EXPR, look inside to get the _DECL node. - - * cp-decl.c (grokdeclarator): Don't convert type of operators new - and delete to METHOD_TYPE; they remain FUNCTION_TYPEs. - - * function.c (expand_function_start): Set TREE_REGDECL bit on - RESULT_DECL if result starts life in a register. - - * c-common.c (truthvalue_conversion): Don't treat a CONVERT_EXPR as - a NOP when it or the expression inside it is of REFERENCE_TYPE. - - * cp-class.c (finish_struct): Test DESTRUCTOR_NAME_P on - DECL_ASSMBLER_NAME, not DECL_NAME. - -Wed Nov 27 13:49:10 1991 Jim Wilson (wilson at sphagnum.cygnus.com) - - * cse.c (simplify_relational_operation): Correct handling of - COMPARE as first argument. Always strip it off. Don't invert - return value for EQ when !HAVE_cc0. - -Thu Nov 28 20:08:15 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * gmon.c: New file. - -Thu Nov 28 15:02:24 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (subst, case SET): Never make a paradoxical SUBREG of - a REG unless the SUBREG and REG occupy the same number of words. - - * emit-rtl.c: Include flags.h. - (operand_subword): Always look inside floating if -fpretend-float. - * final.c (split_double): Likewise. - * Makefile.in (emit-rtl.o): Includes flags.h. - - * c-lex.c (yylex): Add goto to `L' case. - -Thu Nov 28 08:37:02 1991 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) - - * tm-mips.h (ASM_OUTPUT_INT): Use `do {...} while (0)' so it can be - used in if/else constructs. - -Thu Nov 28 00:23:26 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * tree.h (BUILT_IN_FRAME_ADDRESS, BUILT_IN_RETURN_ADDRESS): - New function codes. - * c-decl.c (init_decl_processing): Declare the functions. - * expr.c (expand_builtin): Implement them. - - * gcc.c: Pass to ld all the dirs in LIBRARY_PATH: - (library_prefix): New list of prefixes. - (process_command): Put dirs from LIBRARY_PATH on that list. - (do_spec_1): %D outputs those dirs. - (link_command_spec): Use %D after passing -L options. - - * gcc.c (process_command): Don't require machine suffix - for dirs from COMPILER_PATH or LIBRARY_PATH. - - * cccp.c (main): C_INCLUDE_PATH, etc., add dirs rather than replacing. - - * Use the TYPE_DECLs to drive dbx and sdb output of type tags. - * toplev.c (rest_of_type_compilation): New function. - (compile_file): Pass list of initial decls to dbxout_init, sdbout_init. - (various): Don't call get_*_types. - * dbxout.c (dbxout_init): Get initial types from that list. - * sdbout.c (sdbout_init): Likewise. - * sdbout.c, dbxout.c: Don't call get_*_types. - (*out_typedefs): New subroutines. - * c-decl.c (finish_struct, finish_enum): Call rest_of_type_compilation. - (pushtags): Record TYPE_STUB_DECL. - * tree.h (TYPE_STUB_DECL): New macro. - * stor-layout.c (chain_type, get_permanent_types, get_temporary_types): - Deleted. - (save_storage_status, restore_storage_status): Don't frob chains. - (layout_type): Don't call chain_type. - - * dbxout.c (dbxout_type_fields): Output `/'-spec after type tag - only if really needed. - -Wed Nov 27 18:52:55 1991 Michael Tiemann (tiemann at cygnus.com) - - * expr.c (expand_expr): Typo in expand_end_bindings, in BIND_EXPR case. - -Wed Nov 27 23:10:48 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * cccp.c (main): Use savestring, not strdup. - -Wed Nov 27 17:10:17 1991 Michael Meissner (meissner at osf.org) - - * mips.c (mips_load_reg3, mips_load_reg4): New global variables to - enable scheduling the second nop for the mfhi and mflo instructions. - (mips_hard_regno_mode_ok): New global array to give the results - of HARD_REGNO_MODE_OK for each register and mode. - (mips_fill_delay_slot): Instead of taking the number of nops as a - parameter, take an enumeration, giving what kind of delay this is. - If the next instruction is a label, put nops before label, not - after. Add support for mflo/mfhi, which need 2 nops if the next - instruction would modify the hi/lo registers. - (mips_move_1word, mips_move_2words): mips_fill_delay_slot calling - sequence changes. Pass mflo/mfhi to schedule nops. - (mips_move_2words): Move DImode to/from hi and lo registers is now - supported. - (function_arg): Correctly align long long parameters, just like - doubles. Also correct typo in debug code. Bug report from - lisa@MicroUnity.com. - (override_options): Initialize mips_hard_regno_mode_ok. Restrict - int's from going in the FP registers, to limit the register - allocator from allocating them instead of using memory. Also, make - the special registers (HI, LO, FPSW) only accept full sized ints, or - a double int for the HI:LO combination. - (compute_frame_size): Don't set the initialized member until reload - has completed, since otherwise the information may change. - - * mips.md (various): Add 64 bit integer operations for addition, - subtraction, negation, and, inclusive or, exclusive or, one's - complement, shifts, and nor. Add 32x32->64 bit support for - multiply, which the compiler then uses to construct 64 bit - multiplies. - (mulsi3): Break mul into it's two instructions, and schedule the - two nops needed for the mflo instruction. Don't allow an integer - multiplier anymore. - (ffssi2): Delete define_expand, and use a second clobber'ed register - to preserve the original input, instead of (clobber (match_dup 1)). - (movsi_ulw): Change mips_fill_delay_slot calling sequence. - (movdi_internal): Allow DImode move from HI/LO to/from GP registers. - (movdi define_split): Add a define_split to separate the two parts - of DImode register pairs when using GP registers. - (movdf define_split): Add a define_split to separate the two parts - of DFmode register pairs when using GP registers. - (mov??_internal): Change condition to call memory_operand, instead - of just checking for MEM, which disallows (subreg (MEM)) during - the intermediate parts of the compilation. Reported by - lisa@MicroUnity.com. - (negsi2): Turn back into a real insn instead of just a - define_expand for subsi3. - (one_cmplsi2): Turn back into a real insn instead of just a - define_expand for norsi3. - (andsi3, iorsi3, xorsi3): Be more liberal than the real machine, and - allow 32 bit constants to improve the code generated for bitfields, - at the expense of potentially not moving the constant out of loops. - (various): Add = constraint to all clobbers. - (fix_trunc*): Go back to old method of using two clobbers, since - unoptimized compiles call abort otherwise, when returning the result - of truncating a float as a function result. - - * tm-mips.h (delay_type): New enum to express different types of - delay slots. - (mips_load_reg3, mips_load_reg4): Declarations for more registers - to check for needing nops. Used by multiply/divide to schedule - the two nops needed after mfhi/mflo if the next instruction would - clobber the register. - (CONDITIONAL_REGISTER_USAGE): If -msoft-float, disable all FP - registers. - (MASK_DEBUG_G): Add comment saying -mdebugg turns of new DImode - patterns, in case the code is wrong. - (HARD_REGNO_NREGS): All FP registers use register pairs, so that - SF in a GP register takes only one register, and SI in a FP - register takes 2. - (HARD_REGNO_MODE_OK): Change macro to reference the array - mips_hard_regno_mode_ok, which is now built in override_options. - (CONST_OK_FOR_LETTER_P): 'N' is now for negative numbers, 'O' is - an exact power of 2, and 'P' is now for positive numbers. - (PREFERRED_RELOAD_CLASS): If -msoft-float, never prefer a FP - register. - (PREFERRED_RELOAD_CLASS_FM): Delete, since nobody uses it. - (FINAL_PRESCAN_INSN): Check for mips_load_reg3 and mips_load_reg4 - being mentioned. Also add a missing tab when more than one delay - slot. - (CONST_COSTS): Make all constant ints cost 0 to lower register - pressure according to Richard Kenner. - (RTX_COSTS): Adjust costs for DI, SF, and DF modes, and add ABS/FFS - costs as well. - (REGISTER_MOVE_COSTS): Bump costs for moving between register - classes, so that reload doesn't try to store int type values in the - floating point registers. + * cp-decl.c (grok_enum_decls): Remove invalid error message. -Wed Nov 27 15:01:52 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Aug 17 18:59:18 1992 Mike Stump (mrs@cygnus.com) - * config-gcc.com: Renaming of out-vax.c. - * make-cc1.com: Link dbxout with all languages. Add cp-spew. + * cp-cvt.c (convert_to_reference, convert, + build_type_conversion_1, build_type_conversion), cp-init.c + (build_dynamic_new), cp-typeck.c (build_modify_expr_1, + convert_for_initialization): Always use constructor_name, and + never TYPE_IDENTIFIER (type) and similar things. + * cp-init.c (expand_aggr_init_1): Try TYPE_HAS_CONSTRUCTOR + before wasting time trying build_method_call. + * cp-xref.c: Don't include memory.h. - * cccp.c (include_defaults_array): Fix typo. + Mon Aug 17 15:10:21 1992 Mike Stump (mrs@cygnus.com) - * gstddef.h: Handle _STDDEF_H_. + * cp-init.c (expand_aggr_init_1): Check for ambiguous + conversion. One through constructor and the other through a + user defined conversion operator. - * configure.bat, Makefile.dos: New files. + Mon Aug 17 11:51:27 1992 Mike Stump (mrs@cygnus.com) - * c-lex.c: New file. All subroutines moved here. - (yylex): Small diffs between C and OBJC merged. - * c-parse.y, objc-parse.y: Deleted from here. - * c-lang.c (lookup_interface): New stub. - * Makefile.in (c-lex.o): New rule. - (OBJC_OBJS, C_OBJS): Changed for new files. + * cp-call.c (convert_harshness): When an argument is T, a T& + should be choosen over a const T& when selecting overloaded + functions. -Wed Nov 27 13:34:15 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + Mon Aug 17 01:37:06 1992 Mike Stump (mrs@cygnus.com) - * c-parse.y (yylex): Don't assume that long is 32 bits and long - long is 64 bits when warning for out of range integer constants, - and when creating a tree to represent integer constants. - * cp-lex.c (real_yylex): Likewise. - * objc-parse.y (yylex): Likewise. + * cp-call.c (build_method_call): The second argument to + operator delete is sometimes magically deleted. + * cp-decl.c (init_decl_processing, grokfndecl): Global + operator delete never has two arguments. - * combine.c (simplify_comparison, ASHIFT case): Prevent shift by - HOST_BITS_PER_INT for inequality comparisons. + Wed Aug 5 18:54:19 1992 Mike Stump (mrs@cygnus.com) - * fold-const.c (operand_equal_p): Arguments are not equal if - signedness differs. Conversions don't match if signedness differs. + * cp-class.c (finish_struct), cp-tree.c (layout_basetypes): + Make sure VFIELD_BASEs are aligned. This fixes a really + annoying problem that causes code that uses complex + inheritance hierarchies that have virtual bases to get a + segmentation fault. - * sparc.md (movsi, movhi, movqi, movdi): Prohibit matches that - would require reloading by the use of conditions. + Wed Aug 5 12:35:07 1992 Mike Stump (mrs@cygnus.com) - * alloca.c (alloca): Add parens to make precedence clearer. + Wed Aug 5 08:10:34 1992 Tom Wood (wood@dg-rtp.dg.com) - * tm-news.h (PRINT_OPERAND): Add 68040 support so that the compiler - will bootstrap. + * cp-tree.c (__eprintf): `line' is unsigned. + * cp-lex.c: Include stdlib.h and locale.h if needed. + * cp-typeck.c (mark_addressable): Use DECL_EXTERNAL not + TREE_EXTERNAL. -Wed Nov 27 09:41:13 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Aug 5 03:20:07 1992 Mike Stump (mrs@cygnus.com) - * expr.c (expand_expr, case MIN_EXPR): Fix typo in operand number - in safe_from_p call. + * cp-class.c (finish_struct_methods): Check to make sure + operator delete is not overloaded. + * cp-decl.c (grokfndecl): Check to make sure operator delete + is declared properly. - * recog.c (indirect_operand): Correctly handle case where we have - a (subreg (mem X) C) after reload. + Tue Aug 4 16:52:28 1992 Mike Stump (mrs@cygnus.com) -Tue Nov 26 16:24:03 1991 Ron Guilmette (rfg at ncd.com) + Mon Aug 3 22:55:04 1992 Michael Meissner (meissner@osf.org) - * dwarfout.c (output_enumeration_type_die): Handle a GNU C - language extension: incomplete enum types. + * cp-decl.c (grokdeclarator): Make sure const and volatile get + put on the type built when building reference types. + * cp-parse.y (attrib): tree_cons takes three arguments, not + two. + * cp-tree.h: Add hash_chainon, build_virtual_init, + build_vbase_delete, build_vbase_vtables_init. + * cp-typeck.c (build_modify_expr_1. build_modify_expr): + build_unary_op takes three arguments, not two. + + Tue Aug 4 16:07:57 1992 Mike Stump (mrs@cygnus.com) - * dwarfout.c (output_type): Fixed bug which causes DIEs for - file-scope tagged types to be generated in a local-scope - under some conditions. + Sat Aug 1 16:52:20 1992 John Carr (jfc@Athena.MIT.EDU) - * dwarfout.c (dwarfout_init, dwarfout_finish): Moved code which - generates most of the .debug_aranges entries from dwarfout_init - into dwarfout_finish to avoid m68k assembler bug. + * cp-decl.c (): Make sure the base type of an ARRAY_TYPE is + layedout before using it. - * Makefile.in (EXTRA_PARTS): New parameter. - (install-common): Compile the things in EXTRA_PARTS. - (GCC_PASSES, GCC_PARTS): New variables. - (STAGESTUFF, native, enquire, enquire.o): Use them. - (protoize, protoize.o, unprotoize, unprotoize.o, SYSCALLS.c.X): - (gnulib2.ready, collect2, collect2.o, getopt.o, getopt1.o): Likewise. +Wed Aug 26 17:04:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-svr4.h (CPP_PREDEFINES): Don't define this here. Undef it - so that other files which include this one will be forced to - define it appropriately for the specific target and OS. - (CPP_SPEC): Deleted. - (LIB_SPEC): Add crtend.o as last thing linked in on each link-step. - (STARTFILE_SPEC): Add crtbegin.o as the first thing linked in. - (NO_DOLLAR_IN_LABEL): Added define. Most svr4's don't support $. + * tree.h (current_block): Declared. + +Wed Aug 26 15:42:11 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) + + Major rework to have caller-saves emit load/store double insns when + possible and to avoid useless resaving of registers restored for + source accesses only. + * caller-save.c (toplevel): All arrays are multi-dimensional to + hold information for multiple save/restore insns. New variable + hard_regs_need_restore. + (choose_hard_reg_mode): New argument `nregs' indicating how many + hard registers are desired. All callers changed. + (init_caller_save): Change initialization to handle multiple + register saves. A call-used register can not be live across + if we can not find a single register mode to save it in. + (multiple register saves are optional) + (init_save_areas): Change initialization of regno_save_mem to + handle multiple register saves. + (setup_save_areas): Allocate space for consecutive hard registers + in aligned consecutive memory locations. When allocating space + for consecutive hard registers, also initialize regno_save_mem + for each hard register stored as a single word. + (save_call_clobbered_regs): Initialize hard_regs_need_restore. + Set hard_regs_need_restore to hard_regs_saved after crossing + a call. Also recompute n_regs_saved. At the end of a basic block + we need only restore registers in hard_regs_need_restore. + (set_reg_live, clear_reg_live): Do the right thing for + hard_regs_need_restore and hard_regs_saved. + (restore_referenced_regs): Just return if X is a clobber. + Test hard_regs_need_restore to determine when to restore a hard + register from the save area. + (insert_save_restore): Now returns the number of extra registers + saved/restored. New argument `maxrestore' which constrains how + many hard registers should be restored. All callers changed. + Do stores of consecutive registers with double store insns if + possible. Else do them with single word insns. Likewise for + loads, except constrained by maxrestore. Set hard_regs_saved + and hard_regs_need_restore appropriately to minimize useless + saves into the save area. Test against hard_regs_need_restore + when trying to restore multiple regs and similarly test against + hard_regs_saved when storing multiple regs. + + +Wed Aug 26 14:24:28 1992 Michael Meissner (meissner@osf.org) + + * mips.h (LINK_SPEC): Pass -shared, -non_shared on to linker. + * mips-bsd.h (LINK_SPEC): Ditto. + * mips-n5.h (LINK_SPEC): Ditto. + * mips-svr4.h (LINK_SPEC): Ditto. + * mips-sysv.h (LINK_SPEC): Ditto. + * iris.h (LINK_SPEC): Ditto. + * dec-osf1.h (LINK_SPEC): Ditto. + + * dec-osf1.h (DECSTATION): Don't define, since decstatn.h which is + included defines it. + (OBJECT_FILE_COFF): Undefine, since the DEC OSF/1 ldfcn doesn't + look like the coff version. + + * decstatn.h (LINK_SPEC): Don't define if already defined. + +Wed Aug 26 13:56:08 1992 Tom Wood (wood@dg-rtp.dg.com) + + * reorg.c: Enhance to fill the last delay slot of a call with an + unconditional jump. + (fill_simple_delay_slots): Look for the case of a call/branch + first. If this applies, record the jump as `last_delay_insn'. + Later, don't look for additional delay insns if the last one has + alreay been filled. + (mark_target_live_regs): A sequence may end in an unconditional + branch. - * tm-svr4.h: Added support for the .ctors and .dtors sections - (as for the m88k). - (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): New macros. - * tm-svr4.h (HERE_ASM_OP, ASM_DECLARE_FUNCTION_SIZE): Deleted - define of HERE_ASM_OP and made ASM_DECLARE_FUNCTION_SIZE not - try to use a dot when computing a function's size in a .size - directive (because Tom Wood says that 88open doesn't approve - of dot as an asm operand). + * m88k.md (define_function_unit): Correct and simplify memory unit + specification. - * x-genix, x-i386sco, x-xenix (INSTALL): Define as cp. +Wed Aug 26 01:56:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Nov 26 16:24:03 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-decl.c (poplevel): Store into BLOCK iff it is non-null. - * gcc.c (default_compilers): Pass -A* to cpp. +Tue Aug 25 23:24:45 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * Make names unique if unpacked on MSDOG. - * config/*.c: `out-' removed from all file names out-*.c. - * x-hp*: Renamed from x-hp9k*. - * tm-conv1.h, tm-conv2.h: Renamed from tm-convex*.h. - * tm-hp*.h: `9k' removed from these names. - * tm-isi*.h: `68' removed from these names. - * tm-i860b.h, tm-i860bg.h: `sd' removed. - * tm-i860g3.h: Renamed from tm-i860v3g.h. - * tm-i386sun.h: Renamed from tm-sun386i.h. - * tm-sun3o3.h, tm-sun4o3.h: Were tm-sun*os3.h. - * tm-sun3n3.h: Was tm-sun3os3nf.h. - * tm-sun3n.h: Was tm-sun3-nfp.h. - * tm-sun2o4.h: Was tm-sun2os4.h. - * xm-hp320.h: Was xm-hp9k320.h. - * xm-i386sun.h: Was xm-sun386i.h. - * configure: Adjust for those renamings. + * sched.c: Add #ifdef INSN_SCHEDULING around variables only used + by schedule_insns. + (INSN_QUEUE_SIZE): Delete default definition. + + * optabs.c, expr.c: Partially undo Mar 7 change. Only call + emit_library_call with no_queue == 1 for const functions. + + * sparc.c (SF_MODES): Allow SImode in fp registers. + (output_floatsisf2, output_floatsidf2, output_floatsitf2): Delete. + * sparc.h: Delete declarations of the above 3 functions. + * sparc.md (float*, fix*): Rewrite to match hardware; take/put + integer input/output from/to fp register instead of memory or + general register. Delete 6 now obsolete combiner patterns. + +Tue Aug 25 16:40:15 1992 Brendan Kehoe (brendan@cygnus.com) + + * cccp.c (do_pragma): Warn if `#pragma implementation "foo.h"' is + invoked after "foo.h" has been included. + +Tue Aug 25 16:29:47 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * stmt.c (struct goto_fixup): New field context. + (fixup_cleanups): Function deleted. + (fixup_gotos): Put the fixup in a block, and put that block + into its proper place. Use sequences, not reorder_insns. + + * c-decl.c (current_block): New function. + (struct binding_level): New field this_block. + (poplevel): Use this_block if nonzero, rather than making new BLOCK. + + * sched.c (INSN_QUEUE_SIZE): Add default definition. + +Tue Aug 25 15:19:26 1992 Tom Wood (wood@dg-rtp.dg.com) + + * sched.c (schedule_block): Add a virtual cycle counter CLOCK. + Pass CLOCK to schedule_insn. + Compute the tail in the scheduling loop, not before it. + Enable the stall code that advances the insn queue. + Select the insn to schedule and block others with schedule_select. + (adjust_priority): Renamed from launch_link. + (schedule_insn): Renamed from launch_links. + + * genattrtab.c (struct attr_desc): Add unsigned_p field. + (struct function_unit_op): Add issue_delay, conflict_exp, and + issue_exp fields. Drop busyexp field. + (struct function_unit): Add needs_blockage_function, + needs_range_function, issue_delay, and max_blockage fields. Drop + costexp, and busy delay fields. + (enum operator): Add POS_MINUS_OP, EQ_OP, MIN_OP, RANGE_OP. + (operate_exp): Implement new ops. + (make_internal_attr): Set unsigned_p based on the value of SPECIAL. + (write_attr_get): Function is unsigned when unsigned_p is true. + (write_attr_valueq): Write hex value of large constants in a comment. + (simplify_by_exploding): Check for EXP having no EQ_ATTR expressions + and for all values as the default. + (find_and_mark_used_attributes): Add TERMS and NTERMS parameters. + (max_attr_value): Allow IF_THEN_ELSE. + (simplify_knowing, write_complex_function, extend_range): New + functions. + (gen_unit): Use local variables to name the fields. Change the + meaning of busy-delay to issue-delay. + (expand_units): Compute issue_exp. Write attributes for computing + `_unit_blockage' and `_unit_blockage_range' functions. + Compute max_blockage, and the needs_*_function values. + (write_function_unit_info): Write blockage function and conflict cost + functions using write_complex_function. Write new function_unit_desc + fields. + * genattr.c (extend_range, init_range): New functions. + (write_units): Add blockage_function, blockage_range_function, + max_blockage and max_issue_delay fields to struct function_unit_desc. + Drop max_busy_cost field. Write #defines for min/max blockage, + issue delay, multiplicity, and simultaneity and for BLOCKAGE_BITS + and INSN_QUEUE_SIZE. + (main): Compute the new values. + * sched.c (insn_queue): Use INSN_QUEUE_SIZE. + * rtl.def (define_function_unit): Update documentation. + + * sched.c (insn_units, insn_blockage, insn_tick, unit_last_insn, + unit_tick, unit_n_insns): New variables. + (schedule_insns): Allocate and initialize insn_tick, insn_units, and + insn_blockage. + (insn_unit, blockage_range, clear_units, prepare_unit, schedule_unit, + actual_hazard_this_instance, actual_hazard, potential_hazard, + schedule_select): New functions. + (schedule_block): Add dependencies to force insns to remain in order + at the end of a block rather than relying on having the scheduler + issue them in priority order. + + * sched.c (insn_cost): Add LINK and USED parameters. All callers + changed. Supply an ADJUST_COST interface. + (insn_cost): Make a dependence from a USE insn free. + (priority): Clear the link cost adjustment bits. + * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): New macros. + + * genattrtab.c (expand_units): Use the normalized values of the + unit's CONDEXP and BUSYEXP. + + * a29k.md (define_function_unit): Change meaning to ISSUE-DELAY. + * i960.md (define_function_unit): Change meaning to ISSUE-DELAY. + * m88k.md (type attribute, movdi movdf insns): Add loadd. + (unit attribute): Delete. + (function units): Correct simultaneity values. Break out + independent units. Add conflict matrix for the 88100 load double. + * mips.md (define_function_unit): Change meaning to ISSUE-DELAY. + * pa.md (define_function_unit): Change meaning to ISSUE-DELAY. + * sparc.md (define_function_unit): Change meaning to ISSUE-DELAY. + Merge FP_MUL, FP_DIV, and FP_SQRT into one function unit. + + * jump.c (delete_computation): Derived from delete_jump. + (delete_jump): Use delete_computation. + +Tue Aug 25 13:42:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * final.c (final_scan_insn): If 2 consec line notes have same line num, + can omit one. + +Tue Aug 25 13:38:19 1992 Michael Meissner (meissner@osf.org) + + * mips.h (MIPS_VERSION): Set Meissner version # to 24. + (ASM_FINAL_SPEC): Use %U to get the last file name created with + %u, rather than %u. + (ARG_POINTER_REGNUM): Use the hardwired register $0 as the + argument pointer, instead of the frame pointer, to allow the frame + pointer to be the same as the stack pointer after the initial + stack allocations. This is to allow GCC generated code to be + linked against MIPS shared libraries. The linker rearranges the + code, and needs to have a frame pointer, if used, to be the same + as the stack. The argument pointer is always eliminated in favor + of the stack pointer or frame pointer. + (FRAME_GROWS_DOWNWARD): Don't define this any more. + (STARTING_FRAME_OFFSET): Locals start after the stack area to pass + arguments to called functions. + (STACK_DYNAMIC_OFFSET): If function is a leaf function, but calls + __builtin_alloca, assume a default argument area, so the MIPS + linker doesn't think a second frame pointer is created. + (INITIAL_FRAME_POINTER_OFFSET): Don't define, since we use + elimination instead. + (ELIMINABLE_REGS): Define to eliminate both the stack pointer and + frame pointer, since they are now separate. + (CAN_ELIMINATE): Ditto. + (INITIAL_ELIMINATION_OFFSET): Ditto. + (ELIGIBLE_FOR_EPILOGUE_DELAY): Don't allow variables based off of + the argument pointer, in addition to frame and stack pointers. + (MUST_SAVE_REGISTER): Add in GP_REG_FIRST to 31, in case we ever + change the base of the gp registers. + (MIPS_STACK_ALIGN): Use ~7, instead of 0xfffffff8. + + * mips.c (number_functions_processed): Delete variable, nobody + uses it anymore. + (mips_debugger_offset): Add support for the frame pointer being + the same as the stack pointer, instead of being the same as the + argument pointer. Abort if the address is not based on any of the + stack, frame, or argument pointers. + (print_operand_address): Add checks for the arg pointer not being + eliminated. + (function_prologue): Ditto. + (mips_expand_prologue): Ditto. + (function_epilogue): Ditto. + (mips_expand_epilogue): Ditto. + (function_epilogue): Strip leading '*' if it exists from + current_function_name when printing statistics. Delete increment + of number_functions_processed. + (compute_frame_size): Don't base extra_size on the macro + STARTING_FRAME_OFFSET. If function is a leaf function, but calls + __builtin_alloca, allocate an arg area, so that the MIPS linker + will not complain about creating a second frame pointer. Move the + argument save area beneath local variables. + + * decrose.h (ASM_FINAL_SPEC): Use %U to get the last file name + created with %u, rather than %u. + + * gcc.c (do_spec_1): Add %U to return the last name generated with + %u. This is for use with mips-tfile, to find the generated object + file. + + +Mon Aug 24 18:09:34 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (build_unary_op): For ADDR_EXPR, just set TREE_CONSTANT + if staticp, but don't clear TREE_CONSTANT. + +Mon Aug 24 13:52:13 1992 Brendan Kehoe (brendan@cygnus.com) + + * gcc.c (process_command): Don't set verbose_flag if they make a + typo (e.g., `-v-E'); only when it's exactly "-v". + +Mon Aug 24 06:49:16 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * combine.c (subst): When moving operation inside IF_THEN_ELSE, + make a new rtx instead of using SUBST due to sharing. + + * combine.c (simplify_comparison): Correct test for sign extension + when trying to widen comparison. + +Sun Aug 23 18:58:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * fold-const.c (fold): Avoid the normal STRIP_NOPS on arg of NOP_EXPR. + +Sun Aug 23 15:32:03 PDT 1992 Ron Guilmette (rfg at netcom.com) + + * stmt.c (expand_end_bindings): Generation of NOTE_INSN_BLOCK_END + moved down so that it occurs after call to `expand_cleanups'. + +Sun Aug 23 16:24:32 1992 Michael Meissner (meissner@osf.org) + + * decrose.h (CPP_SPEC): Don't define strcmp as __builtin_strcmp in + the case neither -fbuiltin nor -fno-builtin were defined. + * i386rose.h (CPP_SPEC): Ditto. + +Sun Aug 23 02:03:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * libgcc2.c (__builtin_new): Cast the result of malloc. + + * toplev.c: Fix typo in prev change. + + * c-decl.c (insert_block, delete_block): New functions. + * c-parse.y (primary, using compstmt): Call delete_block + instead of clearing TREE_USED. + * expr.c (expand_expr): For BIND_EXPR, call insert_block on the block. + +Sat Aug 22 14:12:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * configure (m68000-hp-hpux*): Use xm-hp320.h. + * configure: Use absolute pathname in value of INSTALL. - * stmt.c (expand_value_return): New subroutine. - (expand_return): Use that. +Sat Aug 22 06:42:39 1992 Tom Wood (wood@dg-rtp.dg.com) - * make-gcc.com: New name for make.com. + * emit-rtl.c (insn_emit_once): Provide a zero constant for CC modes. - * stor-layout.c (layout_record): Return list of static members. - (layout_type): Lay them out here. +Fri Aug 21 18:33:30 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * expmed.c (init_expmed): Use 3 as shift count for shift_cost. + * reorg.c (fill_simple_delay_slots): Always try to fill empty + delay slots with insns from beyond the delay insn, even if + optimize_skip was attempted. + (fill_simple_delay_slots): When filling with insns from after the + delay insn, make sure to always account for the sets and + references in the delay insn. - * x-sco: File deleted. +Fri Aug 21 16:47:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * print-tree.c (print_node): Always be brief for vector elts. + * sparc.c (print_operand): Use output_operand_error for unknown code. -Tue Nov 26 07:42:41 1991 Michael Tiemann (tiemann at rtl.cygnus.com) + * c-typeck.c (build_conditional_expr): Use TREE_READONLY and + TREE_THIS_VOLATILE, not TYPE_... - * cp-decl.c (grokdeclarator): Fix typo involving ~RID_STATIC. +Fri Aug 21 14:02:20 1992 James Van Artsdalen (james at bigtex.cactus.org) -Mon Nov 25 21:51:09 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * reload.c (find_dummy_reload): Restore original RTX instead of + passed IN rtx. - * optabs.c (emit_cmp_insn): If both operands are VOIDmode, - put first operand into register, not second. +Fri Aug 21 07:53:12 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * alliant.md, gmicro.md, i386.md, m68k.md, ns32k.md, pyr.md: - Don't allow a constant as the first operand to tstxx insns. - * tahoe.md, vax.md: Likewise. - * convex.md: Remove erroneous comment on tstsi. + * optabs.c (expand_binop): If, e.g., mulqi3 doesn't exist, try + mulqihi3. -Mon Nov 25 20:51:00 1991 DJ Delorie (dj@ctron.com) + * rs6000.h (FUNCTION_ARG): Don't make an EXPR_LIST if making a libcall. - * cccp.c (main): Look in env vars to override header dir list. - * gcc.c (process_command): Likewise. + * combine.c (subst): Move up test for too many restarts. + If we restart, clear OP0_MODE since we don't know it. - * gcc.c (execute): Alternate way to get status on MSDOS. - Error for -pipe on MSDOS. - (pexecute): Alternate definition for MSDOS. - (find_a_file): Handle new hook EXECUTABLE_SUFFIX. - (EXECUTABLE_SUFFIX): Add default definition, and alternate for MSDOS. - (P_tmpdir): Add default definition for MSDOS. +Fri Aug 21 02:11:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Nov 25 17:18:52 1991 Michael Collison (collison at osf.org) + * emit-rtl.c (emit_insns_after): New function. - * x-encrose: New file for mmax running OSF/1. - * t-encrose: ditto. +Fri Aug 21 01:53:04 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * ns32k.md (movsi): Use new constraint letters 'x' and 'y' - representing the frame and stack pointer. - (movhi,movqi): Add constraints and template code to allow moves - between the floating point and general purpose registers. + * pa.md (call_value+1): For non-dynamic calls, use the "call" + attribute, set length to 1, and fix output template to work + properly with delay slots. - * tm-ns32k.h (REGISTER_MOVE_COST): Use this macro to discourage - moves between the floating point registers and the frame and stack - pointer. Also discourage moves between the fp and general registers. - (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, - REG_CLASS_FROM_LETTER): Add two new register classes representing - the frame pointer and stack pointer respectively. - (GO_IF_NONINDEXED_ADDRESS): Add check to see if register is also a - base register. This causes reload to reject pseudo registers when - REG_OK_STRICT is defined. + * pa.md (address and use_call_clobbered attributes): Deleted, + these attributes are useless. All references deleted. + (call define delay): Use "in_branch_delay" as the condition since + "call" delay slots and unconditional "branch" delay slots allow the + same type of insns. + (in_call_delay conditional): Deleted. + (branch define delay): Do not define an annul-if-true delay slot. + It is useless for an unconditional branch. + (all delay branch conditionals): Make sure "call", "dyncall", "multi", + and "milli" insns are explicitly disallowed in delay slots. - * tm-i386rose.h: New file for 386 running on OSF/1. - * x-i386rose: ditto - * t-i386rose: ditto + * pa.c (output_mul_insn): Delete nop after branch in template, + conditionally emit a nop if the delay slot was not filled. (via %#) - * config.subr: Added case for 'osf-'. - * configure: Added case for i386-osfrose + * pa.c (output_function_prologue): Handle profiling in a function + without a frame pointer. - * tm-encrose.h (CC1_SPEC): Simplified so by default it passes nothing. - (ASM_SPEC): Changed so that under OSF/1 with NO_J_SWITCH defined - nothing is passed to the assembler. - (TARGET_DEFAULT): Changed so that, by default, no code is generated - using the static base (sb) register. - (OVERRIDE_OPTIONS): Removed in lieu of the new debug macros - PREFERRED_DEBUGGING_TYPE and DEFAULT_GDB_EXTENSION. - (DEFAULT_GDB_EXTENSIONS): Define it - (PREFERRED_DEBUGGING_TYPE): Use it. +Thu Aug 20 16:16:40 1992 Tom Wood (wood@dg-rtp.dg.com) -Mon Nov 25 17:18:52 1991 Jyrki Kuoppala (jkp at batman.hut.fi) + * va-m88k.h (__INT_VARARGS_H): Define this to avoid trouble on DG/UX. - * ns32k.md (ashlhi3): use addw also on 32532 if shiftcount is 1. - (ashlqi3): likewise. - (addsi3): don't use addr instead of addd on the 32532. +Thu Aug 20 11:07:26 1992 Michael Meissner (meissner@osf.org) - * out-ns32k.c (calc_address_cost): don't assume unknown RTX codes - have XEXP's which are rtx's. + * final.c: Move include of stdio.h before output.h. - * ns32k.md (movsi): don't use addr for the 32532 immed displacements. - (shift patterns): fixed a typo with %$%n. +Thu Aug 20 01:08:55 1992 Pat Rankin (rankin at eql.caltech.edu) - * out-ns32.c (calc_address_cost) new function. - tm-ns32k.h (ADDRESS_COST): call calc_address_cost. + Support for bootstrapping cpp & cc1 with VAX C under VMS. - * out-ns32k.c (print_operand_address): use error & debug_rtx if error. + * xm-vax-vms.h (USE_C_ALLOCA,NO_STAB_H): Define for VAXC. + (bcopy,bzero,bcmp,index,rindex): Define as ANSI/SYSV counterparts. + (QSORT_WORKAROUND, qsort): New macros, for avoiding buggy + qsort in VAXCRTL library. + (check_for_full_enumeration_handling,...): Use macros to shorten + several external names which are longer than 31 characters to + avoid warnings about truncation. + (unlink): Remove redundant definition. + * vax.c (not_qsort): New function. + * cccp.c (toplevel: create_definition): Move forward declaration + past the definition of struct macrodef. + (strncat): New function. + (bcopy, bzero, bcmp): Remove #if VMS code--always use inline C loops. + * genrecog.c, reload1.c: Compare enums (preds. codes, mem_mode) + explicitly to 0 in conditionals to work-around a VAXC bug that + disallows enum as arguments to && and || operators. + * getpwd.c (getpwd): Add alternative defn for VMS. + * toplev.c (environ): Make declaration conditional. + (main: -g debugging setup): Get rid of \ in #if condition. + * make-cccp.com,make-cc1.com (CC,CFLAGS,LIBS): Add commented command + variants for bootstrapping gcc-cpp and gcc-cc1 with VAXC. + * make-cccp.com (alloca): Build alloca.obj from alloca.c if LIBS needs it. - * tm-ns32k.h (CONST_OK_FOR_LETTER_P): constraint 'I' shouldn't - match anything on the 32532 to make negative arithmetic left - shifts behave consistently. + Not yet installed: - * ns32k.md (subsf+1): don't use ajdspb on the 32532. + * machmode.h (FILE_TYPE): For VMS, make sure FILE_TYPE is not + defined as a macro, so that VAXC's won't break tree.h. + * genemit.c (gen_exp): #if VAXC, output a newline in front of + gen_rtx calls, to prevent excessively long lines in insn-emit.c. - * tm-ns32k.h (CONST_OK_FOR_LETTER_P): positive values not OK for - constraint 'I' if on 32532. +Thu Aug 20 11:32:18 1992 Michael Tiemann (tiemann@mole.gnu.ai.mit.edu) - * ns32k.md (ashl??): if TARGET_32532, use lsh{d,w,b}. + * cp-tree.h: Fix incorrect comment about "$this" needing to + be lexicographically less than any other identifier. - * ns32k.md (adjusting stack pointer): don't use ajdp{b,w} if not 32532. +Thu Aug 20 05:37:00 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * ns32k.md (isv,insv-1,insv-2,extzv): use constraint K instead of - n for offset. + * a29k.md (load_multiple): Operand 2 should be a MATCH_OPERAND. + (store_multiple_{,no_}bug): Likewise. - * ns32k.md (insv-1): use only register_operand with constraint - "r" for operand 2, insd can't take constant offsets >= 8. - (pattern insv-2): added another insv-like pattern, for - offsettable operand. - (insv): constraint should be "+g". - (pattern before insv): installed an insv-like pattern - with operand 0 having register_operand and SImode. + * reorg.c (mark_set_resources): Fix two bugs in last change. - * out-ns32k.c (print_operand): define as a void function. + * expr.c (init_expr_once): Set direct_load and direct_store if SOME + hard register can be loaded or stored; not just if the first one + we pick can be. - * ns32k.md (call_value): use operands[1], not operands[0] to check - for CONSTANT_ADDRESS_P. +Thu Aug 20 01:40:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * out-ns32k.c (print_operand): eliminate - PRINT_OPERAND_EXTRACT_FLOAT, don't depend on HOST_WORDS_BIG_ENDIAN. + * combine.c, emit-rtl.c, final.c, gcc.c, genattrtab.c, mips-tfile.c: + Put include of stdio.h after GCC header files + (for i860-stardent-sysv4). + * tree.c: Likewise. - * tm-ns32.h (INDIRECTABLE_1_ADDRESS_P): use CONSTANT_ADDRESS_P, - not CONSTANT_P. + * fixincludes (stdio.h): Rename va_list to __va_list__ to coexist + with gvarargs.h. - * tm-ns32k.h (GO_IF_LEGITIMATE_ADDRESS): checking for CONST_INT - is not right because displacements are not 32-bit. Use - CONSTANT_ADDRESS_NO_LABEL_P instead. +Wed Aug 19 21:06:49 1992 Jim Wilson (wilson@cygnus.com) - * tm-ns32k.h (output_move_double, output_shift_insn): New declarations. + * cccp.c (finclude): Increment indepth before calling + trigraph_pcp, so that warning uses the correct file name. - * out-ns32k.c (print_operand_address): Use fatal for errors. +Wed Aug 19 07:07:41 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * ns32k.md (insv, extzv): Replaced with the pattern near insv in 1.40. + * combine.c (force_to_mode): Add missing test of and_optab. - * out-ns32k.c (print_operand): function moved from tm-ns32k.h. - Modified to use PUT_IMMEDIATE_PREFIX, PUT_EXTERNAL_PREFIX; added - macro PRINT_OPERAND_EXTRACT_FLOAT. + * genconfig.c (have_cmove_flag): New variable. + (walk_insn_part): Add new parm NON_PC_SET_SRC; all callers change. + Look for IF_THEN_ELSE in a SET_SRC that isn't setting PC and + set have_cmove_flag if so. + (main): Define HAVE_conditional_move if have_cmove_flag is non-zero. + * combine.c (subst, case AND): Only make IF_THEN_ELSE if conditional + moves exist. - * out-ns32k.c (print_operand_address): replaced the function with - a more clean version, written for gas syntax. + * cse.c (find_comparison_args): Look for comparison operations + if the second arg is 0 in any mode. + (record_jump_cond): Don't make classes equivalent for floating-point + equality comparison. - * ns32k.md (call): #if 0 code which was used when GAS_SYNTAX was not + * local-alloc.c (alloc_qty_for_scratch, block_alloc): Provide + alternate code in some cases when REGISTER_CONSTRAINTS is not defined. - (call_value): likewise. - - * ns32k.md (pattern after ashrsi3): added % before $ so the - pattern works also for gas syntax. - (pattern after ashrhi3): likewise. - (pattern after ashrqi3): likewise. - (pattern after lshrsi3): likewise. - (pattern after lshrhi3): likewise. - (pattern after lshrqi3): likewise. - (pattern after rotrsi3): likewise. - (pattern after rotrhi3): likewise. - (pattern after rotrqi3): likewise. - - * ns32k.md (movsf): put #ifndef GAS_SYNTAX part inside #if 0 since - for now we only use GAS syntax. - - * tm-ns32k.h (INDIRECTABLE_2_ADDRESS_P): add TARGET_SB as a - condition in addition to CONSTANT_ADDRESS_P. - - * tm-ns32k.h (MEM_REG): use CONSTANT_ADDRESS_P instead of GET_CODE - == SYMBOL_REG, add TARGET_SB to the second-part condition. - - * ns32k.md (rotrsi3): fixed a typo NEGATE->NEG - - * tm-ns32k.h: added a comment about CONSTANT_ADDRESS_P; it's not - strictly according to the spec. + (requires_inout_p): Only used when REGISTER_CONSTRAINTS is defined. - * tm-ns32k.h: added defaults for ABSOLUTE_PREFIX,IMMEDIATE_PREFIX - etc, using gas syntax. + * reorg.c (mark_set_resources): Add new parm IN_DEST; add callers + changed. + Rework to scan an entire insn to look for auto-inc operations. - * out-ns32k.c: removed macro FP_REG_P. + * unroll.c (copy_loop_body): Add missing declaration of EXIT_LABEL + parameter. - * tm-ns32k.h: (ASM_OUTPUT_ALIGN_CODE): changed alignment from 4 to - 2 since GAS syntax is the default assembler syntax now. - (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): defined to call - print_operand and print_operand_address in out-ns32k.c, - respectively. + * function.c (instantiate_decl): New function. + (instantiate_decls{,_1}): Call it. - * tm-ns32k.h: New macros TARGET_SB, TARGET_PIC. - Dummy code for trampolines, calls fatal(). - Macro FP_REG_P moved here from out-ns32k.c. - Some reorganizations of blocks. - 68000 -> ns32k. + * combine.c (simplify_comparison): Add a few more cases where we can + do the comparison in a wider mode. - * tm-ns32k.h (TARGET_VERSION) says GAS syntax. - (TARGET_*) added some empty lines for clarity. + * combine.c (distribute_notes, REG_EQUAL): Don't put back a note + with a non-constant expression since it may no longer be valid. -Mon Nov 25 14:29:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Aug 18 23:07:33 1992 Mike Stump (mrs@cygnus.com) - * Makefile.in (aux-output.o): Depend on insn-codes.h. + * expr.c (expand_expr): The first expansion of a TARGET_EXPR + is marked by DECL_RTL (slot) being filled in AND TREE_OPERAND + (exp, 1) being wiped-out with a NULL_TREE, not just the + DECL_RTL (slot) being filled in. - * make-cc1.com: Handle print-rtl.c. +Tue Aug 18 00:07:23 1992 Dennis P. Glatting (dglattin@trirex.com) - * toplev.c (warn_aggregate_return): New variable. - (W_options): Define option to set it. - * flags.h: Declare it. - * calls.c (expand_call): Print warning if value is aggregate. - * function.c (init_function_start): Likewise. + * objc-actions.c + (build_selector_translation_table): NULL-terminate the + selector list. Mark _OBJC_SELECTOR_REFERENCES_decl as static, + not extern. -Mon Nov 25 13:29:50 1991 Per Bothner (bothner at cygnus.com) +Tue Aug 18 21:38:46 1992 Mike Stump (mrs@hal) - * cp-except.c (init_exception_processing): Fix return type of - longjmp (from int to void). + * xcoffout.c (assign_type_number): Skip decls with no name. -Mon Nov 25 13:11:51 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * expr.c (expand_expr): When expanding TARGET_EXPRs, make sure + that they are only expanded once, after the first expansion, + the rtl can be used without further expansions. - * rtlanal.c (refers_to_regno_p): Check for `x == 0' on repeat. +Tue Aug 18 12:58:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * x-mips, xm-vms.h: Change cplus-* to cp-* in comments. - * x-tower (X_CFLAGS): Add missing `-'. + * x-i386sco (X_CFLAGS): Defined. - * unroll.c (unroll_loop): When simplifying loops executed only once, - use last_loop_insn not copy_end. + * stmt.c (expand_return): Call emit_queue in ignore-the-value case. + (expand_end_bindings): Check DECL_IN_SYSTEM_HEADER for unused warnings. -Mon Nov 25 07:45:46 1991 Michael Tiemann (tiemann at rtl.cygnus.com) + * combine.c (simplify_comparison): + Rearrange conditional in SUBREG case. - * cp-except.c (init_exception_processing): Mark `ExceptionHandler' - constructor and destructor as being TREE_EXTERNAL, and mark the - `ExceptionHandler' type as being interface-only. +Tue Aug 18 06:49:43 1992 Tom Wood (wood@dg-rtp.dg.com) - * cp-decl.c (maybe_globalize_type): Don't test TYPE_BEING_DEFINED - for ENUMERAL_TYPE. + * cccp.c (HOST_WIDE_INT): Copy definition from machmode.h. + + * c-typeck.c (parser_build_binary_op): Replace the assignment of CLASS. - * cp-class.c (modify_vtable_entry): Disable code which attempts to - encode in a vtable an indirection to another vtable entry. + * configure (Makefile edits): Make the edits independent. + * Makefile.in (sed marker): Use the order {target, host, cross-make}. - * cp-call.c (build_method_call): Convert FUNCTION to - DECL_MAIN_VARIANT (FUNCTION) once we are going to use it for real. - * cp-init.c (build_delete): Use DECL_MAIN_VARIANT (DTOR). * - * cp-typeck.c (mark_addressable): Use DECL_MAIN_VARIANT (X). +Tue Aug 18 00:15:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Nov 25 00:41:14 1991 Per Bothner (bothner at cygnus.com) + * c-typeck.c (parser_build_binary_op): + For Z 0. - - * cp-decl.c (grokdeclarator): Any type construction that uses a - struct/union/enum type that is not yet defines pushes that type into - the global namespace. - - * cp-spew.c (discard_token): Renamed from `eat_token'. - Also, make all local functions static. Some day we'll use inlining. - -Thu Nov 21 16:06:14 1991 Mark Eichin (eichin at cygnus.com) - - * Makefile.in: added rule for cp-spew.o - - * cp-parse.y (TYPENAME_SCOPE): added an action, since it is no - longer done in the lexer. - (yyprint): Took out case for TYPENAME_SCOPE. - - * cp-lex.c (real_yylex): renamed from yylex. Also all of the code - dealing with nested classes has been #if 0'd in favor of the code in - cp-spew.c. - - * cp-spew.c (New File): This calls yylex (which is now real_yylex) - and looks ahead as far as possible to bind up nested classes and - pass them on to the parser. - -Thu Nov 21 18:14:11 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * out-sparc.c (output_function_epilogue): Correct parameters in - call to final_scan_insn, write_symbols parameter no longer exists. - - * integrate.c (save_for_inline_copying): Use GET_RTX_CLASS. - -Thu Nov 21 17:44:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * gcc.texinfo (PCC_BITFIELD_TYPE_MATTERS): Clarify that macro - must always be non-zero unless MEM extv/extzv/insv exist. - - * romp.md (movdi): Disable define_split when we are moving - between overlapping registers prior to reload to work - around hard-to-fix sched.c bug. - -Thu Nov 21 17:14:54 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * jump.c (invert_exp): Correct typo in comment. - -Thu Nov 21 15:34:27 1991 Michael Meissner (meissner at osf.org) - - * gcc.texinfo (warning options): Make the documentation agree with - the code, -Wstrict-prototypes and -Wmissing-prototypes are not - turned on via -Wall; -Wnoparenthesis is now spelled - -Wno-parenthesis. - (option header): Mention that -W options take the no- prefix as well - as -f options. - -Thu Nov 21 08:12:51 1991 Tom Wood (wood at dg-rtp.dg.com) - - * out-m88k.c (check_float_value): Change use of REAL_VALUE_TRUNCATE. - * tm-m88k.h (FLOAT_TO_INT_INTERNAL): Ditto. - (AS_BUG_POUND_TYPE): Simplify. - * tm-m88kdgux.h: Don't need AS_BUG_DOT_LABELS or AS_BUG_POUND_TYPE. - -Thu Nov 21 06:47:11 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * rs6000.md (scc): Add missing '&' in some alternatives of constraints. - - * a29k.md (negdf2): Fix typo in constraints for SCRATCH in 29050 case. - - * real.h (REAL_VALUE_TRUNCATE): Default is to truncate to float if - mode size is BITS_PER_WORD instead of when mode if SFmode. - -Thu Nov 21 01:58:27 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * dbxout.c (dbxout_type): Test TYPE_BINFO before TYPE_BINFO_BASETYPES. - -Thu Nov 21 01:45:53 1991 Ken Raeburn (raeburn@cygnus.com) - - * cp-parse.y (unary_expr): Break out `new' expressions with - parenthesized types into more basic forms, and handle trailing array - dimensions with an appropriate warning message. - - * cp-class.c (pushclass): For UPType, overload the template name. - (popclass): For UPType, undo the overload. - - * cp-decl.c (pop_decl_level): Don't look up DECL_NAME slot of a - null pointer. - (pushdecl_top_level): Reworked handling of shadow lists to be - correct. - (lookup_tag): Bypass redefinition error message for UPT as well as - for TEMPLATE_DECL. - (start_decl): Add template decls only to top level. Print message - for non-function, non-class templates. - (finish_decl): Disable code that renames anonymous types; leave it - disabled until we figure out why it was being done in the first - place. - (grokdeclarator): Eliminate hack to deal with destructor templates. - Extend some code handling constructors to handle destructors as - well. Deleted some unnecessary code dealing with function - templates. - - * cp-decl2.c (constructor_name): Treat class template decl like - type decl. - - * cp-lex.c (store_pending_inline): If a function is not to be - compiled, discard its text only if can_free flag is set. - - * cp-decl.c (start_function): For `pre-parsed' functions, only - set extern-inline flag if inline flag is set. - * cp-lex.c (do_pending_inlines): Don't set inline flag for method - templates, regardless of default-inline flag setting. - (process_next_inline): Ditto. - - * cp-method.c (dump_type): Do something semi-useful with UPT - nodes, instead of crashing. - (fndecl_as_string): For constructor and destructor, use name of - function rather than looking up class constructor name; should be - the same, and it's cheaper this way. - (build_overload_name): Make template-related names unique, as well - as unlikely to be accepted by the assembler. - - * cp-parse.y (yyprint): Handle PRE_PARSED_CLASS_DECL. - (template_def): In case handling destructors, pass new decl to - end_template_decl, rather than ungrokked call_expr node. Rewrote - last derivation. - (scoped_typename): Don't try building from template type; it doesn't - work. - (try_for_typename): Treat typename using template parms like any - other typename. - - * cp-pt.c: New comment at start lists some known problems. - (end_template_decl): Do nothing for error_mark_node. Check - DECL_CLASS_CONTEXT and DECL_EXTERNAL when setting TREE_EXTERNAL - field of template decl. Don't need to pop extra class level for - non-operators any more, but do need to assign class context field. - (instantiate_member_templates): Now returns void. - (tsubst, case FUNCTION_DECL): Process flag fields of method as for - other functions. Handle class context field. Push decl at top - level only if decl context is null. - (tsubst, case TREE_LIST): Use via-public and via-virtual fields. - (do_pending_expansions): Correct handling of methods. - - * cp-pt.c (overload_template_name): If not class-level, push - extra binding level. Disable check that overload hasn't already - been done; for now, it's needed. - (undo_template_name_overload): Pop it. - -Thu Nov 21 00:15:33 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * dbxout.c (dbxout_type_methods): Don't dereference TYPE_NAME and - ctor_name until after checking for non-null methods. - - * sched.c (create_reg_dead_note): New function. Add a REG_DEAD note - for REG to INSN, reusing a REG_DEAD note from the dead_notes line. - (attach_deaths): Add quick exit for many rtx that can't contain a - register. Rewrite REG_DEAD note code to use the new scheme (see - the Nov 1 ChangeLog entry). - (new_insn_dead_notes): Don't add a REG_DEAD note to an insn that - already has one. - (update_links): Must convert REG_UNUSED notes to REG_DEAD when a - register formerly just clobbered is now explicitly set and used in - the new split insns. - -Wed Nov 20 18:02:38 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * c-decl.c, cccp.c: Change all -Wno options to - -Wno- options so as to be consistent with toplev.c, and so as - to also be consistent with the -fno- options. - * objc-actions.c: Add a -Wno-selector option to match the - -Wselector option. - - * gcc.c (default_compilers): Pass all -W options to cpp, so that - -Wno options will be passed along with the -W options that it - understands. - * cccp.c (main): Accept -Wno option counterparts for every - existing option. - -Wed Nov 20 00:03:41 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-tree.c (lang_output_debug_info): Deleted. - * cp-class.c (finish_struct): Set DECL_IGNORED_P on the TYPE_DECL - nodes for types that should not have their debugging info written - out. - * dbxout.c (dbxout_{symbol,type}): Check DECL_IGNORED_P for - TYPE_DECLs of RECORD_TYPE nodes. - - * cp-decl.c (grok_op_properties): Fix bug in grokking NEW_EXPR - and DELETE_EXPR operators. - * cp-method.c (hack_operator): Deleted. - * cp-init.c (init_init_processing): Use `ansi_opname' for - {NEW,DELETE}_EXPR instead of calling hack_operator and build_opid. - * cp-decl2.c (grokopexpr): Deleted. - * cp-lex.c (build_opid): Deleted. - * cp-class.c (build_instantiated_decl): Deleted. - * All cp-* files: OP_IDENTIFIER is no longer used. - - * cp-parse.y (operator_name): For most cases, Use `ansi_opname' - directly instead of calling `build_opid'. - -Tue Nov 19 16:02:51 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-decl.c (xref_tag): If we find wrong kind of type, return it. - (lookup_tag): Fill in pending_invalid_xref_file, ..._line. - - * real.h (REAL_VALUE_TRUNCATE): New argument MODE. - * cse.c (simplify_unary_operation, simplify_binary_operation): - Pass that arg. - * c-parse.y, objc-parse.y, cp-lex.c (yylex): Likewise. - * fold-const.c (combine): Truncate floating result to fit mode. - (fold): Don't add 1 to float constant if that doesn't change the value. - -Tue Nov 19 09:37:36 1991 Michael Meissner (meissner at osf.org) - - * configure (ns32k-encore-osf): Restore Encore Multimax using the - OSF/rose object format, since the necessary files, such as - tm-encrose.h, are present in the distribution. - -Mon Nov 18 21:38:13 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * out-sparc.c (output_cbranch): Always emit a nop before a FP branch - to avoid illegal assembly output. - * sparc.md: Don't define delay slot for FP compare insns. This was - meant to solve the above problem, but fails with insn scheduling. - - * sparc.md (movsi): Must accept 'f' in addition to 'r' because - combine can convert FP hard registers to SImode. - -Mon Nov 18 13:43:12 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * rtlanal.c (replace_regs): Correct code that prevents nested SUBREGs. - -Mon Nov 18 13:43:12 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-decl.c (finish_decl): Reinstall lost end_temporary_allocation. - - * tree.h (DECL_LANG_FLAG_8): Deleted. - * print-tree.c (print_node): Don't use it. Do print DECL_IGNORED_P. - -Mon Nov 18 06:59:37 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (value_identifier): Gone, following c-decl.c. Now use - zero DECL_NAME for this purpose. - * cp-typeck.c: Also affected by this change. - - * c-lang.c, objc-lang.c (lang_output_debug_info): New function. - * dbxout.c (dbxout_type_methods): Fix minor problems arising from - assuming all RECORD_TYPE are C++ RECORD_TYPE nodes. - (dbxout_type): Ditto. - -Sun Nov 17 17:33:58 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * tree.c (struct obstack_stack): New slots expression and rtl. - (push_obstacks, push_obstacks_nochange, pop_obstacks): - Save and restore all 4 obstack vars individually. - - * c-decl.c (start_decl): Call push_obstacks_nochange here. - (push_parm_decl, grokfield): Also here. - (finish_decl): Not here. - Also clean up test for whether to replace DECL_INITIAL with error mark. - -Sun Nov 17 14:25:15 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-typeck.c (c_expand_return): Be more careful about throwing - away only cleanup generated by 'build_functional_cast'. - - * cp-init.c (build_new): Use TRUE_TYPE instead of TYPE more - consistently, in case TYPE is really an ARRAY_TYPE on its own. - - * cp-dbxout.c: Gone. Now G++ uses dbxout.c. - * cp-tree.h (OPERATOR_NAME_P): Changed to IDENTIFIER_OPNAME_P. - (OPERATOR_TYPENAME_P): Changed to IDENTIFIER_TYPENAME_P. - (OPERATOR_{NEW,DELETE}_FORMAT): Deleted. - * cp-lex.c (ansi_{opname,assopname}): New variables. All cp-* files - changed to use these where comparisons against *_FORMAT were made. - (init_lex): Initialize `ansi_{opname,assopname}' arrays. - Also, update {opname,assignop}_tab grok new ANSI equivalences. - (build_operator_fnname): Changed to build ANSI-style overloaded - names. - * cp-dem.c (optable): Add new ANSI equivalences. - (cplus_demangle): Fixed to recognize new ANSI demangling. Note that - old-style destructors, and possibly other codes were broken by the - (undocumented) 27 Oct changes. - - * cp-decl2.c (grokclassfn): Set DECL_CLASS_CONTEXT here. - * cp-class.c (finish_struct): Don't skip over FUNCTION_DECL that - already has a DECL_CLASS_CONTEXT. - - * cp-except.c (cplus_expand_end_try): Set BLOCK_HANDLER_BLOCK for - blocks that handle exceptions. - (EXCEPTION_NAME_PREFIX): Shorted to "__ex" (from "__exception"). - (EXCEPTION_NAME_LENGTH): Reduced to 4 from 12. - - * dbxout.c (flag_minimal_debug): Define new variable that is - non-zero when symtab output routines can output abbreviated. - (dbxout_type_fields): Move code that writes out debugging info about - fields of RECORD_TYPE and UNION_TYPE nodes from `dbxout_type' into - this function. - (dbxout_type_{method,method_1}): Move code from `dbxout_type' into - these new functions. - (dbxout_type): Now writes out info about basetypes. Also, no longer - need to record info about types having ctors, dtors, or both. GDB - now figures out what it needs to, when it needs to. - (dbxout_symbol): Implement special abbreviated form for C++ classes, - which place their names in both the struct and decl namespaces. - (dbxout_block): Write out special debugging stabs for exception - handler blocks. - - * tree.h (BLOCK_HANDLER_BLOCK): Define new flag to indicate that a - BLOCK is an exception handler block (a `catch' block for C++). - (TREE_VFIELD, DECL_IGNORED_P): New macros. - -Sat Nov 16 22:21:56 1991 Jeffrey A Law (law at super.super.org) - - * tm-m68k.h (CONST_COSTS): Integer values between -128 and 127 - inclusive are very cheap because of moveq. - -Sat Nov 16 00:40:04 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * Makefile.in (install-cross-tools): Avoid clobbering symlinks already - made. Double the $ before the @ in the indirection script. - - * t-decstatn: New file. - * configure: (mips-dec-ultrix*): Use t-decstatn. - - * collect-ld: Always run collect if collect is installed. - - * collect-osf.c, enquire.c, gnulib2.c: Use gstddef.h, not stddef.h. - - * gnulib2.c (__eprintf): Undef NULL. - - * c-typeck.c (build_array_ref): Ref is volatile if array is volatile. - -Fri Nov 15 19:53:41 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * c-typeck.c (build_binary_op_nodefault): Delete ERROR_CODE - argument because it is always the same as CODE. Add new argument - CONVERT_P, and call default_conversion on the operand trees if - true. Rename to build_binary_op. - (old build_binary_op): Deleted because it is now unnecessary. - * c-common.c, c-convert.c, c-decl.c, c-tree.h, c-typeck.c: All - callers and other references to build_binary_op* fixed. - * c-typeck.c (new build_binary_op): Add warning message for - comparisons of signed and unsigned variables that won't give the - expected result due to unexpected sign extension. - - * expr.c (convert_move): Add TFmode support and clean up code. - * optabs.c (init_fixtab): Add TFmode support. - (init_floattab): Likewise. - (expand_float): Likewise. - (expand_fix): Likewise. - (init_optabs): Likewise. - - From Per Bothner: - * collect2.c: Define vfork as fork for USG. Rewrite to not use - prototypes, so it doesn't need gcc for compilation. - (main): No longer uses static sized array for ld arguments, so - that long command lines will work. Vfork ld instead of running - via popen with nm. - (write_hooks): Use type names not variable names in sizeof calls. - -Fri Nov 15 15:01:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * fold-const.c (size_int): Properly preserve old obstack settings. - * c-decl.c (finish_decl, grokdeclarator, xref_tag): Likewise. - * stor-layout.c (layout_type): Likewise. - * varasm.c (output_constant_def): Likewise. - * tree.c (push_obstacks_nochange): New function. - - * stor-layout.c (layout_type): Make size of temp type saveable. - * tree.c (saveable_allocation): New function. - - * configure: Comment out certain alternatives not yet updated. - (sparc-unicom-*, m68k-tti1-*, m68-tti2-*): New alternatives. - (m88k-*-v88r32*): New alternative. - (i386-alternate-sysv): New alternative, not sure why. - (sparc-*-sysv*): Commented out--not really supported. - -Fri Nov 15 22:22:32 PDT 1991 Mike Stump (mrs at csun.edu) - - * configure: Recognize only canonical names. Added missing entries - for some configurations that obviously have not been tested in a - while. - - * config.subr: Massive overhaul. It claimed to canonicalize - the machine specification, but it never really did. Now it - does. In general, it is not necessary to specify the os for - popular machines that have a popular os, or given the os, it - can sometimes figure out the vendor. Added in all the old - ways of specifying machines from configure. Also added - support for all (before it was missing a few) of the tm-*.h - files. It now supports the concept of guessing the vendor for - a given CPU type. It now supports the concept of guessing the - os version given the vendor and/or the CPU type. Changed the - default os for vax to ultrix, changed the default os for i386 - to sco. - - * collect-ld: New file. It is useful when compiling C++ programs - on machines that use collect. This includes the decstation. - -Fri Nov 15 14:19:29 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * out-sparc.c: Singlemove_string no longer static. - (emit_move_sequence): Emit sethi/low_sum insn pair for values which - are not arith_double_operands, was missing not. - * sparc.md: DImode sethi pattern now uses singlemove_string to load - a constant into a reg. - * tm-sparc.h (LEGITIMATE_CONSTANT_P): Accept anything except a - floating point constant. - Declare singlemove_string so it can be used in sparc.md. - - * jump.c (jump_optimize): Correct typos in comments. - -Fri Nov 15 08:05:26 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * out-rs6000.c (scc_comparison_operator): Allow non-FP EQ. - - * combine.c (subst, case NEG): Correct shift count in code that - negates ZERO_EXTRACT to SIGN_EXTRACT. - -Thu Nov 14 23:03:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * genrecog.c (try_merge_1): Add big new comment. - -Thu Nov 14 19:28:57 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * m68k.md: Fix peephole that merges a stack adjust with a push to - use addqw instead of addql since we know we are incrementing an - address register (sp). - - * loop.c (scan_loop): Rework code that looks for loops starting at the - exit test; don't skip non-jump insns at start of loop and modernize - and clean up code. - - * gcc.texinfo (SECONDARY_RELOAD_CLASS): Update description to - show uses for both intermediate and scratch registers. - * reload.h (SECONDARY_{INPUT,OUTPUT}_RELOAD_CLASS): Default from - SECONDARY_RELOAD_CLASS, if defined. - (HAVE_SECONDARY_RELOADS): Defined if any of the secondary reload - macros are defined. - (reload_secondary_icode, reload_{in,out}_optab): New vars. - * reload.c: Include insn-codes.h. - (find_secondary_reload): New function. - (push_reload): Call find_secondary_reload to process input and - output reloads. Create both secondary and tertiary reloads, - as required. - * reload1.c: Include insn-codes.h. - (init_reload): Initialize reload_{in,out}_optab. - (emit_reload_insns): Handle cases where a secondary reload - is a scratch register and where tertiary reloads are required. - * Makefile.in (reload.o, reload1.o): Now include insn-codes.h. - - * tm-romp.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define to use a BASE_REGS - for symbolic memory locations. - * romp.md (reload_outsi, reload_outhi, reload_outqi): New patterns. - - * expr.c (expand_expr): Pass BRANCH_COST to do_store_flag. - (do_store_flag): Canonicalizations done in emit_store_flag - need to be done here as well. - Test for ffs as well as abs when seeing if scc is expensive. - * expmed.c (emit_store_flag): Correct cases that are open-coded: - Add a few missing cases and correct handling of normalizep. - * combine.c (simplify_shift_const, case IOR): Convert sequence - open-coded by emit_store_flag into LE or (neg (le ..)), as - appropriate. - (simplify_shift_const, case MINUS): Similarly, for GT. - (simplify_comparison): sign_bit_comparison_p now true only if - also comparing against constant zero. - (simplify_comparison, case NOT): If sign bit comparison, just - reverse comparison. - (simplify_comparison, case MINUS): Move case where we subtract - one from the absolute value of something to PLUS, since we - subtract one using a PLUS operation. - (simplify_comparison, case MINUS): Handle GT case done by - emit_store_flag. - (simplify_comparison, cae IOR): Similarly, for IOR. - - * tm-rs6000.h (BRANCH_COST): Define as 2. - * rs6000.md (scc): Allow some more cases. - (new scc patterns): Add numerous patterns to reflect superoptimizer - results for scc insns on RS/6000. - -Thu Nov 14 16:42:19 1991 Michael Meissner (meissner at osf.org) - - * mips-tfile.c (all): Change small allocation requests to use - separate allocation and free functions, instead of using the word8 - union to hold each request. In order to support this easily, a free - field was added to each small structure that is released. - (main): If debugging, print a summary of the number of small - allocations, frees, and the number of pages used. - (add_procedure, copy_objects): Stuff the pointer to the end symbol - into the shash chain, and use it's value to generate the new value - for the computed end block. This is much safer than trying to - calculate this on the fly. - (main): Don't try to avoid using malloc by setvbuf'ing the streams - we use. - -Wed Nov 13 23:47:10 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - From tege@sics.se: - * sparc.md: In DF load peephole, use operands not xoperands, so - that output_asm_insn will use the right values. - - * tm-sun3.h, tm-sun2os4.h: Define PTRDIFF_TYPE, SIZE_TYPE, - WCHAR_TYPE same as tm-sparc.h. - - * c-decl.c (finish_function): Don't clear current_function_decl - for nested functions. - - * dbxout.c: Include insn-config.h and reload.h. - (dbxout_symbol): Pass DECL_RTL (decl) through eliminate_regs before - using. - (dbxout_parms): Pass DECL_RTL and DECL_INCOMING_RTL of parms through - eliminate_regs before using. - * sdbout.c: Include insn-config.h and reload.h. - (sdbout_symbol): Pass DECL_RTL (decl) through eliminate_regs before - using. - (sdbout_parms): Pass DECL_RTL and DECL_INCOMING_RTL of parms through - eliminate_regs before using. - * Makefile.in: Update dependency lists for dbxout.c and sdbout.c. - - * combine.c (try_combine): Don't pass sets with (USE (MEM ...)) - dests to reg_referenced_p. - -Wed Nov 13 21:38:03 1991 John Bunda (bunda at cs.utexas.edu) +Sat Aug 15 00:52:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * reload1.c (gen_input_reload): If IN is a PLUS whose second arg - is the same as the reload register, swap the args of the PLUS. + * fixincludes (ansi_compat.h): Replace this with an empty file. -Wed Nov 13 14:43:09 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * gcc.c (process_command): In second loop over all switches, + don't increment I for switches that don't have separate arguments. - * tm-sparc.h (OPTIMIZATION_OPTIONS): Don't redefine options set in - toplev.c, only effect flag_omit_frame_pointer. - - * sparc.md: Delete obsolete sign_extract and zero_extract patterns. - We get better code without them. - (indirect_jump, tablejump): Extend indirect_jump pattern to accept - any address, not just a register. Add tablejump like pattern which - also accepts any address. - - * unroll.c (final_biv_value): Make sure the initial value of the biv - is invariant if it is used after the loop. - -Tue Nov 12 23:16:51 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Correct so - ASM_OUTPUT_REG_PUSH actually does a push instead of pop, and vica - versa. Also make ASM_OUTPUT_REG_POP turn on .set noreorder, and - increment the appropriate -mstats load delay counters. - -Tue Nov 12 22:53:45 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * expr.h (BRANCH_COST): Supply default value here. - * jump.c (BRANCH_COST): Don't default BRANCH_COST here. - - * global-alloc.c (global_alloc): Use proper entry in eliminables - when searching for the frame pointer. - -Tue Nov 12 22:23:36 1991 Jim Wilson (wilson at sphagnum.cygnus.com) - - * expr.c: (expand_expr, MIN_EXPR case): Check for const_true_rtx - not const1_rtx as return value from compare_from_rtx. - (do_jumps_by_part_greater): Handle const0_rtx and const_true_rtx - return values from compare_from_rtx. - (do_jumps_by_part_equality, do_jumps_by_part_equality_rtx): Likewise. - - * sched.c (sched_analyze_2): Correctly handle ASM_OPERAND and - ASM_INPUT rtx. Volatile and traditional asm statements are - assumed to use and clobber all hard registers and all memory. - (schedule_block): Delete code that incorrectly handles ASM_OPERAND - and ASM_INPUT rtx by exiting early. - -Tue Nov 12 15:38:56 1991 Tom Wood (wood at dg-rtp.dg.com) - - * sched.c: Introduce names for various priority values. Reduce - LAUNCH_PRIORITY to avioid wrap-around in launch_link. - -Tue Nov 12 14:21:52 1991 Per Bothner (bothner at cygnus.com) - - * cp-lex.c (init_lex): Exception-handling fixes. - * cp-tree.h: Add new OPERATOR_CHARS_P that is like - OPERATOR_NAME_P, except if takes a (char*), not a tree. - * cp-dbxout.c (dbxout_type_methods): Handle operators - specially when chopping prefix for minimal_debug. - - * config/tm-news.h: In PRINT_OPERAND, recognize new 68040 - operand types. Add definition of CPP_DEFINES for cross-compiling. - -Tue Nov 12 13:11:01 1991 Michael Meissner (meissner at osf.org) - - * protoize.c (__OSF1__ ifdef): Remove OSF/1 specific ifdefs, since - the problem they address has been fixed, and the ifdefs now cause - spurious warnings. - - * tm-mips.h (INT_TYPE_SIZE): Define. - (SHORT_TYPE_SIZE): Define. - (LONG_TYPE_SIZE): Define. - (LONG_LONG_TYPE_SIZE): Define. - (CHAR_TYPE_SIZE): Define. - (FLOAT_TYPE_SIZE): Define. - (DOUBLE_TYPE_SIZE): Define. - (LONG_DOUBLE_TYPE_SIZE): Define. - - * out-mips.c (block_move_load_store): New commn function to create - one load and store for the block move functions. The load is - emitted directly, and the store is returned, to be emitted later. - (block_move_sequence): Call block_move_load_store. For straight - line moves, have two outstanding loads before a store, for newer - machines that want two delay slots. - (block_move_loop): Call block_move_load_store. Move 4 words per - loop, for a loop that moves 16 bytes in 11 cycles if aligned, and 16 - bytes in 19 cycles if not aligned. - (block_move_memcpy): Change argument names for consistancy. - (expand_block_move): Always move address into a register, even for - one byte moves. Fix bugs in calling memcpy. If moving a large - constant amount of unaligned data, emit a runtime check to see if - the data is really aligned, and if so do an aligned move, otherwise - an unaligned move loop. - - * mips-tfile.c (toplevel): Make some changes, so that mips-tfile can - be debugged on OSF/1. - (efdr structure): Align identifiers in declaration. - (cur_proc_value): Delete variable. - (cur_oproc_begin): New global to record original proc .ent symbol. - (cur_oproc_end): New global to record original proc .end symbol. - (add_procedure): Set cur_oproc_begin, cur_oproc_end variables - instead of cur_proc_value. - (parse_begin, parse_end): Add check for cur_oproc_begin being set. - (parse_end): Use cur_oproc_end's value node for new value node. - (main): Add cast to free_multiple_pages call. - -Tue Nov 12 08:57:39 1991 Tom Wood (wood at dg-rtp.dg.com) - - * jump.c (jump_optimize): Merge the "if (...) x = 0;" case with - the "x = a; if (...) x = b;" case. - -Mon Nov 11 19:27:03 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cp-cvt.c (convert_pointer_to): Correctly get type of a TREE_VEC - object. (This patch is from someone at Cygnus.) - - * combine.c (try_combine): Add missing parens. - -Mon Nov 11 19:26:24 1991 Ron Guilmette (rfg at ncd.com) - - * c-typeck.c (build_binary_op_nodefault, convert_for_assignment): - A (void *) object is compatible with a function pointer if it is - the constant zero. - (build_conditional_expr): Properly check for pointers to functions. - -Sun Nov 10 19:59:12 1991 Michael Meissner (meissner at osf.org) - - * cccp.c (make_undef): Fix by off by one error. - (MIN, MAX): Add #undef, in case some system include file defined - these macros. - -Sun Nov 10 10:34:17 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl2.c (grokfield): Set TREE_EXTERNAL on static const - decls that are either uninitialized in their initial declaration, - or initialized by something we cannot evaluate at initial - declaration time. - - * cp-init.c (build_new): Make `operator new' with placement cast - its return type to the type of the object being allocated. - - * cp-typeck.c (commonparms): If the last element of P1 is - VOID_LIST_NODE, use that. - - * stor-layout.c (layout_record): Return PENDING_STATICS. - (layout_type): Don't commit static members to a particular mode - until REC has been laid out completely. - -Sat Nov 9 23:16:51 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cccp.c (fancy_abort): Don't declare as static. - -Sat Nov 9 20:38:30 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (push_overloaded_decl): Don't cons new decl to - existing ERROR_MARK_NODE. If the old decl was erroneous, just - ignore it. - - * cp-call.c (ideal_candidate): Fix typo in error message. - -Sat Nov 9 14:13:46 1991 Jeffrey A Law (law at super.super.org) - - * tm-hp9k2bsd.h (MULSI3_LIBCALL): New define which avoids - the use of __mulsi3 for signed integer multiplication. - (UMULSI3_LIBCALL, DIVSI3_LIBCALL, UDIVSI3_LIBCALL): Likewise. - (MODSI3_LIBCALL, UMODSI3_LIBCALL): Likewise. - -Fri Nov 8 12:05:39 1991 Per Bothner (bothner at cygnus.com) - - First cut at ANSI-style exception handling (using - syntax and semantics of Stroustrup 2nd ed). - THIS IS WORK IN PROGRESS! - * cp-tree.h: Declare flag_ansi_exceptions. - * gplus.gperf: Add 'throw' (for ANSI exception handling), - and update private/protected/public from (old) cp-lex.c. - * cp-hash.h: New file, generated from gplus.gperf. - * cp-lex.c: #include cp-hash.h, instead of requiring - manual cut-and-paste when keywords are changed. - * cp-lex.c: Commented out some extern declarations that - were conflicting with inlines in cp-input.c. - Hooks for ANSI-style exception handling. - * cp-parse.y: Parse ANSI-style exception stuff. - * cp-decl2.c: Define new flag flag_ansi_exceptions. - * cp-decl2.c (finish_table): Off-by-one error in - calculating index type. - * clus-decl2.c (finish_vtable_vardecl): Add missing - TREE_OPERAND to get dossier decl. - * cp-except (cplus_expand_start_except): Allow NULL name, - since there is no distinguished name for ANSI exceptions. - * cp-except (cplus_expand_raise): Too few - parameters to expand_expr; add them. - * cp-except.c: New functions for ANSI exceptions: - cplus_exception_name, ansi_exception_object_lookup, - cplus_expand_throw, ansi_expand_start_catch. - These are heavily hacked from similar old functions. - - Try to make -fdossier work better (but more work is needed). - (Especially, generate fewer unneeded descriptors.) - * cp-class.c (add_virtual_function, finish_struct): Do not - create a vtable just because of -fdossier. - * cp-gc.c: Each type points to an array of fields, - instead of an array of pointers to fields. Ditto for methods. - This saves one pointer per field or method by removing - unneded extra indirection. Also other tweaks to save space. - * cp-decl.c (init_decl_processing): Add length of - field and method arrays to descriptors, instead of - relying on NULL-termination (since we no longer have - the extra pointer array). - Make the parameter count and required count of - method descriptors be shorts. - * cp-method.c: Remove no-longer-needed functions - build_i_desc_overload and build_m_desc_overload. - - Other C++ fixes: - * cp-dbxout.c (dbxout_symbol): Class types were - emitting only a "t" spec which made gdb unhappy. - Kludged it so that it once more emits "Tt". - * cp-tree.c (lang_output_debug_info): Do emit debugging - info if this implementation file corresponds the the - type's interface, even if nothing is written. - -Fri Nov 8 08:18:55 1991 Tom Wood (wood at dg-rtp.dg.com) - - * tm-m88k*.h: Fix comments, minor cleanups. - -Thu Nov 7 16:21:05 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) - - * longlong.h (__ibm032__): Fix operand order for add_ssaaaa and - sub_ddmmss. - -Thu Nov 7 12:47:14 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (MIPS_VERSION): Bump meissner version number to 3.3. - (PCC_BITFIELD_TYPE_MATTERS): Define this to be 1. - - * out-mips.c (block_move_loop): New function to generate a loop to - do a block move. - (block_move_call): Pass the source, destination, size as separate - arguments, rather than a pointer to an array of operands. - (expand_block_move): Change block_move_call calling sequence. - (expand_block_move): If moving big aligned items, generate a loop to - do it, rather than calling memcpy/bcopy. - (override_options): If -msoft-float, 'f' constraint picks GP - registers. - - * t-decrose (collect): Use ALL_CFLAGS instead of CFLAGS, since this - gets the shared library flags in x-decrose. - -Thu Nov 7 07:57:36 1991 Tom Wood (wood at dg-rtp.dg.com) - - * tm-m88k.h (MEMORY_MOVE_COST): Define. - (TARGET_88*): Fix. - -Wed Nov 6 19:07:42 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * a29k.md (negsf2, negdf2): Add missing CLOBBER in 29050 case. - - * jump.c (jump_optimize): When looking for a conditional jump - skipping an unconditional jump, be sure the conditional jump is - not an unconditional jump. - - * combine.c (try_combine): If we make an unconditional jump, - be sure it is followed by a BARRIER. - (subst, case SET): Convert (set (pc) (return)) to (return). - -Wed Nov 6 13:41:55 1991 Tom Wood (wood at dg-rtp.dg.com) - - * tm-m88kv3.h, xm-m88kv3.h: Renamed from *m88ksysv3*. - -Wed Nov 6 09:27:16 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (MIPS_VERSION): Bump meissner version number to 3.2. - (TARGET_SWITCHES): Add -msoft-float and -mhard-float. - (GP_RETURN): Use GP_REG_FIRST as base of GP registers. - (FP_RETURN): Use FP_REG_FIRST as base of FP registers. If - -msoft-float, make $2 be the return register. - (GP_ARG_FIRST, GP_ARG_LAST): Use GP_REG_FIRST as 1st GP reg. - (FP_ARG_FIRST, FP_ARG_LAST): Use FP_REG_FIRST as 1st FP reg. - - * mips.md (ffssi2, ffssi2_internal): Fix ffs builtin so that it - doesn't clobber the input argument by turning it into a - define_expand, and using a parallel operation including the - necessary clobber's. - (abssi2, ffssi2, ffssi2_internal): Use the 'd' constraint which only - matches the integer registers, rather than 'r' which can match - floating point registers as well. - - * tm-mips-news.h (CPP_SPEC): Add -Dnews7300, -Dsony_news, -Dmips, - and -Dhost_mips. - -Wed Nov 6 08:46:54 1991 Mark Eichin (eichin at cygnus.com) - - * cp-class.c (add_method): when adding a new constructor or - destructor, actually chain onto method_vec[0] rather than replacing - the list with the current entry. - -Wed Nov 6 07:04:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * expr.c (store_field): Handle case where we are storing into a BLKmode - field of an object that is in a register. - (expand_expr, case COMPONENT_REF): Handle case where we are extracting - a BLKmode field from an object in a register. - -Tue Nov 5 22:16:39 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (target_flags): Delete second declaration. - (MASK_G0, MASK_G1, MASK_G2): Delete, since -G xx now works to set - the size of the small data/bss area cutoff. - (MASK_G012_USED, MASK_G012_NUSED): ditto. - (TARGET_GVALUE): ditto. - (TARGET_G012_USED): ditto. - (TARGET_SWITCHES): Delete -mGx, -mno-Gx switches. - (TARGET_DEFAULT): Set to 0 instead of MASK_G012_NUSED. - - * tm-decrose.h (TARGET_DEFAULT): Eliminate MASK_G012_NUSED. - - * out-mips.c (override_options): Remove support for -mGx and -mno-Gx - switches to set the cutoff size for small data/bss. - - * mips.md (abssi2): Add new pattern. - (ffssi2): Add new pattern. - -Tue Nov 5 18:36:29 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * gcc.texinfo (MEMORY_MOVE_COST): Document new macro. - * regclass.c (MEMORY_MOVE_COST): Default it to 2. - (regclass, reg_class_record): Use MEMORY_MOVE_COST, not constant 2. - (regclass): Look at result of single_set instead of checking again if - pattern is a SET. - * tm-rs6000.h (MEMORY_MOVE_COST): Add definition. - -Tue Nov 5 17:01:05 1991 Ken Raeburn (raeburn at cygnus.com) - - * cp-pt.c (tsubst): For char_type_node, just build variant and - return it. - (tsubst, case FUNCTION_DECL): Walk methods more efficiently. - - * cp-pt.c (overload_template_name): Push a binding level, to - separate template name binding from method parameters. Check - identifier value slots for TYPE_DECLs, not RECORD_TYPEs. Don't need - to do extra push of TYPE_DECL for template name. - (undo_template_name_overload): Pop it. Don't need to explicitly - clear template name binding. - - * cp-ptree.c (print_lang_decl): For FIELD_DECL, don't try to - print fields that go off the end of the lang_decl_flags structure. - - * cp-pt.c (pop_template_decls): Don't explicitly clear out value - slots of identifier; let poplevel/poplevel_class do it. - - * cp-pt.c: Use build_lang_decl insteaed of build_decl for - all TEMPLATE_DECL and TYPE_DECL nodes. - - * cp-tree.h (make_anon_name): Declare it. - - * cp-pt.c (unify): Deleted unreachable code. - - * cp-decl.c (push_overloaded_decl): Fixed typo from merge. - (start_decl): Ditto. - (grokdeclarator, case CALL_EXPR): Remove debug_tree call - accidentally left in. Handle constructor templates specially, like - destructor templates. Removed some commented-out code. - (grokdeclarator, case SCOPE_REF): If the type is uninstantiated, - treat it like any other aggregate type code. - - * cp-lex.c (identifier_typedecl_value): If no binding slot from - the identifier is the right type decl, use the type name if it is - non-null, even if the name doesn't match. - (build_lang_decl): If new decl node is TREE_PERMANENT, make sure the - lang-specific info gets allocated that way too; don't assume that - the current obstack is permanent. - (copy_decl_lang_specific): If decl is TREE_PERMANENT, assert that - the current obstack is permanent. - - * cp-parse.y (template_def): Delete derivations that were - purportedly for constructors; they didn't work. - (notype_declarator): Deal with them here. - (template_instantiate_once): Copy decl node with permanent obstacks, - thereby clearing the chain pointer, before pushing it into top - level. - (structsp): Don't need to undo template name overload here. - (scoped_typename): Want TYPENAME with template type, not PTYPENAME. - -Tue Nov 5 13:46:06 1991 Tom Wood (wood at dg-rtp.dg.com) - - * sdbout.c (sdbout_init, sdbout_symbol): Don't reverse the - permanent types. - - * cccp.c (make_definition): Eliminate previous change associated - with pretty-printing strings passed to do_define. - (pass_thru_directive): Move pretty-printing here. - -Tue Nov 5 11:21:34 1991 Michael Meissner (meissner at osf.org) - - * tm-mips-news.h (ASM_SPEC, LINK_SPEC): Correctly pass -EB instead - of -EL, since the Sony News system is big endian not little endian. - -Tue Nov 5 09:54:08 1991 Tom Wood (wood at dg-rtp.dg.com) - - * tm-m88kv4.h, t-m88kv4, x-m88kv4: Renamed from *m88ksysv4*. - -Tue Nov 5 06:36:07 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (simplify_relational_operation, unsigned comparisons): Don't - simplify unless mode of operand is a MODE_INT mode. - - * Makefile.in (*CFLAGS): More clearly document the purposes of each - of the flags. Add X_CFLAGS and T_CFLAGS for x-* and t-* to override. - * x-decrose, x-hp9k320g, x-i386isc, x-m88ksysv4, x-mips, x-tower: - Override X_CFLAGS instead of CFLAGS or INTERNAL_CFLAGS. - * x-vax: Likewise. - * x-sco: Don't include XCFLAGS in definition of CFLAGS. - - * gstddef.h: Renamed from stddef.h. - * Makefile.in (USER_H, install-common-headers): Install gstddef.h as - stddef.h. - -Mon Nov 4 17:54:04 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * integrate.c (save_constants): If we are referencing a constant in - the constant pool in a different mode than its normal mode, make - a SUBREG so that we can record both modes. - (copy_for_inline, restore_constants): Handle these SUBREG's. - (copy_for_inline): Must copy a MEM if it's address contains an - ADDRESS (i.e., the address of a constant pool entry). - - * expr.c (expand_expr, case PLUS_EXPR): If adding constant, FP, and - something else, add FP to the constant and then add the other operand. - - * global-alloc.c (find_reg): If all_regs_p, use ALL_REGS, not - GENERAL_REGS. - * local-alloc.c (block_alloc): Likewise. - - * genoutput.c (gen_expand): Record all the same information as - for a DEFINE_INSN. - - * cse.c (simplify_binary_operation, case PLUS): Simplify expressions - like (a +/- b) - (a +/- c). - (simplify_binary_operation, case MULT): For X * (-1), try to simplify - the NEG before we make it. - -Mon Nov 4 16:29:01 1991 Mark Eichin (eichin at cygnus.com) - - * cp-pt.c (overload_template_name): use build_lang_decl so that - lang_specific gets initialized properly. + * cccp.c: Don't ever include stddef.h. + (append_include_chain): Avoid using size_t. + (initialize_builtins): Output defn of __WCHAR_TYPE__ just once. - * cp-parse.y (LC): use make_lang_type to produce complete node, - not just make_node. + * ns32k.md (movstrsi1): Renamed from movstrsi. + (movstrsi): New define_expand. - * cp-ptree.c (print_lang_type): return if TYPE_LANG_SPECIFIC is - null, since everything printed here is in lang_specific. +Fri Aug 14 18:51:57 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Mon Nov 4 16:17:48 1991 James Van Artsdalen (james at raid.dell.com) + * sched.c (attach_deaths_insn): Don't call attach_deaths for CLOBBERs. - * x-i386v4: New file. - * configure (i386-sysv4): Use it. +Fri Aug 14 18:47:22 1992 Tom Wood (wood@dg-rtp.dg.com) -Mon Nov 4 12:36:09 1991 Michael Meissner (meissner at osf.org) + * genattr.c (write_units): Write #defines for the number of + function units, the min/max ready cost and min/max busy delay. + Add max_busy_cost field to struct function_unit_desc. - * gcc.texinfo (BRANCH_COST): Move so BRANCH_COST formats correctly. + * genattrtab.c (simplify_by_exploding, find_and_mark_used_attributes, + unmark_used_attributes, add_values_to_cover, increment_current_value, + test_for_current_value, simplify_with_current_value, + simplify_with_current_value_aux): New functions. + (struct function_unit): Add max_busy_cost, {min,max}_busy_delay. + (expand_units): Use simplify_by_exploding to simplify the + function_units_used attribute. Compute the ready cost attributes + as a COND in numeric order. + (gen_unit): Compute {min,max}_ready_cost and {min,max}_busy_delay. + (write_function_unit_info): Determine if there is only one busy + delay value by comparing the minimum and maximum busy delay. + Write the initializer for function_units in numeric order. + Write out the maximum busy delay field. -Mon Nov 4 08:03:44 1991 Tom Wood (wood at dg-rtp.dg.com) - - * x-m88kdgux, x-m88ksysv4: Don't set XCFLAGS. - - * jump.c (jump_optimize): Change "if (...) x = 0;" to use a - store-flag insn if jumps are expensive (BRANCH_COST). - - * tm-m88k.h (BRANCH_COST): Branches are cheap on the m88100. - (OVERRIDE_OPTIONS): Make m88100 the default. - (STORE_FLAG_VALUE): Use -1. - (.ctors and .dtors sections): Change section flags. - * m88k.md (sxx, negate sxx): Use ext and extu. Eliminate extendsxx. - -Mon Nov 4 07:19:36 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * romp.md (movdf, movdi): When splitting, ensure we put in a CLOBBER - for a scratch register, when needed. - - * tm-a29k.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define to be - compatible with those chosen by EPI. - - * tm-rs6000.h (REG_ALLOC_ORDER): Put CR registers before integer regs. - - * cse.c (simplify_relational_operation): Fix error in last change. - -Sun Nov 3 12:22:41 1991 Torbjorn Granlund (tege at sics.se) - - * longlong.h (m68020 count_leading_zeros): Fix typo in previous - change. - -Sun Nov 3 09:25:39 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (simplify_relational_operation, cases GEU, LTU, GTU, LEU): - Simplify comparisons that have known values such as (unsigned) x < 0. - - * final.c (final_scan_insn): If we've just made a branch unconditional, - convert (set (pc) (return)) to (return). - Use const_true_rtx instead of calling gen_rtx to make it again. - - * x-romp (CC): Pass -Hnocpp to hc so it will use builtin preprocessor. - (INTERNAL_CFLAGS): Don't define BSTRING here. - * xm-romp.h (alloca): Add definition to allow use of hc's builtin. - (BSTRING): Define here. - - * reload1.c (spill_hard_reg): Correct typo in previous change; had - test backwards. - - * function.c (instantiate_virtual_regs_1, case PLUS): If can't - replace operand with register, try to replace all copies of operand - with the register in case of MATCH_DUP. - - * recog.c (validate_replace_rtx_1): Use rtx_equal_p to see if - things are equal. - - * genconfig.c (max_recog_operands, max_dup_operands): Remove `_flag' - in name since these aren't flags. - (max_clobbers_per_insn): Likewise. - (main): Default to at least 10 operands (for asm) and 1 dup operand. - -Sun Nov 3 07:26:57 1991 Ron Guilmette (rfg at ncd.com) - - * Makefile.in (gnulib1.null): Use $(GCC_FLAGS) instead - of $(CCLIBFLAGS). - (gnulib1): Don't copy gnulib1.c into a temporary .c file before - compiling. That messes up the source file names in the debug info, - which makes it harder to debug gnulib1 problems. - - * Makefile.in (install-*): Force removal of previously installed files - before installing new ones (in case they got set to read-only somehow). - - * Makefile.in (uninstall): Remove protoize.1 and unprotoize.1 man - page files. - -Sat Nov 2 22:42:06 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * out-a29k.c (output_epilog): Remove write_symbols from parameter list - of call to final_scan_insn. - * out-m88k.c (preserve_registers): Likewise. - * out-mips.c (function_epilogue): Likewise. - * out-sparc.c (output_function_epilogue, output_tail_call): Likewise. - -Sat Nov 2 22:02:45 1991 Ken Raeburn (raeburn at cygnus.com) - - * cp-search.c (push_class_decls): Added missing argument to - overload_template_name. - - * cp-ptree.c (print_lang_decl): Don't print lang-specific fields - for FIELD_DECL, since it has only the shorter flags structure. - - * cp-class.c (finish_struct_method): Fixed comment typo. - - * cp-decl.c: Add some code for debugging binding level - manipulations, conditionalized on DEBUG_CP_BINDING_LEVELS. - (debug_bindings_indentation): New var, used to maintain indentation - to indicate which changes are on the behalf of other routines. - (push_binding_level): Print debugging messages to track binding - level changes and call/nesting sequences. - (pushlevel, poplevel): Ditto. - (pushlevel_class): Ditto. - (pop_binding_level): Ditto. Also scribble over freed binding level, - and don't store it for re-use. - (poplevel_class): Ditto. - * cp-decl.h (debug_bindings_indentation): Declare it. - * cp-pt.c (push_template_decls, pop_template_decls): Added - debugging fprintf calls here too. - -Sat Nov 2 17:00:22 1991 Ron Guilmette (rfg at ncd.com) - - * cp-except.c (finish_exception_decl): Change `enum debugger' to - `enum debug_info_type'. - * final.c (final_start_function, final, final_end_function, - output_source_line): Delete the `write_symbols' parameter. - Instead use the global `write_symbols' declared in flags.h. - * sched.c (unlink_notes, schedule_block, schedule_insns): Compare - `write_symbols' with NO_DEBUG rather than with zero. - * toplev.c (rest_of_decl_compilation, rest_of_compilation): Don't - pass `write_symbols' to assemble_variable, final_start_function, - final, final_end_function. - * varasm.c (assemble_variable): Delete the `write_symbols' parameter. - Instead use the global`write_symbols' declared in flags.h - -Sat Nov 2 09:48:47 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * caller-save.c: Don't include reload.h; not used. - * Makefile.in (caller-save.o): Likewise. - - * final.c (final_start_function, final_end_function, final): Change - enum debugger to enum debug info to finish previous change. - (final_scan_insn, output_source_line): Likewise. - * varasm.c (assemble_variable): Likewise. - - * rtlanal.c (modified_between_p, find_last_value): New functions; not - yet used. - * rtl.h (find_last_value): Declare. - - * cse.c (simplify_binary_operation): Remove comparison cases from - here; now in simplify_relational_operation. - -Fri Nov 1 19:04:50 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * rtl.h (REG_DEAD): More precisely describe when a REG_DEAD note - should be present. - * rtlanal.c (dead_or_set_regno_p): New function. - (dead_or_set_p): A value is dead or set only if each register in it - is dead or set. - * combine.c (reg_bitfield_target): New function. - (distribute_notes, case REG_DEAD): Place REG_DEAD note only if both - dead_or_set_p and reg_bitfield_target are false. - * flow.c (cc0_live): New variable; replaces following_insn_dead. - (propagate_block): Initialize cc0_live instead of following_insn_dead. - Track CC0's life just like other regs instead of using special - mechanism involving following_insn_dead. - Clear last_mem_set even when not final pass. - Don't call mark_used_regs on dead insns. - (insn_dead_p): Use cc0_live to see if a set of CC0 is dead. - Correctly test if set of multi-word value is needed; set if dead only - if none of the words are needed. - (libcall_dead_p): Allow CALL to be in any part of PARALLEL. - Use insn_dead_p to see if SET of return register is dead; old code - incorrectly tested multi-word registers. - (mark_set_1): Track whether all or only some words of a value are - needed; write partial REG_UNUSED note if only some words won't be - needed. - (mark_used_regs): Likewise for REG_DEAD notes. - Set cc0_live for a reference to CC0. - Don't write REG_DEAD note if register is already dead or set in INSN. - No longer check for unused SET_DEST since it won't be called for dead - insns; if a single SET's result was unneeded but the insn can't be - deleted, the source of the SET is live. - Clear last_mem_set even if not final pass. - - * reload1.c (gen_input_reload): Handle REG+MEM the same as REG+INT. - - * gcc.c (xmalloc, xrealloc): Use unsigned instead of size_t for `size'. - - * cccp.c (bcopy, bzero, bcmp): No longer static. Only declare at - front of file if we are going to define them later. - -Fri Nov 1 18:57:25 1991 Ron Guilmette (rfg at ncd.com) - - * cccp.c (timebuf): Declaration moved out of `special_symbol' and - made global (and "static") to get values of __DATE__ and __TIME__ - to remain constant throughout compilation. - (debug_output): New variable. - (main): Accept -g3 option and set debug_output when seen. - (main): Moved initializations of `outbuf' and `fp' to before call - to `initialize_builtins'. - Pass fp and &output to initialize_builtins so that it can write out - artificial #define lines for builtin symbols. - Call `output_line_directive' before doing each make_define or - make_undef so that when `debug_output' is in effect, we'll - get #line 0 directives before each artificial #define or #undef. - (special_symbol): Initialization of `timebuf' deleted from here. - (initialize_builtins): Initialize timebuf here. - (pass_thru_directive): New function. - (do_define, do_undef): Use `pass_thru_directive' for "precompilation" - of header files. - Call `pass_thru_directive' when -g3 option used. - (initialize_builtins): Generate artificial #define directives (in the - output) to represent the values of all builtin symbols whose defs - can't change during compilation. - (make_undef): Added output buffer param so that make_undef could let - do_undef do output to stdout. - Call do_undef with a real output buffer. - (make_definition): Likewise. - Many minor changes to get strings passed to do_define to always look - like correctly formed #define directives. - - * c-decl.c (store_parm_decls): Remove non-params from the list before - checking to see if the type of any element of the list is complete. - (pushlevel): Fixed bug which caused scope of tagged types to be - incorrectly assigned to the outermost {} block of functions rather - than to the outermost binding contours of functions. - (pushtag): Revised to clarify code used to find applicable - binding level for a tagname. - Set TYPE_CONTEXT of new tagged type so that dwarfout.c can tell - file-scope tagged types from non-file-scope tagged types. - Create a NULL-named TYPE_DECL node for each new tagged type - (even incomplete ones). - (finish_struct, finish_enum): Don't create NULL-named - TYPE_DECL nodes for complete tagged types. (This is now done in - `pushtag' for *all* new tagged type declarations and definitions.) - - * toplev.c (compile_file): Adjust conditions under which - `dwarfout_file_scope_decl' is called during final traversal of - the chain of file-scope decls so that it is called also for - file-scope TYPE_DECLs. - (rest_of_decl_compilation): Deleted call to `dwarfout_file_scope_decl' - for file-scope TYPE_DECLs; call `dwarfout_file_scope_decl' instead of - `dwarfout_file_scope_symbol'. - - * dbxout.c, sdbout.c, flags.h, toplev.c: Change DEBUG_LEVEL_* to - DINFO_LEVEL_* to prevent possible confusion about meaning. - - * flags.h, toplev.c: (enum debug_info_type): Renamed type from - `debugger' and cleaned up definition of type (including deletion - of useless EXTENDED_DBX_DEBUG code). - (use_gdb_dbx_extensions): Make declarations conditional on - DBX_DEBUGGING_INFO being defined. - - * out-i860.c (output_fp_move_double, find_addr_reg): Add return stmts - to avoid warnings when compiling with -Wreturn-type. - (output_delayed_branch): Fix test for CONST_INT values which must be - loaded in two instructions (as two halves). - (function_epilogue): Remove ASM_OUTPUT_EPILOGUE_SUFFIX. (Superceeded - by ASM_DECLARE_FUNCTION_SIZE in varasm.c.) - - * xm-i386.h (i386): Define in case the native host compiler doesn't. - - * tm-svr4.h (SVR4): Define this rather than SVR4_target. - (ASM_FINAL_SPEC): Support the -pipe option. - (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_OBJECT_NAME): Allow easy - redefinition of the syntax for second operand of .type. - (ASM_DECLARE_FUNCTION_SIZE): Fix line continuations. - -Fri Nov 1 14:14:14 1991 Michael Meissner (meissner at osf.org) - - * out-mips.c (mips_asm_file_end): Generate correct code if the user - uses asm("name"). Patch from bothner@cygnus.com. - - * mips-tfile.c (init_file initialization): Fix #ifdef - BYTES_BIG_ENDIAN to be #if BYTES_BIG_ENDIAN, to allow the DECstation - to work again. - (toplevel): Remove declarations of internal library functions, - _flsbuf, _filbuf. - -Thu Oct 31 14:59:11 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) - - * longlong.h (m68020 count_leading_zeros): Use %b for offset and - width syntax for bfffo instruction. - -Thu Oct 31 05:45:54 1991 Ken Raeburn (raeburn@cygnus.com) - - * cp-decl.c (PUSH_BINDING_LEVEL, POP_BINDING_LEVEL): Replaced - uses of macros with their expansions, and deleted the macros. - -Wed Oct 30 12:45:33 1991 Ron Guilmette (rfg at ncd.com) - - * dwarfout.c, dwarf.h, README.DWARF: Replacement files that bring - the Dwarf implementation up to that defined by draft 5 of the - UI/PLSIG Dwarf specification. - -Wed Oct 30 10:50:07 1991 Michael Meissner (meissner at osf.org) - - * objc-parse.y (yylex): Cast short types to int before shifting, to - avoid bogus warnings from the MIPS C compiler. - - * cccp.c (fancy_abort): Make this global again, so that - -Dabort=fancy_abort will not cause a link error, because obstack.c - contains a reference to abort. - -Wed Oct 30 07:38:08 1991 Tom Wood (wood at dg-rtp.dg.com) - - * SYSCALLS.c (abort): Undefine first. - - * xm-m88k.h (HOST_WORDS_BIG_ENDIAN): Define it. - * out-m88k.c (output_and): Choose "clr" last. - -Tue Oct 29 22:49:47 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (num_refs): New global array. - (mips_count_memory_refs): New function decl. - - * out-mips.h (num_refs): New global array to count number of 1, 2, - or 3 instruction data references with -mstats. - (mips_count_memory_refs): New function decl to determine whether a - data memory reference uses 1, 2, or 3 instructions. - (mips_move_1word, mips_move_2words): Call mips_count_memory_refs - as appropriate. - (function_epilogue): Print number of 1, 2, and 3 instruction - memory references if -mstats. - - * mips.md (movsi_ulw, movsi_usw): Call mips_count_memory_refs if - needed. - -Tue Oct 29 05:14:27 1991 Ken Raeburn (raeburn at cygnus.com) - - * cp-parse.y (template_def): Don't pass bogus declspecs to - start_decl. - - * cp-pt.c (tsubst, case FUNCTION_DECL): Build new argument list - from method template, instead of retaining the old one. - -Tue Oct 29 00:44:51 1991 Ken Raeburn (raeburn at cygnus.com) - - * cp-class.c (finish_struct): Skip type fields if they are - template names bound to their expansions. - - * cp-decl.c (binding_levels_sane): Define only if PARANOID; use a - macro returning 1 otherwise. Check class_binding_level stack for - consistency also. - (pushdecl): Verify that bindings pushed at global scope are in - permanent obstack storage. - (start_decl): While processing_template_decl, don't also need to - verify that the decl uses the template parameters. For method - templates, construct proper method type for result. TREE_EXTERNAL - flag for methods should be cleared if DECL_EXTERNAL is clear. - (grokdeclarator, case CALL_EXPR): Intercept destructor templates, - which have a different internal form, and convert them to a form - that can be recognized. - - * cp-decl2.c (grokclassfn): Include length of class name when - creating assembler name for destructor; otherwise ambiguities + * genattrtab.c (attr_desc): Add negative_ok field. + (find_attr, make_internal_attr): Initialize negative_ok. + (check_attr_value): Allow negative values for CONST_STRING for + numeric attributes with negative_ok. + (encode_units_mask): Change the encoding of the function_units_used result. - * cp-lex.c (identifier_typedecl_value): New fn; scans bindings of - identifier for a given type decl; falls back to name of type. - * cp-tree.h (IDENTIFIER_TYPEDECL_VALUE): Call it. - - * cp-method.c (fndecl_as_string): Print constructor_name of type - for constructor and destructor, not type name. - - * cp-parse.y (template_def): Don't output warning about missing - type and storage class, since this gets printed for destructor - templates. - (notype_declarator): Accept '~' PTYPENAME. - (scoped_typename): Want a PTYPENAME, not TYPENAME. Build a - SCOPE_REF node instead of calling resolve_scope_to_name. - - * cp-pt.c (instantiate_member_templates): New fn. Instantiates - members associated with template for a given template class. - * cp-method.c (template_instantiate_once): Call it. - - * cp-pt.c (end_template_decl): Catch destructor templates that - are being passed through without being converted to TEMPLATE_DECL - nodes; convert them now. Copy argument list for function template - into permanent storage. - (lookup_template_class): Supply IDENTIFIER_TEMPLATE data for new - anonymous type name. - (tsubst, case FUNCTION_DECL): Improve method lookup code. - (tsubst): Use hash table and build_cplus_* functions for building - new nodes when possible, so equality tests are easier. Extend - FUNCTION_TYPE case to handle METHOD_TYPE as well. - (instantiate_template): Don't do anything for error_mark_node. - (do_pending_expansions): Keep expansions not used in queue to check - again later. - - * cp-tree.def: Fix up some comments relating to PT-related types. - - * tree.c (init_tree_codes): Now void, in agreement with decl - elsewhere. - -Mon Oct 28 22:07:44 1991 Jeffrey A Law (law at b117.super.org) - - * output.h (current_function_uses_pic_offset_table): Declare here - so that out-*.c can see it. - - * tm-m68k.h (FINALIZE_PIC): New macro. - (PIC_OFFSET_TABLE_REGNUM): New macro. Defines which address - register is used to hold the offset table for PIC. - (CONDITIONAL_REGISTER_USAGE): Make PIC_OFFSET_TABLE_REGNUM be - fixed when generating position independent code. - - * out-m68k.c (finalize_pic): New function. - (output_function_prologue): If generating position independent - code output assembler text to load the pic_offset_table register. - -Mon Oct 28 10:02:36 1991 Michael Meissner (meissner at osf.org) - - * toplev.c (main): If -G is used, set g_switch_set to true, and set - g_switch_value to be the integer value of it's argument, for use in - the MIPS port to determine whether a static or global item goes into - the normal data area, or into the small data area. - - * out-mips.c (g_switch_set, g_switch_value): Delete these global - variables, since toplev.c now defines them. - - * tm-mips.h (EXTRA_INT_OPTIONS): Delete macro which is no longer - used in internal OSF patches to provide -G xx support. - (ASM_SPEC, CC1_SPEC, LINK_SPEC): Remove -G32, since the new -G - patches take care of it now. - - * tm-decrose.h (ASM_SPEC, LINK_SPEC): Remove -G32. - - * tm-decstatn.h (ASM_SPEC, LINK_SPEC): Remove -G32. - - * tm-iris.h (ASM_SPEC, LINK_SPEC): Remove -G32. - - * tm-mips-bsd.h (LINK_SPEC): Remove -G32. - - * tm-mips-news.h (ASM_SPEC, LINK_SPEC): Remove -G32. - - * tm-mips-sysv.h (LINK_SPEC): Remove -G32. + * gcc.c (do_spec_1): Add %u. + (default_compilers): For output of as when -c is not used, use %u + rather than %g so each object filename will be unique. -Mon Oct 28 07:11:28 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cexp.y, cccp.c, gcc.c (NULL_PTR): Use the same definition as + rtl.h and tree.h. - * combine.c (try_combine): Don't delete unused SETs if they have - side-effects. +Fri Aug 14 20:53:00 1992 Paul Eggert (eggert@twinsun.com) - * Makefile.in, t-i386sco: Had both LIMIT_H and LIMITS_H; latter - is correct. + * c-decl.c (grokdeclarator): Remove duplicate diagnostic for + initialized parameters; start_decl already does this. - * combine.c (subst): New argument `unique_copy'; if non-zero ensure - each copy of `from' replaced gets a unique copy of `to'. - Pass arg to recursive callers. - (try_combine): Pass new arg to subst. + * c-common.c (truthvalue_conversion): Optionally warn if an + unparenthesized assignment is used as a truth value. + * c-parse.y, objc-parse.y (expr_no_commas): + Mark assignments for warning. - * Makefile.in (LANGUAGES): Use `objective-c' instead of `class-c' - to avoid confusion. +Fri Aug 14 14:45:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gcc.c (xmalloc, xrealloc): Really make non-static. + * vax.md (casesi1): Renamed from casesi. + (casesi): New trivial define_expand invokes casesi1. + (movstrhi, movstrhi1): Analogous change. -Mon Oct 28 00:21:56 1991 Michael Meissner (meissner at osf.org) +Fri Aug 14 14:36:52 1992 Tom Wood (wood@dg-rtp.dg.com) - * tm-mips.h (CC1_SPEC): Convert -gline into -g1. - -Sun Oct 27 17:15:48 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload1.c (spill_hard_reg): Rework code that relies on the fact that - reg_class_superclasses[i][0] == i, since it isn't true! - -Sun Oct 27 06:15:24 1991 Ron Guilmette (rfg at ncd.com) + * reload.c (find_reloads): Ignore `%' in the last operand after + warning. - * configure: Always remove any files before we write them in case - the old copy was read-only. +Fri Aug 14 07:41:34 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (manext): Now just extension without the period. - (mandir): Default to include manext. - (install-man): Adjust to new definition of manext. - (uninstall): Remove protoize.1 and unprotoize.1 from mandir. + * genflags.c (num_operands): MATCH_PARALLEL also represents an operand. - * genemit.c (gen_exp): Write integer using %u instead of %d to - avoid warnings from some compilers when most negative int is written. + * jump.c (invert_exp, redirect_exp): No longer static. + Clean up order of declarations at start of file and remove + extraneous decls. + * unroll.c (copy_loop_body): Don't assume (pc) can be on either + leg of jump; use invert_exp and redirect_exp instead. - * cccp.c: Make variables not used outside this file static. - (main, line_to_error, xmalloc, xrealloc, xcalloc): Add missing return - statements (in unreachable paths). - (xmalloc, xrealloc, xcalloc, savestring): Make SIZE arg unsigned. - -Sun Oct 27 06:14:45 1991 Jeffrey A Law (law at b115.super.org) + * alpha.c, alpha.h, alpha.md, xm-alpha.h, x-alpha, va-alpha.h: + New files. + * config.sub: Add "alpha". + * configure: Likewise. + * Makefile.in (USER_H): Add va-alpha.h and sort names. + * gstdarg.h, gvarargs.h: Call va-alpha.h for Alpha. - * tm-m68k.h (SELECT_RTX_SECTION): New macro. Used to force - symbolic objects in the constant pool into the read-write data - section when generating position independent code. + * rtl.def (MATCH_PAR_DUP): New RTL code. + * genconfig.c (walk_insn_part): Treat it just like MATCH_OP_DUP. + * genemit.c (max_operand_1): Likewise. + (gen_exp): Treat it like MATCH_PARALLEL here. + * genextract.c (walk_rtx): Treat it like MATCH_DUP. + * genoutput (scan_operands): Likewise. + * genpeep.c (match_rtx): Likewise. + * genrecog.c (add_to_sequence): Likewise. + * a29k.md, rs6000.md ({load,store}_multiple): Use MATCH_PAR_DUP. - * recog.c (general_operand, immediate_operand, nonmemory_operand): - Use LEGITIMATE_PIC_OPERAND_P to reject constants which are not - valid when generating position independent code. + * cse.c (fold_rtx): Fix typo in two FLOAT_STORE_FLAG_VALUE tests. - * reload.c (find_reloads): Do not win in 's', 'i', or 'g' cases - if the constant does not satisfy LEGITIMATE_PIC_OPERAND_P. + * flow.c (life_analysis, propagate_block, dump_flow_info): Add more + missing casts to REGSET_ELT_TYPE. - * tm-m68k.h (LEGITIMATE_PIC_OPERAND_P): New macro. + * expr.c (movstr_optab): New variable. + (init_expr_once): Initialize it. + (emit_block_move): Rework code that generates movstrxx insns to + check predicates and use an optab. - * out-m68k.c (symbolic_operand): New function. Copied from - tm-sparc.h. + * cse.c (simplify_unary_operation): Remove "else". - * gcc.texinfo: Document LEGITIMATE_PIC_OPERAND_P. +Fri Aug 14 07:41:05 1992 Torbjorn Granlund (tege@jupiter.sics.se) -Sat Oct 26 07:51:40 1991 Michael Meissner (meissner at osf.org) + * c-decl.c, cse.c, fold-const.c, integrate.c, obstack.h, protoize.c, + reload1.c, stmt.c, tree.c, tree.h: Phicks speling erours. - * mips.md (movsi_usw): Remove invalid '&' constraint on a memory - address. +Fri Aug 14 03:21:17 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Oct 26 07:16:15 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-convert.c (convert): When converting to variant of same type, fold. - * flow.c (find_basic_blocks): Build label_value_list as list of - CODE_LABELs, not LABEL_REFs. + * varasm.c (assemble_variable): Change error message for unknown size. - * fold-const.c (optimize_bit_field_compare): Call fold on result - of build1 call that converts integer to proper mode. + * c-parse.y (declmods): Don't warn for multiple storage classes + all at the beginning. This is either good practice or an error. - * rtl.h (unsigned_condition, signed_condition): Add definition; - functions were previously added to jump.c. - * combine.c (simplify_comparison): Use unsigned_condition to simplify - last change. +Thu Aug 13 19:43:13 1992 Paul Eggert (eggert@twinsun.com) -Sat Oct 26 06:48:59 1991 Jeffrey A Law (law at b115.super.org) + * c-decl.c (finish_decl): Avoid cascading messages for tentative + definitions with incomplete types. - * tm-sun2.h, tm-sun3.h (ASM_SPEC): Pass "-k" to the assembler if - -fpic or -fPIC. + * c-typeck.c (process_init_constructor): Warn about partly + bracketed initializers. -Fri Oct 25 20:43:54 1991 Michael Meissner (meissner at osf.org) +Thu Aug 13 17:18:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-mips.h (CC1_SPEC): Remove special rules for -g0, -g1, etc., now - that GCC supports these directly. + * cccp.c (handle_directive): Output macro name if dump_names. - * configure (dec-mips-osf): DECstation running OSF/rose uses - t-decrose, not t-mips. + * m68k.h: Delete junk line inserted by mistake in last patch. - * x-decrose (COFF_CC, COFF_CFLAGS, WARNINGS): Delete. - (libdir, bindir, mandir): Put GCC 2 in the /usr/ccs/gcc tree. +Thu Aug 13 16:46:58 1992 Tom Wood (wood@dg-rtp.dg.com) - * x-mips (comment): Delete a comment about cross compilers that is - no longer true. + * regclass.c (regclass): Don't scan the constraints if there aren't + any operands. Don't look for a commutative constraint in the last + operand. - * t-decrose (coff-obstack.o): Delete rule that is no longer used. + * function.c (contains): Return the number of insns. + (reposition_prologue_and_epilogue_notes): Count all the prologue and + epilogue insns. -Fri Oct 25 18:46:51 1991 Mark Eichin (eichin at cygnus.com) +Thu Aug 13 15:20:24 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * cp-dem.c (cp-demangle): added support for templates, static - data, and the new (correct) mangling for destructors. + * m68k.h (TARGET_SWITCHES): Make -m68040 set 01007 not 01000. -Fri Oct 25 16:18:18 1991 Mark Eichin (eichin at tweedledumber.cygnus.com) + * sparc.h (CPP_SPEC): For -mv8, define __sparc_v8__ not __sparcv8__. + * longlong.h (__sparclite__): Define umul_ppmm, udiv_qrnnd, and + count_leading_zeros for this sparc architecture variant. + (__sparc_v8__): Changed from __sparc8__. - * cp-decl2.c: (grokclassfn): destructor names *should* contain - the length; otherwise, we can't tell the difference between a - destructor for a class whose name begins with 't' and a destructor - for an instance of a template class. + * c-typeck.c (build_component_ref): Don't warn for compound and + conditional expressions when pedantic. These are valid in ANSI C. -Fri Oct 25 02:15:12 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Thu Aug 13 11:37:57 1992 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) - * SYSCALLS.c, protoize.c: Changes from rfg. - waiting for real changelog entries from rfg. + * pa.c (output_function_prologue): Restore "rp" after the call to + mcount. - * gcc.c (xmalloc, xrealloc): No longer static. +Thu Aug 13 06:54:50 1992 Torbjorn Granlund (tege@jupiter.sics.se) -Thu Oct 24 19:21:04 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * pa.md (movsf recognizer): Output `fcpy,sgl', not `fcpy'. + From Jeff Law: + * pa.md (zdepi in HImode): Move this pattern after the standard + movhi patterns. - * fold-const.c (optimize_bit_field_compare): - Use build1 rather than convert, to avoid warnings. +Wed Aug 12 11:45:15 1992 Michael Meissner (meissner@osf.org) - * final.c (output_source_line): Fix if-scope for DBX fmt. + * mips.h (ASM_FINAL_SPEC): For output of as when -c is not used, + use %g, rather than %b, because the file is going to be deleted + anyway (sync up with gcc.c Aug 4 changes). Patch from Jim Meyering. -Thu Oct 24 13:29:34 1991 Tom Wood (wood at dg-rtp.dg.com) + * decrose.h (ASM_FINAL_SPEC): Ditto. - * gcc.c gen*.c: Don't make fancy_abort static. +Wed Aug 12 03:23:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Oct 24 12:07:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * fixincludes (finding all .h files): Look for links as well as + ordinary files. - * combine.c (simplify_comparison): When narrowing a comparison - and removing ANDs, make it unsigned. + * m68k.h (TARGET_68040): Test for 01000 or 0400. + (TARGET_SWITCHES): Rename -m68040 to -m68020-40. + Rename -m68040-only to -m68040. -Thu Oct 24 08:02:04 1991 Ken Raeburn (raeburn at cygnus.com) + * hp2bsd.h (TARGET_DEFAULT): Make value 0. - * cp-decl.c (binding_levels_sane): New function, tests that stack - of binding levels is consistent. Argument provides extra - identification for call site, in case compiler optimizes too well. - If PARANOID is not set, does nothing. - (push_binding_level, pop_binding_level): Now functions, for easier - debugging. Inlined under GNU C if not PARANOID. - (PUSH_BINDING_LEVEL, POP_BINDING_LEVEL): Invoke functions. - (push_to_top_level): Use type-shadowed slots to unwind - IDENTIFIER_TYPE_VALUE back to top level. - (start_decl): When processing a template decl, shouldn't need to - check uses_template_parms. For methods, modify arg list to include - `this'. Don't set context of template. Use perm_tree_cons when - building members list for class template. - (grokdeclarator): Check "friend" flag before calling - globalize_nested_type. Build a method type for a function that has - a context. +Tue Aug 11 04:23:35 1992 Paul Eggert (eggert@twinsun.com) - * cp-pt.c (end_template_decl): If template has non-null context, - chain it off of the containing class, rather than using pushdecl. - (instantiate_class_template): Instantiate all the member templates - hanging off the class template. Also, simplify some code in the - case where setup_parse is 0. - (tsubst): Check for several common values that won't be modified by - substitutions. - (tsubst, case FUNCTION_DECL): Don't return type passed if it has a - non-null context that might need fixing. Process that context while - building up the new decl node; use it to notify build_decl_overload - that we've got a method rather than a function. - (tsubst, case METHOD_TYPE): Handle like FUNCTION_TYPE; enhance that - case to handle TYPE_METHOD_BASETYPE when set. - (unify): Increment value pointed to by nsubsts, not the pointer - itself. - (do_pending_expansions): Method context is in DECL_CONTEXT, not - DECL_CLASS_CONTEXT. + * fold-const.c (operand_equal_p): Make it clear that this function + tests for indistinguishable values, not for equality as computed by + `=='; the distinction is important for IEEE NaNs and -0.0. - * cp-lex.c (do_identifier): Don't try looking up fields in base - classes of UNINSTANTIATED_P_TYPE. +Tue Aug 11 13:10:47 1992 Fred Fish (fnf at fishpond) - * cp-parse.y (primary): Call require_complete_type only for - CALL_EXPR nodes of types other than void. - (template_type): Don't call IDENTIFIER_TYPE_VALUE on - error_mark_node. + * config.sub (amigaunix/amix): Use sysv4 as os. + * configure (m68k-*-amix*): Change to m68k-cbm-sysv4* and + eliminate fixincludes and broken_install. - * cp-ptree.c (print_lang_decl): For UNINSTANTIATED_P_TYPE, show - template as well as parameters. +Tue Aug 11 15:42:58 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * cp-tree.h (DECL_TEMPLATE_*, UPT_*): New accessor macros for - TEMPLATE_DECL and UNINSTANTIATED_P_TYPE nodes. All (most?) uses - except for node creation changed to use these. - * cp-tree.def: Updated comments for these node types. + * function.c (identify_blocks): Handle case where no block nodes + exist. Use xmalloc not alloca for block_vector. + (reorder_blocks): New argument top_block. Handle case where no + block nodes exist. Always clear BLOCK_SUBBLOCKS (block) when + adding it to the block tree. + (all_blocks): Handle case where vector is zero. Store current + block at offset 0 in vector, not n_blocks. Don't count current + block twice in n_blocks. + * function.h (identify_blocks): Declare. + (rtx, tree): Move undefs to the very end. + * loop.c (loop_optimize): Delete uses of loop_number_first_block, + loop_number_last_block, loop_number_block_level. Correct call of + find_loop_tree_blocks. Add call to unroll_block_trees. + * loop.h (loop_number_first_block, loop_number_last_block, + loop_number_block_level): Delete declarations. + * stmt.c: Likewise. + (find_loop_tree_blocks): Completely rewritten to use + identify_blocks. + (unroll_block_trees): Completely rewritten to use reorder blocks. + * unroll.c (unroll_loop): Delete call to unroll_block_trees. - * cp-pt.c (uses_template_parms): Handle ADDR_EXPR. - (end_template_decl): For function with non-null context, pop class - binding level. + * unroll.c (copy_loop_body): Only copy VTOP note if it will end up + before a loop exit test. -Thu Oct 24 06:57:28 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Aug 11 09:21:47 1992 Michael Meissner (meissner@osf.org) - * a29k.md, romp.md, rs6000.md (movdi, movdf, movti): Handle case of - reg-reg copy with overlapping registers correctly. + * mips.h (MIPS_VERSION): Bump meissner version # to 23. + (CONST_CODES): Remove declaration for eliminate_constant_term + from inside of local {}'s. + (SELECT_SECTION_MODE): Remove declaration of variable + mips_section_threshold from inside of local {}'s. + (SELECT_SECTION): Ditto. - * out-rs6000.c (ccr_bit, case NE): Fix typo in bit number. - (output_epilog): Must restore stack using backchain if alloca called. + * mips.c (toplevel): Remove declarations for all of the gen_xxx + functions used, since insn-flags.h contains them. - * romp.md, rs6000.md (extendxxyy2, zero_extendxxyy2): Use DEFINE_EXPAND - to force operand to register; DEFINE_INSN allows memory (better cse). + * mip.md (fixuns_truncdfsi2): Remove extern declarations. + (fixuns_truncsfsi2): Ditto. + (movsi_unaligned, movsi_ulw, movsi_usw): Ditto. + (seq, sne, sgt, sle, sgtu, sleu): Ditto. - * rs6000.md (ffssi2): New patterns. - (maskir): Add patterns to use maskir instructions. +Tue Aug 11 02:51:25 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-a29kunix.h (TARGET_DEFAULT, CPP_SPEC): Default to 29050. + * fixincludes (memory.h): Fix versions 1.2 and 1.3 as well as 1.4. - * tm-rs6000.h (LINK_SPEC): Add -bnodelcsect. - (HARD_REGNO_MODE_OK): Delete kludge that didn't allow DImode in reg 31 - and TImode in 29-31; the bug was fixed elsewhere. + * configure: Improve err msg for unknown config. -Wed Oct 23 17:48:43 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Aug 11 04:02:51 1992 Paul Eggert (eggert@twinsun.com) - * combine.c (try_combine): If an insn doesn't match, check for case - where first SET's result isn't used; previously only checked second. + * fold-const.c (fold): Don't fold (A op B ? A : C) if A is IEEE + floating point, because A might be -0.0 or NaN. - * combine.c (try_combine): When we substitute into a COMPARE, check - SELECT_CC_MODE to see if we should try to change the mode of the - COMPARE and its result. + * c-typeck.c (parser_build_binary_op): Warn about expressions like + `1<=i<=N'. -Wed Oct 23 16:38:26 1991 Torbjorn Granlund (tege at hal.gnu.ai.mit.edu) +Mon Aug 10 22:11:50 1992 Michael Meissner (meissner@osf.org) - * gnulib2.c (__ashrdi3): Compute sign extension shift count from - machine word size instead of using 31. + * reload1.c (emit_reload_insns): Use gen_rtx to create a secondary + reload insn, not gen_reg_rtx. -Wed Oct 23 14:25:04 1991 Michael Meissner (meissner at osf.org) +Mon Aug 10 06:23:23 1992 Torbjorn Granlund (tege@jupiter.sics.se) - * tm-mips.h (PREFERRED_DEBUGGING_TYPE): Unless otherwise defined, - set to SDB_DEBUG. + * pa.md (Recognizer for zdepi_operand in HImode): New pattern. + (Recognizer for zdepi_operand in SImode): Call output_zdepi for + output. + (shift patterns and recognizers): Handle 32 bit ints and truncate + them for output. + * pa.c (output_zdepi): New function (contents from pa.md). + * pa.h (output_zdepi): Declare. - * tm-decrose.h (PREFERRED_DEBUGGING_TYPE): Define to DBX_DEBUG. +Sun Aug 9 17:10:24 1992 Pat Rankin (rankin@eql.caltech.edu) - * out-mips.c (override_options): Don't override debugger choice now - that PREFERRED_DEBUGGING_TYPE is provided. + * configure.com: Rename vms to vax-vms; split long lines. + * make-l2.com: Assemble libgcc2 routines twice, preserving + lowercase function names the second time. -Wed Oct 23 07:25:32 1991 Tom Wood (wood at dg-rtp.dg.com) +Sun Aug 9 00:50:46 PDT 1992 Ron Guilmette (rfg at netcom.com) - * sdbout.c (sdbout_symbol/FUNCTION_DECL, sdbout_toplevel_data, - sdbout_end_epilogue): Use DECL_ASSEMBLER_NAME to avoid link-time - multiple definitions. + * final.c (final_scan_insn): Call dwarfout_begin_block and + dwarfout_end_block even for -g1. -Tue Oct 22 15:06:31 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Aug 9 18:10:33 1992 Michael Meissner (meissner@osf.org) - * reload1.c (reload): For now, we must always have a frame pointer - if a function calls alloca and EXIT_IGNORE_STACK is non-zero. + * genflags.c (gen_insn): Treat 'call_pop' and 'call_value_pop' like + 'call' and 'call_insn'. - * cse.c (insert_regs): Don't make new quantity for the register in - a SUBREG. - (merge_equiv_classes): Don't invalidate the register inside a SUBREG. - (canon_hash, case SUBREG): Remove code to treat SUBREGs like REGs. + * i386.h (LEGITIMIZE_ADDRESS): Emit_move_insn only takes two + arguments, not three. -Tue Oct 22 10:25:29 1991 Tom Wood (wood at dg-rtp.dg.com) +Sat Aug 8 10:26:02 1992 Michael Meissner (meissner@osf.org) - * tm-m88kdgux.h (PREFERRED_DEBUGGING_TYPE): Use it. - * tm-m88k.h (OVERRIDE_OPTIONS): Don't override write_symbols. + * cp-tree.h (hash_chainon): Provide declaration. + (build_virtual_init): Ditto. + (build_vbase_delete): Ditto. + (build_vbase_vtables_init): Ditto. - * out-m88k.c (m88k_output_{prologue,epilogue}): Renamed. + * genflags.c (insn_name_ptr): Define, so that we can link in + print-rtl.c for debugging. + (call_obstack, normal_obstack): New obstacks to remember call + insns, and normal insns, so that we can emit the prototypes later. + (max_id_len): New variable to record the maximum identifier + length. + (num_operands): New function to return the number MATCH_OPERAND's + and MATCH_OPERATOR's in an insn tree. + (gen_proto): New function to print out a prototype for an insn. + (gen_nonproto): New function to print out a declaration without a + prototype. + (gen_insn): Don't emit function declarations here, just save the + insn on either the call_obstack if it is call or call_value, or + normal_obstack otherwise. + (main): Initialize call_obstack, normal_obstack. After all insns + are processed, emit function declarations with and without + prototypes, depending on whether NO_MD_PROTOTYPES, and + CALL_MD_PROTOTYPES are defined. + + * rtl.h (PROTO): If not defined, define to either expand + prototypes or just expand to (), depending on whether or not, the + host compiler supports ANSI C. + (NULL_PTR): Define as void * if we have prototypes. + (all function declarations): Add prototypes for all functions + where it is feasible to do so, using the PROTO macro. + (force_reg): Add declaration. + (eliminate_constant_term): Ditto. + (output_constant_def): If tree.h has been included, add prototype. + (immed_real_const): Ditto. + (immed_real_const_1): Ditto. + (make_tree): Ditto. + + * tree.h (PROTO): If not defined, define to either expand + prototypes or just expand to (), depending on whether or not, the + host compiler supports ANSI C. + (NULL_PTR): Define as void * if we have prototypes. + (all function declarations): Add prototypes for all functions + where it is feasible to do so, using the PROTO macro. Do not + define prototypes for build_binary_op, or build_indirect_ref, + since GNU C and GNU G++ have different numbers of arguments. Do + not define prototypes for make_tree, since it takes a rtx as the + argument, and rtl.h is included after tree.h. + +Sat Aug 8 07:36:19 1992 Tom Wood (wood@dg-rtp.dg.com) + + * cp-lex.c: Include stdlib.h and locale.h if needed. + (errno): Declare only if it isn't a macro. + * cp-tree.c (__eprintf): `line' is unsigned. + * cp-typeck.c (mark_addressable): Use DECL_EXTERNAL not TREE_EXTERNAL. + +Fri Aug 7 00:16:28 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * gcc.c (read_specs): Cast args of xmalloc and read to unsigned. + + * final.c (final_scan_insn): Use ASM_OUTPUT_ADDR_DIFF_ELT + and ASM_OUTPUT_ADDR_VEC_ELT only if defined. + +Thu Aug 6 22:00:13 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) + + * sched.c (true_dependence): An unchanging read is guaranteed + independent of a store only if the store is not unchanging. + (anti_dependence): Added comment about unchanging reads. + (sched_analyze_2): Don't ignore unchanging reads, they may be + dependent on unchanging writes. + + * sparc.md: Correct DEFINE_SPLITs added Jul 27. They would + overwrite the input register if it was the same as the result reg. + +Thu Aug 6 16:25:48 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) + + * pa.h (ASM_FILE_START): If profiling IMPORT "_mcount" instead of + "__gcc_mcount". + + * These changes allow the PA to make use of the BSS subspace. They + require you to use the HPUX assembler or a fixed version of pa-gas + (available soon on jaguar.cs.utah.edu). + * pa.h (TARGET_SWITCHES): New switch "no-bss" which forces gcc not + to make use of the bss subspace. (For compatability with old buggy + versions of pa-gas.) + (ASM_FILE_START): Add $BSS$ subspace. + (BSS_SECTION_ASM_OP): New macro which tells the assembler to switch + to the bss subspace. + (EXTRA_SECTIONS): Define in_bss as an extra section. + (EXTRA_SECTION_FUNCTIONS): Define "bss_section" function to switch + into the bss subspace. + (ASM_OUTPUT_COMMON): If !TARGET_NO_BSS, then place commons into the + bss subspace. + (ASM_OUTPUT_LOCAL): Likewise. + +Thu Aug 6 13:04:16 1992 Tim Moore (moore@defmacro.cs.utah.edu) + + * gvarargs.h : Check hp800 symbol too for the hppa case. + * va-pa.h : Rewrite to be compatible with hpux. + * pa.c (hppa_builtin_saveregs): Rewrite. + (secondary_reload_class): Bug fix. + (arith32_operand): New function. + +Wed Aug 5 11:23:05 1992 Tom Wood (wood@dg-rtp.dg.com) + + * m88k.h (EXTRA_SECTIONS, svr3): Delete empty definitions for + CTORS_SECTION_FUNCTION and DTORS_SECTION_FUNCTION. Add in_ctors + and in_dtors. + +Tue Aug 4 23:54:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * gcc.c (default_compilers): For output of as when -c is not used, + use %g, rather than %b, because the file is going to be deleted + anyway. -Tue Oct 22 00:51:48 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Aug 4 20:30:12 1992 Michael Meissner (meissner@osf.org) - * c++: New shell script. + * cp-decl.c (grokdeclarator): Call build_type_variant to set const + and volatile flags, since build_reference_type does not take those + arguments. - * gcc.c (default_compilers): Treat .ii files as cpp'd C++. + * cp-parse.y (attribute processing): Correctly call tree_cons with + three arguments, passing NULL_TREE for the chain argument. - * varasm.c (make_function_rtl): Don't alter DECL_ASSEMBLER_NAME. + * cp-tree.h (hash_chainon): Add declaration for this function. + (build_virtual_init): Ditto. + (build_vbase_delete): Ditto. + (build_vbase_vtables_init): Ditto. - * toplev.c (main): Use PREFERRED_DEBUGGING_TYPE if support - more than one format. + * cp-typeck.c (build_modify_expr_1): Pass 0 as third argument to + build_unary_op. + (build_modify_expr): Ditto. -Mon Oct 21 23:08:02 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Aug 4 18:10:46 1992 Mike Stump (mrs@wombat.gnu.ai.mit.edu) - * c-decl.c (grokdeclarator): Fix error message for long float. + * cp-tree.h, tree.h: Moved definitions of TREE_VIA_* into tree.h for + consistency. -Mon Oct 21 16:55:31 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Aug 4 17:35:32 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) - * optabs.c (add_equal_note): New function. - (expand_binop): Delete some obsolete, turned-off code. - Use GET_RTX_CLASS to see if operator is commutative. - Call add_equal_note if we make a multi-insn sequence; if it fails, - redo the operation without our target. - In multi-word cases, don't allow TARGET to be the same as an input. - (expand_unop): Allow operation to fail. - Call add_equal_note and allow failure, like in expand_binop. - In multi-word case, don't allow TARGET to be OP0. - (emit_unop_insn): Use add_equal_note; ignore its failure here. + Complete 10th FSF <---> Cygnus merge. - * optabs.c (expand_float, expand_fix): In cases when we will jump, - ensure we call emit_queue before protect_from_queue. - Eliminate redundant calls to protect_from_queue and force_non_mem. + Tue Aug 4 12:58:59 1992 Mike Stump (mrs@cygnus.com) - * reorg.c (steal_delay_list_from_target): Don't take an insn from - the fallthrough thread of an annulled branch insn. + * cp-decl.c (pushtag): Don't set DECL_IGNORED_P for binding + layer markers, use only DECL_SOURCE_LINE == 0, as otherwise, + it messes up dbxout.c. -Mon Oct 21 16:55:08 1991 Tom Wood (wood at dg-rtp.dg.com) + Tue Aug 4 11:59:36 1992 Mike Stump (mrs@cygnus.com) - * configure (m88k targets): Complete last change. + Tue Aug 4 13:43:55 1992 Chip Salzenberg (chip@tct.com) -Mon Oct 21 16:06:25 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-method.c (hack_identifier): Remove redundant call of + assemble_external. - * integrate.c (copy_rtx_and_substitute): When making copy of frame, - round size to keep substituted frame pointer aligned. - (CEIL_ROUND): New macro. + Tue Aug 4 10:23:02 1992 Chip Salzenberg (chip@tct.com) -Mon Oct 21 15:16:17 1991 Michael Meissner (meissner at osf.org) + * cp-decl.c (pushdecl): Any kind of DECL should be good enough + at global scope, not just a TEMPLATE_DECL. - * tm-mips.h (GP_REG_OR_PSEUDO_NONSTRICT_P): New macro for - REG_OK_FOR_{BASE,INDEX}_P in non strict mode. Fix typos in the - previous change. - (GP_REG_OR_PSEUDO_P): Rename to GP_REG_OR_PSEUDO_STRICT_P. - (REG_OK_FOR_BASE_P): Use GP_REG_OR_PSEUDO_NONSTRICT_P if non strict. - (REG_OK_FOR_INDEX_P): Use GP_REG_OR_PSEUDO_NONSTRICT_P if non strict. - (GO_IF_LEGITIMATE_ADDRESS): Indicate if strict checking is being - used if -mdebugb tracing. + Sun Aug 2 21:12:55 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) -Mon Oct 21 15:08:15 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-tree.c: change definition of __eprintf to match libgcc2.c and + assert.h - * Makefile.in (*.o): Add insn-codes.h to all lists using expr.h. - (dwarfout.o): Add dwarf.h, reload.h, output.h, and insn-config.h. + Fri Jul 31 16:53:26 1992 Mike Stump (mrs@cygnus.com) - * c-tree.h (TYPE_ACTUAL_ARG_TYPES): New macro for list of actual - types. - * c-decl.c (store_parm_decls): Compute TYPE_ACTUAL_ARG_TYPES if a - prototype is not present. Delete old method. - (duplicate_decls): Provide better diagnostics if a prototype - follows a function definition. + * cp-tree (break_out_calls): Only make ony copy of a node on + 's' and 'e' nodes. Handle 'r' just like 's' and 'e' because + nodes of type 'r' can be of different sizes (the old code + would do the wrong thing for a COMPONENT_REF). - * m88k.md (gen_divsi3): Delete REG_EQUAL workaround. - * t-m88k{,luna,sysv4}: Target makefile portion (from Mike Stump). - * x-m88k{,dgux,luna,sysv4}: Corresponding deletions. - * {tm,t,x}-m88ksysv4: Renamed from m88ksvr4. Deleted xm-m88ksvr4. - * {tm,xm}-m88ksysv3: Renamed from v88r32. - * configure: Corresponding changes. + Thu Jul 30 11:46:14 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * tm-m88k.h (ASM_OUTPUT_{CONSTRUCTOR,DESTRUCTOR}): Output to - .ctors/.dtors sections. - (TARGET_SWITCHES): Add -m88000, -m88100, and -m88110. Replace - DG/UX MXDB options with SUBTARGET_SWITCHES macro. - * tm-m88kdgux.h (SUBTARGET_SWITCHES, ASM_SPEC, ASM_FIRST_LINE): - Put MXDB options here changing -mdwarf to -mstandard. + * cp-init.c (emit_base_init): Set transparent basetypes (those w/o + ctors) as marked if we need to walk up the tree to find a ctor. -Sun Oct 20 06:39:54 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Jul 29 03:25:51 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * combine.c (simplify_comparison, case PLUS): Only do simplification - for equality comparison due to overflow problems. + * cp-decl.c (grokdeclarator): In SCOPE_REF case, sort out visibility + declarations from other declarations, since the compiler will + ultimately handle them differently. This is a part of the solution + to p525. + (finish_method): Tentative (and probably wrong) fix for carrying + along inline methods delcared within a class that really belong to + nested classes of the class. This may be more of the solution to + p525. - * gen*.c: Remove "void *" and uses of size_t added by recent change. + * cp-init.c (build_offset_ref): Use IDENTIFIER_TYPE_VALUE of CNAME + when CURRENT_CLASS_DECL is 0. - * reload.c (find_reloads): If "&" given without any registers, - turn off earlyclobber, in addition to giving error. + * cp-class.c (finish_struct): Don't give errors for TYPE_DECLs in a + struct that are really only meant for FIELD_DECLs. - * Makefile.in (STAGE_GCC): Deleted. - (STAGESTUFF): Add gcc (from STAGE_GCC) and gcc-cross. + Tue Jul 28 23:36:58 1992 Mike Stump (mrs@cygnus.com) -Sun Oct 20 04:37:21 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-decl.c (grok_op_properties): Do not core dump on parse errors. - * cp-decl.c (grokfndecl): Use DECL_NAME, not DECLARATOR at end of - function, since DECL_NAME may be different if it's an operator name. + Tue Jul 28 22:43:12 1992 Mark Eichin (eichin@cygnus.com) - * cp-cvt.c (convert_pointer_to): Test if PARENT is TREE_VEC - before testing IS_AGGR_TYPE. + * cp-pt.c (end_template_instantiation) YYDEBUG is now defined in + cp-parse.h -- so don't assume that it's -2 (since under byacc it is + -1 anyway.) iomanip.C compiles again. -Sun Oct 20 00:40:47 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Tue Jul 28 22:33:46 1992 Mike Stump (mrs@cygnus.com) - * gcc.c (link_command_spec): -collect converts to -c. + * cp-typeck.c (build_c_cast): Allow cast to array type in + some situations to be more compatible with Cfront. - * toplev.c (main): Support -gstabs and -gcoff. Fix args to strncmp. + Tue Jul 28 22:05:14 1992 Mark Eichin (eichin@cygnus.com) -Sat Oct 19 21:51:03 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (print_parse_statistics): don't reference TOKEN_LENGTH + or REDUCE_LENGTH unless GATHER_STATISTICS is set. (YYDEBUG alone is + not a sufficient condition.) - * reorg.c: Use const_true_rtx instead of const1_rtx. - (delete_scheduled_jump): Don't delete an insn that sets CC0 if it - has a side-effect. - (update_block): Add missing declaration for parameter WHERE. - (fill_slots_from_thread): Stop search if we find an insn that we - can't put into the delay slot unless we own the thread. + Tue Jul 28 19:18:30 1992 Mike Stump (mrs@cygnus.com) -Sat Oct 19 17:30:23 1991 Michael Meissner (meissner at osf.org) + * cp-tree.c (break_out_calls): Don't do anything special to + SAVE_EXPRs, as they cannot contain calls that would need + breaking out. This fixes a problem introduced on Jul 15, by + Ron Guilmette. - * tm-mips.h (GP_REG_OR_PSEUDO_P): New macro to make sure a reg or - pseudo reg during reload will eventually be a GP register for use as - a base or index register. This fixes a bug where a FP register - could be used as a base or index register in some cases after - convert from floating point to integer was done. - (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P): Use GP_REG_OR_PSEUDO_P. - (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): In the non strict version, - don't allow hard FP registers ever. + Mon Jul 27 16:55:52 1992 Mike Stump (mrs@cygnus.com) -Sat Oct 19 11:59:55 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c++: Fix errors introduced by rms. Bullet-proof handling + of arguments with funny things in them such as newlines, + spaces, tabs, single quotes, double quotes, etc... - * tm-sun3.h, tm-sparc.h (WORD_SWITCH_TAKES_ARG): - Check for Tdata as well as target. + Mon Jul 27 15:03:23 1992 Ken Raeburn (raeburn@cygnus.com) - * c-decl.c (grokdeclarator): Don't warn for array of incomplete elt. + * cp-init.c (build_vec_delete): Extract size of type even for + destructorless types, so value can be computed to pass to delete + operator. - * expr.c (expand_expr): For INDIRECT_REF, don't set unchanging bit. - * c-typeck.c (build_indirect_ref): Do set TREE_UNCHANGING if nec. + * Bludgeon interface/implementation code into leaving templates + alone, until we've figured out how to handle their interaction + properly: + * cp-parse.y (template_instantiate_once): Temporarily set interface + flags to `unknown' while processing member templates. + * cp-decl.c (grokfndecl): Even if class vtable is getting written + out, regardless of interface setting of class and write_virtuals + flag, don't force virtual destructor of template class to be public. + * cp-tree.h (struct pending_inline): New field `interface'. + * cp-lex.c (do_pending_inlines): Restore interface flags from stored + values, rather than calling extract_interface_info. + (process_next_inline): Likewise, if more pending inlines exist; else + do call extract_interface_info. + (reinit_parse_for_method): Save away interface flags. + (cons_up_default_function): Ditto. + * cp-pt.c (instantiate_template): Set saved interface flag to + `unknown'. + (end_template_instantiation): Set CLASSTYPE_INTERFACE_UNKNOWN. - * reload.c (find_reloads): Warning or error for misuse of `&'. - * toplev.c (warning_for_asm): New function. + * cp-pt.c (instantiate_member_templates): Deleted some unused code. - * t-i386sco: New file. - * x-i386sco: Add -Di286 to CC, OLDCC. - (LIMIT_H): Moved to t-i386sco. + * cp-decl.c (grokfndecl): Make class methods public if + `implementation' pragma is set. -Sat Oct 19 09:08:11 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-pt.c (pending_templates): No longer exported. + (add_pending_template): Ditto. + * cp-parse.y (primary): Don't check it; always call + do_pending_templates. - * gcc.c: Add missing extern declarations deleted by last change. - (xrealloc, xmalloc): Don't declare as void *; non-ANSI compilers - can't handle it. + Fri Jul 24 14:22:39 1992 Mike Stump (mrs@cygnus.com) -Sat Oct 19 08:26:13 1991 Ron Guilmette (rfg at ncd.com) + * cp-decl.c (init_decl_processing, finish_function), + cp-method.c (build_decl_overload, build_opfncall), cp-init.c + (build_x_delete, build_delete, build_vec_delete): Add support + for two argument delete to support ARM 12.5. In some cases, + the argument is smaller than it should be. - * tree.h: Fix spelling error in comment. + Thu Jul 23 08:12:16 1992 Mike Stump (mrs@cygnus.com) - * tree.def, cp-parse.y: Change comments that refer to LET_STMT nodes to - refer to BLOCK nodes. + * cp-lex.c: Update wide character handling from c-lex.c and make + the type of multicharacter constants be int per ANSI C++ WP. - * gcc.c, gen*.c: Declare as static objects that aren't referenced - outside the file they are in. - (xrealloc, xmalloc): Functions return char *, not int. - (main): Add missing returns (in unreachable code) to avoid warnings - when compiled with -Wreturn-type. - * gcc.c (pexecute): Likewise. - * genattrtab.c (operate_exp): Likewise. + * cp-decl.c (init_decl_processing, grokdeclarator), cp-lex.h, + gplus.gperf, cp-lex.c (init_lex), cp-decl2.c (groktypefield), + cp-method.c (build_overload_name): Add support for wchar_t as a + distinct type to conform to x3j16 working paper. + * cp-hash.h: Regenerated. -Fri Oct 18 16:58:12 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) + Wed Jul 22 17:41:08 1992 Mark Eichin (eichin@cygnus.com) - * make-cc1.com: Finish changeover from cplus-* to cp-*. + * cp-parse.y (structsp): note_got_semicolon was called before + finish_struct (which always clears the got_semicolon bit.) However, + note_got_semicolon was only called if yychar==';', without checking + for YYEMPTY. -Fri Oct 18 16:57:37 1991 Ron Guilmette (rfg at ncd.com) + Tue Jul 21 22:59:32 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * tm-svr4.h: Delete lines duplicated due to transmission problems. + * cp-typeck.c (mark_addressable): If we have a recursive call to an + otherwise inline function, clear TREE_EXTERNAL so the whole function + is written to the asm file. -Fri Oct 18 16:55:53 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Tue Jul 21 05:31:10 1992 Ken Raeburn (raeburn@cygnus.com) - * jump.c (unsigned_condition, signed_condition): New functions. + * cp-tree.h (start_type_method): Deleted unused declaration. - * configure (vax): Set tm_file to tm-vax.h so "configure vax-dec-bsd" - works. + * cp-pt.c (tsubst): Fix propagation of qualifiers in several cases. - * combine.c (subst, case PLUS, MINUS): Remove some simplifications - from here. - * cse.c (simplify_binary_operation, case PLUS, MINUS): Put these - simplifications here. - Strip off CONST when looking for some simplifications. - Add code to simplify (a - (a - b)). + * cp-pt.c (tsubst, case FUNCTION_DECL): Look for matches that differ + only in return type. - * combine.c (expand_compound_operation): Correctly handle case where - we have a ZERO_EXTRACT that extends beyond the bounds of the object. + * cp-pt.c (tsubst, case FUNCTION_DECL): Rewrite name of + type-conversion operators, in case the target type involves a + template parameter. - * global-alloc.c (mark_elimination): No longer have FORBIDDEN_REGS as - argument. - * reload1.c (reload): Don't pass FORBIDDEN_REGS to mark_elimination. + Mon Jul 20 03:35:44 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * cse.c (simplify_{unary,binary,relational}_operation): Complete - change that removes warnings from floating-point traps when constant - folding (some cases had been omitted). - -Fri Oct 18 16:41:29 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * stmt.c (expand_anon_union_decl): When creating new mem, copy the - RTX_UNCHANGING_P and MEM_IN_STRUCT_P bits from the old one. - - * sparc.md: Add new scc addx/subx patterns. - -Fri Oct 18 09:10:43 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-parse.y (stmts): Fix parsing rules to match C++ semantics - better (and hence give the compiler better error recovery). - -Thu Oct 17 19:31:15 1991 Ken Raeburn (raeburn at cygnus.com) - - * cp-pt.c (tsubst): For NEGATE_EXPR, call build1, not build. - Handle NOP_EXPR likewise. - (unify, case TEMPLATE_CONST_PARM): Copy value to permanent obstack. - - * cp-method.c (PARM_CAN_BE_ARRAY_TYPE): If not already defined, - define it to be 1. - (build_overload_name): Test to see if it's nonzero, rather than - whether it's defined; this permits compilation options to disable - it, but leave it enabled by default. Add one to the array size, - since the value retrieved appears to be the maximum index, not the - true array size. - -Thu Oct 17 19:15:37 1991 Mark Eichin (eichin at tweedledumber.cygnus.com) - - * cp-pt.c (instantiate_class_template): has an argument to - indicate whether to setup for parsing or not. (All existing cases - did a feed input, but if we are trying to set up intermediate nodes - while waiting for the parser to return to a template_instantiate - site we need to suppress the parsing part of it, which will get - redone later.) - (tsubst): under case UNINSTANTIATED_P_TYPE, actually instantiate any - class templates that are needed for function return values, and set - them up as pending templates to be run later. - - * cp-parse.y (primary): since build_x_function_call doesn't - require a complete type any more in certain cases, we instantiate - any pending templates and then require_complete_type on the - remainder. - - * cp-typeck.c (build_function_call_real): added an argument to - optionally skip the require_complete_type... implicit template - instantiation has to be postponed, so we won't get a complete type - until the parser can grab it. - - * cp-call.c (build_overload_call_real): added an argument do - allow choice of build_function_call_maybe or build_function_call - based on whether we thought we would require a complete type out of - build_function_call. - -Wed Oct 16 09:06:57 1991 Tom Wood (wood at dg-rtp.dg.com) - - * c-decl.c (store_parm_decls): Fix and disable recording the arg - type list for the function indicating the number of arguments. - * c-typeck.c (self_promoting_args_p): Allow the arg type to be null. - - * expmed.c (store_bit_field, extract_bit_field): Add checks for - MEM_IN_STRUCT_P if the structure reference is a MEM. - -Tue Oct 15 18:37:50 1991 Ken Raeburn (raeburn at cygnus.com) - - * cp-call.c (build_overload_call): If template match fails, still - set function field of candidate structure, and set bad_arg field to - new magic number -4 to indicate failed type unificiation. - - * cp-class.c (add_method): Call make_function_rtl only if not - processing a template declaration. - - * cp-tree.def: New node type, UNINSTANTIATED_P_TYPE, for - parameterized types that haven't had parameters filled in yet. - Looks like a type node. - - * cp-decl.c (struct binding_level): New flag indicating any name - should be accepted when looked up at this level. This is a kludge - to try to deal with methods of parameterized types. - (declare_uninstantiated_type_level): Set it. - (uninstantiated_type_level_p): Return it. - * cp-class.c (pushclass): If the "class" type is - UNINSTANTIATED_P_TYPE, flag it in the new binding level. - - * cp-decl.c (push_overloaded_decl): New argument to indicate - whether the decl should be forgotten when the current level is - exited. Callers changed. - (push_overloaded_decl_top_level): Ditto. - (dont_forget_overload): Deleted. - (push_overloaded_decl_1): New fn; like push_overloaded_decl, but - never forgets. Intended only for use by auto_function macro. - (auto_function): Use it. - - * cp-decl.c (print_binding_level): Print type-shadowed field at - each level. Skip fields with no values. - - * cp-decl.c (adjust_type_value): Use SET_IDENTIFIER_TYPE_VALUE, - not set_identifier_type_value. - - * cp-decl.c (pushdecl): Undo Oct 4 back-out of previous change. - Set type value of name of passed decl, instead of name of type in - passed decl. - (pushdecl_top_level): Search type-shadowed fields of outer binding - levels, munging outermost one if found to cause it to "restore" the - new global value. - - * cp-decl.c (push_overloaded_decl): Don't punt second or later - templates of a given name. - - * cp-decl.c (start_decl): Template-handling code moved up, to - cope better with variable declarations. Don't check for incomplete - type or constructor requirements when processing template. - - * cp-decl2.c (build_push_scope): If passed error mark node, just - return it. - (constructor_name): Handle UNINSTANTIATED_P_TYPE. - - * cp-lex.c (identifier_type): Don't return PTYPENAME for function - template name. - - * cp-method.c (report_type_mismatch): New magic bad-arg value -4 - indicates type unification failure. - (build_overload_name, case UNINSTANTIATED_P_TYPE): Handle like other - template-related types that shouldn't get visibility outside the - compiler. - - * cp-parse.y (template_type): Use IDENTIFIER_TYPE_VALUE from - name, if expansion doesn't happen. - (tmpl.1, tmpl.2): Now type . Value is null or return value - from instantiate_class_template. - (template_instantiation): Always put copy of decl in global scope. - Use pushdecl_top_level instead of setting IDENTIFIER_GLOBAL_VALUE - slot. - (LC): If type has been or is being defined, push a new type with the - same name, to avoid conflict. - (try_for_typename): New type . Value is non-zero iff type to - be pushed uses no template parms and isn't error_mark_node. - (scoped_id): Return error_mark_node for template parameter uses, and - leave error_mark_node alone. Only pop class if try_for_typename - value is non-zero. - (scoped_typename): Ditto. - - * cp-pt.c (end_template_decl): If template decl/class head arg is - null, punt. For non-type templates that didn't come in as template - decls, clear public flag. Such cases shouldn't arise any more; just - put in abort call for now until we're sure. Comment out code for - forcibly removing temporary values of template type parms; Michael - broke the code and fixed the original problem. Handle error case - where decl to be pushed might be null. - (coerce_template_parms): Handle arg list as TREE_VEC as well as - TREE_LIST. If arg list uses template parms, return - UNINSTANTIATED_P_TYPE node. - (uses_template_parms, case UNINSTANTIATED_P_TYPE): Return 1. - (instantiate_class_template): Now returns tree -- error_mark_node or - NULL_TREE or class type; callers and decls changed. Assign - TYPE_NAME field when building new RECORD_TYPE and TYPE_DECL nodes. - Don't need to do extra poplevel any more. - (tsubst): Handle UNINSTANTIATED_P_TYPE, MINUS_EXPR, PLUS_EXPR, - NEGATE_EXPR. - (undo_template_name_overload): Don't need to explicitly clear type - field any more. - (overload_template_name): Push a TYPE_DECL, instead of explicitly - setting type value field. - (end_template_instantiation): Don't need to pop a level any more. - (reinit_parse_for_template): Throw away saved block for null or - error template node. - (type_unification): Handle variadic functions, and functions with - default values for arguments. - (unify): Handle TREE_VEC and UNINSTANTIATED_P_TYPE. - - * cp-ptree.c (print_lang_type): Handle UNINSTANTIATED_P_TYPE. - - * cp-tree.h (push_overload_decl): Declare here, not in - cp-decl.c. - (TEMPLATE_TYPE_* macros): Delete unused (and now incorrect) - versions. + * cp-class.c (add_virtual_function): Don't crash if + CURRENT_CLASS_TYPE is NULL_TREE. + * cp-decl2.c (grokfield): Ditto. -Mon Oct 14 14:30:32 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Tue Aug 4 15:36:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * integrate.c (expand_inline_function): Fix typo from last edit, - where TYPE_MODE was applied to an argument, not the type of an - argument. + * c-decl.c (finish_decl): Don't do expand_decl_init for FUNCTION_DECL. - * cse.c (canon_hash, SUBREG case): Add cast which is needed by some - compilers. + * c-typeck.c (build_conditional_expr): Merged const and volatile flags + of incoming types. -Mon Oct 14 07:59:50 1991 Tom Wood (wood at dg-rtp.dg.com) +Tue Aug 4 11:15:47 1992 Chip Salzenberg (chip@tct.com) - * toplev.c (rest_of_compilation): Compute the function's name and - pass it to assemble_{start,end}_function. - * varasm.c (assemble_start_function): New parameter. - (assemble_end_function): New function for ASM_DECLARE_FUNCTION_SIZE. - * final.c, sdbout.c: Correct comments. - * tm-svr4.h, tm-sysv4.h (ASM_DECLARE_FUNCTION_SIZE): Add and use a - NAME parameter. - * tm-m88k.h (ASM_DECLARE_FUNCTION_SIZE): Override svr4 definition. - * out-m88k.c (output_prologue): Delete previous method. + * c-decl.c (finish_struct): If bit field is of an unsigned + type that promotes to int, promote it unsigned if traditional + or if it is the same size as int. + (start_function): Ditto for function return value. + * c-typeck.c (default_conversion): Ditto -- fix bug that + promotes short to unsigned if sizeof(short) == sizeof(int). - * m88k.md: Use trap_if. - (divsi3): Store into output operand only once to aviod problems - with REG_EQUAL note. - * out-m88k.c (output_call): Accomodate assembler range - restriction. - * tm-m88kdgux.h (AS_BUG_IMMEDIATE_LABEL): Specify the restriction. - (ASM_SPEC): Pass -KV3 to the assembler in some cases. - * tm-m88k.h (CONDITIONAL_REGISTER_USAGE): Mark the addressing base - register global. +Tue Aug 4 15:12:51 1992 Tom Wood (wood@dg-rtp.dg.com) -Sat Oct 12 00:30:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * svr3.h (USING_SVR3_H): Define. + * svr4.h (USING_SVR4_H): Define. + * aoutos.h (USING_AOUTOS_H): Define. + * m88k.h (EXTRA_SECTIONS): Base on the above defines. - * Makefile.in (.SUFFIXES): Rule added. +Tue Aug 4 14:22:44 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * dbxout.c (dbxout_block): Handle debug_info_level. - * sdbout.c (sdbout_begin_block): Likewise. - * toplev.c (compile_file): Likewise, when calling init_emit_once. - * emit-rtl.c (init_emit_once): Cosmetic change. - * Makefile.in (sdbout.o): Include flags.h. + * dbxout.c: Include output.h. - * configure: Default srcdir from dir in which configure is found. +Tue Aug 4 00:21:06 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i860.md (floatsidf2): Rewrite to be independant of host machine. - (divdf3, divsf3): New patterns. + * Makefile.in (install-common): Install protoize and related files + if they were compiled. + (install-proto): Target deleted. + (dbxout.o): Depend on output.h. - * tm-i860.h (ASM_DECLARE_FUNCTION_NAME): Macro deleted. - (ASM_OUTPUT_FUNCTION_PREFIX): Macro added. +Mon Aug 3 02:04:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * stmt.c (pushcase, pushcase_range, expand_end_case): - Don't give "unreachable code" warning for a USE. + * c-decl.c (finish_function): Test only can_reach_end for the warning + about reaching the end of a non-void function. + (poplevel): If apparently nested inline function has + DECL_ABSTRACT_ORIGIN, don't output it; propagate TREE_ADDRESSABLE. + (pushdecl): When copying inline details into an extern decl, + copy DECL_RESULT, TREE_ASM_WRITTEN. Set DECL_ABSTRACT_ORIGIN. - * tm-i386.h (HARD_REGNO_MODE_OK): Fp regs reject TFmode. + * c-parse.y (datadef): For empty declaration, use pedwarn. + * objc-parse.y (datadef, mydecl): Likewise. -Fri Oct 11 16:43:37 1991 Tom Wood (wood at dg-rtp.dg.com) + * Makefile.in (install-cross-tools): Install nm from tooldir. - * cse.c (find_comparison_args): Reject VOIDmode to avoid invalid - shift. + * varasm.c: Include real.h. + * sparcv4.h: Don't include real.h. -Fri Oct 11 14:30:31 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * flow.c (mark_used_regs): Do recurse in setting of global hard reg. + Do set reg_next_use for global hard reg. - * c-typeck.c (function_types_compatible_p): - NULL as arg type matches self-promoting type. - (self_promoting_type_p): New function. - (common_type): NULL for arg in one fcn type means use arg from other. - * c-decl.c (store_parm_decls): Record arg type list for the fn, - just to indicate how many args there are. + * objc-parse.y (reserved_declspecs, declmods): Change as in c-parse.y. - * i860.md, out-i860.c, tm-i860.h: Merge many changes by rfg. - * tm-i860bsd.h, xm-i860.h: Likewise. - * tm-i860v3.h, tm-i860v4.h: New files. - * xm-i860v3.h, xm-i860v4.h: New files. - * tm-i860v3g.h: Renamed from tm-i860g.h. - * configure (i860-sysv3*): Renamed from i860-sysv*. New filenames. - (i860-sysv4*): New alternative. +Mon Aug 3 03:24:17 1992 Paul Eggert (eggert@twinsun.com) - * print-rtl.c: New file, split from rtl.c. - * Makefile.in (print-rtl.o): New target. - (OBJS): Add that target. + * c-parse.y (reserved_declspecs): Warn if storage class occurs here. + (declmods): Warn if storage class is not first. - * toplev.c (DEFAULT_GDB_EXTENSIONS): Provide default definition. - (main): Use that for -g with dbx format. - Don't support -G. - * gcc.c (default_compilers): Get rid of -G. +Sun Aug 2 21:44:34 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Oct 11 14:30:43 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * emit-rtl.c (gen_rtx, case REG): Don't use frame_pointer_rtx or + arg_pointer_rtx if reload is in progress. - * stmt.c (expand_anon_union_decl): Correctly handle anonymous - unions, whether in memory or registers. + * jump.c (jump_optimize): When replacing jumps with logical + expressions, use preserve_subexpressions_p. - These were written by Michael Tiemann. - The following changes net a 16% speedup compiling some - machine-generated CAD synthesis code. - * c-decl.c (field_decl_cmp): New function, use as comparison - function for qsort. - (finish_struct): If there are more than 15 fields, allocate a - LANG_TYPE for the FIELD_DECLs, and sort them according to - `field_decl_cmp'. - * c-tree.h (lang_type): Define a LANG_TYPE for RECORD_TYPEs. - * c-typeck.c (build_component_ref): If LANG_TYPE set, then use - binary search to find the field, otherwise use linear search as - before. + * calls.c (expand_call): Use HOST_WIDE_INT instead of int when + comparing a pointer to an integer constant. + * flow.c (find_use_as_address): Likewise; also when returning int. + * integrate.c (expand_inline_function): Cast -1 to (HOST_WIDE_INT) + first. - * tree.h: Declare savealloc. - * c-common.c: Delete now unnecessary cast of savealloc result. + * cse.c (canon_hash): Use HOST_WIDE_INT instead of int when casting + pointers to integers. + * print-tree.c (print_node): Likewise. + * tree.c (TYPE_HASH): Likewise. + * varasm.c (const_hash, SYMHASH): Likewise. -Fri Oct 11 10:06:09 1991 Tom Wood (wood at dg-rtp.dg.com) + * toplev.c: (main): Don't cast pointers to int unnecessarily. - * cse.c (simplify_binary_operation): Fix typo in last change. + * tree.c: Include function.h after tree.h. - * cp-*, gcc.texinfo, make-cc1.com, tree.c, undocumented: Change - cplus- to cp-. Rename cplus-parse.y to cp-parse.y. + * rtl.h (NOTE_BLOCK_NUMBER): Change definition to simpler form. + (SET_NOTE_BLOCK_NUMBER): Deleted. + (xrealloc, oballoc, permalloc): Declare here as well as in tree.h. + * function.c (identify_blocks, reorder_blocks): Don't use + SET_NOTE_BLOCK_NUMBER. -Fri Oct 11 07:48:40 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (struct addr_const): Use HOST_WIDE_INT for OFFSET. - * recog.c (find_single_use_1): Ignore appearances of DEST in - contexts where it is being set, not referenced. - (find_single_use): Use dead_or_set_p instead of looking for REG_DEAD - notes. + * combine.c (reg_sign_bit_copies): New variable. + (combine_instructions): Initialize it. + (set_significant): Set it. + (try_combine): Set subst_low_cuid immediately before calling `subst' + to the INSN_CUID of the lowest insn involved in the call. + Change XOR with out-of-range constant to (not (xor ...)). + Call both split_insns and find_split_point; pass extra parm to + find_split_point. + Record I2DEST's value if I2 now sets it; similarly for I1DEST. + (find_split_point): Add new arg INSN. + If AND'ing with a large single-bit constant and we only care about + equality with zero, replace with bit extraction. + Make two shifts for ZERO_EXTRACTs unless very narrow. + (subst): Move RESTART label earlier. + If we have a simple operation applied to IF_THEN_ELSE, move + the operation inside the two arms. + (subst, case SUBREG): Use force_to_mode. + (subst, case NOT): Change (not (xor X C)) to (xor X ~C). + (subst, case NEG): Remove optimization of (neg (abs X)); redundant. + Convert (neg (xor A 1)) to (plus A -1) if A is known to be 0 or 1. + (subst, case IF_THEN_ELSE): Simplify if an arm contains a register + being tested by substiting the known value. + Put constant integer in last arm is can reverse comparison. + (subst, case SET): Use gen_lowpart_for_combine. + (subst, case AND): Make IF_THEN_ELSE when appropriate. + (subst, case IOR): (ior A C) can sometimes be just C. + (subst, case XOR): Go back and restart when canonicalizing. + (subst, case ABS): Use num_sign_bit_copies. + (make_extraction): Call force_to_mode. + (make_compound_operation): Look at optabs rather that explicitly + checking for operations and assuming we have SImode. + Handle (ashiftrt (OP (ashift foo C1) C3) C2). + (force_to_mode): Only change mode of arithmetic if optab says we + have operation in that mode. + Remove unneeded ASHIFTRT; add handling for IF_THEN_ELSE. + (significant_bits, case NEG): Call num_sign_bit_copies. + (significant_bits, case ABS, case [US]{MIN,MAX}, IF_THEN_ELSE): New. + (num_sign_bit_copies): New function. + (simplify_shift_const): Remove ASHIFTRT if value is known -1 or 0. + Use num_sign_bit_copies to simplify (ashiftrt (ashift ...) ...) + and (ashiftrt (neg ...) ...). + Remove now redundant case when VAROP is a PLUS. + (simplify_comparison): If A is known to be -1 or 0, A != -1 is A == 0. + Simplify unsigned tests that really check the sign bit. + (simplify_comparison, case ASHIFTRT): Convert to LSHIFTRT if + equality comparison with zero. + (get_last_value): Check if the desired register is set in the + insn before the one whose INSN_CUID is subst_low_cuid. -Fri Oct 11 07:29:33 1991 Ron Guilmette (rfg at ncd.com) + * expr.c (expand_builtin, case BUILT_IN_CONSTANT_P): Add missing + call to TREE_CODE. - * c-parse.y, cp-lex.c, objc-parse.y (check_newline): Use `pedwarn' - instead of `error' when we see an #ident if -pedantic. - * cccp.c (do_assert, do_unassert, check_assertion, do_sccs): Warn - if -pedantic. + * reload1.c (reload): Set reload_in_progress earlier. -Thu Oct 10 18:30:28 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * fold-const.c (optimize_bit_field_compare): Correct bogus use of + types in expressions; always do computation in a type wide enough + for the result. - * gcc.c (default_compilers): Correctly handle new debugging - options, pass all -g* and -G* options. +Sun Aug 2 01:30:22 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in, c-decl.c, cp-decl.c, final.c, flags.h, gcc.1, - gcc.c, print-tree.c, toplev.c, tree.def, tree.h: Delete support - for obsolete GDB_DEBUG format, -gg option, symout.c, etc. - * gdbfiles.h, symseg.h, symout.c: Delete obsolete files. + * objc-parse.y (attrib): Copied from c-parse.y. -Thu Oct 10 17:56:16 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Aug 1 13:34:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (convert_move): When widening FROM to multi-word, ensure that - we only reference each piece of TO once so that emit_no_conflict_block - can be safely used. + * c-pragma.c (HANDLE_PRAGMA_WEAK): Define only if SET_ASM_OP defined. - * toplev.c (float_signal): Re-enable the signal after we catch it. + * vax-vms.h: Renamed from vms.h. + * xm-vax-vms.h: Renamed from xm-vms.h. + * configure (vax-*-vms): Change file names. - * cse.c (simplify_binary_operation): Add missing fp error handler - setup in DFmode case. +Sat Aug 1 16:13:09 1992 Mark Eichin (eichin@cygnus.com) - * combine.c (subst, case XOR): Fix typo in checking for - STORE_FLAG_VALUE equal to just the sign bit. - (simplify_comparison): Fix typo in computing maximum signed number in - a mode; also, use GET_MODE_MASK rather than trying to compute it. + * config/spc-sol2.h (ASM_OUTPUT_DWARF_STRING): redefinition was + incorrect, and uneeded; while Solaris as doesn't support .string, it + does support .asciz, and sparcv4.h takes care of including that + definition. -Thu Oct 10 17:52:44 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Jul 31 08:19:41 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu - * c-decl.c (init_decl_processing): Turn off `alloca' for -ansi. - (c_decode_option): Handle -fbuiltin, -fno-builtin. + * combine.c (try_combine): Correctly handle implicit deaths of + I2DEST and I1DEST. -Thu Oct 10 17:42:03 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cexp.y: Add declaration for xmalloc. - * caller-save.c (emit_mult_restore): Initialize MAYBE_TEMPREG. + * cccp.c: Add declarations for malloc and realloc. + Include stddef.h when __STDC__ is defined. + (PTR_INT_TYPE): New macro. + (pcfinclude): Use it. - * function.c (assign_parms): Set MEM_IN_STRUCT_P when creating a - MEM for a aggregate passed by reference. - * expr.c (expand_expr, INDIRECT_REF case): Set MEM_IN_STRUCT_P - when dereferencing an aggregate. + * c-decl.c (init_decl_processing): __builtin_return_address, + __builtin_frame_address, and __builtin_saveregs all return void *. - * sched.c (sched_note_set): Add missing parens. + * reload.c (find_reloads_address_1): Convert another push_reload + call into a call to find_reloads_address_part. - * sparc.md: Delete unnecessary clobbers from all SCC patterns. + * reload1.c (gen_input_reload): Correct order of insns emitted + when using secondary memory. - * integrate.c (expand_inline_function): Correct handling of arguments - passed by invisible reference. + * reload1.c (reload_as_needed): Add missing semicolon after macro. - * cse.c (canon_hash): Compute hash code for SUBREG same as we do - for REG. Otherwise, SUBREG hash codes can change when qty_const - changes, which results in duplicate SUBREG entries, which can - cause a crash. + * combine.c (distribute_notes, case REG_DEAD): If a register used + exactly twice is referenced in both I2 and I3, show it is used 3 times. -Wed Oct 9 15:55:42 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * final.c (output_operand): Abort if X is a pseudo. - * cccp.c (main): Update MAX_INCLUDE_LEN if GCC_EXEC_PREFIX gets into - the act. + * cse.c (exp_equiv_p, case CONST_INT): Use INTVAL instead of XINT. - * xm-a29k.h: Change copyright message back to GPL version 2. - * xm-a29k-ultra.h: Use GPL version 2 copyright. + * expr.c (convert_move): Put FROM into a register if it is a SUBREG. + (For extension case.) - * reload1.c (reload): Put array size in cast, to prevent compiler - warning. +Fri Jul 31 08:19:05 1992 Tom Wood (wood@dg-rtp.dg.com) - * dwarfout.c (type_attribute): Check for ERROR_MARK nodes. + * function.c (reposition_prologue_and_epilogue_notes): Search for + the notes without using basic_block_end[0] or basic_block_head[N-1]. -Wed Oct 9 13:59:22 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Jul 31 08:18:18 1992 Michael Meissner (meissner@osf.org) - * toplev.c (float_signal): Reenable handler. + * reorg.c (get_branch_condition): Return 0 if all tests fall through. - * configure: Comment out various options not yet updated. +Fri Jul 31 02:28:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-*.c, cp-*.h: Renamed from cplus-*.[ch]. - * Makefile.in: Renaming here also. + * glimits.h: Renamed from limits.h. + * Makefile.in (LIMITS_H): Deleted. + (install-limits-h): Use glimits.h, not limits.h. + * libgcc2.c: Include glimits.h. - * x-*: Renamed from make-*. - * Makefile.in (tmake_file, xmake_file): New vars. - (Makefile): Depend on them. - * configure: Replace host_make_var_file with host_xmake_file. - Handle tmake_file also, for target machine. - Form file names from x- and t-. - Rearrange use of temporary files during editing of Makefile. +Thu Jul 30 09:54:07 1992 Tom Wood (wood@dg-rtp.dg.com) - * t-mips: Most of x-mips moved here. - * t-decrose: Likewise from x-decrose. + * m88k.h (FUNCTION_BOUNDARY, ASM_OUTPUT_ALIGN_CODE): Pack code + more tightly for the m88110. - * xm-a29k-ult.h: Renamed from xm-a29k-ultra.h. + * m88k.md (cpu attribute): List m88100 first for more efficient + code in insn-attrtab.c. - * Makefile. in (install-common): Don't handle `collect' specially. - It should be in EXTRA_PASSES if it is needed. + * m88k.md (rotate/and split pattern): Fix typo. - * cse.c (simplify_binary_expression): Use float handler for DF like SF. - Don't warn about traps; leave them for run time. +Thu Jul 30 00:02:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-hp9k320.h (SIZE_TYPE): New definition. - Note: this affects tm-3b1.h by inheritance. Not sure that's right. + * i860mach.h: New file. + * configure (i860-*-mach*): New alternative. -Wed Oct 9 12:15:40 1991 Tom Wood (wood at dg-rtp.dg.com) + * svr3.h (BSS_SECTION_FUNCTION): New macro. + (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Enable these. + * tower-as.h (BSS_SECTION_FUNCTION): Deleted. + * dpx2.h (EXTRA_SECTION_FUNCTIONS): Deleted. + * att386.h (BSS_SECTION_FUNCTION): #undef before defining. - * rtl.def (TRAP_IF): Make TRAP into a conditional trap. - * rtl.h (TRAP_CONDITION): Define. - * rtlanal.c (reg_referenced_p may_trap_p): Deal with TRAP_IF properly. - (volatile_refs_p side_effects_p): Not currently true for TRAP_IF. + * i860v3.h (USE_CONST_SECTION): #undef before defining. -Wed Oct 9 03:55:21 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Jul 29 20:04:55 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * make-mips (BISONFLAGS): Assignment deleted. + * sparc.md (cmpsi): Delete 'J' constraint. - * real.h (REAL_VALUE_MINUS_ZERO): New macro. - * fold-const.c (target_minus_zero): New function. - * tm-sun2os4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_FLOAT_OPERAND): - (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_DOUBLE_OPERAND): - Use REAL_VALUE_ISINF, REAL_VALUE_MINUS_ZERO. +Wed Jul 29 00:38:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Oct 8 17:56:13 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-lex.c (yylex): When traditional, convert 0x80000000 to -0x80000000. - * c-decl.c (duplicate_decls): If redeclaring builtin as static, - replace the old decl. + * gcc.c (link_command_spec): Accept -static but do nothing with it. - * tm-seq386.h (HARD_REGNO_MODE_OK): Copy usual def into override def. + * loop.c (move_movables): When testing whether a reg contains + the function address of a call_insn in a libcall block, + use reg_referenced_p, to ignore destinations. - * tm-news.h (CPP_PREDEFINES): Get rid of invalid conditionals. - * tm-tower.h: Likewise. + * stor-layout.c (layout_record): Take account of + maximum_field_alignment when using the field's alignment. - * tm-gmicro.h (MODES_TIEABLE_P): Fix typo. + * c-parse.y (attrib): Fix previous change--the missing arg + was the last arg. - * ns32k.md (rotrsi3): Fix typo `NEGATE' for `NEG'. + * fixincludes: Don't repeat the directory-link-chasing loop + more than twice. Combine $prevdirs with $dirs--they had same value. + Properly discard $d itself from the output of find. + Find the links to directories by finding each link + and testing it with test. Add $newdirs into $files. - * c-typeck.c (mark_addressable): Handle CONSTRUCTOR. - * expr.c (expand_expr): Handle addressable contructors. +Tue Jul 28 12:46:31 1992 Michael Meissner (meissner@osf.org) -Tue Oct 8 14:42:56 1991 Tom Wood (wood at dg-rtp.dg.com) + * c-common.c (decl_attributes): Call layout_decl with two arguments. - * expmed.c (lshift_value): Ensure the shift amount is in range. + * c-parse.y (attribute processing): Correctly call tree_cons with + three arguments, passing NULL_TREE for the purpose argument. -Mon Oct 7 20:45:35 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * emit-rtl.c (make_insn_raw): Eliminate unused argument pat_formals, + and modify all callers. + (make_jump_insn_raw): Ditto. - * integrate.c (function_cannot_inline_p, save_for_inline_copying, - save_for_inline_nocopy, expand_inline_function, - output_inline_function): Use GET_RTX_CLASS. + * reorg.c (fill_slots_from_thread): Function follow_jumps only takes + one argument. + (relax_delay_slots): Ditto. - * listing: Remove RCS Author and Log fields. +Tue Jul 28 16:04:43 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (exp_equiv_p): Fix typos in comments/spacing. - * emit-rtl.c: Likewise. - * expmed.c (store_fixed_bit_field): Likewise. - * integrate.c (subst_constants): Likewise. + * dpx2g.h (ASM_OUTPUT_IDENT): #undef it. - * longlong.h: Again fix same typo previously fixed Sept 5. + * c-decl.c (duplicate_decls): Handle warn_redundant_decls here. + But don't warn if function definition follows a declaration. + (pushdecl): Don't handle it here. + (grokparms): Don't warn about non-prototype decl in system header. -Mon Oct 7 17:28:23 1991 Michael Meissner (meissner at osf.org) + * c-convert.c (convert): If main variants match, + but the type is not identical, make a NOP_EXPR. - * xm-mips.h (MIPS): Define MIPS to 1 instead of nothing, so - mips-tfile will compile once again. +Tue Jul 28 10:06:18 1992 Jim Wilson (wilson@sphagnum.cygnus.com) -Mon Oct 7 17:10:32 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * mips.md: Correct use of `*' in constraints. Put it before each + letter to ignore, not each group to ignore. - * cccp.c (main): Pedantically warn if no newline at end of file. - (finclude): Likewise. +Tue Jul 28 01:23:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (grokdeclarator): funcdef_flag overrides parm level. + * dbxout.c (dbxout_parms): Do something for structures + passed by invisible reference, and living in memory. -Sun Oct 6 16:37:31 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * gstddef.h (wchar_t): Alternate typedef for C++. - * sparc.md (peephole for lo-sum and load df): Use output_move_double. + * Makefile.in (extraclean): Delete config/ChangeLog. - * tree.h (DECL_BUILT_IN_NONANSI): New flag. - * c-decl.c (init_decl_processing): Set flag for `alloca'. + * m68k.md (probe): Use %a0 to output the address. - * c-decl.c (duplicate_decls): Rearranged to reduce conditionals. - Allow redefining built-in functions as static even if new decl - is not a function. Also allow if built-in is not ANSI. +Mon Jul 27 20:08:21 1992 Mike Stump (mrs@hal) - * out-sparc.c (output_move_double): Fix typo in test for using ldd. + * c++: Fix errors introduced by rms. Bullet-proof handling of + arguments with funny things in them such as newlines, spaces, tabs, + single quotes, double quotes, etc... -Sun Oct 6 12:56:19 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Jul 27 17:38:52 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * expr.c (expand_expr, case COND_EXPR): Rename var added in last - change; some C compilers don't like "optab optab;". + * sparc.md: Add DEFINE_SPLITs to optimize logic operation with + certain immediate values. -Sun Oct 6 09:26:55 1991 Michael Tiemann (tiemann at cygnus.com) + * sparc.md: Correct inconsistent operand constraints in peepholes. - * cplus-method.c (build_overload_name): When walking up contexts, if - CONTEXT becomes a _TYPE node, point it at the _DECL node for the - type. + * sparc.h (ASM_LONG, ASM_SHORT, ASM_BYTE_OP): Definitions added. + (ASM_OUTPUT_DOUBLE): Use REAL_VALUE_TO_TARGET_DOUBLE to convert. + (ASM_OUTPUT_FLOAT): Use REAL_VALUE_TO_TARGET_SINGLE to convert. + (ASM_OUTPUT_INT): Use ASM_LONG pseudo-op. + (ASM_OUTPUT_SHORT): Use ASM_SHORT pseudo-op. + (ASM_OUTPUT_CHAR): Use ASM_BYTE_OP pseudo-op. + (ASM_OUTPUT_BYTE): Use ASM_BYTE_OP pseudo-op. - * cplus-decl2.c (grokclassfn): Paremeter COMPLAIN deleted. No - longer performs sanity check by itself. - (check_classfn): New function. Performs sanity check that - `grokclassfn' used to do. All callers changed. +Mon Jul 27 17:10:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tree.h (struct tree_decl): Add new ignored_flag; delete - lang_flag_8 to make room. - (DECL_IGNORED_P): New macro. - (DECL_LANG_FLAG_8): Deleted. - * cplus-dbxout.c (dbxout_type): Use this macro instead of - ANON_AGGRNAME_P. - * cplus-decl.c (pushtag): Set DECL_IGNORED_P when appropriate. - * cplus-decl.c (duplicate_decls): Ensure DECL_IGNORED_P remains - consistent. + * gstdarg.h (va_arg): Don't use +=; no need to set AP twice. - * cplus-decl.c (grokfndecl): If we have an overloaded operator, set - the DECL_NAME to something that dbxout.c can handle. - * cplus-method.c (hack_operator): Change this function to handle - this new behavior. - * cplus-init.c (do_friend): Ditto. +Sun Jul 26 14:21:13 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Oct 5 14:32:01 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * final.c (final_scan_insn): Align jump table only if + READONLY_DATA_SECTION. Otherwise, the table is in the text section. - * expmed.c (expand_mult): Avoid fetching memory more than once. + * collect2.c (dup2): Defined, if NO_DUP2. - * tm-ultrix.h (DOLLARS_IN_IDENTIFIERS): Define as 1. + * plexus.h: New file. + * m68k.c (output_function_prologue): Make a probe instruction + if NEED_PROBE if nonzero. + * configure (m68k-plexus-sysv*): New alternative. - * expr.c (expand_builtin): Clarify error message for BUILT_IN_NEXT_ARG. + * c-convert.c (convert): Succeed if TYPE is the main variant + of the given type. + * c-typeck.c (build_conditional_expr): Compare using TYPE_MAIN_VARIANT. -Sat Oct 5 08:42:02 1991 Michael Tiemann (tiemann at cygnus.com) + * c-decl.c (duplicate_decls): Copy old RTL *before* make_var_volatile. - * cplus-decl.c (clear_anon_tags): New function. - (make_anon_name): Moved here from cplus-method.c. - * cplus-lex.c (check_for_missing_semicolon, note_list_got_semicolon): - call `clear_anon_tags' when done. - * cplus-dbxout.c (dbxout_type): No longer test ANON_AGGRNAME_P for - TYPE_NAMEs that are IDENTIFIER_NODES. They no longer appear in GNU - C++. Also, we can rely on the fact that there are no anon aggrnames - in tag lists. +Sat Jul 25 21:45:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-decl.c (xref_tag): Set TREE_VEC_LENGTH (BINFOS) to the - number of basetypes that were actually accepted. + * c-decl.c (pushdecl): Never reuse global fcn decl in place of + local extern; just copy some info from it. - * cplus-parse.y (datadef, fndef): Accept `extern "C"' as a storage - class specifier. +Sat Jul 25 06:14:58 1992 Tom Wood (wood@dg-rtp.dg.com) - * cplus-init.c (build_new): Handle allocating types whose TRUE_TYPEs - start off as ARRAY_TYPEs. + * expmed.c (expand_divmod): Eliminate the generation of branches + when possible. - * cplus-typeck.c (build_unary_op): We don't need to wrap - CURRENT_CLASS_DECL in a NON_LVALUE_EXPR when taking the address of - C_C_D. +Sat Jul 25 04:34:09 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-init.c (resolve_offset_ref): Fix error message for - non-static member references. Also, don't crash if EXP is not a - TREE_LIST or an OFFSET_REF. + * fixincludes (X11/Xmu/Xmu.h): Fix this or X11/Xmu.h, + whichever exists. - * cplus-expr.c (cplus_expand_expr): Handle OFFSET_REFs. +Sat Jul 25 00:41:12 1992 Paul Eggert (eggert@twinsun.com) - * cplus-typeck.c (build_binary_op_nodefault): If PEDANTIC, don't - permit comparisons between pointers and integers. + * c-parse.y (datadecl): Diagnose empty declarations in old-style + function headers. + * c-decl.c (shadow_tag_warned): New function. - * cplus-decl2.c (explicit_warn_return_type): New variable. - * cplus-decl.c (grokdeclarator): Test `explicit_warn_return_type' - instead of `warn_return_type'. + * c-lex.c (yylex): Diagnose `1.0fl'. Issue just one + diagnostic for `1e1000000f'. - * cplus-decl.c (grokdeclarator): Fix criterium for deciding whether - to turn a FUNCTION_TYPE declaration into a METHOD_TYPE declaration - based on FRIENDP and STATICP. - (implicitly_declare): If PEDANTIC, treat this as an error. +Fri Jul 24 19:25:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-cvt.c (convert_to_integer): Make anachronisms errors if - PEDANTIC is nonzero. + * dbxout.c (dbxout_symbol): Distinguish implicit C++ typedefs + from explicit C typedefs for structs, using DECL_SOURCE_LINE. - * cplus-typeck.c (convert_for_assignment): If PEDANTIC, don't let - void * convert to non-void* types. Similarly, don't let const* - pointers be assigned to non-const* pointers. Similarly for signed - vs. unsigned pointers. - (warn_for_assignment): Add new parameter SEVERE. + * c-decl.c (duplicate_decls): Use TYPE_MAIN_VARIANT even for compares + with void_type_node. + (grokdeclarator, get_parm_info, store_parm_decls): Likewise. - * cplus-decl.c (push_overloaded_decl): If PEDANTIC, give error when - functions overload variables. +Fri Jul 24 10:07:13 PDT 1992 Ron Guilmette (rfg at ncd.com) - * cplus-decl2.c (grokfield): If PEDANTIC, don't let fields have - initializers (conditionalized on PEDANTIC). - * cplus-class.c (finish_struct): Set TYPE_GETS_{ASSIGNMENT,INIT_REF} - for UNION_TYPE. + * dwarfout.c (is_tagged_type): New function added. + (member_attribute): Use it. + (type_ok_for_scope): Rewritten to eliminate serious bugs. + (output_type): Call `output_pending_types_for_scope' at the end of + struct/union types (which are themselves scopes in C++). -Sat Oct 5 06:52:29 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Jul 24 13:36:46 1992 Michael Meissner (meissner@osf.org) - * expr.c (expand_expr, case COND_EXPR): Case for X ? A + 1 : A can - also handle MINUS_EXPR and BIT_*_EXPR. + * dbxout.c (toplevel): Include defaults.h to get the definition of + ASM_STABD_OP. - * rtl.h (copy_rtx_if_shared): Declare here. - * emit-rtl.c (unshare_copies): Delete unused variable. - (copy_rtx_if_shared): No longer static. - (reset_used_flags): New function. - * combine.c (copy_substitutions): Deleted. - (try_combine): When making new insns, ensure that we do not have any - improper sharing by using copy_rtx_if_shared; no longer call - copy_substitutions. + * Makefile.in (dbxout.o): Add defaults.h dependent. - * combine.c (try_combine): If an insn that is a PARALLEL of two sets - isn't recognized and the result of the second SET is unused, ignore it. + * i386rose.h (CC1_SPEC): Remove MIPS switches accidently left in. -Fri Oct 4 15:25:33 1991 Michael Tiemann (tiemann at cygnus.com) +Thu Jul 23 09:49:43 PDT 1992 Ron Guilmette (rfg at ncd.com) - * cplus-decl.c (set_identifier_type_value): New function. Change - all callers of macro SET_IDENTIFIER_TYPE_VALUE to call this function - instead. + * dwarfout.c (is_body_block): Rewritten for greater saftey. + (output_block): Fixed to deal correctly with non-inlined blocks. - * cplus-decl.c (pushdecl): Back out Sep 26 change. ??? This problem - really has to be solved in a more global fashion. - (struct binding_level): New field `type_shadowed' for typenames that - get shadowed. All pop* routines that restore from shadowed lists - now restore IDENTIFIER_TYPE_VALUE from the `type_shadowed' field. +Thu Jul 23 15:37:23 1992 Jeffrey A Law (law at schirf.cs.utah.edu) -Fri Oct 4 14:47:52 1991 Michael Meissner (meissner at osf.org) + * flow.c (propagate_block): Change "struct foo" to "struct sometimes". - * sdbout.c (include of syms.h): Don't include on MIPS - systems, since the system does not provide the file, rather use - "gsyms.h". This is a problem for Silicon Graphics, and the System V - varient on RISC-OS, both of which define the USG macro. Patch from - jonathan@isor.vuw.ac.nz. +Thu Jul 23 15:10:51 1992 Tom Wood (wood@dg-rtp.dg.com) -Fri Oct 4 13:37:11 1991 Tom Wood (wood at dg-rtp.dg.com) + * m88k.h (ASM_OUTPUT_CASE_LABEL): Change to readonly section if the + table contains addresses. + (JUMP_TABLES_IN_TEXT_SECTION): True by default. - * stor-layout.c (get_best_mode): Add a volatilep parameter - indicating that the smallest mode is desired. - * expmed.c, fold-const.c: All callers changed. - (optimize_bit_field_compare): Initialize {l,r}volatilep now that - they are used. +Thu Jul 23 13:54:27 1992 Michael Meissner (meissner@osf.org) -Thu Oct 3 22:08:45 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * mips.c (large_int): Use HOST_WIDE_INT type to hold INTVAL. + (gen_int_relational): Ditto. + (gen_conditonal_branch): Don't emit any insns if the result is + always false, and emit a normal jump if the result is always true. - * objc-actions.h (CLASS_SUPER_NAME): Change type.basetypes to - type.binfo so that it will compile. + * mips.c (mips_move_1word): Count LABEL_REF's as a memory + reference. Rework half-pic load of symbols, to not expect movsi + to have converted the load address into a load, and for CONST's, + do the addition after the pointer is loaded. -Thu Oct 3 06:46:38 1991 Niklas Hallqvist (niklas at appli.se) + * mips.md (type attribute, movsi3): Eliminate 'pic' attribute, + just use 'load' instead. + (fix_truncdfsi2): Make this a define_insn, instead of a + define_exapnd and an insn, and use match_scratch to allocate the + two scratch registers. Adjust length costs, so that they match + the current code the assembler produces. + (fix_truncsfsi2): Ditto. + (movsi): Don't convert load of half-pic addresses and CONST's into + the real load. It causes more problems than it solves. Adjust + cost of half-pic addresses to be 2, not 4. - * cplus-tree.h (PARANOID): Don't define if already defined. - ({SET,CLEAR}_CLASSTYPE_MARKED*): New macros needed to get through - C compilers who don't allow comma expressions as lvalues. - ({SET,CLEAR}_BINFO_*): Ditto. + * mips-tfile.c (parse_def): Allow spaces in names, since C++ + templates produce things like: #.def SMANIP; ... + (parse_stabs_common): Code from Lisa Repka, to handle symbol +/- + offset, and to look up things in the external string table, if the + name is not found in the local string table. - * cplus-init.c: Use new SET/CLEAR macros. +Wed Jul 22 13:08:33 1992 Jeffrey A. Law (law@schirf.cs.utah.edu) - * cplus-search.c: Ditto. + * sparc.md (movdf+1): Use new 'T' and 'U' constraints to + determine when an ldd or std will have a length of 1, and + therefore is eligible for use in some delay slots. + (uncond_branch): New attribute used for unconditional branches. + All unconditional branch patterns changed. + (define_delays and delay slot attributes): Do not allow + uncond_branch instructions in delay slots. Do not allow fpload or + fpstore operations in a conditional branch delay slot. Allow + fpload and fpstore in call, unconditional branch, and annuled + conditional branch delay slots. - * cplus-decl.c: Ditto. - (lookup_tag): Accept *_DECLs as nodes in the context chain. - (lookup_nested_type): Accept FUNCTION_DECLs not only as head of - the context chain, but at any place in it. - -Thu Oct 3 06:42:08 1991 Michael Meissner (meissner at osf.org) - - * c-decl.c (c_decode_option): Add new switch -Wparentheses and - -Wnoparentheses to control whether GCC warns about adding extra ()'s - around a subexpression. Make -Wparentheses default behavior. - (warn_parentheses): New global variable. - - * c-tree.h (warn_parentheses): New variable. - - * c-typeck.c (parser_build_binary_op): Check for warn_parentheses - before emitting warnings about adding (). - -Wed Oct 2 20:51:04 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * gcc.texinfo: Correct documentation for CONSTANT_ADDRESS_P, - CONSTANT_P, and HIGH. - -Wed Oct 2 15:08:32 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-class.c (modify_vtable_entries): Fix error in computing - offsets to use for virtual functions from virtual baseclasses. - * cplus-except.c (lookup_exception_type): Change local variable name - `binfo' to `link'. - * cplus-lex.c (yylex): Cast shorts to (long) when building longlong. - -Wed Oct 2 11:32:35 1991 Michael Meissner (meissner at osf.org) - - * tm-encrose.h (new file): New configuration file for Encore - Multimax running OSF/1, and using the OSF/rose object formats. - -Wed Oct 2 08:33:08 1991 Tom Wood (wood at dg-rtp.dg.com) - - * tree.h (TYPE_UID): Add this field to TYPE nodes. - * tree.c (make_node): Initialize it. - * dwarfout.c (TYPE_NAME_FMT): Use TYPE_UID rather than TREE_UID. - (equate_type_number_to_die_number): Discard type qualifiers. - (output_typedef_die): Don't use equate_type_number_to_die_number. - -Wed Oct 2 08:04:57 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (cse_process_notes): Fix typo; missing arg in return. - -Wed Oct 2 06:56:13 1991 Ron Guilmette (rfg at ncd.com) - - * Makefile.in (ENQUIRE_CFLAGS): Remove duplicate use of GCC_CFLAGS. - - * Makefile.in (cplus-tab.c): Adjust number of expected conflicts. - - * Makefile.in (mostlyclean): Remove collect and collect2. - - * tm-svr4.h: Add new file; prototype for System V, Release 4. - -Tue Oct 1 23:00:13 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload.c (find_reloads_address): Fix error in previous change; - clean up REG case so it is easier to read. - -Tue Oct 1 14:05:46 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-decl.c (finish_{decl,function}): Use new function - `note_debug_info_needed' instead of setting CLASSTYPE_ASM_WRITTEN. - * cplus-search.c (note_debug_info_needed): New function. - Recursively set CLASSTYPE_ASM_WRITTEN in a hierarchy when called. - - * cplus-class.c (finish_struct): If DECL_NAME of the BASE_FNDECL is - NULL_TREE, we know we're looking at a virtual destructor. - -Tue Oct 1 09:47:25 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (OPTIMIZATION_OPTIONS): Enable scheduling insns now for - -O2 optimization. - - * Makefile.in (STAGESTUFF): Add $(EXTRA_PASSES), to allow moving any - extra passes into the stage[1234] directories, and to remove the - extra stuff when doing make clean. - -Tue Oct 1 08:35:11 1991 Tom Wood (wood at dg-rtp.dg.com) - - * dwarfout.c (FUNC_END_LABEL_FMT, TYPE_NAME_FMT): Undo this change. - - * c-decl.c (grokdeclarator): When making an unsigned bitfield - type from a typedef, preserve the size. A typedef of an - explicitly signed typedef is explicitly signed. - -Mon Sep 30 22:51:07 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * out-sparc.c: Fix misc typos and indentation problems. - Delete all unnecessary extern declarations. - Include "recog.h". - Consistently use Pmode instead of SImode for addresses. - Use macros defined in tm-sparc.h instead of magic numbers. - (reg_or_0_operand): Accept CONST_DOUBLE zero. - (symbolic_operand): Accept CONST_DOUBLE. - (move_operand): Accept arith_double_operand ('H'), SMALL_INT - ('I'), and sethi operands ('K'). - (move_pic_label): Renamed from move_reg_or_immed_operand. If - flag_pic is true, accept a LABEL_REF, otherwise fail. - (arith_double_operand): Accept SMALL_INT ('I') CONST_INTs. Correct - computation of when a CONST_DOUBLE is a SMALL_INT ('H'). - (eligible_for_epilogue_delay): Accept arith_double_operands. - (emit_move_sequence): Handle arith_double_operands. Handle - loading of labels for pic, need to add a clobber of %o7 (reg 15). - (find_addr_reg): Don't return FRAME_POINTER_REGNUM. It is not - safe to play around with the frame pointer. - (hard_regno_mode_ok): Change from short to int array. - (output_pic_sequence, output_pic_sequence_2, fp_zero_hook): Delete - long obsolete routines. - (print_operand): Delete support for obsolete 'S' and 'H' cases. - (output_double_int): New function. Outputs assembler code for 64 - bit (DImode) values. - - * sparc.md: Fix misc typos and indentation problems. - Delete unnecessary (set_attr "type" "binary") lines. - Consistently use %a1 in sethi and ori output templates. - Consistently use Pmode not SImode for addresses. - Consistently use the same predicate for both operand 1 and - operand 2 in commutative patterns. Don't use same predicate in - non-commutative patterns. - Consistently use \; to separate multiple instuctions. - Change "r%" to "%r". - (define_attr length): Handle arith_double_operand predicate. - (movsi): Combine two movsi patterns into one, except for loading - of pic labels. New pattern to load pic labels, which clobbers %o7. - (movhi): Combine two movhi patterns into one. - (movqi): Combine two movqi patterns into one. - (movdi): Discourage the Q/f constraint option so that DImode - variables won't end up in floating pointer registers. - (floatsisf2, floatsidf2): Delete patterns accepting a const_int - operand. These should never be matched. In remaining patterns, - accept nonimmediate_operand instead of general_operand. - (adddi3, subdi3, anddi3, iordi3, xordi3, xnordi3, one_cmpldi2): - Accept arith_double_operand predicates and "HI" constraints. - (last peephole): Reg 0 should be CCmode not SImode. - - * tm-sparc.h: Fix misc typos. - (WORDS_BIG_ENDIAN): Indicate why it must be true. - (hard_regno_mode_ok): Change from short to int array. - (CONST_DOUBLE_OK_FOR_LETTER_P): Add new 'H' constraint, for DImode - constants that can fit in an immediate field. - (CONSTANT_ADDRESS_P): Accept any CONSTANT_P, including - CONST_DOUBLEs. - (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs if match 'H' - constaint. - (RTX_COSTS): Define cost for FLOAT to be more expensive than - CONST_DOUBLEs, so that cse will prefer the latter. - (ASM_OUTPUT_DOUBLE_INT): New macro to output DImode constants. - - * sched.c (schedule_block): When calculating register lifetime - info, handle CLOBBERs and USEs. The code that adds REG_DEAD notes - already handles them. - (update_n_sets): New function, subroutine of update_links. - Given a SET or CLOBBER, updates reg_n_sets as appropriate, - depending on whether this is in a deleted or a new insn. - (update_links): Call update_n_sets to subtract info for split - insn, and add info for insns resulting from the split. - -Mon Sep 30 19:06:50 1991 Michael Meissner (meissner at osf.org) - - * ecoff-cmp (TMP): Fix typo, from jonathan@isor.vuw.ac.nz. - - * mips-tfile.c (toplevel): Don't declare _flsbuf under Silicon - Graphics, from jonathan@isor.vuw.ac.nz. - -Mon Sep 30 15:54:02 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (cse_process_notes): New function. - (cse_basic_block): Call it for each insn. - (count_reg_usage): Count usage in a REG_EQUAL note. - (delete_dead_from_cse): Call count_reg_usage with insn, not pattern. - * loop.c (scan_loop): Replace a register used in a REG_EQUAL note. - (find_single_use_in_loop): Two uses in single insn doesn't disqualify. - Allow argument to be REG_NOTES. - (count_loop_regs_set): Call find_single_us_in_loop on REG_NOTES. - -Mon Sep 30 15:47:03 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-call.c (ideal_candidate): Return 0 if the top two candidates - have identical rankings but incompatible types. - - * cplus-lex.c (cons_up_default_function): Set DECL_NAME (FN) to - NULL_TREE in order to mark the function as being generated by the - compiler. - * cplus-init.c (emit_base_init): Change to use this interface. - * cplus-decl.c (duplicate_decls, redeclaration_error_message): Ditto. - (store_parm_decls): Ditto. - * cplus-decl2.c (grokclassfn): Ditto. - * cplus-dbxout.c (dbxout_type_methods): Ditto. - * cplus-class.c (finish_struct_methods): Ditto. - * cplus-method.c (fndecl_as_string): Ditto. - * cplus-search.c (lookup_fnfields_1): Ditto. - (compute_visibility): Ditto. - * cplus-typekc.c (build_function_call): Ditto. - * cplus-tree.c (lang_printable_name): Ditto. Also use - DECL_ASSEMBLER_NAME instead of DECL_NAME in DESTRUCTOR_NAME_P test. - * calls.c (expand_call): Change also needed here. - -Mon Sep 30 15:31:53 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * dbxout.c: Include before config.h, because it may define - MIN and MAX. - - * fold-const.c (const_binop): Delete incorrect short cut for - (0 - const). - - * expr.c (do_tablejump): Pass GET_MODE (index) instead of Pmode to - emit_cmp_insn, because the latter fails when integers and pointers - are different sizes. - - * combine.c (subst): When checking to see if associating helps - simplify rtl, make sure we pass the constant operand if any as the - second one if this is a commutative operation. - - * cccp.c (rescan): Save obufp_before_macroname as an offset from - the start of op->buf instead of as a pointer into the middle, in - case op->buf gets realloced. - -Mon Sep 30 14:07:20 1991 Tom Wood (wood at dg-rtp.dg.com) - - * dwarfout.c (FUNC_END_LABEL_FMT, TYPE_NAME_FMT): TREE_UID is - unique only if the node is TREE_PERMANENT. Augment the spelling - of labels using TREE_UID with the TREE_UID of the current function. - - Changes from Ron Guilmette: - * dwarfout.c (output_symbol): Deal with formal parameters with an - incomplete tagged type. - (output_bound_representation): Fix for arrays with dynamic bounds. - - Changes from Jim Wilson: - * dwarfout.c: Define strrchr to rindex for non USG systems. - Use DECL_BIT_FIELD_TYPE not DECL_BIT_FIELD to test for bitfields. - -Sun Sep 29 16:29:08 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload.h (indirect_symref_ok): New variable. - * reload.c (find_reloads_address): Remove shadowing decls of `tem'. - Only allow certain forms addresses as indirect; check - indirect_symref_ok to see if (mem (symbol_ref ...)) is a valid - address; if not that form or simple, not valid indirect address. - * reload1.c (indirect_symref_ok): Define here. - (init_reload): Initialize vars used to determine which addrs are valid. - (reload): Don't do it here. - Update comment to relect what `alter_regs' currently does. - - * tree.h (struct tree_decl): Add new from_inline_flag; delete - lang_flag_9 to make room. - (DECL_FROM_INLINE): New macro. - (DECL_LANG_FLAG_9): Deleted. - * c-decl.c, cplus-decl.c (pushdecl): Use DECL_FROM_INLINE instead of - TREE_INLINE where appropriate. - * cplus-decl.c (finish_decl): Likewise. - * integrate.c (integrate_parm_decls, integrate_decl_tree): Set - DECL_FROM_INLINE instead of TREE_INLINE. - * print-tree (print_node): Print DECL_FROM_INLINE. - Delete reference to DECL_LANG_FLAG_9. - -Sun Sep 29 12:49:47 1991 Michael Tiemann (tiemann at cygnus.com) - - * c-decl.c, c-typeck.c, cplus-decl.c, toplev.c: - Set/test TREE_ADDRESSABLE of DECL_ASSEMBLER_NAME, not DECL_NAME for - function decls. - - * cplus-class.c: Export `current_lang_stack' and - `current_lang_base'. - cplus-decl.c (push_overloaded_decl): Allow redeclaration of a - function that was previously given a linkage specification at - top-level (i.e., not in an explicit linkage arena). - - * cplus-typeck.c (convert_arguments): Strip the `&' from an - overloaded function passed as an argument into an ellipses. - -Sat Sep 28 15:37:26 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-typeck.c (build_x_binary_op): We have to special-case the - failure of MEMBER_REF to be overloaded as an operator. - -Sat Sep 28 10:44:36 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * reload1.c (reload): If we find at some point that we need - caller-saves, disable elimination of the frame pointer. - - * reload.c (subst_reloads): Re-enable code to prevent making - a SUBREG inside a SUBREG. - -Sat Sep 28 00:40:51 1991 Ken Raeburn (raeburn@cygnus.com) - - * cplus-pt.c (do_pending_expansions): Adjust "DECIDE" macro to avoid - compiler warning from Sun cc. - -Fri Sep 27 17:30:39 1991 Per Bothner (bothner at cygnus.com) - - * configure[.in]: Move most of the target_vendor switch - entries (e.g. next, sun, sony) from the m88k architecture to m68k, - where they belong. - -Fri Sep 27 16:21:04 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-search.c (recursive_bounded_basetype_p): Add new parameter - UPDATE_CHAIN so that function now behaves as comment prescribes. - * cplus-search.c (compute_visibility): Fix error in conversion of - data structures from list-based to binfo-based nodes. - -Fri Sep 27 07:05:57 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * c-decl.c (pushdecl): Fix typo: TREE_EXTERNAL misspelled. - -Thu Sep 26 17:36:14 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (ASM_FINAL_SPEC): Handle gcc -c -o foo bar.c. - - * tm-decrose.h (ASM_FINAL_SPEC): Handle gcc -c -o foo bar.c. - - * make-decrose (cplus-lex rule): Remove hacks in compiling - cplus-lex, since bug in 1.39 inlining was fixed to allow us to - compile the module normally. - -Thu Sep 26 11:53:49 1991 Ken Raeburn (raeburn@cygnus.com) - - * cplus-tree.h (TEMPLATE_TYPE_*): Use slower versions that uses tree - structures more properly, so accessor macros don't lose. - - * cplus-pt.c (end_template_parm_list): For type parameters, make the - new decl be the name of the "type". - - * Makefile.in (cplus-tab.{c,h}): There are now 30 s/r conflicts. - - * cplus-class.c (resolves_to_fixed_type_p, case CALL_EXPR): Deleted - duplicate code. - - * cplus-decl.c (poplevel): Deleted duplicate code saving info on - accesses to external via non-global decls. - (pushdecl): For typedef of unnamed type, don't store new name for - type if not at global binding scope. Also, don't need to test for - TYPE_DECL when previous conditional guarantees it. - (start_decl): Clear TREE_PUBLIC flag of templates. - (finish_decl): For variables in static storage with constructors, - force it into data section (out of common storage) only if the name - is externally visible. - - * cplus-gc.c (type_needs_gc_entry): If the type has no base types, - don't check to see whether they need gc entries. - - * cplus-parse.y (yyprint): Handle SCSPEC and AGGR. - - * cplus-pt.c (end_template_decl): Clear IDENTIFIER_TYPE_VALUE slots - for type parameters, then call adjust_type_value. - (instantiate_class_template): Do nothing if classname is - error_mark_node. - (mangle_class_name_for_template): Make buf a static array, since - its address gets returned. - - * reload1.c (reload): Provide array size in cast, to avoid compiler - warnings. - - From Niklas Hallqvist: - * cplus-tree.h (struct template_info): Added new field "aggr", which - will be class_type_node or struct_type_node for class or struct - templates. - * cplus-parse.y (template_def): Pass current_aggr to - end_template_decl. - (template_instantiation): Use aggr field. - * cplus-pt.c (end_template_decl): Argument IS_CLASS is now a tree, - used to set the aggr field. - (overload_template_name): Use aggr field. - - Suggested by John Carr: - * cplus-dbxout.c (dbxout_tags): Don't omit argument to - dbxout_finish_symbol. - (dbxout_continue): Omit declaration and definition if - DBX_CONTIN_LENGTH is not greater than zero, like its calls. - (print_int_cst_octal): Ditto, based on defined(WINNING_GDB). - * cplus-decl.c (GNU_end_scope): Never used; deleted. - (pushdecl): Vars nglobals, len are used only in code under "#if 0"; - comment out decls as well. - * cplus-gc.c (expand_gc_prologue_and_epilogue): Variable "head" was - unused; deleted. - * cplus-init.c (expand_aggr_vbase_init_1): All args are type tree. - (expand_vec_init): Don't return without a value when "initializer - ends prematurely". - * cplus-method.c (build_overload_nested_name): Pass all necessary - arguments in recursive call. - * cplus-search.c (pop_type_level): Cast argument to pop_stack_level - to proper type. - (push_memoized_context): Ditto for push_type_level. - (my_copy_node): Unused; deleted. - (lookup_fnfields): Add missing arg to get_binfo. - (lookup_field): Ditto. - - From Niklas Hallqvist: - * cplus-decl.c (push_to_top_level): Handle case of function with - unnamed parms. - (pop_from_top_level): Ditto. - -Thu Sep 26 07:46:08 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * loop.c (scan_loop): Don't eliminate register that is set by - consecutive insns. - -Wed Sep 25 18:53:52 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * c-decl.c (pushdecl): Suppress warnings about mismatch of - extern decl when it comes from inlining a function. - - * emit-rtl.c (set_new_first_and_last_label_number): New function. - (max_label_num): Use last_label_num if valid. - * integrate.c (output_inline_function): Call set_new_... - -Wed Sep 25 18:37:36 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * flow.c (find_auto_inc): Set BLOCK_NUM of new insns emitted while - making an auto-inc. - - * Makefile.in (getopt*.o): Each file depends on its .c file and on - the compiler executable files. - -Wed Sep 25 18:18:46 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * toplev.c (debug_info_level): New variable. - * flags.h (debug_info_level, enum debug_info_level): New declarations. - * toplev.c (main): Rewrite handling of -g* and -G* options. - Now -G indicates use of GDB extensions. -g0 removed. - -Tue Sep 24 03:20:07 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * alloca.c: Test __STDC__, not X3J11. - Do nothing if alloca is defined as a macro. - -Tue Sep 24 09:15:17 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * global-alloc.c (eliminable_regset): New variable. - (global_alloc): Compute it and use to turn off conflicts. - Refine computation of no_global_alloc_regs when ELIMINABLE_REGS is - defined. - (mark_elimination): Don't do anything with allocnos and don't do - any allocation. - - * reload1.c (eliminate_regs_in_insn): Try to re-recognize insn if - we replaced a (set X (plus Y Z)). - -Tue Sep 24 06:34:04 1991 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) - - * cplus-tree.c (virtual_member): Change TREE_VALUE accessor macro to - BINFO_TYPE. - * tree.h (BINFO_TYPE): New name for BINFO_VALUE. - * All cplus-* files: Changed to reflect new name. - -Mon Sep 23 12:56:11 1991 Michael Meissner (meissner at osf.org) - - * tm-mips.h (ASM_SPEC): Fix typo, and close {}'s properly. - -Mon Sep 23 10:30:51 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-tree.c (propagate_assoc_offsets): Keep relative offsets of - child_child correct when copying children. - - * cplus-class.c Use `BINFO_VALUE' instead of `TREE_VALUE' when - accessing the type value of a binfo node. - * cplus-decl.c (finish_function): Ditto. - * cplus-init.c (build_vbase_delete): Ditto. - -Mon Sep 23 06:11:56 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * flow.c (reg_n_refs): Use int, not short. Short can overflow - if we have very deep loop nesting. - (allocate_for_life_analysis): Allocate reg_n_refs as int. - * regs.h (reg_n_refs): Now int. - * sched.c: Delete duplicate definitions of objects defined in regs.h. - - * combine.c (try_combine): Correctly check for independent insns - in a PARALLEL. - - * combine.c (distribute_note, case REG_DEAD): If we discover a register - is never used, see if we can delete the insn that set it. - -Sun Sep 22 19:24:52 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-type2.c (build_functional_cast): Don't forget a valid - function call if we found one (and nothing more). - -Sun Sep 22 07:48:18 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - - * rtlanal.c (rtx_varies_p, case REG): Correct typo; sense of comparison - was backwards. - - * global-alloc.c (mark_elimination): Don't use HARD_REG_SET macros - to access basic_block_live_at_start. - - * reload1.c (set_label_offsets): New function. - (offsets_known_at, offsets_at): New variables. - (reload): Allocate and initialize them. - Set each label in FORCED_LABELS to be at initial offsets. - Call set_label_offset on all insns that might involve labels. - Use GET_RTX_CLASS when appropriate. - (eliminate_regs, mark_not_eliminable): Ignore sets of FP when looking - for sets of a "to" register. - (eliminate_regs_in_insn): No longer suppress elimination for any - pair not at its initial offet at a jump. - - * combine.c (distribute_links): Correctly find the place to put a - link. Handle the case when we eliminate all uses of something that - we used to use; in that case, we must seach forward. - No longer need I3, I2, or ALL_ADJACENT arguments. - (try_combine): Change calls to distribute_links. - - * reload.c (find_equiv_reg): Use GET_RTX_CLASS when appropriate. - If GOAL is a MEM whose address varies, check whether registers - that are SET appear in the address rather than assuming they do. - Ensure REG_INC note is a REG; ignore it if not. - - * rtlanal.c (rtx_varies_p): Rework to use switch statement. - Check for {frame,arg}_pointer_rtx, not just register number. - (rtx_addr_can_trap_p): New function. - (may_trap_p): Use rtx_addr_can_trap_p instead of rtx_varies_p. - * genattrtab.c: Define {frame,arg,stack}_pointer_rtx for rtlanal.c. - - * combine.c (make_extraction): Make a ZERO_EXTRACT for something with - pos == 0 if it will be placed in a SET_DEST. - - * expmed.c (expand_shift): Rotate case was missing return statement. - extzv case had wrong arg to delete_insns_since. - Remove unneeded calls to delete_insns_since. - Allow BITS_BIG_ENDIAN to vary at run-time. - Use variable TEMP in a consistent manner. - Other miscellaneous changes and cleanups were made. - - * flow.c (max_uid_for_flow): New variable. - (flow_analysis): Compute maximum uid into max_uid_for_flow; if - we might have auto-inc, leave some space. - (find_auto_inc): Verify that the uid's of the insns we make are - within the allocated space of our per-insn tables. - Use get_insns instead of gen_sequence. - - * global-alloc.c (retry_global_alloc): When we allocate a register, - update regno_reg_rtx and mark the allocated register live. - (mark_elimination): New function. - * reload1.c (reload): Call mark_elimination for every elimination - we have been able to do. - (spill_hard_reg): No longer need to call mark_home_live. - -Sun Sep 22 02:07:55 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * fixincludes: Redirect cmp output to /dev/null; don't close it. - - * varasm.c (assemble_function): Handle ASM_OUTPUT_FUNCTION_PREFIX. - - * final.c (final_scan_insn): No need to goto text section - for label on jump table. We're normally in the text section. - -Sat Sep 21 14:59:32 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * make-cc1.com: Fix typo in code that decides if bison needs to be - run. Also, display a message when building the compiler that informs - the user about the need to update the assembler. - -Sat Sep 21 17:23:07 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * loop.c (struct movable): Add field DEPENDENCIES. - (scan_loop): Remove mechanism based on REG_TO_FORCE and - MOVABLE_TO_FORCE. Replace with use of new field. - Optionally allocate and initialize reg_single_usage and pass it to - count_loop_regs_set. - If an invariant register is used exactly once and this is a loop - that has a CALL_INSN, try to substitute the definition of the register - into its use. - (record_excess_regs): Fix typo in sense of checking in NOT_IN_THIS; - only check pseudo-regs. - (libcall_other_reg): Always return the list of registers used, - no matter how many there are. - (combine_movable): Only combine two movables if they have the same - dependencies. - (move_movables): Can only move something if its dependencies have - already been moved. - (find_single_use_in_loop): New function. - (count_loop_regs_set): Delete code that prevents moving a reg that - is used as a function address. - Call find_single_use_in_loop when required. - -Sat Sep 21 16:28:34 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * c-typeck.c (build_unary_op): - Handle const and volatile lvalues correctly in ADDR_EXPR. - - * output.h (current_function_contains_functions): - Just declare it, don't define it. - - * cse.c (exp_equiv_p): New arg EQUAL_VALUES. All callers changed. - -Sat Sep 21 12:59:15 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-parse.y (object_star): New rule. - (POINTSAT_STAR): New token. - * cplus-lex.c (init_lex): Define entry for MEMBER_REF. - GNU C++ now overloads `operator->*' according to ARM semantics. It - no longer attempts to implement operator->* as two distinct - operations. - -Fri Sep 20 18:08:07 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (subst): Don't replace a CC0 or a PC in a SET_DEST if - FROM is the same thing. - - * combine.c (simplify_shift_const): Compute SHIFT_MODE at start of - loop and use its width, rather than width of RESULT_MODE, when checking - shift count. - -Fri Sep 20 10:55:55 1991 Michael Tiemann (tiemann at cygnus.com) - - * cplus-pt.c (uses_template_parms): Handle COMPONENT_REF case. - -Fri Sep 20 00:27:43 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * c-typeck.c (build_modify_expr): When assigning to a cast, - convert value first to the type being cast to. - (build_unary_expr): Disallow adress of a cast. - - * explow.c (allocate_dynamic_stack_space): - Handle SETJMP_VIA_SAVE_AREA before rounding to STACK_BOUNDARY. - -Thu Sep 19 21:13:17 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * Makefile.in (dist, gcc-*.tar, gcc-*.tar.Z): New targets. - - * jump.c (jump_optimize): In handling `if (...) x = a; else x = b;', - don't crash if scan reaches start of insns. - - * Makefile.in (protoize): Link with getopt.o and getopt1.o. - (unprotoize): Likewise. - (protoize.o): Depend on getopt.h. Pass -D options for include dirs. - (unprotoize.o): Likewise. - (getopt.o, getopt1.o): New targets. - - * protoize.c: Major rewrite by RFG and RMS. - -Thu Sep 19 09:58:25 1991 Tom Wood (wood at dg-rtp.dg.com) - - Changes from Ron Guilmette: - * dwarfout.c: Keep track of next_block_number correctly. - * final.c (final_scan_insn): Don't invoke dwarfout_{begin,end}_block - for the outermost block of a function. - -Thu Sep 19 06:16:34 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload.c (copy_replacements): New function. - * optabs.c (gen_move_insn): Don't call gen_lowpart while reloading - is in progress; it calls change_address, which wants to make pseudos. - - * combine.c (subst, case SET): Fix typo in last change. - - * combine.c (distribute_notes): When searching back for a place that - uses a register marked REG_DEAD, check for set and reference separately - since reg_overlap_mentioned_p doesn't check SET_DEST. - - * combine.c (simplify_shift_const): Correct handling of shift counts - that become out-of-range. - - * combine.c (expand_field_assignment): Don't allow sharing the RTL - for the inner object. - - * combine.c (can_combine_p, try_combine, record_value_for_reg): Use - reg_overlap_mentioned_p instead in reg_mentioned_p in most places. - (distribute_notes, distribute_links): Likewise. - (combinable_i3pat): New function, from try_combine. - (try_combine): Default I1DEST and I1SRC to zero. - New var I1_FEEDS_I3. - Delete code to validate I3's pattern from here; call combinable_i3pat - instead. - If a substitution returns a (clobber (const_int 0)), stop immediately. - Don't abort if substitution made new regs; just don't do combine. - (subst): If IN_DEST, don't replace a matching object. - Don't look at a REG as a SET_DEST. - If substitution inside a PARALLEL fails, give up immediately. - Return (clobber (const_int 0)) even for a SET whose operand fails. - (subst, case SET): Correctly test for low-order SUBREG. - Don't use gen_lowpart_for_combine; make SUBREG explicitly since it - can't handle modes larger than a word. - - * combine.c (subst, case NOT): Code for (not (ashiftx ..)) was too - general; only handle (not (ashift 1 X)). - (subst, case NEG): Handle (neg (ashift ...)). - (merge_outer_ops): Support NEG. - (simplify_shift_const, case NEG): Handle (ashift (neg ...)). - - * cse.c (simplify_binary_operation, case ROTATE, ROTATERT): - Rotating all one bits is just all ones. - -Thu Sep 19 01:08:14 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-parse.h, cplus-decl.h: Remove trailing comma after the last - enum value in enum declarations. - - * cplus-type2.c (digest_init): Set TREE_PURPOSE of union initializer - when initializing a union by the first field. - - * cplus-method.c (fndecl_as_string): Test whether DECL_CLASS_CONTEXT - is NULL before using it. - (dump_aggr_type): New function. Print aggr type's context when - appropriate. - (dump_type{_prefix}): Use `dump_aggr_type' to print ENUMERAL_TYPE, - UNION_TYPE, and STRUCT_TYPE types. - - * cplus-decl.c (start_decl): Don't use DECL_CLASS_CONTEXT if DECL - has no DECL_LANG_SPECIFIC. - -Wed Sep 18 21:46:32 1991 Michael Meissner (meissner at osf.org) - - * mips-tfile.c (cur_proc_value): New static to remember the starting - location of the current function. - (add_procedure): Save current procedure location. - (parse_begin, parse_bend): Subtract cur_proc_value from location. - (parse_bend): Correct error messages. - The above changes are from bothner@cygnus.com. - - * tm-mips.h (ASM_FINAL_SPEC): Use -mno-mips-tfile to suppress - invoking mips-tfile, instead of using -g0. If -save-temps, preserve - the original .o file before mips-tfile is called. Pass the correct - name for the assembler file. - (MASK_MIPS_TFILE): New mask for -mmips-tfile, -mno-mips-tfile, set - to 0, since that switch is handled entirely in ASM_FINAL_SPEC. - (TARGET_FLAGS): Add -mmips-tfile, -mno-mips-tfile switches. - (MUST_SAVE_REGISTER): Allow $30 to be saved, even if not being used - as the frame pointer. - - * tm-decrose.h (ASM_FINAL_SPEC): Use -mno-mips-tfile to suppress - invoking mips-tfile, instead of using -g0. If -save-temps, preserve - the original .o file before mips-tfile is called. Pass the correct - name for the assembler file. - -Wed Sep 18 18:54:15 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-*.c: Use DECL_CLASS_CONTEXT to figure out where a (static or - non-static) member function is declared, rather than trying to - divine the info from TYPE_METHOD_BASETYPE of the function's type. - -Wed Sep 18 15:38:52 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-decl.c (grokdeclarator): Error if nested function is extern. - -Wed Sep 18 02:41:08 1991 Per Bothner (bothner at cygnus.com) - - * cplus-typeck.c (convert_arguments): Don't crash if the - formal parameter type is unknown (type==NULL) and the - actual is a function. Do the default instead. - -Tue Sep 17 22:33:30 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-typeck.c (check_format): - No warning if types match except for signedness. - -Tue Sep 17 10:56:46 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-decl.c (pushtag): When creating a TYPE_DECL that's in class - scope, allocate the space needed for DECL_CLASS_CONTEXT. - - * cplus-search.c (get_abstract_virtuals): If the BASE is not on the - main spine, look at the virtuals that come from the most derived - class that has BASE on its main spine. - * cplus-tree.h (VF_*): New macros for dealing with VFIELDS. - -Mon Aug 16 12:09:32 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * make.com: Fix typo. - -Tue Sep 17 15:13:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-common.c (shorten_compare): Always compute args with side effects. - - * varasm.c (decode_addr_const): Use SYMBOL_REF unchanged in 1st switch. - - * varasm.c (output_addressed_constants): Handle a CONSTRUCTOR in - an ADDR_EXPR correctly. + * sparc.c (registers_ok_for_ldd_peep, addrs_ok_for_ldd_peep): + Functions renamed from registers_ok_for_ldd and + memory_ok_for_ldd respectively. All callers changed. + (register_ok_for_ldd): New function to determine if a register is + a pseudo or the first register in a hard register pair. + (mem_aligned_8): No longer static. Return 0 instead of aborting + when presented an rtx which is not a MEM. + (eligible_for_epilogue_delay): Use in_uncond_branch_delay since + this in an unconditional branch. - * cccp.c (rescan): For unterm string, mention lineno of first newline. - - * fold-const.c (fold): Call optimize_bit_field_compare in constant case - even if not optimizing. - - * c-decl.c (finish_function): Don't clear DECL_INITIAL if nested. - (pop_c_function_context): Do it here instead. - -Tue Sep 17 11:30:32 1991 Michael Meissner (meissner at osf.org) - - * collect-osf.c (scan_prog_file): Recognize alternate forms for the - constructor and destructor names. - - * osf-main.c (_entry): Provide an alternative function (_entry) to - start up the static constructors/destructors. - -Mon Sep 16 05:35:21 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (simplify_shift_const): Correct errors involving modes - to use for shift. - -Sun Sep 15 19:13:58 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * reload1.c (reload_as_needed): Remove code that deletes insns that - create equivalences. - (reload): Put it here so it is executed even if reload_as_needed - isn't called. - -Sun Sep 15 17:13:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * Makefile.in (GNULIB2_CFLAGS): Include GCC_CFLAGS. - (ENQUIRE_CFLAGS): Likewise (in place of plain CFLAGS). - - * genattrtab.c (main): Don't index by id->insn_code if negative. - - * genrecog.c (write_tree_1): Avoid pos[depth-1] if depth is 0. - -Sun Sep 15 15:19:16 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * make.com: Modify to allow direct submission to a batch queue. - Also, add instructions to build GNU C++ as well as GNU CC. - - * cccp.c (hack_vms_include_specification): If [000000] is present in - (implying a physical device or a rooted logical) try to open it. - If the open fails, then remove the [000000] (making the name suitable - for use with a non-rooted logical name) and return that. - -Sun Sep 15 15:12:41 1991 Michael Meissner (meissner at osf.org) - - * make-mips (Makefile): Remove rule building Makefile, since - Makefile.in now has one. + * sparc.h (EXTRA_CONSTRAINT) Add new 'T' and 'U' constraints + which check for aligned accesses to memory and register pairs. - * make-decrose (Makefile): Remove rule building Makefile, since - Makefile.in now has one. +Wed Jul 22 11:22:37 1992 Michael Meissner (meissner@osf.org) -Sun Sep 15 14:12:47 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * mips.h (MIPS_VERSION): Bump meissner version number to 22. + (extern declarations): Add declarations for asm_file_name, + call_used_regs, langguage_string, save_argv, version_string, + mips_{begin,end,expand}_{pro,epi}logue, simple_epilogue_p, + {address,const_{double,int},general,{,non}immediate}_operand, + memory_address_p, {{,non}memory,register,scratch}_operand, + abort_with_insn, debug_rtx, fatal_io_error, get_frame_size, + offsettable_address_p, output_address, permalloc, + reg_mentioned_p, abort, atoi, getenv, mktemp, and + mips_expand_{epi,pro}logue. + (*_REGNUM): Add in GP_REG_FIRST in case registers are ever + renumbered. + (struct mips_frame_info): Add num_gp, num_fp fields. + (SECONDARY_MEMORY_NEEDED): Define, return 1 unless -mdebugh if + moving between FP <-> GP registers. + + * mips.c (extern declarations): Move most of the declarations to + mips.h, except for those of type 'rtx' or 'tree', since not all + files include rtl.h and tree.h. Add more declarations for gen_xxx + functions that are now used. + (reg_or_0_operand): Add default case for switch on enumeration, to + allow compiling with -Wall. + (simple_memory_operand): Ditto. + (mips_count_memory_refs): Ditto. + (mips_move_1word): Ditto. + (mips_move_2words): Ditto. + (mips_address_cost): Ditto. + (map_test_to_internal_test): Ditto. + (mips_move_1word): Align asm comments in loading negative ints. + (mips_move_1word): Use GEN_INT macro to generate CONST_INT's. + (mips_move_2words): Ditto. + (gen_int_relational): Ditto. + (block_move_load_store): Ditto. + (block_move_loop): Ditto. + (expand_block_move): Ditto. + (block_move_load_store): #if 0, not currently used. + (block_move_sequence): Ditto. + (compute_frame_size): Fill in num_gp and num_fp fields. + (simple_prologue_p): Rename from null_prologue. + (save_restore_insns): New function to emit appropriate save and + restore operations for prologue/epilogue -- only prologue used at + present. + (function_prologue): Move generation of instructions to + mips_expand_prologue. + (mips_expand_prologue): Generate appropriate insns for the + prologue of the function. + (mips_expand_epilogue): Generate appropriate insns for the + epilogue of the function -- not called at present. + + * mips.md (ashldi3_internal): Add `&' constraint to operand 0. + (ashrdi3_internal): Add `&' constraint to operand 0. + (return): Turn this into a define expand that wraps a return and a + USE reg:31 inside of a parallel. + (return_internal): Insn form of return instruction. + (prologue): New define expand to generate the necessary + instructions for the function prologue. + (mov{si,hi,qi}): Split the integer move INSNs into two groups, + those that support -mdebugh and allow ints to be in floating + point registers, and those that don't allow it. + +Tue Jul 21 21:27:43 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) + + * Complete 9th Cygnus <---> FSF merge. + + Tue Jul 21 03:17:05 1992 Mark Eichin (eichin@cygnus.com) + + * cp-lex.c (process_next_inline): when bailing out on a parse error, + throw away nextchar as well in case it got set. + + Tue Jul 21 05:31:10 1992 Ken Raeburn (raeburn@cygnus.com) + + * cp-pt.c (tsubst, case FUNCTION_DECL): If the context class has a + null method vector, don't look inside it for its size. + + Thu Jul 16 16:02:55 1992 Per Bothner (bothner@rtl.cygnus.com) + + * cp-typeck.c (convert_for_assignment): If assigning (void*) + to a normal pointer, emit a warning, not an error. There is + a lot of existing code (including libg++ and converted C + code) that expects to be able to assign from (void*). + + Tue Jul 14 06:59:38 1992 Michael Tiemann (tiemann@rtl.cygnus.com) + + * cp-decl.c (finish_function): Call destructors correctly when + baseclasses are replicated in the inheritance hierarchy. + + Mon Jul 13 05:16:10 1992 Michael Tiemann (tiemann@rtl.cygnus.com) + + * cp-typeck.c (build_modify_expr): If we split a COND_EXPR in order + to perform the assignment in each arm, convert the rhs of each + branch according to RESULT_TYPE. + + * cp-typeck.c (convert_for_assignment): Treat null_pointer_node + specially when converting to non-void pointers. + + * cp-class.c (modify_vtable_entries): In the loop that modifies + vtable entries for each non-virtual baseclass, correctly handle + cases where BASE is an ambiguous baseclass for BASE_CONTEXT. + + Sun Jul 12 01:32:31 1992 Mike Stump (mrs@cygnus.com) + + Wed May 27 01:33:24 1992 Ron Guilmette (rfg at ncd.com) + + * cp-type2.c (store_init_value), cp-typeck.c + (build_modify_expr, convert_arguments, + build_binary_op_nodefault, convert_for_assignment), cp-parse.y + (member_init, template_def, datadef, stmt): changed some + pedantics into !traditionals and reworded error messages. - * Makeflags (SYSCALLS.c.X): Use CPPFLAGS and INCLUDES. + Sun Jul 12 01:11:53 1992 Mike Stump (mrs@cygnus.com) -Sun Sep 15 12:03:35 1991 Michael Tiemann (tiemann at cygnus.com) + Jul 1992 Ron Guilmette (rfg at ncd.com) - * cplus-decl.c (poplevel): Match change made to c-decl.c on Oct 3, - 1989. - -Sun Sep 15 06:52:42 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * caller-save.c (save_call_clobbered_regs): Deaden registers mentioned - in REG_UNUSED notes. - (clear_reg_live): Verify that note refers to a REG. - (choose_hard_reg_mode): Rewrite to not use specific modes and to - handle the case where separate CCmode registers exist. - -Sat Sep 14 13:03:29 1991 Michael Tiemann (tiemann at cygnus.com) - - * all cplus-* files: Change {ASSOC,assoc} to {BINFO,binfo} where - appropriate. - cplus-tree.h, tree.h: Change name of CLASSTYPE_ASSOC to TYPE_BINFO. - Change names of CLASS_ASSOC_* to TYPE_BINFO_*. - all cplus-* files: FUNCTION_DECLs that are class methods now have - their DECL_VCONTEXT stored in the DECL_CONTEXT. - (lang_decl): The VCONTEXT field is now gone. - (lang_decl): _DECL nodes in class scope now record the class as a - context in the DECL_CLASS_CONTEXT field. - tree.h (TYPE_BINFO): Renamed TYPE_BASETYPES to this. - dbxout.c (dbxout_type): User of TYPE_BASETYPES changed. - (BINFO_{VALUE,OFFSET,VTABLE,VIRTUALS,BASETYPE{S}}): New macros - inherited from GNU C++. - (DECL_{VINDEX,FCONTEXT}): Ditto. - (TREE_VIA_{PUBLIC,VIRTUAL}): Ditto. - -Sat Sep 14 09:14:26 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * rtlanal.c (reg_set_p): Remove abort for MEM; reg_overlap_mentioned_p - now handles that case correctly. - REG is set if it is really a MEM and this is a CALL_INSN. - -Sat Sep 14 01:34:39 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * configure (vax-ultrix*): New alternative. - - * reload1.c (choose_reload_regs): Always ignore cancelled reloads. - - * real.h (atof): Alternate declaration on MIPS. - -Thu Sep 12 18:55:06 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) - - * optabs.c (expand_binop): Fix carry propagation code for multiple - words. - - * tm-*.h: Fix systematic typo in comment. - -Thu Sep 12 18:23:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * gvarargs.h, va-mips.h, va-sparc.h (_va___list): Was __va_list. - -Thu Sep 12 12:53:36 1991 Roland H. Pesch (pesch at cygint.cygnus.com) - - * cpp.texinfo: (titlepage) use @title/@subtitle/@author - (copyright page) add note re future C manual; add 1991 to copyrights - (general) prepare for easy @smallbook formatting; clarification on - strings; less passive; add AMD29K predefined macros; update -d refs, - add -dM; add examples; add -pedantic-errors; add -MD, -MMD, -H; fix - minor typos. - -Thu Sep 12 07:58:11 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) - - * m68k.md (umulsidi3, mulsidi3): New DEFINE_EXPANDs and DEFINE_INSN - recognizers. - -Wed Sep 11 22:11:17 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * a29k.md, romp.md: Update calling sequence to emit_no_conflict_block. - -Wed Sep 11 21:06:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * fold-const.c (const_binop): Fix last change for ceil and round. - - * gvarargs.h, va-mips.h, va-sparc.h (va_list): Now a macro again. - (__va_list): This is the typedef. - -Wed Sep 11 16:52:20 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * c-typeck.c (build_binary_op_nodefault, RSHIFT_EXPR): Change - "shift count" warnings changed to errors back to warnings. - - * cse.c (canon_hash): Also do not record global_regs if - SMALL_REGISTER_CLASSES. Makes the code match the comment. - - * cexp.y (yylex): Add sprintf call to create error message, - because yyerror does not call *printf itself. - - * gcc.c (default_compilers): Support new option -traditional-cpp, - which passes traditional to cpp, but not to cc1. - * gcc.texinfo: Document it. - - * sched.c (INSN_LUID): New variable. Give instructions logical - numbers, which can be used when sorting, to make the scheduling - algorithm more stable. - (sched_analyze): Initialize it. - (rank_for_schedule): Sort on it. - (schedule_insns): Alloca(te) it and (b)zero it. - (priority): New priority algorithm. Don't include latency of - current insn, and subtract one from total priority calculated. - Makes the scheduling algorithm more stable, and doesn't hurt - performance. - - * sched.c (swap_sort): Must pass &insn to rank_for_schedule, not a - pointer into the array being sorted. - - * cplus-lex.c (do_identifier): Put function return type on - preceeding line. - -Wed Sep 11 05:51:00 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-typeck.c (build_binary_op_nodefault): If OP0 or OP1 is a - zero pointer, canonicalize it to NULL_POINTER_NODE. - - * expr.c (preexpand_calls): Don't preexpand calls inside a - WITH_CLEANUP_EXPR. The gestalt of a WITH_CLEANUP_EXPRs must be - understood at the top level. - - * cplus-tree.c (build_cplus_new): When building cleanup, make - the call to the cleanup nonvirtual. - -Tue Sep 10 20:28:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * fold-const.c (const_binop): Shortcut for dividing single-word - sizes - - * Makefile.in (varasm.o): Depend on insn-codes.h. - -Tue Sep 10 19:29:26 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * optabs.c (expand_binop): Try to open-code muldi3 if we have mulsi3 - and mulsidi3. Idea due to tege@sics.se. - - * cse.c (fold_rtx, case MEM): Don't call find_best_addr when insn == 0. - Pass 0 to recursive call that tries to fold the address. - -Tue Sep 10 18:16:16 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * m68k.md (fix_trunc*): Call CC_STATUS_INIT, since these patterns - do not leave the condition codes in the expected state. - - * tm-ultrix.h (CPP_PREDEFINES): Add __vax. - -Tue Sep 10 04:12:53 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-decl.c (finish_function): Set BLOCK_SUPERCONTEXT for the + outermost scopes of functions to point to the associated + FUNCTION_DECL nodes. - * cplus-decl.c (finish_decl): Fix bug where the conversion from - WITH_CLEANUP_EXPR -> init/cleanup pair was not setting bits of - CURRENT_BINDING_LEVEL. - (init_decl_processing): Set FLAGS_THIS_IS_VARIABLE before calling - `init_exception_processing'. + Fri Jul 10 17:52:36 1992 Ken Raeburn (raeburn@cygnus.com) -Mon Sep 9 22:09:27 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-decl.c (struct binding_level): New field pseudo_global + indicates that this binding level should be treated like the global + binding level in some respects. + (declare_pseudo_global_level, pseudo_global_level_p): Set and test + routines. + (push_overloaded_decl): Don't forget overloads in pseudo-global + binding levels. + * cp-pt.c (tsubst, case FUNCTION_DECL): Search for an existing decl + before creating a new one. + (overload_template_name): Make new level pseudo-global. + (type_unification): Indicate failure for unknown_type_node. + (unify): Likewise. - * cplus-tree.h (prev_class_type): Delete this bogus definition. + Wed Jul 8 01:59:03 1992 Mike Stump (mrs@cygnus.com) - * cplus-class.c (instantiate_type): Don't complain about no static - member functions being found until we have been through all the - baselinks. + * cp-decl.c (lookup_name, grokvardecl, grokdeclarator), + cp-call.c (build_field_call), cp-seach.c (lookup_field), + cp-typeck.c (build_component_ref), cp-lex.c (do_identifier), + cp-init.c (expand_member_init, build_member_call, + build_offset_ref): lookup_field now has 4 arguments. - * cplus-dbxout.c (dbxout_type_methods): Don't write symbol - information about methods that were generated by the compiler. - (??? Is this really the right thing to do?) + Wed Jul 8 01:14:43 1992 Mike Stump (mrs@cygnus.com) - * cplus-decl2.c (lang_decode_option): Turn on warn_uninitialized if - -Wall is the argument. + * cp-parse.y (primary): Call to lookup_name needs 2 arguments. -Mon Sep 9 19:05:01 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + Tue Jul 7 21:14:05 1992 Mike Stump (mrs@cygnus.com) - * gcc.c (default_compilers): For .S files, pass -traditional not - -ftraditional to cpp. + * cp-method.c (build_overload_name): Handle INTEGER_TYPEs + cleanly and uniformly. -Mon Sep 9 15:01:58 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Tue Jul 7 09:19:52 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * fold-const.c (optimize_bit_field_compare): Distinguish NE from EQ. + * cp-call.c (build_method_call): If `convert_to_pointer' returns + error_mark_node, return that without doing any more work. - * explow.c (allocate_dynamic_stack_space): - Handle SETJMP_VIA_SAVE_AREA by allocating extra space. + Thu Jul 2 15:42:28 1992 Mike Stump (mrs@cygnus.com) - * cplus-parse.y (empty_parms): Change inline to __inline. + Thu Jul 2 18:08:42 1992 Chip Salzenberg (chip at tct.com) -Mon Sep 9 15:16:24 1991 Torbjorn Granlund (tege at zevs) + * cp-typeck.c (convert_arguments): Don't assume that error + message will be short enough for fixed-length buffer. - * longlong.h (m68000 umul_ppmm): Clobber one register less by - slightly rearranging the code. + Wed Jul 1 19:52:59 1992 Mike Stump (mrs at cygnus.com) -Sun Sep 8 16:47:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Wed Jun 3 12:57:57 1992 Brendan Kehoe (brendan@cs.widener.edu) - * cccp.c (main, fatal): Delete the deps output file if error. - (deps_file): New variable. + * cp-decl2.c (grokbitfield): Only do width checking on properly + parsed bitfields. - * expr.c (convert_move): Update call to emit_no_conflict_block. + Wed Jul 1 18:58:17 1992 Mike Stump (mrs at cygnus.com) - * expmed.c (CEIL): New macro. + Wed May 27 01:33:24 1992 Ron Guilmette (rfg at ncd.com) - * optabs.c (expand_binop): Don't do add by words for more than 2 words. + * cp-lex.c (readescape), cp-parse.y (unary_expr, maybecomma_warn, + component_decl_list, stmt), cp-type2.c (digest_init), cp-typeck.c + (c_sizeof, build_function_call_real, convert_arguments, + build_binary_op_nodefault, pointer_int_sum, pointer_diff, + build_unary_op, c_expand_return): change some warnings to + pedwarns. Put in new pedwarns, change wording of messages so that + they are more readable. Don't issue some warnings when + traditional is given. - * c-typeck.c (build_modify_expr): Test TREE_READONLY of lhs. + Wed Jul 1 13:56:30 1992 Mike Stump (mrs at cygnus.com) -Sun Sep 8 01:17:47 1991 Torbjorn Granlund (tege at zevs) + Wed Apr 29 23:37:00 1992 Niklas Hallqvist (niklas at appli.se) - * sparc.md (sgtu, sleu): Test for SUBREG as well as REG. + * cp-decl.c (finish_decl): make sure destructors are called for + objects in a file. -Sun Sep 8 07:04:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Jul 1 11:12:05 1992 Mike Stump (mrs at cygnus.com) - * optabs.c (emit_no_conflict_block, emit_libcall_block): Rework to - accept a list of insns rather than a SEQUENCE. - (expand_binop, expand_unop, expand_float, expand_fix): Change calls to - above functions. - * emit-rtl.c (add_insn): No longer static. - * calls.c (expand_call): Change call to emit_libcall_block. + * cp-lex.c: extract YYEMPTY out of the parser generated .c + file and put in the parser .h so that cp-lex.c does not have + to define it. - * cse.c (fold_rtx): Fix typo with parens in associative operation case. + Mon Jun 29 12:58:59 1992 Mike Stump (mrs at cygnus.com) -Sat Sep 7 21:49:46 1991 Jim Wilson (wilson at cygint.cygnus.com) + Mon Jun 29 15:20:48 1992 Chip Salzenberg (chip at tct.com) - * expmed.c (store_bit_field): In the code handling bitfields - larger than the word size: set fieldmode to size large enough - to hold bitfield; new variable orig_bitsize; don't let - bit_offset calculation for WORDS_BIG_ENDIAN hosts go negative. - (extract_bit_field): Likewise. - (store_split_bit_field): For second word, strip of SUBREG if any - before calling operand_subword. Offset for second word if in - memory is the next UNITS_PER_WORD aligned address. - (extract_split_bit_field): Likewise. + * cp-cvt.c (convert_to_integer): Don't add a NOP_EXPR in cases + where we can simply change the type of the entire tree. - * expr.c (emit_move_insn): When emitting multiple move insns in - the loop, remember last insn emitted so that it can be returned. + Mon Jun 29 10:56:56 1992 Mike Stump (mrs at cygnus.com) - * tree.c (enum tree_node_kind): Add new entry vec_kind to - represent TREE_VECs. - (tree_node_kind_names): Add name "vecs" for it. - (make_node): Handle TREE_VECs in the 'x' case. - (make_tree_vec): Use vec_kind instead of x_kind. + * c++: Makes sure -lg++ comes before -lm since libg++ uses + things from libm. -Sat Sep 7 16:25:50 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + Mon Jun 22 13:47:42 1992 Mike Stump (mrs at cygnus.com) - * cplus-call.c (ideal_candidate): Prefer non-const member functions - to const member functions when there is a choice. - * cplus-tree.c (propagate_assoc_offsets): Moved here from - cplus-class.c - (copy_nonvirtual_children): Deleted. + Sun Jun 21 14:06:41 1992 Brendan Kehoe (brendan at cs.widener.edu) - * cplus-class.c, cplus-tree.c (layout_{v}basetypes, - propagate_assoc_offsets, finish_base_struct): New offset - computation/hierarchy implementation. Now the lattice contains - vbasetypes with zero-based offsets (and children from these types - assume they are zero-based). The CLASSTYPE_VBASETYPE list contains - vbasetypes with hierarchy-dependent offsets (and children from these - types have hierarchy-dependent offsets). Note that now, virtual - baseclasses are fully shared in the hierarchy. The still are not - shared at all in the CLASSTYPE_VBASETYPE list. - * cplus-decl.c (xref_tag): Share vbasetypes in the lattice. - * cplus-tree.h (lang_type): Add CLASSTYPE_VASSOC field so we can - share virtual basetypes in inheritance lattices. + * cp-typeck.c (convert_for_initialization): Only try to convert a + rhs that was parsed properly. -Sat Sep 7 13:07:12 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Jun 22 13:31:40 1992 Jim Wilson (wilson at sphagnum.cygnus.com) - * c-parse.y (cast_expr): Supply OFWHAT arg to digest_init. - * c-typeck.c (error_init, pedwarn_init): New functions. - (digest_init, process_init_constructor): Use them. + * cp-parse.y (primary): Clear the TREE_USED flag of a block tree + put in a BIND_EXPR. - * out-m68k.c (output_function_prologue): Add a negative constant - to sp rather than adding a positive one, since this is faster. + Sun Jun 21 09:59:58 1992 Michael Tiemann (tiemann at rtl.cygnus.com) - * out-m68k.c (output_function_prologue, output_function_epilogue): - Use word sized immediates when possible. + * cp-type2.c (build_scoped_ref): Use SCRATCH for head of typelist, + rather than calling alloca. - * Makefile.in (install-dir): Don't die if can't create mandir. - (install-man): Don't put . in front of manext. - (manext): Add . to the value. - (mandir): Don't use manext. + Fri Jun 19 16:23:02 1992 Mike Stump (mrs at cygnus.com) - * genextract.c (main): Don't use __builtin_memcpy in GCC 1. + * cp-pt.c (unify): Type unification of things that do not have a + valid IDENTIFIER_TEMPLATE fail instead of core dumping. -Fri Sep 6 19:29:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Jun 17 13:36:04 1992 Michael Tiemann (tiemann at rtl.cygnus.com) - * caller-save.c (emit_mult_save, emit_mult_restore): Copy constant to - TEMPREG and add integer, instead of the opposite order, which might - not work on some machines. + * cp-pt.c (tsubst): Don't try to substitute into error_mark_node. - * fold-const.c (fold): Ensure we always return an object of the - desired type. + * cp-decl.c (grokparms): Convert initializers that have + TREE_READONLY_DECL_P set into their constant equivalents. - * reload1.c (reload, reload_as_needed): reload_in_progress must be - set during caller-save processing. + Tue Jun 16 19:09:23 1992 Mike Stump (mrs at cygnus.com) -Fri Sep 6 18:36:55 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + Wed Jun 3 12:57:57 1992 Brendan Kehoe (brendan at cs.widener.edu) - * out-sparc.c (leaf_reg_{remap,backmap}): Define mapping for - %o7/%i7, since user-defined registers might reference these. - (legitimize_pic_address): Set CURRENT_FUNCTION_USES_PIC_OFFSET_TABLE - if ORIG is a LABEL_REF. For CONST_INT case, don't call force_reg - during reload, use REG if available otherwise abort. + * cp-decl.c (grokdeclarator): Disallow virtual functions in unions. -Fri Sep 6 17:16:05 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Tue Jun 16 18:11:45 1992 Mike Stump (mrs at cygnus.com) - * configure: Default $cpu_type properly. + Wed Jun 3 12:57:57 1992 Brendan Kehoe (brendan at cs.widener.edu) -Fri Sep 6 05:50:58 1991 Ken Raeburn (raeburn at watch.com) + * cp-class.c (finish_struct): Forbid local classes to have static + members. - * genextract.c: Generate one large function with a switch, instead - of a table of small functions to call. Use __builtin_memcpy under - GNU C. + Mon Jun 15 21:44:08 1992 Mike Stump (mrs at cygnus.com) - * genoutput.c: For "@" constructs, now generates a lookup table per - insn, instead of a switch. + Tue Jun 2 09:26:34 1992 Brendan Kehoe (brendan at cs.widener.edu) -Fri Sep 6 15:40:54 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-init.c (build_new): Don't allow the use of new on a reference. - * cccp.c (skip_if_group): Deal with invalid directives the same - way handle_directive does. + Mon Jun 15 20:52:08 1992 Mike Stump (mrs at cygnus.com) -Fri Sep 6 16:37:04 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + Tue Jun 2 09:26:34 1992 Brendan Kehoe (brendan at cs.widener.edu) - * tm-sparc.h (RTX_COSTS): Define costs for MULT and various divides. + * cp-decl.c (grokparms): Don't allow a local variable to be used + in a default argument expression. - * loop.c (move_movables): Call `gen_lowpart_common' instead of - building SUBREG manually. + Mon Jun 15 18:54:28 1992 Mike Stump (mrs at cygnus.com) - * local-alloc.c (block_alloc): When convert scratch to a reg, must - set regs_ever_live for all hard registers used by the new reg, not - just the first. + * cp-decl.c (finish_decl): Add an error message for uninitialized + const objects like const int a;. -Fri Sep 6 07:15:44 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) + Mon Jun 15 16:05:22 1992 Mike Stump (mrs at cygnus.com) - * gnulib2.c (__negdi2): Change it to work like __subdi3. - * gnulib2.c (_udivmoddi4): Make faster special case for CPUs with - a udiv_qrnnd that can handle unnormalized (i.e. with less than - LONG_TYPE_SIZE significant bit) divisors. + Not sure if it is strictly necessary for the C++ front end, but... - * gnulib2.c (__muldi3): Cast operands to unsigned. + Sun May 31 15:31:46 1992 Brendan Kehoe (brendan at cs.widener.edu) - * gnulib2.c (__Xcmpdi): Use `long' for all variables for - consistency. + * cp-typeck.c (self_promoting_args_p): Allow the arg type to be + null (copied from Oct 16, 1991 change by Wood). - * gnulib2.c (__udivmoddi4): New function with code from __udivdi3, - extended to give remaider. - * gnulib2.c (__divdi3, __moddi3, __udivdi3, __umoddi3): Use - __udivmoddi4. - * gnulib2.c: (__moddi3): Result sign is only dependent on U, not V. - -Fri Sep 6 05:44:07 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (cse_insn): Accept new arg IN_LIBCALL_BLOCK. - If in libcall block, don't record destinations in hash table. - Remove explicit use of SFmode and DFmode when checking -ffloat-store. - (cse_basic_block): Pass new arg to cse_insn to indicate when we - are processing an insn surrounded with REG_LIBCALL/REG_RETVAL notes. - - * optabs.c (emit_libcall_block): New function. - (expand_binop, expand_unop): Remove kludge of referencing library - function SYMBOL_REF before libcall block. - Use emit_libcall_block. - (expand_float, expand_fix): Rework library calls to use - emit_libcall_block. - * calls.c (struct arg_data): Add new field, initial_value. - (expand_call): Don't make libcall block for calls that return - aggregates. - Remove kludge of referencing function SYMBOL_REF outside of block. - For constant calls, save RTL for arg in args[i].initial_value and - start a sequence. - When making REG_EQUAL note, use INITIAL_VALUE instead of VALUE. - Use emit_libcall_block for constant calls. - * expr.h (emit_libcall_block): Define it. - -Fri Sep 6 15:58:52 1991 Torbjorn Granlund (tege at zevs) - - * longlong.h (68020, i386): Don't define machine-dependent - __umulsidi3 (so the default definition is used). - * longlong.h (all machines): Cast all operands, sources and - destinations, to `unsigned long int'. - * longlong.h: Add gmicro support. - -Fri Sep 6 01:42:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * jump.c (jump_optimize): Delete duplicate line number notes. - -Thu Sep 5 19:23:24 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Jun 12 16:42:05 1992 Mike Stump (mrs at cygnus.com) - * configure (romp): Fix typo in name of xm_file. + * cp-typeck.c (build_binary_op_nodefault): Conditionalize code that + deals with the comparison of non-distinct object types, thus avoiding + a core dump. - * rtlanal.c (dead_or_set_p): If INSN has a CLOBBER for X, X is - dead. + Fri Jun 12 10:23:17 1992 Mike Stump (mrs at cygnus.com) - * gnulib1.c (cmpdf2, cmpsf2): Delete unused functions. - * gnulib2.c (anddi3, iordi3, xordi3, one_cmpldi2, adddi3, subdi3): - Likewise. - * optabs.c (emit_cmp_insn): Clean up code now that integer and - float comparisons are done differently. - (init_optabs): Remove references to unused functions listed above. - * Makefile.in (LIB1FUNCS, LIB2FUNCS): Likewise. + Wed Jun 10 19:20:29 1992 Brendan Kehoe (brendan at cs.widener.edu) -Thu Sep 5 18:32:27 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-tree.c (break_out_calls): Begin at 1 less than the length of + the length of the tree code, not the length itself, for generic + expressions and those with side-effects. - * m68k.md (zero_extend*): Don't allow memory-memory due to aliasing. + Thu Jun 11 17:43:55 1992 Mike Stump (mrs at cygnus.com) - * expr.c (do_jump): Don't lose if only 1 insn precedes new jump. + * cp-init.c (expand_default_init): New function to handle the + details of default copy constructors and other magic in one place. - * sparc.md (ashldi3): Fix dumb bug detecting constant 1. + * cp-init.c (expand_aggr_init_1): Implement default constructors + more fully. - * out-sparc.c (output_move_double): Use split_double for constant. - Properly decrement addreg1. + Thu Jun 11 17:16:54 1992 Mike Stump (mrs at cygnus.com) -Thu Sep 5 15:20:25 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-call.c (build_method_call): Don't produce an error message if + we are looking up things speculatively. - * out-sparc.c: Include expr.h and delete extern declarations. + Thu Jun 11 10:58:47 1992 Mike Stump (mrs at cygnus.com) - * rtlanal.c (rtx_equal_p): Correct typo in comment or spacing. - * reload1.c (reload): Likewise. - * protoize.c: Likewise. - * longlong.h: Likewise. - * local-alloc.c (block_alloc): Likewise. - * jump.c: Likewise. + * cp-call.c (convert_harshness): Penalize const arguments passed + into non-const parameters. - * unroll.c (iteration_info): Don't calculate loop iterations based - on a giv iterator, since the current code often gives the wrong - result. This case is rare, so it does not seem worth handling at all. + Thu Jun 11 10:02:52 1992 Mike Stump (mrs at cygnus.com) - * sched.c (schedule_insns): When the only sched pass is after - reload, must clear unused_insn_list and unused_expr_list then, - instead of during the nonexistant pass before reload. + * cp-typeck.c (build_c_cast): Implement more reference casts so + that one can cast a base reference to a derived reference. - * sched.c (schedule_block): When calculating estimated IPC, avoid - divide by zero. +Tue Jul 21 15:28:36 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * sparc.md: Correct two define_splits for seq/sne patterns of the - form `x + (i == 0)', and add a missing `addx' pattern used by - these define_splits. + * sparc.h (SECONDARY_MEMORY_NEEDED): Define to force reload to + handle any copy between GENERAL_REGS and FP_REGS. - * toplev.c (fatal_insn_not_found): Correct typo in error message. - (main): Include "gsdb" and "gdbx" in warning message when -g is not - supported. + * sched.c (schedule_block): Give some insns high priorities, + instead of excluding them from scheduling, to ensure that they end + up at the end of the block after scheduling. - * expr.h (enum expand_modifier): Delete last vestige of - EXPAND_INTO_STACK. + * i960.c (i960_output_ldconst): Use REAL_VALUE_FROM_CONST_DOUBLE + instead of pointer indirection to extract double from CONST_DOUBLE. -Thu Sep 5 13:50:21 1991 John Gilmore (gnu at cygint.cygnus.com) +Tue Jul 21 14:05:34 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-typeck.c (digest_init, process_init_constructor): Include the - variable name, member name, and/or array indices in error messages. - This makes it tolerable to debug large data structure initializers. - Reword some messages to work with the name and/or function call - argument included. New arg OFWHAT. All callers changed except - one digest_init call in each of c-parse.y and objc-parse.y. - (warn_for_assignment): Reduce to a single message argument, - automatically handling formatting for function call arguments. - All callers changed. - (convert_for_assignment): If ERRTYPE is a null string, this is - parameter passing for a function, so output different error messages. - (convert_arguments): Pass null string to convert_for_assignment to - indicate parameter passing. + * svr4.h (HANDLE_SYSV_PRAGMA): Defined. -Thu Sep 5 13:44:19 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * sol-crt*.asm: Renamed from sol-crt*.s, and put in config. + * t-sol2 (crt*.o): Changed accordingly. Also use $(AS). - * sched.c: Correct typos in comments. - (sched_note_set): Don't try to calculate live info for global - register variables. - (attach_deaths): Don't add REG_DEAD notes for global register - variables. + * gbl-ctors.h (ON_EXIT): Test HAVE_ATEXIT before sun. - * tm-sparc.h (SELECT_SECTION): Can't put a variable in text section - if flag_pic and RELOC are both true, same test that varasm.c does. +Mon Jul 20 18:56:02 1992 Fred Fish (fnf at fishpond) -Thu Sep 5 13:15:43 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * svr4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro--default definition. + (ASM_OUTPUT_CASE_LABEL): Use that. + * m68ksgs.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Do the swbeg here. + (ASM_OUTPUT_CASE_LABEL): Use that. - * rtlanal.c (reg_referenced_p): Handle USE and CALL. - Use switch instead of if-then-else. + * configure (m68k-*-amix*): Use fixinc.svr4 and install.sh. -Thu Sep 5 08:03:58 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * x-amix (ENQUIRE_CFLAGS): Remove; obsolete. - * cplus-class.c (propagate_assoc_offsets): Don't fail to - propagate the offset to the rightmost basetype. + * amix.h (TRANSFER_FROM_TRAMPOLINE): Remove #undef. - * cplus-decl.c (xref_tag): Allocate nodes for basetype info on - permanent obstack, not temporary obstack. +Mon Jul 20 17:45:46 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Sep 4 18:53:16 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * dbxout.c (dbxout_source_line): New function. + * final.c (output_source_line): Use that. - * fixincludes : Change `m68k' to `__m68k__' in all #if's. + * configure (sparc-*-sunos5*): New alias. + (sparc-*-solaris2*): Use t-sol2. - * Makefile.in (ALLOCA_FLAGS): Add -Demacs. - (ALLOCA_FINISH): Put option before input file name. - (alloca.o): Supply $(INCLUDES). + * i860.md (mulsi3_little, mulsi3_big): New define_expand patterns. + (mulsi3): Just use one of them. - * Makefile.in (GCC_CFLAGS): New parameter. - (protoize, protoize.o, unprotoize, unprotoize.o): Use GCC_CFLAGS. - (enquire, enquire.o, collect2, collect2.o, SYSCALLS.c.X): Likewise. + * Makefile.in (install-fixincludes): Pass second and third args. -Wed Sep 4 18:13:56 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Jul 20 16:07:12 1992 Pat Rankin (rankin@eql.caltech.edu) - * combine.c (make_extraction): When picking up low-order part, - ensure that we don't create a non-aligned object if alignment - is required. + * vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): change _c$main_args to + uppercase instead of relying on gas to make the case translation - * expr.c (emit_push_insn): Ensure we only call force_const_mem on a - constant. - - * config.subr: Set `os' to be the last `-' and everything following it. - `romp' is the basic machine name for the rtpc. - `aos' is IBM's name for BSD. - * configure: Default `cpu_type' to the first field before an - optional `-'. - Add a29k, a29k-ultra, romp, and rs6000. - * xm-a29k-ultra.h: New file. - -Wed Sep 4 15:46:50 1991 Tom Wood (wood at dg-rtp.dg.com) - - Changes from Ron Guilmette: - * dwarfout.c (output_symbol): Move tests for omitting declarations - to dwarfout_file_scope_symbol. No need for `local' parameter. - Use TREE_PUBLIC and TREE_EXTERNAL to determine whether a variable - or function is global. - (finalizing, dwarfout_file_scope_delayed_symbol): Delete. - - * toplev.c (compile_file): Delete use of dwarfout_file_scope_symbol - for initialized VAR_DECLs. All global declarations are passed to - dwarfout_file_scope_symbol (except function definitions and types). +Sun Jul 19 00:04:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - (compile_file, rest_of_decl_compilation): Attribute time in - {dbxout,sdbout,dwarfout} functions to symout_time. + * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): New macro. + * c-decl.c (duplicate_decls, grokdeclarator, finish_struct): + Use C_PROMOTING_INTEGER_TYPE_P to decide whether a type promotes. + (start_function): Likewise. + * c-typeck.c (default_conversion): Use C_PROMOTING_INTEGER_TYPE_P + to decide whether a type should promote. + (self_promoting_args_p, self_promoting_type_p): Likewise. - * varasm.c (assemble_variable): Check and update TREE_ASM_WRITTEN - for a global register variable. - Delete use of dwarfout_file_scope_symbol for VAR_DECLs. + * c-aux-info.c (gen_type): For array type, state the size. -Tue Sep 3 23:34:57 1991 Torbjorn Granlund (tege at zevs) + * final.c (output_addr_const): Handle ZERO_EXTEND and SIGN_EXTEND. + * expr.c (expand_expr, NOP_EXPR case): If EXPAND_INITIALIZER, + generate ZERO_EXTEND or SIGN_EXTEND; don't emit insns. - * sparc.md (ashldi3 expander & recognizer): Make shift count have - SImode. Used to have DImode. + * function.c (assign_parms): Use const0_rtx as DECL_RTL and as + DECL_INCOMING_RTL if tmode of parm is void. - * expmed.c (emit_store_flag): Declare arg UNSIGNEDP. + * jump.c (mark_jump_label): Don't make REG_LABEL for nonlocal label. + * loop.c (add_label_notes): Don't make REG_LABEL for nonlocal label. + (rtx_renumbered_equal_p): Use == to compare nonlocal labels. - * vax.md (adddi3): Make operands 2 and 3 commutative. + * rtl.h (LABEL_REF_NONLOCAL_P): New macro. + * expr.c (expand_expr): Set LABEL_REF_NONLOCAL_P for nonlocal labels. + * reload1.c (set_label_offsets): Ignore nonlocal labels. - * sparc.md (subtract constant then return): Peephole deleted. + * c-parse.y (primary): Set TREE_CONSTANT in the NOP_EXPR for an enum. -Tue Sep 3 22:23:52 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Solaris changes from Cygnus: - * Makefile.in (mostlyclean, clean, realclean): Some files were missing. + * fixinc.svr4: take a third argument indicating where files to be + copied in should come from (useful when not building in source + directory). + Set TERM to dumb so ex won't hang (by zoo). + * fixincludes: Take the same new argument. - * gvarargs.h (va_list): Make it typedef, not macro. - * va-mips.h, va-pyr.h: Likewise. + * gmon-sol2.c: New file. + * t-sol2: New file. + * sol2-crt1.s, sol2-crti.s, sol2-crtn.s: New files. -Tue Sep 3 22:07:04 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * xm-spcv4.h (ONLY_INT_FIELDS): Define, if __GNUC__. - * cplus-init.c (build_vec_delete): Fix off-by-one error for arrays - of length 1. + * sparc.h (FUNCTION_PROFILER): Use ASM_OUTPUT_INTERNAL_LABELREF. + (FUNCTION_BLOCK_PROFILER): Mark with FIXME that it needs work. + (ASM_OUTPUT_INTERNAL_LABELREF): Define. + * spc-sol2.h: Entire file is new except for + defining MD_STARTFILE_PREFIX. + * dbxout.c (dbxout_block): obey DBX_BLOCKS_FUNCTION_RELATIVE + (dbxout_init): Use ASM_IDENTIFY_GCC_AFTER_SOURCE if defined. -Tue Sep 3 19:30:45 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * sparc.h (CONSTANT_ALIGNMENT): Add parens for Sun compiler. - * combine.c (try_combine): Don't pass a STRICT_LOW_PART to - reg_overlap_mentioned_p. +Sun Jul 19 11:03:56 1992 Fred Fish (fnf at fishpond) - * cse.c (fold_rtx): If INSN is zero, copy X before we change - anything inside it. - When looking for associative operation, pass zero as missing arg to - recursive call. - (find_comparison_args): Add zero for missing arg to fold_rtx calls. + * i386v4.h (real.h): Remove apparently unnecessary inclusion. + * i386v4.h (HANDLE_SYSV_PRAGMA): Replaces HANDLE_PRAGMA. - * reload.c (find_reloads): Correct code that prevents replacing - a SET_DEST with a constant so that it correctly looks for an - operand being a SET_DEST. +Sat Jul 18 20:37:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Sep 3 19:17:34 1991 James Van Artsdalen (james at bigtex.cactus.org) + * c-typeck.c (build_binary_op): Don't set shorten for signed division. - * out-i386.c (split_di): Call split_double for CONSTANT_P. - (fix_op): Delete. - (float_op): Don't examine the mode of the FLOAT operand. - (output_float_compare): Don't make new %ax RTX: use scratch - operand from insn. + * final.c (end_final): Align the table of addresses. - * i386.md (float mode tstM,cmpM,fixuns_truncMN2,fix_truncMN2): Use - match_scratch. - (float mode tstM,fixuns_truncMN2,fix_truncMN2): Don't gen temp RTX: - use scratch operand. - (fix_truncMN2,floatMN2): Split pattern into a separate DFmode and - SFmode patterns so that operands[1] has a mode. - (sCOND patterns): Don't set cc_status to previous status. - (cmpstrsi): Don't explicitly reference reg 2. +Fri Jul 17 23:49:28 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Sep 3 16:28:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cexp.y: Include stdio.h. - * optabs.c (expand_binop): Fix carry calculation. +Fri Jul 17 06:17:34 1992 Tom Wood (wood@dg-rtp.dg.com) - * varasm.c (decode_addr_const): Given a LABEL_DECL, Make a LABEL_REF. - (const_hash): Handle a LABEL_REF. - * expr.c (expand_expr): Use FUNCTION_MODE for memref to a LABEL_REF. + * cp-tree.h (DECL_THIS_EXTERN): Renamed from DECL_EXTERNAL. + * cp-pt.c, cp-decl.c: Rename DECL_EXTERNAL -> DECL_THIS_EXTERN and + then rename TREE_EXTERNAL -> DECL_EXTERNAL. - * configure: Fix typo in last change. +Fri Jul 17 05:59:26 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cccp.c (handle_directive): Normally no error for line with `###'. + * function.c (instantiate_decls{,_1}): Don't do instantiation + here if the address is mode-dependent. -Tue Sep 3 10:53:12 1991 Tom Wood (wood at dg-rtp.dg.com) + * libgcc2.c: Include tconfig.h instead of tm.h. + Include machmode.h. + (__do_global_dtors): Cast to widest integer type, then narrow, to + avoid warning if int is narrower than pointer. + * Makefile.in (libgcc2.a): Includes machmode.h. - * out-m88k.c, tm-m88k.h: Delete remnants of the fancy abort. - * tm-m88kdgux.h: No longer identify as version DG-*. - * m88k files: Update copyright dates. + * cse.c (cse_insn): Allow paradoxical SUBREGs in the table. -Tue Sep 3 03:18:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload.c (secondary_memlocs{,_elim}): New variables. + (get_secondary_mem, clear_secondary_mem): New function. + (push_reload): Convert SUBREG of hard reg to new hard reg. + Call get_secondary_mem when needed. + (find_reloads): Clear secondary_memloc_elim for each insn. + * reload1.c (reload): If SECONDARY_MEMORY_NEEDED, check for frame + size changed. + Call clear_secondary_mem. + (emit_reload_insns, gen_input_reload): Use memory when required to + do reload. + * reload.h (get_secondary_mem): Declare. - * expr.c (expand_expr): Get rid of EXPAND_INTO_STACK. + * cccp.c (NULL_PTR): Define as void * if STDC. -Mon Sep 2 14:07:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * rs6000.md (negdi2): Corrected name; used to be negdi3. - * gcc.c (do_spec_1): In %X, terminate the arg after each option. + * combine.c (subst, case SET): Put code to move SUBREG after + code that calls make_compound_operation. + (make_extraction): Don't check for INNER a REG except for in dest. + Fix typo checking for REG. + (make_compound_operation): Get the result in the same mode it + used to be. - * config.subr: If argument contains `local', always accept it. - * configure: If machine type contains `local', - construct file names from that machine type name. - - * configure: Make config.status a shellscript to redo the configure. - No need now to change / to - when storing $(target) in Makefile. - Store $(host_make_var_file) in Makefile also. - Set host_make_var_file to ../Makefile.in after creating Makefile - if no make-... file actually exists for this host. - * Makefile.in (host_make_var_file): Dummy definition to be filled in. - (Makefile): New rule to rerun `configure' + * reload.c (push_reload): If a SUBREG requires a secondary reload + but the inner expression doesn't, reload the inner expression + instead. - * tm-sysv4.h (ASM_DECLARE_FUNCTION_SIZE): New macro. +Fri Jul 17 02:20:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-mips.h, tm-m88k.h (abort): Macro definition deleted. It is - not right for any machines description to specify use of fancy_abort. + * gcc.c (process_command): Handle `-Wl,' and `-Wa,'. + (do_spec_1): Handle %Y. + (default_compilers): Use %Y in assembler commands. - * protoize.c [v.4]: Include fcntl.h. - (execvp): Correct type for second arg. - (compile_params): Remove `const'; that loses when calling execvp. + * function.c (assign_parms): In last change, test mode in parm type. - * cccp.c (directive_table): Typo in entry for do_ident. +Thu Jul 16 15:03:25 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * xm-m68k.h (alloca): Define macro with arg. + * loop.c (find_and_verify_loops): Ignore jumps to missing labels, + when using P. - * emit-rtl.c (reorder_insns_with_line_notes): New function. - (find_line_note, emit_line_note_after): New functions. + * c-typeck.c (build_binary_op): Improve shift warning messages. - * jump.c (jump_optimize): When moving else clause before test, - only move the insn as far as needed, and use new function - reorder_insns_with_line_notes. + * x-dpx2 (AS): Use $(GAS). + (GAS): New variable. -Mon Sep 2 03:30:35 1991 James Van Artsdalen (james at bigtex.cactus.org) + * mot3300.h (ASM_OUTPUT_CASE_END): Deleted. - * Makefile.in (collect2): Compile with gcc. + * function.c (assign_parms): If arg was passed by invisible + reference, copy it to a pseudo if appropriate. -Sun Sep 1 9:03:46 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * dwarfout.c (pure_or_virtual_attribute): + Add #if 0 around use of DECL_ABSTRACT_VIRTUAL_P. - Define two macros to eliminate the need for a seperate collect pass. +Wed Jul 15 16:29:05 PDT 1992 Ron Guilmette (rfg at ncd.com) - * tm-vms.h (ASSEMBLE_OUTPUT_CONSTRUCTOR): Define. - (ASSEMBLE_OUTPUT_DESTRUCTOR): Define. + * dwarfout.c (BLOCK_INLINE_FUNCTION): Obsolete definition deleted. + (block_ultimate_origin): New function. + (output_block): + Local var `have_significant_locals' renamed to `must_output_die'. + (output_block): Rewritten to handle abstract & concrete instances of + blocks of inline functions. + (output_decls_for_scope): + Don't bump `next_block_number' for abstract blocks. -Sun Sep 1 08:14:22 1991 Michael Meissner (meissner at osf.org) + * toplev.c (rest_of_compilation): Call `dwarfout_file_scope_decl' for + both types of "abstract" instances of inline functions. - * collect-osf.c (main): Print version number if -v. Also ignore all - arguments beginning with -c rather than just '-c'. + * tree.def (BLOCK): Use new tree code category letter 'b' for BLOCKs. + * tree.h (struct tree_block): New struct type definition added. + (BLOCK_VARS, BLOCK_TYPE_TAGS, BLOCK_SUBBLOCKS, BLOCK_HANDLER_BLOCK): + Changed to reference fields of the new `struct tree_block' type. + (BLOCK_ABSTRACT_ORIGIN, BLOCK_ABSTRACT): Definitions added. + (union tree_node): Added `struct tree_block' as a new variant. + * tree.c (typedef tree_node_kind): Added new kind, i.e. `b_kind'. + (tree_node_kind_names): Added string name for new kind `b_kind'. + (make_node, copy_node, stabilize_reference_1): + Handle case 'b' (for BLOCK nodes). + (make_node): Don't try to deal with BLOCKs when doing a type 'e' node. + * print-tree.c (print_node): + Handle type 'b'; delete code for BLOCK from 'e' case. + Handle fields BLOCK_ABSTRACT_ORIGIN and BLOCK_ABSTRACT. + * calls.c (calls_alloca): Don't return 0 automatically if the expr + given is headed by a type 'b' node. + * cp-tree.c (break_out_calls): Add case for decl nodes. + Added case to catch BLOCK nodes (and to abort). + * integrate.c (copy_decl_tree): Set BLOCK_ABSTRACT_ORIGIN in new + instance block if not already set. + (expand_inline_function): Set BLOCK_ABSTRACT_ORIGIN for outermost + scope to point to progenitor (abstract inline) FUNCTION_DECL node. + (integrate_decl_tree): Set BLOCK_ABSTRACT_ORIGIN for inlined instance + BLOCKs. + (set_block_origin_self, set_decl_origin_self, set_block_abstract_flags, + set_decl_abstract_flags): New functions. + (output_inline_function): Call `set_decl_origin_self' for each fndecl + which is about to have an out-of-line instance generated for it. - * make-decrose (collect): Add version.o to link. +Wed Jul 15 15:08:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Aug 31 17:03:23 1991 Michael Meissner (meissner at osf.org) + * c-convert.c (convert_to_integer): Push truncation inside COND_EXPR. - * cplus-input.c (inline macro definition): If inline is already - defined, don't redefine it. + * optabs.c (emit_cmp_insn): Always do protect_from_queue on x, y, size. + (expand_float, expand_fix): Likewise. + * expmed.c (expand_shift, expand_set_flag): + Call protect_from_queue before convert_to_mode. + * expr.c (convert_move): Don't call protect_from_queue. + (emit_block_move): Protect SIZE. - * collect-osf.c (main): Look for gld and gas instead of ld and as, - so collect-osf can be installed as ld. Use a default path of - /usr/ccs/gcc to find the linker and assember. Ignore the -c switch, - which GCC uses to say that collect is needed. + * explow.c (allocate_dynamic_stack_space) [SETJMP_VIA_SAVE_AREA]: + Always call round_push; we can't rely on alignment of size. - * osf-main.c (__finis): Don't call descructors already called if one - of the destructors calls exit (which in turn calls __finis). +Wed Jul 15 06:47:11 1992 Richard Kenner (kenner@vlsi1.ultra.nyu) - * tm-mips.h (DBX_REGISTER_NUMBER): Use mips_dbx_regno to map - register number to debug register number. - (GP_DBX_FIRST, FP_DBX_FIRST): New macros, giving the first debug - register numbers for gp registers and fp registers. + * combine.c (try_combine): Verify that I2DEST is a register before + trying to change its mode. - * out-mips.c (mips_dbx_regno): New global array to map GCC register - number to debug register number, to fix problem with OSF/1 stabs - using 38 for the first fp registers, rather than 32. - (override_options): Set up OSF/1 SIGINFO signal handler to notmake - the interruptable system calls read, write, and wait not return - error condition. Also initialize mips_dbx_regno. +Tue Jul 14 15:13:28 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * make-decrose (CFLAGS): Add $(MSTATS) variable to set -mstats. - (CFLAGS_NODEBUG): Like CFLAGS, except no debugging or inlining. - (DEB_OPT): Define in terms of DEBUG, OPT, and PROFILE. - (cplus-lex rule): Build cplus-lex with no debug or inlinings. + * c-decl.c (finish_struct): Handle nested struct redefinitions. + * stor-layout.c (layout_record): Handle NULL dsize. -Sat Aug 31 12:52:17 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Jul 14 21:31:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (handle_directive): Be more fussy detecting `# LINE' case. + * c-decl.c (duplicate_decls, pushdecl, grokdeclarator): + (store_parm_decls, combine_parm_decls, finish_function): + Use TYPE_MAIN_VARIANT when comparing against specific non-void types. + * c-typeck.c (self_promoting_args_p, self_promoting_type_p): + (signed_type, unsigned_type, default_conversion, check_format): + (build_binary_op, c_expand_start_case): Likewise. - * cccp.c (directive_table): Pass through and ignore #ident. - (do_ident): New function. - (skip_if_group): Error if unrecognized directive seen. +Mon Jul 13 14:57:34 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): In converting x=a; if (...) x=b; to - store flag, insert all the new code in just one line. + * c-decl.c (finish_function): Fix braino validating ret type of main. - * gcc.c (do_spec_1): Use xmalloc to make linker_options the first time. + * expr.c (expand_builtin): Refer to errno at rtl level only. + * sparc.h (TARGET_EDOM, GEN_ERRNO_RTX): New macros. - * expr.c (expand_expr): Make EXPAND_SUM and EXPAND_INITIALIZER - imply EXPAND_CONST_ADDRESS in all cases. +Mon Jul 13 06:35:53 1992 Paul Eggert (eggert@twinsun.com) - * c-decl.c (c_decode_option): -Wall sets warn_uninitialized. - * flags.h (warn_uninitialized): Declared. - * toplev.c (warn_uninitialized): No longer static. + * expr.c (expand_builtin): + For fsqrt, always use the special insn, then test for nan. - * cccp.c (main): Make no assumptions about include_defaults - in calculation of max_include_len. Add fudge space if VMS. +Mon Jul 13 08:45:34 1992 Tom Wood (wood@dg-rtp.dg.com) - * reload.c (find_reloads_toplev): New arg IS_SET_DEST. - Don't replace reg with constant in destination of a SET. - (find_reloads): Pass that arg. Also don't replace here. + * m88k.md: Constraint fixes from Torbjorn. - * cplus-xref.c: Finish installing changes from Youngdale. + * jump.c (jump_optimize): In `x = a; if (...) x = b;' allow both a + and b to be non-zero if jumps are very expensive. Also allow a + and b to be constants where all the set bits in a are also set in + b when jumps are merely expensive. -Sat Aug 31 09:02:25 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Sun Jul 12 17:43:03 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cplus-decl2.c (finish_file): Call varasm routines to assemble ctor - and dtor lists. + * genpeep.c (match_rtx): Sometimes use %ld when printing an XWINT. - * cplus-dbxout.c (dbxout_type_methods): Fix error in printing symbol - info for classes that only define a destructor. + * regclass.c (record_reg_classes): If OP is a REG, use it's mode + in case the mode in MATCH_OPERAND is VOIDmode. -Sat Aug 31 08:32:12 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Jul 12 13:03:54 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (cse_end_of_basic_block): Correctly handle the case of a basic - block where a conditional branch out of the block becomes unconditional - and a conditional branch to the end of the block becomes a noop. + * fixincludes: Replace the code that finds all directories + so that it looks for subdirs of dir reached via symlinks. - * combine.c (try_combine): In case where we have a PARALLEL - involving a load and sign extend, use reg_overlap_mentioned_p - instead of reg_mentioned_p. - If we have a PARALLEL of two independent SETs, try to split them - up into separate insns. + * cp-tree.h (IDENTIFIER_VIRTUAL_P): Macro moved here. + * tree.h (IDENTIFIER_VIRTUAL_P): Deleted from here. - * combine.c (move_deaths): Instead of placing the REG_DEAD notes - on TO_INSN, add them to a list whose address is given as an - operand. - (distribute_notes): Allow for the case when the death of an object - is between I2 and I3. - Set reg_last_death to corrspond to the location of the REG_DEAD - note being placed. - (try_combine): Call move_deaths in new way and pass returned list - to distribute_notes if it is non-empty. + * rtl.h (NOTE_BLOCK_NUMBER, SET_NOTE_BLOCK_NUMBER): New macros. + (NOTE_DECL_NAME, NOTE_DECL_CODE, ...): #if 0'd. + * function.c (identify_blocks, reorder_blocks): New functions. + (all_blocks, blocks_nreverse): New functions. - * local-alloc.c (requires_inout_p): Don't have cases for '[Q-U]' unless - EXTRA_CONSTRAINT is defined.. + * isi.h: Deleted the #error; file should work now. + (LIB_SPEC): Use -lg only once. + (STRUCTURE_SIZE_BOUNDARY): Defined. - * local-alloc (block_alloc): Don't allocate SCRATCH on machines with - SMALL_REGISTER_CLASSES defined. + * protoize.c (process_aux_info_file): Set must_create before jumping to + start_over. Don't clear must_create at start_over. Don't test + source file mod time for SYSCALLS. - * regclass.c (reg_class_record): Add missing case for 'V'. + * machmode.h (GET_MODE_NUNITS): Avoid division by zero. -Fri Aug 30 04:42:19 1991 James Van Artsdalen (james at bigtex.cactus.org) +Sat Jul 11 22:21:47 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-i386.h (OUTPUT_JUMP): Use cc_prev_status. + * objc-parse.y (primary): Don't test TREE_EXTERNAL; + call assemble_external regardless. -Fri Aug 30 17:08:52 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * tree.h (DECL_INLINE, DECL_NONLOCAL, DECL_REGISTER, DECL_EXTERNAL): + Renamed from TREE_INLINE, TREE_NONLOCAL, TREE_REGDECL, TREE_EXTERNAL. + All uses changed. - * xm-vms.h (LOCATE_START_OF_FILE_NAME): Remove. - (FILE_NAME_NONDIRECTORY): Fix typo. - (XREF_FILE_NAME): Use FILE_NAME_NONDIRECTORY instead of - LOCATE_START_OF_FILE_NAME, and omit the leading underscore in the - generated file name. - (FILE_NAME_ABSOLUTE_P): Define to use hook in cplus-xref.c. - (FILE_NAME_JOINER): Define to use hook in cplus-xref.c. + * xm-hp320.h (USG): Define it. - * cplus-xref.c: Fix bug in default definition of FILE_NAME_ABSOLUTE_P. - (GNU_xref_open): Fix bug - wrong argument to XREF_FILE_NAME. - (FILE_NAME_JOINER): New macro. - (GNU_xref_file): Use it. +Sat Jul 11 21:43:56 1992 Michael Meissner (meissner@osf.org) -Fri Aug 30 17:30:15 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * mips.h (MIPS_VERSION): Bump meissner version number to 21. - * cplus-xref.c: Reinstall Aug 25 changes discarded by Tiemann. + * mips.md (andsi3, iorsi3, xorsi3): Make predicates match the + actual machine, since combine can now recreate the bitfields, and + doesn't do multiple logical operations when setting more than one + bitfield in a word. - * expr.c (expand_expr): New modifier option EXPAND_INITIALIZER. - * varasm.c (output_constant): Use that. - * jump.c (forced_labels): New var records labels not to delete. - (jump_optimize): Don't delete those labels. - * flow.c (find_basic_blocks): Any computed goto goes to those labels. - * varasm.c (decode_addr_const): Deal with LABEL_DECL. + * objc-actions.c (xmalloc, free): Don't provide extern decls for + these, since tree.h and rtl.h both now provide them. -Fri Aug 30 15:41:03 1991 Michael Meissner (meissner at osf.org) + * cp-lex.c (real_yylex): Declare a variable i, since a for loop + uses it as an index. Remove an extra '(' from a build_int_2 call. - * mips.md (copyleft): Use separate copyright years. - (mov*): Use nonimmediate_operand instead of general_operand. +Sat Jul 11 13:13:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-mips.h (copyleft): Use separate copyright years. + * varasm.c: Get rid of default definitions of ASM_OUTPUT_CONSTRUCTOR + and ASM_OUTPUT_DESTRUCTOR. - * xm-mips.h (copyleft): Use separate copyright years. + * c-aux-info (affix_data_type): Don't be fooled by names starting + with `const' or `volatile'. - * xm-umips.h (copyleft): Use separate copyright years. + * c-typeck.c (digest_init): Deal with nested {...} for scalar. -Fri Aug 30 08:47:30 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * loop.c, reload1.c: Include stdio.h before config.h. - * cplus-typeck.c (build_x_*): Try first calling `build_opfncall' - with FLAGS==0. If that succeeds, check protection. - (build_conditional_expr): `fold' does not preserve the type of it's - expressions, which is a problem for C++ when trying to keep ints and - enums distinct. + * toplev.c (rest_of_compilation): Save and restore DECL_ARGUMENTS. - * cplus-decl.c (lookup_name): When there is a choice between seeing - a name as a type and seeing as a decl, call `arbitrate_lookup' to - make the decision. - * cplus-lex.c (arbitrate_lookup): New function. Uses minute amounts - of syntactic context to decide whether to see a name as a type or - something else. +Fri Jul 10 22:42:34 1992 Paul Eggert (eggert@twinsun.com) -Fri Aug 30 07:40:49 1991 Tom Wood (wood at dg-rtp.dg.com) + * tree.c (build_real_from_int_cst): Truncate when folding to float. + (real_value_from_int_cst): Do not treat the topmost bit + of an unsigned long long value as a sign bit. - * jump.c (delete_jump): When checking REG_DEAD notes, make sure they - have a legal value. + * cse.c (simplify_binary_operation): Don't optimize 0.0/x to 0.0 + if IEEE floating point is used, because x might be negative or NaN. -Fri Aug 30 00:57:05 1991 James Van Artsdalen (james at bigtex.cactus.org) +Fri Jul 10 15:37:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * local-alloc.c (alloc_qty_for_scratch): Treat Q - U as reg class if - EXTRA_CONSTRAINT is not defined. - * regclass.c (reg_class_record): Likewise. + * genpeep.c (match_rtx): Handle `w' elts of rtx. -Thu Aug 29 21:39:07 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (INTERNAL_CFLAGS): Add -DIN_GCC. - * c-typeck.c (build_binary_op_nodefault): Fix last change. +Fri Jul 10 18:56:22 1992 Eric Youngdale (youngdale@v6550d.nrl.navy.mil) -Thu Aug 29 19:11:05 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cccp.c (finclude): Clean error msf if file_size_and_mode fails. - * recog.c (general_operand, const_double_operand): Similar to - immediate_operand, don't accept a VOIDmode operand if the - caller wants floating. - * out-pyr.c (nonindexed_operand): Likewise. +Fri Jul 10 13:44:46 1992 Howard Chu (hyc@hanauma.jpl.nasa.gov) -Thu Aug 29 09:53:27 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * fx2800.h (LINK_LIBGCC_SPECIAL): Defined. + (DBX_OUTPUT_STANDARD_TYPES): Check that DECL_NAME(decl) exists + before trying to get its IDENTIFIER_POINTER. - * cplus-tree.h ({SET,CLEAR}_ASSOC_*): New macros needed because not - all C compilers support conditional expressions as lvalues. - (lang_type): Change type of MEMOIZED_TABLE_ENTRY and SEARCH_SLOT - from `void *' to `char *', to make braindead compilers at less of a - disadvantage. +Thu Jul 9 20:56:01 1992 Per Bothner (bothner@rtl.cygnus.com) -Thu Aug 29 08:07:40 1991 Tom Wood (wood at dg-rtp.dg.com) + * dbxout.c (dbxout_type_methods): Fix minimal_debug so + that it skips a redundant class name prefix, as intended. + It now expects the length digits that precede the class name. - * m88k.md (define_function_unit): Update latencies. +Thu Jul 9 18:23:12 1992 Torbjorn Granlund (tege@wombat.gnu.ai.mit.edu) - * out-m88k.c (output_function_profiler): Correct offsets for - register saves. - * tm-m88ksvr4.h (FUNCTION_PROFILER): Use the name _mcount and do - register saves. + * Makefile.in, libgcc2.c, longlong.h: Rename udiv_using_sdiv to + udiv_w_sdiv. - * tm-m88k.h (ASM_DWARF_POP_SECTION): Specify "previous". +Thu Jul 9 18:10:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - Changes from Ron Guilmette: - * dwarfout.c (lookup_filename): Only increment valid_ft_entries - once when adding a filename to the table. - (output_symbol): Do output DIEs for a global VAR_DECL definition. + * tree.h (STRIP_TYPE_NOPS): New macro. + * c-decl.c (build_enumerator): Use STRIP_TYPE_NOPS. + * c-typeck.c (default_conversion): Use STRIP_TYPE_NOPS. + (build_binary_op, build_function_call): Likewise. + * c-common.c (check_case_value): Use STRIP_TYPE_NOPS. -Thu Aug 29 06:15:32 1991 Michael Tiemann (tiemann at rtl.cygnus.com) + * mot3300.h (ASM_OUTPUT_CASE_END): New macro. + * m68k.c (switch_table_difference_label_flag): New variable. - * cplus-type2.c (build_functional_cast): If we have a valid value in - `expr_as_conversion' return that before returning error_mark_node. + * i860.md (QI and HI bte/btne patterns): Deleted. - * cplus-init.c (expand_recursive_init): Fix typo is testing - TYPE_USES_VIRTUAL_BASECLASSES. +Thu Jul 9 06:09:20 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) -Wed Aug 28 23:12:35 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-typeck.c (default_conversion): Don't use STRIP_NOPS. - * c-typeck.c (build_binary_op_nodefault): For shift and rotate ops, - if traditional, use the common type of the operands. + * print-rtl.c: Missing merge from 64-bit changes. + (print_rtx): Add new case 'w'. -Wed Aug 28 07:31:33 1991 Tom Wood (wood at dg-rtp.dg.com) +Wed Jul 8 14:35:39 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c, dwarf.h, README.DWARF: Replacement files from Ron - Guilmette that bring the dwarf implementation up to that defined by - draft 4 of the dwarf specification (dated 7/31/91). + * fixincludes, fixinc.svr4: Error if no argument. -Wed Aug 28 06:24:30 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * tree.c (integer_zerop, integer_onep, integer_all_onesp): + (integer_pow2p, real_zerop, real_onep, real_twop): Use STRIP_NOPS. + * expr.c (do_store_flag): Likewise. + * varasm.c (output_constructor): Likewise. + * c-decl.c (finish_struct, build_enumerator): Likewise. + * c-typeck.c (default_conversion, build_binary_op): Likewise. + (build_function_call): Likewise. - * all *.md files except a29k.md and romp.md: Don't allow CONST_INT - as operand for RTL operations that need a mode to be well-defined, - e.g., SIGN_EXTEND, ZERO_EXTEND, TRUNCATE, FLOAT. Similarly, don't - allow CONST_INT as first operand of a COMPARE. + * integrate.c (integrate_decl_tree): Get rid of arg functionbody; + it was always 0. - * machmode.h (MIN, MAX): Undefine these before our definition. + * mot3300.h: Fix typo. -Tue Aug 27 21:33:04 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * final.c (leaf_renumber_regs_insn): Handle new 'w' format. - * version.c: Now 1.95. +Wed Jul 8 15:18:33 PDT 1992 Ron Guilmette (rfg at ncd.com) -Tue Aug 27 18:05:25 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * tree.h (DECL_ABSTRACT_ORIGIN, DECL_ABSTRACT): Definitions added. + (struct tree_decl): New fields `abstract_origin' & `abstract_flag'. + (struct tree_decl): Field `from_inline_flag' deleted. + (DECL_FROM_INLINE): Definition revised to check DECL_ABSTRACT_ORIGIN. + * integrate.c (copy_decl_list): New function added. + (save_for_inline_copying): Call `copy_decl_list' for formal parameters. + Set DECL_ABSTRACT_ORIGIN for fndecl to point to itself. + (copy_decl_tree): Use `copy_decl_list' rather than just `copy_list'. + (integrate_parm_decls, integrate_decl_tree): Set DECL_ABSTRACT_ORIGIN + to point to the progenitor. + * print-tree.c (print_node): Print the value of DECL_ABSTRACT_ORIGIN + rather than the value of DECL_FROM_INLINE. - * reload1.c (possible_group_p): Use earliest class that needs a group. + * dwarfout.c (output_inlined_enumeration_type_die): New function. + (output_inlined_structure_type_die, output_inlined_union_type_die): + New functions added. + (output_entry_point_die, output_formal_parameter_die, + output_global_subroutine_die, output_global_variable_die, + output_label_die, output_lexical_block_die, + output_inlined_subroutine_die, output_local_variable_die, + output_local_subroutine_die): + Fixed to handle inline abstract & concrete (i.e. inlined) instances. + (output_inlined_subroutine_die): Deleted. + (output_label_die): Don't permit the rtx associated with a named + user-declared label to be marked as INSN_DELETED_P. + (output_tagged_type_instantiation): New function added. + (output_decl): Call `output_tagged_type_instantiation'. + Don't generate a pubnames label for anything marked as DECL_ABSTRACT. + (output_die): Generate the proper kind fo DIE for each of the four + possible combination of {normal, inlined} {variable, parameter}. + (dwarfout_file_scope_decl): Don't generate pubnames entries if + strictly abstract. - * gcc.c (do_spec_1): Handle %x and %X. - (link_command_spec): Use %X. If given -collect, pass -c. - (default_compilers c++): Use %x to pass -c to linker. + * dwarfout.c (ordering_attribute): Only def if USE_ORDERING_ATTRIBUTE + is defined. + (output_array_type_die): Only call ordering_attribute if it is defined. + (name_and_src_coords_attributes): Don't make it inline. + Do make it static linkage. + (const_value_attribute): Catch invalid kinds of rtx nodes + by aborting for the default case in switch. - * cse.c (find_comparison_code): Don't call fold_rtx, - because we don't know which insn to pass for its second argument. + * dwarfout.c (output_ptr_to_mbr_type_die): Make it static linkage. + (output_formal_types): Make sure that `formal_type' is initialized. + (output_type): Add a default case for switch. + (output_decl): Don't suppress DIEs for the initial (artificial) + arguments for C++ static member functions. - * cse.c (fold_rtx): Don't fold what we get from lookup_as_function. + * dwarfout.c (ceiling, field_type, simple_type_align_in_bits, + simple_type_size_in_bits, field_byte_offset): New functions added. + (data_member_location_attribute): Use new routine `field_byte_offset' + to calculate the offset value for the AT_location attribute. + (byte_size_attribute): Use new routine `field_type' to get the + actual type for any FIELD_DECL. Also, use `simple_type_size_in_bits' + to avoid potential problems with ERROR_MARKs when computing the size + of a FIELD_DECL. + (bit_offset_attribute): Rewritten to use `field_byte_offset' when + determining the start of the "containing object". -Tue Aug 27 17:46:59 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * integrate.c (expand_inline_function): Integrate parameters before + locals to get debugging information in the proper order. + (integrate_decl_tree): Don't do a redundant pushlevel/poplevel for + the outermost scope (i.e. when level==0)... just use the one created + by `expand_inline_function'. - * cse.c (rtx_cost): A USE is free; it is likely being used as a marker. + * calls.c (calls_alloca): For BLOCK, walk subblocks and vars by hand. - * cse.c (cse_insn): If we decided not to make a reg-reg copy between - equivalent regs into a no-op, see if there is an equivalent constant - that is cheaper than the register we decided to use. +Wed Jul 8 13:31:19 1992 Michael Meissner (meissner@osf.org) - * cse.c (cse_insn): Fix arg in insert_regs call when making a - secondary equivalence due to a SUBREG; we are not modifying the - register. + * cp-decl.c (print_binding_level): Fix typo, where 'lbl' was used + instead of 'lvl'. - * cse.c (delete_dead_from_cse): Treat a SET that copies a register - to itself as if it were setting a dead register. + * objc-actions.c (build_shared_structure_initializer): Correct call + to build_int_2 which had only one argument, instead of two. - * cse.c (find_comparison_args): Call fold_rtx on the args that we - are about to return. - (fold_rtx, case SUBREG): Copy code from equiv_constant that looks up - a SUBREG in the hash table. - If our our folded operand is equivalent to a constant, use that when - seeing if we can get a part of a constant. - (fold_rtx): Don't short-circuit recursive call for an operand that - is a SUBREG; add comment in REG case that we are doing equiv_constant. - When looking for associative operation, call fold_rtx on potential - constant as well as equiv_constant. - (equiv_constant): Just look up a constant quantity for a register; - fold_rtx will do the SUBREG operations. +Wed Jul 8 06:37:40 1992 Torbjorn Granlund (tege@sics.se) - * fold-const.c ({neg,mul,lshift,rshift,lrotate,rrotate}_double): - No longer static. - * cse.c (simplify_{unary,binary}_operation): Fold some DImode - operations. + * gstdarg.h, gvarargs.h: Test `__hppa__' instead of `__hp9000s800__'. - * fold-const.c (fold, case EQ_EXPR, NE_EXPR, ...): Add code to handle - cases where we are comparing the result of a comparison. + * romp.md (zero_extendhisi2): Remove unneeded constraint. -Tue Aug 27 14:35:59 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * rs6000.md (zero_extendhisi2): Remove unneeded constraint. + (lu/stu): Use %0 instead of %1 in assembler insns. + (call_value): Add missing "=" in constraint. - * flow.c (mark_used_regs): Set regs_ever_live for all hard regs. - Warning: this might break FUNCTION_PROLOGUE and FUNCTION_EPILOGUE - in some ports. But I've checked all the installed ones. - * tm-gmicro.h (FUNCTION_PROLOGUE): - Clear bit for fp reg if used as such. - * tm-mips.h (MUST_SAVE_REGISTER): Only frame_pointer_needed affects fp. +Wed Jul 8 06:30:20 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-decl.c (store_parm_decls): No error if arglist contains type tag. + * rs6000.md (floatsidf): Correctly handle case when SImode operand + overlaps the first DFmode register. - * optabs.c (expand_fix): Really call emit_cmp_insn right. + * fold-const.c (distribute_bit_expr, range_test, fold_truthop): + Use TRUTH_AND_EXPR instead of BIT_AND_EXPR so invert_truthvalue works. - * floatlib.c: New file. + * c-decl.c (grokdeclarator): Strip all NOP_EXPRs from SIZE. - * gnulib2.c (__clz_tab): Moved to _udivdi3. + * integrate.c: Do 64-bit changes (this file omitted the last time). + Replace use of NULL and 0 in functions args with NULL_RTX. + (copy_rtx_and_substitute, subst_constants): Handle "w" rtl + operand class. -Tue Aug 27 06:44:12 1991 Michael Tiemann (tiemann at rtl.cygnus.com) + * rs6000.h (LINK_SPEC): Support -static. - * cplus-typeck.c (c_expand_return): Don't use the cleanup generated - by `build_functional_cast'. + * tree.c (make_node, copy_node, make_tree_vec, tree_cons, build1): + Clear or copy tree nodes in a consistent manner, referencing + every byte of the node. - * cplus-class.c (resolves_to_fixed_type_p): Handle WITH_CLEANUP_EXPR. + * regclass.c: Initialize REG_CLASS_CONTENTS into an array of + ints, then copy into a HARD_REG_SET to avoid conditionalization + of REG_CLASS_CONTENTS on 64-bit machines. -Mon Aug 26 20:55:58 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-common.c (check_case_value): Strip the NOP_EXPR added by + the grammar. + * stmt.c (pushcase, pushcase_range): Don't do it here. - * c-parse.y (yylex): Cast shorts[n] to long before shifting. - * fold-const.c (decode): Likewise. + * c-lex.c (yylex): Ensure TOTAL_PARTS is wide enough to store a + constant as wide as we can store in an INTEGER_CST. + (LONG_LONG_TYPE_SIZE): Deleted; no longer needed. - * Makefile.in (INSTALL_DATA): Renamed from INSTALL_FILE. +Tue Jul 7 15:50:38 1992 Chip Salzenberg (chip@tct.com) - * cse.c (canon_hash): Don't crash if subexpression is 0. + * x-i386sco (XCFLAGS): Omit flags specific to "rcc". + (CC, OLDCC): Put them here instead. - * cplus-lex.c (interface_strcmp): Put back variable s1. +Tue Jul 7 18:57:10 1992 Mike Stump (mrs@wombat.gnu.ai.mit.edu) -Mon Aug 26 18:14:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + The below entries should make DWARF debugging a little bit easier. - * function.c (instantiate_virtual_regs_1): Complete previous change; - had omitted arg on two returns. + * cp-decl.c (pushdecl): IDENTIFIER_GLOBAL_VALUE should not be _DECL + nodes but rather TYPE_DECLs. -Mon Aug 26 15:16:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (pushtag): Mark binding layer markers as internal. - * optabs.c (expand_float, expand_fix): Pass new arg to emit_cmp_insn. + * cp-class.c (finish_struct): Propagate internal mark on binding + layer markers. - * out-m68k.c (singlemove_string): Fix last change. + * cp-decl2.c (finish_file): Don't name things that should not be + named. -Mon Aug 26 11:20:51 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-method.c (decl_as_string): New back-end routine for + substitute_nice_name. - * m88k.md (cmpsi insn): Don't provide an insn that compares two - constants. + * cp-decl2.c (substitute_nice_name): New function used to create + reasonable DECL_NAMEs from cyrptic ones. -Mon Aug 26 08:34:48 1991 Michael Meissner (meissner at osf.org) + * cp-decl2.c (grokclassfn): Use substitute_nice_name. - * collect-osf.c (toplevel, read_file, end_file): Don't use mmap, - unless all defines needed are defined. - (various): If -debug turn on debugging code. Change all occurances - of #ifdef DEBUG sections to if (debug). - (main, add_to_list): Correctly cast xcalloc calls. - (scan_prog_file): Correct xcalloc to allocate enough space - (scan_prog_file): If -debug, don't dump entire symbol table, just - dump the constructors and destructors. +Tue Jul 7 14:04:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * make-decrose (CFLAGS): Use DEB_OPT for default debug and optimize - options, use SHLIB for default shared library versions. - (DEB_OPT): Define to be -g -O2. - (SHLIB): Define to be -L${BUILD}/usr/ccs/lib, which forces static - libraries with both old and new 1.39 compilers. - (COFF_CFLAGS): Define to be -O2 -g0. - (collect): Add LIBDEPS dependency. + * expr.c (emit_move_insn): Don't try subwords for a single word. -Mon Aug 26 07:22:21 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * gcc.c (find_a_file, putenv_from_prefix): + Handle value of 2 in require_machine_suffix. + (process_command): Supply 2 for standard_exec_prefix{,_1}. - * machmode.h (MIN, MAX): Define here. - * c-decl.c, calls.c, cplus-class.c, cplus-decl.c, cplus-tree.c: - Don't define here. - * expr.c, fold-const.c, function.c, integrate.c, recog.c: Likewise. - * rtl.c, sdbout.c, stmt.c, stor-layout.c, varasm.c: Likewise. - * c-typek.c, combine.c, cse.c, emit-rtl.c, expmed.c, final.c: - Delete definitions of "min" and "max"; use MIN and MAX now defined - in machmode.h. - * genemit.c, regclass.c, reload.c, reload1.c: Likewise. - * cccp.c (MIN, MAX): Define instead of min and max for consistency. + * gstdarg.h: Undefine _BSD_VA_LIST if we define va_list. - * tm-rs6000.h (HARD_REGNO_MODE_OK): Don't put DImode in reg 31; - similarly for TImode. + * cccp.c (append_include_chain): Fix setting of first_bracket_include. - * cse.c (cse_skip_to_next_block): Variable deleted. - (cse_insn): Don't set it anymore. - (cse_basic_block): Don't use cse_skip_to_next_block; instead, look - for unconditional jumps explicitly; correctly handle unconditional - jumps to the end of the basic block by extending the basic block in - that case. + * loop.c (init_loop): Use word_mode, not SImode. - * reload1.c (alter_reg): Ensure that stack slot is always the correct - mode. + * x-dpx2: New file. + * x-dpx2200, x-dpx2300: Files deleted. + * configure (m68k-bull-sysv*): Fatal error unless --with-gas. + Always use x-dpx2. -Mon Aug 26 06:20:43 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * libgcc2.c (XFtype): Turn off definition; not used. + (TFtype): Define only if needed. - * cplus-type2.c (build_functional_cast): Treat constructor casts as - having cleanups in this function. - * cplus-decl.c (finish_decl): Use cleanups created by functinal - casts used as initializers. +Tue Jul 7 11:57:44 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * cplus-init.c (expand_member_init): Call error with - IDENTIFIER_POINTER, not DECL_NAME, of NAME. + * tahoe.md (call_value): Add `=' to output operand constraint. + * arm.md (call_value): Likewise. + * gmicro.md (negsf2, negdf2, abssf2, absdf2): Likewise. + (peephole for moving returned value to fp reg): Likewise. - * cplus-method.c (fndecl_as_string): Don't skip `in_charge' - parameter twice. + * longlong.h (SI_TYPE_SIZE): Renamed from LONG_TYPE_SIZE. - * cplus-init.c (build_new): Delete code which short-circuited - multiple indirections in ABSDCL and made everything look like just a - single level of indirection. + * longlong.h (machine independent code): #define udiv_qrnnd to call + __udiv_using_sdiv if we have sdiv_qrnnd but not udiv_qrnnd. + * libgcc2.c (__udiv_using_sdiv): New function. + * Makefile.in (LIB2FUNCS): Add __udiv_using_sdiv. - * cplus-typeck.c (warn_for_assignment): Now takes a FUNCTION_DECL - instead of an IDENTIFIER_NODE as an argument. Also, print - reasonable message when ARGNUM < 0. +Mon Jul 6 23:28:29 1992 Mike Stump (mrs@wombat.gnu.ai.mit.edu) - * cplus-typeck.c (type_unknown_p): If TREE_CODE (EXP) == TREE_LIST, - it's type is unknown. + * cp-dem.c, cp-lex.c, cp-method.c, cp-xref.c: Do not include + string.h or strings.h. - * cplus-typeck.c (commonparms): Don't insert default parmeter values - into existing arg lists. Instead, unify them into new ones only. +Mon Jul 6 18:32:31 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cplus-typeck.c (convert_for_{initialization,assignment}): Pass - FNDECL instead of function name. Use `lang_printable_name' to pass - printable name to `warn_for_assignment'. + * emit-rtl.c (operand_subword): Avoid conditionals in macro arg. - * cplus-typeck.c (convert_arguments): Don't forcibly convert ptrs to - other things into ptrs to functions just to satisfy the conversion - of virtual functions. + * Changes to support execution on 64-bit machines. + * machmode.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT, HOST_PTR_PRINTF): + Provide default definitions. + (MAX_SHORT): New macro. + (GET_MODE_BITSIZE): Cast result and shift constant to HOST_WIDE_INT. + * rtl.h (union rtunion_def): Add field rtwint. + (XWINT): New accessor macro. + (INTVAL): Use XWINT, not XINT. + (exact_log2, floor_log2, plus_constant, plus_constant_for_output): + Now macros that cast arg to HOST_WIDE_INT. + (NULL, NULL_PTR): Provide default definitions. + (GEN_INT): New macro. + (get_integer_term): Now returns HOST_WIDE_INT. + * tree.h (NULL, NULL_PTR): Provide default definitions. + (INT_CST_LT, INT_CST_LT_UNSIGNED): Cast to HOST_WIDE_INT. + (struct tree_int_cst): Pieces of constant are HOST_WIDE_INT, not + long. + (exact_log2, floor_log2, build_int_2): Now macros, like rtl.h. + * real.h (REAL_VALUE_TYPE, union real_extract): Use HOST_WIDE_INT, + not long. + (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XWINT instead of XINT. + * rtl.def (CONST_INT): Operand type now "w". + (CONST_DOUBLE): Change operands from type "i" to "w". + * basic-block.h (REGSET_ELT_BITS): Always use HOST_BITS_PER_WIDE_INT. + (REGSET_ELT_TYPE): New macro; same as HOST_WIDE_INT. + * expr.h (ARGS_SIZE_RTX): Use NULL_RTX in expand_expr call. + (plus_constant): Remove duplicate declaration. + * hard-reg-set.h (HARD_REG_SET): Only scalar type we use + is HOST_WIDE_INT; array is array of HOST_WIDE_INT. + * loop.h (struct induction): Field CONST_ADJUST is now HOST_WIDE_INT. + (loop_n_iterations): Now unsigned HOST_WIDE_INT. + (loop_iterations): Returns HOST_WIDE_INT. + * c-parse.y, cexp.y, c-decl.c, c-lex.c, c-typeck.c, caller-save.c: + Change 0 or NULL when passed as a parameter that should be a pointer + to NULL_TREE, NULL_RTX, or NULL_PTR, as appropriate. + * calls.c, cccp.c, combine.c, cp-lex.c, cse.c, dbxout.c: Likewise. + * dwarfout.c, emit-rtl.c, explow.c, expmed.c, expr.c: Likewise. + * final.c, flow.c, fold-const.c, function.c, gcc.c: Likewise. + * genattrtab.c, genpeep.c, genrecog.c, global-alloc.c: Likewise. + * jump.c, local-alloc.c, optabs.c, recog.c, reg-stack.c: Likewise. + * regclass.c, reload.c, reload1.c, reorg.c, rtl.c: Likewise. + * rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c: Likewise. + * toplev.c, unroll.c, varasm.c, loop.c, xcoffout.c: Likewise. + * caller-save.c, combine.c, cp-class.c, cp-decl.c, cp-method.c: + Cast and declare objects used to refer to wide values as HOST_WIDE_INT. + Use HOST_BITS_PER_WIDE_INT instead of HOST_BITS_PER_INT. + * cp-pt.c, cp-type2.c, cp-typeck.c, cse.c, dbxout.c: Likewise. + * dwarfout.c, emit-rtl.c, explow.c, expmed.c, expr.c: Likewise. + * final.c, fold-const.c, genattrtab.c, recog.c, reg-stack.c: Likewise. + * regclass.c, reload.c, sched.c, stmt.c, stor-layout.c: Likewise. + * loop.c, toplev.c, unroll.c, varasm.c: Likewise. + * caller-save.c, combine.c, flow.c, global-alloc.c, reorg.c, sched.c: + When refering to regsets, use type REGSET_ELT_TYPE. + * calls.c, combine.c, emit-rtl.c, explow.c, expmed.c, expr.c, final.c: + Use GEN_INT macro when making CONST_INTs. + * function.c, jump.c, loop.c, optabs.c, recog.c, reload1.c: Likewise. + * unroll.c: Likewise. + * cp-decl.c, cp-ptree.c, print-tree.c: Use HOST_PTR_PRINTF when + printing pointer values. + * cccp.c, cexp.y, gcc.c (NULL, NULL_PTR): Provide default definition. + * c-common.c (NULL): Remove definition from here. + * c-decl.c (NULL): Likewise. + (finish_struct): Ensure high-order part of width is zero. + * cp-decl.c (finish_enum): Likewise. + * c-lex.c (yylex): Call build_int_2 in more portable way. + (yyprint): Print constant different ways, depending on host parameters. + * final.c (output_asm_insn, output_addr_cont): Likewise. + * genattrtab.c (write_test_expr): Likewise. + * print-tree.c (print_node_brief, print_node): Likewise. + * cp-decl.c (xref_tag): Remove explicit reference to modes. + * cp-method.c (build_overload_value): Likewise. + * cp-lex.c (real_yylex): Make accumulating bits for constant + more portable. + * cse.c (uid_cuid): Now pointer to int instead of to short. + (exp_equiv_p): Change ifs on GET_RTX_FORMAT to a switch. + Add format code of "w". + * emit-rtl.c (gen_rtx): Add format code of "w". + * jump.c (rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise. + * loop.c (rtx_equal_for_loop_p): Likewise. + * reload.c (operands_match_p): Likewise. + * rtl.c (copy_rtx, copy_most_rtx): Likewise. + * rtlanal.c (rtx_equal_p): Likewise. + * sched.c (rtx_equal_for_memref_p): Likewise. + * explow.c (plus_constant_wide): Formerly plus_constant; argument + is HOST_WIDE_INT. + (plus_constant_for_output_wide): Similarly. + * fold-const.c: Use MAX_SHORTS for dimension of array of shorts. + * genattrtab.c (NULL_ATTR): New macro. + (attr_rtx): Use XWINT, not XINT, for CONST_INT. + Add case "w". + (check_attr_test, write_test_expr, main): Use XWINT, not XINT, + for CONST_INT. + * genemit.c (gen_exp): Use "NULL_RTX" instead of "0" when + emitting null. + Use GEN_INT and proper width when emitting a CONST_INT. + Abort if trying to write a CONST_DOUBLE. + * genrecog.c (struct decision): Add new fields TEST_ELT_ZERO_WIDE + and ELT_ZERO_WIDE. + (add_to_sequence, not_both_true, merge_trees, write_tree_1): + Use new fields. + * global-alloc.c (INT_BITS, INT_TYPE): Use HOST_WIDE_INT for type + of conflict matrix. + * loop. (loop_n_iterations): Now HOST_WIDE_INT. + * recog.c: Remove redundant declarations of plus_constant_for_output + and copy_rtx. + * rtl.c: Declare atol if needed. + (rtx_format): Add code for "w". + (read_rtx): Read code "w" field with atol if required. + (init_rtl): Fields of CONST_DOUBLE are now type "w". + * rtlanal.c (get_integer_term): Returns HOST_WIDE_INT. + * cccp.c, toplev.c: Error function args are HOST_WIDE_INT (kludge). + * toplev.c (exact_log2_wide): Renamed from exact_log2 and now has + arg of type HOST_WIDE_INT. + (floor_log2_wide): Similarly. + * tree.c (permalloc): Type of SIZE arg is int, not long. + (build_int_2_wide): Renamed from build_int_2 and has args of + type HOST_WIDE_INT. + * unroll.c (loop_iterations): Now returns HOST_WIDE_INT. + * varasm.c (immed_double_const): Arguments are now HOST_WIDE_INT. -Sun Aug 25 22:44:57 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Mon Jul 6 14:56:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-typeck.c (compparms): Deal with STRICT == 3. - * cplus-search.c (get_first_matching_virtual): Call `compparms' with - STRICT == 3. + * c-common.c (decl_attributes): Don't set DECL_PACKED on VAR_DECL. - * cplus-lex.c (operator_name_string): Don't abort if we cannot find - a operator name for NAME. Instead, return identifier for - . + * Makefile.in (GCC_CFLAGS): + Use CROSS_GCC_CFLAGS instead of -B for tooldir. + * cross-make (CROSS_GCC_CFLAGS): Define as -B for tooldir. -Sun Aug 25 15:42:59 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-decl.c (finish_function): If return type of `main' is not `int', + warn instead of doing DEFAULT_MAIN_RETURN. - * cplus-xref.c (FILE_NAME_ABSOLUTE_P): New macro. - (GNU_xref_file): Use it. - (open_xref_file): Use new macro XREF_FILE_NAME if defined. - * cplus-lex.c (FILE_NAME_NONDIRECTORY): New macro. - Used frequently instead of strrchr. - * xm-vms.h: Define those three macros. + * collect2.c, dwarfout.c, halfpic.c: Don't incude string.h. - * optabs.c (expand_binop): Use word mode for force_reg on op1 of shift. + * c-decl.c (duplicate_decls): Let char *foo () match void *foo () + only if one of them came from a system header file. - * out-m68k.c (singlemove_string): Use moveq when appropriate. + * stmt.c (pushcase): Fix typo. - * final.c (split_double): Handle all integer constants. - * out-m68k.c (output_move_double): Use split_double for all constants. - * ??? Most out-*.c need changing. + * Makefile.in (ALLOCA_FINISH): Make default `true'. - * c-decl.c (finish_enum): Make some local vars unsigned. - * c-common.c (type_for_size): - * c-convert.c (convert_to_integer): - * tm-i860.h (ASM_OUTPUT_ASCII): - * c-parse.y (yylex): - * expr.c (get_pointer_alignment): - * stor-layout.c (layout_union, layout_record): - * tree.c (get_unwidened, get_narrower): + * cccp.c (main): Clear first_bracket_include for -I-. + Set first_system_include for first system header directory. + (is_system_include): Start search at first_system_include. - * expr.c (emit_library_call): Don't declare va_list as register. - * final.c (asm_fprintf): Likewise. - * tree.c (build, build_nt, build_parse_node): Likewise. +Mon Jul 6 12:58:27 1992 Chip Salzenberg (chip@tct.com) - * expr.c (do_jump_for_compare): Don't assume the compare survives - when the branch is emitted. + * cccp.c (INCLUDE_LEN_FUDGE): Defined. + (append_include_chain): New function. Adds directory(ies) + to include chain and updates value of max_include_len. + (main, path_include): Use append_include_chain. + (do_include): Use INCLUDE_LEN_FUDGE. - * expr.c (convert_move): Fix typo in prev change. + * tree.h (DECL_IN_SYSTEM_HEADER): Defined. + (struct tree_decl): Add in_system_header_flag. + * c-common.c (declare_function_name): For __FUNCTION__ + and __PRETTY_FUNCTION__, set DECL_IN_SYSTEM_HEADER instead + of TREE_USED to supress `unused' warnings. + * c-decl.c (duplicate_decls): Merge DECL_IN_SYSTEM_HEADER flag. + * print-tree.c (print_node): Display TREE_RAISES and + DECL_IN_SYSTEM_HEADER flags. + * toplev.c (compile_file): Do not warn if an unused DECL + has DECL_IN_SYSTEM_HEADER set. + (rest_of_compilation): Do not set TREE_USED on static + functions defined in system headers; this will be taken + care of with DECL_IN_SYSTEM_HEADER. + * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER on permanent + decls defined in system headers. + * objc-actions.c (build_module_descriptor,add_objc_decls): + Set DECL_IN_SYSTEM_HEADER instead of TREE_USED on compiler- + created decls. - * emit-rtl.c (fconst2_rtx, dconst2_rtx): New vars. - (init_emit_once): Initialize them. +Mon Jul 6 10:17:30 1992 Michael Collison (collison at osf.org) - * expmed.c (extract_bit_field, store_bit_field): - For multi-word field, do words from least significant first. + * i386.h (SUBTARGET_SWITCHES): + Incoporate SUBTARGET_SWITCHES into TARGET_SWITCHES. + (HALF_PIC_P, HALF_PIC_NUMBER_PTRS, HALF_PIC_NUMBER_REFS, + HALF_PIC_ENCODE, HALF_PIC_DECLARE, HALF_PIC_INIT, + HALF_PIC_ADDRESS_P, HALF_PIC_PTR, HALF_PIC_FINISH): + Define these as stubs if not OSF/1 platform. + * i386.md (movsi): Recognize half-pic moves. - (extract_split_bit_field): OP0 is only the first word of the - source, so if this is a SUBREG, must call operand_subword on - SUBREG_REG (OP0) instead of OP0. +Mon Jul 6 11:16:47 1992 Tim Moore (moore@defmacro.cs.utah.edu) - * varasm.c (output_constructor): Correctly output constants for - bitfields which are greater than HOST_BITS_PER_INT. Use - TREE_INT_CST_HIGH for the high bits. + * pa.h (ASM_DECLARE_FUNCTION_NAME): Fix typo - * Makefile.in (ENQUIRE_CFLAGS, ENQUIRE_LDFLAGS): New parameters. - (enquire, enquire.o): Use them. +Mon Jul 6 08:48:51 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) - * tm-sysv4.h: New file, cut out from tm-m88k.h. - * tm-m88k.h: Include that. + * m68k.md (swapsi): Add `+' operand constraints. + (insert to memory recognizer): Add `+'. + (peephole for moving returned value to fp reg): Add `='. - * vax.md (sltu, sgeu): New patterns. +Sun Jul 5 16:34:24 1992 John F Carr (jfc at Achates.mit.edu) -Sat Aug 24 11:19:43 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * vax.md (addsi3): Code generation improvements (whether to use movab). - * cplus-init.c (build_offset_ref): Pass a TYPE_DECL node, not a - RECORD_TYPE node, to `build_component_type_expr'. + * vax.md (andsi3, andhi3, andqi3): If one of the source operands + is a constant, complement that operand instead of a register or + memory operand. - * cplus-cvt.c (convert_to_integer): Warn about conversion from - integral type to enumeral type if FLAG_INT_ENUM_EQUIVALENCE is zero. - (convert_force): Set FLAG_INT_ENUM_EQUIVALENCE non-zero when calling - `convert'. +Sun Jul 5 13:16:15 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cplus-typeck.c (build_x_*_op): Don't try using built-in operators - if user-defined ones are not accessible. + * combine.c (try_combine): When splitting using a DEFINE_SPLIT, + update the number of sets of the destination if it is being set + twice. Also update reg_significant. - * cplus-init.c (expand_aggr_init_1): Use `expand_expr' to set the - DECL_RTL of the TARGET_EXPR. This is a generalization of code that - used to require that EXP be some sort of _DECL. +Sun Jul 5 13:14:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-init.c (init_init_processing): Link global runtime functions - __builtin_new and __builtin_delete to their canonical operator - names (i.e., op$nw and op$dl). + * c++: Fix typo testing $quote for nullness. - * cplus-lex.c (init_lex): Don't see `dynamic' as a reserved word if - SOS is not defined. - * cplus-decl2.c (flag_dynamic): Delete unused variable. + * cse.c (simplify_binary_operation): Don't put sum of two symbolic + addresses into a CONST. - * cplus-decl.c (define_case_label): Give error when case label cuts - into a binding contour with cleanups. - * stmt.c (last_cleanup_this_contour): Changed name from - `this_contour_has_cleanups_p'. Now returns last cleanup, if there - was one. - * tree.h: Declare `last_cleanup_this_contour'. + * m68kv4.h (ASM_OUTPUT_ALIGNED_COMMON): #undef this. + (ASM_OUTPUT_ALIGNED_LOCAL): #undef this. + (ASM_OUTPUT_ASCII): New overriding definition. + (ASM_OUTPUT_CASE_END): New overriding definition. - * cplus-decl.c (grokdeclarator): Don't let member functions have - static linkage. + * c-typeck.c (convert_arguments): No -Wconversion warning + if the function wants an enumeral type. - * cplus-tree.c (layout_basetypes): Copy non-virtual basetypes of - virtual basetypes so that search routines can find ambiguities - arising in lattices where the same type appears as a non-virtual - basetype of different types in the lattice. - (copy_nonvirtual_children): Implement a recursive deep-copy of - nonvirtual types in an inheritance lattice. + * tek6000.h, tek6100.h, tek6200.h: New files. + * configure (ns32k-tek6100-bsd, ns32k-tek6200-bsd): New alternatives. + * config.sub: utek is synonym for bsd. - * cplus-search.c (lookup_fnfields): Correctly catch case where there - are multiple functions in an MI lattice. - * cplus-call.c (ideal_candidate): If we find a requested function is - ambiguous in an MI lattice, set CP->EVIL to 1. - (build_method_call): If CP->EVIL is set on return from - `ideal_candidate', return error_mark_node. + * Makefile.in (alloca.o): Add -c. - * cplus-decl.c (lookup_name): Prefer finding typenames to overloaded - functions where there's a collision. - (pushdecl): Don't override the declaration of global functions with - a TYPE_DECL that has the same name. `lookup_name' now knows how to - find both. - (globalize_nested_type): Changed to look in IDENTIFIER_TYPE_VALUE - slot for global definitions that are not in IDENTIFIER_GLOBAL_VAL. - * cplus-type2.c (build_functional_cast): Deal with more ambiguities - and more cases where the syntactic form `NAME ( PARMS )' can have - meaning. + * Makefile.in (start.encap): Use LIBGCC1, not LIBGCC1_TARGET. + (GCC_CFLAGS): Find executables in $(tooldir)/bin, not $(tooldir). + (libgcc1.cross): New target. + (all.cross, cross-test): Depend on libgcc.a. + * cross-make (LIBGCC1): Use libgcc1.cross. -Sat Aug 24 01:33:00 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (USER_H): va-hp800.h changed to va-pa.h. + (install-common): Fix typo. - * expr.c (convert_move): Make integer extension general. + * stmt.c (pushcase, pushcase_range): Use STRIP_NOPS on the values. - * optabs.c (init_extends, gen_extend_insn): Finish and turn on. + * x-amix, x-i860v4, x-ncr3000, x-sparcv4: Undo last change. + * x-i386v4, x-m68kv4: Files deleted. + * configure (i386-*-sysv4, i486-*-sysv4, m68k-*-sysv4): + Corresponding changes. - * reload1.c (possible_group_p): Insist on regs in needed class. + * c-decl.c (duplicate_decls): Don't warn about disagreement in `inline' + except when non-inline fn is made inline after a call or definition. - * SYSCALLS.c (alloca): Declare arg as size_t. +Sun Jul 5 10:25:22 PDT 1992 Ron Guilmette (rfg at ncd.com) - * expr.c (store_constructor): Handle union constructor. + * c-decl.c (grokdeclarator): Make `long long long' an error, not a + warning. Make duplicate qualifiers do pedwarn, not warning. - * final.c (split_double): long long CONST_DOUBLE now has VOIDmode. + * c-decl.c (pushdecl): Always create a new (variant) ..._TYPE node + for each new TYPE_DECL node created. - * optabs.c (expand_binop): Fix carry propagation bugs. - Handle carry propagation for big-endian case. + * libgcc2.c (UQItype, SItype, USItype, DItype, UDItype, SFtype, DFtype, + XFtype, TFtype): Typedefs added. + (SI_TYPE_SIZE): Renamed globally from LONG_TYPE_SIZE. + Define names for ANSI C types to `bogus_type' over the range of lines + where we must always use the new mode-related types. Undef them again + at the end of that range (so we can used the ANSI types again), and + then define the mode-related type names to `bogus_type' to insure + those are not used from then on. -Fri Aug 23 21:29:46 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * libgcc2.c, longlong.h (DIstruct): Renamed globally from `longlong'. + (DIunion): Renamed globally from `long_long'. + Universally use the new mode-related type names for all functions + and macros which expect, yield, or otherwise rely on operands to be + of certain GCC-defined machine modes. - * cplus-decl.c (finish_decl): More PIC fixes. Also, don't assign - any storage for static member variables except when they are being - defined. +Sun Jul 5 11:11:00 1992 Torbjorn Granlund (tege@wombat.gnu.ai.mit.edu) - * cplus-init.c (build_virtual_init): Change interface to take - MAIN_ASSOC instead of FOR_TYPE. - (expand_aggr_init_1): Ditto. - (expand_recursive_init_1): Ditto. - (expand_aggr_vbase_init{_1}): Change interface to take an assoc - instead of a type. - (expand_recursive_init): Ditto. - - * cplus-pt.c (uses_template_parms): Handle PARM_DECL nodes. - - * cplus-search.c (get_base_assoc): Use ASSOC_MARKED instead of - ASSOC_BASETYPE_MARKED to mark visited nodes. - (lookup_field, loopup_fnfields): Use ASSOC_FIELDS_MARKED instead of - ASSOC_VBASE_MARKED when searching. - ({bfs_,un,bfs_un}marked2p): Deleted, unused. - (dfs_{un}mark2): Deleted, unused. - (dfs_unmark12): Deleted, unused. - (build_vbase_vtables_init): Change interface to take MAIN_ASSOC - instead of FOR_TYPE. + * pa.h: (TARGET_VERSION): Print " (hppa)". + * pa.md (zdepi recognizer): Add attribute. + (recognizers for SImode load and store with fpregs): Add `=' to + operand 0. -Fri Aug 23 18:31:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sat Jul 4 15:02:19 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (do_store_flag): Give up if can't directly compare args. + * configure (mips-*-sysv4): Don't set use_collect2. -Fri Aug 23 18:00:58 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-parse.y (primary): Wrap a NOP_EXPR around an enum value. - * function.c (instantiate_virtual_regs_1): Add new arg and now returns - int instead of void. - All callers changed. + * libgcc2.c (__builtin_saveregs for i860): Test __svr4__, not SVR4. + * va-i860.h: Test __svr4__. - * expr.c (compare_constants): Deleted. - (compare_from_rtx): Use simplify_relational_operation instead of - compare_constants; abort is not needed since - simplify_relational_operation will return 0 if given VOIDmode. - - * cse.c (fold_rtx): Correctly compute mode of operands being - compared. - -Fri Aug 23 17:16:27 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * stmt.c (expand_end_case): - Avoid special cases for modes when widening. - Realize __builtin_classify_type reduces to int constant. - - * optabs.c (emit_cmp_insn): New arg, MODE. All callers changed. - If both args are const_int, copy one to a reg. - -Fri Aug 23 15:54:21 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * make-cc1.com: Fix bug where cplus-parse.y was always being passed - through bison, whether it needed it or not. - -Fri Aug 23 15:20:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * stmt.c (expand_end_case): Remove Aug 12 change. - Convert index to nominal_type for subtraction. - -Thu Aug 22 14:34:21 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * configure, config.gcc: Switch to all-dashes config names. - - * gnulib2.c [U_udivdi3, L_muldi3]: Define __clz_tab for longlong.h. - -Thu Aug 22 00:28:29 1991 Torbjorn Granlund (tege at zevs) - - * longlong.h: Rename BITS_PER_LONG to LONG_TYPE_SIZE. - * longlong.h (__ibm032__): Define count_leading_zeros and umul_ppmm. - * longlong.h: Define UMUL_TIME and UDIV_TIME for some CPUs. - * longlong.h (__sparc__ umul_ppmm): Move two insn from end to the - nops. (Saves two insn.) - * longlong.h (__sparc__ umul_ppmm): Rewrite in order to avoid - branch, and to permit input/output register overlap. - * longlong.h (__29k__): Remove duplicated udiv_qrnnd definition. - * longlong.h (__29k__ umul_ppmm): Split asm instructions into two - asm statements (gives better code if either the upper or lower - part of the product is unused. - * longlong.h: Mention UDIV_NEEDS_NORMALIZATION in description of - udiv_qrnnd. - * longlong.h (IBMR2): Add udiv_qrnnd. - * longlong.h (add_ssaaaa, sub_ddmmss [C default versions]): Make __x - `unsigned long int'. - * longlong.h: Add `int' after `unsigned' and `long' everywhere. - * longlong.h: Add ARM, i860 support. - * longlong.h (sparc umul_ppmm): Use __asm__, not asm. - * longlong.h (IBMR2 umul_ppmm): Refer to __m0 and __m1, not to m0 - and m1 (overlap between output and input operands did not work). - * longlong.h: Add VAX, ROMP and HP-PA support. - * longlong.h: Sort the machine dependent code in alphabetical order - on the CPU name. - * longlong.h: Hack comments. - * longlong.h: Define BITS_PER_LONG to 32 if it's not already - defined. - * Define __BITS4 to BITS_PER_LONG / 4. - * Don't assume 32 bit word size in "count_leading_zeros" C macro. - Use __BITS4 and BITS_PER_LONG instead. - * longlong.h (68k): Define add_ssaaaa sub_ddmmss, and umul_ppmm - even for plain mc68000. - * longlong.h: Clean up comments. - * longlong.h: Don't use #elif. - * longlong.h: Use __asm__ instead of asm. - * longlong.h (sparc udiv_qrnnd): Make it to one string over several - lines. - * longlong.h: Preend __ll_ to B, highpart, and lowpart. - * longlong.h: Move array t in count_leading_zeros to gnulib2.c - Rename the array __clz_tab. - * longlong.h (umul_ppmm [C variant]): Make __ul...__vh - `unsigned int', and cast the multiplications. This way - compilers more easily can choose cheaper multiplication - instructions. - -Thu Aug 22 07:36:40 1991 Tom Wood (wood at dg-rtp.dg.com) - - * rtl.h: Declare simplify_relational_operation. - - * out-m88k.c (output_file_start): Put the `gcc2_compiled.' symbol - in the data section. Eliminates symbol translation problems with - debuggers. - - Changes from Ron Guilmette: - * toplev.c (compile_file): Use dwarfout_finish when done. - * final.c (output_source_line): Use dwarfout_line. - * dwarfout.c (dwarfout_finish): Rename from dwarfout_finalize. - * tm-m88k.h (ASM_OUTPUT_DWARF_LINE, ASM_FILE_END): No need for - dwarf specific actions. - -Thu Aug 22 05:29:57 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (can_combine_p): Don't combine if INSN has REG_RETVAL note. - (try_combine): Similarly, don't combine if I3 has REG_LIBCALL note. - - * flow.c (propagate_block): Don't use variable PREV in - nested blocks that shadows PREV at function level. - If we handle this insn normally, arrange to scan any insns that - were inserted in front of it for making auto-inc addressing. - - * integrate.c (save_for_inline_copying): Clear CONST_DOUBLE - memory chain. - - * toplev.c (fatal_insn_not_found): Now that it is called in final.c - when an insn doesn't match constraints, write different error - message in that case. - * genattrtab.c (write_attr_case): Call fatal_insn_not_found instead - of abort when constrain_operands fails. - -Thu Aug 22 05:29:09 1991 Matthew Self (mself at next.com) - - * rtl.c (add_dependence): Uses of RTX_UNCHANGING_P should now be - SCHED_GROUP_P. - -Thu Aug 22 00:34:20 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * recog.c (offsettable_address_p): Always pass QImode to addressp. - -Wed Aug 21 09:20:09 1991 Michael Meissner (meissner at osf.org) - - * tm-decrose.h (LINK_SPEC): Allow -pic-none, -glue, -noshrlib - switches. - (LIB_SPEC): Add -L/usr/ccs/lib to get new 1.1 linker to use static - libraries instead of shared libraries, since the shared library - support has not yet been added. - -Wed Aug 21 06:18:12 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * out-rs6000.c (print_operand, case 'Y', 'Z'): Fix typo in - auto-inc case. - * rs6000.md (movti): Add missing %U in memory cases. - - * tm-rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Indexed addresses are not - valid for DImode and TImode. - * out-rs6000.c (indexed_mem_operand): Deleted. - (print_operand, case 'X'): Don't use indexed_mem_operand; check - ourselves instead. - * rs6000.md (movdi, movti): Don't check for indexed memory operands. - -Tue Aug 20 16:02:41 1991 Tom Wood (wood at dg-rtp.dg.com) - - * sdbout.c (sdbout_parms): Handle parm passed in reg and living in - pseudo that was optimized away. - -Mon Aug 19 19:10:42 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (simplify_comparision, case NEG): Can only convert - (-a) < C to a > C if C is zero. - - * expmed.c (store_bit_field, extract_bit_field): Use WORD_MODE for - mode of BITS_PER_WORD to avoid conflict with other use of variable - named MODE. - - * cse.c (cse_insn): Don't make a REG_EQUAL note whose contents - are a REG; the REG might have been eliminated. - - * reload1.c (reload_as_needed): Pass any CLOBBERs made when reloading - an insn to `forget_old_reloads_1'. - -Mon Aug 19 12:47:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * configure (m88k-luna): Rename alternative appropriately. - - * cse.c (simplify_relational_operation): Split out from ..._binary_... - (fold_rtx): Use that function for relationsals. - (simplify_binary_operation): Don't allow relationals. - * combine.c (subst, gen_binary): Use simplify_relation_operation. - * integrate.c (subst_constants): Likewise. - * jump.c (jump_optimize): Likewise. + * c-decl.c (finish_function): Set BLOCK_SUPERCONTEXT of outer block. - * c-common.c (shorten_compare): Warn about unsigned >= 0. + * x-m88kv3: File deleted. -Sun Aug 18 17:29:16 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * x-sparcv4 (X_CFLAGS): Add -dn. - * tm-vms.h (ASM_OUTPUT_EXTERNAL): Remove code to round the storage - size up to a multiple of 4 bytes. + * reorg.c: Move the #ifdef DELAY_SLOTS after the #includes. -Sun Aug 18 15:35:27 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * dbxout.c (dbxout_parms): - Handle parm passed in reg and living in pseudo that was optimized away. - - * function.c (init_function_start): Give decl_printable_name both args. - - * expr.c (compare_from_rtx): - Don't change to unsigned if too wide for host int. - * cse.c (fold_rtx): Use mode_arg0 to simplify comparison ops. - Update mode_arg0 when we look at value of cc0. - - * cse.c (cse_insn): Really don't record bitfield destinations - unless source is constant which fits. - But pre-truncate other constants. - - * config.subr: Allow $os to be empty. - - * function.c (lookup_static_chain): Check for 0 before inline function. - - * config.subr (pc532, minix): New alternatives. - - * configure (editing Makefile): Use cross-make. - * Makefile.in (install-cross): Change dep to install-gnulib. - -Sat Aug 17 17:18:05 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * All cplus-* files: Change the representation of the C++ - inheritance lattice for types. There is no longer such a thing as a - classtype_variant. Instead, types all have their own lattices - accessed via their CLASSTYPE_ASSOC field. - - * cplus-tree.h (lang_type): Delete fields OFFSET, - MAIN_CLASS_VARIANT, NEXT_CLASS_VARIANT, VIA_PUB_OR_VIRT. - Rename field AS_ID_LIST to ID_AS_LIST, since it's a list. - (CLASSTYPE_AS_ID_LIST): Renamed to CLASSTYPE_ID_AS_LIST. - Add field ASSOC_AS_LIST, which is a TREE_LIST whose TREE_VALUE is - the assoc for the type. - (CLASSTYPE_VIA_*, SET_CLASSTYPE_VIAS): Deleted. - (CLASSTYPE_OFFSET*): Deleted. - (CLASSTYPE_N_BASECLASSES): Now uses type's assoc. TYPE_BASETYPES - field is unused. Next change will make TYPE_BASETYPES hold the - assoc field. - (CLASSTYPE_VBASE_SIZE): Use slot in TYPE_LANG_SPECIFIC instead of - sneaking it into the TREE_TYPE field of the basetypes. - - (ASSOC_TYPE): Deleted. Now use ASSOC_VALUE everywhere. - (ASSOC_{BASETYPE,BASETYPES}): New macros. Both are operations on - assocs and return assocs. - (CLASS_ASSOC_BASETYPE): New macro. This performs roughly the same - function that CLASSTYPE_BASECLASS used to, but it retains no assoc - info in the type it returns. - (ASSOC_NEXT_ASSOC): New macro used for traversing assoc chains built - up by search routines. - (ASSOC_VIA_{PUBLIC,VIRTUAL}): New macros for accessing inheritance - information. CLASSTYPE_VIA_{PUBLIC,VIRTUAL} no longer used. - (ASSOC_CID): New macro. - - (DECL_ANON_UNION_ELEM): Deleted. Now anonymous union decls are - distinguished as FIELD_DECLs with NULL DECL_NAMEs and UNION_TYPE - types. - - (DERIVED_FROM_P): New macro. Change calls that testing inheritance - relationships (get_base_type and get_base_distance) to use this macro. - - * cplus-type2.c (basetype_or_else): Change interface to use/return an - assoc instead of a type. Change name to base_assoc_or_else. - - * cplus-tree.c (build_classtype_variant): Deleted. - (copy_type_lang_specific): Deleted. - * all cplus-* files: Everything that used to use CLASSTYPE_OFFSET on - types now uses ASSOC_OFFSET on assocs. - - * cplus-class.c (propagate_basetype_offsets): Change interface to use - assocs instead of types. Change name to propagate_assoc_offsets. - * cplus-search.c (get_base_type): Ditto; name changed to - get_base_assoc. - - * cplus-cvt.c (convert_pointer_to): Change interface to use an assoc - instead of a type. - (convert_pointer_to_vbase): Ditto. - * cplus-call.c (build_field_call): Ditto. - * cplus-class.c (get_vfield_offset): Ditto. - (build_method_call): Ditto. - (maybe_fixup_vptrs): Ditto. - * cplus-search.c (get_first_matching_virtual): Ditto. - (get_virtuals_named_this): Ditto. - (tree_needs_constructor_p): Ditto. - (get_virtual_destructor): Ditto. - (tree_has_any_destructor_p): Ditto. - (get_baselinks): Ditto. - (lookup_{field,fnfields}): Ditto. Also, use ASSOC_VBASE_MARKED - instead of CLASSTYPE_MARKED2 to mark virtual basetypes that have - been visited. - (build_vbase_vtables_init): Ditto. - ({build,free}_mi_matrix): Ditto. - * cplus-init.c (expand_aggr_init_1): Ditto. - (expand_aggr_vbase_init_1): Ditto. - (build_virtual_init): Ditto. - * cplus-class.c (build_class_init_list): Rewritten to build list with - assoc entries instead of types. Also, use new macro - ASSOC_BASEINIT_MARKED instead of CLASSTYPE_MARKED6. - (finish_base_struct): New argument ASSOCS is the list of assocs that - describe the basetypes of T. - - * cplus-tree.c (make_lang_type): Always initialize - CLASSTYPE_VBASE_SIZE to integer_zero_node. To test if a class has - virtual baseclasses, test CLASSTYPE_VBASECLASSES, not - CLASSTYPE_VBASE_SIZE. - - * cplus-class.c (finish_struct): Rewritten to use assocs instead of - types where appropriate. - - * cplus-search.c (get_base_distance): Change interface to use assocs - or types. Also, PATH_PTR argument is now an assoc chain, not a - TREE_LIST. Algorithm to find leftmost path is now more efficient. - (compute_visibility): Uses assoc chain instead of TREE_LIST of - types. - (recursive_bounded_basetype_p): New function. - (dfs_walk, dfs_* functions): Change to be called with assocs instead - of types. - (breadth_first_search, all bfs_*): Ditto. - cplus-tree.c (reverse_path): New function. Like nreverse, but works - on assoc chains. - - * cplus-class.c (build_vtable, prepare_fresh_vtable, - modify_vtable_{entries,entry},): Change interfaces to use assocs - instead of types. Use macro ASSOC_VTABLE_PATH_MARKED on the assocs - instead of CLASSTYPE_MARKED3. Use macro ASSOC_NEW_VTABLE_MARKED on - the assocs instead of CLASSTYPE_MARKED4. - - * cplus-dbxout.c: Now needs to know more about assocs. When assocs - are put in the TYPE_BASETYPEs field, it should not need to know - about lang_type. - - * cplus-decl.c (xref_tag): Rewritten to build proper assoc lists. No - longer builds basetype lists. - (finish_function): Make `flag_no_inline' really take effect. - - * cplus-tree.c (make_assoc): Changed for new assoc structure. The - fields in assocs are now: VALUE (pointer to TYPE that this assoc is - for), OFFSET (the byte offset of this basetype in the whole object), - VTABLE (the virtual function table that should be used to initialize - objects controlled by this assoc), VIRTUALS (the virtual functions - to use for initializing VTABLE), BASETYPES (a TREE_VEC of basetypes - that this assoc has, or NULL_TREE if none), NEXT_ASSOC (a temporary - slot used to point to the next assoc in an assoc chain), - VIA_{PUBLIC,VIRTUAL} bits saying whether this assoc is a basetype of - its parent via public or virtual inheritance. +Sat Jul 4 14:16:33 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cplus-ptree.c (print_lang_type): Modified as necessary to cope with - new inheritance structure. + * combine.c (SUBST): Ensure we don't call something that can make + a new undo entry in the middle of our making one. - * cplus-search.c (get_base_type_1): This function was unused and - wrong. Deleted. +Sat Jul 4 12:17:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-tree.c (layout_basetypes): Take new arg ASSOCS. Layout the - basetypes my modifying the assocs, not the types. - (layout_vbasetypes): Ditto. + * Makefile.in (cp-parse.c): Append YYEMPTY to cp-parse.h, not ...y. - * all cplus-* files: Removed dead code, unused variables, and change - asserts where appropriate. + * cse.c (simplify_unary_operation): Add aborts in zero_extend + and sign_extend cases, explaining how they might need to be changed. - * all cplus-* files: DECL_VIRTUAL_P is no longer used as a truth test - for whether or not a function is virtual. Use a test for non-NULL - DECL_VINDEX instead. + * i960.h (WORD_SWITCH_TAKES_ARG): Fix typo. -Sat Aug 17 15:16:40 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * x-amix, x-sparcv4, x-i860v4, x-i386v4, x-ncr3000: + Add -static to X_CFLAGS. + * x-m68kv4: New file. + * isc.h (HANDLE_SYSV_PRAGMA): Defined. - * function.h (inline_function_decl): Declare it. - * integrate.c: Include function.h; don't declare var here. +Sat Jul 4 15:18:33 PDT 1992 Ron Guilmette (rfg at ncd.com) - * rtl.h (regno_reg_rtx): Declare it. + * xm-spc-sol2.h: New file. - * stmt.c (expand_end_case): - When filling labelvec from case range, avoid overflow in i. + * tree.h (DECL_UID): Definition added. + (struct tree_decl): `uid' field added. + * tree.c (DECL_UID): Initialize this uniquely for each new ..._DECL. -Fri Aug 16 23:06:37 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * rtl.h (NOTE_INSN_DELETED_LABEL): Definition added. + * rtl.c (note_insn_name): Add entry for NOTE_INSN_DELETED_LABEL. + * final.c (final_scan_insn): Call `dwarfout_label' for each + `NOTE_INSN_DELETED_LABEL'. + * jump.c (delete_insn): Don't really delete CODE_LABELs corresponding + to user-declared lables... Turn them into NOTE_INSN_DELETED_LABELs + instead. - * c-typeck.c (build_binary_op_nodefault): - Take out warning added by recent changes. + * dwarf.h (AT_abstract_origin): Renamed from AT_specification. + * dwarfout.c (dwarf_attr_name): Likewise. + (dwarf_tag_name, dwarf_attr_name, dwarf_stack_op_name, + dwarf_typemod_name, dwarf_fmt_byte_name): Use normal DWARF prefixes + for string names of unrecognized values. + (is_block_body): New function added. + (DECL_NAME_FMT): Definition added. + (equate_decl_number_to_die_number, abstract_origin_attribute, + pure_or_virtual_attribute): New functions added. + (src_coords_attribute): Only define this is DWARF_DECL_COORDINATES + is defined. -Fri Aug 16 22:00:09 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * populate: New file. - * function.c (inline_function_decl): New var. - (lookup_static_chain): Decl is local if context is function being - inlined. - * integrate.c: Remove partially-completed previous change. - (expand_inline_function): Set inline_function_decl. + * function.c (instantiate_decls): Delete #if 1. -Fri Aug 16 21:41:10 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * flags.h, toplev.c, dbxout.c (use_gnu_debug_info_extensions): + Renamed from `use_gdb_dbx_extensions'. - * a29k.md (insv,extv): Changed POS / SIZE to POS / 8, since high - order bit of BP selects half-word position for half-word ops. + * toplev.c (main): Added support for -gdwarf+ and for -gxcoff+. -Fri Aug 16 18:52:35 1991 Jim Wilson (wilson at sphagnum.cygnus.com) +Sat Jul 4 08:39:47 1992 Tom Wood (wood@dg-rtp.dg.com) - * combine.c (distribute_links): Only put link on new insn if the - insn uses the register. If first find an insn that sets the - register but does not otherwise use it, then drop the link. - - * combine.c (distribute_links): Strip off SUBREG, ZERO_EXTRACT, - etc. from the destination of the set before passing it to - reg_mentioned_p and reg_referenced_p. - -Sat Aug 16 17:02:53 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * m88k.c (m88k_end_prologue): Reset frame_laid_out here. + (m88k_expand_prologue): Not here. - * cplus-pt.c (uses_template_parms): Run loop over _EXPR nodes from - TREE_CODE_LENGTH-1 to 0, not from TREE_CODE_LENGTH. + * m88k.h (IDENT_ASM_OPT, ALIGN_ASM_OPT, ASM_OUTPUT_CASE_LABEL): + Override svr4.h. - * cplus-decl.c (grokfndecl): Change `==' to `=' in assignment to - `raises' - (finish_decl): If FLAG_PIC is nonzero, leave initialized data in - common space. +Fri Jul 3 12:40:27 1992 Paul Eggert (eggert@twinsun.com) -Fri Aug 16 13:13:11 1991 James Van Artsdalen (james at bigtex.cactus.org) + * fold-const.c (fold_convert): When converting a floating point + constant to integer, warn about out-of-range values after truncating + to integer, not before. - * reg-stack.c (current_function_returns_real): New variable. - (reg_to_stack): Set it. - (stack_reg_life_analysis): Use it. - (emit_pop_insn): Return the new insn. - (convert_regs): Pop any stack regs live at the end of the last basic - block. +Fri Jul 3 19:34:07 1992 Mike Stump (mrs@hal) -Fri Aug 16 16:16:45 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * Makefile.in ($(srcdir)/cp-parse.c): extract YYEMPTY out of the + parser generated .c file and put in the parser .h so that cp-lex.c + does not have to define it. - * tm-sparc.h (SELECT_SECTION): Don't put relocatable values into - text space if generating position-independent code. + * cp-tree.c (__eprintf): Third argument line is now unsigned, + completes Ron's Jul 2 change. -Fri Aug 16 16:00:30 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Jul 3 15:03:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * protoize.c (__flsbuf): Decl deleted; no need. - [ultrix]: Include string.h, not strings.h. + * configure: Set FIXINCLUDES in Makefile based on sysv4 or not. + * x-amix (ENQUIRE_CFLAGS, FIXINCLUDES): Deleted. - * function.c (instantiate_virtual_regs_1): Bug adding NEW to addr of X. + * config.sub: Recognize i486 like i386. -Fri Aug 16 08:51:25 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * defaults.h (ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ADDR_VEC_ELT): + (ASM_OUTPUT_ADDR_DIFF_ELT, ASM_STABD_OP): New default definitions. + * final.c: Include defaults.h. + (ASM_STABD_OP): Deleted. + * Makefile.in (final.o) Depend on defaults.h. - * expr.c (expand_expr, case ABS_EXPR, MIN_EXPR, MAX_EXPR): Don't - allow TARGET to be a hard reg because evaluating the comparison - might clobber it. + * Makefile.in (toplev.o): Use MAYBE_TARGET_DEFAULT. + * configure: Set MAYBE_TARGET_DEFAULT for some targets. + Use 3, if target is i486... + Recognize i486 as well as i386 for most targets. -Thu Aug 15 23:38:04 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * x-hp320g (LIBGCC1, AR, RANLIB, RANLIB_TEST, LIBCONVERT): Deleted. + * t-hp320g (LIBGCC1, AR, RANLIB, RANLIB_TEST, LIBCONVERT): Defined. + * t-svr4 (FIXINCLUDES): Deleted. - * tm-m68k.h (PRINT_OPERAND): Use asm_fprintf to print immed prefix. + * Makefile.in (ENQUIRE_CFLAGS): Add -DNO_LONG_DOUBLE_IO. -Thu Aug 15 23:36:12 1991 Micheal Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * fold-const.c (BRANCH_COST): Add default definition. - * cplus-decl.c (finish_enum): Remove last traces of Wood's mistaken - changes for tag handling in C++. - * cplus-class.c (finish_struct): Ditto. + * cp-tree.h: Declare intQI_type_node, etc. + * cp-decl.c: Declare intQI_type_node, etc. + (init_decl_processing): Initialize those nodes. -Tue Aug 13 06:12:18 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Jul 2 15:18:33 PDT 1992 Ron Guilmette (rfg at ncd.com) - * jump.c (find_cross_jump): When avoiding CALL_INSNs, don't - return a CODE_LABEL as a cross-jump point; use next_real_insn instead - of next_nonnote_insn. + * amix.h (ASM_OUTPUT_CASE_END, ASM_OUTPUT_ALIGNED_LOCAL): Output + tabs before SET_ASM_OP. - * fold-const.c (optimize_bit_field_compare, merge_component_reference): - Use mode_for_size to get mode for word; don't use SImode. - * tree.c (build_index_type, build_index_2_type): Don't use SImode; - get mode of SIZETYPE instead. + * Makefile.in (dwarfout.o): Dependency on defaults.h added. - * optabs.c (emit_cmp_insn): Use type of int instead of SImode for - return from memcmp and bcmp. + * sparcv4.h: Include real.h. + (SET_ASM_OP): Undef it. -Mon Aug 12 17:54:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * svr4.h (IDENT_ASM_OP): Added generic svr4 definition. + (ASM_FILE_END, ASM_OUTPUT_IDENT): Use IDENT_ASM_OP. + (ALIGN_ASM_OP): Added generic svr4 definition. + (ASM_OUTPUT_CASE_LABEL): Added generic svr4 definition. - * stmt.c: Include recog.h. - * stmt.c (expand_end_bindings): Expect abort to return void. - (expand_end_case): Give tablejump whatever mode it wants. + * i860.c (strict_single_insn_op_p, relop): Deleted. + * i860.h (ASM_OUTPUT_CASE_LABEL): Fixed definition to use + ASM_OUTPUT_ALIGN and ASM_OUTPUT_INTERNAL_LABEL. + * i860b.h, i860v3.h (TARGET_VERSION): Definitions added. + * i860v3.h (CPP_PREDEFINES): Predefine __svr3__ rather than SVR3. - * integrate.c (integrate_type): New function. - * c-typeck.c (build_binary_op_nodefault): Rewrite last change. + * c-decl.c (named_labels): Change linkage to static. - * Makefile.in (install): Indirect through INSTALL_TARGET. - (install-native): New name for old install target. - (INSTALL_TARGET): New variable. - * cross-make (INSTALL_TARGET): Override it. + * assert.h (__eprintf): Declare 3rd arg as unsigned. -Mon Aug 12 17:25:48 1991 Michael Meissner (meissner at osf.org) + * cccp.c (do_include): Don't do fprintf's if inhibit_warnings. + Renamed system_header_p to angle_brackets. Use is_system_include. + (is_system_include): New function. + (redundant_include_p) : Renamed from lookup_include. - * out-mips.c (toplevel, override_options, siginfo): If the OSF/1 - SIGINFO signal is provided, invoke siginfo handler, which prints - which file is being compiled, and runs ps on the compiler and it's - parent. + * c-common.c (type_for_size): If no ANSI type matches, check for + matches with built-in mode-releated types. + (type_for_mode): Likewise. + * c-decl.c: Added declarations for mode-related internal type nodes. + (init_decl_processing): Initialize the new type nodes. + * c-tree.h: Added declarations for mode-related internal type nodes. + intQI_type_node, etc. - * make-decrose (CC, OLDCC): Define CC and OLDCC to be the same, so - that tests within Makefile.in work as expected. - (LIB2FUNCS_EXTRA): Put osf-main in the gnulib2 portion of the - library, instead of the gnulib1 portion. + * c-lex.c (yylex): For integers, rename shorts to parts. + Let the number of them be variable. Simplify overflow testing. + Don't use long long types unless ll was specified. + Don't warn twice. -Mon Aug 12 16:31:47 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Thu Jul 2 20:30:20 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - * explow.c (expr_size): Fix typo. + * gstdarg.h: #ifdef _STDARG_H, not __STDARG_H. -Mon Aug 12 14:27:31 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Thu Jul 2 18:18:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (expand_expr, case COND_EXPR): Fix typo in comment. - In the singleton code, don't accept a hard register as a target if - we are going to store into it before testing the condition because - that evaluation may involve a subroutine call which might clobber it. + * global.c: Renamed from global-alloc.c. - * rtl.h (SCHED_GROUP_P): Fix typo in definition. +Thu Jul 2 15:36:25 1992 Torbjorn Granlund (tege@wombat.gnu.ai.mit.edu) -Mon Aug 12 08:01:01 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * pa.c (zdepi_operand): New function. + (emit_move_sequence): Use it. + * pa.md: New pattern to recognize cases where zdepi can be used to + load immediate constant. + (insv): Allow obvious immediate values. + (insv + 1): New recognizer for non-obvious immediate values. - * jump.c (find_cross_jump): Look at REG_EQUIV notes in addition to - REG_EQUAL notes. - (do_cross_jump): Remove REG_EQUAL or REG_EQUIV notes present on only - one branch of the cross-jump so we don't get confused by them if we - cross-jump again. +Thu Jul 2 15:13:15 1992 Michael Meissner (meissner@osf.org) -Mon Aug 12 01:44:26 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * halfpic.c (half_pic_encode): Consider variables which are 'common' + variables to need pic fixup. Move the debug code, so that it prints + for all calls, and calls debug_tree also. + (half_pic_address): When doing eliminate_constant_term on a CONST, + do a XEXP (addr, 0) to get to the real address. - * unroll.c (unroll_loop): When naively unrolling loops, if the last - jump insn is an unconditional jump, and it does not jump to the loop - top, then it must be copied with the rest of the loop body. + * decrose.h (CPP_SPEC, CC1_SPEC): If neither -fbuiltin nor + -fno-builtin are passed, pass -fno-builtin, and renable the string + and memory builtins via macros. This is to support compiling the + OSF/1 kernel which has a prototyped exit function which takes three + arguments. With no -pic switches, default to using shared libs. - * rtl.h: Clean up documentation for uses of volatil and in_struct - fields of an rtx. - * gcc.texinfo: Document macros CONST_CALL_P, LABEL_PRESERVE_P, and - SCHED_GROUP_P. Clean up documentation for uses of used, in_struct, - and unchanging fields of an rtx. + * i386rose.h (CPP_SPEC, CC1_SPEC): If neither -fbuiltin nor + -fno-builtin are passed, pass -fno-builtin, and renable the string + and memory builtins via macros. This is to support compiling the + OSF/1 kernel which has a prototyped exit function which takes three + arguments. Turn off pic support until the 386 backend supports it. - * final.c (final_scan_insn): In the ASM_OUTPUT_LOOP_ALIGN code, - must verify that next exists before checking whether it is a label. + * x-i386rose (SHLIB): Use -pic-none instead of -L${BUILD}/usr/ccs/lib. -Sun Aug 11 16:46:17 1991 James Van Artsdalen (james at bigtex.cactus.org) + * x-decrose (SHLIB): Use -pic-none instead of -L${BUILD}/usr/ccs/lib. - * i386.md (cmpstrsi): Enable it. Now uses REG as output, not cc0. - Old cc0-output pattern remains for combining cmpstrsi & test pairs. + * mips.md (movsi): Rewrite handling of half-pic code so that load + address of symbol + value is handled. + (branch_zero): Don't allow branch comparing constant to 0. -Sun Aug 11 15:52:33 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Thu Jul 2 06:26:38 1992 Tom Wood (wood@dg-rtp.dg.com) - * dbxout.c (dbxout_symbol): Handle var-length array with reference. + * m88k.md (blockage insn): Renamed from profiler. + (epilogue insn): Don't provide this if a return insn will suffice. + (m88k_end_epilogue): If the last insn isn't a barrier, print a return. + * m88k.c (null_prologue): Renamed from null_epilogue. - * c-decl.c (xref_tag): Copy default mode from unsigned_type_node. - * explow.c (expr_size): Get it from size_type. - * reload1.c (allocate_reload_reg): No need to validate mode of - reload_in if that value is a const_int. + * m88k.c (condition_value): New function. + * m88k.md (compare word insns): New insns and define_split + patterns to take advantage of recent fold_truthop change. - * expr.c (expand_builtin): Get value mode properly, for memcmp. + * m88k.h (ADDITIONAL_REGISTER_NAMES): Represent the condition code + register as (reg:CC 0). Give it the names "cc" and "psr". + * m88k.md (superoptimizer sequences): New define_split patterns. + (add/sub with carry): New insns. + (add/sub DImode, ffssi2): Clobber the condition code register. -Sun Aug 11 15:52:33 1991 Jim Wilson (wilson at cygint.cygnus.com) +Wed Jul 1 13:37:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dbxout.c (dbxout_symbol): DECL_ASSEMBLER_NAME is a tree, not a - character string, so call IDENTIFIER_POINTER before printing it. + * gstddef.h Don't define macros associated with size_t unless we + actually want to declare size_t. Likewise for ptrdiff_t and wchar_t. - * fold-const.c (fold): When converting foo++ == CONST to ++foo == - CONST + INCR, the plus must have the same TREE_TYPE as the - postincrement, not the comparison. + * Makefile.in (install-common): Depend on xgcc, g++, c++, EXTRA_PARTS. + Don't delete specs from libsubdir unless it exists in build dir. -Sat Aug 10 22:58:01 1991 Michael Meissner (meissner at osf.org) + * va-pa.h: Renamed from va-hp800.h. + * gstdarg.h, gvarargs.h: Use new name. - * mips.md (extendqihi2 define_split): Use SImode on shifts rather - than HImode, and turn result register into SImode as well. + * news3.h, news3gas.h: New files. + * configure (m68k-sony-newsos3*): New alternative. -Sat Aug 10 21:00:59 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * romp.h (SIZE_TYPE): Defined. - * calls.c (emit_call_1): New argument is_const. Set CONST_CALL_P - true for the call_insn if is_const is true. - (expand_call): Pass is_const to emit_call_1. - * expr.c (emit_library_call): Pass no_queue to emit_call_1. - Document that no_queue means that the function call is const. - * local-alloc.c (validate_equiv_mem): Don't invalidate memory for - const calls. - * rtl.h: Update comments describing uses of rtl unchanging and - in_struct bits. - (CONST_CALL_P): New macro. True for a call_insn if it is calling - a const function. Uses the unchanging bit. - (SCHED_GROUP_P): New macro. True for an insn if it must be - scheduled together with the previous insn. Uses the in_struct bit. - * sched.c: Rewrite to use new SCHED_GROUP_P macro insead of - RTX_UNCHANGING_P. - (sched_analyze): Rewrite to use new CONST_CALL_P macro. + * configure: Support --exec-prefix. Simplify handling + detached arguments of options. - * sched.c (schedule_block): Don't schedule a block with a volatile - or traditional asm insn. There is currently no code to correctly - handle dependencies for them. + * isc.h, and other related files: + waiting for entries from karl@cs.umb.edu. - * combine.c (distribute_links): Fix typo in comment. +Wed Jul 1 12:04:53 1992 Ron Guilmette (rfg at ncd.com) -Sat Aug 10 18:42:22 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-decl.c (grokdeclarator): Don't mark file-scope register variables + as TREE_PUBLIC. - * emit-rtl.c (operand_subword): Replace explicit SImode references - with mode for BITS_PER_WORD bits. +Wed Jul 1 12:04:53 1992 Karl Berry (karl@cs.umb.edu) -Sat Aug 10 14:17:08 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i386iscgas.h (SIZE_TYPE, PTRDIFF_TYPE): Define these, since we + need to override GCC's defaults. - * calls.c (expand_call): Handle ARGS_GROW_DOWNWARD. + * configure (i386-*-isc): Use different files if we have gas. + * t-i386iscgas, i386iscgas.h, isc.h: New files + * i386isc.h: Include isc.h. Most of contents moved to isc.h. + * bsd386.h (ASM_OUTPUT_LABELREF) [NO_UNDERSCORES]: do not prepend an + underscore in this case. + * i386gas.h (CPP_SPEC): if -posix, do -D_POSIX_SOURCE. - * ns32k.md (call_value): Consistently realize function is operand 1. +Wed Jul 1 09:13:44 1992 Tom Wood (wood@dg-rtp.dg.com) - * cccp.c (do_include): Get current dir from nominal_fname. + * fold-const.c (fold_truthop): Renamed from merge_component_references. + (simple_operand_p): New function. + (range_test): Change JCODE parameter to the unconditional operation. + (fold_truthop): When branches are expensive, try to evaluate the + RHS unconditionally. Compute local variables as late as possible. - * expr.c (expand_builtin): Give cmpstr* a target in the mode it wants. - * optabs.c (expand_cmp_insn): Likewise. + * m88k.h (HANDLE_SYSV_PRAGMA): Replaces HANDLE_PRAGMA. + * m88k.c (m88k_handle_pragma_token): Deleted. -Fri Aug 9 09:59:27 1991 Tom Wood (wood at dg-rtp.dg.com) +Tue Jun 30 15:32:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c (output_symbols_for_block): Fix typo in iterating over - subblocks. + * c-decl.c (duplicate_decls): If newdecl for builtin function + has same return mode as the builtin, keep the builtin + but use newdecl's return type. - * make-m88k{,dgux,luna}: Eliminate m88k-trace.asm. - * tm-m88k.h, out-m88k.c: Make -mbig-pic a synonym for -fPIC. - Delete -mtrace-function. + * i386.md (lshrdi3_const_int): Fix typo in shr insn. - * Makefile.in (CROSS_TOOLS): New variable. - (gnulib1.null, gnulib2.ready): Depend on CROSS_TOOLS. - (gnulib1.null): Use $(AR) $(AR_FLAGS). - * cross-make (CROSS_TOOLS): Define as install-cross-tools. + * Makefile.in (GCC_CFLAGS): Add `-B$(tooldir)/'. -Fri Aug 9 15:21:16 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i386sun.h, rs6000-mach.h, sparc.h, sun2o4.h, sun3.h (LINK_SPEC): + Inhibit the default -e if -r or -nostdlib. - * optabs.c (emit_cmp_insn): Expect cmpstr* to have result operand. - Test the sign of the result we get. - i386.md needs to be changed. + * c-decl.c (lookup_label): Call label_rtx. -Fri Aug 9 11:09:22 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * c-parse.y (primary): Rearrange and clean up. In C_DECL_ANTICIPATED + case, always call assemble_external and set TREE_USED. - * make-cc1.com: Fix bug where the wrong program was being run to - generate insn-attrtab.c, and, add DEBUG option, so that images can be - linked to run under the debugger. +Mon Jun 29 22:27:49 1992 Mike Stump (mrs@wombat.gnu.ai.mit.edu) -Fri Aug 9 06:42:15 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cccp.c, cp-dem.c, dbxout.c, cp-lex.c, cp-xref.c, cp-method.c, + dwarfout.c, c-typeck.c, mips-tfile.c, protoize.c, collect2.c: Make + the compiler more consistent by using index and rindex everywhere + instead of sometimes using strchr and strrchr. - * genemit.c (gen_split): Add "_fail:" label here too. +Mon Jun 29 22:20:13 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * tree.h (STRIP_NOPS): Define macro here; add CONVERT_EXPR to list - of operations to possibly ignore. - * fold-const.c (STRIP_NOPS): Not here. - * expr.c (strip_nops): Delete function. - (string_constant): Use STRIP_NOPS macro instead of strip_nops function. + * regclass.c (regclass): Restore some accidentally-deleted code. - * global-alloc.c (expand_preferences): New function. - (global_alloc): Call it. +Mon Jun 29 12:48:05 1992 Nobuyuki Hikichi (hikichi@sra.co.jp) -Fri Aug 9 01:19:26 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * collect2.c (MY_ISCOFF): New macro. + (scan_prog_file): Use that instead of ISCOFF. - * optabs.c (emit_cmp_insn): Correct typo in spacing. + * mips.c (override_options) [MIPS_NEWS]: Call setlinebuf. - * unroll.c: Correct typo in comment. Document that unrolling a - loop by a multiple of the number of memory accesses is a win. - (unroll_loop): New variable last_loop_insn, points to the last - real insn in the loop, which will either be a jump or a barrier. - Use last_loop_insn instead of assuming that PREV_INSN (loop_end) - is that last real insn in the loop. - Standardize comments printed to loop dump file when we can't - unroll a loop, so that they all start with "Unrolling failure". - No longer assumes that the insn before the backward jump is a - compare unless HAVE_cc0. If not HAVE_cc0, then must copy this - insn, and for loop_iterations == 1 case, can not delete this insn. - If last_loop_insn is not a JUMP_INSN or BARRIER, then do not - unroll the loop. - (precondition_loop_p): Fail if loop_iteration_var is not live - before loop_start. - (copy_loop_body): Rewrite obsolete and misleading comment - concerning the splitting of address givs. - (back_branch_in_range_p): Correct typo in comment. No longer - assumes that PREV_INSN (loop_end) is the backward branch at the - end of the loop. - (fold_rtx_mult_add): Rewrite to use simplify_binary_operation. - (iteration_info): Fail if iteration variable is larger than - HOST_BITS_PER_LONG, or if it does not have an integer mode. - (find_splittable_givs): If an address giv was combined with - another address giv, then we can only split the first giv if the - second was actually reduced. - (loop_iterations): New variable last_loop_insn, use instead of - assuming that the last jump insn if PREV_INSN (loop_end). - Correct typo in comment. +Mon Jun 29 12:48:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Aug 8 17:57:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * gcc.c (do_spec_1): For %I, pass -iprefix, not -imacros. - * Makefile.in (gnulib1.null): Use *_FOR_TARGET variables. - (TARGET_TOOLPREFIX): New variable. - (AR_FOR_TARGET, AR_FOR_TARGET_FLAGS): New variables. - (RANLIB_FOR_TARGET, RANLIB_TEST_FOR_TARGET): New variables. - * cross-make: New file. - * configure: Insert cross-make into Makefile. + * c-common.c (decl_attributes): For `packed' on VAR_DECL, + set DECL_PACKED and DECL_ALIGN. - * tm-m68k.h (LEGITIMIZE_ADDRESS): Copy address before changing it. - (COPY_ONCE): New macro, subroutine for LEGITIMIZE_ADDRESS. + * configure: Update usage message. + (m68k-sony-newsos*, mips-sony-newsos*): New synonyms. - * toplev.c (main): Accept -g with warning if not supported. + * fold-const.c (merge_component_references): + Make sure the four fields correspond in the proper order. - * Makefile.in (install-cross-tools): Do nothing unless have gcc-cross. - (gnulib2.ready): Depend on install-cross-tools. + * c-lex.c (check_newline): Support HANDLE_SYSV_PRAGMA. + (handle_sysv_pragma): New function. + * c-pragma.c: New file. + * stor-layout.c (maximum_field_alignment): New variable. + (layout_decl): Use it. + * Makefile.in (C_OBJS, OBJC_OBJS): Add c-pragma.o + (c-pragma.o): New rule. -Thu Aug 8 14:34:53 1991 Ken Raeburn (raeburn at watch.com) + * i386.c (handle_pragma_token): Function deleted. + * i386v4.h (HANDLE_PRAGMA): Deleted. - * expr.c (c_strlen): New function; determines strlen of string const. - (expand_builtin, cases BUILT_IN_STRCMP, BUILT_IN_STRCPY): Call it - instead of relying on TREE_STRING_LENGTH. For strcmp, optimize - cases where two lengths are available, if at least one of them is - constant. - (expand_builtin, case BUILT_IN_MEMCMP): If alignment test fails, and - function was really BUILT_IN_STRCMP, delete length parameter before - expanding call. - - * tree.h (enum built_in_function): Added BUILT_IN_STRLEN. - * c-decl.c (sizet_ftype_string): New variable, for strlen prototype. - (init_decl_processing): Set it, and declare strlen and - __builtin_strlen as built-in functions. Deleted variable `decl' - since it was only assigned to, never read. - * expr.c (expand_builtin, case BUILT_IN_STRLEN): Implement it. - - * cplus-decl.c (sizet_ftype_string, init_decl_processing): Copy - changes from c-decl.c. Also initialize const_string_type_node. - -Thu Aug 8 14:34:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-decl.c (pushdecl): Just warn if trad. extern type is temporary. - -Wed Aug 7 15:16:55 1991 Jim Wilson (wilson at sphagnum.cygnus.com) - - * local-alloc.c (block_alloc): When converting a SCRATCH rtx to a - REG rtx, must clear the `used' bit. - -Tue Aug 6 14:17:09 1991 Jim Wilson (wilson at wombat.gnu.ai.mit.edu) - - * stmt.c (expand_start_bindings): Fix typo in comment or spacing. - * rtlanal.c (reg_referenced_between_p): Likewise. - (reg_set_last): Likewise. - * loop.c (make_loop_jump): Likewise. - * longlong.h (UDIV_NEEDS_NORMALIZATION): Likewise. - * local-alloc.c (update_equiv_regs): Likewise. - * global-alloc.c (hard_reg_copy_preferences): Likewise. - * fixcpp: Likewise. - * tm-m68k.h (CONDITIONAL_REGISTER_USAGE): Likewise. - * combine.c (reg_significant): Likewise. - * calls.c (expand_call): Likewise. - * cplus-tree.c (build_cplus_new): Likewise. - - * function.c (fixup_var_refs_insns): When emitting a move insn, - don't put it between a CALL_INSN and its USE insns as this will - break sched and reorg. Instead, put it before the USE insns. - - * combine.c (subst): Convert (ior (ashift A CX) (lshift A CY)) where - CX+CY equals the mode size to (rotate A CX). - - * out-sparc.c (emit_move_sequence): For DImode constants, can not - create a temporary register to hold the high part. - (output_scc_insn): When in a delay slot, verify that NEXT_INSN (insn) - really is the next insn. - - * sparc.md: Fix support for DImode constants. Two new patterns - added, one for high:DI operators and one for lo_sum:DI operators. - (*extend*): Rework these patterns. Don't accept memory input - operands in the define_expands, as this gives better code. - Delete patterns for combining two loads into a load and move; - these are obsoleted by combiner improvements. - Delete define_splits for splitting these obsolete patterns. - (one_cmplsi2): Can not accept general_operand destinations, only - register destinations. - - * tm-sparc.h (STACK_POINTER_OFFSET): Explain how value is derived, - and compute in terms of another macro. - (STRUCT_VALUE_OFFSET): Explain how value is derived. - (FIRST_PARM_OFFSET): Fix typo in comment. - - * expr.c (MOVE_RATIO): Check for HAVE_movstrdi. - (emit_block_move): Add code to use HAVE_movstrdi if present. - (emit_push_insn): Likewise. - - * final.c (final_scan_insn): When insn fails constraint check, - call fatal_insn_not_found instead of just aborting to make - debugging easier. - - * tree.c (integer_all_onesp): Rewrite code to avoid shift by - HOST_BITS_PER_INT which is undefined according to ANSI. Also, - abort for precision values not handled, i.e. those greater than - twice times HOST_BITS_PER_INT. - -Tue Aug 6 14:05:42 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * i386.md (seq,sne): Use setb/setnb mnemonics instead of setc/setnc: - GAS doesn't understand the latter yet. - -Tue Aug 6 13:01:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * Makefile.in (install-common): Use -d, not -f, for tooldir/bin. - -Tue Aug 6 10:37:02 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * make-cc1.com: Replacement file. This new version can build cc1plus - and cc1obj in addition to cc1 (known on VMS systems as gcc-cc1plus.exe, - gcc-cc1obj.exe and gcc-cc1.exe respectively). - -Tue Aug 6 06:30:09 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (canon_hash): If a REG in an operand is equivalent to a - constant, hash as if we had the constant. - (exp_equiv_p): See if a REG and constant are equivalent. - -Tue Aug 6 03:59:16 1991 Ken Raeburn (raeburn at watch.com) - - * cplus-tree.c (make_deep_copy): Handle PARM_DECLs. - - * cplus-init.c (build_offset_ref): Use DECL_CHAIN, not TREE_CHAIN - when trying to determine if a function is unique. - - * cplus-decl.c (start_decl): When constructing a decl tree for a - function template, copy last_function_parms to permanent storage, - and save it as the function argument list. Call build_lang_decl - instead of build_decl, instead of duplicating the extra work it does. - Set `overloaded' flag to 1. Call dont_forget_overload, so the - template decl won't get discarded. - Also deleted some commented-out code. - - * cplus-pt.c (uses_template_parms, cases VAR_DECL, FUNCTION_DECL): - Give a warning if template parms are only used in places where they - can't be resolved (e.g., return types or global or fixed-class - variable types). - (tsubst): Preserve storage qualifiers on type field, and pass it to - layout_type if it has changed. - (tsubst, case TEMPLATE_TYPE_PARM): Preserve storage qualifiers. - (tsubst, case INTEGER_TYPE): Process min and max fields, if needed. - (tsubst, case FUNCTION_DECL): Process arguments and result fields. - (tsubst, case PARM_DECL): New branch. Handle parm list for - FUNCTION_DECL nodes. - (tsubst, case TREE_LIST): Copy TREE_PARMLIST flag from source. - Don't bother processing TREE_CHAIN field if it is void_type_node. - (tsubst, cases POINTER_TYPE, REFERENCE_TYPE): Preserve storage - qualifiers. - (tsubst, case FUNCTION_TYPE): Eliminate recursion for simple common - cases for values and context fields. Preserve storage qualifiers. - (tsubst, default case): Print node type of correct variable in error - message. - (instantiate_template): Set function_maybepermanent_obstack to - permanent, along with the others, and restore old value after tsubst - call. This permits the PARM_DECL case to work. - -Mon Aug 5 22:44:51 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-tree.h (struct pending_inline): Add new field `deja_vu' to - mark if this pending_inline has already been seen. - * cplus-lex.c (do_pending_inlines): Set DEJA_VU when seen. - * cplus-lex.c (reinit_parse_for_method, cons_up_default_function): - Initialize DEJA_VU to 0. - * cplus-decl2.c (mark_inline_for_output): Don't add DECL to - PENDING_INLINES if it's already been seen. - * cplus-pt.c (instantiate_template): Initialize DEJA_VU to 0. + * g++: Reestablish symlink to c++. + Delete the testing of $TRACE--this could confuse people. + Delete spurious assignment of $version. - * cplus-method.c (do_inline_function_hair): Change some assignments - to asserts, since they seem to be copying values that are already - there. + * tree.h (DECL_PACKED): Store this in regdecl_flag. -Mon Aug 5 22:23:34 1991 Michael Meissner (meissner at osf.org) + * Makefile.in (LIB2FUNCS): Change _builtin_New to _caps_New. + * libgcc2.c: Change L_builtin_New to L_caps_New. - * genemit.c (gen_expand, main): Change FAIL macro to be a simple - goto _fail, and initialize the return value to 0 in the prologue. - This avoids a useless warning message that the MIPS C compiler - gives if a return is encountered inside of a do { ... } while (0). + * dbxout.c (dbxout_symbol): Pass 3 args to eliminate_regs. + Call alter_subreg for subregs. Delete subreg case later on. + Don't bother with reg_renumber--any pseudo reg is clearly + a variable that was not allocated. + * sdbout.c (sdbout_symbol): Call alter_subreg for subregs. + Don't bother with reg_renumber--any pseudo reg is clearly + a variable that was not allocated. -Mon Aug 5 21:28:06 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * sequent.h (SIZE_TYPE): Defined. + (LINK_LIBGCC_SPECIAL): Fix typo. - * cplus-xref.c (GNU_xref_file): Treat VMS like USG. +Mon Jun 29 12:04:57 1992 Tom Wood (wood@dg-rtp.dg.com) - * optabs.c (expand_binop): In libcall, use actual mode of op1. + * toplev.c (rest_of_compilation): Thread the prologue and epilogue + code immediately after reloading is done. + * sched.c (schedule_insns): Reposition the prologue and epilogue + notes as needed. + * reorg.c (dbr_schedule): Ditto. + * rtl.h (NOTE_INSN_PROLOGUE_END, NOTE_INSN_EPILOGE_BEGIN): New notes. + * rtl.c (note_insn_name): Record them. + * function.c (record_insns, contains, thead_prologue_and_epilogue_insns, + reposition_prologue_and_epilogue_notes): New functions. + * final.c: Include insn-flags.h. + (profile_after_prologue): New function. + (final_start_function): Use profile_after_prologue here when we + don't HAVE_prologue. + (final_scan_insn): Use profile_after_prologue when we scan + NOTE_INSN_PROLOGUE_END. (This happens when we do HAVE_prologue.) + Perform machine specific actions when the prologue-end and + epilogue-begin notes are scanned. + (final_scan_insn, BARRIER): Align only when something follows. + * Makefile.in (final.o): Depends on insn-flags.h. - * c-typeck.c (build_binary_op_nodefault): - In signed versus unsigned compare warning, note promotions of unsigned. + * m88k.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE): Define. + (DELAY_SLOTS_FOR_EPILOGUE, ELIGIBLE_FOR_EPILOGUE_DELAY): Delete. + * m88k.md (prologue, epilogue, profiler, locate1, locate2): New + patterns for representing prologues and epilogues. + * m88k.c (delay_slots_for_epilogue, eligible_for_epilogue_delay, + ok_for_epilogue_p): Delete epilogue delay slot functions. + (m88k_begin_prologue m88k_end_prologue m88k_expand_prologue): New + functions replacing m88k_output_prologue. + (m88k_begin_epilogue m88k_end_epilogue m88k_expand_epilogue): Ditto. + (preserve_registers): Delete epilogue delay slot mechanism and + change to output insns. + (emit_add, emit_ldst): New functions. - * c-parse.y (simple_if): Allow error instead of lineno_labeled_stmt. - (if_prefix): New subroutine of simple_if. +Sun Jun 28 23:06:04 1992 Brendan Kehoe (brendan@cs.widener.edu) - * gnulib2.c (__ashldi3, __ashrdi3, __lshldi3, __lshrdi3): - Accept second arg as int, not long long. + * Makefile.in (bootstrap, bootstrap2, bootstrap3): In each + passage of CC, use xgcc, not gcc. + * dostage2, dostage3: Likewise. -Sun Aug 4 22:31:53 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Sun Jun 28 09:48:18 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-except.c (cplus_expand_start_except): Set up variables - `current_exception_name_as_rtx' and `current_exception_parms_as_rtx'. - These variables are used to factor out calls to `expand_assignment' - and allow instead calls to `emit_move_insn', which takes about 1/2x - the compilation time when called directly. - (various places): Use `store_expr' instead of `expand_assignment' - when reasonable. - (cplus_expand_reraise): Take advantage of above changes. - (setup_exception_throw_decl): This is where *_as_rtx variables are - initialized. + * c-decl.c (duplicate_decls): If have char *foo () and + void *foo (...), make just a pedwarn. Add locals oldtype, newtype. + * c-typeck.c (self_promoting_args_p): No longer static. - * cplus-input.c (getch): Rewritten slightly to help GNU C optimizer. - * cplus-lex.c (yylex): In IDENTIFIER case, pre-test condition that - `getch' tests, and call `getc' directly when possible. This cuts - calls to `getch' by a factor of 4 for typical C++. + * flow.c (regno_uninitialized): Return 0 for global reg var. - * cplus-class.c (add_virtual_function): Memoize the first 256 - virtual function table index nodes (0x80000001, 0x80000002, etc.). - (finish_struct): Use `size_int' instead of `build_int_2' when we - know the int will not be changed in place (such as the size value of - virtual function tables). - * cplus-decl2.c (finish_table): Same change as for `finish_struct'. - * cplus-tree.c (layout_basetypes): Same change. - * cplus-decl.c (init_decl_processing): Use `size_int' to initialize - `size_zero_node' and `size_one_node'. + * c-typeck.c (initializer_constant_valid_p): + Allow CONVERT_EXPR if its operand is allowable. + (build_c_cast): For cast to union, make a CONSTRUCTOR. - * cplus-tree.h (TREE_OVERLOADS_ARROW): Define this. - * cplus-parse.y (operator_name): Set TREE_OVERLOADS_ARROW where - appropriate. - * cplus-type2.c (build_x_arrow): Use TREE_OVERLOADS_ARROW and - reorganize the logic for better speed. - * cplus-ptree.c (print_lang_type): Print when TREE_OVERLOADS_ARROW. + * sparc.c (SPARC_STACK_ALIGN): Add default definition. -Sun Aug 4 16:44:54 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c++: Use `set "$@"' to modify arguments. + Use a case to decide how to set $gcc. + $quote is now empty for false and the option name for true. + Error at end if $quote is nonempty. + $speclang is now the -x option itself. + Move the -v case above the -* case. - * rtlanal.c (reg_referenced_p): Properly handle ASM_OPERANDS. + * limitx.h: Add #ifndef. + * limity.h: New file. + * Makefile.in (install-limits-h): Append limity.h to the end. - * cse.c (cse_insn): When recording this_insn_cc0, build a COMPARE - rtl if SRC is a floating-point value. + * c-typeck.c (digest_init): Don't push spellings here (for union case). + (process_init_constructor): Fix errors for field not found. + (build_c_cast): Fold casts to union type. -Sun Aug 4 16:16:11 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * xm-vms.h (XREF_FILE_NAME): Fix typo. - * fold-const.c (fold): Don't compute shift with negative count. - * cse.c (simplify_binary_operation): Likewise. + * i386sun.h (SIZE_TYPE): Defined. -Sat Aug 3 15:57:55 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * Makefile.in (alloca.o): Delete the rm command. + Use -Demacs explicitly in compilation command. + (ALLOCA_FLAGS, ALLOCA_FINISH): Empty by default. + * x-pa-hpux, x-rs6000, x-rs6k-mach, x-dpx2200, x-dpx2300: + (ALLOCA_FLAGS, ALLOCA_FINISH): Deleted. + * x-dpx2200, x-dpx2300 (AS): Deleted. - * tm-vms.h (ASM_OUTPUT_EXTERNAL): Modify to always write the - correct size of the data object, if it is known. - (ASM_OUTPUT_COMMON): Modify to select the const or the data section - as appropriate. This definition shadows a definition in tm-vax.h - (const_section): Change data type to void. + * configure: Set broken_install for V.4. + (i386-*-aix, ns32k-*-genix, i386-*-isc, i386-*-sco): + (i386-*-sco3.2v4, m88k-dg-dgux): Set broken_install. + (m88k-*-sysv): Don't use x-m88kv3. + * x-m88kv3: File deleted. + * x-aix386, x-dpx2200, x-dpx2300, x-genix, x-i386isc, x-i386sco: + * x-i386v, x-i386v4, x-i860v3, x-i860v4, x-m88kdgux, x-m88kdolph: + * x-m88kv4, x-ncr3000, x-sparcv4, x-xenix (INSTALL): Deleted. -Sat Aug 3 15:02:40 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Jun 28 08:44:32 1992 Michael Meissner (meissner@osf.org) - * integrate.c (save_for_inline_copying): Clear constant pool after - saving constants into the insns. + * regclass.c (record_address_regs): Make the function static to + agree with the forward declaration. - * expr.c (expand_builtin, case BUILT_IN_MEMCPY): Ensure items - passed to emit_block_move are valid MEMs. + * mips.h (LINK_LIBGCC_SPECIAL): Define. - * recog.c (offsettable_address_p): Don't change INTVAL of a CONST_INT - within an address; that CONST_INT is likely shared and may be used - elsewhere in the address. +Sun Jun 28 06:14:56 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * stmt.c (expand_end_stmt_expr): Don't try to copy result to - REG; it might be BLKmode. + * expr.c (direct_load, direct_store): New variables. + (init_expr_once): New function. + (convert_move, convert_to_mode): Don't let gen_lowpart make a MEM in + a mode that can't be directly copied to or from memory. + (store_field): Don't directly store into memory in a mode that + can't be used in a single insn. + (expand_expr, case COMPONENT_REF): Likewise, for load. + * toplev.c (compile_file): Call init_expr_once. - * reload.c (MATCHES): Don't consider two things equal if they have - side effects. + * cse.c (fold_rtx, case SUBREG): If we can find nested SUBREGs + with an inner register in the mode we want, get rid of all the + SUBREGs provided they are all within a word. - * combine.c (try_combine): When replacing SET_DEST inside a PARALLEL, - don't replace it with something that has a side effect. + * cp-call.c, cp-class.c, cp-decl.c, cp-edsel.c, cp-lex.c: Don't + declare xmalloc and free here. + * cp-methods.c, cp-pt.c, cp-search.c, flow.c, integrate.c: Likewise. + * loop.c, opjc-actions.c, reload1.c, reorg.c, rtl.c: Likewise. + * stmt.c, tree.c, varasm.c: Likewise. + * toplev.c (xmalloc, xrealloc): Declare return types correctly. + * rtl.h, tree.h: Declare xmalloc and free here. + + * expmed.c (emit_store_flag): Keep the last target around if we + should preserve subexpressions. -Sat Aug 3 13:17:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sat Jun 27 07:11:28 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-decl.c (init_decl_processing): - If traditional, omit builtins with names that don't start with _. - Also omit if not optimizing. + * cse.c (cse_insn): See if we have a CONST_INT that is already in + a register in a wider mode. - * Makefile.in (combine.o, emit-rtl.o, expr.o, final.o, tree.o): - Depend on gvarargs.h. + * regclass.c: Major rework of regclass pass to do a better job of + setting up register preferences and replace the "preferred or + nothing" method with a class that should be used if the preferred + class cannot be allocated. + (MEMORY_MOVE_COST): Default value is 4, not 2. + (move_cost, may_move_cost): New arrays. + (init_reg_sets): Initialize them. + (struct costs): Replaces struct savings. + (costs): Replaces savings. + (op_costs): New array. + (altclass): Replaces preferred_or_nothing. + (reg_alternate_class): New function; replaced reg_preferred_or_nothing. + (regclass): Major rework. Use new recording methods; make two + passes if -fexpensive-optimizations; and refine REGNO_POINTER_FLAG + and loop_depth setting. + (record_reg_class): New function; replaces reg_class_record. + (copy_cost): New function. + (record_address_regs): Major changes. New parameters and simplified + and more efficient algorithm for chosing base vs. index regs. + * rtl.h (reg_alternate_class): Declare it. + * Makefile.in (regclass.o): Now includes reload.h and real.h. + * flow.c (dump_flow_info): Call reg_alternate_class instead of + reg_preferred_or_nothing. + * reload.c (find_reloads): Likewise. + (n_occurrences): No longer static. + * local-alloc.c: Use register alternate class instead of + preferred_or_nothing uniformly; change qty_preferred_or_nothing + to qty_alternate_class. + * global-alloc.c (global_alloc, retry_global_alloc): Call + reg_alternate_class instead of reg_preferred_or_nothing. + (find_reg): Change ALL_REGS_P argument to ALT_REGS_P. + Use alternate register class instead of ALL_REGS if can't allocate + in preferred class. -Fri Aug 2 11:00:10 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cccp.c (install): Accept separate arguments for integer and + pointer hash values; don't assume the sizes are the same. + All callers changed. - Merge some VMS changes from 1.39 that did not make it to 2.0. - These changes will prohibit GCC from addressing external symbols with - indirect addressing modes, to be compatible with sharable - image libraries under VMS. + * rtl.c (copy_rtx, copy_most_rtx): Add new case for 'u'. - * tm-vms.h: Define NO_EXTERNAL_INDIRECT_ADDRESS, define - ENCODE_SEGMENT_INFO to make use of hook in varasm.c + * tree.c (make_node): Clear all of common area, in particular, flags. - * tm-vax.h: Provide alternative definitions of INDIRECTABLE_CONSTANT_P, - INDIRECTABLE_CONSTANT_ADDRESS_P, and INDIRECTABLE_ADDRESS_P, which - are used when NO_EXTERNAL_INDIRECT_ADDRESS is defined. Also, define - INDIRECTABLE_CONSTANT_ADDRESS_P. Modify definitions of - GO_IF_NONINDEXED_ADDRESS, and GO_IF_LEGITIMATE_ADDRESS to work with - either alternative. + * c-tree.h, cp-tree.h: Add declaration of truthvalue_conversion. -Fri Aug 2 21:54:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Jun 27 06:21:18 1992 Tom Wood (wood@dg-rtp.dg.com) - * loop.c (check_dbra_loop): Fix typo in arg to single_set. + * m88k.md (type attributes): Delete unused mbit and mfp types. + (ffsi2 insn): Define. + (negdf2 and absdf2 insns): Improve. - * reload1.c (choose_reload_regs): Verify that all registers in a - group still contain the desired value. - (emit_reload_insns): Set reg_reloaded_contents and reg_reloaded_insn - for all registers in a group. + * fold-const.c (range_test): Fix the misordered test. Fail if VAR + isn't an integer. - * combine.c (set_significant): Handle a complex SET_DEST correctly. +Sat Jun 27 00:54:44 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Aug 2 17:12:24 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * gcc.c (link_command_spec): No %D if LINK_LIBGCC_SPECIAL. + * sequent.h (LINK_LIBGCC_SPECIAL): Defined. - * tree.c (build_array_type): Make pointer type before array type. + * vax.h (PRINT_OPERAND): For SFmode, use 0f, not 0d or 0g. - * Makefile.in (install-common): Never install gcc if gcc-cross exists. + * ns32k.h (NS32K_DISPLACEMENT_P): Correct the range limits. + * ns32k.c (print_operand_address): REG_OK_FOR_INDEX_P wants an rtx. -Fri Aug 2 14:58:42 1991 Michael Meissner (meissner at osf.org) +Fri Jun 26 08:55:03 1992 Tom Wood (wood@dg-rtp.dg.com) - * make-mips (CC, OLDCC): Comment why we need to define CC and OLDCC - to get around fixed size table complaints in the MIPS compiler. + * fold-const.c (range_test): New function. + (merge_component_references): Look for range tests as well. -Fri Aug 2 14:08:01 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * va-m88k.h: Same changes as other va-*.h files below. Make this + work when and others are included on DG/UX. - * configure (writing VPATH definition): Avoid temp file. +Fri Jun 26 08:17:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-i860.h (MAX_PARM_BOUNDARY): Defined. - (GO_IF_LEGITIMATE_ADDRESS): Add parens around & operator. - (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Use sp, not r3 (that's fp). - * i860.md (movsf): Don't reload high address part if already loaded. - (cmplesf, cmpledf, cmpgesf, cmpgedf): Set CC_NEGATED; swap operands. - * out-i860.c (strict_single_insn_op_p): - Fix criterion for loading high half. - (output_load_address): #if 0 since not used. + * expr.c (safe_from_p): Handle 0 in TREE_VALUE of a TREE_LIST. + (store_constructor: Ignore empty links in element chain. -Fri Aug 2 01:46:39 1991 James Van Artsdalen (james at bigtex.cactus.org) +Fri Jun 26 07:06:19 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * i386.md (swapdf): Don't condition on TARGET_387. - (bit set/complement/clear insns): Don't use if -m486. - (bit test insns): Don't allow a MEM operand. + * c-convert.c (convert_to_integer): Don't add a NOP_EXPR in cases + where we can simply change the type of the entire tree. -Thu Aug 1 19:05:31 1991 Matthew Self (mself at next.com) + * cse.c (find_best_addr): Look for equivalents of a REG that is + the first operand of an address that is a binary operator whose + second operand is a CONST_INT. - * local-alloc.c (block_alloc): Record regs_live_at for last insn - in basic block too. Otherwise REG_UNUSED regs may overlap hard - regs set in the last insn of the basic block. + * stmt.c (expand_end_bindings): Don't save argument pointer if it + will be eliminated in favor of the frame pointer. -Thu Aug 1 19:02:57 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * combine.c (try_combine): When using define_split to split an + insn, first try to put the pseudo-register into the mode of + the destination since it is the most likely to be the correct mode. - * emit-rtl.c (gen_rtx): Don't return frame_pointer_rtx (e.g.) if - mode is not Pmode. + * combine.c (make_compound_operation): Treat PLUS and MINUS + the same when passing down the code to the next level; for + consistency, an ASHIFT inside either gets turned into a MULT. - * emit-rtl.c (operand_subword): Don't write explicit divide by 0; - some (broken) compilers give errors for it. + * fold-const.c (optimize_bit_field_compare): Delete dead + assignment which can sometimes reference an undefined variable. - * m68k.md (udivhi3): One pattern had constraint of "d" with - const_int_operand. - (FPA insns): Operand 1's constraints allow memory and constants, but - the predicate is register_operand; change to general_operand. + * genoutput.c (gen_split): Initialize n_alternatives. -Thu Aug 1 13:41:47 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * romp.md (movdf): Fix typo in operand_subword call in define_split. - * cplus-lex.c (do_pending_inlines, process_next_inline): Zero out - the DECL_PENDING_INLINE_INFO field after processing it. - (store_pending_inline): Don't delay processing a virtual function, - since it needs to be processed in case the virtual function table is - needed. +Fri Jun 26 04:38:37 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-decl2.c (mark_inline_for_output): If DECL has pending inline - info, cause it to be processed. + * Make stdarg mechanism work with libc. + * va-hp800.h, va-i860.h, va-i960.h, va-mips.h, va-pyr.h, va-sparc.h): + Don't define or declare va_list; declare __gnuc_va_list. + But only declare it once. + Define other things only if _STDARG_H or _VARARGS_H. + Declare va_end as well as defining it. + * gstdarg.h: Likewise. + If __need___va_list was defined, then undef it + and don't define _STDARG_H. + For all machines, declare va_list from __gnuc_va_list + but only if _STDARG_H is defined. - * cplus-pt.c: Removed extraneous declaration of `permanent_obstack'. - Also, added comment for `reinit_parse_for_template'. + * gvarargs.h: Test _ANSI_H_, not _ANSI_H. - * cplus-typeck.c (mark_addressable): For FUNCTION_DECL case, also - test DECL_PENDING_INLINE_INFO. +Thu Jun 25 23:24:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Aug 1 13:26:12 1991 Michael Meissner (meissner at osf.org) + * ns32k.c (print_operand): + Change NO_IMMEDIATE_PREFIX_IF_SYMBOLIC conditional to #ifdef. - * mips-tfile.c (main): If input file is not specified, use the same - file for both input and output. If renaming output file and rename - fails, copy the file. - (free_multiple_pages): New function. + * genoutput.c (gen_split): Set d->n_alternatives. - * tm-decrose.h (ASM_FINAL_SPEC): Add this to call mips-tfile if - using the MIPS assembler. + * Makefile.in (test-protoize-simple): Expect just 400 lines. + (install-common-headers): When comparing srcdir with ., use pwd. - * tm-mips.h (ASM_FINAL_SPEC): Add this to call mips-tfile unless - using gas. - (TARGET_VERSION): Do not put __DATE__ in the output. +Tue Jun 16 22:11:12 1992 Jim Wilson (wilson@sphagnum.cygnus.com) - * make-mips (BISONFLAGS): Add -l to bison flags because the MIPS - based compilers have problems with #line. - (CC): Define in terms of $(OLDCC) so the USE_HOST macros work. - (EXTRA_PASSES): Build mips-tfile and mips-tdump. - (Makefile): Explicitly use sh to invoke configure. + * Makefile.in (enquire.o): Don't delete/copy enquire.c, just use + the copy in the source directory. - * make-decrose (EXTRA_PASSES): Build collect. - (Makefile): Explicitly use sh to invoke configure. +Tue Jun 25 23:52:27 1992 Howard Chu (hyc@hanauma.jpl.nasa.gov) -Thu Aug 1 12:22:17 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * libgcc2.c (__builtin_saveregs): Use SVR4 code on Alliant FX2800, + but with BSD function-naming convention. - * cccp.c (directive_table, node_type): Add #include_next. - (do_include): Support #include_next. - (finclude): New arg DIRPTR. All callers changed. + * va-i860.h: Use SVR4 definitions of __va_saved_regs and va_list + on Alliant FX2800. - * reload1.c (reload_as_needed): Check live_known before accessing - basic_block_head. + * fx2800.h (I860_REG_PREFIX, ASM_COMMENT_START): Deleted. + (DBX_NO_EXTRA_TAGS, BSS_ASM_OP): Deleted. + (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Deleted. + (ASM_FILE_START): Just call output_file_directive. -Thu Aug 1 11:47:37 1991 Michael Meissner (meissner at osf.org) +Thu Jun 25 06:49:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gcc.c (compilers): Add new spec %A, which expands ASM_FINAL_SPEC. - This option is added after all other arguments to the assembler. It - is for the MIPS port to run a cleanup program after the assembler - finishes, by having ASM_FINAL_SPEC be "\n mips-tfile args..." - (set_spec): If name is 'asm_final', set the asm_final_spec. - (process_command): print out asm_final_spec for -dumpspecs. - (do_spec_1): Expand %A to be ASM_FINAL_SPEC. - (validate_all_switches): look at any switches handled in - ASM_FINAL_SPEC. + * c-typeck.c (process_init_constructor): Strip NON_LVALUE_EXPR + from specified array index. -Thu Aug 1 07:42:37 1991 Tom Wood (wood at dg-rtp.dg.com) + * configure (i386-*-bsd*, i386-*-mach*): Don't set tmake_file. + They used to use t-libc-ok. - * dwarfout.c (element_list_attribute): AT_element_list is a BLOCK4. + * input.h (struct file_stack): Revert prev. change. -Wed Jul 31 17:42:40 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Jun 25 06:33:52 1992 Tom Wood (wood@dg-rtp.dg.com) - * jump.c (jump_optimize): In "if (...) x = 1; else {...} if (x) ...": - Don't assume that SYMBOL_REFs are always non-zero. - Handle operations other than EQ and NE. - Handle conditional RETURN properly. + * stmt.c (expand_end_case): Add CASE_VALUES_THRESHOLD. + * m88k.h (CASE_VALUES_THRESHOLD): Define. - * out-a29k.c (print_operand, case 'e'): When writing LXn, use number - of last label in function. - (output_prolog): Fix missing arg in ADD in a29k_first_epilogue_insn. +Thu Jun 25 06:13:39 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Jul 31 13:41:37 1991 Tom Wood (wood at dg-rtp.dg.com) + * explow.c (plus_constant, case PLUS): Remove obsolete code; + use recursive call in case remaining operand is one we handle. - * sdbout.c (sdbout_parms): Don't crash if MEM address is a MEM. +Wed Jun 24 19:15:14 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Jul 31 12:36:37 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * combine.c (subst, case PLUS): If adding two things with no bits + in common, convert to IOR. - * fixincludes: New variable INCLUDES specifies input dir. + * expr.c (do_jump, case BIT_AND_EXPR, COMPONENT_REF): Don't narrow + comparison unless byte accesses are not slow and we have a + comparison in the new mode. - * Makefile.in (install-common): Add dummy elt to EXTRA_PASSES. - Fix typo in test. +Wed Jun 24 14:29:09 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (install-cross-tools): Use /. in args to test -d. - (cccp.o, dbxout.o, c-plus-*): Added missing dependencies. + * c-parse.y (primary): If built-in decl has not had + an official declaration, print warning. + * c-decl.c (builtin_function): Set C_DECL_ANTICIPATED for + user-visible names. + * c-tree.h (C_DECL_ANTICIPATED): New macro. - * c-common.c: Don't include rtl.h--that was unmodular. + * fixincludes: Make some symlinks in the `multimedia' subdir. - * make-i386v (INSTALL): Define this. + * i386.c: Change #error to just error. -Wed Jul 31 07:38:12 1991 Tom Wood (wood at dg-rtp.dg.com) + * protoize.c: Normalize error message syntax. + (process_aux_info_file): Don't delete .X file if it existed before. + (explicity compare modtime with .c file. - * Makefile.in (LIB2FUNCS_EXTRA): Extra C and assembler files for - gnulib2. - * make-m88k*: Put the assembler files in gnulib2 and eliminate use - of gnulib1. +Wed Jun 24 14:10:35 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Tue Jul 30 20:21:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * sparc.c (sparc_frw_compute_frame_size): New function, for flat + register window model support. + (sparc_frw_save_restore): Likewise. + (sparc_frw_output_function_prologue): Likewise. + (sparc_frw_output_function_epilogue): Likewise. + (sparc_frw_epilogue_delay_slots): Likewise. + (sparc_frw_eligible_for_epilogue_delay): Likewise. - * stddef.h (WCHAR_T): - Test _WCHAR_T_, __WCHAR_T, _T_WCHAR_ and ___int_wchar_t_h. +Tue Jun 23 22:36:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-i386isc.h (RETURN_POPS_ARGS): Caller pops the struct value addr. + * cccp.c (rescan): Recognize # only when reading directly from a file. - * cccp.c (default_include): Search local dir, system, then standard. + * input.h (struct file_stack): Add member `fd'. - * Makefile.in (USE_HOST_MALLOC, USE_HOST_OBSTACK): - Don't depend on which C compiler is in use. + * regclass.c (regno_first_uid, regno_last_uid): Make elements ints. + (reg_scan): Allocate and clear them as ints. + * regs.h: Fix the declarations. - * reload1.c (reload): Use pseudoreg to compute spill_indirect_levels. + * Create driver executable with name xgcc; rename to gcc in installing. + (xgcc): Target renamed. + (GCC_FOR_TARGET, GCC_PASSES, start.encap, specs, gcc-cross): + (install-common, install-collect2): Rename in deps, commands or value. + (install-collect2): Always get driver from xgcc whether cross or not. - * c-decl.c (start_function): Don't take arg types from builtin. - (duplicate_decls): Cancel builtin function if new arg types differ. - Don't take arg types from buiiltin. +Tue Jun 23 00:00:35 1992 Brendan Kehoe (brendan@cs.widener.edu) -Tue Jul 30 18:45:39 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * toplev.c (strip_off_ending): Also strip off .C and .cxx. - * reload.c (decompose): Don't blow up for constants; they are safe. +Tue Jun 23 18:58:43 1992 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Tue Jul 30 15:49:34 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * genrecog.c (add_to_sequence): Don't ignore mode of first operand + of a MATCH_OPERAND or MATCH_DUP_OP rtl. + * sparc.md (scc): Use noov_compare_op instead of normal_compare_op. - * dbxout.c (dbxout_parms): Don't crash if MEM address is a MEM. + * function.c (expand_function_start): When not optimizing, don't + put static chain pointer in a pseudo register. - * Makefile.in (install-common): Don't lose if EXTRA_PASSES is empty. - Don't install gcc if gcc-cross exists. - (install-cross-tools): Fix typos. - Avoid doing cd -- use absolute file names. - (gcc-cross.o): Rule deleted. - (gcc-cross): Build gcc, then copy it. + * sparc.c (print_operand): For '*', only annul branch if + optimizing, to avoid dbx bug. Add '(' to handle unoptimized case. + * sparc.h (PRINT_OPERAND_PUNCT_VALID_P): Add '('. + * sparc.md (jump): Add '%(' to pattern. -Tue Jul 30 15:37:25 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * c-decl.c (store_parm_decls): Change type of void parameter to + error_mark_node. - * cplus-init.c (build_vec_delete): Use `size_binop' when building up - the array end boundary. + * configure (m68k-*-sysv4*): Use xm-m68kv.h not xm-m68kv4.h. -Tue Jul 30 10:03:54 1991 Michael Meissner (meissner at osf.org) + * configure: Add -prefix option. - * tm-mips.h (DOLLARS_IN_IDENTIFIERS): Define to be 1. + * vax.c (split_quadword_operands): Declare paramater n. -Mon Jul 29 18:56:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * i960.h (WORD_SWITCH_TAKES_ARG): Add -aux-info. - * reload.c (refers_to_regno_for_reload_p): New function. - (push_reload, find_dummy_reload, immune_p): Use - refers_to_regno_for_reload_p instead of refers_to_regno_p. + * xcoffout.c (xcoffout_declare_function): Cast alloca result to char *. - * cse.c (fold_rtx): Don't make shifts wider than object. + * c-convert.c (convert_to_integer): Don't pass truncation past + shift that is larger than the size being truncated to. -Mon Jul 29 17:17:55 1991 Michael Collison (collison at osf.org) +Tue Jun 23 06:15:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * configure: Added entry for mmax-osfrose (Multimax with ns32k - running OSF/1). + * optabs.c (expand_binop, expand_unop): Try widening before trying + to make a library call. -Mon Jul 29 14:51:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * stmt.c (expand_return): Add missing emit_queue call in tail + recursion case. - * Makefile.in (SYMLINK): New variable. - (install-cross-tools): Make symlinks if possible. - Otherwise, for executables, indirect to tooldir with a shell script. - (install-native): Install gcc-cross as bin/gcc under tooldir. + * cse.c (simplify_unary_operation): Add SIGN_EXTEND and + ZERO_EXTEND to the operations we handle for wide results. - * Makefile.in (USE_HOST_ALLOCA): - Generate nothing if don't need separate alloca. - (USE_HOST_OBSTACK, USE_HOST_MALLOC): New variables. - (HOST_LIBS): Use them. - (HOST_PREFIX_1): Make a dummy file with this name, - for cross-compiling for a machine that needs no separate alloca, etc. + * expr.c (emit_block_move): Convert size operand to mode that will + be passed to emit_library_call. - * c-parse.y (stmts): Accept either labels or unlabeled statements. - (lineno_labeled_stmt): New nonterminals. - (stmt_or_label, lineno_stmt_or_label): New nonterminals. - (stmts): Use lineno_stmt_or_label. - (stmt): Don't allow labels at this level. - Use lineno_labeled_stmt in place of lineno_stmt. +Tue Jun 23 00:41:03 1992 Paul Eggert (eggert@shadow) - * cccp.c (default_include): Get rid of extra #endif. - Use CROSS_COMPILE, not CROSS. + * objc-parse.y (stmt): Fix mispelling for "label" in message. - * make-i386mach: New file. - * configure (i386-mach): Use that file. + * cccp.c: (deps_file, pipe_closed): Deleted. + (main): Do not open deps_file until needed. + Check error status of dep_stream and stdout more carefully. -Mon Jul 29 09:10:13 1991 Tom Wood (wood at dg-rtp.dg.com) +Tue Jun 23 00:21:05 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-m88kluna.h (SYSTEM_INCLUDE_DIR): Define (also MACH). + * Makefile.in (protoize.1, unprotoize.1): Rules deleted. + (install-man, proto, realclean): Don't operate on them. + * proto-man: File deleted. -Sun Jul 28 16:15:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * protoize.c (main): Support -v as alias for -V. - * cccp.c (default_include): Use SYSTEM_INCLUDE_DIR. - Delete special cases for MACH, UNOS. - * tm-i386mach.h, tm-sun3mach.h, tm-crds.h (SYSTEM_INCLUDE_DIR): Define. +Mon Jun 22 21:50:01 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (default_include): Use CROSS_INCLUDE_DIR if cross-compiler. - * Makefile.in (cccp.o): Pass a definition for CROSS_INCLUDE_DIR. + * Makefile.in (compare, compare3): Discard error output from second + tail. If it fails, don't compare that file. - * Makefile.in (gnulib1.null): New target. - (install-common, install-common-headers, install-cross-tools): - (install-cross-rest, install-float-h-cross): New targets. - (install-float-h): New target. - (install-cross, install-headers): Use them. - (tooldir): New variable. - (EXTRA_PASSES): New variable. + * Makefile.in (stamp-proto): Move the touch command last. - * sdbout.c (plain_type_1): Don't record the size in sdb_type_size - unless a tag is output. + * cccp.c (finclude): Use xmalloc, not alloca, for file contents. - * Makefile.in (install-cross): Install specs by copying. - Install either gcc or gcc-cross, whichever exists. - (native): Remove gcc from deps. - (start.encap): Add gcc to deps. - (all.cross): Add gcc-cross to deps. - (gcc-cross): Like gcc rule except different output file name. - (gcc-cross.o): Likewise. + * stmt.c (check_for_full_enumeration_handling): For a case range, + consider all values in the range as handled. Also, check both ends + for being in the enumeration. - * Makefile.in (EXTRA_PASSES): New variable. - Used for machines which have extra passes to run. - (install-cross): Install those programs. - (native): Compile them. + * ns32k.h (NS32K_DISPLACEMENT_P): Wide displacement range applies to + all models. - * c-parse.y: Support `foo:' before a close brace. - (label): New nonterminal. - (stmt): Use that. Treat a label as a statement in itself. +Mon Jun 22 20:29:47 1992 Ron Guilmette (rfg at ncd.com) - * Makefile.in (gnulib*.portable): Rules deleted. - (GNULIB1, GNULIB2): Point directly at gnulib1, gnulib2. - (gnulib): Use GNULIB1, GNULIB2 directly both as deps - and to specify the input files. - (gnulib1.conv): Renamed from gnulib1.convert; no longer phony. - (gnulib*.target): Rules deleted. - make-hp9k320 (GNULIB1): Use gnulib1.conv. - (LIBCONVERT): Override. + * expr.h (*_libfunc): Added missing extern declarations of libfuncs + to handle operations on/for TFmode and XFmode operands. + * expr.c (convert_move): Added missing code to handle moves (with + conversion) from/to TFmode and XFmode operands. + * optabs.c (*_libfuncs): Added missing definitions of libfuncs + to handle operations on/for TFmode and XFmode operands. + (emit_float_lib_cmp): Added missing code to handle XFmode and TFmode + comparisons. + (init_fixtab): Added missing code to handle fixing (and trunc'ing) + of XFmode and TFmode operands to various sizes of ints. + (init_floattab): Likewise, but for "float" operations from ints to + either XFmode or TFmode. + (expand_float): Likewise. + (expand_fix): Likewise. + (init_libfuncs, init_integral_libfuncs, init_floating_libfuncs): New + functions added to initialize whole hunks of various optabs with + appropriate `libfunc' field values. + (init_optabs): Use `init_integral_libfuncs' or `init_floating_libfuncs' + wherever a group of consecutive optab entries need to all have their + `libfunc' fields initialized. + (init_optabs): added missing code to handle all operations on/of + XFmode and TFmode operands. - * move-if-change: Use -f with rm and mv. +Mon Jun 22 06:40:32 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * Makefile.in (gnulib2.ready): No longer phony. + * rs6000.h (MEMORY_MOVE_COST): Increase to 6, from 4. + (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add new reg + classes SPEC_OR_GEN_REGS and NON_FLOAT_REGS. -Sat Jul 27 13:03:50 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * rs6000.h (EXTRA_CONSTRAINT): Don't use indirect_operand; instead + check explicitly. - * combine.c (can_combine_p): Don't use NEXT_INSN, in previous change. + * rs6000.md (divmod): Use "2" constraint instead of using "q" + twice. + (tablejump): Constraint of "r" should be "l". - * Makefile.in (class-c, objective-c): New targets. + * emit-rtl.c (init_emit): Show that all pointers into the frame are + pointer registers. - * tm-i386.h (ASM_OUTPUT_ALIGN_CODE): Define it. - (ASM_OUTPUT_LOOP_ALIGN): Use ASM_OUTPUT_ALIGN_CODE. - * tm-i386gas.h, tm-i386vgas.h (ASM_OUTPUT_ALIGN_CODE): Override it. - (ASM_OUTPUT_LOOP_ALIGN): Definition deleted. +Mon Jun 22 04:20:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fixincludes (memvar.h): Make two defs of CAT, one ANSI and one trad. + * va-sparc.h (va_arg): Rename local identifiers to start with __. - * expmed.c (emit_store_flag): Set ICODE only after CODE is right. +Sun Jun 21 14:51:42 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Jul 27 06:45:32 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fold-const.c (real_value_truncate): New function. + All calls to REAL_VALUE_TRUNCATE changed to use this function. - * flow.c (insn_dead_p): Don't clobber NEEDED while ensuring that we - don't delete insns that set the frame or arg pointer. + * reload1.c (reload): Record which insn attains each maximum need. + If can't find a spill, call spill_failure and return 1. + (spill_failure): New subroutine. + * global-alloc.c (global_alloc): Return 1 if reload returned 1. + * toplev.c (rest_of_compilation): If they return nonzero, give up + compiling this function. - * flow.c (flow_analysis, find_basic_blocks, propagate_block): - Use GET_RTX_CLASS. - -Fri Jul 26 08:18:08 1991 Tom Wood (wood at dg-rtp.dg.com) + * c-decl.c (duplicate_decls): Never warn if redeclaring + a predeclared function. Use the new declaration's types + but keep any predeclared volatile flag. + If redeclaring builtin function, use new declaration's type. + If an old decl becomes volatile, fix the DECL_RTL. + * varasm.c (make_var_volatile): New function. - * sdbout.c: Use for USG and provide a definition of - T_VOID if none existed. Use ./gsyms.h for non-USG systems. - * gsyms.h: Renamed from syms.h. + * configure (mips-sony-bsd): Use xm-mips.h. + * xm-mipsbsdn.h: File deleted. -Fri Jul 26 22:47:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * protoize.c (process_aux_info_file): Simplify logic for calling + gen_aux_info_file. Get rid of the label `retry'. - * cccp.c (macroexpand): Fix error message syntax. + * m68ksgs.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): + Override for sgs syntax. - * Makefile.in (gnulib2.target): Add semicolon. +Sun Jun 21 14:06:41 1992 Brendan Kehoe (brendan@cs.widener.edu) -Fri Jul 26 18:17:36 1991 Michael Meissner (meissner at pogo.gnu.ai.mit.edu) + * va-sparc.h (va_arg): Use a character array of size TYPE for + `d' in the union, and return its dereference as TYPE. - * make-mips (CC): Bump -Wf,-XNg option to 1500 to allow the MIPS - compiler to compile cc1plus. +Sun Jun 21 14:04:36 1992 Wilson Tien (wtien at urbana.mcd.mot.com) -Fri Jul 26 14:42:35 1991 Tom Wood (wood at dg-rtp.dg.com) + * m68k.c (print_operand_address) [MOTOROLA]: Use .w and .l, not :w, :l. - * c-parse.y (yylex): Don't use mbtowc to translate L'\0'. +Sat Jun 20 06:32:11 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - * tm-m88ksvr4.h (CPP_SPEC): Specify SVR4 pre-assertions. + * stor-layout.c (get_best_mode): If SLOW_BYTE_ACCESS is true, return + widest mode (but no wider than UNITS_PER_WORD) that meets all + the conditions. -Fri Jul 26 09:53:53 1991 Michael Meissner (meissner at pogo.gnu.ai.mit.edu) + * combine.c (make_extraction): Always ensure we have a SUBREG when + we make a STRICT_LOW_PART. - * Makefile.in (cplus_expr.o): Add missing dependencies, so cc1plus - can be built without first building cc1. + * varasm.c (const_hash, compare_constant_1, record_constant_1): + Handle case when TREE_VALUE of a constructor is zero. + (output_constant): Use CONSTRUCTOR_ELTS. -Fri Jul 26 07:30:51 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cse.c (cse_insn): Memory is not invalidated by a constant + subroutine call. + (delete_dead_from_cse): Correctly check for being within a + libcall block. - * combine.c (can_combine_p): Can't combine if DEST is used in an - insn in the range (succ, i3). + * cse.c (canon_reg): Call validate_change with IN_GROUP equal to 1. + (cse_insn): Call apply_change_group after canon_reg. + When canonicalizing, call validate_change with IN_GROUP equal to + one and also call when canon_reg would. - * expmed.c (store_bit_field): Don't use insv if the mode of its - input is narrower than the width of the field. - (store_fixed_bit_field): Handle value with MODE_FLOAT mode. - (extract_bit_field): Don't use extzv/extv if its output mode is - narrower that width of field. - (extract_bit_field): Handle returning MODE_FLOAT mode. + * combine.c (subst, shift cases): Use force_to_mode in + SHIFT_COUNT_TRUNCATED case. - * reorg.c (steal_delay_list_from_target): Add new arg PNEW_THREAD. - Instead of redirecting jump, return its target in *PNEW_THREAD. - (fill_slots_from_thread): Pass &NEW_THREAD to - steal_delay_list_from_target. + * rs6000.md: Add new pattern to split move of large constant. -Thu Jul 25 21:57:42 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cse.c (delete_dead_from_cse): Really delete insn instead of + turning it into a NOTE. - * sched.c: Correct tiemann's email address. - (schedule_block): Note that the values of leftover REG_DEAD notes - are meaningless. - (new_insn_dead_notes): If find an instruction that both uses and - sets dest, then no new REG_DEAD note is needed. - (update_links): When handling dest of last insn, no new REG_DEAD - note is needed if the last insn also uses its dest. + * romp.md (shift patterns): Use QImode for count operand. -Thu Jul 25 18:15:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Jun 20 06:31:21 1992 Tom Wood (wood@dg-rtp.dg.com) - * flow.c (regno_clobbered_at_setjmp): Don't blow up if no basic blocks. + * a29k.md (storehinhww): Use inhw not inbyte. -Thu Jul 25 16:55:57 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Thu Jun 18 16:01:56 1992 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cse.c (invalidate, cse_insn): Don't use HASHREG directly. - (HASH): Substitute HASHREG in. - (HASHREG): Deleted. + * protoize.c (WIFEXITED, WEXITSTATUS): Delete unused macros. - * tm-i386mach.h: New file. - * configure (i386-mach): Use that. + * combine.c (subst): If comparison operator has floating-point + result, adjust the value returned by simplify_relational_operation + accordingly. + * integrate.c (subst_constants): Likewise. + * loop.c (get_condition): Likewise. + * cse.c (fold_rtx): Likewise. + When returning TRUE or FALSE, handle comparisons returning + floating-point. + (find_comparison_args): Handle comparisons returning FP values; + only look at STORE_FLAG_VALUE for comparisons returning integers. - * tm-i386isc.h: New file, copied from 1.40. + * combine.c (try_combine, subst): Pass both comparison arguments + to SELECT_CC_MODE. + * i386.h, i960.h, i960.c, mips.h, pa.h, pa.c, rs6000.h: + Add second argument to SELECT_CC_MODE. + * sparc.h, sparc.c: Likewise. - * i386.md (jump, indirect_jump, tablejump, return): - Use ASM_OUTPUT_ALIGN_CODE. - * tm-i386gas.h, tm-i386vgas.h (ASM_OUTPUT_LOOP_ALIGN): - Override the usual definition. + * cse.c (insert_regs): Make a quantity for the register in a + SUBREG if it doesn't have one. + (fold_rtx, case SUBREG): Always try to find a constant equivalent + for a SUBREG; try for CONST_DOUBLE as well. + (cse_insn): Call insert_regs on DEST if it is a SUBREG. - * rtl.h (FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE): Fix typo. +Thu Jun 18 15:01:29 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) -Thu Jul 25 16:25:52 1991 Tom Wood (wood at dg-rtp.dg.com) + * c++: Allow for better quoting and -v handling. - * out-m88k.c (legitimize_address): Note use of addressing base. - (m88k_layout_frame): Establish PIC addressing base as needed. +Thu Jun 18 14:49:20 1992 Tom Wood (wood@dg-rtp.dg.com) - * tm-m88kdgux.h (GPLUSPLUS_INCLUDE_DIR): Specify. + For RMS: + * varasm.c: Declare text_section and readonly_data_section. -Thu Jul 25 07:54:36 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * dpx2.h (CPP_SPEC): Define __HAVE_68881__ unless -msoft-float. + DPX/2 machines all have a 68882. - * rtl.h (FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE): Defined. + * x-i386sco (RCCFLAGS): Use -DNULL=0 to avoid suurious warnings + from rcc. - * integrate.c (expand_inline_function): Propagate the value of - FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE. + * seq386.h (SIZE_TYPE): The Sequent running Dynix uses int for size_t. - * function.h (struct function): Add new field USES_PIC_OFFSET_TABLE - to structure. Leave it to md files to initialize this field. - * expr.h (current_function_uses_pic_offset_table): New declaration. - * function.c ({save,restore}_tree_status): Save and restore - CURRENT_FUNCTION_USES_PIC_OFFSET_TABLE to/from this slot. - * out-sparc.c (legitimize_pic_address): Set - CURRENT_FUNCTION_USES_PIC_OFFSET_TABLE when appropriate. - (finalize_pic): If the current function does not use the PIC offset - table, there's no need to emit the PIC prologue. +Thu Jun 18 14:36:41 1992 Mike Stump (mrs@albert.gnu.ai.mit.edu) -Wed Jul 24 13:54:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Merge in Cygnus sources... - * tm-m68k.h (NOTICE_UPDATE_CC): - Calls clear status even if value in address reg. + Fri Jun 5 15:00:55 1992 Mike Stump (mrs at cygnus.com) - * tm-i386gas.h, tm-i386vgas.h (ASM_OUTPUT_ALIGN_CODE): Align with NOPs. + * cp-typeck.c (build_c_cast): When casting, propagate const'ness + from cast type. When casting to a reference to T, really just + cast to T. - * i386.md (andsi3): Don't use movzbl if op1 can't support it. + * cp-cvt.c (build_up_reference): Make a copy of a node before + changing it. Only propagate the const bit if we are not + subverting it. -Wed Jul 24 07:47:59 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + Fri Jun 5 14:36:19 1992 Mike Stump (mrs at cygnus.com) - * cplus-decl.c (finish_decl): Don't build a cleanup for an variable - that is TREE_EXTERNAL. + * cp-cvt.c (build_up_reference): When casting away const on + references, do not report an error. -Tue Jul 23 20:48:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Fri Jun 5 13:26:11 1992 Mike Stump (mrs at cygnus.com) - * make-mips: Delete rules for saber C. - * Makefile.in (STAGESTUFF, gnulib2.ready): Undo last change. + * cp-init.c (build_new): Handle new placement with arrays. - * tm-vax.h (LIB_SPEC): Supply missing close braces. + Thu Jun 4 08:26:44 1992 Mike Stump (mrs at cygnus.com) -Tue Jul 23 14:03:10 1991 Michael Meissner (meissner at osf.org) + * cp-search.c (compute_visibility): DERIVED_FROM_P had its + arguments reversed, switched them to be in the right order. + Fixes visibility on protected members. - * protoize.c (toplevel): If FULL_PROTOTYPES is defined, assume that - the system provides full prototypes, and include stdlib.h and - unistd.h. - (toplevel): If _POSIX_SOURCE is defined, wait takes a pointer to an - int, even if the system is otherwise BSD. - (toplevel): If NO_CONST_IN_SYSCALL and __STDC__ is defined, assume - the system takes char *'s instead of const char *'s. - (process_aux_info_file, edit_file): Always pass 3 arguments to open, - to allow the NO_CONST_IN_SYSCALL macro to properly cast the - arguments. + Wed Jun 3 14:45:40 1992 Mike Stump (mrs at cygnus.com) - * make-decrose (ALL): Make sure Makefile is rebuilt if either - Makefile.in or make-decrose changes. - (BUILD, SYSTEM_INCLUDES, LDFLAGS): Add BUILD variable to retarget - which build is used. - (CPP_ABORT): Don't define abort=fancy_abort here, do it in - tm-mips.h. - (INSTALL): Use installbsd program, since install uses System V - semantics on OSF/1. - (LANGUAGES): Rename collect-osf to collect. - (CFLAGS, XCFLAGS): Make CFLAGS use standard args and use XCFLAGS to - add additional arguments. - (libdir, bindir, mandir): Define to current install values. - (cplus-lex.o): Work around problems with 1.39 bootstrap compiler - producing bad stabs for certain inlines. - (osf-main.c): Add a simple G++ constructor/destructor to gnulib. + * cp-parse.y (unary_expr): Make it illegal to use delete on + a pointer to a const object. With help from Brendan Kehoe. - * make-mips (ALL): Make Makefile depend on Makefile.in and - make-mips. - (CFLAGS, XCFLAGS): Make CFLAGS use standard args and use XCFLAGS to - add additional arguments. - (CC): Add -Wf,-XNg500 switch to compile with due to the MIPS - compiler having fixed size tables. - (SABER_*): Add rules to run saber-C. + Wed Jun 3 13:25:26 1992 Ken Raeburn (Raeburn@Cygnus.COM) - * mips.md (movsi_ulw): Allow unaligned register->register moves, - which is caused by the optimizer, and generate the normal reg move - code. Also, turn loads from the stack into normal moves. - (movsi_usw): Turn stores into the stack into normal moves. - (call, call_value): Turn into a define_expand which takes three - arguments, to make Saber happier. + * cp-parse.y (template_instantiate_once): Set + CLASSTYPE_GOT_SEMICOLON to eliminate messages about missing + semicolons. - * tm-mips.h (abort macro): Define abort to be saber_stop if running - under Saber C. - (__PTR_TO_INT, __INT_TO_PTR): Define as casts if running on a MIPS - machine instead of with subtraction, in an attempt to quiet Saber C. - (ASM_MODIFY_SPEC): Run mips-tfile after the assembler, needs - corresponding gcc.c change to enable. + * cp-decl.c (start_function): Don't emit error message for missing + semicolon after class decl; that syntax (declaring both class and + function returning that type) should be legal. Do emit a warning if + it's not an anonymous name. - * tm-decrose.h (ASM_SPEC): Pass -v switch to gas as well as mips - assembler. - (ASM_MODIFY_SPEC): Run mips-tfile if -mmips-as. - (LINK_SPEC): Pass -v switch to linker. - (LIB_SPEC): Redefine as just -lc. - (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Undefine, use standard - libdir, bindir, and mandir in Makefile now. - (FULL_PROTOTYPES, NO_CONST_IN_SYSCALL): Define to get protoize - to compile cleanly. + Mon Jun 1 18:08:09 1992 Mike Stump (mrs at cygnus.com) - * osf-main.c (new file): Provide simple constructor, destructor - capability to be linked into gnulib. + Sat May 30 15:38:54 1992 Brendan Kehoe (brendan@cs.widener.edu) - * collect-osf.c (various): General rewrite to improve speed and - portability. + * cp-decl.c (grokdeclarator): Don't allow main to be static. - * Makefile.in (CPLUS_OBJS): If CPLUS_INPUT is defined to be - cplus-input.o, compile it separately to work around problems with - bootstraping when it is included in cplus-lex.c. - (STAGESTUFF): Use $(LANGUAGES) instead of hard coded list of - languages, so make-xxx file can override, and provide others. - (gnulib2.ready): Make gnulib2 depend on all LANGUAGES targets, so - that if a target needs something else built, such as mips-tfile, it - will be. - (mostlyclean): Add missing -f to rm. - (install-dir): Use test to see if the directory exists before trying - to create it, and fail if the mkdir fails. - (install-headers): ditto. - (stage?, risky-stage?): ditto. - (install-cross): Install collect and mips-tfile if they are present. + Mon Jun 1 17:52:24 1992 Mike Stump (mrs at cygnus.com) - * mips-tfile.c (toplevel, main): Add -I file option, which renames - the original output file to the given file. + Sat May 30 15:38:54 1992 Brendan Kehoe (brendan@cs.widener.edu) - * cplus-lex.c (toplevel): Include instead of "assert.h" - in order to avoid problems when including cplus-input.c, which also - uses . + * cp-decl.c (poplevel): Use DECL_INITIAL to detect undef label + instead of DECL_SOURCE_LINE. - * cplus-pt.c (toplevel): Move include of config.h before obstack.h - in case config.h defines some macros obstack.h uses such as - __PTR_TO_INT. + Mon Jun 1 17:22:54 1992 Mike Stump (mrs at cygnus.com) -Tue Jul 23 13:15:43 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-parse.y (unary_expr): Don't allow old placement syntax(with {}) + nor dynamic with new (with ()) new placement syntax. Completes May 27 + fix. - * xm-i386.h, xm-i860.h, xm-spur.h, xm-tahoe.h: Use __builtin_alloca. + Mon Jun 1 13:57:28 1992 Mike Stump (mrs at cygnus.com) -Tue Jul 23 12:26:01 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-type2.c (digest_init): Trailing '\0' is never ignored in + initializations using strings in ANSI draft C++ unlike ANSI C. - * function.c (instantiate_virtual_regs_1): Change dubious code that - used to assign NEW to XEXP (x, 1) regardless of whether - validate_change accepted it to instead set XEXP (x, 0) back to OLD. - I.e., if the rtx is out of range and OBJECT is NULL, don't make any - change at all. + Mon Jun 1 07:18:13 1992 Michael Tiemann (tiemann at rtl.cygnus.com) - * out-sparc.c (compute_frame_size): If a function has any - stack-local objects, it's frame size is non-zero and space must be - reserved for the register window. + * cp-decl.c (pushdecl): Re-fix May 12 change regarding DECL_CONTEXT. + * cp-call.c (build_method_call): Go back to using DECL_CONTEXT + instead of DECL_CLASS_CONTEXT. DECL_CONTEXT says when a function + was first declared virtual in a class, which is needed information + in case the virtual function comes from a virtual baseclass (because + the derived class won't have a vtable entry for that function (if it + has a vtable at all!)). - * loop.c (loop_optimize): Use get_max_uid to compute max_uid_for_loop. + Wed May 27 17:05:50 1992 Mike Stump (mrs at cygnus.com) - * fold-const.c (size_int): Extend SIZE_TABLE's range from - 0..HOST_BITS_PER_INT-1 to 0..2*HOST_BITS_PER_INT. + * cp-parse.y (unary_expr): Handle new placement syntax, desupport + the old placement syntax with a pedwarn. - * integrate.c (expand_inline_function): Add minor efficiency - hack to not free all the temp slots as parameters are passed - from "caller" to "callee". + Tue May 26 17:30:28 1992 Mike Stump (mrs at cygnus.com) - * integrate.c (expand_inline_function): If the inline function - returns its value via a structure_value_addr, we must prepare for - this to take place, even if the value is ignored by the caller. + Thu May 21 17:13:38 1992 Michael Tiemann (tiemann at cygnus.com) - * tm-decstatn.h (SIZE_TYPE): Define this to be "unsigned int". + * cp-decl.c (grok_enum_decls): Allow reference to nested enums from + other classes for NICHL. - * emit-rtl.c (try_split): If `split_insns' actually returns a SEQ - which is isomorphic to PAT, return TRIAL. + Tue May 26 15:31:30 1992 Mike Stump (mrs at cygnus.com) - * out-sparc.c (eligible_for_epilogue_delay): FP register moves are - only eligible for leaf-function epilogue delay slots. + * cp-*.[chy]: Always include "assert.h" and not to + be consistent. -Tue Jul 23 11:52:50 1991 Michael Meissner (meissner at geech.gnu.ai.mit.edu) + Tue May 26 10:07:02 1992 Mike Stump (mrs at cygnus.com) - * dbxout.c (dbxout_symbol): Correct typo in getting static member - names. The problem is DECL_ASSEMBLER_NAME returns a tree, and not a - char *. + * cp-parse.y (return_init): Fix simple typo that caused '=' + initialized named return values to fail. -Tue Jul 23 07:10:41 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon May 25 11:42:18 1992 Mike Stump (mrs at cygnus.com) - * varasm.c (immed_double_const): Use CONST_INT if MODE fits within - HOST_BITS_PER_INT, not BITS_PER_WORD. + * cp-parse.y (component_decl): Handle anonymous unions as before, + except check to make sure it is really an anonymous union. -Mon Jul 22 21:37:03 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Sat May 23 23:37:38 1992 Mike Stump (mrs at cygnus.com) - * fold-const.c (fold): Always preserve type after using const_binop. + * cp-tree.c (layout_basetypes): Don't core dump on erroneous input. -Mon Jul 22 18:34:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Sat May 23 22:04:31 1992 Mike Stump (mrs at cygnus.com) - * reload1.c (reload): Fix typo in condition for reg_equiv_address - being set from reg_equiv_memory_loc; had X instead of XEXP (X, 0). + * cp-typeck.c (c_expand_start_case): build_type_conversion can + return a NULL_TREE, so don't try and find a code or type of it. -Mon Jul 22 15:25:48 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Wed May 20 09:09:08 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * gcc.c (process_command): -xnone turns off any -x option. + * cp-call.c (build_method_call): Use DECL_CLASS_CONTEXT, not + DECL_CONTEXT to find the class in which FUNCTION was declared (for + non-virtual calls). - * tree.c (copy_chain): Deleted. - * integrate.c (copy_decl_tree): Use copy_list and copy_node. + Tue May 19 02:08:39 1992 Mike Stump (mrs at cygnus.com) -Mon Jul 22 11:35:47 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * cp-parse.y (component_decl): Remove some bogus code that + prevents empty nested union definitions from compiling. - * tree.c, tree.h: Fix typos in Jul 22 merge. + Tue May 19 01:08:23 1992 Mike Stump (mrs at cygnus.com) -Mon Jul 22 08:51:47 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (grokfndecl): Propagate volatile from type of + function out to the decl for the function. - * jump.c (thread_jumps): Don't set CHANGED if the jump's label isn't - changing. + Mon May 18 17:19:39 1992 Mike Stump (mrs at rtl.cygnus.com) -Mon Jul 22 02:37:23 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * cp-search.c (get_binfo): Since unions cannot participate in + inheritance relationships, return 0 instead of aborting. - * version.c: Bumped to 1.94 because of significant changes to - cplus-* files. + Fri May 15 13:37:40 1992 Mike Stump (mrs at cygnus.com) -Sun Jul 21 18:45:57 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-parse.y (template_type_name): Handle + template class task { friend task* preempt(task*); }; + syntax. - * toplev.c (rest_of_compilation): - Save and restore DECL_INITIAL if we use save_for_inline_copying. - * integrate.c (save_for_inline_copying): Really copy DECL_INITIAL. - Calling integrate_decl_tree doesn't do it; deleted that call. - (copy_decl_tree): New function. + * cp-pt.c (lookup_template_class): Ditto. - * integrate.c (integrate_decl_tree): Renamed from copy_decl_tree. - (integrate_parm_decls): Renamed from copy_parm_decls. + Thu May 14 22:54:17 1992 Mike Stump (mrs at cygnus.com) - * tree.c (copy_chain): New function. + * cp-tree.c (layout_basetypes): Don't warn about non-virtual + destructors unless the user asks with -Wall. -Sun Jul 21 06:43:23 1991 James Van Artsdalen (james at bigtex.cactus.org) + Thu May 14 22:38:54 1992 Mike Stump (mrs at cygnus.com) - * i386.md (tstsi): Add comment noting potential -m486 enhancement. - (SImode push): With -m486, don't push from MEM. - (addsi3): Don't use lea for three operand add if -m486. - (ashlsi3): Don't use lea for shift of 1 if -m486. - (zero_extendhisi2,zero_extendqihi2,zero_extendqisi2): If dest is - %eax, or if -m486, AND is faster than MOVZX. + * cp-type2.c (build_functional_cast): exp may be an error_mark_node, + don't crash when it is. -Sun Jul 21 06:27:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Thu May 14 18:56:26 1992 Mike Stump (mrs at cygnus.com) - * expmed.c (store_fixed_bit_field): Pass actual bit position (including - offset) to get_best_mode; also limit mode size to BITS_PER_WORD. - Use failure of get_best_mode to indicate that field spans word - boundary. - Pass actual bit position to store_split_bit_field. - (store_split_bit_field): Accept actual bit position, hence handing - bitpos > BITS_PER_WORD. - Abort if BITPOS and BITSIZE don't cross exactly one word boundary. - Pass offset to store_fixed_bit_field; if register, use operand_subword; - else adjust offset for second word. - (extract_{fixed,split}_bit_field): Likewise. + * cp-decl.c (hack_incomplete_structures): Test for underflow + before decreamenting n_incomplete in current_binding_level, since + it is unsigned. -Sun Jul 21 06:11:55 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + Tue May 12 15:52:49 1992 Mike Stump (mrs at cygnus.com) - * All cplus-* files: DECL_VIRTUAL_P is no longer applied to - FUNCTION_DECLs. Instead, to test if a function is virtual or not, - it suffices to test whether its DECL_VINDEX is non-NULL. We use - ERROR_MARK_NODE as the placeholder for a FUNCTION_DECL we know will - be virtual, but for which we don't yet know the actual index. + Mon May 11 14:10:50 1992 Ron Guilmette (rfg at ncd.com) - * cplus-decl.c (define_function): Don't set up DECL_ASSEMBLER_NAME - until after having the chance to call through PFN. Since `pushdecl' - now keys off of DECL_ASSEMBLER_NAME, we don't want to create - inadvertent aliases between builtin and library functions. + * cp-decl.c (poplevel): Reconciled with recent changes made to the + `poplevel' routine in c-decl.c. The changes here cause LABEL_DECL + nodes to be attached (as the BLOCK_VARS chain) to the BLOCK node + which represent the outermost scope of the function. - * cplus-typeck.c (build_modify_expr): We don't need to build a - SAVE_EXPR for a WITH_CLEANUP_EXPR. - (unary_complex_lvalue): For good measure, know how to deal with a - WITH_CLEANUP_EXPR inside a SAVE_EXPR. + Mon May 11 12:35:44 1992 Ron Guilmette (rfg at ncd.com) - * cplus-pt.c (uses_template_parms): Add handler for ARRAY_TYPE. + * cp-class.c (finish_struct): Check DECL_CONTEXT to see if it is + any sort of a type (e.g. struct *or* union) rather than just + checking it to see if it's a RECORD_TYPE. + * cp-decl.c (pushdecl): Set DECL_CONTEXT of pushed ..._DECL node, + just as is done in c-decl.c. + (pushdecl): Delete useless variable `cntxt'. + (finish_decl): Set TREE_USED rather than DECL_FROM_INLINE in order + to prevent "unused" warnings. + (finish_function): Check DECL_CONTEXT to see if it is a type. + (finish_function): Fixed indentation problem. + * cp-gc.c (build_m_desc): Check DECL_CONTEXT to see if it is a type. + * cp-init.c (build_virtual_init): Fix indentation. + * cp-lex.c (store_pending_inline): Check DECL_CONTEXT to see if it + is a type. + * cp-pt.c (tsubst, do_pending_expansions): Check DECL_CONTEXT to see + if it is a type. + * cp-typeck.c (mark_addressable): Check DECL_CONTEXT to see if it is + any sort of a type (e.g. struct *or* union) rather than just + checking it to see if it's a RECORD_TYPE. - * cplus-method.c (do_inline_function_hair): Use TYPE_METHODS instead - of CLASSTYPE_METHOD_VEC for traversing all methods when looking for - inline functions. + Tue May 12 08:52:06 1992 Michael Tiemann (tiemann@rtl.cygnus.com) - * cplus-class.c (finish_struct_methods): Fix fencepost error if - there were no member functions except for ctors/dtors. + * cp-typeck.c (build_component_ref): Call `break_out_cleanups'. + Also clean up indentiation. -Sun Jul 21 06:19:01 1991 James Van Artsdalen (james at bigtex.cactus.org) + Mon May 11 23:14:04 1992 Mike Stump (mrs at cygnus.com) - * tree.h, output.h (current_function_calls_longjmp): New variable. - * function.c (top level): Define it. - (push_function_context): Save it. - (pop_function_context): Restore it. - (init_function_start): Initialize it. + * cp-decl.c (pushtag): Handle structure tags in the same way as the + C front-end. This completes a change that rms put in on 3/12/92 and + I put in the Cygnus tree on 3/13/92 and Mark Eichin took back out on + 3/18/92. - * calls.c (expand_call): Set current_function_calls_longjmp if - this call is to `longjmp'. + Sun May 3 00:29:59 1992 Mike Stump (mrs at cygnus.com) - * flow.c, global-alloc.c: Include output.h so that - FRAME_POINTER_REQUIRED can use current_function_calls_*. - * Makefile.in (flow.o,global-alloc.o): Includes output.h. + * cp-lex.c (copy_lang_decl, store_pending_inline): Cast + arguments to bcopy to be char *. - * rtl.h (FUNCTION_FLAGS_CALLS_LONGJMP): New macro. + Fri May 1 12:22:31 1992 Michael Tiemann (tiemann@cygnus.com) - * integrate.c (initialize_for_inline): Record - current_function_calls_lonjmp in `function_flags'. - (output_inline_function): Set current_function_calls_longjmp if - the inline code calls longjmp. + * cp-init.c (expand_aggr_init, expand_vec_init): When comparing + array types, use `comptypes' instead of ==, since two array types + may be structurally identical but not == if one was defaulted from + an initializer. - * function.h (struct function): New field `calls_longjmp'. + Wed Apr 29 01:25:25 1992 Mike Stump (mrs at cygnus.com) - * out-i386.c (simple_386_epilogue): Add function description. - Return 0 if NON_SAVING_SETJMP && `setjmp' is called in function. + * cp-init.c (do_friend): Check that PREVIOUS_DECL is non-NULL. - * tm-i386v.h (NON_SAVING_SETJMP): New macro. - (FRAME_POINTER_REQUIRED): New macro. +Thu Jun 18 14:15:07 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu) -Sat Jul 20 12:25:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * pa.md (insv): Use `+' for operand 0 constraint. - * tm-m88k.h (OPTIMIZATION_OPTIONS): Don't change flag_signed_bitfields. +Thu Jun 18 13:39:22 1992 Michael Meissner (meissner@osf.org) - * cccp.c (include_defaults) Use LOCAL_INCLUDE_DIR macro instead - of "/usr/local/include". Provide default definition. + * mips.h (MIPS_VERSION): Bump Meissner version # to 20. + (final_prescan_insn): Add declaration. + (FINAL_PRESCAN_INSN): Just call final_prescan_insn. + (CONST_OK_FOR_LETTER_P): Rewrite some tests, so that they will + work on host systems with 64 bit integers. - * cccp.c (include_defaults) Added INCLUDE_DEFAULTS macro to - provide complete control over default include directories. - Delete the special case for VMS. - * xm-vms.h (INCLUDE_DEFAULTS): Defined. + * mips.c (large_int): Rework, so that we don't get funny boundary + conditions on systems with 64 bit integers. + (mips_move_1word): Just use li to load constants that can be done + with lui, instead of issuing the lui, since the GAS bug that + generated two instructions has been fixed. + (final_prescan_insn): Move the checking for filling the delay + slots here from the FINAL_PRESCAN_INSN macro. - * proto-man: Renamed from proto-unproto.1. + * mips.md (andsi3, iorsi3, xorsi3): Make the constraints match + the real machine (the predicate still is more general in order + to optimize bitfields at the expense of not CSE'ing large + constants used in logical ops, and making reload load it into + a scratch register). Don't use $1 as a temporary register any + more. - * final.c (final_scan_insn): Do ASM_OUTPUT_LOOP_ALIGN only for real loop. + * varasm.c (decode_reg_name): If `memory' return -4. -Sat Jul 20 05:34:13 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * stmt.c (expand_asm_operands): If `memory' is used as a clobbered + register, emit a (clobber (const_int 0)) to force the compiler not + to cache memory values in registers across the assembly + instruction(s). - * tree.h (tree_type): Use the MAXVAL slot for TYPE_METHODS. - * cplus-class.c (finish_struct): Methods are now chained with - TREE_CHAIN and placed in the TYPE_METHODS of their _TYPE node. - * cplus-dbxout.c (dbxout_type_methods): Use this fact, instead of - using more C++-specific knowledge. + * mips-tfile.c (read_line): Semicolons within strings are not + counted as statement separators. - * cplus-decl.c (init_decl_processing): Variable - `const_ptr_type_node' was not being initialized. Same with - `const_string_type_node'. + * collect2.c (scan_prog_file, OSF/rose case): Cast pointer arguments + to bcopy to generic * to avoid warnings. - * tree.h (DECL_PRINT_NAME): Marked for death. - (DECL_ASSEMBLER_NAME): Changed from a char* to a tree node. - All front-end files changed as necessary. +Thu Jun 18 12:04:53 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) - * cplus-tree.h (DECL_ORIGINAL_NAME): Deleted. Now we use - DECL_NAME. - (DECL_NAME): No longer means the mangled name. Now we use - DECL_ASSEMBLER_NAME for that purpose. - All cplus-* files changed as necessary. + * c++: If given -v with no file args, don't pass the libraries to + gcc. - * cplus-tree.c (lang_printable_name): Use a ring-buffer to hold - printable names instead of DECL_PRINT_NAME slot of a _DECL node. +Thu Jun 18 10:34:22 1992 Tom Wood (wood@dg-rtp.dg.com) - * collect2.c: #define COLLECT, and let config.h provide definition - of macros. + * expr.c (expand_builtin, BUILT_IN_FSQRT): Emit queue of increment + instructions before starting a sequence that may get thrown away. -See file ChangeLog.3. - -Local Variables: -mode: indented-text -left-margin: 8 -fill-column: 76 -version-control: never -End: +See ChangeLog.5 for earlier changes.