--- gcc/ChangeLog 2018/04/24 17:51:19 1.1 +++ gcc/ChangeLog 2018/04/24 18:10:27 1.1.1.6 @@ -1,13233 +1,9217 @@ -Sat Feb 22 02:09:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Jan 23 18:41:37 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Version 2.0 released. + * Version 2.5.8 released. - * gcc.c (do_spec_1): Handle SPACE_AFTER_L_OPTION. - * hp320.h (SPACE_AFTER_L_OPTION): Defined. - Note: for 2.1, try making a space there on all systems. - - * i386mach.h (perform_*): New macros, copied from i386rose.h. - - * Makefile.in (distclean): New target. - (realclean): Avoid duplication with self or with distclean. - (gcc.xtar.Z): Depend on gcc.xtar. - (gcc.xtar): Fixes in copying files. - - * expr.c (do_store_flag): Don't correct CODE before where it is set. - - * cp-parse.y (stmt): Pass pushcase_range all the args it wants. - -Fri Feb 21 18:14:52 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (distribute_notes): Correctly handle the case of a - REG_DEAD note for a multi-word hard register when not all of - the words are used. - -Fri Feb 21 16:47:32 1992 Michael Meissner (meissner@osf.org) - - * mips.h (MIPS_VERSION): Change Meissner version # to 12. - (half_pic support): Move the halfpic support to halfpic.h which is - included in the decrose case, and nop the support in other MIPS - platforms. - (OPTIMIZATION_OPTIONS): Move setting caller-saves to -O2. - (OBJECT_FORMAT_COFF, EXTENDED_COFF): Define unless OSF/rose. - (INITIAL_FRAME_POINTER_OFFSET): Always recalculate the frame size, - don't rely on cached values. - - * mips.c (half_pic support): Move the halfpic support to halfpic.c, - which is only compiled for OSF/rose. - (expand_block_move): Use copy_addr_to_reg instead of copy_to_reg in - case either the source or destination is an integer constant - converted to an appropriate pointer type. - (mips_debugger_offset): Use a local variable to hold function - result. - - * decrose.h (toplevel): Include halfpic.h for halfpic support. - (PTRDIFF_TYPE): Change to 'int' to match current include files. - (WCHAR_TYPE): Change to 'unsigned int' to match include files. - (INIT_SECTION_ASM_OP): Delete, since the OSF/rose assembler doesn't - support a true initialization section. - - * encrose.h (PTRDIFF_TYPE): Change to 'int' to match current include - files. - (WCHAR_TYPE): Change to 'unsigned int' to match include files. - - * t-decrose (EXTRA_OBJS): Define as halfpic.o to provide halfpic - support. - (CONFIG2_H): Treat halfpic.h as another config file. - (halfpic.o): Add dependencies. + * reload.c (find_reloads): Properly test for output operand + when changing RELOAD_FOR_OUTPUT_ADDRESS to RELOAD_FOR_INPUT_ADDRESS. - * halfpic.h (new file): Common include file for systems needing the - OSF/rose half-pic shared library support. + * alpha.c (output_{pro,epi}log): Use assemble_name to output + alpha_function_name. - * halfpic.c (new file): Common support file for systems needing the - OSF/rose half-pic shared library support. Currently these are stub - functions. - -Fri Feb 21 01:34:08 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * dwarfout.c (location_or_const_value_attribute): Use DECL_RTL again. - Seems to be safer for the moment. - * function.c (instantiate_decls): Don't instantiate DECL_INCOMING_RTL. - - * dwarfout.c (output_mem_loc_descriptor): Handle CONST like SYMBOL_REF. - - * collect2.c (errno): Declare if not macro. - - * dbxout.c [MIPS]: Include gstab.h, not stab.h. - - * dbxout.c (dbxout_symbol): No longer flush leading _ for C++ syms. - - * cp-parse.y (.hush_warning): Set $$. - - * gstdarg.h: Handle _HIDDEN_VA_LIST as in gvarargs.h. - -Thu Feb 20 07:41:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * vax.c (reg_or_nxmem_operand): New function. - (split_quadword_operands): Add missing return type (void). - * vax.md (jlbc/jbc/jlbs/jbs): Handle QImode operands properly. - - * caller-save.c (set_reg_live): Use mode of SUBREG to see how many - hard regs are written. - - * combine.c (simplify_shift_const, case IOR, AND, XOR): Perform - logic computation in RESULT_MODE, not mode of VAROP. - -Wed Feb 19 18:32:05 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * hp320.h (PRINT_OPERAND): Support codes '$' and '&'. - - * reload1.c (reload): Add cast of enum in index. - - * vms.h (CPP_PREDEFINES): Define __GNUC__ as 2. - -Wed Feb 19 21:43:36 1992 Ron Guilmette (rfg at ncd.com) +Sun Jan 23 18:40:23 1994 Samuel A. Figueroa (figueroa@cs.nyu.edu) - * 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. - -Tue Feb 18 18:34:13 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * cccp.c (main): Fix typo in comment or spacing. - * dbxout.c (dbxout_block): Likewise. - * expr.c (convert_move): Likewise. - * reload1.c (emit_reload_insn): Likewise. - * rtl.h (REG_NOTES): Likewise. - * sun4o3.h: Likewise. - * ultrix.h (CPP_PREDEFINES): Likewise. - * toplev.c (flag_no_common): Likewise. - * stmt.c (layout_type): Likewise. - * gcc.c (is_linker_dir, lookup_compiler): Likewise. - - * sched.c (schedule_block): Comment code handling USE insns as - obsolete. - -Tue Feb 18 14:44:49 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * 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. - - * g++: Now a link to c++. - -Tue Feb 18 04:54:52 1992 david d [zoo] zuhn (zoo at lynx.spa.umn.edu) - - * protoize.c (main): added support for -p flag, to specify which - gcc is the one to call for -fgen-aux-info support. + * i386/os2.h (PATH_SEPARATOR): New macro. + * i386/gas.h (ASM_FILE_START): Delete; identical to one in bsd.h, + which is included. -Tue Feb 18 07:29:23 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Jan 23 05:59:31 1994 Per Bothner (bothner@cygnus.com) - * combine.c (try_combine): Don't clobber OTHER_INSN's PATTERN if - we aren't able to change the insn. + * c-typeck.c (really_start_incremental_init): Save current elements + instead of clearing them. - * romp.md (bit_insv): Add missing CLOBBER when making pattern to - match mftb; likewise for the DEFINE_INSN. +Sat Jan 22 17:23:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu) -Tue Feb 18 01:03:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * pa.h (ASM_FILE_START): Emit a .file directive at the beginning + of the output file if debug symbols are being generated. - * rs6000.h (bss_section): Set `in_section' correctly. +Thu Jan 13 05:42:30 1994 Torbjorn Granlund (tege@adder.cygnus.com) - * expmed.c (synth_mult): Count second shift for alg_compound. - Count extra shift for lea case. - * m68k.h (RTX_COSTS): Reduce cost of multiply. + * config.sub: Fix typo in -hiux* case. - * function.c (instantiate_decls): Instantiate DECL_INCOMING_RTL. +Tue Jan 11 19:14:31 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Feb 17 19:17:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * a29k.c (output_prolog): Update debug reg map when + we have -mkernel-registers. - * a29k.md (divmodsi4, udivmodsi4): Don't use reg 180 explicitly. - Instead use 'q' constraint letter. +Mon Jan 10 19:06:57 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Feb 17 16:15:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expr.c (protect_from_queue): If (MEM (QUEUED ...)), modify a + new MEM instead of the one we were passed. - * global-alloc.c (global_alloc): Always call `reload'. + * regclass.c (globalize_reg): New function. + (init_reg_sets_1): Don't handle global regs here. + * varasm.c (make_decl_rtl): Call globalize_reg, not init_reg_sets_1. -Mon Feb 17 10:38:38 1992 Jim Wilson (wilson at sphagnum.cygnus.com) + * a29k.c (print_operand, case 'F'): If we have to do the last + prolog insn, give that priority for an unfilled delay slot. - * a29k.md (movdi define_split): Use DImode in operand_subword - calls, not DFmode. + * function.c (preserve_rtl_expr_result): New function. + * expr.c (exand_expr, case RTL_EXPR): Call it. -Mon Feb 17 08:20:33 1992 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) +Sun Jan 9 04:40:27 1994 James Van Artsdalen (james at bigtex.cactus.org) - * varasm.c (assemble_external): Check that DECL is some sort of - _DECL before referencing its DECL_RTL. + * jump.c (follow_jumps): Don't follow tablejumps. -Sun Feb 16 13:05:36 1992 Michael Tiemann (tiemann at cygnus.com) +Tue Jan 4 07:35:05 1994 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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). + * tree.c (substitute_expr): Don't abort for RTL_EXPR and + SAVE_EXPR; just do nothing. - * cp-lex.c (do_identifier): Remove call to `assemble_external' when - implicitly declaring ID. +Fri Dec 31 06:27:57 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-parse.y (primary): Simplify rules for calling assemble_external. + * combine.c (force_to_mode): Add new parm JUST_SELECT; all + callers changed. - * cp-decl.c (finish_function): For destructors, don't call - expand_expr_stmt if EXPRSTMT is VOID_ZERO_NODE. +Fri Dec 24 05:34:38 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sun Dec 16 23:31:54 1992 Ron Guilmette (rfg at ncd.com) + * alpha.md (define_attr type): Add new type ISUBR. + (divmod): Set to type ISUBR. + * alpha.c (output_prolog): Need GP if type ISUBR. - * 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. + * reload.c (push_reload, find_reloads): Reload inside a paradoxical + SUBREG of MEM except don't force a reload unless the inner mode + is narrower than BIGGEST_ALIGNMENT. -Sun Feb 16 00:54:10 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-typeck.c (check_init_type_bitfields): Check recursively inside + arrays and records. - * fixincludes: Add #ifndef around size_t declaration in types.h. + * cse.c (simplify_binary_operation): Can fold multi-word + operations when first is CONST_INT. + (simplify_binary_operation, case PLUS, MINUS): Don't call + plus_constant when OP0 is VOIDmode. - * varasm.c (assemble_external): Do nothing if arg isn't a decl. + * c-typeck.c (pop_init_level): Don't abort if have incomplete array + type inside some other type. - * Makefile.in (cp-parse.c): Update "expect" msg. +Thu Dec 23 07:30:24 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * next.h (CPP_SPEC): Rename -bsd to -strict-bsd. + * Makefile.in (libgcc.a): Allow chmod of tmpcopy directory to + fail since it can be empty. - * Makefile.in (mostlyclean): Add ld, mips-tfile, mips-tdump. + * gcc.c (default_compilers, gnat1): Don't write -gnatb. - * protoize.c (directory_specified_p): Don't match files in subdirs. + * expr.c (expand_expr, case MINUS_EXPR): When expanding an + initializer, use plus_constant as appropriate. - * xm-rs6k-m.h: Renamed from xm-rs6000-mach.h. - * configure (rs6000-*-mach*): Changed accordingly. +Thu Dec 23 09:03:30 1993 Phil Nelson (phil@cs.wwu.edu) - * 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. + * ns32k.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use .long, not .double. - * Makefile.in (install-collect2): Install gcc in libsubdir. +Tue Dec 21 17:37:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sat Feb 15 15:26:03 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h (VTABLE_NAME): No def with NO_{DOLLAR,DOT} defined. + (VTABLE_NAME_P): Use it instead of VTABLE_NAME_FORMAT. - * varasm.c (decode_reg_name): Empty string is not a reg number. +Tue Dec 21 13:25:39 1993 Jim Wilson (wilson@cygnus.com) - * fold-const.c (merge_component_references): NE tests against - mismatched constants forces 1, not 0, as value. + * rtlanal.c (replace_regs, case REG): Return copies of SUBREGs, to + avoid invalid sharing. - * i386gas.h (ASM_OUTPUT_OPCODE): Convert repz to repe. +Mon Dec 20 19:10:16 1993 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. + * c-typeck.c (struct initializer_stack): New field ELEMENTS. + (start_init, finish_init): Save and restore constructor_elements. - * cp-typeck.c (default_conversion): Don't use initial value if BLKmode. + * emit-rtl.c (gen_lowpart_common): Return a new hard reg even + if not valid in MODE if the input REG is not valid in its mode. - * objc-actions.c (finish_objc): Fix typos in last change. + * rs6000.md (divsi3): Correct logic for when we call force_reg. + (modsi3): Ensure operands[2] is a CONST_INT; include REG in + predicate. - * c-aux-info.c, dbxout.c, cccp.c (errno): Declare, if not a macro. +Thu Dec 16 11:34:48 1993 Ian Lance Taylor (ian@cygnus.com) - * i386.md (QI bit test recognizer): Split into separate patterns - for memory and register args. Make a scratch reg for memory. + * fixincludes: Do not preserve _HIDDEN_VA_LIST in stdio.h. -Fri Feb 14 23:39:58 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Dec 12 06:47:14 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * tree.c (get_identifier): Improve -Wid-clash message. + * Version 2.5.7 released. -Fri Feb 14 16:22:48 1992 Michael Collison (collison at osf.org) +Sun Dec 12 06:18:33 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * 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. + * function.c (thread_prologue_and_epilogue_insns): When constructing + USE chain, set both NEXT_INSN and PREV_INSN links. Also, preserve + order of USE insns in chain. -Fri Feb 14 00:38:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Dec 12 06:13:51 1993 DJ Delorie (dj@ctron.com) - * Makefile.in (protoize.o, unprotoize.o): g++-include is under libdir. + * configure.bat: Update to relect recent changes elsewhere. + * objc/makefile.dos: Likewise. - * Makefile.in (enquire.o): Make the command one long line. +Sat Dec 11 18:09:50 1993 Per Bothner (bothner@cygnus.com) - * 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. + * dbxout.c (dbxout_type): The "base type" of a SET_TYPE is its + DOMAIN_TYPE, not its TREE_TYPE. + * dwarfout.c (output_type): Likewise. - * varasm.c (assemble_external): Test TREE_EXTERNAL. +Sat Dec 11 07:36:57 1993 David Rifkind (dave@yarc.com) - * jump.c (follow_jumps): If can't find chain end, return orig label + * rs6000.md: Add a few missing new nmemonics. - * mot3300.h (PRINT_OPERAND): Always print 16 hex digits for a double. +Sat Dec 11 06:57:55 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * cccp.c (INPUT_STACK_MAX): Double size. - * cccp.c (pedwarn_with_file_and_line): Handle -w, -W. + * integrate.c (initialize_for_inline): Handle CONCAT when setting up + parmdecl_map. -Fri Feb 14 07:44:08 1992 James Van Artsdalen (james at bigtex.cactus.org) + * rs6000.md (modsi3): Reject REG in predicate to avoid undefined + reference and extra pseudo creation if will fail. - * 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. +Fri Dec 10 10:03:36 1993 Mike Stump (mrs@cygnus.com) - * i386.c (seq,sne,beq,bne): These opcodes use the state of - cc_status from before the curren insn. + * toplev.c (lang_options): Change -fnodollars-in-identifiers to + -fno-dollars-in-identifiers to match docs. - * reg-stack.c (stack_reg_mentioned_p): Don't make static. +Fri Dec 10 15:42:02 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) -Fri Feb 14 06:27:48 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-lex.c (yylex): When reading malformed floating point constant, + avoid printing error more than once, and avoid passing malformed + number to subsequent atof call. - * jump.c (jump_optimize): Disable "if (...) {... x = C;} if (x) ..." - optimization; there doesn't seem to be a way to fix it. +Fri Dec 10 06:03:35 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Feb 13 18:06:06 1992 James Van Artsdalen (james at bigtex.cactus.org) + * rs6000.c (easy_fp_constant): Use input_operand to see if + each word can be loaded in one insn. - * 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. + * rs6000.md: Change numerous occurrences of TARGET_POWERPC + to ! TARGET_POWER and make related changes. -Thu Feb 13 17:21:26 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * rs6000.md (modsi3): Rework to operate correctly for both POWER + and PowerPC. - * c-decl.c (finish_struct): Use pedwarn for pedantic warning. - (grokdeclarator): Likewise. - * c-parse.y (component_decl_list2): Likewise. +Thu Dec 9 16:19:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Feb 13 22:11:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-tree.h (OPERATOR_TYPENAME_P): Define outside of + NO_{DOLLAR,DOT} macro checks, so it always gets defined. + (VTABLE_NAME_P): Define for NO_DOT && NO_DOLLAR_IN_LABEL. - * combine.c (make_extraction): Default modes to byte and register - size, as appopriate, when the bitfield insn doesn't exist. +Wed Dec 8 05:46:26 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * a29kunix.h (LINK_SPEC): Pass default option file to gld. - (LINK_LIBGCC_SPECIAL): Define to work around gld bug. + * flow.c (mark_used_regs, case CLOBBER): Refine previous change + to just look at the address of a MEM inside a CLOBBER. - * explow.c (copy_to_suggested_reg): Try getting mode from TARGET. + * fold-const.c (fold, case *_{DIV,MOD}_EXPR): When using + distributive law, take care when C2 is negative. - * 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. +Tue Dec 7 08:45:59 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * flow.c (mark_used_regs): Look inside a CLOBBER; it may be the only + place regs are used if it has a stack slot that is from an inlined + function. - * a29k.c (output_prologue): Correctly set LR1 when more than 64 - registers are needed. +Mon Dec 6 20:56:11 1993 David Rifkind (dave@yarc.com) -Wed Feb 12 22:22:46 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * expr.c (move_block_{to,from}_reg): Check HAVE_{load,store}_multiple + value; don't just #idef the symbol. - * make-cccp.com: Define link as a local symbol to avoid - possible conflict with a user defined global symbol. +Mon Dec 6 08:01:59 1993 Torbjorn Granlund (tege@cygnus.com) - * make-cc1.com: Likewise. + * pa.c (hppa_legitimize_address): If we can't legitimize, + do nothing; don't call abort. -Thu Feb 13 11:05:07 1992 Michael Meissner (meissner at osf.org) +Mon Dec 6 07:38:30 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * 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. - -Thu Feb 13 01:15:00 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * arm.c (output_ascii_pseudo_op): 8-bit chars should be zero-extended. + * arm.h (ASM_OUTPUT_ASCII): Likewise. - * cccp.c (skip_if_group): Skip comments after the #. +Mon Dec 6 07:32:59 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cccp.c (macarg): Don't assume stringify will compress spaces. - (macroexpand): In stringify, compress space only outside tokens. + * objc/encoding.h: Include ctype.h. - * cexp.y (exp1): Use pedwarn for comma in #if. + * expr.c (expand_expr, case PLACEHOLDER_EXPR): Remove top entry + from PLACEHOLDER_LIST when expanding the value in it. - * cp-decl.c (push_binding_level, pop_binding_level): - Change `inline' to `__inline'. +Mon Dec 6 05:40:38 1993 Doug Evans (dje@cygnus.com) - * combine.c (make_compound_operation): Undo previous change. + * emit-rtl.c (start_sequence): Save current sequence_rtl_expr. -Wed Feb 12 18:47:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Dec 3 07:07:01 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * Version 2.5.6 released. -Wed Feb 12 18:58:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-typeck.c (c_expand_return): Return if convert_for_assignment + returns error_mark_node. - * gcc.c (do_spec_1): Only absolute prefixes turn into -L's. - (link_command_spec): Handle LINK_LIBGCC_SPECIAL. +Fri Dec 3 06:42:05 1993 Arne Henrik Juul (arnej@fm.unit.no) -Wed Feb 12 18:38:29 1992 Chris Smith (csmith at convex.com) + * fixincludes (stdio.h): Fix typos (missing quote) in previous change. - * 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). +Fri Dec 3 06:35:57 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Wed Feb 12 17:23:57 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * gstddef.h: Define and protect against __STDDEF_H__ for Irix 5.1. - * config.sub: Accept just `hppa' for machine. + * sparc.c (shift_operand): Delete function. + * sparc.md (ashlsi3, ashrsi3, lshrsi3): Use arith_operand instead + of shift_operand. Truncate shift counts to 5 bits. - * Makefile.in (Install-collect2): New target. +Thu Dec 2 08:11:00 1993 Stefan Rapp (sr@irb.informatik.uni-dortmund.de) -Wed Feb 12 13:55:24 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * loop.c (scan_loop): Correct arguments for register check. - * reorg.c (relax_delay_slots): Don't convert jump to return here. +Thu Dec 2 07:07:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * 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. + * fixincludes: Preserve _HIDDEN_VA_LIST when changing VA_LIST to + DUMMY_VA_LIST. Change __va_list to __gnuc_va_list. For AIX + 3.2.5. - * reload.c (find_reloads): Don't use class from preference if it - is a single-register class. +Thu Dec 2 07:00:24 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Feb 12 13:03:16 1992 Tom Wood (wood at dg-rtp.dg.com) + * emit-rtl.c (push_topmost_sequence, end_sequence): Update + sequence_rtl_expr from sequence_stack entry. - * m88k.h (FUNCTION_BOUNDARY, ASM_OUTPUT_ALIGN): Pack code tightly - when compiling crtstuff.c (flag_inhibit_size_directive). + * calls.c (emit_library_call): Use Pmode, not OUTMODE, when passing + in structure address. -Wed Feb 12 10:34:09 1992 Michael Meissner (meissner at osf.org) + * a29k.c (secondary_reload_class): Kernel regs are in same class + as user regs. - * 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. + * a29k.md (movti split): Set CR to 3, not 1 like DImode. -Wed Feb 12 10:34:09 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Thu Dec 2 06:46:07 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * caller-save.c (insert_save_restore): Properly check for insns that - reference CC0. + * reload.c (find_reloads_toplev): Replace obsolete reference to + BYTE_LOADS_*_EXTEND with LOAD_EXTEND_OP. -Wed Feb 12 03:17:00 1992 Chris Smith (csmith at convex.com) +Thu Dec 2 06:39:16 1993 Jeffrey A Law (law@snake.cs.utah.edu) - * convex.h (DEFAULT_CALLER_SAVES): don't define, to sidestep a bug. - * convex.md (ffssi2): Comment out. + * pa.h (ASM_STABS_OP, ASM_STABN_OP): Define. + (ASM_FILE_END): Put a TAB before the .stabs directive. -Wed Feb 12 00:08:42 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) +Thu Dec 2 06:30:17 1993 David Edelsohn (edelsohn@npac.syr.edu) - * make-libgcc2.com: Do not save .s file. + * rs6000.md (define_function_unit): Restore ppc601 load and fpload + timings. - * vms.h: Wrap #include in #ifdef L__main/endif +Wed Dec 1 17:24:17 1993 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu) -Tue Feb 11 21:58:42 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + Wed Nov 24 06:36:10 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * libgcc2.c (DO_GLOBAL_DTORS_BODY): New macro. + * cp-tree.c (get_decl_list): Use the DECL_NESTED_TYPENAME for the + value we're going to paste onto CLASSTYPE_ID_AS_LIST. This will get + the right name for nested classes, and for templates. - * make-l2.com: New file to build libgcc2 on VMS. + Mon Nov 29 13:09:31 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * vms.h (DO_GLOBAL_CTORS_BODY): Replacement definition. + * cp-decl.c (grokdeclarator): Properly evaluate TREE_PUBLIC for + friends. (Fixes spurious warnings about friends being declared + static but not used.) - * vms.h (DO_GLOBAL_DTORS_BODY): Likewise. + * cp-type2.c (build_functional_cast): If we got an error_mark_node + from build_method_call, make sure EXPR_AS_METHOD is cleared out + again, so the later checks will work properly. - * make-cccp.com: Define bison and rename as local symbols to avoid - possible conflict with user defined global symbols. + * cp-decl.c (build_enumerator): Fix logic so an enum inside a class + that's local to a function has its enumerators end up in that + class's list of members, not in the list for the function. -Tue Feb 11 22:17:32 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Nov 30 19:26:05 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * sched.c (attach_deaths): Don't treat PIC offset table register - specially; flow.c doesn't. + * sparc.h (STATIC_CHAIN_REGNUM): Use %g2; %g1 is reserved + for prologue. + (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Swap useage of %g1 + and %g2. - * 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. + * m68k.md (movdf): Don't need earlyclobber when a register + is copied to itself. -Tue Feb 11 21:32:07 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Nov 27 06:19:22 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (install-common-headers): Copy byteorder.h to - compilation dir. + * Version 2.5.5 released. - * config.sub: Allow unicos as operating system. + * c-typeck.c (pop_init_level): Ensure never on momentary_obstack + when calling complete_array_type. - * m88kv4.h (INIT_SECTION_ASM_OP): Add #progbits. +Sat Nov 27 03:52:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * vax.h (DYNAMIC_CHAIN_ADDRESS): New macro. + * fixproto (scanning files_to_check): Create subdirs files are in. - * c++: Propagate quoted args properly. + * config/m68k/m68k.md (cmpsi, cmphi, cmpqi): Handle SGS_CMP_ORDER + when outputting cmpm insn. -Tue Feb 11 16:35:01 1992 Jim Wilson (wilson at cygnus.com) +Fri Nov 26 15:57:24 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fixincludes: Define TERM to `unknown', to ensure that it is - valid. Otherwise, ex may fail. - * fixinc.svr4: Likewise. + * gcc.c (default_compilers): Do define __GNUC_MINOR__ if input is `-'. -Tue Feb 11 18:04:32 1992 Michael Meissner (meissner at osf.org) +Thu Nov 25 18:16:25 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * function.h (struct sequence_stack): New field sequence_rtl_expr. + (struct function): Likewise. + * emit-rtl.c: Include tree.h. + (sequence_rtl_expr): New variable. + (save_emit_status, restore_emit_status): Save and restore it. + (init_emit): Initialize it. + (start_sequence_for_rtl_expr): New function. + * function.c: Declare sequence_rtl_expr. + (struct temp_slot): New field rtl_expr. + (assign_stack_temp): Set it from sequence_rtl_expr. + ({free,pop}_temp_slots): Don't free any slot with nonzero rtl_expr. + (free_temps_for_rtl_expr): New function. + * expr.c (expand_expr, case RTL_EXPR): Call free_temps_for_rtl_expr. + * stmt.c (expand_start_stmt_expr): Call start_sequence_for_rtl_expr + instead of start_sequence. + * cp-parse.y (except_stmts): Likewise. + * cp-init.c (build_new): Likewise. + * cp-typeck.c (build_modify_expr): Likewise. + * Makefile.in (emit-rtl.o): Includes tree.h. - * decstatn.h (CPP_PREDEFINES): Eliminate __ versions, since - gcc will do these automatically. Eliminate LANGUAGE_C, since it is - handled in CPP_SPEC. +Thu Nov 25 17:24:02 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Feb 11 15:38:27 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * Makefile.in (stmp-fixproto): Create include subdir if doesn't exist. - * flow.c (find_basic_blocks): Don't delete labels used in non-jumps. +Wed Nov 24 14:32:47 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * vms.h (DO_GLOBAL_CTORS_BODY): Modify the return address - only the first time __main is called. + * c-common.c (shorten_compare): Correct typo from last change. - * fixinc.svr4: Change headers to test __STRICT_ANSI__ instead of - testing __STDC__ != 0. +Wed Nov 24 13:25:09 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * fixinc.svr4 (mman.h): Fix backward __STDC__ conditional. - Don't add declarations of munmap and mprotect. + * protoize.c (save_def_or_dec): Correct typo in change of Nov 23. Make + sure pointers within def_dec_p are valid before it is freed. - * varasm.c (output_constant): Allow empty constructor for any type. +Wed Nov 24 07:02:50 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * dwarfout.c (ASM_OUTPUT_DWARF_DATA8): Just one definition; - test WORDS_BIG_ENDIAN "at run time". + * expr.c (expand_expr, case ADDR_EXPR): Also pass const0_rtx if + necessary, to avoid multiple cleanup runs. + (expand_expr, case WITH_CLEANUP_EXPR): Pass const0_rtx if + necessary, to keep the recursive call from running the same + cleanups twice. + (expand_expr, case TARGET_EXPR): Don't try to add the cleanup if + ignore's non-zero, since we would have already done it. -Tue Feb 11 09:00:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Tue Nov 23 21:10:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * reload.c (find_reloads): Don't substitute in MATCH_DUPs if we - are not generating replacements. + Cygnus<->FSF C++ front-end merge. + Tue Nov 23 11:05:28 1993 Jason Merrill (jason@deneb.cygnus.com) -Tue Feb 11 08:45:14 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-errfn.c (STRDUP): Cast return value of alloca to (char *). - * m88kv4.h ({CTORS,DTORS}_SECTION_ASM_OP): Fix typo. + Mon Nov 22 00:07:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Feb 10 22:34:47 1992 Chris Smith (csmith at convex.com) + * cp-lex.c (real_yylex): Move declaration of tmp inside the block + that uses it, so compilers don't try to mis-optimize it away. - * convex.h(HARD_REGNO_NREGS): define correctly for 64-bit regs + * cp-search.c (dfs_pushdecls): Make sure there's a lang_specific + node on the decl before trying to print the warning out. -Mon Feb 10 21:50:23 1992 Michael Meissner (meissner at osf.org) + * cp-decl.c (grokdeclarator): Say the member was redeclared as + static, not just that it can't be declared static. - * 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. + * cp-search.c (get_first_matching_virtual): Don't do + SET_IDENTIFIER_ERROR_LOCUS as an attempt to avoid multiple warnings + with -Woverloaded-virtual. It changes the compiler's behavior + (elicits unwanted errors). - * 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. + Sat Nov 20 19:31:01 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Feb 10 16:34:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h (lang_type): Add field `has_nonpublic_ctor', and delete + dummy since we used the two bits it was holding out for the MIPS + compiler. + (TYPE_HAS_NONPUBLIC_CTOR): Defined. + * cp-class.c (finish_struct_methods): Set TYPE_HAS_NONPUBLIC_CTOR + as appropriate for a copy ctor with non-public visibility. + (finish_struct): Don't generate a copy ctor if the type if one of + its fields has a private copy ctor, or a protected one for which we + aren't allowed access. + (base_info): Add member `saw_nonpublic_ctor'. + (finish_base_struct): Set b->saw_nonpublic_ctor if necessary. - * convex.h (REAL_VALUE_TRUNCATE): Obsolete definition deleted. + * cp-method.c (hack_identifier): Make sure there's a + DECL_LANG_SPECIFIC before getting ready to grope around a class. - * config.sub (convex-*): These are BSD, not sysv. + * cp-typeck.c (build_indirect_ref): Complain if we encounter a + pointer to member. - * 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. + Fri Nov 19 16:37:28 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Feb 10 12:28:59 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (start_decl): Complain when a function is declared as + part of a template definition, but the class it's supposed to be + part of wasn't a template. - * xm-a29k-ult.h: Fix typo in placement of copyright notice. + * cp-decl.c (pushdecl): Don't warn about shadowing a member of + `this' if that member is static. -Mon Feb 10 05:36:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-call.c (convert_harshness_old): Don't die if one of the types + isn't an aggregate with a binfo. + (convert_harshness_ansi): Likewise. - * dbxout.c (dbxout_type): Don't use GDB extensions if they are empty. + Fri Nov 19 12:18:31 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Feb 10 00:10:20 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-typeck.c (convert_for_assignment): Fix typo so initialization + of a pointer from an integer actually work, rather than emit bogus + code. - * cp-class.c (finish_struct): Use DECL_CHAIN, not TREE_CHAIN to walk - through the list of methods identified by a visibility declaration. + * cp-pt.c (overload_template_name): Accept unions for templates. + (instantiate_class_template): Likewise. + * cp-parse.y (template_instantiate_once): Likewise. - * cp-cvt.c (convert_pointer_to): No longer need to abort if BINFO is - not a TREE_VEC or AGGR_TYPE node. + * cp-lex.c (real_yylex): Instead of using the "shorts" method to + check for overflow, use the C front-end's "parts" method (to handle + any size, and not rely on long long being 32 bits wide). - * cp-parse.y (stmt): Improve error handling for try/except. + Thu Nov 18 11:51:34 1993 Jason Merrill (jason@deneb.cygnus.com) - * cp-class.c (add_method): If we create RTL for a copy of METHOD, - copy the RTL to METHOD's DECL_RTL slot. + * cp-lex.c (cons_up_default_function): Disable earlier change; it + screws up stabs somehow. Very strange. - * cp-method.c (dump_type): Print `const' and/or `volatile' for - VOID_TYPE and REAL_TYPEs, too. + Thu Nov 18 00:16:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sun Feb 9 21:07:45 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (grokdeclarator): Say what class is involved when saying + we can't declare a member inside it. - * varasm.c (assemble_integer): Pass third arg in recursive calls. - Act appropriately if word-by-word loop doesn't finish. + * cp-lex.c (real_yylex): Recognize operator->() as POINTSAT, not + POINTSAT_LEFT_RIGHT. By swallowing the parens, we ended up never + building the call properly for them. + * cp-parse.y (POINTSAT_LEFT_RIGHT): Remove token. + (operator_name): Remove POINTSAT_LEFT_RIGHT rule. + * cp-spew.c (init_spew): Remove POINTSAT_LEFT_RIGHT from + toks_follow_ids. - * Makefile.in (bootstrap*): Don't override value of ALLOCA. + * cp-parse.y (primary): Only try to print out the operator's name if + it's valid. - * dbxout.c (dbxout_symbol, dbxout_parms): Do leaf function remap - only if LEAF_REG_REMAP and only in leaf functions. + * cp-decl.c (grok_op_properties): Fix missing parens to keep the + logic from accidentally giving an error when it shouldn't. -Sun Feb 9 16:46:27 1992 Michael Tiemann (tiemann at cygnus.com) + Wed Nov 17 20:04:00 1993 Jason Merrill (jason@deneb.cygnus.com) - * cp-init.c (maybe_adjust_addr_for_delete): Build final COND_EXPR - with TREE_TYPE (addr). + * cp-search.c (dfs_pushdecls): TREE_PURPOSE doesn't have to be + a _DECL for class_value to be an envelope, it just can't be an + IDENTIFIER_NODE. -Sun Feb 9 14:20:49 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Nov 17 15:54:02 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-type2.c (process_init_constructor): Deal with pointers to + members as initializers for initializer lists. -Sun Feb 9 08:29:21 1992 James Van Artsdalen (james at bigtex.cactus.org) + Wed Nov 17 11:48:38 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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. + * cp-decl.c (ambi_op_p): Add ++ and --. - * i386.c (regclass_map): New variable. Lookup array for - REGNO_REG_CLASS. + * cp-error.c: Lose the anon_parm_name stuff. -Sat Feb 8 01:20:33 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-lex.c (cons_up_default_function): Change input_filename for + synthetic code. - * cp-parse.y (yyprint): Test __GNUC__, not __GNU__. - Use __inline, like everywhere else. + * cp-error.c (dump_aggr_type): Always print const or volatile. + (dump_function_decl): Only print static if verbose. - * a29k.h, romp.h (OVERRIDE_OPTIONS): Deleted. - (OPTIMIZATION_OPTIONS): Defined, instead. - * rs6000.h (OPTIMIZATION_OPTIONS): New macro. - (OVERRIDE_OPTIONS): Don't change optimization. + * cp-errfn.c (cp_sprintf): New function. - * final.c (leaf_renumber_regs_insn): No longer static. - * dbxout.c (dbxout_symbol, dbxout_parms): Call that. + * cp-decl.c (grokfndecl): Be more verbose in complaint about applying + method qualifiers to non-methods. - * 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. + Wed Nov 17 09:51:04 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * c-typeck.c (build_array_ref): Return early if arg is error mark. + * cp-parse.y (attrib): Accept "noreturn" attribute. - * Makefile.in (test-protoize): Rule deleted. + Tue Nov 16 12:28:49 1993 Jason Merrill (jason@deneb.cygnus.com) - * stmt.c (emit_case_nodes): Handle just-left-subtree case - like just-right-subtree--delete mysterious code that tests cost_table. + * cp-decl2.c (grokoptypename): Fix handling of udc's. - * varasm.c (decode_reg_name): Accept decimal number as reg name. + * cp-method.c (build_component_type_expr): Ditto. - * c-decl.c (finish_decl): If pop_obstacks goes to perm obstack, - call permanent_allocation. + * cp-class.c (finish_struct_methods): Be more verbose in complaint + about overloaded operator delete. - * gcc.c (link_command_spec): Use -lgcc, not libgcc.a. + * cp-decl.c (grok_op_properties): Do more checking on operators. + (grokdeclarator): Remove check for ops being members, fix handling + of user-defined conversions. + (grokfndecl): Remove checks for ops, move call to grok_op_properties + up. + (finish_decl): Remove check for ops with default arguments. + (ambi_op_p): New fn, name for either unary or binary op + (unary_op_p): New fn, checks name for unary op -Fri Feb 7 16:56:17 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + Mon Nov 15 12:38:54 1993 Brendan Kehoe (brendan@rtl.cygnus.com) - * rs6000.h (DOLLARS_IN_IDENTIFIERS): Define to zero, because the - assembler does not accept dollar signs. + * g++.c (main): If they gave us -v, also show the invocation of the + gcc driver. -Fri Feb 7 15:36:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Mon Nov 15 12:04:47 1993 Jason Merrill (jason@deneb.cygnus.com) - * Makefile.in (mostlyclean): Fix name of tmp-proto.1. + * cp-decl.c (grokdeclarator): Lose "operator ". - * configure: Delete excess space in assignment to srcdir. + * cp-method.c (build_component_type_expr): Ditto. - * cp-decl2.c (DOLLARS_IN_IDENTIFIERS): Default now 1, as in C. + * cp-decl2.c (grokoptypename): Ditto. - * i386gas.h (ASM_OUTPUT_LOOP_ALIGN): New macro. - (ASM_OUTPUT_ALIGN_CODE): Use 16-byte boundary on 486. + Make C++ accept template parameters as type names; for example, + doing `template A {...}'. - * m68k.h (TRANSFER_FROM_TRAMPOLINE): Use operands for the memrefs - to avoid dependence on assembler syntax. + * cp-pt.c (end_template_parm_list): Fix a bug in gs4t's patch. + (grok_template_type): Simplify. -Fri Feb 7 10:26:32 1992 Michael Meissner (meissner at osf.org) + * cp-typeck.c (build_modify_expr_1): Give error if trying to + get default operator= for class where you can't. - * Makefile.in (EXTRA_OBJS): New variable for extra object files - needed when linking cc1, cc1plus, and cc1objc. + * cp-decl.c (duplicate_decls): Uniformify, fix redeclaration of + builtins. -Fri Feb 7 07:34:03 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Sat Nov 6 19:06:25 EST 1993 Gnanasekaran Swaminathan (gs4t@virginia.edu) - * reload1.c (set_label_offsets, reload_as_needed): Recompute - num_not_at_initial_offset when we pick up offsets from offsets_at. - - * unroll.c (unroll_loop): Copy initial and final values to avoid - sharing. + * cp-pt.c (begin_template_parm_list): pushdecl here so that we + can push TEMPLATE PARAMETERS as type names. + (process_template_parm): build_lang_decl for TEMPLATE + PARAMETERS here. + (grok_template_type): New function. get the actual type of a + TEMPLATE PARAMETER. + (coerce_template_parms): delete pushdecl as it is moved (see + above). Don't build type decls for TEMPLATE PARAMETERS as it is + built above. - * 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) + Mon Nov 15 12:04:47 1993 Jason Merrill (jason@deneb.cygnus.com) - * cp-decl.c (grokdeclarator): Invert sense of warning about - initialized extern vars, since in C++, const has funny semantics. + * cp-decl.c (duplicate_decls): If a function has been declared with + explicit language linkage, redeclaring (or defining) it without + is OK. -Thu Feb 6 15:12:02 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Fri Nov 12 15:30:27 1993 Jason Merrill (jason@deneb.cygnus.com) - * cse.c (simplify_relational_operation): Test properly for floating - equality; don't deduce this from < and >. + * cp-lex.c (operator_name_string): Fix handling of __ad__foo. - * xm-mips.h (alloca): Don't define or declare if MIPS_OVERRIDE_ALLOCA. - * xm-irix4.h (MIPS_OVERRIDE_ALLOCA): Defined. + * cp-error.c (dump_decl): Handle demangling of vtable names. - * 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. + * cp-tree.c (lang_printable_name): Pass everything to decl_as_string, + not just functions. - * gstdarg.h: If not __GNUC__, use system's stdarg.h. + * cp-decl2.c (check_classfn): Use cp_error. -Thu Feb 6 22:36:36 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-error.c (dump_decl): Fix IDENTIFIER_TYPENAME_P case. - * vms.h (DEFAULT_GDB_EXTENSIONS): Define as 0. + * cp-method.c (build_decl_overload): Propagate IDENTIFIER_OPNAME_P + to mangled identifier. -Thu Feb 6 13:32:37 1992 Michael Meissner (meissner at osf.org) + * cp-type2.c (my_friendly_abort): Add "confusion" message for + abort after earlier errors. - * 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. + Wed Nov 10 18:39:17 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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. + * cp-decl2.c (lang_decode_option): Include warn_enum_clash among + -Wall. - * 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. + Wed Nov 10 16:18:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * decrose.h (INIT_SECTION_ASM_OP): Define as .init. + * Makefile.in (stamp-cp-parse): Update counts. -Thu Feb 6 10:07:17 1992 Tom Wood (wood at dg-rtp.dg.com) + Wed Nov 10 15:27:12 1993 Jason Merrill (jason@deneb.cygnus.com) - * m88k.c (preserve_registers): Change to walk the epilogue delay - insns in the forward rather than reverse order (for reorg.c change). + * cp-errfn.c (cp_thing): Allow cp_*_at to use an arbitrary argument, + not just the first, by using, for instance, `%+D'. -Thu Feb 6 02:54:28 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Mon Nov 8 13:50:49 1993 Jason Merrill (jason@deneb.cygnus.com) - * cse.c (simplify_binary_operation, case PLUS): Don't make - a (const (plus X Y)) with X a CONST_INT. + * cp-error.c (language_as_string): New function for printing language + context. Corresponds to %L. - * fixincludes: Simplify egrep command. + Mon Nov 8 10:39:28 1993 Jason Merrill (jason@deneb.cygnus.com) -Thu Feb 6 01:11:28 1992 Mark Eichin (eichin at cygnus.com) + * cp-pt.c (reinit_parse_for_template): Use inline_text_obstack + instead of permanent_obstack so that yylex() doesn't clobber the + growing object. - * 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.) + * cp-lex.c (reinit_parse_for_block): Overhaul to reduce code size by + half and make #line directives in template definitions work. -Wed Feb 5 18:42:56 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Sun Nov 7 15:19:28 1993 Jason Merrill (jason@deneb.cygnus.com) - * reorg.c (fill_simple_delay_slots): When filling delay slots by - searching backward, put each new insn we find at the head of the - delay list instead of at the tail. + * cp-pt.c (instantiate_class_template): if (!setup_parse), don't + mess with lineno and input_filename. - * cse.c (fold_rtx): When associating operations, avoid infinite - recursion if the new expression contains our operand. + Mon Nov 1 18:15:59 1993 Kung Hsu (kung@cirdan.cygnus.com) -Wed Feb 5 21:18:06 1992 Mark Eichin (eichin at cygnus.com) + * cp-cvt.c(convert_to_reference): Fix when pass ref to array as + initializer, the argument type is convert to pointer and the type + in the field of the class should also convert to pointer. - * 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. + Fri Nov 5 11:57:41 1993 Jason Merrill (jason@deneb.cygnus.com) -Wed Feb 5 18:01:12 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-pt.c (instantiate_template): Work properly with + -fexternal-templates. - * varasm.c, hp800.h, i386.h, m88k.h, mips.h, romp.h, vms.h: - (ENCODE_SECTION_INFO): Renamed from ENCODE_SEGMENT_INFO. + * cp-lex.c (extract_interface_info): #if 0 out earlier + tinst_level work pending further work. - * sparc.md (nonlocal_goto): Copy static chain into - virtual_stack_vars_rtx, not frame pointer itself. - (nonlocal goto return recognizer): Jump to %o0+0. + Fri Nov 5 07:39:00 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * toplev.c (main): Fix test for -Wid-clash. + * cp-search.c (compute_visibility): Don't lose access to public + members from base classes of base classes. -Wed Feb 5 16:58:15 1992 Ron Guilmette (rfg at ncd.com) + * cp-typeck.c (convert_for_assignment): Allocate enough space in + LHSBUF for the null terminiator. - * 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 Nov 2 07:20:03 1993 Michael Tiemann (tiemann@blues.cygnus.com) -Tue Feb 4 14:51:16 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl2.c (build_push_scope): Don't push the scope for + ptr-to-method declarations. Also, clarify some comments. - * dbxout.c (dbxout_symbol): Handle DBX_OUTPUT_CONSTANT_SYMBOL. - (dbxout_block): Handle DBX_OUTPUT_CATCH. + * cp-parse.y (abs_member_declarator): Add `see_typename' epsilon + rule so that parser can recognize ptr-to-member functions. - * cccp.c (lookup_import, add_import, do_include): - Use bcmp and bcopy to access st_ino and ->inode fields. + Mon Nov 1 18:15:59 1993 Kung Hsu (kung@cirdan.cygnus.com) - * dbxout.c (dbxout_init): Pass syms to DBX_OUTPUT_STANDARD_TYPES. + * cp-cvt.c(convert_to_reference): Fix when pass ref to array as + initializer, the argument type is convert to pointer and the type + in the field of the class should also convert to pointer. - * 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. + Mon Nov 1 11:06:39 1993 Jason Merrill (jason@deneb.cygnus.com) - * c-common.c (c_expand_expr_stmt): Test for ERROR_MARK as type. + * cp-errfn.c: Don't include . + Don't use the return value of strcpy. -Tue Feb 4 12:03:26 1992 Michael Tiemann (tiemann at cygnus.com) + Sun Oct 31 22:32:05 1993 Jason Merrill (jason@deneb.cygnus.com) - * stmt.c (expand_end_case): Don't crash if function called - is not an ADDR_EXPR. + * cp-call.c (build_scoped_method_call): Return (void)0 if trying to + call a nonexistent destructor. -Tue Feb 4 14:17:22 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (object): Support p.~int(). - * expr.h ({float[sd]i[sd]f,fix[sd]f[sd]i,fixuns[sd]f[sd]i}_libfunc): - New declarations. - * optabs.c: Define them. - (expand_float, expand_fix): Use them instead of making a new - SYMBOL_REF each call. - (init_optabs): Initialize them. + * cp-error.c (dump_expr): Handle error_mark_node better. -Tue Feb 4 00:27:35 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Sat Oct 30 21:49:00 1993 Jason Merrill (jason@deneb.cygnus.com) - * Makefile.in (protoize.1, unprotoize.1): Rename temp files < 14 chrs. + * cp-parse.y (primary): Support p->~int(). - * cccp.c (skip_if_group): Make unknown cmd name a pedantic warning. + Fri Oct 29 18:09:12 1993 Mike Stump (mrs@cygnus.com) -Mon Feb 3 18:10:41 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-type2.c (build_functional_cast): Don't delete things twice. - * romp.h (LEGITIMATE_CONSTANT_P, ENCODE_SEGMENT_INFO): Use - SYMBOL_REF_FLAG. + Thu Oct 28 15:35:55 1993 Jason Merrill (jason@deneb.cygnus.com) - * x-romp-mach: New file. - * configure (romp-*-mach*): New alternative. + * cp-tree.h (struct tinst_level): The template instantiation level + structure. Used by the code described below. -Mon Feb 3 16:43:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-pt.c (push_tinst_level): New function for remembering file + context when instantiating templates. Stores the identifier as well, + for error reporting. + (pop_tinst_level): Da opposite. + (tinst_for_decl): Returns a pointer to the tinst_level structure to + use for determining which file to associate the current DECL with, or + NULL to use the current file and line. To restore the old behavior, + just change this function to "return 0;". + (instantiate_class_template): push_tinst_level. - * cp-typeck.c (warn_for_assignment): Print arg num in origin 1. + * cp-parse.y (tmplate_instantiate_once): pop_tinst_level() after + instantiating member templates. - * sparc.md (nonlocal_goto trap recognizer): Fix opcode spelling. + * cp-lex.c (extract_interface_info): If instantiating a template, + set up interface/implementation according to the spot in the user's + code that triggered the instantiation. - * function.c (fix_lexical_addr): Properly search for correct display. + * cp-pt.c (tsubst): Associate the FUNCTION_DECL with the spot in the + user's code that triggered the instantiation. *Currently disabled* - * romp.h (OVERRIDE_OPTIONS): Don't set flag_omit_frame_pointer. + * cp-class.c (finish_struct): If we're instantiating a template, + associate the TYPE_DECL with the spot in the user's code that + triggered the instantiation. *Currently disabled* -Mon Feb 3 11:11:58 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-pt.c (coerce_template_parms): Do extra checking on the template + parms, since templates are more picky than initializers. - * gcc.c (@c++-cpp-output): Delete extraneous "}}}" at the end of the - rule. + Wed Oct 27 17:06:54 1993 Jason Merrill (jason@deneb.cygnus.com) -Mon Feb 3 11:38:19 1992 Ron Guilmette (rfg at ncd.com) + * cp-parse.y (datadef): Don't override a template with a forward + declaration of a template class. - * 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. + Tue Oct 26 17:54:12 1993 Kung Hsu (kung@cirdan.cygnus.com) - * dwarfout.c [DWARF_TIMESTAMPS]: Ensure time_t and time declared. - (dwarfout_init): Make third word of initial .debug_srcinfo entry be - the compilation date/time if DWARF_TIMESTAMPS is defined, or else -1. + * cp-parse.y (component-declarator0): fix bit field name same as type + name syntax error. - * dwarfout.c (dwarfout_init): Output compilation directory name as - the first thing in the .debug_sfnames section. + Tue Oct 26 16:07:29 1993 Mike Stump (mrs@cygnus.com) -Mon Feb 3 04:12:51 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-cvt.c (build_up_reference): Fix typo, fixes core dump on bad + code. - * Makefile.in (install-dir): `parent' is a shell variable. + Tue Oct 26 11:52:09 1993 Jason Merrill (jason@deneb.cygnus.com) -Mon Feb 3 09:43:51 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-error.c (dump_function_decl): Only print default arguments + if verbose. + (dump_type): Ditto. - * m88k.h (EXTRA_SECTIONS): Use init and fini sections from svr3.h, - but only when using svr3.h. + Mon Oct 25 22:18:05 1993 Per Bothner (bothner@kalessin.cygnus.com) -Sun Feb 2 19:50:29 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-typeck.c (c_sizeof, build_c_cast): Re-enable Salzenberg's + July 10 change (set TREE_OVERFLOW as well as TREE_CONSTANT_OVERFLOW). - * i386.h (ADDRESS_COST): New macro. + Mon Oct 25 18:53:08 1993 Jason Merrill (jason@deneb.cygnus.com) -Sun Feb 2 17:08:47 1992 Michael Meissner (meissner at osf.org) + * cp-pt.c (instantiate_class_template): Don't do the + push_template_decls thang if !setup_parse; the binding level + never gets popped. - * 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. + Mon Oct 25 11:54:34 1993 Kung Hsu (kung@cirdan.cygnus.com) -Sun Feb 2 16:58:11 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-method.c (hack_identifier): fix seg fault when an + external variable does not have class context. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Do ON_EXIT last. + Sun Oct 24 19:01:15 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * Makefile.in (install-dir): Create the parent of mandir if nec. + * cp-spew.c (scan_tokens): Test for ';' in first pre-scan of the + tokens. - * real.h (REAL_VALUE_TRUNCATE): sizeof says what cast to float does. + Fri Oct 22 23:46:17 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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. + * cp-tree.c (get_decl_list): When consing up CLASSTYPE_ID_AS_LIST, + don't assume that `value' is a reasonable identifier to use. + (list_hash_lookup_or_cons): Ditto. -Sun Feb 2 12:51:54 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-error.c (dump_decl, CONST_DECL): Pass off non-enum cases to + dump_expr. + (dump_expr): Pass off DECLs to dump_decl. - * cp-typeck.c (build_component_ref_1): Call `compute_visibility' - with a BASETYPE_PATH, not a TREE_LIST. + Fri Oct 22 20:57:46 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) - * cp-class.c (build_vtable_entry): Apologize if we cannot build a - proper vtable because of builtin liminations. + * cp-errfn.c (STRDUP): Change to comma expr for bdmaged cc's. + (cp_thing): Add decl for ap, initialize fmt later. -Sun Feb 2 07:30:08 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Oct 22 17:15:01 1993 Jason Merrill (jason@deneb.cygnus.com) - * reload.c (combine_reloads): Don't combine two reloads with different - secondary reloads; copy secondary reload to combined reload. + * cp-error.c (dump_decl): Handle CONST_DECLs for enum tags. - * 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. + * cp-type2.c (my_friendly_abort): Move abortcount to global level. - * flow.c (find_basic_blocks): Don't separate a CALL_INSN from - following CLOBBER insns. + * cp-search.c (dfs_pushdecls): Be more helpful in shadowing warning. - * 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. + * cp-pt.c (mangle_class_name_for_template): If the last template + parameter was also a template class, insert a space so that + the mangled name can be used as input for the compiler (i.e. + with default_copy_constructor_body). - * 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. + Fri Oct 22 16:40:27 1993 Mike Stump (mrs@cygnus.com) - * 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. + Handle constructors in templates better. -Sat Feb 1 14:41:34 1992 Ken Raeburn (Raeburn@Cygnus.COM) + * cp-call.c (build_method_call): Use constructor_name_full instead + of constructor_name. + * cp-cvt.c (convert_to_reference, convert, build_type_conversion_1, + build_type_conversion): Ditto. + * cp-decl.c (make_temporary_for_reference, grok_reference_init): + Ditto. + * cp-init.c (expand_default_init, expand_aggr_init_1, build_new): + Ditto. + * cp-typeck.c (build_modify_expr_1, convert_for_initialization): + Ditto. + * cp-search.c (lookup_field, lookup_fnfields): Check for short + constructor name, as that is how we store it. + * cp-decl2.c (constructor_name_full): New routine. + * cp-tree.h (constructor_name_full): Declare it. + * cp-call.c (build_method_call): Check for either short or the full + constructor name. - * 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. + Wed Oct 20 17:17:37 1993 Jason Merrill (jason@deneb.cygnus.com) -Sat Feb 1 09:13:47 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-tree.h: Declare code_as_string. - * xm-rs6000-mach.h, rs6000-mach.h: New files. - * configure (rs6000-*-mach): New option. + * cp-error.c (code_as_string): New function, translates + enum tree_code into a string. Very incomplete at the moment. -Sat Feb 1 00:57:24 1992 James Van Artsdalen (james at bigtex.cactus.org) + * cp-decl.c (lookup_tag): Use cp_error more. - * 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. + Tue Oct 19 16:39:20 1993 Jason Merrill (jason@deneb.cygnus.com) - (output_pic_addr_const): New function to handle PIC symbol - reference suffixes. - (print_operand_address): Use that if flag_pic is true. - (print_operand): Likewise. Don't print a prefix in front of any - constant if the 'P' code is used. + * cp-error.c (dump_type_prefix): Do the prefix/suffix thang for + ARRAY_TYPE nodes. - (output_387_binary_op): abort if the op is not one we handle. + Thu Oct 14 23:56:34 1993 Jason Merrill (jason@deneb.cygnus.com) - (maximum_field_alignment): New variable. - (handle_pragma_token): New function. Handle `weak' and `pack'. + * cp-gc.c (build_dynamic_cast): Avoid doing runtime work if possible. + (build_typeid): Add logic. - * 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. + Thu Oct 14 10:56:43 1993 Jason Merrill (jason@deneb.cygnus.com) - (GO_IF_LEGITIMATE_ADDRESS): If flag_pic is true, reject bare - label or symbol references, but allow constant pool references. - In all cases, don't bother to check for a constant as the first - operand of a PLUS. - (LEGITIMIZE_ADDRESS): Call legitimize_pic_address for symbolic - references if flag_pic is true. In all cases, HImode regs are not - valid memory pointers. - (LEGITIMATE_PIC_OPERAND): New macro. - (SYMBOLIC_CONST): New macro. - (ENCODE_SEGMENT_INFO): New macro to notice static variables. - (CONST_COSTS): Symbolic constants cost more if flag_pic is true. + * cp-gc.c (build_typeid): New function, allegedly returns the + Type_info object for the type of an expression, currently does + nothing. + (get_typeid): New function, allegedly returns the Type_info object + for a _TYPE node, currently does nothing. + (build_dynamic_cast): New function, supposedly implements + run-time checked casting, currently only does what can be done + at compile time. - * i386.md (movsi): Use define_expand. Call emit_pic_move for - symbolic constants if flag_pic is true. - (divmodM4,udivmodM4): Change predicates so that only regs are - allowed in operands that can't be a mem. Avoids reload - congestion. - (indirect_jump): Allow any reg or mem as operand, not just reg 0. - (casesi): New insn, only used if flag_pic is true. - (call,call_pop,call_value,call_value_pop): Use define_expand to - record if this function ever emits a call, which will implicitly - use the PIC address register. + * cp-parse.y (.kindof_pushlevel): Only push first decl (the variable). + (primary): Add dynamic_cast and typeid expressions. + (simple_if): Use partially_scoped_stmt again. + Makes 'if' condition work. - * svr4.h (SELECT_SECTION): Any item whose initial value involves - linker relocation must go in the data section if flag_pic is true. + * cp-error.c (expr_as_string): Suppress parens on initial call + to dump_expr. - * 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. + * cp-tree.h: Add decls for Type_info_type_node, build_typeid, + get_typeid and build_dynamic_cast. - (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. + * gplus.gperf: Add typeid and dynamic_cast. -Sat Feb 1 00:15:41 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-spew.c (init_spew): Ditto. - * 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 Oct 13 19:15:21 1993 Jason Merrill (jason@deneb.cygnus.com) - * dbxout.c (dbxout_init): Vars wd and wd_gotten moved to top level - and renamed to cwd and cwd_gotten. + Partial implementation of Stroustrup's proposal for declarations in + conditions from X3J16/92-0121. - * c-decl.c (start_function): -Wmissing-prototypes warns if static - function was previously used without a prototype. - - * loop.c (find_and_verify_loop): Initialize uid_loop_num[0]. - (loop_optimize): Give up fast if no loops. + * cp-parse.y (paren_cond_or_null): New rule, use condition instead + of expr. + (xcond): Ditto. + (condition): New rule, used in the condition parts of if, while, for + and switch statements. Allows a restricted set of declarations of + the form "type_specifier declarator = expression". + (.kindof_pushlevel): Like pushlevel, but pushes all of the decls + from the previous binding level into the new one too. + (partially_scoped_stmt): Like implicitly_scoped_stmt, but uses + .kindof_pushlevel instead of .pushlevel. + (simple_if): .pushlevel before condition. + (simple_stmt, simple_if ELSE): Ditto, pop binding level. + (simple_stmt, simple_if): Ditto. + (simple_stmt, WHILE): Ditto. + (simple_stmt, forhead.1): .pushlevel before condition, use xcond + instead of xexpr, pop binding level. + (simple_stmt, forhead.2): Use xcond instead of xexpr, always pop + binding level. + (simple_stmt, SWITCH): .pushlevel before condition, etc, etc. + (forhead.2): always .pushlevel. + (datadef): Use cp_error more. + (simple_stmt, CASE): Ditto. - * stmt.c (expand_end_bindings): Don't adjust fp in nonlocal goto hndlr - if there is a nonlocal_goto insn. + * cp-decl2.c (pushdecls): New function, push all decls in the chain + into the current scope. - * Makefile.in (cccp.o): Use just libdir in GPLUSPLUS_INCLUDE_DIR. + Wed Oct 13 12:31:58 1993 Mike Stump (mrs@cygnus.com) - * gcc.c (do_spec_1): Supply missing arg in some recursive calls. + * cp-decl.c: Remove redefinition of NULL, as some machines don't + like it. Clean up all NULL uses. -Fri Jan 31 21:50:03 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + Mon Oct 11 17:21:08 1993 Kung Hsu (kung@cirdan.cygnus.com) - * m68k.h (OVERRIDE_OPTIONS): -fPIC is only supported on the 68020 - and later cpus. Give an error if -fPIC is tried on a 68000. + * cp-decl2.c (finish_file): Fix libg++ build problem of mismatch + blocks. -Fri Jan 31 21:39:33 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon Oct 11 13:51:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * flow.c (find_auto_inc): If emitting a move insn in front of the - first insn in a block, update basic_block_head. + Mon Oct 4 11:49:48 1993 Chip Salzenberg (chip@fin.uucp) - * caller-save.c (init_caller_save): Correctly check for case where the - save or restore insns aren't recognized. + * cp-typeck.c (build_modify_expr): Check whether recursive calls + return error_mark_node. -Fri Jan 31 21:02:35 1992 Mark Eichin (eichin at cygnus.com) + Mon Oct 4 12:41:16 1993 Chip Salzenberg (chip@fin.uucp) - * 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. + * cp-class.c (finish_struct): Too-long bitfield is an error. + * cp-decl.c (grokdeclarator): "inline main()" is an error. + (grok_op_properties): Overloaded ?: is an error. + (start_enum): Duplicate enum definition is an error. -Fri Jan 31 00:14:20 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Mon Oct 4 12:45:11 1993 Chip Salzenberg (chip@fin.uucp) - * 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. + * cp-typeck.c (common_type): Use TYPE_MAIN_VARIANT when preferring + long int to int (when width is the same). - * gcc.c (S_ISDIR): Add default definition. + Mon Oct 4 12:46:54 1993 Chip Salzenberg (chip@fin.uucp) - * function.c (expand_function_end): - Set up arg_pointer_save_area at start of function. + * cp-typeck.c (convert_for_assignment): Mismatch in signedness + of pointer targets should not inhibit warnings for const mismatch. - * c++: Accept -nostdlib, not -nostinc. + Mon Oct 4 12:53:04 1993 Chip Salzenberg (chip@fin.uucp) - * va-sparc.h: If GCC v1, define __extension__ as nothing. - * va-i860.h, va-pyr.h, va-spur.h: Likewise. + * cp-typeck.c (default_conversion): Convert to unsigned int + if original type is unsigned and of greater or equal size. - * cp-class.c (finish_struct): Fill in DECL_ALIGN of vtable field. + Mon Oct 11 13:19:42 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * regclass.c (reg_class_record): - Don't follow indirect loops in constraints. + * cp-decl.c (build_enumerator): Call default_conversion on the VALUE + before calling constant_expression_warning. - * 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. + Mon Oct 11 10:21:37 1993 Kung Hsu (kung@cirdan.cygnus.com) - * cse.c (cse_main): Calls do clobber arg pointer if not fixed. + * cp-decl.c (finish_function): fix the mismatch LBB LBE block + problem, specifically when compiler generated + destructor/constructor (pr2972) + * cp-decl2.c (finish_file): same as above + * cp-parse.y (compstmt): same as above - * hp320.h (HAVE_ATEXIT): New definition. + Mon Oct 11 01:08:09 1993 Jason Merrill (jason@deneb.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-error.c (dump_type_suffix): Cope with arrays with unspecified + bounds. - * stmt.c (expand_end_bindings): Fix typo. + Thu Oct 7 19:35:26 1993 Jason Merrill (jason@deneb.cygnus.com) -Fri Jan 31 12:15:09 1992 Ron Guilmette (rfg ay ncd.com) + * cp-error.c: Deal with printing out array DECLs properly. + Use dump_char for printing out string literals, too. - * 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. +Tue Nov 23 18:08:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Jan 31 10:31:44 1992 James Van Artsdalen (james at bigtex.cactus.org) + * dwarfout.c (function_start_label): New function. + (output_entry_point_die): Use it. + (output_global_subroutine_die, output_local_subroutine_die): Use it. - * cp-tree.c (__eprintf): Make definition match assert.h - declaration. + * c-common.c (check_format_info): Always use TYPE_MAIN_VARIANT + when comparing cur_type against wanted_type. -Thu Jan 30 23:17:11 1992 Per Bothner (bothner at cygnus.com) + * protoize.c (save_def_or_dec): If function's aux info doesn't end + with a closeparen, ignore it. + (xmalloc, xrealloc): Cast result of malloc. - * c++: The flags -c, -S, or -E suppress passing -lg++ - to gcc. (Otherwise, gcc prints a warning.) + * c-typeck.c (build_binary_op): Don't accept complex types + for max, min, lt, etc. -Thu Jan 30 21:10:02 1992 Ron Guilmette (rfg at ncd.com) +Tue Nov 23 18:05:14 1993 Lisa Repka (lisa@MicroUnity.com) - * dwarfout.c (dwarfout_init): Fix generation of initial .debug_aranges - entry to be Dwarf Version 1 compliant. + * reorg.c (rare_destination): Ensure we always correctly handle + a null JUMP_LABEL. -Thu Jan 30 15:51:27 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Tue Nov 23 17:48:39 1993 Doug Evans (dje@canuck.cygnus.com) - * 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. + * i960/i960.h (ASM_SPEC): Pass -linkrelax, not -link-relax. - * cccp.c (default_include): Delete use of obsolete - NO_STANDARD_INCLUDE_DIR macro. - * protoize.c (default_include): Likewise. +Tue Nov 23 17:35:25 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * Makefile.in (libgcc1.null): Delete dummy.o and dummy.c. + * arm.c (arm_backwards_branch): Branching to the current insn is a + backwards branch. -Thu Jan 30 15:34:06 1992 Michael Meissner (meissner at osf.org) +Tue Nov 23 13:59:24 1993 Hallvard B Furuseth (hbf@durin.uio.no) - * gstdarg.h: Include va-mips.h on MIPS systems. + * libgcc2.a (__bb_exit_func): Fix format %*d -> %*ld. - * 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. + * c-parse.in, cp-parse.y (maybe_type_qual): Don't fail to set $$. -Thu Jan 30 13:06:36 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Tue Nov 23 15:26:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (install-common): Get c++ and g++ from srcdir. + * combine.c (try_combine, simplify_shift_const): Add initializations + for some uninitialized variables. - * i860.h (FIXED_REGISTERS): Arg pointer is no longer fixed. + * c-common.c (check_format_info): When we have INTEGER_TYPEs, + save result of signed_type or unsigned_type for later + comparison with the various forms of char types. - * assert.h (__eprintf): Add const to string args in GCC ANSI case. + * expr.c (expand_expr, case SAVE_EXPR): Properly recompute the + value of UNSIGNEDP when SAVE_EXPR_RTL is nonzero and we have promoted. - * Makefile.in (cccp.o, protoize.o, unprotoize.o): - Define LOCAL_INCLUDE_DIR based on $(prefix). +Tue Nov 23 04:14:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * stmt.c (expand_end_bindings): Arg pointer needs no special - treatment if not fixed. + * dwarfout.c (output_local_subroutine_die): Use the function name + from its symbol_ref, not DECL_ASSEMBLER_NAME. - * cp-parse.y, c-lex.c (yyerror): - Avoid sign-extension of characters in error messages. +Mon Nov 22 13:59:41 1993 Steve Chamberlain (sac@mole.gnu.ai.mit.edu) -Thu Jan 30 11:39:56 1992 Ron Guilmette (rfg at ncd.com) + * final.c (get_attr_length): asm_insn_count takes a body, not an + insn. - * dwarfout.c (dwarfout_finish): Fix generation of .debug_pubnames - terminating entry to be 4-bytes of zero followed by a null string. +Sun Nov 21 22:37:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Jan 30 09:30:19 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/m68k/mot3300.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): + Use SIZE, not ROUNDED. + (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Definitions turned off. + (REGISTER_PREFIX, IMMEDIATE_PREFIX): New definitions. + (PARM_BOUNDARY): New definition. - * rs6000.c (ccr_bit): Fix typo causing reference to possibly - undefined operand. +Sun Nov 21 15:39:04 1993 Tor Egge (tegge@pvv.unit.no) - * 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. + * m88k/dolph.h (SDB_ALLOW_FORWARD_REFERENCES): Define. + (SDB_ALLOW_UNKNOWN_REFERENCES): Define. + (CPP_PREDEFINES): Redefine. + (CPP_DEFAULT): Redefine. + (INITIALIZE_TRAMPOLINE): Redefine. + * m88k/dolphin.ld: New file. + * m88k/t-m88k (realclean): Remove some generated .asm files. + * m88k/x-dolph (EXTRA_PARTS): Redefined to also contain gcc.ld. + (gcc.ld): Copied from dolphin.ld. + (X_CFLAGS): Define __m88k__. + * libgcc2.c (__enable_execute_stack): Add DolphinOS version. -Wed Jan 29 21:50:26 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Nov 21 01:00:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * rs6000.h (ASM_SPEC): Add -u, now require new /bin/as for AIX. - (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): No longer needed. + * config/m68k/isi.h (LIB_SPEC): Use -lm in addition to -lc-- + not instead of -lc. - * 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. + * fix-header.c (write_rbrac): Make added declarations conditional + on __cplusplus and nothing else. + * fixproto (stdio.h): Reenable adding protos for v*printf. -Wed Jan 29 17:17:42 1992 Michael Tiemann (tiemann at cygnus.com) + * sys-protos.h (authdes_create): Delete arg info. + We can't count on having struct sockaddr defined. - * cp-init.c (build_member_call): Fix bug involving static members - that are function pointers. + * fixincludes (math.h): When deleting inline sqrt and abs, + be flexible about arg name and function body. -Wed Jan 29 13:25:18 1992 Tom Wood (wood at dg-rtp.dg.com) + * Makefile.in (stmp-fixproto): Never run fixproto twice. - * gcc.c (do_spec_1): For %D, only add -L options that are relevant. - (is_linker_dir): Determine if a -L option is relevant. +Sat Nov 20 16:52:15 1993 Jim Wilson (wilson@cygnus.com) -Wed Jan 29 00:57:55 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * stmt.c (warn_if_unused_value): Handle arbitrary number of casts + before a modify. - * configure: Turn ns32k alternatives back on. +Sat Nov 20 16:38:25 1993 Eric Baur (eric@synnet.com) - * Makefile.in (getopt.o, getopt1.c): Join two lines into one. + * i386/perform.h (perform_divsi3, perform_modsi3): Add '&' in + constraint for DX; explicitly copy arg arg1 to cx. - * x-i386v4, x-i860v4 (GCC_CFLAGS): Add missing `-B./'. +Sat Nov 20 02:26:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * reload.c (find_dummy_reload, push_reload): Don't reuse dying input - reg as a reload if it is a fixed reg. + * expr.c (expand_builtin): For sin, cos, fsqrt, alloca, ffs, strlen, + strcpy, memcpy, strcmp, memcmp, if args are bad, use expand_call. - * c-tree.h (C_MISSING_PROTOTYPE_WARNED): Deleted since unused. + * fix-header.c (write_rbrac): Treat rewinddir like memmove. -Wed Jan 29 00:42:34 1992 Tim Moore (moore at fast.cs.utah.edu) +Fri Nov 19 18:24:43 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * protoize.c: Remove declarations for malloc and realloc. - * 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. + * expr.c (store_field): Convert EXP to MODE before calling + store_bit_field. -Tue Jan 28 17:04:38 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * optabs.c (expand_complex_abs): Replace some erroneous + uses of MODE with SUBMODE. - * varasm.c (make_decl_rtl): Delete unused var `i'. + * combine.c (force_to_mode): Don't allow sign-extension of + constants when we are narrowing things in an IOR or XOR. - * c-convert.c (convert_to_pointer): - Abort if no integer type is as wide as a pointer. +Fri Nov 19 16:42:43 1993 Jim Wilson (wilson@cygnus.com) - * gcc.c (default_compilers, .i case): Add error message for -pg - and -fomit-frame-pointer incompatibility. + * rs6000.c (output_function_profiler): When TARGET_MINIMAL_TOC, + emit .long instead of .tc. - * Makefile.in (install-common): Install c++ and g++ shell scripts in - bindir. +Fri Nov 19 13:22:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) -Tue Jan 28 15:44:10 1992 Michael Collison (collison at osf.org) + * configure: Let a host set truncate_target to specify that the + installation directory names must be truncated to 14 characters. + If set, truncate the target argument. - * x-encrose (OLDCC): changed to $(GNU_ROSE_BIN)/gcc +Fri Nov 19 17:27:58 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * ns32k.h: Added trampoline code. + * clipper.h (HARD_REGNO_MODE_OK): Allow any mode in general regs. + Float regs may only hold SFmode and DFmode. + (FUNCTION_ARG): Only MODE_INT and MODE_FLOAT with size <= 8 are + passed in registers. + (FUNCTION_ARG_ADVANCE): Update accordingly. + (FUNCTION_ARG_PARTIAL_NREG): Undefine. -Tue Jan 28 14:19:52 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * clipper.md (movsf+1,2,movdf+1,2): Make 'f' preferred register class. - * rtl.def (UNSPEC, UNSPEC_VOLATILE): New RTL codes. - * cse.c (canon_hash): UNSPEC_VOLATILE operations are volatile. - * loop.c (invariant_p): Likewise. - * reorg.c (mark_referenced_resources): Likewise. - * sched.c (sched_analyze_2): Likewise. - * rtlanal.c (volatile_refs_p, side_effects_p, may_trap_p): Likewise. - (reg_referenced_p): Support UNPEC and UNSPEC_VOLATILE. +Thu Nov 18 20:09:56 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Tue Jan 28 11:50:35 1992 Michael Meissner (meissner at osf.org) + * fixincludes: When compute DOTS, convert /./ to / to avoid + accidentally converting it to /../. + * fixinc.dgux, fixinc.svr4: Likewise. - * mips.c (toplevel): Add include of , since isdigit is - used. +Thu Nov 18 06:14:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Jan 28 05:47:08 1992 Michael Tiemann (tiemann at cygnus.com) + * function.c (expand_function_end): New arg END_BINDINGS. + * c-decl.c (finish_function): Pass new arg to expand_function_end. + * cp-decl.c (finish_function): Pass new arg to expand_function_end. + Don't call expand_end_bindings here. + * integrate.c (output_inline_function): + Pass new arg to expand_function_end. - * cp-decl.c (xref_tag): Addition to eichin's Jan 25 change. If REF - is extant, and it's seen in the global scope outside of - CLASS_BINDING_LEVEL, set its IDENTIFIER_GLOBAL_VALUE if NULL. +Wed Nov 17 18:54:21 1993 Chip Salzenberg (chip@fin.uucp) - * cp-class.c (pushclass): Forcibly remove any remnants of incomplete - type that was previously pushed. + * objc/objects.c: Include "tconfig.h" before "runtime.h". - * cp-decl.c (various places): Remove all error messages about C++ - constructs being invalid in C language context; extern "C" is a - linkage specifier--no more. +Wed Nov 17 19:15:31 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-method.c (dump_type_prefix,dump_type): Never need to output - `unsigned' since its always part of an unsigned integer type name. - (build_overload_name): Change test for unsigned to use - `unsigned_type' instead of examining TREE_UNSIGNED. + * fixincludes (math.h): Add missing quoting of `*' when fixing + prototype of `sqr'. - * cp-call.c (ideal_candidate): Don't convert PARMS in place if - BASETYPE is NULL_TREE. +Tue Nov 16 07:15:52 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Jan 28 02:21:31 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * alpha.h (EXTRA_CONSTRAINT): New macro. + (SECONDARY_{INPUT,OUTPUT}_RELOAD_CLASS): Disallow unaligned into float + regs. + * alpha.md (movdi): Use 'Q' instead of 'm' for FP. - * c-decl.c (grokdeclarator): Use `auto' for nested fn fwd decls. +Tue Nov 16 02:06:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * g++: New file. + * Version 2.5.4 released. - * 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. + * c-typeck.c (push_init_level): When aligning next struct field, + make sure there's another field left. - * gcc.c (do_spec_1): For %D, also make -L's for startfile_prefix. - Also append the machine + * cp-errfn.c: Don't include string.h. + (STRDUP): Macro deleted. + (cp_thing): Copy strings "by hand". - * fold-const.c (fold_convert): Properly handle real-to-real case. + * combine.c (force_to_mode): Don't do right-shift in a narrower mode. - * configure (i486-*-sysv4*): New alternative. +Mon Nov 15 01:54:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Jan 28 00:37:24 1992 Ron Guilmette (rfg at ncd.com) + * sdbout.c (sdbout_symbol): If non-static var has static-style RTL, + don't output anything for it. - * dwarfout.c (location_attribute): Fix handling of objects which - were optimized out of existance for Dwarf Version 0 compliance. + * Makefile.in (stmp-fixproto): Don't depend on xsys-protos.h. + (diff): Don't compare bi-parser.c -Tue Jan 28 00:42:57 1992 James Van Artsdalen (james at bigtex.cactus.org) + * news.h (NO_DOT_IN_LABEL, NO_DOLLAR_IN_LABEL): Defined. - * Makefile.in (mostlyclean): Delete stack dump files too. + * c-typeck.c (push_init_level, really_start_incremental_init): + Skip any nameless bitfields at start of record. + (process_init_element): Skip any nameless bitfields after the field + just processed. -Mon Jan 27 18:26:27 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Nov 15 02:09:54 1993 Torbjorn Granlund (tege@blues.cygnus.com) - * rs6000.h (HAVE_ATEXIT, NO_DOLLAR_IN_LABEL): Now defined. + * pa.h (RETURN_IN_MEMORY): Define. -Mon Jan 27 13:32:51 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sun Nov 14 17:25:29 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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 (expand_expr): For TRUTH_AND_EXPR, TRUTH_OR_EXPR + and TRUTH_XOR_EXPR, if result mode doesn't match operands, + don't use subtarget. - * cccp.c (main): Add terminating null, then call trigraph_pcp. + * c-typeck.c (convert_for_assignment): Fix typo (codel => coder). - * fixincludes, fixinc.svr4: Fail unless an arg was given. - * Makefile.in (install-fixincludes): Pass output dir as argument. +Sun Nov 14 12:45:37 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in: Renamed libgcc[12] to libgcc[12].a. - Likewise for tmplibgcc[12]. + * function.c (assign_parms): Clear STACK_PARM when we have a + pass-by-pointer parm that we load into a pseudo. - * toplev.c (rest_of_decl_compilation): Treat all fcns as if external. + * flow.c (flow_analysis): Fix bug in previous change. - * Makefile.in (TAGS): Do the work in srcdir. - Include c-parse.h in files to move. + * fold-const.c (twoval_comparison_p): Do nothing for SAVE_EXPR, at + least for now. -Mon Jan 27 10:54:24 1992 Jim Wilson (wilson at sphagnum.cygnus.com) + * reload.c (push_reload): Allow RELOAD_FOR_INPUT with a secondary + reload the same class as the input if the modes differ. - * cccp.c (get_filename): Don't pass -1 file descriptor to close. + * expr.c (store_expr): Convert constants to proper mode in two places. -Mon Jan 27 00:26:33 1992 Michael Tiemann (tiemann at cygnus.com) + * sh.h (HAVE_VPRINTF): Delete from here. + * xm-sh.h (HAVE_VPRINTF): New macro. - * 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. +Sun Nov 14 04:28:56 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-decl2.c (grokfield): Don't specially hack static member - function names. + * config/i860/i860.h (SECONDARY_INPUT_RELOAD_CLASS): + Moving any kind of integer cst to float reg needs intermediate. - * cp-except.c (cplus_expand_raise): Test correct predicate that we - have a non-null value return. - (cplus_expand_{throw,reraise}): Ditto. - - * cp-typeck.c (c_expand_return): Handle case where named return - value has incomplete type. - -Sun Jan 26 20:50:55 1992 Michael Tiemann (tiemann at cygnus.com) - - * cp-parse.y (LC): Fix rule to use `push_obstacks_nochange'. - (structsp): Use `pop_obstacks'. - -Sun Jan 26 17:39:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * c-parse.y (LC): Use push_obstacks_nochange and always call - end_temporary_allocation. - (structsp, template_instantiate_once): After LC, use pop_obstacks. - - * c-decl.c (grokdeclarator): - Static function decl within a function is not external. - -Sun Jan 26 08:14:53 1992 Michael Meissner (meissner at osf.org) - - * mips.h (MIPS_VERSION): Bump meissner version # to 9. - (enum processor_type): Delete PROCESSOR_R2000, since a r2000 - schedules just like a r3000. - (mips_isa, mips_isa_string, mips_cpu_string): New global variables. - (MD_EXEC_PREFIX): If not defined, define as "/usr/lib/cmplrs/cc/". - (TARGET_SWTICHES macros): Move setting the processor from - TARGET_SWITCHES to TARGET_OPTIONS. Also, delete the -mfixed-ovrfl - switch, and move -mwc8/-mwc16 to not use any bits, since we can't - support these in GCC 2.00. Readjust the positions the bits are in. - (TARGET_OPTIONS): Define to add switches -mcpu=x to set which - processor type to schedule for, and -mipsx to specify the - instruction set architecture level. - (BRANCH_LIKELY_P): New macro, true if MIPS ISA >= 2. - (HAVE_64BIT_P): New macro, true if MIPS_ISA >= 3. - (HAVE_SQRT_P): New macro, true if MIPS_ISA >= 2. - (BRANCH_COST): Define as 2 if r4000/r6000, 1 otherwise. - (ASM_OUTPUT_SKIP): Eliminate OSF/1 gas work around. - - * 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. + * sys-protos.h (getmntent): Delete the arg decls + because BSD 4.4 and Sunos disagree on them. - * 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. +Sat Nov 13 23:06:42 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * decrose.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define these to - use the defaults on the OSF/1 reference platform. - (i386rose.h): Likewise. + * config/mips/mips.c (function_arg, function_arg_advance): + In default case, handle complex modes much like BLKmode. + (function_arg_partial_nregs): Likewise. -Sun Jan 26 07:58:00 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Nov 13 22:31:48 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cse.c (cse_insn): Don't call insert_regs on a SUBREG. - When scanning table for SUBREG assignment, ignore invalid entries. + * alpha.h (CPP_SPEC): Always define __LANGUAGE_C__ unless assembler. + Define __cplusplus for C++. - * cse.c (cse_insn): When looking for first non-deleted entry in - table, start by scanning backwards from the deleted entry. + * alpha.md (movsf, movdf): Add 'G' to constraint for operand 1 + when operand 0 is a register and support it in alternative 0. - * function.c (assign_parms): Set current_function_return_rtx - unconditionally. - (expand_function_start): Don't set it here. + * stmt.c (expand_end_bindings): Use emit_move_insn instead of + gen_move_insn in case nonlocal_goto_handler_slot is not a valid memref. -Sat Jan 25 06:44:16 1992 Mark Eichin (eichin at cygnus.com) + * flow.c (find_basic_blocks): When starting new basic block + for a CALL_INSN in the presence of nonlocal labels, don't + get confused with following CLOBBER. + (flow_analysis): Use same logic as find_basic_block to see when + the insn after a CALL_INSN starts a new basic block. - * 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. + * expmed.c (store_split_bit_field): Properly load a constant VALUE + into a WORD_MODE pseudo. -Fri Jan 24 18:03:36 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Nov 13 18:27:43 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tree.c (pop_momentary): Don't reference freed stack entry. + * config/ns32k/ns32k.md (movsi): Handle moves to fp reg. + Handle const_double as operand 1. -Fri Jan 24 14:20:05 1992 Michael Tiemann (tiemann at cygnus.com) + * Makefile.in (diff): Fix typo in name gcc.??s. - * 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. +Fri Nov 12 08:34:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-tree.c (lang_printable_name): Use DECL_RING, and don't free - the printable name for CURRENT_FUNCTION_DECL. + * dbxout.c (dbxout_type_field): Skip fields with variable + position and/or size instead of crashing on them. -Fri Jan 24 14:17:30 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Nov 12 22:49:50 1993 Pat Rankin (rankin@eql.caltech.edu) - * gvarargs.h: If _ANSI_H, undef _VA_LIST_. + * bi-arity.c, bi-opcode.c, bi-opname.c (main): Flush stdout and + and check for errors prior to termination; end with call to exit + rather than return from main, as with gen*.c. + * bi-arity.c, bi-lexer.c, bi-opcode.c, bi-opname.c, bi-parser.y: + Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal exit code. - * c-typeck.c (pointer_int_sum): Don't distribute * into pointer diff. +Fri Nov 12 18:41:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp320.h (MD_STARTFILE_PREFIX): Defined. - (STANDARD_STARTFILE_PREFIX): Deleted. + * gstdarg.h, gvarargs.h: Test __bsdi__ like __BSD_NET2__. -Fri Jan 24 09:30:41 1992 Fred Fish (fnf at fishpond) + * pa.h (FUNCTION_ARG_BOUNDARY): Fix return value for 64bit + pass by value structures. - * assert.h (__eprintf): Declare as prototype for __STDC__ + * fix-header.c (write_rbrac): Handle v*printf like memmove. -Fri Jan 24 05:28:53 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Nov 12 08:53:47 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * i386.md (jump,indirect_jump,tablejump): Don't output an align - directive here: let the following BARRIER do it. + * arm.md (comparison): Don't emit invalid optimization + for (set (reg) (comparison)) and (set (reg) (neg (comparison))) + when comparison is LT. -Thu Jan 23 11:54:11 1992 Ron Guilmette (rfg at ncd.com) + * arm.c (pattern_really_clobbers_lr): Setting a subreg of a mem is + valid and safe. - * i486v4.h: New file. +Fri Nov 12 08:38:22 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Jan 23 20:34:22 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * m68k/hpux7.h: Add directory name to #include of hp320.h. - * fixinc.svr4: Surround uses of ${INPUT} with "" instead of '' - so that it will get expanded. +Thu Nov 11 00:00:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Jan 23 17:50:13 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Version 2.5.3 released. - * 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. + * fix-header.c, gen-protos.c (fancy_abort): New function. - * rs6000.h (ADDITIONAL_REGISTER_NAMES): Add so we can disambiguate - fixed and floating registers. + * c-typeck.c (mark_addressable): Handle REALPART_EXPR and + IMAGPART_EXPR. - * rs6000.md (ashrdi3): Reject all but constant shift counts. + * integrate.h (global_const_equiv_map_size): Declared. - * jump.c (simplejump_p): Don't access PATTERN unless we know it is - a JUMP_INSN. + * dbxout.c (dbxout_symbol): If it's C++, don't check the + DECL_SOURCE_LINE of a typedef. + (dbxout_parms): Fix previous change. - * combine.c (get_last_value): Don't do a recursive call for a - paradoxical SUBREG. +Wed Nov 10 10:33:28 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * 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. + * fixproto (rel_source_subdir): Prune out redundant /subdir/../ to + prevent recursion. - * stor-layout.c (layout_type): Handle alignment for arrays the same - as we do for records and unions. +Wed Nov 10 22:30:16 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * calls.c (expand_call): Ignore `const' on void functions. + * config/ns32k/encore.h (ASM_OUTPUT_ASCII): Declare i. - * 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. +Wed Nov 10 16:18:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-decl.c (grokvardecl): Undo change of Jan 15 1993 which + tried to implement the "one definition rule". The duplicate_decls + call in pushdecl does implement this; grokvardecl got some bad hits. -Thu Jan 23 13:33:40 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Nov 10 08:44:17 1993 Niklas Hallqvist (niklas@appli.se) - * i386v4.h (CPP_PREDEFINES): Don't define X86. + * cp-search.c (compute_visibility): Revert Tiemann's patch of + Nov 5. Instead check that privately inherited entities don't + get restricted visibility if the private derivation is a + shallow derivation (i.e. one leading to the most derived + class) and we're actually in the most derived class' scope. - * c-lex.c (readescape): Warn for \a and \x if warn_traditional. - Handle \v as vertical tab regardless of -traditional. + * cp-search.c (dfs_pushdecls): Don't be confused by the fact that + overloaded methods from an outer scope almost looks like an + envelope. - * fixincludes, fixinc.svr4: Make LIB absolute, near the beginning. +Wed Nov 10 18:55:22 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * fixincludes: Simplify egrep command while matching the same lines - (plus occasional additional lines). + * fixincludes: Copy files needed for other files at the very end. - * function.c (fixup_memory_subreg): New arg UNCRITICAL. Calls changed. + * arm.md (reload patterns for mla instruction): New. - * gcc.c (process_command): Handle LPATH like LIBRARY_PATH. +Wed Nov 10 18:17:40 1993 Jim Wilson (wilson@cygnus.com) - * svr3.h (ASM_LONG): Deleted. + * dbxout.c (dbxout_parms): For parms passed via invisible + reference, accept any reg except FP, SP, and AP. - * gvarargs.h: Ignore _VA_LIST_ if _ANSI_H_; - don't define _VA_LIST_ if already defined. + * unroll.c (unroll_loop): Set global_const_equiv_map_size. -Thu Jan 23 09:10:52 1992 Tom Wood (wood at dg-rtp.dg.com) +Wed Nov 10 17:52:33 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m88kluna.h (includes): Include aoutos.h. + * combine.c (subst_prev_insn): New variable. + (try_combine): Set it. + (get_last_value): Use subst_prev_insn if set instead of + looking for the first insn before SUBST_LOW_CUID. -Thu Jan 23 09:10:52 1992 Ron Guilmette (rfg at ncd.com) + * integrate.c (global_const_equiv_map_size): New variable. + (expand_inline_function): Set it. + (expand_inline_function, copy_rtx_and_substitute, try_constants): + Never access const_equiv_map without checking for out-of-range. + (mark_stores): Likewise. - * va-i860.h (__savereg): Fix typo. + * alpha.md (smaxdi3): Was incorrectly called maxdi3. - * i860.h (PREDICATE_CODES): Added definition. + * rs6000.h (LINK_SPEC): Don't pass -btextro if -r. - * i386v4.h (ASM_FILE_START): Definition added which generates - .version directive. + * alpha/osf12.h: New file. + * configure (alpha-dec-osf1.2): New case, to use new file. -Wed Jan 22 23:15:45 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * rs6000.md (sqrtdf2): Fix typo in extra condition. + (plus/eq pattern): Fix typo: "addze" was "adddze". - * make-cc1.com: Predefine symbols for "rename" and "bison"; always - generate c-parse.h when generating c-parse.c. +Wed Nov 10 12:32:56 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Wed Jan 22 20:01:11 1992 Per Bothner (bothner at cygnus.com) - - * 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. - -Wed Jan 22 20:01:11 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * expmed.c (expand_divmod): If rem_flag, always force op0 to a + register. - * fixincludes: Surround uses of ${INPUT} with "" instead of '' - so that it will get expanded. + * expr.c (expand_expr): Use a smaller alignment when reading from + a field with a variable offset. - * gcc.c (default_compilers): For c++, define __GNUG__ to 2, and - pass -trigraphs. +Wed Nov 10 01:28:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.1, cpp.1, gcc.1, g++.1: Delete more RCS variables. + * expr.c (expand_assignment): Use a smaller alignment when storing + into a field with a variable offset. -Wed Jan 22 19:02:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fixincludes (math.h): Delete inline definitions for sqr. - * 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. +Tue Nov 9 15:33:45 1993 Jason Merrill (jason@deneb.cygnus.com) -Wed Jan 22 09:25:07 1992 Tom Wood (wood at dg-rtp.dg.com) + * cp-method.c (hack_identifier): Undo rfg's earlier patch. - * c-typeck.c (comp_target_types): Make decl static. - Don't forget to return the value. - (function_types_compatible_p, comptypes): Initialize `val'. +Tue Nov 9 19:30:02 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Jan 21 13:29:50 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * reload1.c (reload) [SMALL_REGISTER_CLASSES]: Try, at least, + to avoid 2-groups whose second register is explicitly used. - * cross-make (ALL): Override with definition it here. - * configure: Don't edit its value explicitly here. +Tue Nov 9 19:08:47 1993 Jim Wilson (wilson@cygnus.com) - * crtstuff.c (__do_global_ctors): Include DO_GLOBAL_CTORS_BODY - in crtend.o, not in crtbegin.o. + * mips.md (adddi3): Use DImode not SImode in force_reg call. - * 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. + * mips.c (PIC_OFFSET_TABLE_MASK): New macro. + (function_epilogue): When -mabicalls, ignore + PIC_OFFSET_TABLE_REGNUM when calculating load_only_r31. - * 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. + * loop.c (strength_reduce): Accept VOIDmode initial values. - * i386v.h, aix386.h: Include svr3.h. - (SCCS_DIRECTIVE, ASM_OUTPUT_IDENT): Deleted. - (TARGET_MEM_FUNCTIONS): Deleted. - (SDB_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Deleted. +Tue Nov 9 09:23:31 1993 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu) - * 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. + * pa.md (negscc): Add mode for NEG. - * c-typeck.c (default_conversion): Don't use initial value if BLKmode. - If do use the initial value, update `type'. +Tue Nov 9 12:51:54 1993 John Hassey (hassey@dg-rtp.dg.com) - * arm.h (STRUCTURE_SIZE_BOUNDARY): New definition. + * m88k.md ("cmpsf" & "cmpdf"): Undo inadvertent change included + with CCEVENmode change. - * stor-layout.c (layout_type): Ignore MAX_FIXED_MODE_SIZE for integers. +Tue Nov 9 01:31:58 1993 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. + * fixincludes (loop on $required): When a file is copied + because another file needs it, scan it for what files it needs. - * fixincludes: Don't match on size_t, etc., since we don't actually - change them. + * fix-header.c (write_rbrac): When adding proto for memmove, + put it inside #ifndef memmove. -Mon Jan 20 23:22:45 1992 Michael Tiemann (tiemann at cygnus.com) +Mon Nov 8 16:50:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-call.c (ideal_candidate): Don't see two functions as ambiguous - if one is argument-by-argument equivalent or better than another. + * sdbout.c (sdbout_init) [RMS_QUICK_HACK_1]: Call sdbout_symbol + for __vtbl_ptr_type. -Mon Jan 20 14:08:06 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (init_decl_processing): Undo previous change. - * toplev.c (strip_off_ending): Add ".ada". + * c-typeck.c (build_binary_op): Warn for ordered compare of ptr with 0 + only if pedantic in both cases. -Mon Jan 20 13:53:15 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Mon Nov 8 18:25:06 1993 David Edelsohn (edelsohn@npac.syr.edu) - * protoize.c (xfree): No longer static. + * rs6000.h (ASM_FILE_START): Emit filename directive. - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Allow tm.h to override. +Sun Nov 7 00:24:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * final.c (leaf_renumber_regs_insn): Do just the pattern of an insn. + * Makefile.in (mostlyclean): Delete fixhdr.ready here. + (clean): Not here. - * pyr.h (PCC_BITFIELD_TYPE_MATTERS): Defined. - (STRUCTURE_SIZE_BOUNDARY): Deleted. + * scan-decls.c (scan_decls): After seeing an extern variable + declaration, goto new_statement to read a new token, rather + than going to handle_statement (which uses the current token). - * mips.c: Clean up spacing around square brackets. +Sat Nov 6 19:40:22 1993 Pat Rankin (rankin@eql.caltech.edu) - * 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. + * config/vax/vms.h (__MAIN_NAME): Define as " main(" rather + rather than " main (" to reflect current cc1plus. -Sun Jan 19 17:32:19 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/vax/vms.h: Add __GNUC_MINOR__=5 to CPP_PREDEFINES. - * reload1.c (emit_reload_insns): Fix typos when checking for secondary - icode. +Sat Nov 6 22:54:25 1993 Tor Egge (tegge@pvv.unit.no) -Sun Jan 19 15:28:53 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * m88k.c (partial_ccmode_register_operand, even_relop) + (odd_relop): New functions, for support of CCEVENmode. + (print_operand, new case '!'): Revert following condition. + * m88k.h (EXTRA_CC_MODES, EXTRA_CC_NAMES, SELECT_CC_MODE): + New macros to define CCEVENmode. + * m88k.md: Handle CCEVENmode as a new mode. Logical operations + on CCmode registers now results in CCEVENmode. + Add patterns for jumps and ext's for CCEVENmode. + (cmpsf, cmpdf): Use reg 65 and clobber reg 64. - * global-alloc.c (global_alloc): If LEAF_REGISTERS, those are the - regs that cost nothing to save, for setting regs_already_used. +Sat Nov 6 17:07:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (expand_builtin): Preserve function value reg - around the call to __builtin_saveregs. + * cp-decl.c (init_decl_processing) [RMS_QUICK_HACK_1]: + If sdb output, call sdbout_symbol for vtable_entry_type. + * config/m88k/dgux.h (RMS_QUICK_HACK_1): Defined. - * configure (mips-sgi-irix4*, mips-sgi-irix*): Set install_with_cp. +Sat Nov 6 12:32:31 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * c-decl.c (start_function): - Check properly for `static' function in handling -Wmissing-prototypes. + * unroll.c (unroll_loop): Don't unroll loop if jump has combined + the original loop start label with another label. - * libgcc2.c (__main): Omit this fn if INIT_SECTION_ASM_OP. +Sat Nov 6 05:01:31 1993 Chris Smith (csmith@convex.com) -Sun Jan 19 13:23:13 1992 Fred Fish (fnf at sunfish) + * convex.md (untyped_call, blockage): Add new patterns. - * amix.h (ASM_OUTPUT_ASCII): Override version in svr4.h. +Sat Nov 6 03:11:46 1993 Noah Friedman (friedman@gnu.ai.mit.edu) -Sun Jan 19 13:16:56 1992 Michael Tiemann (tiemann at cygnus.com) + * just-fixinc: Rename fixed native limits.h to syslimits.h (or + install gsyslimits.h) before renaming gcc's limits.h from tmpfoo + directory. - * cp-search.c (lookup_field): Accept IS_AGGR_TYPE_CODE, not - just == RECORD_TYPE. +Sat Nov 6 00:07:41 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-class.c (finish_struct): Clear a tentative setting of - DECL_BIT_FIELD. + * expr.c (emit_move_insn_1): Push the components of a complex + in proper order: imag part has higher address. - * cp-decl.c (start_decl): Don't call `pushclass' for incomplete - CONTEXT. +Fri Nov 5 16:23:51 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * cp-typeck.c (comp_target_types): Call `comp_target_parms' with - STRICT == 0, not -1. - (build_conditional_expr): Check that the target types of TYPE1 and - TYPE2 are aggr type before calling `common_base_type'. + * mips.c (mips_abicalls): Change type to enum mips_abicalls_type. + (override_options): Use MIPS_ABICALLS_{NO,YES} instead of + ABICALLS_{NO,YES}. + * mips.h (enum mips_abicalls_type): New type. + (mips_abicalls_attr): New define. + (mips_abicalls): Change type to enum mips_abicalls_type. + * mips.md (abicalls): Use mips_abicalls_attr not mips_abicalls. -Sun Jan 19 04:10:16 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Nov 5 20:34:19 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * configure: Fix typo inserting INSTALL=cp into makefile. + * fixproto (stdio.h): Don't add protos for vprintf, vfprintf, vsprintf. -Sat Jan 18 12:06:58 1992 Michael Tiemann (tiemann at cygnus.com) +Fri Nov 5 20:32:53 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * cp-lex.c (build_with_cleanup): Delete obsolete function. - * cp-tree.c (break_out_cleanups): New function. - * cp-decl.c (cplus_expand_expr): Call `break_out_cleanups'. - * cp-typeck.c (build_compound_expr): Ditto. + * config/pa/pa.md (decrement_and_branch_until_zero): + Add missing `return'. - * 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. +Fri Nov 5 16:08:34 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * listing: Handle i386-linux like m68020. + Pass compilation options thru an awk variable, not as ordinary args. - * cp-decl2.c (lang_f_options): Add recognizers for -f{no-}builtin, - -f{no-}ident, and -ansi. Also, remove unnecessary "no-*" forms. + * cccp.c (safe_read, safe_write): Handle EINTR. + (output_line_command): Handle NO_IMPLICIT_EXTERN_C here. + (main): Not here. - * cp-init.c (emit_base_init): If PEDANTIC, don't let base - initializers leak up the hierarchy. + * protoize.c (safe_read, safe_write): Handle EINTR. + (safe_write): Return right away after safe_write. - * cp-parse.y (structsp): Disable gratuitous error message. +Fri Nov 5 11:40:59 1993 Jeff Law (law@snake.cs.utah.edu) - * cp-call.c (convert_harshness): Don't overlook PENALTY when - signed/unsigned differences are noted (in both POINTER_TYPE and - REFERENCE_TYPE cases). + * pa-ghpux.h (NO_IMPLICIT_EXTERN_C): Define. + * pa-hpux.h (NO_IMPLICIT_EXTERN_C): Define. - * toplev.c (strip_off_ending): Grok ".ii" endings (C++ preprocessed - files). +Fri Nov 5 09:45:20 1993 Kresten Krab Thorup (krab@viking) - * cp-typeck.c (build_component_ref): Add special handler when - COMPONENT is the CLASSTYPE_VFIELD name for BASETYPE. + * objc/archive.c (objc_read_string): Allocate string properly. + * objc/hash.h (compare_strings): Check for null pointers. -Sat Jan 18 08:29:58 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Nov 5 11:29:26 1993 David Edelsohn (edelsohn@npac.syr.edu) - * cse.c (cse_insn): Don't make constant pool entries in MODE_CC modes. + * rs6000.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Use + REAL_ARITHMETIC macros including hex for special values. -Sat Jan 18 00:28:48 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Fri Nov 5 10:26:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * Makefile.in (install-common): Fix typo installing gcc. - - * crds.h, isi.h, newpbb.h, tti68k.h: Add #error because -m68000 - will cause a crash (I think), to ask people what to do. + * cp-call.c (build_method_call): For unions, don't use get_binfo and + convert_pointer_to_real, since unions can't be involved in complex MI + situations. (Fixes union ctor crash, and completes Sep 27 fix.) - * gmicro.h (ASM_FILE_START): Don't do anything. - (TARGET_DEFAULT): Turn on the bitfield flag. - (TARGET_SWITCHES): Get rid of the bitfield options. +Fri Nov 5 07:39:00 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * c-lex.c (readescape): No warning for \?. + * cp-search.c (compute_visibility): Don't lose access to public + members from base classes of base classes. - * protoize.c (munge_compile_params): Fix cast that sets compile_params. - (xmalloc, xrealloc): No longer static. - * Makefile.in (protoize, unprotoize): Add LIBDEPS as deps. + * cp-search.c (get_base_distance): Initialize BASETYPE_PATH before + using. Also, initialize RVAL from get_base_distance_recursive. - * va-i860.h (va_arg): Use __extension__ to suppress pedantic warning. - * va-sparc.h, va-spur.h, va-pyr.h: Likewise. +Fri Nov 5 05:48:04 1993 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*. + * config/i860/paragon.h (SIZE_TYPE): #undef it. - * gcc.c (process_command): - Handle the standard_exec_prefix* before the md_*_prefix. + * config/m88k/dgux.h (LIB_SPEC): Handle -msvr4. + (GPLUSPLUS_INCLUDE_DIR): Definition and #undef deleted. - * i386.h, ns32k.h (PCC_BITFIELD_TYPE_MATTERS): Defined. + * cccp.c (main): Handle NO_IMPLICIT_EXTERN_C. - * Makefile.in (libgcc1.null): Depend on GCC_PASSES. +Fri Nov 5 03:11:05 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * cccp.c (lookup_import, add_import): VMS kludges so they compile. - (hack_vms_include_specification): Add forward declaration. + * config/m68k/m68k.h (RTX_COST): Return actual costs for + multiplication, not costs for theoretical special cases that are + not handled in the md. - * stor-layout.c (layout_record): Handle BITFIELD_NBYTES_LIMITED - just like one of the things done for PCC_BITFIELD_TYPE_MATTERS. +Fri Nov 5 00:42:09 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * x-next, x-i386mach: Deleted. - * t-libc-ok: New file. Define just LIBGCC1. - * configure (i386-*-mach, m68k-next-*): Use t-libc-ok. + * emit-rtl.c (gen_highpart): If arg is function value hard reg, + return a subreg of it (as in gen_lowpart_common). - * t-svr4 (FIXINCLUDES): Defined. - * t-m88kv4 (FIXINCLUDES): Defined. - * t-svr3 (EXTRA_PARTS): Defined. - * t-i386sco (EXTRA_PARTS): Defined. + * integrate.c (expand_inline_function): Handle CONCAT as rtl for parm. + (copy_rtx_and_substitute): For subreg, handle case where the reg + inside turns into a CONCAT. - * configure (sparc-*-sysv4*): New alternative. + * configure: Treat hppa1.[01]-hpux8.0[01] like hppa1.[01]-hpux8.02. - * 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. + * fixproto: Don't scan sub-directories whose names end in CC + or contain ++ - these are probably C++ directories. -Sat Jan 18 23:15:08 1992 Ron Guilmette (rfg at ncd.com) +Thu Nov 4 12:02:04 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * va-i860.h (va_list): Made __reg_base field type long* to avoid - compilation errors. - (__savereg): Add explicit cast to (__va_saved_regs *). + * integrate.c (expand_inline_function): Don't call + push_temp_slots, free_temp_slots, and pop_temp_slots when handling + parameters, because they might end up in a temp slot. -Fri Jan 17 15:09:34 1992 James Van Artsdalen (james at bigtex.cactus.org) +Thu Nov 4 15:00:38 1993 Samuel Figueroa (figueroa@cs.nyu.edu) - * 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. + * i386/os2.h, i386/xm-os2.h: New files. - (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. +Thu Nov 4 14:36:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - (CONST_OK_LETTER_P): Document uses of letters. + * c-decl.c (finish_enum): Undo previous change. - * 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. +Thu Nov 4 13:30:16 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - (get_asm_operand_lengths): New function. - (constrain_asm_operands): New function. Like constrain_operands, - but records some information about the matched alternative. + * loop.c (strength_reduce): Ignore initial value if it is the + wrong mode. + (record_initial): Don't ignore any set of the register. - (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. + * rs6000.md (movdf): Don't have reload choose alternative of + loading a constant into a GPR. - (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. + * reload.c (find_reloads, case 'o'): A pseudo is not always + an offsettable memref. + (find_reloads): If we reload a constant into a register via + memory, count it as two reloads. - (change_stack): New argument to insert any new insns before INSN - instead of after. All callers changed. + * function.c (expand_function_start): If not optimizing, ensure + we mark context display regs as live for the entire function. - (emit_swap_insn): Abort if the reg is not found in REGSTACK. +Thu Nov 4 02:24:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (reg-stack.o): Depends on insn-config.h. + * tree.h (DECL_IN_TEXT_SECTION): New macro. + * varasm.c (assemble_variable): Set DECL_IN_TEXT_SECTION. + * dbxout.c (dbxout_symbol_location): Test DECL_IN_TEXT_SECTION. -Fri Jan 17 16:38:32 1992 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Nov 3 23:59:48 1993 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. + * c-typeck.c (build_function_call): Initialize fundecl to 0. - * gcc.c (do_spec_1): Add missing arg in recursive call. - (link_command_spec): Don't pass -s, -S, -u*, -X, -Y*. +Wed Nov 3 16:34:01 1993 Torbjorn Granlund (tege@adder.cygnus.com) -Fri Jan 17 12:51:28 1992 Jim Wilson (wilson at cygnus.com) + * pa.h (REGISTER_MOVE_COST): Decrease cost for move from + SHIFT_REGS to avoid regclass overflow. - 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. +Wed Nov 3 15:35:44 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * hp800.h, hp800.md: Delete RCS Header variables. + * config/m68k/m68k.c (output_move_double): Fix up the test for overlap + of source address with operands[0]. - * reg-stack.c (replace_reg): Change `abort' to `abort ()'. + * regclass.c (regclass): Consider commutativity even when + one arg is a constant. -Fri Jan 17 14:30:14 1992 Michael Meissner (meissner at osf.org) +Wed Nov 3 12:06:23 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * 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. + * expmed.c (expand_divmod): Use target as copy_to_suggested_reg + argument only if it has the same mode as op0. -Fri Jan 17 13:24:33 1992 Tom Wood (wood at dg-rtp.dg.com) +Wed Nov 3 04:58:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (unprotoize.o): Use the rm -f option. + * protoize.c (safe_write, safe_read): Really use arg DESC. - * cp-lex.c (check_newline): Define `used_up' as in c-lex.c. - (in_system_header): Define as in c-lex.c. + * libgcc2.c (exit): Fix declaration of _exit. -Fri Jan 17 08:14:04 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-common.c (check_format_info): Make warning nicer for mismatch + of int vs long, etc. + Don't warn if field width is an unsigned int. - * reorg.c (delete_from_delay_slot): Pass correct length to - emit_delay_sequence. + * c-decl.c (finish_enum): Always make an enum signed if it will fit. - * genattrtab.c (substitute_address): Handle IF_THEN_ELSE in addition - to COND. +Wed Nov 3 14:23:52 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * expr.c (expand_builtin, case BUILT_IN_STRLEN): Correct args in - expand_expr call. + * cse.c (cse_insn): Call `invalidate' also for STRICT_LOW_PART and + ZERO_EXTRACT (three places). + (invalidate_from_clobbers): Likewise (two places). + (cse_around_loop): Likewise. + (invalidate_skipped_set): Likewise. + (cse_set_around_loop): Likewise. -Fri Jan 17 17:33:40 1992 James Van Artsdalen (james@raid) +Wed Nov 3 03:56:55 1993 Paul Eggert (eggert@twinsun.com) - * x-i386v4 (CCLIBFLAGS): Delete macro. - (GCC-CFLAGS): Delete macro. Prevented Makefile.in from working. + * dbxout.c (dbxout_type): Print `-2' instead of `0037777777776' + for an enumeration constant whose value is -2; + otherwise, GDB 4.11 rejects the type. -Thu Jan 16 17:03:27 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Wed Nov 3 04:35:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (cleanconfig): Also delete tconfig.h. + * Makefile.in (fix-header, gen-protos): Link with HOST_LIBS. + Depend on HOST_LIBDEPS. - * varasm.c (assemble_external): Only call ASM_OUTPUT_EXTERNAL once - for each symbol. - (assemble_external_libcall): Fix minor typo in spacing. +Wed Nov 3 00:07:18 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * toplev.c (main): Force error if invalid -W option is used. + * fixproto: When checking for uses of _flsbuf, make sure to + not match (say) __flsbuf or other non-word _flsbuf strings. + * fixproto: Be more robust when checking for files indirectly + needed (via #include directives). E.g. handle "../foo/bar.h" + properly, and silently ignore missing include files. -Thu Jan 16 13:35:13 1992 Tom Wood (wood at dg-rtp.dg.com) +Tue Nov 2 17:37:39 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m88kdgux.h (CPP_PREDEFINES): Added __CLASSIFY_TYPE__ back and - noted when it would be useful. + * gcc.c (do_spec_1): Use spec_version for %v, not version_string. + Distinguish %v1 and %v2. + (default_compilers): For __GNUC_MINOR__, use %v2. + For __GNUC__ and __GNUG__, use %v1. - * m88k.h (ASM_FILE_END, ASM_OUTPUT_ASCII): Override svr4.h. + * protoize.c (safe_read): New function. + (process_aux_info_file, edit_file): Use safe_read. -Thu Jan 16 12:37:16 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cccp.c (safe_read): New function. + (main, finclude, check_precompiled): Use safe_read. - * svr4.h (SVR4): Add this back. +Tue Nov 2 14:31:42 1993 Ian Lance Taylor (ian@cygnus.com) - * cccp.c (lookup_import): Use bcmp to compare inodes. + * fixincludes: Don't remove /**/ from X11/Xlibint.h or + X11/extensions/multibufst.h; unnecessary. - * cccp.c (main): Handle -idirafter option. +Tue Nov 2 07:20:12 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m68kv4.h, m88kv4.h, i386v4.h, sparcv4.h, i860v4.h (CPP_PREDEFINES): - Add __svr4__ in case user programs want to distinguish. + * optabs.c (init_optabs): Function `ffs' takes `int', not mode that + is BITS_PER_WORD wide. - * cp-lex.c (check_newline): Changes like Jan 12 changes in c-lex.c. +Tue Nov 2 02:53:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (install-fixincludes): Renamed from `includes'. - Move comments so some shells are happier. Dep. on install-headers. + * cp-typeck.c (comptypes): Fix typo in changing STRICT from 2 to 1. - * m88kdgux.h (CPP_PREDEFINES): Add __svr4__. Remove __CLASSIFY_TYPE__. - Add some assertions. + * protoize.c (edit_file): Use safe_write. + (safe_write): New subroutine. - * 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. + * calls.c (expand_call): Discard __ prefix like _ or __x. - * c-decl.c (start_function): Fix backwards test for -W* options. + * objc/objects.c: Include tconfig.h. - * protoize.c (GUESSPATHLEN): Treat POSIX like USG--and use just 200. +Mon Nov 1 23:34:46 1993 Rainer Orth (ro@anemone.techfak.uni-bielefeld.de) - * cccp.c (deps_output): Break line iff string is empty. - (do_include): Fix up the deps_output calls. + * fixincludes (sys/stat.h) fix fchmod prototype, first arg is + int, not char * [AIX 3.2.4] + (rpc/svc.h): avoid nested comments [Ultrix 4.3] + (stdio.h, stdlib.h): fixed getopt prototypes to match POSIX.2 + [DEC Alpha OSF/1 1.3] - * vax.c (print_operand_address): Handle form index + (reg+offset). +Mon Nov 1 11:42:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * m88k.h (TARGET_VERSION): Don't use __DATE__. + * fixincludes: Fix like . - * gcc.c (default_compilers): Typos in c++-cpp-output case. + * fixincludes: Unquote 'f' in #define _IO. Fix elf.h like + elf_abi.h. For Irix 5. -Thu Jan 16 12:25:51 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Mon Nov 1 15:15:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * loop.c (get_condition): In HAVE_cc0 code, generate a zero with - CONST0_RTX instead of just using const0_rtx. + * configure (mips-sgi-irix5*): Add fixincludes=Makefile.in. - * cse.c (cse_isnsn): A CALL_INSN clobbers all fixed regs except - for ap, fp, and sp. + * fixproto (setjmp.h): Don't require siglongjmp and sigsetjmp. + They need sigjmp_buf, and are missing on many systems. -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 (stmp-fixproto): Print a notice that warnings and errors + from fixproto are normal. + (distdir): Avoid spurious output from gcc.texi version number check. + (diff): New target. -Thu Jan 16 07:40:29 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Nov 1 15:19:09 1993 Ian Lance Taylor (ian@cygnus.com) - * reorg.c (try_merge_delay_insns, fill_slots_from_thread): Have - update_block put the phantom insn before THREAD. - (update_block): Update block status if WHERE, not INSN, is block head. - -Thu Jan 16 00:28:14 1992 Ron Guilmette (rfg ay ncd.com) - - * i860.c (output_fp_move_double): Fixed typo. - - * protoize.c (GUESSPATHLEN, pointer_type, const_pointer_type): - moved definitions declarations out of conditional region. - (string_list_cons, shortpath, munge_compile_params): Added casts. - (find_extern_def): Fixed string literal to avoid trigraph. - (find_rightmost_formals_list): Fixed to avoid unreached code warnings. - - * svr4.h (ASM_OUTPUT_ASCII): Fixed typo. - -Wed Jan 15 21:58:01 1992 Jeffrey A Law (law at b117b.super.org) - - * sparc.h (SELECT_RTX_SECTION): When generating PIC, place symbolic - operands in the data section. - -Wed Jan 15 21:45:09 1992 Michael Meissner (meissner at osf.org) - - * collect2.c (main): Pass any -b, -B, -m, -f, and - -V options to gcc instead of the linker, in order to allow - target switches that affect the size of pointers and search paths to - be passed through. - (main, choose_temp_base): Use TMPDIR environment variable, and the - P_tmpdir macro if defined to locate directory to put temp files. - (whole file): Reorganize so that all of the OSF/rose stuff goes at - the end of the file, rather than being scattered throughout. - (main, scan_prog_file): Invoke scan_prog_file twice, once on each - output of ld. - (scan_prog_file, read_file, write_file): On the second invocation, - rewrite the object file in place, adding a load command to put - __main in the list of initializer functions. This allows users - to put constructors and destructors into shared libraries. - (scan_prog_file): Move debug stuff and error routines to separate - functions. + * fixincludes: Don't remove /**/ from X11/xmd.h; breaks gcc + -traditional on some systems. -Wed Jan 15 17:59:02 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Nov 1 07:38:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu - * combine.c (can_combine_p): Don't combine if DEST is still a field - assignment after we've tried to expand it. + * rs6000.md: Add set_attr for "length" when we are going to split + an insn at output time. -Wed Jan 15 16:01:13 1992 James Van Artsdalen (james at bigtex.cactus.org) + * rs6000.md (bdn/bdz): Fix typo in checking for when we + need to split. - * regclass.c (fix_register): Don't match a null register name. - * varasm.c (decode_reg_name): Likewise. + * rs6000.md (mulsi3): Make alternatives be "mq" and "no_mq" + instead of "power" and "powerpc". Only allow one pattern (either + with or without the clobber of MQ) to match. - * i386.h (HI_REGISTER_NAMES): Give the eliminable arg pointer a - null name. + * stmt.c (expand_decl_init): If CONST_DECL, don't generate any + code, but call expand_expr if DECL_INITIAL is a constant. -Wed Jan 15 13:40:50 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Mon Nov 1 06:17:16 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * gcc.c (default_compilers): Pass -lang-asm, not -lang-asmc, to cpp. + * m68k.md (divhisi3, udivhisi3, modhisi3, umodhi3): Comment out. + (divhisi3, udivhisi3, modhisi3, umodhi3 recognizers): Comment out. - * gcc.c (process_command): Don't dump md_exec_prefix in specs. - Use the md_... prefixes only if no -b. + * expmed.c (synth_mult): When factoring T, break from loop after + first factor. + (expand_mult): Increase max cost to 12 again. -Wed Jan 15 13:35:09 1992 Ron Guilmette (rfg at ncd.com) +Mon Nov 1 01:06:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * cccp.c (safe_write): New function. + (write_output): Use safe_write. - * 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. +Mon Nov 1 01:06:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68kv4.h (CPP_PREDEFINES): Don't define SVR4. - * sparcv4.h (CPP_PREDEFINES): Don't define SVR4. - (ASM_OUTPUT_ASCII): Deleted obsolete definition. + * Version 2.5.2 released. - * xm-svr4.h (SVR4): Removed useless definition. - (POSIX): Added definition for protoize.c. + * cccp.c (do_ident): Fix previous change. - * 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). +Sun Oct 31 14:41:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * fixinc.svr4: Replaced all occurances of {1,\} in sed command - string with functional equivalents (to avoid bogus results). + * Version 2.5.1 released. - * c-lex.c (readescape): Pass thru escaped x, a, and v if -traditional. - (readescape): Pedantic warning for \?, \(, \{, and \[. + * cccp.c (do_ident): Substitute macros and output here. + (directive_table): Turn off the pass_thru field for #ident. - * 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). + * c-common.c (shorten_compare): Undo previous change. + Instead, just suppress warnings if both args are constant. -Wed Jan 15 09:30:08 1992 Michael Tiemann (tiemann at cygnus.com) + * config/m68k/m68k.md (extzv, and its recognizer): + If width is 32, don't set CC_NOT_NEGATIVE. + If width is variable, clear the CC status. - * All cp-* files: Remove calls to `cleanup_after_call'. + * config/m68k/m68k.c (output_move_double): Extend the special case + for *--sp = sp[N] to handle 12 bytes as well as 8 bytes. - * cp-method.c (fndecl_as_string): Add a missing space when printing - the return type. +Sun Oct 31 17:02:13 1993 Jason Merrill (jason@deneb.cygnus.com) - * cp-typeck.c (build_modify_expr): Treat arrays specially in both - INIT_EXPR and NOP_EXPR cases. Also, if we take the address NEWRHS - when it's not a SAVE_EXPR, build a new NEWRHS using that address. - * cp-tree.c (lvalue_p): Handle WITH_CLEANUP_EXPR case. + * cp-init.c (expand_aggr_init_1): When unswitching a COND_EXPR + initializer (i.e. int a = b ? 1 : 0 => int a; b ? a=1 : a=0), + set TREE_SIDE_EFFECTS on the result. - * cp-decl.c (grokvardecl): Don't get tripped up by static class - members of incomplete type. +Sun Oct 31 13:33:46 1993 Jim Wilson (wilson@cygnus.com) -Wed Jan 15 09:12:51 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * expr.c (do_store_flag): For equality test of a single bit, use + subtarget instead of target in calls. - * m68k.c (legitimize_pic_address): Re-enable code which was - mistakenly #ifdef'd out. +Sat Oct 30 17:58:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 15 08:12:18 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/m68k/hpux7.h: New file. + * configure (m68k-hp-hpux7*): New alternative. - * reload.c (find_reloads): Check for insn not recognized. + * c-common.c (shorten_compare): Do nothing if both args constant. - * 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. + * config.sub: Re-add hitachi to list of companies not to treat + as OS names. - * sdbout.c (sdbout_symbol): Treat (mem (reg SP)) the same - as (mem (reg FP)). + * expr.c (convert_move): When extending to multi-word register + via its low word, clobber the whole thing. - * 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. + * config/i386/i386.c (output_move_double): Extend the special case + for *--sp = sp[N] to handle 12 bytes as well as 8 bytes. -Wed Jan 15 08:10:29 1992 Chris Smith (cks at bach.convex.com) +Sat Oct 30 17:21:33 1993 Atsushi Furuta (furuta@sra.co.jp) - * t-convex: Use collect2 to link. - * convex.h: remove assembly output defines for old collect2. - * convex.h: define vprintf and wait macros for pcc mode boot of - collect2. + * pa-ghiux.h, pa-hiux.h, pa1-ghiux.h: New files, for Hitachi H3050/RX. + * pa1-hiux.h, x-pa-hiux, xm-pahiux.h: Likewise. + * config.sub, configure: Add H3050/RX support. - * convex.h (ASM_OUTPUT_DOUBLE_INT): define. +Sat Oct 30 03:40:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * convex.h (DEFAULT_GDB_EXTENSIONS): define as 0 until GDB version 4 - port is available. + * config/pa/pa.c (output_dbra): Fix argument number in addi at end. - * convex.c (ap_reload_needed): Fix comment. + * tree.h (enum built_in_function): Added END_BUILTINS to delimit + standard from language-specific builtins. -Wed Jan 15 07:08:25 1992 Tom Wood (wood at dg-rtp.dg.com) + * toplev.c (rest_of_compilation): When an `extern inline' is not + really inline, clear DECL_INITIAL so we don't complain about + a subsequent non-extern definition. + * c-decl.c (finish_function): If rest_of_compilation set DECL_INITIAL + to null, leave it null. - * m88k.h (CONST_SECTION_FUNCTION): Trivial definition for targets - not based on svr[34].h (m88k-luna). + * c-common.c (convert_and_check): Don't warn converting 0xff + to a signed char, etc., unless pedantic. - * m88k.h (PREDICATE_CODES): Use it. + * Makefile.in (mainversion): New variable. + (distdir): Use mainversion when verifying gcc.texi has been updated. - * 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. +Sat Oct 30 03:12:54 1993 Torbjorn Granlund (tege@cygnus.com) - * m88k.c (legitimize_address): When converting a symbol_ref for - PIC, add a REG_EQUAL note. + * m68k.md (mulsidi3 patterns): Fix typo, LSHIFTRT was ASHIFT. -Wed Jan 15 06:22:34 1992 Michael Meissner (meissner at osf.org) +Fri Oct 29 12:06:09 1993 Ian Lance Taylor (ian@cygnus.com) - * 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. + * fixinc.svr4 (sys/stat.h): Don't change definitions into + prototypes if they may already be in prototype form. - * 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. +Fri Oct 29 16:50:33 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * config/i386/linux.h (LIB_SPEC): Use -lieee if -mieee-fp. -Wed Jan 15 01:42:39 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Fri Oct 29 13:04:16 1993 Arne H. Juul (arnej@fm.unit.no) - * 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. + * mips/iris5.h (LINK_SPEC): Pass -no_unresolved if -call_shared. -Wed Jan 15 01:01:39 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Oct 29 12:52:54 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * gcc.c (main): Don't use TARGET_VERSION. - (endfile_spec, switches_need_spaces): New vars, initted from macros. - (set_spec, process_command): Read and write those vars. - (do_spec_1, process_command): Use the new vars, not the macros. - (SWITCHES_NEED_SPACES): New default macro definition. + * rs6000.md (addsf3, subsf3, mulsf3, divsf3): Put POWERPC first, + then POWER. - * Makefile.in (install-common): Install driver as gcc-$(target). + * mips/iris5.h ({DBX,SDB,MIPS}_DEBUGGING_INFO): Turn off until working. - * gstddef.h (wchar_t): Check for _T_WCHAR. +Fri Oct 29 12:15:12 1993 Minh Tran-Le (tranle@intellicorp.com) - * 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. + * i386/xm-aix.h: Define HAVE_PUTENV for AIX PS/2. -Tue Jan 14 23:25:37 1992 Ron Guilmette (rfg at ncd.com) +Fri Oct 29 11:49:46 1993 DJ Delorie (dj@ctron.com) - * dwarfout.c: Include if USG *or* POSIX. - (TREE_UID): Deleted. - (current_funcdef_number): Replacement for TREE_UID. - (dwarfout_file_scope_decl): Increment - current_funcdef_number after each funnction definition is processed. - (pending_sibling_stack_depth): Renamed globally to pending_siblings. - (pending_sibling_stack_size): Renamed to pending_siblings_allocated. - (PENDING_SIBLING_STACK_INCREMENT): Renamed PENDING_SIBLINGS_INCREMENT. - (pending_types_list, pending_types_allocated, pending_types, - PENDING_TYPES_INCREMENT, fake_containing_scope): New vars/macros. + * i386/go32.h: Add support for coff-based ctor/dtor handling. - * 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. +Thu Oct 28 21:33:22 1993 Kresten Krab Thorup (krab@next.com) - * dwarfout.c (INSN_LABEL_FMT, FUNC_END_LABEL_FMT): Use decimal format. + * objc-act.c (check_methods_accessible): Fix bug in + -Wno-protocol. Reset chain to bottom class for each search. - * 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++). +Thu Oct 28 21:30:38 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * c-parse.in (init): Remove extraneous pop_momentary in error case. - * 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. +Thu Oct 28 19:01:33 1993 Ron Guilmette (rfg@netcom.com) - * 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. + * cp-method.c (hack_identifier): If an overloaded identifier + can only mean one thing, it can only mean one thing. -Tue Jan 14 16:40:39 1992 Tim Moore (moore at fast.cs.utah.edu) +Thu Oct 28 18:52:15 1993 John F Carr (jfc@mit.edu) - * calls.c (expand_call): If ARGS_GROW_DOWNWARD, make slot_offset - negative and set highest_outgoing_arg_in_use to needed + 1. - (store_one_arg): If ARGS_GROW_DOWNWARD deal with negative slot_offset. + * cp-typeck.c (get_member_function_from_ptrfunc): Convert delta + to size_t before adding to pointer. -Tue Jan 14 20:01:59 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Thu Oct 28 18:43:41 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * sparc.h (TARGET_SUN_ASM, TARGET_GNU): Delete support for - obsolete and undocumented flags -msun-asm and -mgnu. - * sparc.md: Likewise. + * arm.h (ENCODE_SECTION_INFO): Use DECL_RTL for DECLs. -Tue Jan 14 19:36:21 1992 Tim Moore (moore at fast.cs.utah.edu) +Wed Oct 27 20:58:31 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * 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. + * pa.c (emit_move_sequence): Fix typo, `Pmode' was `mode'. -Tue Jan 14 14:38:09 1992 Michael Tiemann (tiemann at cygnus.com) +Wed Oct 27 00:01:06 1993 Richard Stallman (rms@mole.gnu.ai.mit.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). + * cse.c (cse_insn): When using src_related, copy the rtx. + Likewise for src_eqv_here. - * 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. + * c-typeck.c (output_pending_init_elements): Don't crash if + constructor_unfilled_fields is 0. -Tue Jan 14 13:12:48 1991 Ron Guilmette (rfg at ncd.com) + * fixincludes (bsd/sys/wait.h): Undo previous change. - * 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. + * config/m68k/xm-amix.h (abort): Don't use fancy_abort. + (alloca): In GCC 1, define as __builtin_alloca. -Tue Jan 14 06:46:37 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL) + (ASM_OUTPUT_INTERNAL_LABEL): #if 0 deleted, to reenable these. + (NO_DOT_IN_LABEL): Defined. + (NO_DOLLAR_IN_LABEL): Undefined. - * 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. + * function.c (assign_parms): If parmreg is a CONCAT, handle the + case where stack_parm is 0. - * a29k.c (a29k_debug_reg_map): New variable. - (output_prologue): Initialize it. - * a29k.h (DBX_REGISTER_NUMBER): Use that map. + * expr.c (do_jump): Use do_jump_by_parts_equality for complex compares. - * ultrix.h (WCHAR_TYPE): Make definition be a known type. + * c-typeck.c (build_c_cast): When making union constructor, + copy TREE_CONSTANT from the given value. + (initializer_constant_valid_p): Special handling for "constant" + union constructor. - * final.c (final_scan_insn): Call DBR_OUTPUT_SEQEND before we - clear `final_sequence', so it can call dbr_sequence_length. + * bytecode.def: Rename dup to duplicate. + * expr.c (expand_assignment): Use duplicate. + (bc_expand_expr): Likewise. + (bc_expand_constructor): Likewise. - * 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. + * print-tree.c (print_node_brief): Use unsigned char to print + the bytes of a real constant. - * flow.c (mark_used_regs, case RETURN): Insert missing test for global - registers. + * expmed.c (store_bit_field): When calling operand_subword_force, + if VALUE has a non-void mode, pass that mode. - * reorg.c (mark_referenced_resources): Mark asm's as volatile - when appropriate. + * config/m68k/amix.h (NO_DOLLAR_IN_LABEL): Defined. - * 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. +Tue Oct 26 19:05:36 1993 John F Carr (jfc@mit.edu) -Mon Jan 13 19:12:18 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * rs6000.c (rs6000_override_options): Support -mcpu=rsc1. - * 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. +Tue Oct 26 19:01:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * Makefile.in (deduced.h): Add -I. and -I$(srcdir). - * 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. + * scan-types.sh (CC): Move a " to avoid shell error. -Mon Jan 13 11:21:24 1992 Michael Meissner (meissner at osf.org) + * config.sub (paragon): New alias. + * configure (i860-*-osf*): New alternative. + * gstdarg.h, gvarargs.h [__i860__]: Add to little-endian list. + * libgcc2.c (___builtin_saveregs): New alternative for __PARAGON__. + * va-i860.h: Treat __PARAGON__ like __SVR4__. + (va_dcl) [__PARAGON__]: Declare va_alist. + * paragon.h, xm-paragon.h: New files. - * mips-tfile (parse_stabs_common): Don't relocate N_LBRAC and - N_RBRAC stabs for compatibility with other stabs implementations. +Tue Oct 26 18:58:49 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Jan 13 07:41:32 1992 Michael Tiemann (tiemann at cygnus.com) + * fix-header.c: Delete duplicate definition of "buf". + * fix-header.c, gen-protos.c, scan-decls.c, scan.c: Include hconfig.h. + * scan-decls.c: Remove unused #ifdef OLD. - * 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. + * Makefile.in (gen-protos.o, scan.o, fix-header.o, scan-decls.o): + Add rule to compile using $(HOST_CC). + Show using hconfig.h. -Mon Jan 13 07:31:38 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * rs6000.md (movsi): Can copy a TOC address into a register. - * rs6000.c (output_ascii): The AIX assembler silently truncates - strings longer than 666 characters, so break them up well before that. +Tue Oct 26 15:03:07 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Jan 13 00:26:47 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * gcc.c (default_compilers): Define __GNUC_MINOR__, using %v. + (do_spec_1): Implement %v. - * 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. +Tue Oct 26 11:06:59 1993 Mike Stump (mrs@cygnus.com) - * sparc.c (output_return): Handle structure value in all the cases. + * cp-lex.c (consume_string): Handle "\"" and '\''. - * toplev.c (main): -gstabs+ means use stabs with gdb extensions. +Tue Oct 26 13:44:17 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * fixincludes: Insert #undef NULL before #define NULL. + * Makefile.in (fix-header.o): Depend on fix-header.c. + (scan-decls.o): New target. + (gen-protos.o, scan.o): New targets. - * gvarargs.h (va_list): Check some macros to avoid redefinition. + * Makefile.in (gen-protos, fix_header): Add $(HOST_CFLAGS) and + $(HOST_LDFLAGS). - * 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. + * x-sysv (OLDCC): Add -XNh1500. + * x-mips: Likewise. - * 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. +Tue Oct 26 12:21:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * cccp.c (do_assert, do_unassert, check_assertion): - No pedantic warnings in system header files. + * fixincludes: Fix NeXT problem in + as well, since that is where the file is in NeXTStep 3.0. - * ultrix.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Defined. - (WCHAR_TYPE_SIZE): Defined. +Tue Oct 26 07:23:08 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * i386.h (HI_REGISTER_NAMES): Add a name for dummy reg 16. + * expmed.c (init_expmed): Use register 10000, not FIRST_PSEUDO_REGISTER + that gets special treatment in rtx_cost. + (expand_mult): Decrease max cost to 8. - * dbxout.c (flag_minimal_debug): Make it static. + * c-typeck.c (build_binary_op): For TRUNC_MOD_EXPR and FLOOR_MOD_EXPR, + set common. -Sun Jan 12 18:10:46 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Oct 26 01:59:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * protoize.c [__NeXT__]: Don't declare setjmp or longjmp. - * dwarfout.c (fundemental_type_code): Treat OFFSET_TYPE like integer. - (type_is_fundamental, output_type): Likewise. + * configure: Ignore --verbose option if specified. - * optabs.c (expand_float): Abort if FROM has VOIDmode. - * expr.c (expand_expr, FLOAT_EXPR case): Don't pass a VOIDmode. + * expr.c (emit_move_insn_1): Don't call group_insns + when X is a CONCAT. + (emit_move_insn_1, case CONJ_EXPR and COMPLEX_EXPR): Likewise. -Sun Jan 12 16:11:40 1992 Michael Meissner (meissner at osf.org) + * fixproto (signal.h): Add prototypes only for kill and raise. + Not for the POSIX signal functions. + (sys/resource.h): Delete special handling for this file. - * mips.h (ASM_OUTPUT_SPACE): If assembler is gas, don't use the - .space directive, since the table PREDICATE_CODES generates tickles - a bug. + * c-typeck.c (push_init_level): Align here for element of record. + (process_init_element): Not here (was before call to push_init_level). -Sun Jan 12 15:59:41 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * scan-types.sh: Expect GCC source dir as argument. + In dummy.c, use gstddef.h and gstdarg.h, not stddef.h and stdarg.h. + * Makefile.in (deduced.h): Pass GCC source dir to scan-types.sh. - * 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. +Mon Oct 25 23:23:26 1993 Torbjorn Granlund (tege@blues.cygnus.com) -Sun Jan 12 12:26:20 1992 Michael Tiemann (tiemann at cygnus.com) + * c-typeck.c (build_binary_op): For TRUNC_MOD_EXPR and FLOOR_MOD_EXPR, + don't shorten when divisor might be -1. - * cp-decl.c (store_parm_decls): Finish change started 11 Jan 1992. +Mon Oct 25 23:45:20 1993 Minh Tran-Le (tranle@intellicorp.com) - * cp-decl.c (pushtag): Don't set CLASSTYPE_TAGS after - CURRENT_CLASS_TYPE has been defined. + * seq-sysv3.h (CPP_SPEC): Define _SEQUENT_ to be compatible with cc. + (INVOKE__main): Defined. + (HAVE_ATEXIT): Defined. - * cp-lex.c (check_newline): Set INTERFACE_UNKNOWN if we see a - #pragma implementation or if it's the toplevel file. + * configure (i[34]86-sequent-sysv): Use fixinc.srv4 and define + broken_install. -Sat Jan 11 22:04:34 1992 Michael Meissner (meissner at osf.org) +Mon Oct 25 18:53:51 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * expr.c (expand_expr, case PLACEHOLDER_EXPR): Fix typos. -Sat Jan 11 15:26:24 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Mon Oct 25 16:25:58 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.h (GEN_FCN): Alternate definition if FUNCTION_CONVERSION_BUG. - * xm-romp.h (FUNCTION_CONVERSION_BUG): Define it. + * scan.c (scan_string, skip_spaces): Add newline before fn name. - * i386.md (cmpstrsi recognizers): Change back to repz. + * scan-decls.c (scan_decls): When reading parameter list, + handle whitespace differently, and keep track of line number. -Sat Jan 11 11:18:32 1992 Michael Tiemann (tiemann at cygnus.com) + * config/i386/x-linux (STMP_FIXPROTO): Define as empty. - * cp-decl.c (store_parm_decls): Don't put non-PARM_DECL nodes in the - list that will become DECL_ARGUMENTS. +Mon Oct 25 13:22:37 1993 Kaveh R. Ghazi (ghazi@caip.rutgers.edu) - * cp-decl2.c (grokfield): Convert () initialization to = - initialization in FIELD context. - * cp-decl.c (parmlist_is_exprlist): Now non-static. + * fixincludes: Fix bad S_IS* macros in on m88k-sysv3. - * cp-decl.c (grokdeclarator): Don't let static class members be - declared `static' at top-level. +Mon Oct 25 22:34:12 BST 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * cp-decl.c (pushdecl_class_level): Don't use DECL_ASSEMBLER_NAME. + * fixincludes: Remove nested brackets in change of Oct 21. + Fix token pasting operator in ARM/RISCiX include files. - * cp-decl.c (grokdeclarator): Don't let language linkage interfere - with declarator grokking--the two are independent. +Mon Oct 25 13:01:52 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * 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. + * sparc.h (LONG_DOUBLE_TYPE_SIZE): Don't define here. + * sol2.h (LONG_DOUBLE_TYPE_SIZE): Do define here. - * cp-method.c (report_type_mismatch): Fix bugs in formatting error - messages. + * configure (mips-sgi-irix5): Don't use collect. - * cp-decl.c (grokvardecl): Verify that when static class members are - declared at toplevel, the types match their initial declaration. +Sun Oct 24 14:15:12 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Sat Jan 11 08:41:24 1992 Fred Fish (fnf at fishpond) + * libgcc2.c (L_bb): Undef NULL before including . - * config/m68kv4.h (NO_DOLLAR_IN_LABEL): Undefine so that the - default for m68k/SVR4 systems is to use '$', which is more - widely supported. +Sun Oct 24 03:04:53 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Jan 11 10:56:10 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * Makefile.in (g++.o): New target. - * Finish PIC implementation on the 68k - * output.h (flag_pic): Declare here so that insn-*.c can see it. + * varasm.c (assemble_variable): Set last_assemble_variable_decl. + (last_assemble_variable_decl): New variable. + * toplev.c (rest_of_decl_compilation): Test that var. - * reload1.c (reload): When compiling PIC ignore REG_EQUIV notes - which are CONSTANT_P, but are not LEGITIMATE_PIC_OPERAND_P. +Sat Oct 23 20:28:13 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) - * 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. + * configure (mips-sgi-irix5): Uncomment. + * iris5.h: Replace with working version. + * xm-iris5.h: New file. - * 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. + * mips.c (mips_abicalls): New variable. + (override_options): Set mips_abicalls. Allow '^' as print operand + punctuation character. + (print_operand): Add support for '^'. + (mips_asm_file_start): Use ABICALLS_ASM_OP instead of ".abicalls". + (compute_frame_size): Handle TARGET_ABICALLS case. + (mips_expand_prologue): Likewise. + * mips.h (mips_abicalls): Declare new variable. + (PIC_FUNCTION_ADDR_REGNUM): New macro. + (STARTING_FRAME_OFFSET): Handle TARGET_ABICALLS case. + * mips.md (abicalls): New attribute. + (define_delay): Don't fill call delay slots when TARGET_ABICALLS. + (call_internal3, call_value_internal3): Renamed from + call_internal2 and call_value_internal2. + (call_internal2, call_value_internal2): New call patterns for + TARGET_ABICALL case. + (call_internal4, call_value_internal4): Likewise. - * 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. +Sat Oct 23 00:06:14 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Jan 10 18:03:08 1992 Ken Raeburn (Raeburn@Cygnus.COM) + * Makefile.in (deduced.h): Depend on GCC_PASSES and stmp-int-hdrs. + (xsys-protos.h): Depend on GCC_PASSES. + (fixhdr.ready): New target. + (stmp-fixproto): Depend on fixhdr.ready, not fix-header itself. + (clean): Delete fixhdr.ready. - * 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 22 01:20:29 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Jan 10 14:54:19 1992 Michael Tiemann (tiemann at cygnus.com) + * fix-header.c: Renamed from patch-header.c. + (progname): Change name. + * fixproto: Use fix-header. + * Makefile.in (fix-header, fix-header.o): Renamed from patch-header*. + (stmp-fixproto, mostlyclean): Rename references to them. - * 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). + * expr.c (store_field): In BLKmode case, return blk_object. - * 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. + * config/m88k/m88k.h (ASM_FINISH_DECLARE_OBJECT): Undef, then define. -Fri Jan 10 08:34:36 1992 Fred Fish (fnf at sunfish) + * Version 2.5.0 released. - * m68ksgs.h (REGISTER_NAMES): Provide separate versions for - SUPPORT_SUN_FPA defined and not defined. +Thu Oct 21 13:02:48 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Fri Jan 10 22:36:41 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * mips.h (CUMULATIVE_ARGS): Double size of adjust array. + * mips.c (function_arg): Add comment about too many adjust entries. - * 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. +Thu Oct 21 13:48:14 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Jan 10 22:00:50 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * rs6000.h (HARD_REGNO_MODE_OK): Multi-word objects cannot + go into MQ, LR, or CTR. - * genrecog.c (merge_trees): If two trees both have actions, but - one adds clobbers and one doesn't, ignore the one that does. + * configure (mips-sgi-iris5*): Disable; not working yet. + * mips/iris5.h (ASM_SPEC, LINK_SPEC, CPP_PREDEFINES): Extend a bit. - * 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. + * expmed.c (expand_divmod): Create RESULT in proper mode when trying + quotient-and-remainder insn. - * 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. +Thu Oct 21 13:14:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * Makefile.in (STMP_FIXPROTO): Uncomment the definition. - * 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. + * varasm.c (output_constructor): Fix previous change: + if no TYPE_DOMAIN, don't set min_index. -Fri Jan 10 17:24:06 1992 Michael Meissner (meissner at osf.org) +Thu Oct 21 11:13:21 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * 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. + * fixincludes: Avoid conflicting uses of __wchar_t in cc1plus and + stdlib.h for ARM/RISCiX. - * 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 21 08:16:13 1993 Doug Evans (dje@canuck.cygnus.com) - * mips-tdump.c (various): Changes by Per Bothner to print - encapsulated stabs, and to shorten the output. + * Makefile.in (install-common): Remove g++ dependency. + Not built for cross compilers. - * 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 21 00:04:40 1993 Richard Stallman (rms@mole.gnu.ai.mit.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. + * fixincludes (required): Accept a space instead of a tab + between #define and CTRL (or _CTRL). - * 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. + * config/m68k/m68k.c (output_move_double): Use reg_overlap_mentioned_p + when checking for overlap between source and dest. + Fix syntax for the lea insn for double overlap case. + * m68k.md (movdi, movdf, movxf): Delete the & from load case. -Fri Jan 10 16:40:45 1992 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) + * config/m88k/m88k.h (ASM_FINISH_DECLARE_OBJECT): Emit .size + only if DECLARE_ASM_NAME. - * 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. +Wed Oct 20 21:32:11 1993 Jeff Law (law@snake.cs.utah.edu) -Fri Jan 10 06:54:22 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * pa.c (output_arg_descriptor): Do not stop searching if a USE + for the static link or struct value register is found. - * 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. +Wed Oct 20 22:43:22 1993 Michael Meissner (meissner@osf.org) -Fri Jan 10 02:25:54 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Don't emit .size + directive if using the OSF/rose object format. - * c-typeck.c (digest_init): Properly return error_mark_node - after invalid element in array initializer. + * i386/osfrose.h, i386/osfelf.h (SWITCH_TAKES_ARG): Allow use of + System V.4 -h * and -z * switches. + (LINK_SPEC): Pass -G, -h*, -z* switches through to the ELF linker. + Map -static, -symbolic, and -shared into the appropriate -B, -d, + and -G options when invoking the ELF linker. - * gcc.c (pexecute): Use `fork' in error message if don't have vfork. +Wed Oct 20 20:32:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in: Add .NOEXPORT. + * cse.c (fold_rtx): Alter previous change: don't fold the shift + if the count exceeds the width of the value inside the subreg. -Thu Jan 9 13:36:25 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * varasm.c (copy_constant): New function. + (output_constant_def): Use it. - * expr.c (expand_expr): Handle OFFSET_REF. + * Makefile.in ($(srcdir)/INSTALL): Add --no-split. - * cse.c (simplify_binary_operation): Never use associative law for - floating arithmetic. +Wed Oct 20 19:35:35 1993 John F Carr (jfc@mit.edu) - * fixinc.svr4: Renamed INCLUDES to INPUT. + * alpha.h (LIB_SPEC): Link -lprof1 when profiling. - * i386.md (cmpstrsi recognizers): Output repe, not repz. +Wed Oct 20 19:21:18 1993 Jim Wilson (wilson@cygnus.com) -Thu Jan 9 18:02:34 1992 Dennis P. Glatting (dennisg at tti) + * cccp.c (sys_errlist): Conditionalize declaration for BSD 4.4. + * collect2.c, g++.c, gcc.c, protoize.c: Likewise. + * collect2.c (my_strerror): Move block local extern declarations + for sys_errlist and sys_nerr to file level. - * 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. +Wed Oct 20 18:27:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Jan 9 10:35:58 1992 Tom Wood (wood at dg-rtp.dg.com) + * c-typeck.c (output_init_element): When initializing a union, + do it right away: never put the field on the pending list. - * sdbout.c (sdbout_syms): Don't attempt to output a LABEL_DECL. + * patch-header.c (main): Delete output file before opening it. + Discard directory names from progname. + * patch-header.c: Simplify and fix handling of errno.h. + (It no longer thinks errno.h always needs fixing.) + * patch-header.c (write_lbrac, write_rbrac): Only write + extern "C" if that specifically is needed. -Thu Jan 9 08:17:44 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Oct 20 18:12:21 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * fold-const.c (merge_component_references): Treat constants as - unsigned, so we don't get extra sign bits where we don't want them. + * pa.md (cacheflush): Split into dcacheflush and icacheflush. + Rewrite to use space regs correctly. + * pa.h (TRAMPOLINE_TEMPLATE): Rewrite. + (TRAMPOLINE_SIZE): Update with new size. + (INITIALIZE_TRAMPOLINE): Rewrite. -Wed Jan 8 19:12:59 1992 James Van Artsdalen (james at bigtex.cactus.org) +Wed Oct 20 17:58:32 1993 Per Bothner (bothner@kalessin.cygnus.com) - * reload.c (combine_reloads): Don't use a fixed_reg as an reload - reg, even if it dies. + * varasm.c (output_constructor): Add support for non-zero + lower array bound. + * expr.c (store_constructor): Likewise. - * loop.c (record_giv): Fix typo extracting insn_uid. +Wed Oct 20 15:16:34 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Jan 8 15:41:10 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * toplev.c (rest_of_decl_compilation): Use ASM_FINISH_DECLARE_OBJECT + unconditionally, but define it as no-op by default. - * cpp.texi, gcc.texi: Files renamed. - * invoke.texi, extend.texi, md.texi, rtl.texi, tm.texi: New subfiles. - * Makefile.in: Corresponding changes. + * config/convex/convex.h (MAX_LONG_TYPE_SIZE): Defined. - * fixincludes: Renamed INCLUDES to INPUT. + * varasm.c (size_directive_output): New variable. + * toplev.c (rest_of_decl_compilation): Use ASM_FINISH_DECLARE_OBJECT. + * config/svr4.h (ASM_DECLARE_OBJECT_NAME): Set size_directive_output. + (ASM_FINISH_DECLARE_OBJECT): Defined. + * config/i386/osfrose.h, config/m88k/m88k.h: Likewise. - * m68k.c (notice_update_cc, print_operand): Fix typos. + * patch-header.c (inf_size): Move decl inside main. + (strdup): Use xmalloc rathern than malloc. + Don't use the return value of strcpy. + (INF_UNGET): Take parameter; do nothing if EOF. + (strcpy): Declaration deleted. - * cp-decl.c (expand_static_init): Save and restore current obstacks. +Wed Oct 20 11:39:56 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * c-decl.c (poplevel): Put labels in BLOCK_VARS of top-level block. + * xm-mips.h (HAVE_VPRINTF): Define for BSD 4.4. -Wed Jan 8 12:53:48 1992 Michael Tiemann (tiemann at cygnus.com) + * mips.c (mips_output_filename): When emitting stabs, don't + disable them if using gas. + (mips_output_lineno): Likewise. - * cp-decl.c (expand_static_init): Switch to PERMANENT_OBSTACK during - expansion. + * sparc.h (INITIALIZE_TRAMPOLINE): Emit 3 flush instrutions. + * sparc.md (flush): Add pattern. -Wed Jan 8 07:45:58 1992 Tom Wood (wood at dg-rtp.dg.com) +Wed Oct 20 10:47:54 1993 Michael Meissner (meissner@osf.org) - * m88kv3.h (STARTFILE_SPEC): SVR3 has *crt0.o files. + * configure (mips-dec-bsd, mips-dec-osf): Fix a typo in the last + change. - * configure (m88k-*sysv{3,4}): The files are named m88kv{3,4}. +Wed Oct 20 07:57:06 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Jan 8 06:01:44 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * rs6000.h, aix31.h (RS6000_CROR_BIT_NUMBER): Deleted. + (RS6000_CALL_GLUE): New macro. + * rs6000.c (print_operand, case '.'): Use RS6000_CALL_GLUE + instead of RS6000_CROR_BIT_NUMBER. + (print_operand, case 'E', case 0): Use "return", not "break". + * rs6000.md (call): Don't use CROR or NOP; just use "%.". - * romp.md (mftbi): Allow memory in the contraints since there can't - be an input reload on an insn that uses cc0. + * c-common.c (check_format_info): Consider "char", "signed char", + and "unsigned char" types as equivalent. - * 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. + * loop.c (find_and_verify_loops): Properly continue loop after + moving a block of code near a loop exit. - * m68k.md (peepholes): Don't change around stack adjusts and pushes - when we are pushing something whose address involves sp. +Wed Oct 20 02:01:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * Makefile.in (extraclean): Delete file djefoo. + (stmp-fixproto): Depend on stmp-headers, not LIBGCC2_DEPS. - * 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. +Tue Oct 19 23:11:16 1993 James Van Artsdalen (james@bigtex.cactus.org) -Tue Jan 7 22:11:17 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * config/i386/isc.h (LONG_DOUBLE_TYPE_SIZE): Define as 64 bits + due to FP emulator bugs in the target kernel. + * config/i386/sco.h: Likewise (kernel bugs are only suspected). - * x-i386isc (ENQUIRE_LDFLAGS): New defn: add -posix. +Tue Oct 19 21:21:34 PDT 1993 Ralph Campbell (ralphc@pyramid.com) - * protoize.c (_POSIX_SOURCE): Define only if POSIX. + * configure (mips-dec-bsd): New alternative. + * config/mips/dec-bsd.h: New file. - * m68k.h (FPA_REG_P): Always define this somehow. +Tue Oct 19 18:49:40 1993 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. + * c-typeck.c (digest_init): For arrays, use comptypes to compare + types instead of comparing pointers. -Tue Jan 7 21:15:54 1992 Michael Meissner (meissner at osf.org) +Tue Oct 19 11:24:16 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) - * mips.md (branch_zero_false): Use correct mode (CC_0) on - match_operator. + * reload1.c (reload): Cope when inherited register is larger than + one word. + (choose_reload_regs): Ditto. -Tue Jan 7 14:24:45 1992 James Van Artsdalen (james at bigtex.cactus.org) +Tue Oct 19 18:09:18 1993 David Edelsohn (edelsohn@npac.syr.edu) - * reg-stack.c (replace_reg): get mode class from a mode, not a reg. + * rs6000.md (define_function_unit): Add support for RIOS2 + asymmetric integer units. -Tue Jan 7 14:16:18 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Oct 19 17:48:37 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * reg-stack.c (emit_pop_insn): Fix typo FPmode_reg. + * function.c (assign_parms): Properly set parm_reg_stack_loc for + args that are a CONCAT. - * protoize.c (longjmp): Don't declare it. + * clipper.md (movdi): Force use of "o" alternative if + operand 1 is a MEM. -Tue Jan 7 09:47:47 1992 Michael Tiemann (tiemann at cygnus.com) + * alpha.h (HAVE_ATEXIT): New macro. - * cp-lex.c (real_yylex): From John Hassey, allocate space for the - terminating null on wide character literals. + * reload.c (push_reload, find_reloads): If an operand is + a SUBREG of a PLUS, force a reload and reload what is inside. -Tue Jan 7 07:41:42 1992 Tom Wood (wood at dg-rtp.dg.com) + * dbxout.c (print_int_cst_octal): Fix bug in last change. - * m88kv3.h (LIB_SPEC): Add -lg. +Tue Oct 19 17:42:23 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) -Tue Jan 7 06:29:30 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * arm.c: Include reload.h + (arm_reload_out_hi): New function. + (output_call): Don't look inside operands[0]. + * arm.h: Add function definitions for shift_instr, + output_mov_long_double_fpu_from_arm, + output_mov_long_double_arm_from_fpu, + and output_mov_long_double_arm_from_arm. + (FLOAT_WORDS_BIG_ENDIAN): Define to 1. + (SECONDARY_OUTPUT_RELOAD_CLASS): return GENERAL_REGS for HImode + outputs. + (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): + output floating point constants as hex, make order correct given + definition of FLOAT_WORDS_BIG_ENDIAN. + (PRINT_OPERAND): Delete redundant code when handling CONST_DOUBLE. + * arm.md: (reload_outhi): New pattern. + (movhi): Handle reloads better. + (restorehi): Delete. Also tidy up commented out code. + (call): Make this a define_expand. + (matcher for above): only accept MEM(reg) + (call_value): Handle as for (call). + * xm-arm.h (HOST_FLOAT_WORDS_BIG_ENDIAN): Define to 1. - * stor-layout.c (layout_type): Don't over-align a structure - when strict alignment is not required. +Tue Oct 19 13:25:03 1993 Mike Stump (mrs@rtl.cygnus.com) - * rs6000.h (CALL_USED_REGISTERS): r31 should not be marked call-used. + * cp-type2.c (build_m_component_ref): Fix typo, type must be set, + after changing component. Fixes problem introduced on Thu Sep 9 + 21:22:40 1993. - * rs6000.md (add-and-compare): Fix duplicate operand number. +Tue Oct 19 01:09:56 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * a29k.md (inbyte, inhw): Correct duplicate operand number. + * configure (m68000-convergent-sysv*): Untangle from m68k-*-lynxos. - * 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. + * Makefile.in (stmp-fixproto): Depend on LIBGCC2_DEPS. + (crtbegin.o, crtend.o): Specify -fno-inline-functions. - * 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. + * config/mips/iris5.h: New file. + * config/mips/mips.c (mips_asm_file_start): Handle ABICALLS_ASM_OP. + * configure (mips-sgi-iris5*): New configuration. - * optabs.c (expand_unop): Complete recent change; one TARGET was - not changed to TEMP. +Mon Oct 18 16:16:26 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * cse.c (note_mem_written): (mem (scratch)) means clobber everything. - * 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. + * gen-protos.c: Include ctype.h. - * expr.h: Add "extern" to function definitions. + * expmed.c (extract_split_bit_field): Change shift count calculation + in little-endian case. -Mon Jan 6 10:12:34 1992 Leonard Norrgard (vinsci at nic.funet.fi) + * Makefile.in (stmp-fixproto): Added dependency on fixproto script. - * 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. +Mon Oct 18 11:26:08 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * m68k.c (notice_update_cc): New function. - * m68k.h (NOTICE_UPDATE_CC): Just call notice_update_cc. + * c-typeck.c (process_init_element): Align structure elements + that are subaggregates. - * sun3.h (SUPPORT_SUN_FPA): New define. + * c-decl.c (finish_decl): After preserve_initializer call, set + TREE_PERMANENT bit in initializer. -Mon Jan 6 16:42:43 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * combine.c (can_combine_p): Don't combine instructions across a + volatile insn. + * rtlanal.c (volatile_insn_p): New function. - * 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. +Sun Oct 17 03:04:49 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * 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. + * configure (powerpc-ibm-aix*): Set cpu_type. + * config.sub: Recognize powerpc. - * x-isc: File deleted. +Sun Oct 17 21:37:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * objc-actions.c (build_module_descriptor): Init global_object_name. + * reload1.c (eliminate_regs_in_insn): Rerecognize some loads and + stores. + * pa.md (indexing loads and stores): Provide variants which avoid + reload problems with shift-add operations. - * Makefile.in (collect2): Depend on version.o. + * pa.h (READONLY_DATA_SECTION): Disable. - * protoize.c (PATH_MAX): Definition deleted. Just test it - to see if param.h should be included. +Thu Oct 14 12:38:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cse.c (simplify_binary_operation, case MULT): Make a copy - of the operand when converting 2.0 * X to X+X. + * cse.c (fold_rtx): Special case handling for folding + a subreg of the result of a left shift. - * reload.c (find_reloads): Refine when we set force_reload and - better document the cases. +Thu Oct 14 00:05:42 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Jan 6 08:22:19 1992 James Van Artsdalen (james at bigtex.cactus.org) + * alpha.h (DBX_CONTIN_LENGTH): Set to 4000. - * 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'. + * expr.c (do_jump_for_compare): Don't blow up if aren't any insns + in this sequence yet. -Mon Jan 6 12:01:51 1992 Tiggr (rcpieter at mole.gnu.ai.mit.edu) + * alpha.h (LINK_SPEC): Now OK to pass -O3 to linker. + (ASM_OUTPUT_LOOP_ALIGN, ASM_OUTPUT_ALIGN_CODE): Work around + bug in DEC assembler. - * arm.md (mulsi3): Fixed contraints. +Wed Oct 13 21:47:58 1993 Ian Lance Taylor (ian@cygnus.com) -Mon Jan 6 08:21:46 1992 Tom Wood (wood at dg-rtp.dg.com) + * fixincludes: Remove erroneous parens from Alpha OSF/1 . - * 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. +Wed Oct 13 16:08:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-aux-info.c, dbxout.c: Include errno.h as in protoize.c. + * config/m68k/sun3.h (CPP_PREDEFINES): Don't define _CROSS_TARGET_ARCH. - * 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. + * fold-const.c (invert_truthvalue): Handle SAVE_EXPR. -Mon Jan 6 07:54:55 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Makefile.in (install-collect2): Depend on install-dir. + (install-info, install-float-h-cross): Likewise. - * 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. +Wed Oct 13 15:51:02 1993 Stephen L. Moshier (moshier@world.std.com)\ - * 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. + * real.h (FLOAT_WORDS_BIG_ENDIAN): New macro. + (HOST_FLOAT_WORDS_BIG_ENDIAN): Likewise, for host. + (REAL_VALUE_TO_TARGET_DOUBLE (default version)): Use them. + (efixi, efixui): Return HOST_WIDE_INT. + (REAL_VALUE_FROM_INT): Cast inputs to HOST_WIDE_INT. + * real.c (FLOAT_WORDS_BIG_ENDIAN, HOST_FLOAT_WORDS_BIG_ENDIAN): + Use everywhere in place of WORDS_BIG_ENDIAN, HOST_WORDS_BIG_ENDIAN, + except in reference to endian-ness of integers. + (etrunci, etruncui, efixi, efixui, ereal_from_int, ereal_to_int, + ltoe, ultoe, eifrac, euifrac): Change `long' to `HOST_WIDE_INT'. - * 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. +Wed Oct 13 15:47:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-parse.in (initdcl, notype_initdcl): Call decl_attributes + before init as well as after. -Sun Jan 5 18:34:15 1992 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * config/ns32k/pc532.h (FRAME_POINTER_REQUIRED): + Require a frame pointer if fn calls setjmp. - * make-cc1.com: Change file names from cp-tab.* to cp-parse.*. +Wed Oct 13 15:27:01 1993 Jim Wilson (wilson@cygnus.com) -Sun Jan 5 18:06:11 1992 Michael Tiemann (tiemann at cygnus.com) + * jump.c (jump_optimize): When moving a range of instructions, + include all NOTEs before the range, not just line number notes. - * cp-decl.c (grokdeclarator): Correctly grok REFERENCE_TYPE - parameters when TYPE_REFERENCE_TO is automagically converted. +Wed Oct 13 11:01:51 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) -Sun Jan 5 05:19:19 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * patch-header.c: #include before . - * 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. +Wed Oct 13 11:57:33 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * rs6000.md (seq): Fix typo: had "xubfic" instead of "subfic". - * svr3.h (LINK_SPEC): Don't pass -K. + * va-m88k.h (_VA_LIST_): Define. - * reload.c (find_reloads): Do record in non_reloaded_operands if no -O. + * alpha.c (ignore_line_number): No longer used. - * m68k.c (output_function_prologue, output_function_epilogue): - Add braces and adjust conditionals to fix balance and indentation. + * mips-tdump.c (print_global_hdr): Fix typo in cast in ctime call. - * objc-actions.c (build_module_descriptor): Mark __objc_file_init used. + * cccp.c (main): Don't catch SIGPIPE if no such signal. -Sat Jan 4 13:27:40 1992 James Van Artsdalen (james at bigtex.cactus.org) + * x-alpha: File deleted, all shipped OSF systems have `ranlib'. - * protoize.c: unprotoize getcwd & fork declarations. - (edit_fn_declaration): use "VOLATILE", not "volatile". + * fold-const.c (optimize_bit_field_compare, decode_field_reference): + Don't do anything if get_inner_reference returned its argument. -Sat Jan 4 20:19:41 1992 Michael Meissner (meissner at osf.org) + * bi-reverse.c: Avoid defining NULL; can cause duplicate definition + errors. - * mips.h (set_volatile): Add new global variable reference. +Wed Oct 13 07:58:28 1993 Michael Meissner (meissner@osf.org) - * 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/osfrose.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define like in V.4. + (FUNCTION_PROFILER, FUNCTION_PROLOGUE): Don't load up %eax with + the pointer value before calling indirect, just call indirect the + memory address to save some cycles in profiling. + +Tue Oct 12 12:41:12 1993 Jim Wilson (wilson@sphagnum.cygnus.com) + + * cse.c (record_jump_cond): At end, make missing equivalences + first, and then merge them. + +Tue Oct 12 21:30:29 1993 Doug Evans (dje@cygnus.com) + + * va-h8300.h (__va_rounded_size): Fix typo in #ifdef. + +Tue Oct 12 20:19:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * bc-emit.c: Include stdio.h last. + * combine.c: Include stdio.h after gvarargs.h. + +Tue Oct 12 13:28:18 1993 Per Bothner (bothner@kalessin.cygnus.com) + + * fixproto: Re-write. We now assume that there are two + source directories (source_dir_all and source_dir_std). These + are handled differently. All files in source_dir_all (normally + ./include) are processed, but in source_dir_std (normally + /usr/include) we only process the standard ANSI/Posix ones where + we might be able to add missing prototypes. + * scan-decls.c (scan_decls): Rewrote from being a program whose + output is piped to patch-header, to a subroutine called by + patch-header. This should be somewhat more efficient. + * Makefile.in (scan-decls): Removed rule to make program. + * patch-header.c (recognized_macro, recognized_extern, + recognized_function): New functins, with logic moved out from + read_scan_file, so they can be called by scan_decls. + * patch-header (main): Read the original header file into a + buffer (rather than reading it with stdio). This should be more + efficient, partly because we can re-write it in place. + (inf_skip_spaces, inf_read_upto, inf_scan_ident): New functions, + based on skip_spaces, read_upto, and scan_ident in scan.c, but + these read from the in-memory buffer mentioned above. + * scan-types.sh: Don't check for sigset_t, since it can be a + struct, whose name cannot be simplify replaced by its definition. + * Makefile.in (deduced.h): Don't pass -nostdinc. + +Tue Oct 12 18:36:32 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + Changes to support native ecoff and embedded stabs debugging + for the Alpha. + + * alpha.c (output_prolog): Put out file and line number if sdb + debugging format, put out .ent directive, signal start of function for + alpha_output_filename and set up debugging auto/arg offsets. + (output_epilog): Signal end of function for alpha_output_filename. + (alpha_output_filename, alpha_output_lineno): New functions. + * alpha.h (TARGET_SWITCHES): Add gas option. + (ASM_DECLARE_FUNCTION_NAME): Moved output of .ent directive to + output_prolog. + (DBX_NO_XREFS): Removed, gdb understands cross references and the + native debugger can't handle embedded stabs. + (ASM_FILE_START): Replace output of .file directive + by ASM_OUTPUT_SOURCE_FILENAME call. + (TARGET_GAS, MASK_GAS, SDB_DEBUGGING_INFO, DBX_DEBUGGING_INFO, + MIPS_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE, DEBUGGER_AUTO_OFFSET, + DEBUGGER_ARG_OFFSET, ASM_OUTPUT_SOURCE_LINE, + ASM_OUTPUT_SOURCE_FILENAME, DEFAULT_GDB_EXTENSIONS, ASM_STABS_OP, + ASM_STABN_OP, ASM_STABD_OP, SDB_ALLOW_FORWARD_REFERENCES, + SDB_ALLOW_UNKNOWN_REFERENCES, PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, + PUT_SDB_TYPE, PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END, + PUT_SDB_FUNCTION_START, PUT_SDB_FUNCTION_END, PUT_SDB_EPILOGUE_END, + ASM_FINAL_SPEC, CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, + MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE): New macros. + * alpha-gdb.h: New file. + * configure (alpha-*-osf*): Handle --with-stabs and --with-gnu-as. + * mips-tfile.c (add_local_symbol): Index in the external symbol + must point to local symbol table entry for procedures. + +Mon Oct 11 16:14:53 1993 Ian Lance Taylor (ian@cygnus.com) + + * fixincludes: If a file is referenced with double quotes from + a fixed file, make sure it is copied into the fixed include + directory. + Remove DPS/XDPSlib.h special-case code. + +Tue Oct 12 08:05:28 1993 David Edelsohn (edelsohn@npac.syr.edu) + + * rs6000/powerpc.h: New file. + * configure (powerpc-ibm-aix*): New target. + * rs6000.h (MASK and TARGET): Add new flags for POWER2 and PowerPC + with square root. + (ASSEMBLER_DIALECT): New macro. + (CONDITIONAL_REGISTER_USAGE): Set MQ register fixed if not POWER. + (SHIFT_COUNT_TRUNCATED): Conditional on POWER. + (ASM_OUTPUT_REG_{PUSH,POP}): Mnemonics dependencies. + * rs6000.c (rs6000_override_options): Use new TARGET flags and + add some more cpu choices. + (output_prolog, output_epilog): Support new mnemonics and avoid + using lm/stm when not POWER. + * rs6000.md: Update define_function_units. + Put both old and new mnemonics in all templates. + Add target tests to pattern conditional field throughout. + (one_cmplsi2): Make POWER and PowerPC variants. + (mulsi3): Convert to define_expand which calls appropriate POWER + or PowerPC pattern. + (divsi3, udivsi3): Add patterns for PowerPC case. Update divsi3 + define_expand for PowerPC case. + (ashlsi3, lshrsi3, ashrsi3, extendqisi2, extendqihi2): Convert to + define_expand which calls appropriate POWER or PowerPC pattern. + (floating-point): Add PowerPC single-precision FP, and SF/DF sqrt + insns for 603, 604, 620. + (call insns): Use "nop" for magic TOC restore. + (move data, nop): Use PowerPC extended mnemonics. + +Tue Oct 12 07:58:36 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * alpha.h (SETUP_INCOMING_VARARGS): If not TARGET_FPREGS, + save another copy of the integer regs where the FP regs would + have gone. + + * tree.h (struct tree_type): symtab_address is now a union of + pointer and integer. + (TYPE_SYMTAB_ADDRESS): Refer to the integer. + (TYPE_SYMTAB_POINTER): New macro to refer to pointer. + * sdbout.c (KNOWN_TYPE_TAG, SET_KNOWN_TYPE_TAG): Refer to + TYPE_SYMTAB_POINTER and remove casts. + (tag_of_ru_type): Likewise. + + * reload1.c (reload): Fix typo in RELOAD_FOR_INSN case when + accounting for reloads. + + * expr.c (convert_modes): Reset OLDMODE from X after we strip + a SUBREG due to a promoted variable. + + * dbxout.c (dbxout_type, case INTEGER_TYPE): Output bounds in + octal if type wider than HOST_WIDE_INT. + (print_int_cst_octal): Trim bound by precision of its type. + Avoid warning on what may be shift into sign bit. + + * bi-reverse.c: Add missing #include for hconfig.h. + + * fixincludes: Quote braces when looking for DONE files. + + * final.c (dialect_number): New variable. + (init_final): Initialize it. + (output_asm_insn, asm_fprintf): Support ASSEMBLER_DIALECT. + +Tue Oct 12 01:34:16 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (digest_init): If traditional, allow unbraced scalar + to initialize the first element of an aggregate. + + * cccp.c (output_line_command): Output the `4' flag only if cplusplus. + (do_line): Handle the `4' flag. + + * final.c (final_scan_insn): Call walk_alter_subreg for operands + that are PLUS or MULT, before constrain_operands. + +Mon Oct 11 15:18:45 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * real.c (debug_real): New function. + + * regclass.c (reg_scan_mark_refs): XEXP (x, 0) in EXPR_LIST may be 0. + + * config/m68k/m68k.md (cmphi): Turn on constraints to support cmpm.w. + +Mon Oct 11 13:20:54 1993 Jim Wilson (wilson@sphagnum.cygnus.com) + + * unroll.c (unroll_loop): Set map->const_equiv_map_size to + new_maxregnum. + (copy_loop_body): When set const_age_map entry for split dest reg, + verify that it is within the bounds of the map. + (find_splittable_regs): Count number of biv sets, not number of + bivs. Don't pass result to find_splittable_givs. + (find_splittable_givs): Delete parameter result. Add local + variable result. + +Mon Oct 11 07:43:31 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * expr.c (expand_assignment): When assigning an INDIRECT_REF to + a RESULT_DECL, the size and source rtx were swapped. + + * function.c (trampoline_address): Don't allocate anything + from parent function's current obstack. + + * regclass.c (reg_scan): Don't call reg_scan_mark_refs on notes + if there aren't any. + (reg_scan_mark_refs, case INSN_LIST, EXPR_LIST): New cases. + + * cse.c (simplify_binary_operation): Test value of + SHIFT_COUNT_TRUNCATED if it is defined. + * combine.c (subst, shift and rotate cases): Likewise. + * a29k.h, alpha.h, fx80.h, i960.h, mips.h, pa.h, pyr.h, rs6000.h: + Define SHIFT_COUNT_TRUNCATED to have a value of 1. + * sparc.h, tahoe.h, we32k.h: Likewise. + +Mon Oct 11 02:40:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * regclass.c (regno_last_note_uid): New vector. + (reg_scan): Initialize regno_last_note_uid. + Call reg_scan_mark_refs for the notes. Pass its new arg. + (reg_scan_mark_refs): New arg NOTE_FLAG. Pass it recursively. + Set regno_last_note_uid. + * regs.h (regno_last_note_uid): Declared. + * jump.c (jump_optimize): Use regno_last_note_uid when deciding + whether a register is set and never used. + +Sun Oct 10 22:51:01 1993 Stephen Moshier (moshier@world.std.com) + + * real.c (asctoeg): Fix backward condition in last change. + +Sun Oct 10 22:33:17 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * configure (hppa1.0-*-mach*): Use collect2. + (hppa1.1-*-mach*): Likewise. + + * pa.c (legitimize_pic_address): Delete unused variables. + (output_block_move, output_ior): Likewise. + (hppa_builtin_saveregs): Likewise. + (emit_move_sequence): Add parens as suggested by -Wall. + (compute_frame_size): Likewise. + (output_ascii): Return type is "void". + (hppa_expand_prologue, import_milli): Likewise. - * mips.md (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. + * pa.c (output_function_prologue): Pass the highest register + number saved for ENTRY_GR and ENTRY_FR directives rather + than the number of registers saved. + (hppa_expand_prologue): Account for %r4 when it's being + used as a frame pointer. -Sat Jan 4 23:01:41 1992 Jeffrey A Law (law at planet.super.org) +Sun Oct 10 18:42:49 1993 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) + * c-typeck.c (start_init): Don't set require_constant_elements + for scalar types. -Sat Jan 4 11:11:24 1992 Dennis P. Glatting (dennisg at tti) + * c-parse.in (stmt): Don't call default_conversion on top-level + expressions. - * next.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef before defining. + * c-typeck.c (convert_for_assignment): Allow silent conversion to + a pointer from an integer 0 that resulted from arithmetic. -Sat Jan 4 07:40:25 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c, c-pragma.c (enum pragma_state): Defined. - * expr.c (convert_to_mode): Correctly zero-extend a constant into - a mode whose size is twice the host int size. + * config/i386/i386.c (restore_386_machine_status) + (save_386_machine_status): New functions. + (clear_386_stack_locals): Store those functions in + save_machine_status, restore_machine_status. + (struct machine_function): New structure definition. - * 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. + * function.h (struct function): New field `machine'. + * function.c (save_machine_status, restore_machine_status): New vars. + (push_function_context, pop_function_context): Use them. - * calls.c (calls_alloca): Don't recurse on BLOCK_SUPERCONTEXT. + * explow.c (emit_stack_save): Cast enum array index to int. -Sat Jan 4 03:42:09 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sun Oct 10 12:49:39 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * 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. + * arm.c (const_ok_for_arm): Cast constants to unsigned HOST_WIDE_INT. + (output_prologue): Sanity check the finite state machine. + (output_epilogue): Delete unused variable. + (final_prescan_insn): Always clear arm_target_insn when FSM goes to + state 0. + * arm.h (OPTIMIZATION_OPTIONS): Don't set flag_omit_frame_pointer, + since this inhibits debugging. + (ASM_OUTPUT_INTERNAL_LABEL): Always clear arm_target_insn when FSM + goes to state 0. -Sat Jan 4 00:59:53 1992 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Sun Oct 10 08:56:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.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. + * alpha.h (ALPHA_COSTS): Add missing arg to call to rtx_cost. -Fri Jan 3 20:29:57 1992 James Van Artsdalen (james at bigtex.cactus.org) + * combine.c (force_to_mode, case ASHIFTRT): Verify that result of + making a LSHIFTRT remains a shift. - * i386.md (return): Always output return insns. + * tree.c (save_tree_status): Function_maybepermanent_obstack is the + function_obstack of parent function. + (restore_tree_status): Only free objects later than + maybepermanent_firstobj in function_maybepermanent_obstack. + (make_node): Fix logic error in PARM_DECL code. + Put PARM_DECL in parent function's saveable obstack. + * function.c (put_reg_into_stack): Allocate fixup structure in + saveable obstack. - * i386.h (FUNCTION_PROLOGUE): If the last nonnote insn in a function - is a BARRIER, don't output a function epilogue. + * expr.c (expand_assignment): Don't short circuit store_expr + when TO is a VAR_DECL since it needs special handling if promoted. -Fri Jan 3 12:43:09 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * combine.c (subst, case SUREG): Only call force_to_mode if both + inner and outer modes are MODE_INT. - * t-decrose, t-decstatn, t-encrose, t-i386rose, t-mips (ALL): - Use libgcc.a, not libgcc. + * mips-tfile.c (WORD_ALIGN): Fix typo in last change. - * protoize.c (STRINGIFY): Provide non-ANSI alternative definition. + * c-common.c (check_format_info): Support X/Open formats like "%1$d". - * c-decl.c (get_parm_info): Keep non-parms in the parm list. +Sat Oct 9 22:29:17 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * stmt.c (cost_table): Now short. - (estimate_case_costs): Handle that. + * configure: If no target is specified, try getting one + with config.guess. + * config.guess: New file. - * Makefile.in (float.h, *protoize.1, gcc.xtar.Z): - Make temp files, then rename. - (clean): Delete those temp files. +Sat Oct 9 19:50:24 1993 Pat Rankin (rankin@eql.caltech.edu) - * Makefile.in (c-parse.c): Don't use -d, since cp-parse.output is big. + * c-common.c (check_format_info): Avoid ?: conditional for function + to be called. -Fri Jan 3 10:32:31 1992 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) + * config/vax/xm-vms.h [VAXC] (bc_check_for_full_enumeration_handling) + (current_function_has_nonlocal_goto) + (output_deferred_addressed_constants): New macros to shorten + external names exceeding 31 characters. - * Makefile.in (cp-parse.c): Add missing -o flag. + * make-cc1.com: Move alloca handling before bytecode construction + so that VAX C won't need two different values for LIBS. Eliminate a + comment about make-like functionality that referred to a capability + which has not been implemented. -Fri Jan 3 08:21:04 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Oct 9 21:53:53 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) - * reg-stack.c: Complete last change (renaming DFmode_reg). + * fixincludes: Unquote a quoted `t' in a #define _IO line, for AIX + 3.2 sys/stropts.h #define _IO(t,v). + (sys/spinlock.h): Don't copy it if it doesn't exist. + (DPS/XDPSlib.h): Change "XDPS.h" to , for AIX. - * expmed.c (init_expmed): Pass dummy pointer to number of clobbers to - recog so it can let us see patterns that need added clobbers. +Sat Oct 9 15:00:00 1993 DJ Delorie (dj@ctron.com) -Fri Jan 3 07:54:32 1992 Tom Wood (wood at dg-rtp.dg.com) + * configure.bat: Change $(srcdir)/ to $(srcdir)\ in commands. - * c-decl.c (implicitly_declare): Record whether this is an implicit - declaration before setting IDENTIFIER_IMPLICIT_DECL. +Sat Oct 9 15:17:22 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Jan 2 21:17:12 1992 Michael Meissner (meissner at osf.org) + * expr.c (expand_expr, case ABS_EXPR): Don't copy twice into + volatile MEM. - * mips.c (compute_frame_size): Don't count FP registers twice. + * expr.c (expand_expr): Never reset ORIGINAL_TARGET. + Pass ORIGINAL_TARGET to lang_expand_expr, not TARGET. -Thu Jan 2 14:59:55 1992 Michael Tiemann (tiemann at hal) +Sat Oct 9 13:27:10 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * tree.c (pop_momentary_nofree): New function. + * c-parse.in (initdcl, notype_initdcl, init): Undo previous change. + (init): Use pop_momentary_nofree if the initializer has real data. -Thu Jan 2 12:37:32 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sat Oct 9 12:55:26 1993 Stephen Moshier (moshier@world.std.com) - * objc-actions.c (build_obj_method_call): Typo in NEXT case. + * real.c (asctoeg): Allocate local buffer dynamically. Count + any lost significant digits before the decimal point. - * next.h (HAVE_ATEXIT): Defined. +Fri Oct 8 16:33:42 1993 Mike Stump (mrs@rtl.cygnus.com) - * c-decl.c (duplicate_decls): - No error if override decl that has DECL_BUILT_IN_NONANSI. + * cp-tree.h (OFFSET_REF): Override OFFSET_REFs from the back-end, as + we need to do something more complex with them. + * cp-tree.def (CP_OFFSET_REF): Very similar to OFFSET_REFs, but + allow the front-end to handle them. - * Makefile.in (c-parse.c): Don't use -o, since cp-parse.output is big. +Fri Oct 8 14:40:29 1993 Jason Merrill (jason@deneb.cygnus.com) - * Makefile.in (protoize, PROTOIZE): Delee these 2 new targets; - `protoize' was redundant. + * cp-error.c (dump_expr, REAL_CST): Support printing of real values + when REAL_IS_NOT_DOUBLE (prints out rep in hex). - * 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. +Fri Oct 8 13:54:03 1993 Mike Stump (mrs@cygnus.com) - * expmed.c (init_expmed): Pass all 3 args to `recog'. + * cp-type2.c (store_init_value): Move pointer to member function + initilization code to... + * cp-type2.c (digest_init): here. Allows nested pointer to member + functions to work. + * cp-decl.c (build_ptrmemfunc_type): Use a real union instead of a + magic union, as the initialization code doesn't like them. + * cp-tree.h (TYPE_PTRMEMFUNC_FN_TYPE): Changed to go though the + union. + * cp-tree.h (DELTA2_FROM_PTRMEMFUNC, PFN_FROM_PTRMEMFUNC): Accessor + macros to go thought union. Allows us to change pointer to member + functions a little easier. + * cp-typeck.c (get_member_function_from_ptrfunc, + build_binary_op_nodefault): Changed to use new accessor macros. + * cp-typeck.c (build_ptrmemfunc): Use new union instead. Also, make + sure TREE_CONSTANT is set for CONSTANT things. + * cp-decl.c (pfn_or_delta2_identifier): Added to cache + get_identifier calls. + * cp-tree.h (pfn_or_delta2_identifier): Declare it. + * cp-decl.c (init_decl_processing): Setup pfn_or_delta2_identifier. - * varasm.c (output_constant): For REAL_TYPE, mode_for_size arg is bits. +Fri Oct 8 19:03:09 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * sparc.md (storing SF into mem at symb addr): Fix typos. + * xcoffout.h (DBX_STATIC_BLOCK_START): For N_LCSYM, force change + to text section to avoid assembler bug. - * 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. + * mips.md (movsi_unaligned): Change in comment "loads" to "stores". - * m68k.h (LEGITIMATE_PIC_OPERAND_P): Undo change below, - thus making the behavior really change to accept all CONST_DOUBLE. + * calls.c (emit_library_call_value): Compute struct_value_size, + and pass it to emit_call_1. - * 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_... +Fri Oct 8 16:13:17 1993 H.J. Lu (hlu@nynexst.com) - * 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. + * config/i386/linux.h (STARTFILE_SPEC): Handle -p and -pg + outermost. Also add support for cross-linking. -Thu Jan 2 21:06:13 1992 James Van Artsdalen (james at bigtex.cactus.org) +Fri Oct 8 15:20:58 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * Makefile.in (cp-error.o, cp-errfn.o): Add dependency rules. - * Makefile.in (protoize,unprotoize): Get $(LIBS) for alloca. +Fri Oct 8 08:00:51 1993 Eric Youngdale (eric@kafka) -Thu Jan 2 21:40:52 1992 Jeffrey A Law (law at b115.super.org) + * linux.h: Only include i386/gstabs.h if LINUX_ELF is not defined. - * sparc.h (OPTIMIZATION_OPTIONS): Enable caller-saves for -O2 - and higher optimization levels. + * linuxelf.h: Copy a lot of stuff from the SVr4 configuration: + include "i386/i386.h", "i386/att.h" and "svr4.h". + (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Undefine. + (ASM_FILE_START, RETURN_IN_MEMORY, ASM_OUTPUT_ADDR_DIFF_ELT) + (JUMP_TABLES_IN_TEXT_SECTION, DBX_REGISTER_NUMBER): Copy from sysv4.h. + (TARGET_VERSION): Define to print "i386 Linux/ELF". + (LINUX_ELF): Define, before we include "i386/linux.h" + (YES_UNDERSCORE): Undefine. -Thu Jan 2 06:46:56 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Oct 8 13:40:44 1993 Michael Meissner (meissner@osf.org) - * final.c (final_scan_insn): Compare debug_info_level with entries in - its enum, not with integers. + * i386/osfrose.h, i386/osfelf.h (CPP_SPEC): If buliding for shared + libraries, define __SHARED__. - * 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. + * i386/osfrose.h (FUNCTION_PROFILER): If half-pic, call mcount in a + half-pic fashion. + (FUNCTION_PROLOGUE): If half-pic call through _mcount_ptr in a + half-pic fashion. - * romp.c, romp.h, romp.md: Rename symbolic_operand to - romp_symbolic_operand. + * halfpic.c (half_pic_external): New function to declare a halfpic + identifier as always external. - * emit-rtl.c (init_emit_once): Create virtual registers before the - structure value regsisters, since the latter might use the former. + * halfpic.h (half_pic_external): declare function. + (HALF_PIC_EXTERNAL): Declare accessor macro. - * varasm.c (output_constant): Fix typo: missing arg to expand_expr. +Fri Oct 8 15:03:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * vax.md (call_pop, call_pop_value): Use correct register number for - stack pointer. Add new patterns for case of zero args. + Cygnus<->FSF C++ front-end merge. + Thu Oct 7 11:45:32 1993 Jason Merrill (jason@deneb.cygnus.com) -Thu Jan 2 08:12:59 1992 Fred Fish (fnf at sunfish) + * Makefile.in (CPLUS_OBJS): Change error.o to cp-errfn.o - * x-amix: Minor changes to some comments. - * x-amix (CCLIBFLAGS, GNULIB2_CFLAGS, XCFLAGS): Remove definitions. - * x-amix (manext): Add definition. + * cp-*.c, cp-parse.y: Rename lang_error and its kin to cp_error + and the like to accomodate rms's belief structure. -Thu Jan 2 11:14:28 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * error.c: Moved to cp-errfn.c to accomodate rms's belief structure - * 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 6 15:05:49 1993 Jason Merrill (jason@deneb.cygnus.com) -Wed Jan 1 10:37:50 1992 Michael Tiemann (tiemann at cygnus.com) + * cp-pt.c (mangle_class_name_for_template): Always use type_as_string + for printing out type parameters. Nuke id and type variables. - * expr.c (convert_move): When GET_MODE_BITSIZE (TO_MODE) > - BITS_PER_WORD, check that it's also > GET_MODE_BITSIZE (FROM_MODE). + * cp-error.c (dump_expr, INTEGER_CST): Support printing of character + literals and large integers + (dump_char): New function + (dump_type): Deal with ** and *& more prettily - * 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. + * cp-pt.c (mangle_class_name_for_template): Strip out code for + printing template parameters, replace with call to expr_as_string. -Wed Jan 1 18:32:03 1992 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-method.c (build_overload_value): descend through + TREE_OPERAND on NOP_EXPRs as well as NON_LVALUE_EXPRs. - * 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. + * cp-decl.c (poplevel_class): Add assertion that + class_binding_level is not NULL. - * c-decl.c (struct binding_level): New slot subblocks_tag_transparent. - (pushlevel): Use that, not ->parm_flag. - (start_function): Set that slot. + Tue Oct 5 11:11:25 1993 Jason Merrill (jason@deneb.cygnus.com) - * config.sub: Always distinguish between amix and sysv4. - Convert commodore to cbm and digital to dec. + Patches to support proper handling of system includes without munging: - * m68k.md (stack adjust then push SI): New peephole. + * cp-lex.h: Declare in_c_header, a flag meaning 'implicitly wrap this + file in extern "C" { }'. - * m68k.h, fx80.h (WCHAR_TYPE): Use precisely "long int". - * sun3.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Undef before defining. + * cp-lex.c: Define in_c_header. + (check_newline): If in_c_header when changing files, + pop_lang_context(). + (check_newline): If "4" seen on #line line, push_lang_context(C). - * cexp.y (yylex): Use LONG_TYPE_SIZE, not INT_TYPE_SIZE. - (LONG_TYPE_SIZE): Add default definition. + * cccp.c: Add a new field c_system_include_path to struct + file_name_list which indicates that the directory contains C-language + system includes. + (*various*): Set this flag correctly + (is_system_include): Return 2 if C-language system include. + (output_line_command): Output " 4" after " 3" for C-language system + include. - * 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. + * cp-tree.h (SET_CLASSTYPE_INTERFACE_UNKNOWN_X): Coerce X to boolean + value - * protoize.c: Unprotoized. - (edit_file): Improve message in -n case. + Mon Oct 4 17:03:48 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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'. + * cp-tree.h: Add declaration for flag_external_templates -Wed Jan 1 15:07:41 1992 Michael Meissner (meissner at osf.org) + * cp-decl.c (start_decl): Don't declare flag_external_templates - * 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. + * cp-pt.c: Ditto -Wed Jan 1 06:10:01 1992 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-parse.y (template_instantiate_once): Ditto - * reload1.c (reload): When forcing an illegitimate constant into - memory, use mode of SET_DEST in case constant is VOIDmode. + * cp-lex.c (reinit_parse_for_method): Ditto + (cons_up_default_function): Ditto + (extract_interface_info): Don't set interface_unknown + if (processing_template_defn && !flag_external_templates) - * 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 + * cp-error.c (dump_type): Deal properly with pointers to member functions. - * 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. - - * 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. - -Wed Jan 1 16:51:30 1992 Fred Fish (fnf at fishpond) - - * Makefile.in (manext): Include the '.' character. - (mandir): Don't use manext. - (install-man, uninstall): Change uses of manext. - -Wed Jan 1 21:31:01 1992 Ron Guilmette (rfg at ncd.com) - - * i860.md (cmpeqsi, cmpltsi, cmpgtsi): Made control flow more obvious. - (cmpnesi, cmplesi, cmpgesi): New patterns. - (cmpgeusi, cmpleusi): Fixed bug in compares against zero. - -Tue Dec 31 11:16:37 EST 1991 Dennis P. Glatting (...!uunet!tti!dennisg) - - * 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. - -Tue Dec 31 18:06:23 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.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 (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. - -Tue Dec 31 16:51:37 1991 Michael Meissner (meissner at osf.org) - - * 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. - - * 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. - - * 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). - - * configure (mips-*-sysv): Correctly use mips-sysv.h instead of - mips.h. Change is from Ron Guilmette. - -Tue Dec 31 16:51:37 1991 Michael Stump (mrs at charlie.secs.csun.edu) - - * 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. - - * Makefile.in: Add collect2 to STAGESTUFF as it is something that - needs removing or moving to stagen, but it should not be installed. + * cp-pt.c (instantiate_class_template): If !flag_external_templates, + increment interface_unknown so that nested classes will be dealt with + properly. + (end_template_instantiation): If !flag_external_templates, + decrement interface_unknown. -Tue Dec 31 15:47:50 1991 Michael Tiemann (tiemann at hal) + * cp-lex.c (cons_up_default_function): Remove redundant check + for processing_template_defn && !flag_external_templates + (reinit_parse_for_method): Ditto - * combine.c (simplify_comparison): Swap evaluation of OP0 and OP1 so - the lattern can use the result of the former. + * cp-parse.y (template_instantiate_once): Don't mess with + interface_unknown - * conditions.h: In comments, refer to `tm.h', since `tm-' is no - longer the form used for these files. + Mon Oct 4 15:47:34 1993 Mike Stump (mrs@cygnus.com) -Tue Dec 31 11:45:26 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (duplicate_decls): Move setting of TREE_CHAIN after + all possible return 0;s as we only want to do this when we know + that we are dealing with a duplicate. - * cp-lex.c (lineno, finput): Decls deleted. + * cp-decl.c (start_function): Remove my_friendly_abort 19. Allows + one to declare a built-in as extern inline. - * global-alloc.c (find_reg): New arg RETRYING. - (retry_global_alloc, global_alloc): Pass that arg. + Mon Oct 4 12:47:33 1993 John F Carr (jfc@mit.edu) - * Makefile.in (*protoize, *protoize.o): Compile with CC. - * protoize.c: Include config.h, not tconfig.h. - Always define _POSIX_SOURCE. + * cp-lex.c (consume_string): Change variable `c' to int so return + value of getch can be assigned to it safely. Compare return value + of getch to EOF, not -1. - * convex*.h (CPP_SPEC): !ansi controls _POSIX_SOURCE, _CONVEX_SOURCE. - * conv1*.h, conv2*.h: Files deleted. + Mon Oct 4 11:42:46 1993 Jason Merrill (jason@deneb.cygnus.com) - * m68k.h, fx80.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Defined. + * toplev.c (error and its kin): Use #defines for the argument + lists for ease of adding arguments, and of moving to vfprintf when + dje adds it. -Tue Dec 31 08:08:32 1991 Tom Wood (wood at dg-rtp.dg.com) + * error.c (lang_thing and its children): Do the same thing. - * cexp.y (yylex): Record the parsed characters when dealing with - multibyte characters. + * cp-typeck.c (build_binary_op): Do away with the kludge, now that + error accepts more arguments. -Mon Dec 30 17:13:30 1991 James Van Artsdalen (james at bigtex.cactus.org) + Sun Oct 3 16:34:39 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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. + * cp-error.c: Remove all traces of in_parmlist -Mon Dec 30 17:39:36 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Sun Oct 3 13:54:57 1993 Mike Stump (mrs@cygnus.com) - * jump.c (jump_optimize): Complete last change: use expand_and result. + * cp-call.c (convert_harshness_ansi, convert_harshness_old): Handle + pointer to function members properly. - * 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 1 16:42:30 1993 Mike Stump (mrs@cygnus.com) - * cse.c (simplify_unary_operation): Mode of integer CONST_DOUBLE is - VOIDmode, not DImode. + * cp-error.c (dump_function_decl, dump_function_name): Make static + to match prototype. - * fold-const.c (fold, case COND_EXPR): Make an ABS_EXPR when the - comparison is LE_EXPR or LT_EXPR. + Fri Oct 1 15:23:31 1993 Mike Stump (mrs@cygnus.com) - * calls.c (calls_alloca): New function. - (expand_call): Preexpand any argument that contains a call to alloca - if this call will use the stack. + * cp-typeck.c (build_ptrmemfunc): Move some code into the virtual + conditional part. Fixes problem with core core dumping when the + class that we want to build a pointer to member function for doesn't + have any virtual functions. - * rs6000.h (DATA_SECTION_OP): Make result a string to avoid compilation - error. + Thu Sep 30 18:15:29 1993 Jason Merrill (jason@deneb.cygnus.com) - * rs6000.h, sparc.h, sun2o4.h, sun3.h (WCHAR_TYPE_SIZE): Fix - incorrect definition. + * cp-parse.y (id_scope): Print the name of the invalid scope. + (unary_expr): Add .scope new typespec '(' typespec ')' expansion + which just gives an error. -Mon Dec 30 16:10:46 1991 Michael Meissner (meissner at osf.org) + * cp-typeck.c (build_binary_op): Print more helpful message for + a missing member operator (print the desired type involved). + Very kludgey due to error()'s two-arg limit. - * mips.h (CC1_SPEC): Complete change deleting -mnogpopt and -mngpopt - in favor of -mno-gpopt. + * error.c (lang_thing): Abort if more than NARGS (currently 2) are + passed, since this is likely to cause a seg fault elsewhere anyway. -Mon Dec 30 11:32:05 1991 Michael Tiemann (tiemann at cygnus.com) + Thu Sep 30 14:19:28 1993 Jason Merrill (jason@deneb.cygnus.com) - * cp-class.c (build_vtable): If we're doing #pragma interface - and the interface is known, set TREE_PUBLIC, regardless of - TREE_EXTERNAL settings. + * g++int.texi: Add error reporting section, make `makeinfo'able - * cp-decl.c (make_temporary_for_reference): Don't call - `convert_pointer_to', since the type may not be an aggr type. + * cp-type2.c (my_friendly_abort): Deal with recursive calls - * cp-decl.c (finish_decl): Now takes 4th arg NEED_POP. - All callers changed. + Thu Sep 30 12:24:33 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-decl2.c (grok_array_decl): Don't pedwarn on reversing the array + and its index in `a[b]'. - * cp-decl.c (grokdeclarator,maybe_build_cleanup): Delete calls to - preserve allocation status. Now handled by callers. + * cp-typeck.c (build_conditional_expr): Make pointer type mismatch + in a conditional expression get a pedwarn. + (build_binary_op_nodefault): Make comparison between different + pointer types lacking a cast get a pedwarn. + (build_modify_expr): Don't strip the NOP_EXPRs, since we're using + the rhs in a non-lvalue context. + (convert_for_assignment): Allow conversion of 0 to a pointer, but + not a 0 that results from casting or folding. -Mon Dec 30 01:44:21 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Thu Sep 30 11:24:59 1993 Jason Merrill (jason@deneb.cygnus.com) - * c-lex.c (yyprint): Function moved here. - * c-parse.y, objc-parse.y: Moved from here. + * cp-typeck.c (build_modify_expr): For memberwise assignment, + put nop_expr (reference_type (lhstype)) at the end of of the list so + that the expression has the correct type. - * Makefile.in (c-parse.c, objc-parse.c, cp-tab.c, cexp.c): - cd to srcdir to run Bison. + * error.c (lang_thing): Don't rely on STDC array initialization - * 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. + Tue Sep 28 18:20:05 1993 Mike Stump (mrs@cygnus.com) - * cccp.c (main, finclude): Warn if file ends in backslash-newline. + * cp-init.c (build_virtual_init): Use get_binfo and + convert_pointer_to_real, to find the right basetype to convert to, + instead of trying to use convert_pointer_to, as convert_pointer_to + doesn't handle complex MI situations. Cures a bogus "cannot + convert a pointer of type `B' to a pointer of type `A'" when the + compiler is initializing virtual table pointers. - * next.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): New definitions. + Mon Sep 27 14:54:42 1993 Mike Stump (mrs@cygnus.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. + * cp-call.c (build_method_call): Use get_binfo and + convert_pointer_to_real, to find the right basetype to convert to, + instead of trying to use convert_pointer_to, as convert_pointer_to + doesn't handle complex MI situations. Cures a bogus "cannot + convert a pointer of type `B' to a pointer of type `A'" when the + compiler is setting up the `this' pointer. + * cp-cvt.c (convert_pointer_to): Just call convert_pointer_to_real + to implement functionality. + * cp-cvt.c (convert_pointer_to_real): New routine. Uses new + functionality in get_base_distance to figure out which exact + parent we want to convert to. + * cp-search.c (get_base_distance_recursive, get_base_distance): + Modify to support searching for a specific PARENT given as a binfo + from our hierarchy. + * cp-typee.h (convert_pointer_to_real): Declare new routine. - * protoize.c (do_processing): Fix setting syscalls_absolute_filename. + Mon Sep 27 13:02:51 1993 Jason Merrill (jason@deneb.cygnus.com) - * configure (m68k-*-sysv4*, m68k-*-amix*): New alternatives. - * config.sub (*-commodore): Default OS to Amigados. - (-amix*): Allow this as input. - (amiga): New abbreviation. + * cp-type2.c (my_friendly_abort): Undo previous change - * 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. + * cp-*.c: Use lang_error instead of error_with_decl, + error_with_aggr_type, etc. Not complete; I only changed the easy + cases and a few of the more obscure ones. Please convert calls + over when you're working on an appropriate section. - * fold-const.c (fold, optimizing 2*EXPR): Use save_expr. + * cp-method.c: Strip out error reporting code - * varasm.c (make_decl_rtl): Permit initializer for local explicit reg. + * Makefile.in (CPLUS_OBJS): Add error.o and cp-error.o - * c-decl.c (kept_level_p): Changed to also return TRUE for binding - levels which contain only tagged type declarations. + * cp-error.c: New file, contains call-back functions for C++. + The actual output code is an extensively overhauled version of the + code from cp-method.c. + Don't call my_friendly_* to avoid undesirable recursion. - * calls.c (expand_call): Cleaned up prev change. + * error.c: New file, provides call-back mechanism for language- + dependent error reporting. -Mon Dec 30 11:29:47 1991 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) + Fri Sep 24 13:52:27 1993 Jason Merrill (jason@deneb.cygnus.com) - * cp-lex.c (real_yylex): Call REAL_VALUE_TRUNCATE with 2 args. + * cp-type2.c (my_friendly_abort): Don't die quietly if + errorcount or sorrycount are positive, die loudly. - * calls.c (expand_call): Handle allocating ARGBLOCK in the case - that ACCUMULATE_OUTGOING_ARGS is not defined. +Fri Oct 8 13:58:13 1993 Doug Evans (dje@cygnus.com) -Mon Dec 30 10:27:11 1991 James Van Artsdalen (james at bigtex.cactus.org) + * loop.c (scan_loop): When skipping consecutive insns, + don't count notes. - * protoize.c: fix typo in inclusion. +Fri Oct 8 10:41:07 1993 Chip Salzenberg (chip@fin.uucp) -Mon Dec 30 06:16:16 1991 Leonard Norrgard (vinsci at nic.funet.fi) - - * c-decl.c (grokdeclarator): Changed erroneus error message. - -Sun Dec 29 16:16:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * toplev.c (main): Last -On option wins. - * Makefile.in (ENQUIRE_CFLAGS): Add -O0. - - * Makefile.in (cp-tab.c): Change "expect" message. - - * final.c (leaf_renumber_regs): Renumber just the PATTERN. - -Sun Dec 29 14:20:15 1991 Per Bothner (bothner at cygnus.com) - - * 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 ... - -Sun Dec 29 07:04:22 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - - * optabs.c (init_extends, init_fixtab, init_floattab, init_optabs): - Add TImode operations. - - * reload.c (find_reloads): Prefer alternatives that reload SCRATCH - instead of something else. - - * rs6000.md (movti): Adjust constraints and alternative order so - we actually get to use the stsi insn. - - * 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. - - * 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. - - * loop.c (scan_loop): Don't suppress moving insns that can trap just - because we have passed a call inside a libcall/retval block. - - * 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. - - * 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. - - * jump.c (jump_optimize): Don't pass a SUBREG as a target to - expand_and. - - * combine.c (subst): Never associate floating-point, even if not IEEE. - Associate MAX and MIN operations. - - * 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. - -Sat Dec 28 18:14:21 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-method.c (build_overload_name): Don't call OB_FINISH unless END - is nonzero. - -Sat Dec 28 17:46:05 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * gcc.c (default_compilers): Handle -ansi in the C++ entries - exactly the same way as the C entries do. - - * rtl.c (add_dependence): Cast enums to int before doing an - ordered comparison, since some compilers can't do this. - - * 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 %^. - - * m88k.h, sparc.h: Delete references to non-existent - BLOCK_PROFILER_USED_REG_P macro. - -Sat Dec 28 14:31:36 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-lex.c (check_newline): Set ignore_escape_flag for reading filename. - (yylex): Handle ignore_escape_flag in string constant. - - * gnulib2.c (__do_global_dtors): Count elements properly. - - * m68k.md (tsthi): Don't allow address register. - -Sat Dec 28 11:49:06 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * final.c (final): Initialize elements of line_note_exists. - - * protoize.c: Don't include on USG unless SVR4. - -Sat Dec 28 11:09:36 1991 Fred Fish (fnf at fishpond) - - * Makefile.in (includes): Pre-remove the tmp dir; fix INSTALLED_H ref. - -Sat Dec 28 06:31:16 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * sparc.md (movstrsi): Fix typo testing for more than 32 subunits. - - * 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. - - * a29k.h, romp.h, rs6000.h (PREDICATE_CODES): Add definition. - -Fri Dec 27 17:31:48 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - - * expmed.c (expand_mult): For negative values, try multiplication by - the original value as well as by negated value. - -Fri Dec 27 20:54:59 1991 Fred Fish (fnf at fishpond) - - * m68kv4.h: Include m68ksgs.h rather than m68k.h. - - * m68kv4.h: Define TARGET_DEFAULT to be 68020 + 68881. - (CPP_SPEC): Define based on TARGET_DEFAULT - - * 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. - - * 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. - - * m68ksgs.h (ASM_OUTPUT_SKIP): Redefined to use `.space'. - (ASM_NO_SKIP_IN_TEXT): Defined. - - * amix.h, xm-amix.h, x-amix: New files. - -Fri Dec 27 20:43:11 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-tree.h (build_overload_name): Declare this function. - * cp-decl2.c, cp-method.c: Delete random `extern' declarations. - - * 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. - - * cp-class.c (add_method): Add a cast in call to `obstack_base'. - -Fri Dec 27 20:22:05 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (push_overloaded_decl): Now returns a value. - All callers changed. - - * 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. - -Fri Dec 27 17:18:15 1991 Michael Meissner (meissner at osf.org) - - * 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. - - * 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. - -Fri Dec 27 15:35:38 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-common.c (check_function_format): Correct error in last + change. - * c-typeck.c (build_array_ref): Special warning about `register' array. +Fri Oct 8 08:10:03 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-parse.in (initdcl, notype_initdcl): Call push_momentary and + pop_momentary here. + (init): Not here. - * fx80.*: Renamed from alliant.*. - * configure: Alternative renamed to fx80-alliant-*. - * config.sub: Corresponding changes. +Fri Oct 8 06:35:07 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cccp.c (traditional): No longer static. - * cexp.y (yylex): Handle full variety of character constants. - Include stdlib.h and locale.h if needed. + * dbxout.c (dbxout_type, case INTEGER_TYPE): Correctly check + for type smaller than `integer'. - * c-decl.c (shadow_tag): Change warnings to error or pedwarn. + * expr.c (expand_expr, case MAX_EXPR): Don't use TARGET directly + if it is a volatile MEM. - * 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. + * i386/t-aix, i386/t-isc, i386/t-osfrose, i386/t-sco, mips/t-osfrose: + Remove LIMITS_H; hasn't been used for a while. - * cp-decl2.c (finish_file): Always change $ to _ - regardless of NO_DOLLAR_IN_LABEL. + * configure: Add EXTRA_PASSES like we add EXTRA_HEADERS. + Correct EXTRA_HEADERS handling to accept multiple names. + (mips-*-*): Set extra_passes to mips-tfile and mips-tdump when + we use t-mips, t-bsd, t-svr[34], and t-ultrix. + * Makefile.in (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): + New rules. + * mips-tfile.c: Don't define memory functions on Alpha. + (Ptrdiff_t): Always `long'. + (WORD_ALIGN): Make portable. + * mips/t-bsd, t-mips, t-svr3, t-svr4, t-ultrix: Remove + definition of EXTRA_PASSES and remove rules for mips-* files. -Fri Dec 27 15:04:40 1991 Tom Wood (wood at dg-rtp.dg.com) + * dbxout.c (dbxout_parms): Don't confuse a parameter at an + offset of zero from AP or FP with one that has variable size. - * svr4.h (ASM_OUTPUT_ALIGNED_COMMON): Fix typo. + * calls.c (emit_library_call): Fix typo in last change; should + use Pmode instead of SImode. - * 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. +Fri Oct 8 00:34:39 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Dec 27 11:34:59 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * c-decl.c (finish_decl): Error if block-scope static var + has incomplete type. - * cp-pt.c (mangle_class_name_for_template): Use a local obstack - rather than fixed-size buffers. + * expr.c (expand_expr, case VAR_DECL): If decl wasn't laid out, + lay it out now, and fix the rtl's mode. - * cp-class.c (add_method): Case obstack_base value to desired type - when reallocating vector node. +Thu Oct 7 12:30:10 1993 Chip Salzenberg (chip@fin.uucp) -Fri Dec 27 09:16:50 1991 Ron Guilmette (rfg at ncd.com) + * c-decl.c (complete_array_type): Correctly set MAXINDEX to + one less than array size. - * sort-protos: New file. +Thu Oct 7 20:44:41 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * 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. + * c-typeck.c (build_binary_op): For *_DIV_EXPR, set shorten based + on orig_op0. - * i860.md (cmpnesf, cmpnedf): New patterns. - * i860.md (cmplesf, cmpgesf): Corrected to allow for IEEE conformance. +Thu Oct 7 18:19:17 1993 Jim Wilson (wilson@cygnus.com) -Thu Dec 26 11:20:07 1991 Michael Tiemann (tiemann at cygnus.com) + * xm-mips.h (HAVE_VPRINTF): Correct typo, is VPRINTF not VFPRINTF. - * cp-class.c: Declare N_* variables here. - * cp-class.h: Declare N_* variables extern here. + * Makefile.in (LIB2FUNCS): Add _fixtfdi, _fixunstfdi, _floatditf. - * cp-gc.c (build_static_gc_entry): Call `assemble_gc_entry' instead - of implementing it directly. - * varasm.c (assemble_gc_entry): New function. +Thu Oct 7 14:58:02 1993 Michael Meissner (meissner@osf.org) - * calls.c (expand_call): Don't crash if somebody declared a void - function `const'. + * configure (i386-osf): ELF on OSF/1 does not need collect2. - * 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. +Thu Oct 7 17:38:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-spew.c (yylex): Extend special-case ptr-to-func ((*)()) parsing - to handle (*)[] and (&)[] declarations as well. + * cccp.c (main): New option -lang-c-c++-comments. - * 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. +Thu Oct 7 16:40:38 1993 Michael Meissner (meissner@osf.org) - * cp-class.c (add_method): Fix handling of obstacks to correctly - extend TREE_VECs. + * config/i386/osfrose.h (OSF_PROFILE_BEFORE_PROLOGUE): New macro + to determine whether profiling goes before the function prologue + or after. New style profiling goes before in order to save + getting and saving the function's callers address or have mcount + 'know' there is a frame pointer. Old style profiling using mcount + and some ELF PIC profiling goes after the prologue. + (FUNCTION_PROLOGUE): Redefine in order to get new style profiling + before the function prologue if desired. + (FUNCTION_PROFILER): Do not put a profile call if it already has + been put out in the prologue. Change new style profiling to call + through _mcount_ptr instead of _real_mcount. Propigate ROSE brain + damage regarding mcount being in the users name space to ELF. + (SUBTARGET_SWITCHES): Make -mmcount default again instead of + -mno-mmcount. -Thu Dec 26 15:24:45 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i386.h (FINALIZE_PIC): Add macro to set the variable + current_function_uses_pic_offset_table if either -p or -a switches + are used. - * 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. +Thu Oct 7 17:07:57 1993 Ian Lance Taylor (ian@cygnus.com) - * 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. + * rtl.c (byte_mode, word_mode): Move to emit-rtl.c. + (init_rtl): Move initialization of byte_mode and word_mode to + init_emit_once. + * emit_rtl.c (byte_mode, word_mode): Moved from rtl.c. + (init_emit_once): Moved in initialization of bytes_mode and + word_mode from init_rtl. - * 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. +Thu Oct 7 11:11:25 1993 Jason Merrill (jason@deneb.cygnus.com) -Thu Dec 26 05:04:28 1991 James Van Artsdalen (james at bigtex.cactus.org) + * cccp.c (struct file_name_list): Add new field c_system_include_path. + (*various*): Set this flag correctly + (is_system_include): Return 2 if C-language system include. + (output_line_command): Output " 4" after " 3" for C-language system + include. - * reg-stack.c (move_for_stack_reg): If a SET_DEST is REG_UNUSED, - just pop the SET_SRC. +Thu Oct 7 14:45:20 1993 Doug Evans (dje@canuck.cygnus.com) -Wed Dec 25 17:23:25 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (install-dir): Fix typo. + (install-common): Remove obsolete comment. + (install-common): Install native g++ only if not cross. - * c-decl.c (init_decl_processing): Fix type of exit, _exit. +Thu Oct 7 11:27:45 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (cross_jump_death_matters): Move def to front, make static. + * calls.c (emit_library_call, emit_library_call_value): + Allocate a temp slot if arg must be passed by reference. -Tue Dec 24 20:41:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * gcc.c (read_specs): Fix call to bzero. - * hard-reg-set.h (reg_names): Declare here. - * stmt.c (expand_asm_operands): Not here. +Thu Oct 7 08:53:57 1993 Torbjorn Granlund (tege@adder.cygnus.com) - * gcc.c (handle_braces, do_spec_1, give_switch): Clear up %*. + * alpha.md: Clean up usage of commutative declarator `%'. - * expr.c (expand_expr): Delete decl of lang_expand_expr. +Thu Oct 7 08:14:46 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * final.c (final_scan_insn): Delete line number followed by another - line number, if numbers are effectively consecutive. + * i860/xm-fx2800.h (HAVE_VPRINTF): Fix typo; was HAVE_VFPRINTF. - * 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. + * xm-alpha.h: Always declare malloc, realloc, etc, to be void *. - * c-decl.c (init_decl_processing): - Declare abort, exit, and _exit as volatile. + * combine.c (force_to_mode): Sign-extend constant being truncated. - * c-decl.c (implicitly_declare): Set IDENTIFIER_IMPLICIT_DECL earlier. - (pushdecl): Test that and avoid nested extern warning. +Wed Oct 6 18:53:43 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (init_decl_processing): Don't handle EXPAND_BUILTIN_VARARGS. + * bi-lexer.c (xmalloc, xrealloc): Cast the result of malloc, realloc. -Tue Dec 24 15:42:34 1991 Michael Tiemann (tiemann at cygnus.com) +Wed Oct 6 15:30:39 1993 Michael Meissner (meissner@osf.org) - * cp-init.c (add_friends): Add missing IDENTIFIER_POINTER macro - application to strncmp argument. + * i386/osfrose.h (FUNCTION_PROFILER): Define to pass the function + address, its caller, and the unique label address through the + _real_mcount pointer, unless -mmcount is used, in which case use + the old calling sequence. + (SUBTARGET_SWITCHES): Add -mmcount, -mno-mcount support. - * 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. +Wed Oct 6 15:29:40 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Tue Dec 24 10:38:49 1991 Michael Collison (collison at osf.org) + * pa.c (output_function_prologue): Pass on information about the + number of callee saved general and floating point registers which + are saved by the current function's prologue. + (hppa_expand_prologue): Keep track of the number of callee + register saves done for general and floating point registers. - * 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. +Wed Oct 6 13:50:03 1993 Ian Lance Taylor (ian@cygnus.com) - * ns32k.h (HARD_REGNO_MODE_OK): Turn it into a function call. + * cexp.y (MAX_CHAR_TYPE_SIZE, MAX_INT_TYPE_SIZE, + MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define. + (yylex): Use them instead of the non-MAX versions, to avoid + dependencies on target_flags. - * 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. +Wed Oct 6 13:47:13 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) -Tue Dec 24 10:14:20 1991 Ron Guilmette (rfg at ncd.com) + * combine.c (try_combine): New variable i3_subst_into_i2. + Set it for special case of substituting i3 into i2. Use it near + end to detect when special case succeeded. Move i2notes to + i3notes for this special case. + (distribute_notes, REG_UNUSED case): Ignore all REG_UNUSED notes + except those from I3. - * 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. +Wed Oct 6 13:14:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-typeck.c (build_c_cast): When making a CONSTRUCTOR, provide + the dummy first operand. - * 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. + * real.c (real_value_truncate): Correct etrunci argument + in case SImode. - * c-lang.c (recognize_objc_keyword): Added explicit return. +Wed Oct 6 06:55:05 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * final.c (asm_fprintf): Add cases for 'w' and 'l'. - * svr4.h (CONST_SECTION_FUNCTION): Moved decl of `text_section' to - top level. + * Makefile.in (bi-opcode.o): Includes hconfig.h. + * bi-lexer.c: Remove declarations of malloc and realloc. + * bi-opcode.c: Include hconfig.h. + * bi-parser.y: Remove declaration of malloc. - * cexp.y (main): Add explicit return type and explicit value. - Move decl of yydebug to top level. + * regclass.c (record_reg_classes): Check if operands are the same + by seeing if they are the same register. - * gnulib2.c (__bb_init_func): Moved decl of ___tcov_init to top level. + * cse.c (record_jump_cond): Rehash OP1 if OP0's insert_regs returns + nonzero. - * 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. + * calls.c (expand_call): Add yet another assignment to MEM_IN_STRUCT_P. - * tree.c (dump_tree_statistics): Deleted decl of class_obstack. - (object_permanent_p): Added explicit return type. +Wed Oct 6 00:08:28 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) -Tue Dec 24 09:29:24 1991 Charles Hannum (mycroft at hal.gnu.ai.mit.edu) + * sparc.c (uns_small_int, uns_arith_operand): New functions. + * sparc.md (umulsidi3): Use uns_arith_operand not arith_operand. + (const_umulsidi3): Use uns_small_int not small_int. - * expr.h (lang_expand_expr): Fix typo. + * sparc.h (SELECT_CC_MODE): Add support for ASHIFT. + * sparc.md (ashlsi3+1, ashlsi3+2): New patterns to replace shift + and compare with addcc. -Tue Dec 24 06:52:45 1991 Michael Meissner (meissner at osf.org) +Tue Oct 5 16:25:32 1993 Jim Wilson (wilson@cygnus.com) - * 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. + * sched.c (sched_analyze_2): Make volatile asms depend on all + pseudo registers. - * decrose.h (HAVE_ATEXIT): Define. - * encrose.h (HAVE_ATEXIT): Define. - * i386rose.h (HAVE_ATEXIT): Define. - * decstatn.h (HAVE_ATEXIT): Define. + * mips.c (mips_expand_prologue): Handle structure return values as + the first argument if necessary. - * gcc.texinfo (HAVE_ATEXIT): Expand documentation. - (EXIT_BODY): Document. + * mips.h (CLASS_MAX_NREGS): For DFmode and !TARGET_FLOAT64 case, + return 2 not 4. + (CLASS_UNITS): Take size parameter instead of num (words). - * 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. + * c-typeck.c (output_init_element): When try to copy FIELD if it + is an interger constant, first check to make sure it is nonzero. -Tue Dec 24 00:14:38 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reorg.c (fill_simple_delay_slots): When take insn from a + following unconditional branch target, if new_label is zero, must + set it to the result of find_end_label (). - * 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. + * iris3.h (INITIALIZE_TRAMPOLINE, TRANSFER_FROM_TRAMPOLINE): + Delete. + * mips.h (INITIALIZE_TRAMPOLINE): Delete #ifndef/#endif. Change + function name from __enable_execute_stack to __gcc_flush_cache. + (TRANSFER_FROM_TRAMPOLINE): Likewise. Delete code calling + mprotect. Uncomment code calling cacheflush. - * Makefile.in (INSTALLED_H): New variable. - (includes): Preserve just those specific files. +Tue Oct 5 16:11:53 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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. + * toplev.c (error and its kin): Use #defines for the argument + lists for ease of adding arguments and add one arg. -Mon Dec 23 15:17:59 1991 Tom Wood (wood at dg-rtp.dg.com) +Tue Oct 5 16:05:11 1993 Tor Egge (tegge@pvv.unit.no) - * configure: Delete m88k-v88r32 (this is supported by m88k-svr3) - and add m88k. - * config.sub: Delete v88r as a system type. + * cccp.c (rescan): Don't expand an identifier after a '#'. -Mon Dec 23 19:50:48 1991 Fred Fish (fnf at fishpond) +Tue Oct 5 15:15:52 1993 Chip Salzenberg (chip@fin.uucp) - * 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. + Move format warning code to c-common.c for use with C++. + * c-tree.h (init_function_format_info, record_function_format, + check_function_format): Declare. + * c-common.c: Include ; avoid home-grown ISDIGIT. + (decl_attributes): Call record_function_format with DECL_NAME + and also DECL_ASSEMBLER_NAME. + (struct format_char_info): Moved here from c-typeck.c. + (print_char_table): Likewise; renamed from print_table. + (scan_char_table): Likewise; renamed from scan_table. + (struct function_format_info): Likewise; add assembler_name. + (function_format_list): Make list, not array. + (init_function_format_info): Likewise; renamed from + init_format_info_table. + (record_function_format): Likewise; renamed from + record_format_info; record assembler_name. + (check_format_info): Likewise; renamed from check_format. + (check_function_format): New interface that does not require + knowledge of struct function_format_info. + * c-decl.c (init_decl_processing): Call init_function_format_info. + * c-typeck.c (struct format_char_info, print_table, scan_table, + struct function_info, function_info_entries, function_info_table, + record_format_info, init_format_info_table, check_format): Moved + to c-common.c. + (build_function_call): Call check_function_format. - * m68ksgs.h: New file. +Tue Oct 5 14:08:18 1993 Wolfgang Stukenbrock (wgstuken@informatik.uni-erlangen.de) - * 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. + * gcc.c (choose_temp_base): Correct size allocated for temp_filename. -Mon Dec 23 17:03:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Oct 5 06:34:34 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * recog.h (insn_name): New declaration. - * final.c (output_asm_insn): Don't declare insn_name here. + * tree.c (contains_placeholder_p): Return 0 for CONSTRUCTOR. + (substitute_in_expr): Don't allow CONSTRUCTOR. - * dbxout.c (dbxout_function, dbxout_begin_function): - Pass missing arg to dbxout_really_begin_function. + * tree.c (make_node, case 'd'): Refine in which obstack + PARM_DECLs are allocated. - * 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. + * calls.c (expand_call): Properly test if we need to promote + operand; use convert_modes instead of convert_to_mode. + * expr.c (convert_modes): Properly handle extending constants + since we might be changing signedness. - * config.sub (fx2800): New machine alias. + * gcc.c (read_specs): Make a null entry at end of `compilers' + when reading new entry from file. - * va-m88k.h (va_start): Test __GNUC__, not __CLASSIFY_TYPE__. + * tree.c (contains_placeholder): Return 0 for WITH_RECORD_EXPR. - * m88kv4.h: New version from Wood. - (CPP_PREDEFINES): Put -A options here. Remove __CLASSIFY_TYPE__. + * bi-arity.c, bi-lexer.c, bi-opname.c, bi-parser.y: Include hconfig.h. + * Makefile.in (bi-arity.o, bi-lexer.o, bi-opname.o, bi-parser.o): + Likewise. - * cccp.c (initialize_builtins): Define __GNUC__ as 2. + * bc-emit.c (dconst[012], dconstm1): Remove redundant definition. - * rtl.h (read_rtx): New declaration. +Tue Oct 5 06:24:43 1993 Lisa Repka (lisa@MicroUnity.com) - * c-lex.c: Don't include output.h. - (asm_out_file): Declare it. - (ridpointers): Allocate storage here. + * varasm.c (decode_rtx_const, case CONST_DOUBLE): Only use mode + of X if it is not VOIDmode. - * 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. +Tue Oct 5 00:45:30 1993 James Van Artsdalen (james@bigtex.cactus.org) - * objc-actions.c (error_with_ivar, error_with_method): - (warn_with_method): Use count_error, not errorcount. + * i386/i386.c (output_to_reg): Handle XFmode write to MEM by + reading back value after write if source doesn't die. + * i386/i386.md (pushxf,movxf,extenddfxf2,extendsfxf2): Likewise. -Mon Dec 23 11:50:37 1991 Ron Guilmette (rfg at ncd.com) + * i386/i386.md (movxf,extenddfxf2,extendsfxf2): Don't emit fld + before calling output_to_reg: output_to_reg does that now. - * 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'. + * i386/i386.h (FIXED_REGISTERS): Don't fix hard reg st7 if XFmode + is enabled. - * 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. + * reg-stack.c (move_for_stack_reg): If the 387 regstack is not + full when doing an XFmode write from 387 to MEM, copy the source + reg and write the copy. - * fixinc.svr4: Map assertion tests to equivalent ANSI macro tests. +Mon Oct 4 18:40:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i860.c (output_block_move): Disabled code to move by words or - halfwords until it can be made to work right. + * regclass.c (record_reg_classes): There is no alt_cost + for a pair of matching args if they are the same pseudo reg. - * i860.c (output_block_move): Moved a sequence of common - `output_asm_insn' calls out of (and before) conditionals. + * varasm.c (bc_output_ascii): New function. + (assemble_string): Use it. + (assemble_static_space, assemble_variable): Put braces around uses + of BC_OUTPUT_COMMON and BC_OUTPUT_LOCAL. - * i860.c (output_block_move): Corrected bugs in move loop. +Mon Oct 4 18:03:04 1993 Stephen L Moshier (moshier@world.std.com) -Mon Dec 23 15:25:01 1991 Tom Wood (wood at dg-rtp.dg.com) + * expr.c (bc_init_mode_to_opcode_maps, bc_expand_expr): Cast enum + array indices to int. + (bc_load_memory, bc_store_memory): Likewise. + (bc_runtime_type_code): Cast enum logical operand to int. + * bc-emit.c (bc_emit_bytecode): Cast enum array indices to int. + * bc-optab.c (deduce_conversion, emit_typecode_conversion): Likewise. + (bc_init_mode_to_code_map, preferred_typecode): Likewise. + (bc_expand_binary_operation, bc_expand_unary_operation): Likewise. + (bc_expand_increment): Likewise. + * bc-typecd.h: Cast enum arithmetic and logical operands to int. - * m88kv4.h (CPP_PREDEFINES): Fix for varargs/stdarg. - (includes): Include svr4.h before m88k.h so the overrides in m88k.h - will take effect. +Mon Oct 4 05:52:21 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Dec 23 07:06:27 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * a29k.c (incoming_regs): Only use 16 registers for parameter + passing. - * i860.c (output_delayed_branch): Call insn_extract and - constrain_operands so that `which_alternative' is set properly. + * tree.c (build_string): Remove previous change and comment why + string text has to be in saveable_obstack. + * varasm.c (output_constant_def): Remove last change; no longer needed. - * stor-layout.c (layout_type, case ARRAY_TYPE): Handle - TYPE_NO_FORCE_BLK similar to RECORD_TYPE. +Sun Oct 3 18:51:19 1993 James Van Artsdalen (james@bigtex.cactus.org) - * encrose.h, i386rose.h, mips.h (LIBG_SPEC): Deleted; unused. + * i386/i386.c (output_op_from_reg): Handle 3-word XFmode values. + (output_to_reg): Likewise. + (output_move_double): Handle XFmode operands. + (output_move_const_single): Use REAL_VALUE_TO_TARGET_SINGLE. + (print_operand): Add letter `T', size `12'. Use REAL_VALUE + macros to convert floating point operands. + (convert_387_op): Add XFmode to case FLOAT_EXTEND. -Sun Dec 22 12:02:03 1991 James Van Artsdalen (james at bigtex.cactus.org) + * i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Define as 96. + (FIXED_REGISTERS): If XFmode enabled, hard reg st7 is fixed. + (ASM_OUTPUT_DOUBLE): Use REAL_VALUE_... macros. + (ASM_OUTPUT_FLOAT): Likewise. + (ASM_OUTPUT_LONG_DOUBLE): New macro. + (PRINT_REG): Add size case 12. + (DEBUG_PRINT_REG): Likewise. - * i386.c (function_epilogue): Use correct operand for insn mode. + * i386/i386.md: (tstxf_cc, tstxf, cmpxf, cmpxf_cc, cmpxf_ccfpeq, + swapxf, movxf, extenddfxf2, extendsfxf2, truncxfsf2, truncxfdf2, + fixuns_truncxfsi2, fix_truncxfdi2, fix_truncxfsi2, floatsixf2, + floatdixf2, addxf3, subxf3, mulxf3, divxf3, negxf2, absxf2, + sqrtxf2): New patterns. -Sun Dec 22 12:20:16 1991 Michael Tiemann (tiemann at cygnus.com) + * i386/next.h,i386/osfrose.h,i386/sysv4.h + (ASM_OUTPUT_DOUBLE,ASM_OUTPUT_FLOAT): Use REAL_VALUE_ macros. + (ASM_OUTPUT_LONG_DOUBLE): New macro. - * cp-decl.c (grokdeclarator): Don't set TREE_PUBLIC for member - functions that are really declared as inline methods. + * i386/bsd.h,i386/sco4.h (ASM_OUTPUT_DOUBLE): Deleted, + use default version. - * cp-init.c (build_virtual_init): Add missing call to - `assemble_external' when we use a virtual function table. + * i386/next.h,i386/sco.h (VALUE_REGNO): Add case XFmode. - * cp-decl.c (implicitly_declare): Don't allocate a decl if at the - global binding level. +Sun Oct 3 16:35:05 1993 Michael Meissner (meissner@wombat.gnu.ai.mit.edu) - * 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. + * collect2.c (read_file): Fix typo in prototype. -Sun Dec 22 12:31:46 1991 Ron Guilmette (rfg at ncd.com) +Sun Oct 3 18:32:46 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386v4.h (TARGET_VERSION): Added definition. - * i860v4.h (TARGET_VERSION): Added definition. + * Makefile.in (bytecode.realclean): Don't delete bi-lexer.c. - * m68kv4.h: New file. - * fx2800.h: New file. +Sun Oct 3 19:45:02 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * m88kv4.h (DWARF_DEBUGGING_INFO): Deleted redundant definition. - (It's defined already in svr4.h.) + * gcc.c (default_compilers): Add rules for Ada. + * toplev.c (lang_options): Add temporary parameter "gnat". - * m88kv4.h (CPP_PREDEFINES): Added definition. + * tree.c (staticp): DECL_EXTERNAL is not defined for CONSTRUCTOR. - * m88kv4.h (CPP_SPEC, LIB_SPEC, LINK_SPEC, STARTFILE_SPEC): - Deleted redundant definitions. (These are defined in svr4.h.) + * tree.def (PLACEHOLDER_EXPR, WITH_RECORD_EXPR): New tree codes. + * tree.c (save_expr): Don't evaluate something containing a + PLACEHOLDER_EXPR. + (contains_placeholder_p, substitute_in_{expr,type}): New functions. + * tree.h: Add declarations for new functions. + * calls.c (expand_call): Pass objects who size depends on the + contents of the object by invisible reference. + * function.c (assign_parms): Likewise. + * explow.c (expr_size): If the size contains a PLACEHOLDER_EXPR, + surround it with a WITH_RECORD_EXPR. + * expr.c (store_expr): Use expr_size value, not size_int. + (store_constructor): Handle case of variable position and allow + it to contain a PLACEHOLDER_EXPR. + (get_inner_reference): Make a WITH_RECORD_EXPR if required. + (expand_expr, case PLACEHOLDER_EXPR, WITH_RECORD_EXPR): New cases. + (expand_expr, case ARRAY_REF): Make WITH_RECORD_EXPR expressions + when needed. - * 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. + * calls.c (expand_call): Set MEM_IN_STRUCT_P in stack slot if + appropriate. - * configure (i386-*-sysv*): Fixed tmake_file value. - (i860-*-sysv3*): Fixed xmake_file and tmake_file value. - (i860-alliant-*): New configuration. + * varasm.c (output_constant_def): Copy string as well as string + node when deferring output of constants. - * 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. + * configure (i370-*): Renamed tm-mvs.h to mvs.h. + * config/i370/mvs.h: Renamed from tm-mvs.h. - * i860.c (zero_operand): Deleted useless function. +Sun Oct 3 12:50:57 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * i860.c (singlemove_string): Added code to optimize moving halfword - constants. + * arm.h (function definitions): Add new functions definitions. + (arm_condition_codes): make this externally visible. + (STARTFILE_SPEC): Move to riscix.h and riscix1-1.h. + (CPP_PREDEFINES): Move old defn to riscix.h and riscix1-1.h, add + generaic default definition. + (CPP_SPEC): Define for generic implementation, pass cpu variant + defn to pre-processor. + (TARGET_VERSION): Indicate this is generic variant. + (TARGET_6): New macro, set when compiling for arm6 in 32bit mode. + (ARM_EXTRA_TARGET_SWITCHES): New macro, hook for os dependent files + to make additions to TARGET_SWITCHES. Default to null. + (processor_type): new enum type defining processor variant for + attributes. + (arm_cpu_attr): Macro to get at cpu type from attributes. + (TARGET_WHEN_DEBUGGING): remove non-generic definitions + (OVERRIDE_OPTIONS): Set processor type for attributes. + (OPTIMIZE_OPTIONS): Set flag_force_mem. + (PROMOTE_MODE): Promote byte constants unsigned. + (ENABLE_XF_PATTERNS): Define, do not enable XFmode insns by default + -- it tends to crash riscix. + (REAL_ARITHMETIC): Define. + (CONSTANT_ALIGNMENT): Align string constants so that we can access + them faster. + (TARGET_FLOAT_FORMAT): Is IEEE_FLOAT_FORMAT. + (FIRST_PSEUDO_REGISTER): Increase to support fake registers. + (FIXED_REGISTERS): Describe behaviours of fake regs. + (CALL_USED_REGISTERS): Likewise. + (HARD_REGNO_NREGS): Deal with fake frame and argument registers. + (HARD_REGNO_MODE_OK): Likewise. + (FRAME_POINTER_REGNUM): Make this a fake register) + (HARD_FRAME_POINTER_REGNUM): Define. set to reg 11 (fp). + (FRAME_POINTER_REQUIRED): It is if TARGET_APCS. + (ARG_POINTER_REGNUM): Set to new fake register. + (CC_REGNUM): Define, set to fake register. + (REG_ALLOC_ORDER): Adjust to get better allocation in small functions. + Add fake registers. + (REG_CLASS_CONTENTS): Add new fakes. + (REGNO_REG_CLASS): Likewise. + (CONST_OK_FOR_LETTER_P): Add recognition for negated and inverted + constant integers. + (EXTRA_CONSTRAINT): Add 'Q' to recognize MEM (REG). Add 'S' for + symbols in the text segment. + (CONST_DOUBLE_OK_FOR_LETTER_P): Add 'H' for negated fp constants. + (SECONDARY_OUTPUT_RELOAD_CLASS): Define. Needed to store DFmode held + in SImode regs. + (REGISTER_MOVE_COST): Make this more expensive than memory for + float<->int moves. + (USE_RETURN_INSN): Define, call function. + (ELIMINABLE_REGS): Define to eliminate fake regs. + (CAN_ELIMINATE): Likewise. + (INITIAL_ELIMINATION_OFFSET): Likewise. + (INITIAL_FRAME_POINTER_OFFSET): Delete. + (REGNO_OK_FOR_BASE_P): Add fake regs. + (MAX_REGS_PER_ADDRESS): Is only 2; shifting by reg not allowed in addr. + (CONSTANT_ADDRESS_P): Accept addresses with the symbol_ref flag set. + (LEGITIMATE_CONSTANT): Accept negated floats; also constant addresses. + (ENCODE_SECTION_INFO): Mark strings that will go in the text segment + with the symbol_ref flag. + (REG_OK_FOR_BASE_P [!REG_OK_STRICT]): Add new fakes. + (REG_OK_FOR_PRE_POST_P [!REG_OK_STRICT]): Likewise. + (REG_OK_FOR_PRE_POST_P [REG_OK_STRICT]): Likewise. + (GO_IF_LEGITIMATE_INDEX): constant FLOAT indicees must be word + aligned; be more restrictive about multi-reg ints; allow all legal + shift operations; check boundary conditions more carefully. + (DEFAULT_SIGNED_CHAR): Remove os dependent alternatives. + (LOADS_ZERO_EXTEND): Define; only QImode loads do. + (HAVE_VPRINTF): Move to xm-arm.h + (SHIFT_COUNT_TRUNCATED): Not true -- Delete. + (CONST_COSTS): Define; give the cost of constants. + (RTX_COSTS): Define; give the cost of rtl. + (MEMORY_MOVE_COST): Is expensive. + (BRANCH_COST): Set high to get conditional instructions. + (ADDRESS_COST): Are all the same. + (NOTICE_UPDATE_CC): Delete. + (EXTRA_CC_MODES): Add a no overflow mode and floating point modes. + (EXTRA_CC_NAMES): Likewise. + (SELECT_CC_MODE): Return the appropriate mode. + (STORE_FLAG_VALUE): Define. + (PREDICATE_CODES): Define, show what they are. + (ARM_OS_NAME): Supply generic version. + (ASM_FILE_START): Print appropriate OS name. + (REGISTER_NAMES): Add fakes. + (DBX_OUTPUT_MAIN_SOURCE_FILENAME): set desc field to compiler version + number expected by dbx (RISCIX hack). + (ASM_OUTPUT_INTERNAL_LABEL): Don't reset arm_ccfsm_state if label isn't + a code ('L') label. + (ASM_OUTPUT_LONG_DOUBLE): Define for XFmode. + (ASM_OUTPUT_DOUBLE): Use REAL_ARITMETIC routines. + (ASM_OUTPUT_FLOAT): Likewise. + (ASM_OUTPUT_OPCODE): Change of arm_ccfsm_state is now handled by insns + that need to change it. + (PRINT_OPERAND): %d is replaced by appropriate condition characters, + %D by the inverse of those given. CONST_DOUBLEs use REAL_ARITHMETIC + functions. + (PRINT_OPERAND_ADDRESS): Support all the shift types. + (INIT_CUMULATIVE_ARGS): Add missing bracket. - * i860.c (output_block_move): Don't do CC_STATUS_INIT until it is - definitely necessary & appropriate. + * riscix.h: New file -- OS dependent defintitions for riscix 1.2 and + above. - * 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). + * riscix1-1.h: New file -- OS dependent definitions for riscix before + version 1.2 - * 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. + * rix-gas.h: New file -- riscix 1.2 and above, but with an assembler + which supports stabs. - * 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). + * arm.c (arm_compare_op0, arm_compare_op1, arm_compare_fp): New + variables. + (arm_cpu): New variable. + (lr_save_eliminated): New variable. + (arm_condition_codes): delete definition. + (return_used_this_function): New variable. + (use_return_insn): New function. + (const_ok_for_arm): Use HOST_WIDE_INT; rewrite to work if + HOST_WIDE_INT > 32 bits. + (fpa_consts_inited, strings_fpa): New variables. + (init_fpa_table): New function, initialize above. + (const_double_rtx_ok_for_fpu): Rewrite using fpa_consts_inited and + REAL_ARITHMETIC functions. + (neg_const_double_rtx_ok_for_fpu): New function. + (s_register_operand): New function, as register_operand, but don't + accept SUBREG (MEM). + (reload_memory_operand): New function. + (arm_rhs_operand): Use s_register_operand. + (arm_rhsm_operand): New function. + (arm_add_operand): New function. + (arm_not_operand): New function. + (fpu_rhs_operand): Use s_register_operand. + (fpu_add_operand): New function. + (di_operand): Use s_register_operand. + (di_operand, case MEM): address must be offsettable. + (index_operand): Use s_register_operand. + (const_shift_operand): New function. + (shift_operator): Also accept MULT by power of two. + (equality_operator): New function. + (minmax_operator): New function. + (cc_register): New function. + (minmax_code): New function. + (adjacent_mem_locations): New function. + (load_multiple_operation): New function. + (store_multiple_operation): New function. + (arm_gen_load_multiple): New function. + (arm_gen_store_multiple): New function. + (gen_compare_reg): New function. + (arm_backwards_branch): New function. + (short_branch): New function. + (arm_insn_not_targeted): New function. + (fp_immediate_constant): New function. + (eliminate_lr2ip): New function. + (output_call_mem): New function. + (output_mov_long_double_fpu_from_arm): New function. + (output_mov_long_double_arm_from_fpu): New function. + (output_mov_long_double_arm_from_arm): New function. + (output_move_double): output constants using output_move_immediate; + sign_extend CONST_INTs; handle PRE/POST INCs. + (shift_instr): Handle MULT. + (output_shift_compare): New function. + (pattern_really_clobbers_lr): New function. + (function_really_clobbers_lr): New function. + (output_return_instruction): New function. + (output_prologue): Determine whether tail calling is possible, + compensate for this when saving registers. Re-initialize + return_used_this_function; use HARD_FRAME_POINTER_REGNUM, when + saving floating point regs. + (output_epilogue): Epilogue isn't needed if return_used_this_function; + use HARD_FRAME_POINTER_REGNUM when restoring floating point regs + and there is a stack frame; Arm 6 requires different return + instruction. + (output_load_symbol): New function. + (final_prescan_insn): Add support for RETURN patterns; can also + conditionalize and target a RETURN; use attributes to determine + whether condition codes are set or clobbered; add new case CALL_INSN + to switch, fail if Arm 6; support a jump inside a parallel; call + recog () before returning to recover from using attributes on other + insns. + + * arm.md (type): New attribute for scheduling. + (cpu): New attribute for cpu type for use in conds attribute. + (conds): New attribute to describe actions on condition codes, set in + insns. + (length): New attribute, set in insns. + (write_conflict): New attribute describing conflicts with the write + buffer. + (fpa): New function unit for floating point co-processor. + (write_buf): New function unit for Arm 6 write buffer. + Most patterns: use s_register_operand instead of register_operand. + Most patterns: Don't use general operand and then expect reload to + do the work. + (adddi3): op0 can be the same as ops1 or 2; clobbers condition codes. + New unnamed patterns to add an SImode operand to a DImode op. + (addsi3): accept constants that can be catered for using sub. + New unnamed patterns that set conditions on add. + (incscc): new pattern, conditional increment. + New split to add some numbers in two insns. + (addsf3): Use REAL_ARITHMETIC; support -ve immediates. + (adddf3): Likewise. + (FLOAT_EXTEND and ADD): New unnamed patterns. + (addxf3): New pattern. + (subdi3): Allow input and output operands to overlap exactly. + (SUB DImode and SImode): New unnamed patterns. + (subsi3): Don't accept a constant as last operand, it will never be + matched. + (SUB and set CC) New unnamed patterns. + (decscc): new pattern, conditional decrment. + (subdf3): Fix bad case alternative. + (FLOAT_EXTEND and SUB): New unnamed patterns. + (subxf3): New pattern. + (mulsi3): Allow op2 to be the same as op0 + (MULT and set CC): New unnamed patterns. + (MULT and ADD): Ops 2 and 3 can match op 0. + (MULT, ADD and set CC): New unnamed patterns. + (mulsf3): use fmls for faster multiply. + (FLOAT_EXTEND and MULT): New unnamed patterns. + (mulxf3): New pattern. + (divsf3): use dvfs and rdfs for faster divide. + (FLOAT_EXTEND and DIV): New unnamed patterns. + (divxf3): New pattern. + (FLOAT_EXTEND and MOD): New unnamed patterns. + (modxf3): New pattern. + (anddi3): op 0 can be the same as ops1 or 2. + (*_EXTEND and AND): New unnamed patterns + (andsi3): Also accept constants that can be handled with bic + instruction. + (AND and set CC): New unnamed patterns. + (andcbsi3): Delete, this can't be generated any more. + (NOT then AND): New unnamed patterns. + (NOT then AND and set CC): Likewise. + (iordi3): Ops 1 and 2 can match op 0. + (*_EXTEND and IOR): New unnamed patterns. + (iorsi3): Only accept a valid rhs operand for op 2. + (IOR and set CC): New unnamed patterns. + (xordi3): New pattern. + (*_EXTEND and XOR): New unnamed patterns. + (xorsi3): Only accept a valid rhs operand for op 2. + (XOR and set CC): New unnamed patterns. + (split pattern): Complex pattern with NOT, AND, and IOR, can + sometimes produce better code if reordered. + (AND (IOR () NOT ())): Special pattern to recognize spilt above. + ([su]{min,max}si3): New patterns. + (set memory from MIN/MAX operation): New pattern. + (Arithmetic on MIN/MAX operation): New pattern. + (ashlsi3, ashrsi3, lshrsi3, rotrsi3): Only accept a valid rsh for op2. + (unnamed LSHIFT pattern): likewise. + (SHIFT and set CC): New unnamed patterns. + (SHIFT and NOT): New unnamed pattern. + (SHIFT, NOT and set CC): New unnamed patterns. + (negdi2): operand1 can be the same as op 0. + (FLOAT_EXTEND and NEG): New unsigned pattern. + (negxf2): New pattern. + (abssi2): New pattern. + (ABS and NEG): New unnamed pattern. + (FLOAT_EXTEND and ABS): New unnamed pattern. + (absxf2): New pattern. + (FLOAT_EXTEND and SQRT): New unnamed pattern. + (sqrtxf2): New pattern. + ({sin,cos}{sf,df,xf}2): New patterns. + (FLOAT_EXTEND and SIN/COS): New unnamed patterns. + (one_cmpldi2): New pattern. + (NOT and set CC): New unnamed patterns. + (floatsixf2, fix_truncsfsi2, fix_truncdfsi2, fix_truncxfsi2): New + patterns. + (truncxfsf2, truncxfdf2): New patterns. + (zero_extendsidi2, zero_extendqidi2, extendsidi2): New patterns. + (ZERO_EXTEND and set CC): New patterns. + (extend{sf,df}xf2): New patterns. + (movdi): Constrains must accept PRE/POST INC/DEC. + (movsi): make an expand that splits up integers and unsupported + moves. + (unnamed pattern to match movsi): New, don't allow things to + be moved back together again. + (REG-REG copy and set CC): New unnamed pattern. + (restorehi): use plus_constant in expansion code, not PLUS in RTL part. + (storehi, storeinthi): likewise. + (movhi): Break up impossible moves. + (pattern to match movhi): Don't allow impossible moves to be put + back together. + (movqi): Break up impossible moves. + (pattern to match movqi): Don't allow impossible moves to be put + back together; convert negative constants into mvn instruction. + (movsf): Use REAL_ARITHMETIC for constants; add alternatives for + moving GENERAL_REGS to and from memory. + (movdf): Make this an expand; split out impossible moves. + (reload_outdf): New pattern. + (pattern to match movdf): Don't allow impossible moves to be put back + together; add alternatives for moving GENERAL_REGS to and from memory; + rearrange and weight to get optimal register allocation. + (movxf): New pattern. + (load_multiple): New expand pattern. + (pattern to load multiple, pattern to load multiple with write-back): + New unnamed patterns. + (store_multiple): New expand pattern. + (pattern to store multiple, pattern to store multiple with write-back): + New unnamed patterns. + (movstrsi): Expand short moves as a series of load/store multiples with + write-back. + (cmp*): Make these expands; just set some state variables. + (CC = COMPARE op, op): New unnamed patterns. + (CC = COMPARE op, NEG op): New unnamed pattern. + (CC = COMPARE op, SHIFT op): New unnamed pattern. + (FLOAT_EXTEND then COMPARE): New unnamed patterns. + (CC = CC): New unnamed (dummy) pattern to allow cse to combine repeated + compares. + (b{eq,ne,le,lt,ge,gt,geu,gtu,leu,ltu}): Make these expand patterns, + use gen_compare_reg(). + (pattern to match branches, pattern to match inverted brances): New + unnamed patterns. + (s{eq,ne,le,lt,ge,gt,geu,gtu,leu,ltu}): New expands. + (pattern to match store_flag operations): New unnamed pattern. + (pattern to match NOT store_flag, pattern to match NEG store_flag): + New unnamed patterns. + (jump): handle arm_ccfsm_state explicitly. + (CALL (MEM)): New unnamed patterns. + (return): New pattern. + (conditional RETURN): New unnamed patterns; + (table_jump (MEM)): New unnamed pattern. + (indirect_jump (MEM)): New unnamed pattern. + Replace shift-arithmetic patterns with new versions that catche all + cases. + (Old peephole patterns (commented out)): remove. + (shift-arithmetic and set CC): New unnamed patterns. + (reload patterns for all shift-arithmetic patterns): New patterns. + Add many new patterns to merge store_flag patterns, arithmetic and + shifting. + New patterns to match conditional comparisons. + (movcond): New pattern. + (arith (MEM, MEM+4)): New unnamed pattern to spot load multiple + possibility. + (patterns to match extended pre-increment): New unnamed patterns. + (peepholes to match extended post-increment): New. + (peephole to match move and set conds): Needed because combine misses + this one. + (peepholes to match load/store multiples): New. + (CALL, RETURN): New peephole. + (CALL, JUMP): New peephole. + (save_stack_nonlocal, restore_stack_nonlocal): New expands for + non-local gotos. + special split to break up some conditional arithmetic sequences + before scheduling. + + *configure (arm-*-riscix1.[01]*, arm-*-riscix*): New configurations. + *config.sub: Recognize operating system "riscix*"; recognize acorn as + vendor. + +Sat Oct 2 17:24:44 1993 James Van Artsdalen (james@bigtex.cactus.org) + + * i386.md (addhi3): Use byte opcodes when the low byte of a word + is known to be zero. + +Sat Oct 2 14:11:06 1993 John F Carr (jfc@Athena.mit.edu) + + * combine.c (can_combine_p): Allow an insn with a REG_EQUIV note + that reads memory to be moved past an insn that writes memory. + +Sat Oct 2 14:04:03 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * regclass.c (record_reg_classes): Skip to next alternative + when we skip normal cost computation. + + * collect2.c: Add prototypes to static declarations. + (PROTO): New macro. + (dup2, putenv): Functions return integers; add type and returns. + + * varasm.c (make_decl_rtl): Set TREE_SIDE_EFFECTS on global if + -fvolatile-global. + + * tree.c (build_string): Make lifetime of string the same as + tree node. + +Sat Oct 2 04:55:44 1993 Doug Evans (dje@canuck.cygnus.com) + + * a29k/a29k.h, a29k/unix.h, alpha/alpha.h, arm/arm.h, clipper/clix.h, + convex/convex.h, elxsi/elxsi.h, fx80/fx80.h, gmicro/gmicro.h, + h8300/h8300.h, i370/tm-mvs.h, i386/386bsd.h, i386/aix386ng.h, + i386/gas.h, i386/go32.h, i386/linux.h, i386/lynx.h, i386/mach.h, + i386/next.h, i386/osfelf.h, i386/osfrose.h, i386/sco.h, i386/sco4.h, + i386/sco4dbx.h, i386/scodbx.h, i386/sequent.h, i386/sun.h, + i386/sysv3.h, i386/sysv4.h, i860/fx2800.h, i860/i860.h, i860/mach.h, + i860/sysv3.h, i860/sysv4.h, i960/i960.h, m68k/3b1.h, m68k/3b1g.h, + m68k/altos3068.h, m68k/apollo68.h, m68k/crds.h, m68k/ctix.h, + m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h, m68k/hp3bsd.h, + m68k/hp3bsd44.h, m68k/isi.h, m68k/lynx.h, m68k/m68kv4.h, + m68k/mot3300.h, m68k/news.h, m68k/next.h, m68k/pbb.h, m68k/plexus.h, + m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h, m68k/tower-as.h, + m68k/tower.h, m88k/dgux.h, m88k/luna.h, m88k/m88k.h, m88k/sysv3.h, + m88k/sysv4.h, mips/bsd-4.h, mips/bsd-5.h, mips/dec-osf1.h, + mips/iris3.h, mips/mips.h, mips/news4.h, mips/news5.h, + mips/nws3250v4.h, mips/osfrose.h, mips/svr3-4.h, mips/svr3-5.h, + mips/svr4-4.h, mips/svr4-5.h, mips/ultrix.h, ns32k/encore.h, + ns32k/merlin.h, ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, + ns32k/sequent.h, ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, + pa/pa-ghpux.h, pa/pa-gux7.h, pa/pa-hpux.h, pa/pa-hpux7.h, + pa/pa-utahmach.h, pa/pa.h, pa/pa1-utahmach.h, pyr/pyr.h, romp/romp.h, + rs6000/aix31.h, rs6000/mach.h, rs6000/rs6000.h, sh/sh.h, sparc/lite.h, + sparc/lynx.h, sparc/pbd.h, sparc/sol2.h, sparc/sparc.h, sparc/sysv4.h, + spur/spur.h, tahoe/harris.h, tahoe/tahoe.h, vax/ultrix.h, vax/vax.h, + vax/vaxv.h, vax/vms.h, we32k/we32k.h + (CPP_PREDEFINES): Add system/cpu/machine assertions where missing. + +Fri Oct 1 22:11:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * gvarargs.h: Test __sequent__ like __BSD_NET2__. + +Fri Oct 1 17:19:54 1993 Torbjorn Granlund (tege@adder.cygnus.com) + + * cse.c (insert_regs): Always return something. + (simplify_unary_operation): Remove unused variable. + (cse_process_notes): Likewise. + (invalidate_skipped_block): Likewise. + (cse_set_around_loop): Likewise. + + * pa-ghpux.h (LINK_SPEC): Pass "-a -archive" when + debugging. + * pa-hpux.h (LINK_SPEC): Likewise. + * pa-ghpux.h (LIB_SPEC): Make sure to add space between flags. + * pa-gux7.h (LIB_SPEC): Likewise. + * pa-hpux.h (LIB_SPEC): Likewise. + * pa-hpux7.h (LIB_SPEC): Likewise. + +Fri Oct 1 22:17:12 1993 Eric Youngdale (eric@kafka) + + * vmsconfig.com: Write out the definitions from Makefile.in for + the symbols BC_ALL and BI_OBJ into files BC_ALL.OPT and + BI_ALL.opt. Remove "bytecode " from compiler options files so + compiler will link correctly. + + * make-cc1.com (bc_generate): New VMS DCL function. Takes a BC + header file that needs to be generated, and builds it. + + * make-cc1.com: Compile entries listed in BI_ALL.OPT, and then call + bc_generate for every header file listed in BC_ALL.OPT + +Fri Oct 1 21:13:17 1993 H.J. Lu (hlu@nynexst.com) + + * config/i386/linux.h (LIB_SPEC): Handle -p anmd -pg outermost. + +Fri Oct 1 18:23:57 1993 Jim Wilson (wilson@cygnus.com) + + * reload1.c (gen_input_reload): Handle PLUS with MEM operand + exactly the same as a PLUS with a REG operand. + * reload.c (form_sum): Undo Sep 28 change. + + * Makefile.in (cc1, cc1plus, cc1obj): Delete superfluous + dependencies on bytecode. + (stamp-bcarity, stamp-bcopcode, stamp-bcopname): Create stamp files. + +Fri Oct 1 18:17:56 1993 Doug Evans (dje@canuck.cygnus.com) + + * configure (cpp_md_flags): New variable. + (links): Build link from md.pre-cpp if cpp_md_flags defined. + (CPP_MD, CPP_MD_FLAGS, MD_FILE): New macros for Makefile. + * Makefile.in (md): New dependency. + (MD_FILE): New macro. + (clean): Remove file md if md.pre-cpp exists. + (distclean): Remove md.pre-cpp. + +Fri Oct 1 15:44:48 1993 Michael Meissner (meissner@osf.org) + + * halfpic.h (toplevel): Enclose the whole file inside a #ifndef + NO_HALF_PIC conditional. + + * i386/x-osfrose (CCLIBFLAGS, GCC_CFLAGS): Define NO_HALF_PIC so + that the two common variables in halfpic.h don't get created. + + * mips/x-osfrose (CCLIBFLAGS, GCC_CFLAGS): Ditto. + +Fri Oct 1 10:46:15 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * a29k.h (R_KR): New macro. + (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS): + Adjust for more registers present. + (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGISTER_NAMES): Likewise. + (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, REGNO_REG_CLASS): Likewise. + (CONDITIONAL_REGISTER_USAGE): Swap names rather than replacing them. + * a29k.c (gpc_reg_operand): Include kernel registers. + + * a29k.h (TARGET_LARGE_MEMORY): New flag; change value for + all others. + (ENCODE_SECTION_INFO): New macro. + (TARGET_SWITCHES): Add "normal" and change values. + + * a29k.c (call_operand, case SYMBOL_REF): Handle TARGET_LARGE_MEMORY + and SYMBOL_REF_FLAG. + +Thu Sep 30 23:25:13 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * reorg.c (optimize_skip): Do not thread a jump to a new target if + doing so would invalidate the insn in the jump's delay slot. + +Thu Sep 30 14:21:03 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * bi-lexer.c (scan_string): Do xmalloc if buffer is null and + xrealloc if it's not, not the other way around. + +Thu Sep 30 10:57:30 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) + + * bc-emit.c (bc_end_function, seg_data): Use bcopy instead of memcpy. + +Thu Sep 30 05:53:58 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * fold-const.c (fold, case PLUS_EXPR, MINUS_EXPR): Properly handle + case when ARG1 splits and VARSIGN is -1. + +Wed Sep 29 19:41:18 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (build_modify_expr): Check whether recursive calls + return error_mark_node. + +Wed Sep 29 18:35:30 1993 Leonid Baraz (lbaraz@iil.intel.com) + + * rtl.h (GEN_INT): Add missing cast to HOST_WIDE_INT. + * jump.c (rtx_renumbered_equal_p, case CONST_INT): Use INTVAL, + not XINT. + +Wed Sep 29 17:32:03 1993 Doug Evans (dje@canuck.cygnus.com) + + * glimits.h (UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): + redefine in a simpler way. + +Wed Sep 29 17:25:17 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) + + * fixincludes (sys/spinlock.h): change references of + "../machine/*.h" to + +Wed Sep 29 07:09:50 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + + * rs6000.c (reg_or_short_operand): Remove redundant test. + + * sched.c: Add prototypes for static function. + (add_dependence, remove_dependence, regno_use_in): Now static. + (schedule_insns): Have dummy version also take FILE * parameter. + +Wed Sep 29 01:29:31 1993 Paul Eggert (eggert@twinsun.com) + + * cccp.c (quote_string): New function. + (special_symbol, write_output, output_line_command): Use it to escape + special characters in file names when outputting #line directives. + (do_line): Parse escape sequences in #line directives' file names. + * c-lex.c, cp-lex.c (check_newline, yylex, real_yylex): Likewise. + (ignore_escape_flag): Remove var. + +Tue Sep 28 21:27:26 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu + + * function.c (push_temp_slots, pop_temp_slots): Always change level. + * cp-expr.c (cplus_expand_expr): Push and pop temp slots around + making new temp slots and freeing them. + * expr.c (expand_assignment, expand_expr, do_jumps): Likewise. + * integrate.c (expand_inline_function): Likewise. + +Tue Sep 28 18:50:57 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * reload.c (find_reloads): Don't call find_reloads_toplev + (or anything like that) for match_operator operands. + + * config/ns32k/ns32k.c (output_move_double): Special code for + pushing from an address that uses the sp. Use PUSHOP for pushes, + not POPOP. + + * config/ns32k/ns32k.h (FUNCTION_EPILOGUE, FUNCTION_PROLOGUE): + Add %$ in adjspb/adjspd insns. + * config/ns32k/ns32k.md (recognizer for subtracting const from reg 17): + Add %$ in adjspb/adjspd insns. + + * bytetypes.h (QItype, HItype, SItype, DItype): Use __signed__. + + * Makefile.in (stamp-bcopname, stamp-bcopcode): + Use shorter names for temporary files. + (bc-emit.o): Depend on bc-arity.h. + + * bi-opname.c, bi-arity.c, bi-opcode.c (xmalloc): New function. + * bi-opname.c, bi-arity.c: Include stdio.h. + + * function.c (expand_main_function): Put back accidentally + deleted previous change to use NAME__MAIN. + + * glimits.h (INT_MAX, LONG_MAX, LONG_LONG_MAX): Delete parens. + (__glimits__evconcat__, __glimits__concat__): New macros. + (UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): Use them. + + * cccp.c (output_dots): New function. + (do_include): Call it (to indent output for print_include_names). + +Tue Sep 28 18:22:31 1993 Jim Wilson (wilson@cygnus.com) + + * reload1.c (eliminate_regs): All recursive calls now pass INSN + instead of NULL_RTX. Second assignment to ref_outside_mem changed + to be same as first assignment. + + * combine.c (force_to_mode, LSHIFTRT case): Avoid shifts larger + than HOST_BITS_PER_WIDE_INT. + + * sched.c (schedule_insns): Don't zero reg_n_calls_crossed for + pseudos live across multiple blocks. + + * fixincludes ({sparc,sun3,sun3x,sun4,sun4c,sun4m}/asm_linkage.h, + {sun4c,sun4m}/debug/asm_linkage.h: Replace /**/ with ##. + + * reorg.c (mark_target_live_regs): When scanning insns, ignore + CLOBBERs in addition to USEs. + + * life.h: Comment that this is for sparclite w/o FPU. + * sparc.h (CPP_SPEC): Handle -mf930 and -mf934. + (TARGET_SWITCHES): Add -mf930 and -mf934 options. -msparclite no + longer does -mno-fpu. + + * fixinc.svr4, fixincludes (math.h): Put #ifndef around HUGE_VAL + define. + * math-68881.h, math-3300.h (HUGE_VAL): Add #undef before HUGE_VAL + define, instead of surrounding it with #ifndef/#endif. + + * sparc/bsd.h: New file. + * configure (sparc-*-bsd*): New configuration. + + * reload.c (form_sum): Change the way that form_sum canonicalizes + addresses, so that it never creates (PLUS (PLUS MEM CONST_INT) REG) + but instead canonicallizes this to (PLUS (PLUS REG CONST_INT) MEM). + +Tue Sep 28 16:00:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * bc-emit.c: Include gvarargs.h, not varargs.h. + Don't include string.h. + (seg_align): Use bzero, not memset. + +Mon Sep 27 20:53:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * c-typeck.c (pop_init_level): Add special case for nonincremental + scalar initializers. + + * protoize.c: Declare rindex unconditionally. + + * c-decl.c (init_decl_processing): Use signed_type and unsigned_type + to set signed_wchar_type_node and unsigned_wchar_type_node. + +Mon Sep 27 20:31:01 1993 Paul Eggert (eggert@twinsun.com) + + * dbxout.c (dbxout_init, dbxout_source_file): Quote special + characters when outputting source file names. + * config/a29k/a29k.h, config/a29k/unix.h, config/alpha/alpha.h, + config/i386/aix386ng.h, config/i386/bsd.h, config/i386/gas.h, + config/i386/sun386.h (ASM_FILE_START): Likewise. + * config/elxsi/elxsi.h, config/m68k/3b1.h, config/m68k/crds.h, + config/m68k/mot3300.h, config/m68k/tower-as.h, config/m88k/m88k.h, + dwarfout.c (ASM_OUTPUT_SOURCE_FILENAME): Likewise. + * xcoffout.h, config/i386/i386iscgas.h, config/i860/fx2800.h + (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_MAIN_SOURCE_FILENAME): + Likewise. + * xcoffout.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise. + * config/mips/mips.c (mips_output_filename): Likewise. + * toplev.c (output_file_directive): Likewise. + (output_quoted_string): New function. - * 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). +Mon Sep 27 19:31:57 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * bi-lexer.c (xrealloc): Handle 0 passed as BLOCK. -Sun Dec 22 01:25:07 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (stamp-bcopname, stamp-bcopcode, stamp-bcarity): + Renamed from stamp-bc-... to fit in 14 chars. + Don't rm the .h files. + (STAGESTUFF): Add some bc and bi files. - * i386v4.h: Include svr4.h just once. + * c-lex.c (yylex): Handle i together with f or l in float constant. - * protoize.c (fprintf, printf): Decls put in #if 0. +Mon Sep 27 19:00:18 1993 Ian Lance Taylor (ian@cygnus.com) - * emit-rtl.c (stack_slot_list): Delete superfluous extern decl. - (emit): Abort if arg isn't recognized. + * cccp.c (special_symbol, initialize_builtins): If + NO_BUILTIN_SIZE_TYPE is defined, never refer to SIZE_TYPE. + Likewise for NO_BUILTIN_PTRDIFF_TYPE and PTRDIFF_TYPE. - * 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. +Mon Sep 27 18:59:09 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-lex.c: Include output.h. - (check_newline): Decl of asm_out_file deleted. + * reload1.c (eliminate_regs, SET case): Check for INSN_LIST + along with EXPR_LIST. - * c-lex.h (ridpointers, NORID): Declare/define here. - * c-lex.c, c-parse.y, objc-parse.y: Not here. +Mon Sep 27 14:29:17 1993 Kresten Krab Thorup (krab@iesd.auc.dk) - * sun3.h (WORD_SWITCH_TAKES_ARG): Add `-assert'. - (LINK_SPEC): Pass -assert to linker. + * objc/typedstream.h (objc_read_object): Add declaration. - * gbl-ctors.h (__CTOR_END__, __DTOR_END__): Remove `extern'. +Mon Sep 27 17:00:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sparc.h (RTX_COSTS): Increase multiply cost to 20. - (MULSI3_LIBCALL): Use .umul. - (UMULSI3_LIBCALL): Deleted. + * configure: Handle option --with-elf. + (i[34]86-*-linux*): Use linuxelf.h if --with-elf. + (i[34]86-*-osfelf): Config deleted. + (i[34]86-*-osfrose): Handle --with-elf. + * config/i386/linuxelf.h: New file. -Sat Dec 21 18:34:27 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Sep 27 14:19:33 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * combine.c (simplify_comparison): Allow OP0 to be VOIDmode if it - is a COMPARE or a comparison operation. + * expr.c (bc_expand_constructor): Delete cast of argument to + bc_emit_instruction to HOST_WIDE_INT. Move assignment of ptroffs + to separate line. - * i860.md (bte): Remove now unneeded patterns. - Correct mode mismatch errors in patterns that will now be used. +Mon Sep 27 10:32:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Sat Dec 21 00:14:25 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (stmt.o, expr.o, emit-rtl.o): Add missing dependency + on bc-typecd.def. + (bi-run.o): Fix formatting. - * ns32k.h (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Dummies deleted. - (INITIALIZE_TRAMPOLINE): Likewise. #error inserted. +Mon Sep 27 10:26:43 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * ns32k.c (print_operand_address): For invalid address, just abort. + * Makefile.in (bi-arity.h, bc-opcode.h, bc-opname.h): Use + move-if-changed. + (stamp-bc-arity, stamp-bc-opcode, stamp-bc-opname): New targets. - * Makefile.in (FIXINCLUDES): New variable. - (includes, maketest): Use that. - * x-i386v4 (FIXINCLUDES): Override here. +Sun Sep 26 23:11:34 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Fri Dec 20 18:28:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * pa.h (ASM_FILE_START): Remove last change for $LIT$ subspace, + not all HPUX linkers handle it correctly. - * 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. +Sun Sep 26 20:51:36 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dbxout.c (dbxout_function): Implement DBX_OUTPUT_FUNCTION_END. + * stmt.c (expand_exit_loop_if_false, bc_expand_start_cond): + Use xjumpifnot, not jumpifnot. - * sparc.md (movstrsi): Add missing double quote. + * Makefile.in (bi-arity, bi-opcode, bi-opname): Delete $(LEXLIB). - * gcc.c (process_command): Handle -Xlinker. + * varasm.c (assemble_string): Put braces around ASM_OUTPUT_ASCII. - * calls.c (expand_call): Treat vfork like setjmp. +Sat Sep 25 08:30:16 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * c-decl.c (implicitly_declare): Use push_obstacks_nochange. + * expr.c (expand_expr, case COND_EXPR): Set MEM_IN_STRUCT_P + properly for TEMP. - * sparc.h (WORD_SWITCH_TAKES_ARG): Add -assert. - (LINK_SPEC): Pass -assert to linker. + * combine.c (BYTE_LOADS_EXTEND, LOAD_EXTEND): Deleted. + (subst, force_to_mode, nonzero_bits, num_sign_bit_copies): + Use new macros LOAD_EXTEND_OP and WORD_REGISTER_OPERATION instead + of BYTE_LOADS_*_EXTEND and LOAD_EXTEND. + * expr.c (do_store_flag): Likewise. + * reload.c (push_reload, find_reloads): Likewise. + * reload1.c (eliminate_regs): Likewise. + * a29k.h, alpha.h, clipper.h, arm.h, i960.h, m88k.h, mips.h: + Use WORD_REGISTER_OPERATION and LOAD_EXTEND_OP and delete + BYTE_LOADS_{SIGN,ZERO}_EXTEND. + * pa.h, romp.h, rs6000.h, sh.h, sparc.h: Likewise. - * svr4.h (ASM_OUTPUT_LOCAL): Fix typo. +Sat Sep 25 06:19:20 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) -Fri Dec 20 07:52:19 1991 Michael Tiemann (tiemann at cygnus.com) + * bi-lexer.l: Deleted. - * cp-decl2.c (lang_decode_option): Recognize more -fno-OPTION - options which need special treatment (in the turning off of the - option). + * bi-lexer.c: New file. - * 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'. + * Makefile.in (bi-lexer): Deleted. + (bi-lexer.l): Deleted. - * 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. +Fri Sep 24 16:59:03 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-init.c (build_{new,delete}): Call `build_builtin_call' for BIN, - BID. - (build_builtin_call): New function. + Cygnus<->FSF C++ front-end merge. - * 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. + Tue Sep 21 19:17:29 1993 Mike Stump (mrs@cygnus.com) - * cp-method.c (hack_identifier): Call `assemble_external' if - necessary. + * cp-decl.c (build_ptrmemfunc_type): Set CLASSTYPE_GOT_SEMICOLON + just in case. + * cp-decl.c (start_function): Exclude pointer to member functions in + IS_AGGR_TYPE test. + * cp-method.c (dump_type_prefix, dump_type_suffix, dump_type): + Handle pointer to member functions. -Fri Dec 20 06:27:38 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Tue Sep 21 10:47:10 1993 Mike Stump (mrs@cygnus.com) - * 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-tree.c (finish_struct): Since we know which base class we want + the binfo for, get it directly, instead of searching for it. Cures + a compiler_error in binfo_value. -Thu Dec 19 22:01:51 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Thu Sep 16 20:33:25 1993 Mike Stump (mrs@cygnus.com) - * gnulib1.c (perform_fixdfsi): New customization macro. + * cp-cvt.c (convert_pointer_to): Make error more specific and more + readable. - * svr4.h (SELECT_RTX_SECTION): Undef before defining. + Thu Sep 16 20:14:18 1993 Mike Stump (mrs@cygnus.com) -Thu Dec 19 16:59:12 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-lex.c (consume_string): Add second argument so that we can use + this routine for character constants too. Also, handle eof inside + the string or character constant better. Make static, as it isn't + used anyplace else. - * cccp.c (hack_vms_include_specification): Make conversion of - filenames more versatile for user specified include directories. + * cp-lex.c (reinit_parse_for_block): Add second argument to + consume_string. Add support for character constants. -Thu Dec 19 17:38:18 1991 Michael Meissner (meissner at osf.org) + * cp-tree.h (consume_string): Remove declaration, not used any place + else. - * 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. + Wed Sep 15 12:44:13 1993 Per Bothner (bothner@kalessin.cygnus.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-gc.c (build_t_desc): Make sure finish_table is called + for the methods and ivars tables. - * 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 13 14:40:23 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * gcc.c (default_compilers array): Pass -lang-asm to cpp when - processing .S files instead of -lang-c. + * cp-pt.c (unify): Use the referent type if necessary. -Thu Dec 19 15:06:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Fri Sep 10 16:34:37 1993 Mike Stump (mrs@cygnus.com) - * c-decl.c (c_decode_option): Handle -fno-ident. - * c-lex.c (check_newline): Ignore #ident for -fno-ident. + * cp-typeck.c (build_binary_op_nodefault): Add missing fourth + argument to build_binary_op calls, and eliminate bogus delta2 + check. - * svr4.h (ASM_OUTPUT_LOCAL): Use assemble_name. + Fri Sep 10 14:52:59 1993 Mike Stump (mrs@cygnus.com) - * mips.h: Use #error, not #include, for error messages. + * cp-typeck.c (build_binary_op_nodefault): Make sure delta2's match + when comparing pointers to _virtual_ member functions. - * cccp.c (warning, main): Implement -Werror. + Fri Sep 10 14:27:45 1993 Mike Stump (mrs@cygnus.com) - * i386sco.h (CPP_SPEC): Move non-fixed option here. - (CPP_PREDEFINES): From here. + * cp-typeck.c (convert_for_assignment): Revert a cast. + * cp-typeck.c (build_binary_op_nodefault): Add missing fourth + argument to build_binary_op calls. - * gcc.c (do_spec_1): For %p, just pass -D options. - For %P, pass all -A options. Put in whitespace, fix typos. + Thu Sep 9 21:22:40 1993 Mike Stump (mrs@cygnus.com) - * c-parse.y (parmlist_2, defn_parmlist_2): Warn about (...). - * c-decl.c (get_parm_info): Don't warn here. + Complete re-vamp of pointer to member functions. Implements + complete semantics. Cures problems on CONVEX, i960 and alpha. -Thu Dec 19 06:15:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-tree.h (get_member_function_from_ptrfunc, build_ptrmemfunc): + New routines. + * cp-decl.c (build_ptrmemfunc_type): New routine, builds canonical + pointer to member function types. + * cp-decl.c (grokdeclarator): Use new type for POINTER_TYPE to + METHOD_TYPEs. + * cp-method.c (build_overload_name): Make the old mangling to show + through when mangling the new pointer to member function type. - * toplev.c (compile_file): Avoid ordered comparison of debug_info_level - since it is an enum. + * cp-tree.h (TYPE_PTRMEMFUNC_P, TYPE_PTRMEMFUNC_FN_TYPE, + TYPE_GET_PTRMEMFUNC_TYPE, TYPE_SET_PTRMEMFUNC_TYPE): New macros + for pointer to member function code. + * cp-init.c (resolve_offset_ref): Handle pointer to member functions + specially. + * cp-type2.c (store_init_value): Make new pointer to member + functions initializable. + * cp-typeck.c (convert_for_assignment): Make new pointer to member + functions assignable. + * cp-type2.c (build_m_component_ref): Make new pointer to member + functions work. + * cp-typeck.c (build_x_function_call, build_function_call_real, + build_binary_op): Ditto. + * cp-class.c (add_virtual_function): Don't set the high bit on + DECL_VINDEXs. - * mips.c: Include gstab.h. + * cp-typeck.c (get_member_function_from_ptrfunc): New routine to + resolve a pointer to member function. + * cp-typeck.c (build_ptrmemfunc): New routine to build CONSTRUCTORs + for new pointer to member functions. Used by to generate + initialization and assignment expressions. + * cp-typeck.c (build_binary_op_nodefault): Implement == and != for + new pointer to member functions. + * cp-typeck.c (unary_complex_lvalue): Handle & in more reasonable + ways to make new pointer to member functions work. - * sparc.md: Fix typo. + * cp-parse.y (expr_no_commas): Don't dereference the second + argument, this is now done in build_m_component_ref as needed. + * cp-typeck.c (build_x_binary_op): Ditto. - * caller-save.c (save_call_clobbered_regs): Don't save regs that - die in a CALL_INSN or that are born there. + Other misc work. -Thu Dec 19 04:28:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-call.c (build_field_call, build_scoped_method_call, + build_method_call): Second arg to build_indirect_ref should be + NULL_PTR, not NULL or 0. + * cp-class.c (build_vbase_path, build_vfn_ref, popclass): Ditto. + * cp-cvt.c (convert_from_reference): Ditto. + * cp-decl2.c (setup_vtbl_ptr, finish_file): Ditto. + * cp-init.c (emit_base_init, build_virtual_init, + expand_aggr_vbase_init_1, expand_recursive_init_1, + get_member_function, resolve_offset_ref, build_new, build_delete, + build_vec_delete): Ditto. + * cp-search.c (dfs_init_vbase_pointers, init_vbase_pointers, + build_vbase_vtables_init): Ditto. + * cp-type2.c (build_x_arrow, build_functional_cast): Ditto. + * cp-typeck.c (build_modify_expr): Ditto. - * c-aux-info.c (gen_aux_info_record): Don't write space at line beg. + Instead of calling get_identifier with the same value all the time, + call it once, and re-use the cached value. -Wed Dec 18 11:46:13 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-decl.c (pfn_identifier, index_identifier, delta_identifier, + delta2_identifier): New cached calls to get_identifier. + * cp-tree.h (this_identifier, pfn_identifier, index_identifier, + delta_identifier, delta2_identifier): Allow them to be accessed + everywhere. + * cp-decl.c (init_decl_processing): Initialize pfn_identifier, + index_identifier, delta_identifier and delta2_identifier and + use a cached get_identifier call. + * cp-class.c (delta_name, pfn_name): Removed, use delta_identifier + and pfn_identifier instead. + * cp-class.c (popclass): Use a cached get_identifier call for `this'. - * cse.c (cse_main): Use get_max_uid rather than computing it. + Tue Sep 7 16:01:14 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Dec 18 18:13:06 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-search.c (immediately_derived): New function. + (get_binfo): Use it. + (compute_visibility): Rewrite how private inheritance is handled, so + it actually works. Use the new immediately_derived fn. - * loop.c (scan_loop): Ensure replacement made by single-use code - is not modified in the life of the register being replaced. + Mon Sep 6 14:44:46 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Wed Dec 18 15:37:52 1991 Ron Guilmette (rfg at ncd.com) + * cp-decl.c (grokfndecl): Add empty statement after foundaggr label. - * rtl.h (fconst2_rtx, dconst2_rtx): Added extern declarations. + Sat Sep 4 16:12:27 1993 Jason Merrill (jason@deneb.cygnus.com) - * flags.h (flag_inhibit_size_directive): Declared. + * cp-decl.c (grokfndecl): Require class or enum argument to + operators. - * 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-init.c (build_member_call): Make destructor without object + error more useful, don't complain of missing destructor. - * Makefile.in: Correct number of expected shift/reduce conflicts - reported by bison for cp-parse.y. + Thu Sep 2 15:51:54 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * sparcv4.h: New file. + * cp-decl.c (globalize_nested_type): Make sure the type in question + has a lang_specific area before trying to clear DECL_CLASS_CONTEXT. - * i860.h (FUNCTION_ARG_BOUNDARY): Added definition. - (sfmode_constant_to_ulong): Added extern declaration. + Wed Sep 1 13:40:30 1993 Chip Salzenberg (chip@fin) - * i860.md (BTE/BTNE patterns): Changed all instances of - `(match_operand:SI 2 "zero_operand" "J")' to `(const_int 0)'. + * cp-decl.c (start_function): Call duplicate_decls when user + redefines a builtin function. - * 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. + Thu Sep 2 15:38:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * i860.md: 20 new patterns (involving BTE/BTNE) like existing 20 - but simplified so that the combiner will find them. + * cp-pt.c (instantiate_class_template): Only kick back the local + value if we're setting things up for the parser. - * i860.md (sfmode_constant_to_ulong, fconst2_rtx): Removed - superfluous nested extern declarations. + Wed Sep 1 12:54:38 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Dec 18 15:39:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-init.c (emit_base_init): Don't complain if the base has no + constructor; we should try to use the default constructor instead. - * va-i860.h (va_start for stdarg.h): Divide reg counts by 4. + Wed Sep 1 11:57:00 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * stmt.c (emit_case_nodes): Fix typo, near testing cost_table. + * cp-call.c (find_scoped_type): Undo the sorry for now, it's hitting + a lot of code that it shouldn't be. - * i860.h (CUMULATIVE_ARGS): Define a named struct, then use it. + Mon Aug 30 13:08:48 1993 Mike Stump (mrs@cygnus.com) - * function.c (expand_function_start): Compute sizes in proper order. + * cp-typeck.c (build_x_unary_op): unary & on an expression of + RECORD_TYPE that has an incomplete type gives the simple address of + the object, and should not give an error about method not found. - * svr4.h (MD_STARTFILE_PREFIX): Defined. - (STANDARD_STARTFILE_PREFIX): Deleted. + Mon Aug 30 11:06:26 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * sparc.md (movstrsi): Disable if needs more than 32 insns. + * cp-pt.c (instantiate_class_template): Don't try to instantiate a + template that's already being worked on. - * expr.c (store_expr): Handle copying too-short STRING_CST. + * cp-init.c (perform_member_init): Make an uninitialized reference + be a pedwarn, not a warning. - * gstdarg.h (_VA_LIST): Handle this like _VA_LIST_. + * cp-class.c (finish_struct): Make declaration of a negative width + for a bit-field be an error, not a warning. - * 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. + Sat Aug 28 09:40:47 1993 Michael Tiemann (tiemann@blues.cygnus.com) -Wed Dec 18 14:59:26 1991 Michael Meissner (meissner at osf.org) + * cp-call.c (find_scoped_type): Add a `sorry' call if we hit an + uninstantiated type. - * limits.h (whole file): Protect against inclusion. + Thu Aug 26 13:53:23 1993 Jason Merrill (jason@deneb.cygnus.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-call.c (build_scoped_method_call): Don't produce an error + if the type has no destructor. - * 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. + * cp-decl.c (record_builtin_type): Don't set TYPE_HAS_DESTRUCTOR + after all. -Wed Dec 18 04:53:23 1991 Ken Raeburn (Raeburn@Cygnus.COM) + Wed Aug 25 19:10:24 1993 Jason Merrill (jason@deneb.cygnus.com) - * 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. + * cp-call.c (build_method_call): Check for class type value as + well - * cp-init.c (init_vfields): Now static. + * cp-tree.h (IDENTIFIER_CLASS_TYPE_VALUE): Create macro + (IDENTIFIER_HAS_CLASS_TYPE_VALUE): Ditto - * cp-tree.h (struct lang_decl_flags): Merged "dummy" fields. + * cp-init.c (is_aggr_typedef): Check for class type value as well + (for template destructors) + (build_delete): Don't assert aggregate type, don't check + TREE_GETS_DELETE if built-in type. - * 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. +Fri Sep 24 15:57:14 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * cp-pt.c (tsubst, case REFERENCE_TYPE): Call build_reference_type - instead of constructing the type here. + * rtl.h: (HARD_FRAME_POINTER_REGNUM): New macro. + (hard_frame_pointer_rtx): New variable + * combine.c: (combinable_i3_pat): Don't add REG_DEAD notes for + HARD_FRAME_POINTER_REGNUM. + (subst, case SUBREG): Don't change register number or mode if it + is HARD_FRAME_POINTER_REGNUM. + * cse.c: (FIXED_REGNO_P): HARD_FRAME_POINTER_REGNUM is fixed. + (CHEAP_REG): HARD_FRAME_POINTER_REGNUM is cheap. + (FIXED_BASE_PLUS): Allow hard frame pointer as base. + (NONZERO_BASE_PLUS_P): Likewise. + (cannon_hash, case REG): Add HARD_FRAME_POINTER_REGNUM to list of + special registers for SMALL_REGISTER_CLASSES. + (find_best_addr): Addresses containing HARD_FRAME_POINTER_REGNUM + cannot be replaced. + (cse_main): value in HARD_FRAME_POINTER_REGNUM is preserved across + calls. + * dbxout.c: (dbxout_symbol): FRAME_POINTER_REGNUM has been eliminated + by now, use HARD_FRAME_POINTER_REGNUM. + * emit-rtl.c: (hard_frame_pointer_rtx): New variable. + (gen_rtx): return hard_frame_pointer_rtx if generating rtl + for HARD_FRAME_POINTER_REGNUM. + (enit_emit_once): Generate initial rtl for hard_frame_pointer_rtx. + * explow.c: (copy_all_regs): Don't copy HARD_FRAME_POINTER_REGNUM. + * flow.c: (life_analysis): Mark HARD_FRAME_POINTER_REGNUM as live at + the end of the function. + (insn_dead_p): Don't delete insns that set the hard frame pointer. + (mark_set_1): Don't add death information about + HARD_FRAME_POINTER_REGNUM. + (mark_used_regs, case REG): Don't put HARD_FRAME_POINTER_REGNUM in + regs_ever_live. Don't mark it as needed either. + * function.c: (instantiate_virtual_regs_1, case MEM): references to + MEM via the hard frame pointer shouldn't be copied. + * genattrtab.c: (hard_frame_pointer_rtx): New Dummy definition. + * global.c: (global_alloc): Make sure that it is always possible to + eliminate FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. + * jump.c: (thread_jumps): Value in HARD_FRAME_POINTER_REGNUM is never + modified by a call. + * local-alloc.c: (find_free_reg): Make sure we will always be able + to eliminate FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. + * loop.c: (invariant_p, case REG): hard_frame_pointer_rtx is + invariant. + * reload.c: (immune_p): Constants never overlap hard frame pointer + references. + (find_reloads_address): Compute invalid references to the hard + frame pointer in a register; also (reg + const) + and (reg + reg + const). -Wed Dec 18 03:37:46 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload1.c: (init_reload): use HARD_FRAME_POINTER_REGNUM instead of + FRAME_POINTER_REGNUM. + (reload): Only prohibit elimination of HARD_FRAME_POINTER_REGNUM, not + FRAME_POINTER_REGNUM if frame_pointer_needed. Never prohibit + elimination of FRAME_POINTER_REGNUM into HARD_FRAME_POINTER_REGNUM. + Mark HARD_FRAME_POINTER_REGNUM as live at the start of a block if + it is still needed after elimination. + (eliminate_regs): For non-local goto's, don't delete stores into the + hard frame pointer. + (eliminate_regs_in_insn): adjust comment. + (mark_not_eliminable): if frame_pointer_rtx and hard_frame_pointer_rtx + are not the same, then frame_pointer_rtx is eliminable; + hard_frame_pointer_rtx never is if it is set.. + (order_regs_for_reload): HARD_FRAME_POINTER_REGNUM is a bad spill reg. + (choose_reload_regs): HARD_FRAME_POINTER_REGNUM is a bad choice. + * reorg.c: (mark_referenced_resource): if frame_pointer_needed, + HARD_FRAME_POINTER_REGNUM is also a referenced resource. + (mark_target_live_regs): value in HARD_FRAME_POINTER_REGNUM is not + call-clobbered. + (dbr_schedule): HARD_FRAME_POINTER_REGNUM should be valid at the + end of a function. + * rtlanal.c: (rtx_unstable_p): HARD_FRAME_POINTER_REGNUM is not + an unstable register. + (rtx_varies_p, case REG): hard_frame_pointer_rtx is invariant. + (rtx_addr_can_trap_p, case REG): hard_frame_pointer_rtx won't trap. + * sched.c: (memrefs_conflict_p): We can work out whether references + via hard_frame_pointer_rtx are likely to conflict. + (attach_deaths, case REG): Don't add death notes for + HARD_FRAME_POINTER_REGNUM. + * sdbout.c: (sdbout_symbol): Use HARD_FRAME_POINTER_REGNUM instead of + FRAME_POINTER_REGNUM. + * stmt.c: (expand_goto): Set hard_frame_pointer_rtx when restoring + the frame. Use it when restoring other registers. + (expand_end_bindings): ARG_POINTER_REGNUM will be eliminated into + HARD_FRAME_POINTER_REGNUM, not FRAME_POINTER_REGNUM; adjust code + accordingly. + * stupid.c: (stupid_find_reg): never use HARD_FRAME_POINTER_REGNUM. - * c-parse.y (label_decl): Use identifiers_or_typenames. +Fri Sep 24 15:05:14 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * reload1.c (eliminate_regs): Specially handle the case where INSN + is a note (an EXPR_LIST or INSN_LIST). + (eliminate_regs_in_insn): Pass the notes as INSN, + when calling eliminate_insn to process the notes. -Tue Dec 17 22:18:43 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Sep 24 11:29:26 1993 Michael Meissner (meissner@osf.org) - * function.c (expand_main_function): Build SYMBOL_REF with Pmode, - not VOIDmode. + * i386/osfrose.h (SET_ASM_OP): Define. - * rs6000.h (HARD_REGNO_NREGS, CLASS_MAX_NREGS): FP regs can only hold - 64 bits, not any size FP value. +Fri Sep 24 04:47:33 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * 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. + * Makefile.in (toplev.o): Add bytecode.h and bc-emit.h to list + of dependencies. + (stmt.o): Add bytecode.h, bc-typecd.h, bc-opcode.h, bc-optab.h, + and bc-emit.h to list of dependencies. + (expr.o): Add bytecode.h, bc-opcode.h, bc-typecd.h, bc-optab.h, + bc-emit.h, and modemap.def to list of dependencies. + (emit-rtl.o): Add bytecode.h, bc-opcode.h, bc-typecd.h, + bc-optab.h, bc-emit.h, bc-opname.h to list of dependencies. + (integrate.o, regclass.o, varasm.o, function.o): Add bytecode.h to + list of dependencies. - * 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. +Thu Sep 23 23:58:58 1993 James Van Artsdalen (james@bigtex.cactus.org) - * global-alloc.c (global_alloc): Clear preferences with eliminable - regs, in addition to clearing conflicts. + * att.h (ASM_OUTPUT_ASCII): Enclose macro in "do { .. } while (0)". + * sun386.h (ASM_OUTPUT_ASCII): Likewise. - * reload.c (find_reloads_toplev): Abort instead of making - a SUBREG of a VOIDmode constant. +Thu Sep 23 11:55:47 1993 Ted Lemon (mellon@ncd.com) - * emit-rtl.c (copy_rtx_if_shared): SCRATCH may always be shared. + * toplev.c (lang_options): Add -fallow-single-precision. -Tue Dec 17 21:06:03 1991 Michael Meissner (meissner at osf.org) +Thu Sep 23 00:40:28 1993 Richard Stallman (rms@mole.gnu.ai.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. + * Makefile.in (bi-parser.c): Supply explicit rule. + Add bi-parser.h as target. + Put these files in srcdir. - * 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. + * bc-emit.c (bc_gen_rtx): Call gen_rtx. + (bc_print_rtl): #if 0 the contents. - * 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. + * Makefile.in (bc-optab.o, bc-emit.o): Add missing deps. + (bi-parser.c, bi-lexer.c): Don't depend on .h files here. - * decrose.h (OBJECT_FORMAT_ROSE): Define, to tell collect to - enable OSF/rose support, rather than use nm. + * varasm.c (handle_pragma_weak): Test HANDLE_PRAGMA_WEAK + and WEAK_ASM_OP and SET_ASM_OP. - * encrose.h (OBJECT_FORMAT_ROSE): Define, to tell collect to - enable OSF/rose support, rather than use nm. + * Makefile.in (stmt.o): Fix typo. - * i386rose.h (OBJECT_FORMAT_ROSE): Define, to tell collect to - enable OSF/rose support, rather than use nm. + * emit-rtl.c (gen_label_rtx): If output_bytecode, make a CODE_LABEL + but with different contents. - * t-decrose (EXTRA_PASSES): Build collect2 instead of collect-osf, - and link it to ld. + * rtl.h (BYTECODE_LABEL, BYTECODE_OFFSET, BYTECODE_BC_LABEL): + (BYTECODE_UID): New macros. + (struct rtx_def): Delete elements label, offset, bc_label, uid. - * t-encrose (EXTRA_PASSES): Build collect2 instead of collect-osf, - and link it to ld. + * Makefile.in (bc-arity.h, bc-opcode.h, bc-opname.h): Use `./'. + (bi-arity, bi-opcode, bi-opname, bi-lexer): Use host compiler. + Link with HOST_LIBS and depend on HOST_LIBDEPS. + (bi-unparse): Deleted. + (bytecode.distclean): Don't do anything with bi-unparse + (bi-arity.o, bi-opcode.o, bi-opname.o, bi-parser.o, bi-reverse.o) + (bi-lexer.o): Use host compiler. - * t-i386rose (EXTRA_PASSES): Build collect2 instead of collect-osf, - and link it to ld. + * expr.c (expand_increment): Don't store directly ito a subreg + that is narrower than a word. - * x-decrose (DEBUG): Delete -g, since CFLAGS already passes it. - (GCC_CFLAGS): Define POSIX so we can build protoize. +Wed Sep 22 22:18:35 1993 Chip Salzenberg (chip@fin.uucp) - * x-encrose (DEBUG): Delete -g, since CFLAGS already passes it. - (GCC_CFLAGS): Define POSIX so we can build protoize. + * combine.c (init_reg_last_arrays): New function. + (combine_instructions): Use it. + (force_to_mode): Narrow mask to fit mode (except VOIDmode). + (record_value_for_reg): When zeroing reg_last_set_value, also + zero reg_last_set_{mode,nonzero_bits,sign_bit_copies}. + (record_dead_and_set_regs): Likewise. - * x-i386rose (DEBUG): Delete -g, since CFLAGS already passes it. - (GCC_CFLAGS): Define POSIX so we can build protoize. +Wed Sep 22 22:13:07 1993 James Van Artsdalen (james@bigtex.cactus.org) - * t-decstatn (EXTRA_PASSES): Explicitly mention collect2. - (ld): Use $(SYMLINK) rather than just ln. + * bc-emit.c (bc_initialize): Add MODE arg to REAL_VALUE_ATOF calls. - * t-mips (EXTRA_PASSES): Explicitly mention collect2. + * Makefile.in (bi-lexer.c): File is in $(srcdir). - * 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. + * reg-stack.c (record_label_references): Don't follow a null label + reference chain. - * collect-osf.c (whole file): Deleted, merged into collect2.c. +Wed Sep 22 15:56:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Dec 17 15:49:06 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * Makefile.in (bi-arity, bi-opcode, bi-opname, bi-unparse, bi-lexer): + Make the rules explicit. Don't use $^. + (bi-run.o, bi-parser.o, bi-lexer.o): Eliminate $<. + (bc-arity.h, bc-opcode.h, bc-opname.h): Eliminate $< and $@. - * sched.c (schedule_insns): Don't update value of reg_live_length - when it is negative, because negative values are special. + * c-typeck.c (set_init_index): Handle and allow CONST_DECL. + (build_c_cast): When making a CONSTRUCTOR for a union cast, + specify its type. - * sched.c (schedule_block): Make new_needs an int not an enum, since - some compilers won't accept using `|' and `&' with enums. + * Makefile.in (bi-lexer.o, bi-parser.o): Use ALL_CFLAGS. - * sparc.md: Don't emit nop after floating point compare; this is - no longer needed. + * bi-arity.c (main): Make sure there's some value within + each pair of braces. - From Tom Wood: - * sched.c (memrefs_conflict_p): Exchange xsize and ysize when x - and y are exchanged. + * expr.c (bc_adjust_stack): Use VALIDATE_STACK_FOR_BC, + not VALIDATE_STACK. + * bc-emit.c (bc_emit_bytecode): Likewise. + (bc_emit_instruction) [! __GNUC__]: Don't really use bc-typecd.def. -Tue Dec 17 15:01:04 1991 Mark Eichin (eichin at cygnus.com) + * varasm.c (bc_assemble_integer): Make definition static. - * 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. + * expr.c (bc_strdup): Don't use strcpy's value. -Tue Dec 17 10:57:12 1991 Tom Wood (wood at dg-rtp.dg.com) + * bytetypes.h: New file. Typedefs moved from bytecode.h. + (union stacktype): Moved here. + * bytecode.h: Typedefs deleted. + * bi-run.h: (union stacktype): Deleted. + (BI_PARAMS): Don't continue the parmlist. + * bc-emit.c: Include bytetypes.h, if __GNUC__. - * toplev.c (main): Make -g0 produce no debugging information. +Wed Sep 22 15:49:47 1993 Ted Lemon (mellon@ncd.com) -Tue Dec 17 15:15:20 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-decl.c (flag_allow_single_precision): New variable. + (c_decode_option): Handle -fallow-single-precision. + * c-tree.h (flag_allow_single_precision): Declared. + * c-typeck.c (default_conversion): Implement -fallow-single-precision. - * gcc.c (do_spec_1): In %P, duplicate the names with __ just in front. +Wed Sep 22 11:18:24 1993 Mike Stump (mrs@cygnus.com) - * 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. + * cp-class.c (finish_struct): Move special C++ only code that + handles anonymous unions inside structures here. + * stor-layout.c (layout_record): From here. - * Makefile.in (STAGESTUFF): Remove collect and collect2. +Wed Sep 22 14:14:55 1993 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. + * enquire.c (FPROP): Recognize 80387 or 68881 XFmode format. - * final.c (final_scan_insn): Don't output blocks for -g1. + * c-typeck.c (build_component_ref): For a field in an anonymous union, + make two nested COMPONENT_REFs. + (lookup_field): Additional arg INDIRECT. - * Makefile.in (crtbegin.o, crtend.o): Use -g0. +Wed Sep 22 14:45:42 1993 Kresten Krab Thorup (krab@iesd.auc.dk) - * function.c (expand_main_function): Do nothing if INIT_SECTION_ASM_OP. + * tm.texi (CLEAR_INSN_CACHE): New macro. + * libgcc2.c (__clear_cache): add case for new CLEAR_INSN_CACHE. - * 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. + * libgcc2.c (__enable_execute_stack): Add case for NeXT/__MACH__. + * config/m68k/next.h (INITIALIZE_TRAMPOLINE): Append call to + __enable_execute_stack. + (CLEAR_INSN_CACHE): New macro. -Tue Dec 17 15:01:11 1991 Tom Wood (wood at dg-rtp.dg.com) + * varasm.c (output_constructor): Use the type given + by the constructor expression only if available. Otherwise + use the type of the declared type. - * 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. +Tue Sep 21 19:51:26 1993 Andrew McCallum (mccallum@vein.cs.rochester.edu) -Mon Dec 16 21:50:42 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * objc/Object.[hm] (-compare:, -shouldNotImplement:): Added. - * stmt.c (struct case_node): Remove unused field `test_label'. - (pushcase, pushcase_range): Don't initialize it. + * objc/archive.c (objc_write_type, objc_write_types): Take + take char** args for writing strings in stead of char* to + match NeXT. Also correct some typos in error messages. - * 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 21 18:35:04 1993 Per Bothner (bothner@kalessin.cygnus.com) - * expr.c (convert_move): Add missing arg to call to force_reg. - (convert_to_mode): Likewise, for protect_from_queue. + * c-typeck.c (push_member_name): Take a decl instead of a string. + Allow DECL_NAME to be NULL (anonymous fields). + * c-typeck.c (push_init_level, process_init_element): Change + callers appropriately. -Mon Dec 16 20:33:10 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Sep 21 16:44:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (expand_builtin): Check number and types of args. + * libgcc2.c (L_bb): Test inhibit_libc. - * c-parse.y (stmt, extdef): Allow constant expression inside plain asm. + * Makefile.in (ENQUIRE, CROSS_TEST): New variables. + (all.cross): Use them. - * 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. + * mips-tfile.c, mips-tdump.c [CROSS_COMPILE]: Include mips/a.out.h. - * c-typeck.c, cp-typeck.c (c_sizeof): Give error for incomplete type. + * arm.h, clipper.h, i386.h, i860.h, pyr.h, spur.h: + (INIT_CUMULATIVE_ARGS): Pass just the return value type + to aggregate_value_p. -Mon Dec 16 11:14:28 1991 Ken Raeburn (Raeburn@Cygnus.COM) +Tue Sep 21 10:50:19 1993 Jan Brittenson (bson@nutrimat.gnu.ai.mit.edu) - * cp-decl.c (init_decl_processing): Don't declare unused function - __builtin_vec_delete. + * emit-rtl.c (gen_label_rtx, emit_line_note): add conditional for + bytecode. -Mon Dec 16 08:35:04 1991 Torbjorn Granlund (tege at hal.gnu.ai.mit.edu) + * expr.c (mode_to_const_map, mode_to_load_map, mode_to_store_map): + new variable. + (bc_init_mode_to_opcode_maps): new function; initialize maps. + (expand_assignment, expand_expr, expand_increment): add + conditional for bytecode. + (bc_expand_expr, bc_load_memory, bc_store_memory, + bc_allocate_local, bc_allocate_variable_array, bc_load_externaddr, + bc_strdup, bc_load_externaddr_id, bc_load_localaddr, + bc_load_parmaddr, bc_canonicalize_array_ref, + bc_expand_component_address, bc_push_offset_and_size, + bc_expand_address, bc_runtime_type_code, bc_gen_constr_label, + bc_expand_constructor, bc_store_field, bc_store_bit_field, + bc_load_bit_field, bc_adjust_stack): new function. - * gnulib2.c (__udivmoddi4): Add comment. + * function.c (put_var_into_stack, expand_main_function): do + nothing for bytecode. + (bc_build_calldesc): new function. + (init_function_start): use it if outputting bytecode. + (expand_function_start, expand_function_end): add conditional for + bytecode. + (bc_expand_function_start, bc_expand_function_end): new function. -Mon Dec 16 07:47:13 1991 Michael Tiemann (tiemann at cygnus.com) + * integrate.c (output_inline_function): signal error for bytecode. - * 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. + * regclass.c (fix_register): signal error for bytecode. -Mon Dec 16 07:17:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * stmt.c (struct nesting): new members bc_stack_level, skip_label). + (struct goto_fixup): new members bc_target, label, bc_handled, + bc_stack_level. + (emit_nop, expand_computed_goto, expand_label, expand_goto, + expand_goto_internal, fixup_gotos, expand_asm, + expand_asm_operands, expand_expr_stmt, expand_start_expr_stmt, + expand_end_expr_stmt, expand_start_cond, expand_start_else, + expand_end_cond, expand_start_loop, expand_loop_continue_here, + expand_end_loop, expand_exit_loop_if_false, expand_null_return, + expand_return, expand_start_bindings, expand_end_bindings, + expand_decl, expand_start_case, pushcase, + check_for_full_enumeration, expand_end_case): add conditional for + bytecode. + (bc_expand_goto_internal, bc_expand_fixup, bc_fixup_gotos, + bc_expand_start_cond, bc_expand_end_cond, bc_expand_start_else, + bc_expand_end_bindings, bc_expand_decl, + bc_expand_variable_local_init, bc_expand_decl_init, + bc_expand_start_case, bc_pushcase, + bc_check_for_full_enumeration_handling, bc_expand_end_case, + bc_new_uid): new function. - * 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. + * toplev.c (output_bytecode): new variable. + (f_options): add entry for -fbytecode. + (fatal_insn_not_found, compile_file, rest_of_decl_compilation, + rest_of_compilation, main): add conditional for bytecode. - * 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. - - * 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. - -Mon Dec 16 07:09:21 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * 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. + * config/m68k/m68k.c config/m68k/m68k.h: add bytecode specific + definitions. - * objc-actions.c (init_objc): Call __objcInit as a constructor. + * varasm.c (text_section, data_section, make_function_rtl, + make_decl_rtl, assemble_asm, assemble_start_function, + assemble_zeros, assemble_string, assemble_variable, + assemble_external, assemble_external_libcall, assemble_label, + assemble_name, assemble_static_space, + assemble_trampoline_template, assemble_integer, assemble_real, + decode_addr_const, output_constant_def, output_constant_pool, + output_constant, output_constructor): add conditional for + bytecode. + (bc_output_constructor, output_byte_asm, bc_make_rtl, + bc_output_data_constructor, bc_assemble_integer): + new function. + (handle_pragma_weak): break out asm writing code from + handle_pragma_token, move to varasm.c, so bytecode-specific + macros can access static varasm data and functions. - * toplev.c (compile_file): Reenable SDB code #if 0'd before. + * c-pragma.c (handle_pragma_token): use handle_pragma_weak. - * protoize.c (version_string): Make it extern. - * Makefile.in (protoize, unprotoize): Link with version.o. + * function.h (enum pragma_state): moved from c-pragma.c -Sun Dec 15 23:31:47 1991 Michael Tiemann (tiemann at cygnus.com) + * bc-config.h, bc-emit.c, bc-optab.c, bc-optab.h, bc-trans.h, + bc-typecd.def, modemap.def, bytecode.def, bc-emit.h, bc-typecd.h, + bi-arity.c, bi-defs.h, bi-lexer.c, bi-opcode.c, bi-opname.c, + bi-parser.c, bi-parser.h, bi-reverse.c, bi-run.c, bi-run.h, + bi-unparse.c: new file. bc-* are exclusively compiler files, bi-* + are interpreter files. - * cp-tree.c (virtual_member): When recurring, don't dive into - nonexistent baseclasses. + * Makefile.in: add rules and/or dependencies for bc-emit.o, + bc-optab.o, bytecode, bi-arity, bi-opcode, bi-opname, bi-lexer, + bi-run.o, bi-parser.c, bi-parser.o, bi-lexer.o bi-arity.o, + bi-opcode.o, bi-opname.o, bi-reverse.o, bc-arity.h, bc-opcode.h, + bc-opname.h, bytecode.mostlyclean, bytecode.distclean, + bytecode.realclean - * cp-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. -Sun Dec 15 14:57:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Sep 21 10:20:55 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * Makefile.in (SYSCALLS.c.X): Fix typo. - (INTERNAL_CFLAGS): Delete -DMERGED. + * jump.c (jump_optimize): Try putting RETURN at end of function + both at start and at end of our optimization. - * dbxout.c (dbxout_init): Pass proper args to ASM_OUTPUT_MAIN_*. - * newpbb.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Add proper arguments. +Mon Sep 20 17:22:13 1993 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. + * expr.c (expand_expr): Handle flag_volatile here. + * c-typeck.c (build_indirect_ref): TREE_THIS_VOLATILE no longer + depends on flag_volatile. - * gstdarg.h: Use va-i860.h. - * va-i860.h (va_start for ANSI): Fix typo. Call __builtin_next_arg. +Mon Sep 20 15:21:31 1993 Doug Evans (dje@cygnus.com) -Sat Dec 14 20:45:30 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * gstddef.h: Back out change of Sep 15 (handles Sun lossage). + Prevented bootstrapping. - * Makefile.in (USER_H): va-hp9k8.h should be va-hp800.h. +Mon Sep 20 12:21:56 1993 Kresten Krab Thorup (krab@iesd.auc.dk) - * 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. + * objc/archive.c (objc_read_string): Allocate n+1 chars instead of + just n. - * 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}. +Sun Sep 19 13:06:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sat Dec 14 16:10:11 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * function.c (combine_temp_slots): Handle deletion properly. + Free the RTL that is allocated. + * rtl.c (rtx_free): New function. - * 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. + * config/m68k/m68k.c (output_move_double): Handle register overlap + case that occur in soft-float XFmode. Code basically copied from + i386.c. - * 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. +Sun Sep 19 14:40:08 JDT 1993 Michael Ben-Gershon (mybg@cs.huji.ac.il) - * cp-init.c (add_friends): Pass proper args to strncmp. + * cse.c (simplify_unary_operation): If REAL_ARITHMETIC is defined, + and a FIX operation is applied to convert a CONST_DOUBLE to an INT, + the CONST_DOUBLE must first be rounded to zero. - * toplev.c (compile_file): Clear DECL_RTL for vars not really output. - #if 0 possibly redundant code for SDB output. +Sun Sep 19 12:49:05 1993 James Van Artsdalen (james@bigtex.cactus.org) - * sys-types.h: Include gstddef.h to get size_t and wchar_t. + * Makefile.in (objc-headers): Depend on stmp-fixinc to build the + include/ subdirectory first. - * ultrix.h (CPP_PREDEFINED): Add __unix, __ultrix, __bsd4_2. +Sun Sep 19 09:45:16 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * Makefile.in (STAGESTUFF): Add collect, collect2. + * gstddef.h (size_t): Acorn RISCiX requires __size_t defined. -Sat Dec 14 12:16:12 1991 Michael Tiemann (tiemann at cygnus.com) +Sun Sep 19 09:08:09 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-search.c (get_baselinks): Use obstacks right, instead of - aborting when we know we're using them wrong. + * genrecog.c (preds): Correct typo in name of `comparison_operator'. + (add_to_sequence): If PREDICATE_CODES specified, warn if we find a + predicate not in that list. - * cp-parse.y (structsp): Fix typo in exception declaration rule. + * reload.c (find_reloads): Reject an alternative if two operands + match the same output and we have to do a reload. - * cp-typeck.c (build_modify_expr_1): Recursive call to - `build_modify_expr_1' used pre-BINFO representation for - BASETYPE_PATH argument. + * rs6000.c (rs6000_override_options): Change processor type to + "rios1"; allow "rios" as synonym. + Add synonyms for "mpc6xx". + * rs6000.h (enum processor_type): Change from RIOS to RIOS1. + (PROCESSOR_DEFAULT): Likewise. + * rs6000.md (attribute "cpu"): Change from "rios" to "rios1"; all + uses changed. - * 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. + * xm-alpha.h: Add extern declaration for alloca. -Sat Dec 14 07:11:03 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * a29k.h (PREDICATE_CODES): Fix typos and add missing entries. + * alpha.h, i860.h i960.h, m88k.h, mips.h, rs6000.h: Likewise. - * reload.c (find_reloads_toplev): If we have a SUBREG of a multi-word - constant, try to extract just the word we want. +Sat Sep 18 09:27:03 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * global-alloc.c (global_alloc): Correct reference to ELIMINABLES. + * expr.c (convert_move): Use emit_library_call_value. -Fri Dec 13 15:28:38 1991 Michael Meissner (meissner at osf.org) +Sat Sep 18 08:01:44 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * configure (mips-mips-sysv): On MIPS System V, use xm-umips.h, not - xm-mips.h. + * alpha.h (REG_ALLOC_ORDER): Add missing entries. - * gstddef.h (__PTRDIFF_TYPE__): Provide default definition in case - non-GCC 2.00 compiler is used. - (__SIZE_TYPE__): Ditto. - (__WCHAR_TYPE__): Ditto. + * combine.c (recog_for_combine): Fix typos in previous change. -Fri Dec 13 14:49:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload.c (earlyclobber_operand_p): New function. + (combine_reloads): Use it. + (find_reloads): Set reload_earlyclobbers earlier. + (refers_to_regno_for_reload_p): Count something being stored into + if it is an earlyclobber operand. - * config.sub: Renamed from config.subr. - Support os -sym1. - Convert -svr3, -svr4 to -sysv3, -sysv4. - * configure: Used new name. +Fri Sep 17 21:40:02 1993 Per Bothner (bothner@cygnus.com) - * Makefile.in (includes): Preserve files from GCC already in dir. + * fold-const.c (invert_truthvalue): Instead of aborting, + build a TRUTH_NOT_EXPR when unable to optimize. + (The aborts were not a problem for C, which always first + calls truthvalue_conversion, but that should not be + necessary for a language with real Booleans.) -Fri Dec 13 11:01:12 1991 Fred Fish (fnf at fishpond) +Fri Sep 17 20:38:53 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * att386.h: Fix unparenthesized macro arguments in - ASM_OUTPUT_ASCII macro. + * c-typeck.c (output_init_element): Update constructor_bit_index + for union types. - * 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). + * libgcc2.c: Declare __fixunsxfdi only if really have XFmode. + Likewise for __fixunstfdi. - * svr4.h: Fix misspelled variable name labelno (was labeno). +Fri Sep 17 18:08:37 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Dec 13 09:07:22 1991 Michael Tiemann (tiemann at cygnus.com) + * combine.c (recog_for_combine): Always reject a PARALLEL containing + our special CLOBBER. - * 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. + * cse.c (fold_rtx, case MINUS): Copy result obtained from + hash table. -Thu Dec 12 22:03:52 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) + * cse.c (fold_rtx, case SUBREG): If paradoxical SUBREG of a + constant, return the constant. - * make-cc1.com: Change message given to user. Change c-parse_tab.* - to c-parse.* + * c-typeck.c (lookup_field): Use HOST_WIDE_INT instead of long or + int when we want integer wide enough to hold a pointer difference. - * config-gcc.com: Purge excess versions of version.opt. +Fri Sep 17 16:03:22 1993 Per Bothner (bothner@cygnus.com) -Thu Dec 12 20:25:20 1991 Michael Meissner (meissner at osf.org) + * dbxout.c (dbxout_type): For CHAR_TYPE and BOOLEAN_TYPE (in + languages that have them - not C), adopt an AIX convention + to distinguish these from other types. - * Makefile.in (BOOT_CFLAGS): Remove quotes around the argument, - since this causes a syntax error when it is later expanded. +Fri Sep 17 09:02:06 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Dec 12 17:53:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * expr.h (emit_library_call_value): Fix declaration. - * config.subr: Add many new machines and some OS's. +Thu Sep 16 12:05:44 1993 Ian Lance Taylor (ian@cygnus.com) - * va-i860.h: Rewrite from rfg. + * Makefile.in (fixinc.ready): New target, like libgcc2.ready, + depending on xgcc and cpp. + (stmp-fixinc): Depend on fixinc.ready instead of xgcc and cpp. + (clean): Remove fixinc.ready. - * toplev.c (main): Handle -dm on USG systems. +Thu Sep 16 10:22:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * m68k.c (print_operand, print_operand_address): New functions. - * m68k.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Just call them. + * reload.c (find_reloads): For PLUS operand, call find_reloads_toplev. - * m68k.c (S_*, D_*): Delete the #undefs at the end. + * optabs.c (expand_complex_abs): Fix typo in prev change. - * stmt.c (expand_return): Special case if fcn returns void. +Thu Sep 16 02:06:11 1993 Jim Wilson (wilson@cygnus.com) - * objc-actions.c (build_objc_method_call): Fix typo in NeXT case. - - * expr.c (expand_builtin, BUILT_IN_ARGS_INFO): Cast init of word_ptr. - - * protoize.c: Delete the `extern "C"' for C++ compilation. - -Thu Dec 12 10:01:13 1991 Michael Meissner (meissner at osf.org) - - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Fix off by one error in - handling the constructor list when a valid count is supplied. - - * collect2.c (write_hooks): Emit a count before the list of - constructors, to go back to the old format. - - * collect-osf.c (write_s_file): Emit a count before the list of - constructors, to go back to the old format. - - * 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. - - * 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. - -Thu Dec 12 07:27:05 1991 Tom Wood (wood at dg-rtp.dg.com) - - * gbl-ctors.h (__CTOR_LIST__, __DTOR_LIST__): Renamed from *_BEGIN__. - * collect-osf.c collect2.c: Rename here as well. - -Thu Dec 12 04:15:22 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-parse.y (stmt): Make asm alternatives allow expr. - * c-typeck.c (c_expand_asm_operands): Get the STRING_CST from the expr. - - * c-parse.y (datadecl, datadecls, lineno_datadecl): New rules. - (xdecls): Use them. - -Wed Dec 11 18:36:53 1991 Richard Stallman (rms at 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. - -Wed Dec 11 18:08:36 1991 Mark Eichin (eichin at cygnus.com) - - * 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. - -Wed Dec 11 17:52:46 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - -Wed Dec 11 16:30:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * cccp.c (do_endif): Don't call record_control_macro at top level. - -Wed Dec 11 14:45:42 1991 Mark Eichin (eichin at cygnus.com) - - * 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. - - * 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. - - * 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. - - * cp-tree.h (xref_defn_tag): New declaration. - -Wed Dec 11 12:37:51 1991 Ken Raeburn (Raeburn@Cygnus.COM) - - * 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). - - * cp-init.c (BIVN): Deleted unused variable. - * cp-decl.c (init_decl_processing): Don't declare function - __builtin_vec_new; it's never used. - -Wed Dec 11 10:59:48 1991 Michael Meissner (meissner at osf.org) - - * toplev.c (main): Complete last change from RMS, use variable - 'level' which used to be named 'arg'. - - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Don't reference ON_EXIT for - those poor systems without atexit or on_exit. - -Wed Dec 11 09:06:52 1991 Jeffrey A. Law (law at wombat.gnu.ai.mit.edu) - - * 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. - -Wed Dec 11 06:45:08 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * x-romp (MAKE): Add definition; the supplied `make' doesn't define it. - -Tue Dec 10 22:17:50 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (try_combine): Always make a copy of I2's pattern if - it will be used in a PARALLEL (`added_sets_2' nonzero). - - * Makefile.in (BOOT_CFLAGS): New parameter. - (bootstrap*): Use it. - - * flow.c (find_basic_blocks): Set depth of last insn, not first, - into basic_block_loop_depth. - (propagate_blocks): Use consistently with new definition. - - * cse.c (cse_end_of_basic_block, cse_basic_block): Remove previous - change; it can cause loops following around branches. - - * Makefile.in (USER_H): Add va-hp9k8.h. - -Tue Dec 10 17:22:01 1991 Tom Wood (wood at dg-rtp.dg.com) - - * 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. - - * m88k.c (uses_arg_area_p): Check current_function_varargs. - -Tue Dec 10 15:41:03 1991 Michael Meissner (meissner at osf.org) - - * osf-main.c (whole file): Delete, since the constructor stuff was - moved to gnulib2.c. - - * 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. - - * 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. - - * 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. - - * decrose.h (HAVE_ATEXIT): Define, OSF/1 has atexit. - (FULL_PROTOTYPES, NO_CONST_IN_SYSCALL): Remove, no longer used. - - * encrose.h (HAVE_ATEXIT): Define, OSF/1 has atexit. - (FULL_PROTOTYPES): Remove, no longer used. - - * i386rose.h (HAVE_ATEXIT): Define, OSF/1 has atexit. - - * t-decrose (LIB2FUNCS_EXTRA): Remove, osf-main.c is no longer - needed, since constructor/destructor support moved into gnulib2.c. - - * t-encrose (LIB2FUNCS_EXTRA): Remove, osf-main.c is no longer - needed, since constructor/destructor support moved into gnulib2.c. - - * t-i386rose (LIB2FUNCS_EXTRA): Remove, osf-main.c is no longer - needed, since constructor/destructor support moved into gnulib2.c. - - * 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. - - * 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). - - * xm-mips.h (alloca): If not GNU C, declare alloca to be char *. - - * 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. - -Tue Dec 10 14:10:10 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Get rid of __reverse_order, etc. - * gnulib2.c (__do_global_dtors): Remove & before arrays. - - * configure: Set a default value for xm_file. - Remove redundant defaulting of cpu_type. - - * svr4.h (ASM_DECLARE_FUNCTION_SIZE): Output internal label properly. - - * 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. - - * toplev.c (main): Eliminate -gsdb and -gdbx. - Clean up setting of use_gdb_dbx_extensions. - -Tue Dec 10 10:33:58 1991 Tom Wood (wood at gen-rtx) - - * svr4.h (ASM_DECLARE_FUNCTION_SIZE): Use an internal label. - -Tue Dec 10 07:12:28 1991 James Van Artsdalen (james@raid) - - * Makefile.in (crtbegin.o, crtend.o): crstuff.c is in $(srcdir). - -Tue Dec 10 06:56:26 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-decl.c (kept_level_p): New function, borrowed from c-decl.c. - * cp-parse.y (compstmt): Call it. - -Mon Dec 9 18:37:32 1991 Ken Raeburn (Raeburn@Cygnus.COM) - - * cp-decl.c (grok_enum_decls): Don't give warning for class-local - enum types; this is a perfectly reasonable usage. - -Mon Dec 9 12:23:48 1991 Ron Guilmette (rfg at ncd.com) - - * 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). - -Mon Dec 9 20:34:48 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * sched.c (schedule_block): Don't crash if `line' is zero. - (schedule_insns): Initialize line_note_head. - -Mon Dec 9 15:31:46 1991 Michael Meissner (meissner at osf.org) - - * mips-tfile.c (pseudo_ops array): Correctly size the .stabs and - .stabn elements. - - * mips.c (function_prologue, function_epilogue): Use assemble_name - to print the current function, instead of fprintf, in case there is - a leading '*'. + * flags.h (current_function_has_nonlocal_goto): Declare. + * function.h (struct function): New field has_nonlocal_goto. + * function.c (current_function_has_nonlocal_goto): New var. + (push_function_context): Save it. + (pop_function_context): Restore it. + (init_function_start): Init it. + * integrate.c (function_cannot_inline_p): Don't inline if it's set. + * stmt.c (expand_goto): Set it. - * mips-news.h (CPP_PREDEFINES): Define news3700, not news7300. + * reorg.c (mark_set_resources): For CALL_INSN, if followed by a + NOTE_INSN_SETJMP note, then assume that all registers are clobbered. + Handle case where CALL_INSN is in a sequence. - * mips.md (ashldi3_internal3): Fix typos. - (ashrdi3_internal3): Ditto. - (lshldi3_internal3): Ditto. +Wed Sep 15 17:38:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Dec 9 11:49:52 1991 Torbjorn Granlund (tege at hal.gnu.ai.mit.edu) + * gstddef.h: Delete the conditional that used to semi-avoid + interference with sys/stdtypes.h on Sun. (fixincludes makes + it ok.) - * longlong.h (__a29k__ udiv_qrnnd): Change "q" to "1" for operand - 2 constraint. +Wed Sep 15 16:17:09 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Mon Dec 9 11:22:58 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * pa.h (ASM_FILE_START): Fix access information for $LIT$ + subspace. - * 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. +Wed Sep 15 14:53:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cp-tree.c: Fix typo in comment at start of file. + * config/ns32k/ns32k.md: Add peepholes for stack adjust plus pushes. -Mon Dec 9 07:17:13 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Sep 15 13:38:24 1993 Doug Evans (dje@canuck.cygnus.com) - * 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) + * c-typeck.c (lookup_field): New function (for chill). + (build_component_ref): Call it. - * sys-types.h: New file. - * sys-protos.h: New file. - * SYSCALLS.c: Just include those files. +Wed Sep 15 08:12:32 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * libgcc2.c: Declare __fixunsxfdi and __fixunstfdi. - * 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. + * integrate.c (copy_for_inline, copy_rtx_and_substitute): + Always preserve the volatil flag when copying ASM_OPERANDS. -Mon Dec 9 01:07:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Tue Sep 14 21:56:20 1993 Jim Wilson (wilson@cygnus.com) - * fixinc.svr4: Don't change #ident or assertion tests. - Don't install inline.h. + * c-typeck.c (valid_compound_expr_initializer): New function. + (digest_init): Handle compound expressions as initializers when + pedantic. - * c-common.c (get_directive_line): Declare c as int. + * varasm.c (immed_double_const, immed_real_const_1): Don't touch + const_double_chain if not inside a function. - * configure: Create additional file tconfig.h. - * protoize.c: Include that, not tm.h. - * Makefile.in (protoize.o, unprotoize.o): Depend on tconfig.h. +Tue Sep 14 16:22:03 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * svr4.h (HAVE_ATEXIT): Defined. - * gnulib2.c (_main, exit): Use HAVE_ATEXIT to control use of atexit. + * c-typeck.c (digest_init): Compare types using comptypes + instead of comparing pointers. (Helps Chill front end.) - * final.c (final_scan_insn): Output first and last note in a series. +Tue Sep 14 12:16:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * calls.c (emit_library_call_value): Finish making it work. + * optabs.c (expand_float): Use emit_library_call_value. + (expand_unop, expand_binop): Likewise. + (expand_complex_abs): Likewise. + Also pass SUBMODE as output mode to emit_library_call_value. + * function.c (aggregate_value_p): Allow type node as argument. - * unx386.h (PRINT_IMMED_PREFIX, PRINT_OFFSET_PREFIX): Deleted. + * config/ns32k/ns32k.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): + If omitting frame pointer, output an adjspd if necessary. + Use movd to save registers if four or less need saving. + Set DEPTH properly. - * rtl.h: Undef FLOAT. + * reload.c (find_dummy_reload): New args inmode, outmode. + (find_reloads): Pass new args. + (push_reload): Likewise. - * svr4.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_SIZE): - Fix typo. +Mon Sep 13 12:52:03 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Dec 8 21:46:51 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-typeck.c (set_init_index): Don't allow variable indices. - * protoize.c (main): Declare `value'. - (abspath): Declare endp. Declare and set outp and inp. + * c-decl.c (complete_array_type): Handle TREE_PURPOSE + of array constructor elements. - * cp-decl.c (sigsegv): Function deleted. - (init_decl_processing): Don't use it. - Also don't include signal.h. + * expr.c (store_constructor): Handle TREE_PURPOSE of array constructor. + (expand_expr, ARRAY_REF case): Likewise. - * t-svr4: New file. - * configure (i386-*-sysv4*, i860-*-sysv4*): Use that file. + * varasm.c (output_constructor): Handle index value in + the TREE_PURPOSE, for array constructors. -Sun Dec 8 12:01:36 1991 Ron Guilmette (rfg at ncd.com) + * c-typeck.c (output_init_element): When putting an elt into a + CONSTRUCTOR, always set the TREE_PURPOSE (even for arrays). + Copy the node if it's an INTEGER_CST. + (output_pending_init_elements): If have gap and not incremental, + advance constructor_unfilled_fields or constructor_unfilled_index. - * fixinc.svr4: New file. +Sun Sep 12 23:00:25 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * final.c (profile_function): Specify return type. - (get_attr_length): Added a return statement to prevent warnings. + * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if + non-zero) to sizetype before subtraction. - * 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. +Sun Sep 12 16:18:18 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-typeck.c (push_init_level): Pop any implicit levels + that have been filled up. + Don't die if constructor_type is 0. + (process_init_element): If VALUE is 0 for union type, + update constructor_bit_index. - * combine.c (combinable_i3pat): Added explicit return type. +Sun Sep 12 10:59:08 1993 Bill Cox (bill@cygnus.com) - * 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. + * c-typeck.c (digest_init): Remove obsolete comments on args + TAIL, OF_WHAT. - * 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. +Sun Sep 12 08:45:36 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * loop.c (basic_induction_var): New arg MODE. + Use it to call convert_modes. + (strength_reduce): Supply the new arg to basic_induction_var. - * 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. + * expmed.c (expand_shift): Use convert_modes. + (emit_store_flag): Likewise. - * 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. +Sat Sep 11 16:44:15 1993 Doug Evans (dje@canuck.cygnus.com) - * i860v3.h: Complete rewrite. Uses svr3.h. + * collect2.c (main): Provide upward compatibility with old version + of collect (avoids infinite mutual recursion between the two). - * i386v4.h: Don't include i386v.h. Include i386.h instead. - (SDB_DEBUGGING_INFO): #undef deleted. - (ASM_OUTPUT_DWARF_STRING): Added definition. +Sat Sep 11 13:05:07 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) - * gcc.c (default_compilers): Pass -g* options to cpp. + * c-typeck.c (constructor_no_implicit): New variable. + If set, dis-allows eliding of braces in initializers. + (Set by Chill front-end.) + * c-typeck.c (process_init_element): Use it. - * gcc.c (do_spec_1): Don't duplicate -A options in CPP_PREDEFINES. +Sat Sep 11 15:55:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gnulib2.c (exit, __main, __do_global_dtors, __do_global_ctors): - New functions. + * stor-layout.c (layout_record): Turn off PCC_BITFIELD_TYPE_MATTERS + rounding of field bitpos, if maximum_field_alignment is nonzero. - * i386.h (PRINT_IMMED_PREFIX, PRINT_OFFSET_PREFIX): - Define here, and use IP. +Fri Sep 10 08:52:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * i386.h: Don't include syms.h or define FILNMLEN. + * c-typeck.c (check_init_type_bitfields): Check for mismatch + between field's mode and its type's mode. - * x-i860v3, x-i860v4: New files. - * x-i386v4 (CCLIBFLAGS, GCC_CFLAGS): Added definitions. + * expr.c (protect_from_queue): Don't alter an existing MEM. + (convert_modes): Use X's mode (not OLDMODE) unless it is VOIDmode. - * xm-svr3.h: New file. - * xm-i86v3.h, xm-i86v4.h, xm-i386v.h: Rewritten. - * xm-i38v4.h: New file. +Fri Sep 10 01:01:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - * 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. + * config.sub: Recognize operating system `netbsd*'. - * 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. +Thu Sep 9 18:09:14 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) -Sun Dec 8 15:27:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-typeck.c (really_start_incremental_init, push_init_level): + Add support for arrays with non-zero lower bounds. (Used by Chill.) - * next.c (handle_pragma): Use get_directive_line. +Thu Sep 9 19:20:59 1993 Jim Wilson (wilson@cygnus.com) - * 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. + * tree.c (make_node): Put PARM_DECLs of nested functions onto + parent's saveable obstack. -Sun Dec 8 14:47:44 1991 Michael Meissner (meissner at osf.org) +Thu Sep 9 14:17:00 1993 Ian Lance Taylor (ian@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. + * Makefile.in (CROSS_LIBGCC1): New variable. Rule to use when + building libgcc1.a for a cross compiler. Defaults to + libgcc1.cross. + * cross-make (LIBGCC1): Default to $(CROSS_LIBGCC1) rather than + libgcc1.cross. + * config/i386/t-next, config/i386/t-sol2, config/m88k/t-dgux, + config/m88k/t-luna, config/m88k/t-dgux-gas, + config/m88k/t-luna-gas, config/m88k/t-m88k, + config/m88k/t-m88k-gas, config/m88k/t-sysv4, + config/m68k/t-next, config/mips/t-bsd, config/mips/t-bsd-gas, + config/mips/t-mips, config/mips/t-mips-gas, + config/mips/t-osfrose, config/mips/t-svr3, + config/mips/t-svr3-gas, config/mips/t-svr4, + config/mips/t-svr4-gas, config/mips/t-ultrix, config/pa/t-pa, + config/sparc/t-sol2, config/h8300/t-h8300, config/sh/t-sh, + config/t-libc-ok (CROSS_LIBGCC1): Defined to be libgcc1.null. - * 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. +Thu Sep 9 09:48:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * expr.c (expand_expr): Set ignore for COND_EXPR with VOID_TYPE. - * mips.md (fix_trunc??si_opt, mov??_internal): Change '!' constraint - back to '*'. + * expr.c (convert_modes): New function. + (convert_to_mode): Use that. + * expr.h (convert_modes): Declared. + * optabs.c (expand_twoval_binop): Use convert_modes. + (expand_complex_abs): Likewise. + (emit_cmp_insn): Likewise. + (expand_inline_function): Likewise. + * expmed.c (expand_divmod): Likewise. + (emit_store_flag): Likewise. + * loop.c (basic_induction_var): Likewise. + * integrate.c (expand_inline_function): Likewise. -Sat Dec 7 16:58:57 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * optabs.c (widen_operand): New arg OLDMODE. + (expand_binop, expand_unop): Fix calls to widen_operand. - * cp-spew.c (scan_tokens): Stop scanning at semi-colon. +Wed Sep 8 18:25:50 1993 Doug Evans (dje@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. + * sparc.c, sparc.h, sparc.md: Cosmetic changes only. Just + reordered code a little. - * cp-class.c (push_lang_context): Fix typo in comment. +Wed Sep 8 14:49:59 1993 Jim Wilson (wilson@cygnus.com) - * cp-decl.c (finish_decl): Undo `pushclass' done in start_decl for - top-level decls of methods. + * dbxout.c (dbxout_parms): For parameters in registers, if use + DECL_RTL, then must use TREE_TYPE instead of DECL_ARG_TYPE. - * cp-lex.c (restore_pending_input): Cast 0 to pointer type for - obstack_free. + * mips.md (fix_truncdfsi2, fixtruncsfsi2): Mark SImode scratch + register as early clobbered when dest is in memory. - * 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. + * fixincludes (sbusdev/audiovar.h): Fix wrongly edited // comments + nested within /* */ comments. -Sat Dec 7 15:46:55 1991 Timothy Moore (moore@cs.utah.edu) + * gcc.c (process_command): Don't warn for -x after last input file + if spec_lang is zero. - * 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. + * fixinc.mips (bsd43/bsd43.h): Change /**/ to ##. -Sat Dec 7 15:46:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * expr.c (convert_move): When truncating, call force_reg first if + it is something that gen_lowpart won't understand. - * tree.h (DECL_ARG_TYPE_AS_WRITTEN): New macro. - * c-decl.c (grokdeclarator): Store value there. + * sys-protos.h (getrlimit, getrusage, setrlimit): Return int not void. - * m68k.c (output_function_prologue, output_function_epilogue): - Support MOTOROLA syntax. +Wed Sep 8 11:28:41 1993 John Hassey (hassey@dg-rtp.dg.com) - * 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. + * m88k.c (output_call): Avoid use of jsr.n r1, this loses on + the 88110. - * 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. +Wed Sep 8 10:51:07 1993 David Edelsohn (edelsohn@npac.syr.edu) - * 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. + * rs6000.h: (MASK_*, TARGET_*): Add target masks and tests. + (TARGET_SWITCHES): Add target switches for various architectures + and mnemonics options. + (TARGET_OPTIONS): Add cpu type as special target option. + (OVERRIDE_OPTIONS): Call rs6000_override_options to decipher. -Sat Dec 7 00:53:16 1991 Ron Guilmette (rfg at ncd.com) + * rs6000.c (rs6000_cpu, rs6000_cpu_string): New variables. + (rs6000_override_options): New function. - * 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. + * rs6000.md (define_attr): Expand list of instruction attributes. + (define_function_unit): Compute delay information based + upon processor type and expand functional unit types. + (mulsi3, divsi3, divmodsi4, divsf3, divdf3, muldf3, movsf): + Use expanded attributes. + (load with update): Likewise. - * c-decl.c (pending_xref_error, c_mark_varargs): Added return type. +Wed Sep 8 06:34:32 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cccp.c (main): Added code to support the presence of -A (assertion) - options within CPP_PREDEFINES. + * c-typeck.c (output_init_element): When adding to + constructor_pending_elts, copy field. - * c-lang.c: Minor cleanups. +Wed Sep 8 06:15:58 1993 David Gershovich (dgirsh@iil.intel.com) - * c-lex.c (check_newline): Added support for the -g3 option. + * expmed.c (make_tree, case CONST_INT): Properly set high part if + unsigned. - * dwarfout.c (type_tag): Fixed bug in gcc Dwarf generation for - tagged types. + * optabs.c (expand_binop): Must always widen second operand + of shift. - * dwarfout.c (output_decl): Added two pre-checks to see if nodes - are ERROR_MARK nodes before using them. +Wed Sep 8 05:16:59 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c (generate_new_sfname_entry): Function added. + * c-typeck.c (push_init_level): Diagnose extra brace group at end + of record. Set constructor_type to 0. + (pop_init_level): Don't output anything if constructor_type is 0. + (process_init_element): Do nothing if constructor_type is 0. - * 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). +Tue Sep 7 19:11:20 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.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. + * c-common.c (c_build_type_variant): Allocate new type in same + obstack as old one. - * dwarfout.c (compare_filename_entries): Function deleted. (It's - no longer needed.) +Tue Sep 7 17:45:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * dwarfout.c (dwarfout_finish): Don't generate .debug_sfnames - section entries here anymore. (See lookup_filename.) + * c-typeck.c (digest_init): Fix error message text. - * Makefile.in (realclean): Delete c-parse.h. - Delete objc-parse.output just once. +Tue Sep 7 14:32:51 1993 Leonid Baraz (lbaraz@iil.intel.com) -Fri Dec 6 17:49:28 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * sched.c (schedule_block): Correct type of BIT. - * 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. + * fold-const.c (fold): Don't try to process an RTL_EXPR. - * combine.c (try_combine): Don't access new_i2_notes if it hasn't been - defined (it isn't defined unless newi2pat != 0). +Tue Sep 7 06:18:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Dec 6 16:01:02 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * dbxout.c (dbxout_type): Handle enum constants bigger than one word. + Don't print big unsigned values as negative. + * c-decl.c (build_enumerator): Choose type properly for wide constants. + (finish_enum): Always set type of the enumerators to the enum type. + * c-typeck.c (default_conversion): For enum that's unsigned, + if it's at least as wide as int, convert to an unsigned type. - * 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. + * config/i386/sol2.h (LIB_SPEC, LINK_SPEC, SWITCH_TAKES_ARG): + Definitions copied from sparc/sol2.h. + (CPP_SPEC): Copied from sparc/sol2.h, but deleted -msparclite. - * 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. +Mon Sep 6 14:43:20 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) -Fri Dec 6 13:33:48 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * genextract.c (insn_name_ptr): Define for debugging. + (walk_rtx, case MATCH_OP_DUP): Expand recog_dup_loc using XEXP not + XVECEXP. - * crtstuff.c: Give permission to link with non-free programs. +Mon Sep 6 13:28:03 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.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. + * rtlanal.c (modified_between_p): Handle vectors. + (modified_in_p): New function. + (refers_to_regno_p): If setting AP, FP, or SP, we clobber the + virtual registers. + * optabs.c (emit_libcall_block): Don't move insns that reference + things set in previous insns. -Fri Dec 6 08:42:53 1991 Ron Guilmette (rfg at ncd.com) +Mon Sep 6 08:35:34 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * Makefile.in (STAGESTUFF): Added __main and _exit to support g++. + * config/mips/mips.h: Don't declare abort. - * c-common.c (c_expand_expr_stmt): Made return type explicit. +Mon Sep 6 01:03:58 1993 Jim Wilson (wilson@cygnus.com) - * c-common.c: (get_directive_line): Function added to support -g3. + * protoize (abort): Correct volatile function declaration. -Fri Dec 6 04:50:39 1991 Michael Tiemann (tiemann at cygnus.com) +Sun Sep 5 18:23:09 1993 Doug Evans (dje@canuck.cygnus.com) - * 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. + * Makefile.in (USER_H): Add va-h8300.h. -Thu Dec 5 22:31:12 1991 Jeffrey A Law (law at super.super.org) + * collect2.c (our_file_name, last_file_name): deleted. + (our_file_names): New variable. + (is_in_prefix_list): New function. + (find_a_file): Call is_in_prefix_list. + (main): Make COLLECT_NAMES a list of our invocations. + If we've invoked ourselves, try again with ld_file_name. - * m68k.h (CONST_COSTS): Show that constants which can be easily - generated are less expensive than most. +Sun Sep 5 16:00:47 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * function.c (assign_parms): When parm needs conversion on entry, + don't store it back in the slot where it was passed. -Thu Dec 5 20:17:13 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) +Sun Sep 5 14:51:14 1993 Jim Wilson (wilson@sphagnum.cygnus.com) - * 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. + * c-decl.c (grokdeclarator): For PARM_DECLs, only call + c_build_type_variant is constp or volatilep is true. - * 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. +Sun Sep 5 06:44:09 1993 David Edelsohn (edelsohn@npac.syr.edu) - * make-cccp.com: Add version.opt to the list of files given to the - linker. + * rs6000.c: (print_operand): Convert fprintf of single letters + to putc and convert fprintf of constant strings to fputs. + Output '%u' operand as hexadecimal. -Thu Dec 5 23:04:20 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Sep 4 11:16:18 1993 Craig Burley (burley@gnu.ai.mit.edu) - * combine.c (make_extraction): Don't make a STRICT_LOW_PART of a MEM; - clean up comments so they agree with the code. + * c-common.c (truthvalue_conversion): A complex value is nonzero + if either part is nonzero, not if both parts are nonzero. - * 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. +Fri Sep 3 19:02:41 1993 Paul Eggert (eggert@twinsun.com) - * 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. + * c-decl.c (build_enumerator): Apply default conversion to + constant-expression. - * 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. +Fri Sep 3 18:03:47 1993 Chris Lang (chrisl@mirc00.ncms.org) - * combine.c (simplify_comparison): Fix error in last change; don't - reference TEM before it is set. + * cccp.c (skip_if_group): Check for traditional mode when + skipping ahead to next #, ignore unless at beginning of line. - * toplev.c (fatal_insn_not_found): Flush all files before aborting. +Fri Sep 3 18:00:15 1993 Michael Meissner (meissner@osf.org) -Thu Dec 5 21:42:29 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i386/osfrose.h, i386/osfelf.h (LINK_SPEC): Pass -v and -dn on to + the ELF linker, which now accepts these switches. - * objc-actions.c (build_objc_method_call): Eval OBJECT and SELECTOR - only once. Always pass self_decl as self to the method. +Fri Sep 3 13:34:22 1993 Doug Evans (dje@cygnus.com) -Thu Dec 5 14:52:16 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * i386/x-linux: Add -Iinclude to BOOT_CFLAGS. - * ccrtstuff.c, gnulib2.c, protoize.c: Include tm.h not config.h, - since these are complied for the target, host defines do not apply. +Fri Sep 3 01:54:19 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Thu Dec 5 14:52:24 1991 Michael Meissner (meissner at osf.org) + * pa.h (READONLY_DATA_ASM_OP): Define. + (READONLY_DATA_SECTION): Define. + (EXTRA_SECTIONS): Add in_readonly_data. + (EXTRA_SECTION_FUNCTIONS): Add readonly_data. - * 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. +Thu Sep 2 19:19:14 1993 Holger Teutsch (holger@hotbso.rhein-main.de) -Thu Dec 5 12:03:40 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * clipper.h : Improve generated code for C400 Clipper. + (TARGET_SWITCHES): New options `c300' `c400'. + (TARGET_C300, TARGET_C400): New defines. + (TARGET_DEFAULT): Define as TARGET_C300. + (CONDITIONAL_REGISTER_USAGE): New define. - * gcc.c (process_command): Don't put `.' on startfile_prefix. - Cast result of alloca. +Thu Sep 2 17:47:57 1993 Doug Evans (dje@canuck.cygnus.com) - * config/*.h (ASM_OUTPUT_ASCII): Put parens around all uses of args. + * glimits.h (__INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__): New macros. + (INT_MAX, LONG_MAX, LONG_LONG_MAX): Use them. + (UINT_MAX, ULONG_MAX, ULONG_LONG_MAX): Ditto. - * 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. +Thu Sep 2 14:26:28 1993 Michael Meissner (meissner@osf.org) -Thu Dec 5 09:35:15 1991 Michael Tiemann (tiemann at cygnus.com) + * i386/osfrose.h (YES_UNDERSCORES): Delete macro, since we have + redefined all of the macros that are based on using it. + (CPP_SPEC, CC1_SPEC): Remove #ifndef NO_UNDERSCORE version. + OSF/ELF will now omit the leading underscore by default. + (LINK_SPEC): Pass -dy through to ELF linker. Do not pass -v to + ELF linker. - * cp-search.c (note_debug_info_needed): Do the right thing for - static member functions. + * i386/osfelf.h (CPP_SPEC, CC1_SPEC): Remove #ifndef NO_UNDERSCORE + version. OSF/ELF will now omit the leading underscore by default. + (LINK_SPEC): Pass -dy through to ELF linker. Do not pass -v to + ELF linker. -Thu Dec 5 01:25:13 1991 Michael Tiemann (tiemann at mole.gnu.ai.mit.edu) - * version.c: Now 1.96. + * final.c (tree.h): Include tree.h to get the declaration for + decl_printable_name. + (last_filename): Global to hold last filename encountered in a + NOTE. + (add_bb): New function to do common code for emitting a basic + block profiling increment. Remember the current function, and if + debugging, line number and filename for each basic block. + (add_bb_string): New function to remember strings for profiling + basic blocks. + (end_final): Bump name array size to 20. Use BSS to store profile + block count array unless -fno-common. Eliminate redefining name + within for loop block. Add a length field and three new parallel + arrays for basic blocks to hold function name, and if debugging, + line number and file name for basic block profiling. + (final_start_function): Save a printable version of the current + function name away if profiling basic blocks. + (final_end_function): Forget the current printable version of the + current function name if profiling basic blocks. + (final): Move basic block profiling support to just call add_bb. + (final_scan_insn): Ditto. + (output_source_line): Save filename in last_filename. If the file + name was changed and profiling basic blocks, remember the new file + name for the next call to add_bb. -Wed Dec 4 23:17:23 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * libgcc2.c (L_bb): If BLOCK_PROFILER_CODE is defined, expand it + here directly. If BLOCK_PROFILER_CODE is not defined, add code + that appends basic block profile information into a text file + bb.out. Move sun3 specific block profiling code to m68k/sun3.h. - * reorg.c (try_merge_delay_insns, fill_simple_delay_slots): Correctly - update NEXT_TRIAL after possibly splitting an insn. + * Makefile.in (final.o): Final.c now includes tree.h. -Wed Dec 4 17:03:11 1991 Jim Wilson (wilson at sphagnum.cygnus.com) + * m68k/sun3.h (BLOCK_PROFILER_CODE): Move the sun3 specific basic + block profiling code here from libgcc2.c. - * gplus.gperf: Add throw and template keywords. Update private, - protected, and public definitions. +Wed Sep 1 19:00:06 1993 Jim Wilson (wilson@mole.gnu.ai.mit.edu) - * print-tree.c (print_node): Add missing indentation argument to - print_node call for values field. + * rs6000.md (truncdfsf2): Round to single instead of doing nothing. -Wed Dec 4 18:39:33 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * jump.c (jump_optimize): When optimize conditional jump around + unconditional jump, handle case where prev_label can be zero. - * objc-actions.c (build_objc_method_call): Define as static. + * c-decl.c (finish_decl): For static const variables, preserve + initializers instead of discarding them. -Wed Dec 4 17:04:49 1991 Michael Meissner (meissner at osf.org) +Wed Sep 1 18:43:01 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * reload.c (find_reloads): Bump REJECT for a hard register; just + not for a pseudo. - * mips-tdump.c (toplevel): Delete unnecessary include file stamp.h. + * rs6000.md: Clean up hex constants a bit in emitted insns. -Wed Dec 4 11:05:04 1991 Michael Collison (collison at osf.org) + * rs6000.c (input_operand): Allow "easy" FP constants. + * rs6000.h (SECONDARY_MEMORY_NEEDED): New macro. + * rs6000.md (movdf): Simplify by taking advantage of + having SECONDARY_MEMORY_NEEDED. + Fix bugs relating to order in which moves are done. - * encore.h (ASM_OUTPUT_LABELREF_AS_INT): add definition - * ns32k.h: ditto +Wed Sep 1 18:08:36 1993 Jim Wilson (wilson@cygnus.com) - * ns32k.h (ASM_OUTPUT_LABEL, ASM_GLOBALIZE_LABEL): If COLLECT is - defined provide alternate definitions + * reload.c (find_reloads_address_1): Handle SUBREGs same as REGs. - * encrose.h (ASM_OUTPUT_INT): If COLLECT is defined provide - alternate definition +Wed Sep 1 18:03:45 1993 Mike Stump (mrs@mole.gnu.ai.mit.edu) -Wed Dec 4 01:39:07 1991 Ken Raeburn (Raeburn@Cygnus.COM) + * collect2.c (is_ctor_dtor): Make sizeof argument match the + string. - * cp-pt.c (end_template_decl): For method templates, pop the class - binding level before the others rather than after. +Wed Sep 1 15:01:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * Makefile.in (start.encap): Build g++ here also. - * cp-spew.c (yylex): If identifier_type says PTYPENAME, and - following token is "<", force looking_for_typename to be - non-negative. +Tue Aug 31 16:30:53 1993 Jim Wilson (wilson@cygnus.com) - * 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. + * combine.c (make_compound_operation): Handle the case + (and (xor/ior (lshift...) (lshift...)) ...). + (make_field_assignment): In get_pos_from_mask call, only invert + bits in mode mask. - * cp-decl.c (maybe_globalize_type): Don't do it if the identifier - that names the type doesn't currently have a type value. + * reload.c (push_reload): Abort is secondary_reload wants same + class as an input reload. -Wed Dec 4 01:06:28 1991 Michael Tiemann (tiemann at cygnus.com) + * Makefile.in (libgcc1.a, libgcc2.a): Don't use set -e. + * configure (i[34]86-*-lynxos, m68k-*-lynxos, sparc-*-lynxos): Use + xm-lynx.h, x-lynx. Don't run fixincludes. + * x-lynx, xm-lynx.h: New files. - * 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. + * Makefile.in (xsys-protos.h): Use fixtmp.c not tmp.c, and delete + it afterwards. - * 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. + * function.c (assign_stack_temp): When allocate a slot too large, + split extra off into a slot of its own. + (combine_temp_slots): New function. + (free_temp_slots, pop_temp_slots): Call combine_temp_slots. - * cp-decl.c (maybe_build_cleanup): When building cleanups, pass - TYPE_MAIN_VARIANT to `build_delete'. +Tue Aug 31 06:35:37 1993 David Edelsohn (edelsohn@npac.syr.edu) -Tue Dec 3 22:52:33 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * rs6000.md: (zero_extendqisi2, zero_extendqihi2): Change anonymous + patterns to use 16-bit and 32-bit hexadecimal values and masks + instead of bit ranges if constant. + (rotlsi3, lshrsi3, move condition codes, scc insns): Likewise. - * 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. +Tue Aug 31 06:25:52 1993 Paul Eggert (eggert@twinsun.com) -Tue Dec 3 22:34:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-decl.c (struct c_function): Remove unneeded enum_next_value. + (push_c_function_context, pop_c_function_context): Don't save it. - * configure: Support --objdir. +Mon Aug 30 16:16:56 1993 Paul Eggert (eggert@twinsun.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. + * c-decl.c (get_parm_info, store_parm_decls): If PROMOTE_PROTOTYPE, + promote all integral types shorter than int, including short enums. + * c-typeck.c (convert_arguments): Likewise. + * cp-decl.c (grokparms): Likewise. + * cp-except.c (finish_exception_decl): Likewise. + * cp-typeck.c (convert_arguments): Likewise. - * 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. +Sun Aug 29 18:34:25 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * xm-sparc.h (alloca): If using Sun CC, include alloca.h. - If using GCC, define as __builtin_alloca the way other machines do. + * rs6000.h (TARGET_NO_FP_IN_TOC): New; deleted TARGET_FP_IN_TOC. + (TARGET_SWITCHES): Rearrange to have three TOC choices. + (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Use TARGET_NO_FP_IN_TOC. + * rs6000.c (output_toc): Likewise. - * cccp.c (print_containing_files): Print the nominal file names. +Sat Aug 28 15:04:35 1993 Jim Wilson (wilson@cygnus.com) -Tue Dec 3 16:54:04 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * mips.h (SELECT_SECTION): Simplify sdata_section test. - * jump.c (jump_optimize): If branches are expensive, convert jumps - around increments or decrements by one into an increment by the - conditional expression. + * lynx.h (CPP_SPEC): Use include_v not include-v. + (LINK_SPEC): Add missing `-' before `k' option. + (PREFERRED_DEBUGGING_TYPE): Define to DBX_DEBUG. + (SDB_DEBUGGING_INFO): Define. + (MD_EXEC_PREFIX): Define to /usr/local/lib/gcc-. + (LINK_LIBGCC_SPECIAL_1): Define. + (NAME__MAIN, SYMBOL__MAIN): Define. - * combine.c (simplify_comparison): Don't remove a SUBREG unless - it doesn't affect either operand. + * sparc.h (EXTRA_CONSTRAINT): Delete 'S'. + * sparc.md (call+1, call+2, call_value+1, untyped_call+1): Split + into two patterns, one using address_operand and 'p', the other + immediate_operand and 'i'. - * 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. +Fri Aug 27 15:43:19 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Dec 3 12:01:12 1991 Jim Wilson (wilson at sphagnum.cygnus.com) + * combine.c (nonzero_bits): Fix reversed test for when we + need to insert extra bits when sizes differ. + (nonzero_bits, case EQ): Always return STORE_FLAG_VALUE when returning + integer mode; remove now-redundant test. - * mips.md: Use AND not IOR in define_function_unit definitions. - Correct setting of MODE attribute in various insn patterns. + * rs6000.h (LINK_SPEC): Add -bexport:/usr/lib/libg.exp when -g. -Tue Dec 3 08:31:18 1991 Michael Tiemann (tiemann at cygnus.com) +Fri Aug 27 13:17:28 1993 Jim Wilson (wilson@cygnus.com) - * 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. + * rs6000.c (print_operand_address): When TARGET_MINIMAL_TOC, use + r30 instead of r2 for TOC references. + (output_prologue): If TARGET_MINIMAL_TOC, and the constant pool + is needed, then setup r30. + (output_toc): When TARGET_MINIMAL_TOC, use .long instead of .tc. + * rs6000.h (TARGET_MINIMAL_TOC): New macro. + (TARGET_SWITCHES): Add -mminimal-toc and -mno-minimal-toc. + (ELIMINABLE_REGS): Add elimination for r30. + (CAN_ELIMINATE): Add case for r30. + (INITIAL_ELIMINATION_OFFSET): Add case for r30. + (toc_section): When TARET_MINIMAL_TOC, initialize toc_table. - * 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. +Thu Aug 26 17:59:38 1993 Doug Evans (dje@cygnus.com) - * cp-decl2.c (constructor_name): Handle case when THING is a - UNION_TYPE. + * gstdarg.h, gvarargs.h: Add support for H8/300H. + * va-h8300.h: New file. -Tue Dec 3 06:35:38 1991 Michael Tiemann (tiemann at cygnus.com) +Thu Aug 26 15:15:27 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * jump.c (duplicate_look_exit_test): If REG_MAP is non-zero, call - replace_regs on the REG_NOTES of COPY. + Cygnus<->FSF C++ front-end merge. + Wed Aug 25 17:55:58 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-spew.c (scan_tokens): Don't read past '='. + * cp-class.c (alter_visibility): Properly grok protected visibility. - * 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). + Wed Aug 25 12:55:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Dec 2 18:53:42 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-typeck.c (c_sizeof): If we're given an OFFSET_TYPE, work with + the type it refers to. - * cse.c (cse_around_loop): Fix typo in comment. - * dbxout.c (dbxout_type_fields): Likewise. + * cp-decl.c (finish_function): Properly handle inline functions, + don't just call rest_of_compilation. - * 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. + * cp-decl2.c (flag_inline_debug): Deleted, never used. + (lang_f_options): Deleted -finline-debug. + * toplev.c (lang_options): Likewise. - * combine.c (make_compound_operation): Change (lshiftrt (ashift ...)) - to a ZERO_EXTRACT, not a SIGN_EXTRACT. + Tue Aug 24 16:06:23 1993 Mike Stump (mrs@poseidon.cygnus.com) -Mon Dec 2 15:09:13 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-dem.c: Deleted. See demangler in the binutils distribution. - * 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. + Tue Aug 24 14:24:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * next.h (SELECT_SECTION): Test TREE_CONSTANT as well as TREE_READONLY. + * cp-decl.c (start_function): Don't get ready to complain about a + built-in C-linkage function against a C++-linkage function. - * xm-i86v[34].h: Renamed from xm-i860v[34].h. - * configure: Corresponding changes. + Tue Aug 24 13:54:43 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) - * m68k.c (output_function_epilogue): Put %R on all regs in asm_fprintf. + * g++.c: also include - * 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. + Tue Aug 24 05:39:57 1993 Michael Tiemann (tiemann@blues.cygnus.com) - * objc-actions.c (build_message_expr): Fix typo. + * cp-parse.y (id_scope): Renamed from scoped_id. Also added handler + for case when rule appears after `dont_see_typename' action. Now + handles pointer-to-member syntax. - * configure: Add missing fi to finish last change. + Mon Aug 23 14:04:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cse.c (simplify_binary_operation): Restore missing break in case DIV. + * cp-parse.y (datadef): Disallow forward declaration of an enum. - * sdbout.c (sdbout_init): Explicitly do nothing. - (sdbout_typedefs): Function deleted. + * cp-class.c (finish_struct): Set LAST_X to X, so we keep the chain + in some semblance of sanity. Makes more than one nested typedef + work properly. + * cp-decl.c (grokdeclarator): Rewrite how class-local typedefs are + handled to generate a TYPE_DECL that's useful. -Mon Dec 2 12:504:35 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) + * cp-decl.c (start_function): Don't error out if it's a static + function; don't return 0, which can cause other problems. - * config-gcc.com: Finish changeover from tm-*.h to *.h. + Sun Aug 22 18:00:57 1993 Michael Tiemann (tiemann@blues.cygnus.com) -Sun Dec 1 05:18:32 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-decl.c (duplicate_decls): Set DECL_OVERLOADED flag on "C" + functions so that they are treated properly when "C++" functions of + the same name are declared before they are. - * cp-search.c (lookup_{field,fnfields}): If PROTECT is 0, don't - memoize the entry we find. + Sun Aug 22 13:31:44 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-decl.c (grokvardecl): Call `build_lang_field_decl' instead of - `build_decl' if we retroactively allocate a VAR_DECL. + Fix how we handle binding levels, and tweak Niklas's new scoping + code to work 100%. This work should significantly improve how + g++ handles the use of nested classes. + * cp-tree.h (NEW_CLASS_SCOPING): Default to 1 now! + * cp-decl.c (pop_binding_level): Set current_binding_level to be + class_binding_level if it's non-NULL. Change code that looks for + our method of climbing back up the binding levels when we're + dealing with a parm. + (pushlevel_class): Call push_binding_level, not pushlevel. + (poplevel_class): Don't weird out if level is 0. DO NOT set + class_binding_level to the level_chain, this was the biggest bug + that made the pushes and pops to end up being unbalanced. + Call pop_binding_level instead of manually putting the level on + the free_binding_level chain. + (pop_from_top_level): Don't call poplevel if previous_class is + non-NULL. + (finish_function): Call expand_start_bindings and + expand_end_bindings in a balanced way. + (finish_function): Don't flail around screwing with the RTL for + the function in a very special case, just always call + rest_of_compilation as we normally would. + (finish_method): Call poplevel, not pop_binding_level. + * cp-class.c (pushclass): Don't call unuse_fields. + * cp-tree.c (break_out_calls): Always call copy_node, not just + when changed++ == 0. + * cp-search.c (bridge_obstack): Deleted. + (push_class_decls): Use search_obstack, not bridge_obstack. + (init_search_processing): Don't init bridge_obstack anymore. + + * cp-init.c (build_new): Don't clear LOOKUP_COMPLAIN on flags, since + we need to honor the visibility of what we find. + + Sat Aug 21 12:07:26 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl.c (grokdeclarator): Give an error about an array of + offset types and method types, in addition to reference types. + Also make sure to set `type' to be error_mark_node for each. + + * cp-parse.y (primary, PLUSPLUS/MINUSMINUS): Resolve the OFFSET_REF + here. + * cp-typeck.c (build_x_unary_op): Not here. + + * cp-class.c (finish_struct): Set DECL_CLASS_CONTEXT only if it's + a virtual function. + * cp-decl.c (grokfndecl): Communicate the virtual bit to function + decls that overload a virtual function from a base class. + * cp-search.c (dfs_pushdecls): Look at DECL_CLASS_CONTEXT if it's + a virtual function. + + Fri Aug 20 13:35:54 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + Make the g++ driver work with MS-DOS. + * g++.c (P_tmpdir, {R,W,X}_OK) [__MSDOS__]: Defined. + (choose_temp_base_try, choose_temp_base, perror_exec, + run_dos) [__MSDOS__]: New functions for the g++ program to operate + correctly under MS-DOS. + (temp_filename, temp_filename_length) [__MSDOS__]: New variables. + (main): Fix off-by-one error in allocation of arglist. When + running the main GCC program, handle running it under OS/2, MS-DOS, + as well as on a system that has execvp(2). Only find the location + of the GCC executable if we're not using DOS. + + * cp-decl.c (poplevel): Only call remember_end_note if we haven't + already created the block. Set TREE_USED on the block. + (duplicate_decls): If the type of either the old or new decl is an + error_mark_node, we've already issued an error so set types_match + to be 1 now. + (xref_defn_tag): Mark the TYPE_DECL as ignored if doing dwarf + debugging. + + * cp-parse.y (base_init, nodecls): Call keep_next_level to make + sure the BLOCK node is kept with the outermost curly braces of a + function. + (compstmt): For `{ }', insert a .pushlevel and do all of the other + stuff we need in every other compstmt situation, to generate proper + debugging for such things and handle the binding levels properly for + them. -Sun Dec 1 00:10:18 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Thu Aug 19 18:24:25 1993 Mike Stump (mrs@cygnus.com) - * configure: Convert option syntax from + to --. - Support --target. + * cp-init.c (build_vec_delete): Wrap void COND_EXPR in NOP_EXPR, so + that the backend does not abort when trying to use the void mode + expression. Fixes make check (tString.o) in libg++. - * i386v4.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_GLOBAL): Deleted. - (ASM_FILE_START): Deleted. - (STARTFILE_SPEC, LIB_SPEC, STANDARD_STARTFILE_PREFIX): Deleted. - (STDC_VALUE): Deleted. + Thu Aug 19 12:21:12 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * real.h (REAL_VALUE_TRUNCATE): Check for same size as SFmode. + * cp-typeck.c (build_x_unary_op): When we receive an OFFSET_REF, + resolve it before looking for a way to handle the operation. - * config/*.h: Renamed from tm-*.h. #includes and comments changed. - * configure: Changed accordingly. - * t-*: tm-*.h file names changed. + * cp-method.c: Include ctype.h. - * gnulib2.c (__enable_execute_stack): Renamed function. - * convex.h (INITIALIZE_TRAMPOLINE): Use new name. + Thu Aug 19 12:00:08 1993 Mike Stump (mrs@cygnus.com) -Sun Dec 1 08:57:45 1991 Michael Meissner (meissner at osf.org) + * cp-class.c, cp-search.c (NEW_SEARCH, NEW_CONVERT, + CHECK_convert_pointer_to_single_level): Remove ability to revert to + old code, and remove checks. Cleans-up the code a little. - * cccp.c (main): Add cast in front of alloca for non GCC compilers. + Thu Aug 19 00:41:55 1993 Mike Stump (mrs@cygnus.com) -Sat Nov 30 22:33:24 1991 Chris Smith (csmith@convex.com) + * cp-init.c (expand_aggr_init): Avoid faulting, give error instead. - * config.subr: Recognize -c3*. - New alternatives for convex-c3*. - * configure: Alternatives for convex rewritten. + Wed Aug 18 22:43:25 1993 Mike Stump (mrs@cygnus.com) - * gnulib2.c (__execute_enable_stack): New function for Convex only. + * cp-lex.h (RID_BIT_TYPE, RIDBIT_SETP, RIDBIT_NOTSETP, RIDBIT_SET, + RIDBIT_RESET, RIDBIT_RESET_ALL, RIDBIT_ANY_SET): New RID macros, + replaces RIDBIT macro. The new macros allow us to easily expand + past 32 RIDs. + * cp-decl.c (grokvardecl, grokdeclarator): Use them. - * gcc.c (do_spec_1): Use \ as quoting char. + * cp-decl.c (grokdeclarator): Implement `mutable' keyword. + * cp-lex.c (init_lex, ): Ditto. + * cp-lex.h (enum rid): Ditto. + * cp-ptree.c (print_lang_decl): Ditto. + * cp-tree.h (struct lang_decl_flags, DECL_MUTABLE_P): Ditto. + * cp-typeck.c (build_component_ref_1, build_component_ref): Ditto. + * gplus.gperf (mutable): Ditto. + * cp-hash.h: Regenerate. - * 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-tree.h (struct lang_type): Fill out type_flags to multiple of 4 + bytes for MIPS. - * convex.h (SIZE_TYPE, PTRDIFF_TYPE): Make them ints rather - than longs to match usage in /usr/include. + Fri Aug 13 16:07:46 1993 Brendan Kehoe (brendan@lisa.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). - - * convex.h (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE, - INITIALIZE_TRAMPOLINE): Define. - - * convex.h (INITIAL_FRAME_POINTER_OFFSET): Define. - - * convex.h (RTX_COSTS): Specify costs to prevent multiply - from being synthesized from shifts (which aren't faster). - - * convex.h (NOTICE_UPDATE_CC): No need to do CC_STATUS_INIT, - cc is never looked at. - - * convex.h (VTABLE_USES_MASK, VINDEX_MASK, SET_DECL_VINDEX): - define so g++ works. - - * convex.h: If COLLECT is defined, define output macros for - collect to call. - - * convex*.h: If !traditional, define _LONGLONG and 64-bit - typedefs to prevent types.h from murdering ansi compilations. - - * 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. - - * 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. - - * convex.md (bit manipulation peepholes): remove, now done in - combine. - - * convex.md (indirect_jump): Define. - - * convex.c (const_double_{high,low}_int): Just return the - appropriate word, remove slow float computations. - - * math-convex: New file to use builtin instructions. - - * x-convex: Use cc -pcc to bootstrap gcc. - -Sat Nov 30 10:21:26 1991 Ron Guilmette (rfg at ncd.com) - - * tm-i386v4.h (DBX_REGISTER_NUMBER): Different renumbering. - - * tm-svr4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Changed - so that the progbits parameter actually appears in the definitions. - - * tm-svr4.h (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Adapted - for change in CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP. - -Sat Nov 30 07:05:06 1991 Michael Tiemann (tiemann at cygnus.com) - - * 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. - - * 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-lex.c (DEBUG_DEFAULT_FUNCTIONS): Take out the #undef, so we can + use the command line to turn this on. -Wed Nov 27 15:01:52 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (grokdeclarator): Look for IDENTIFIER_TEMPLATE in the + name of current_class_type, not in current_class_type itself. - * config-gcc.com: Renaming of out-vax.c. - * make-cc1.com: Link dbxout with all languages. Add cp-spew. + * cp-decl.c (pushdecl): Change to also check TREE_PUBLIC on the decl + in question, and do a pedwarn_with_decl instead of + warning_with_decl for conflicting extern declarations. - * cccp.c (include_defaults_array): Fix typo. + Fri Aug 13 12:26:41 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * gstddef.h: Handle _STDDEF_H_. + * cp-tree.h: Delete all the old PARANOID stuff, it's suffered + serious bit rot. + (PRINT_LANG_DECL, PRINT_LANG_TYPE): Deleted, not used anymore. + (LANG_ID_FIELD, SET_LANG_ID): New macros. + ({,SET_}IDENTIFIER_{LABEL_VALUE, IMPLICIT_DECL, AS_DESC, AS_LIST, + ERROR_LOCUS}): Redefine these macros to use the new LANG_ID_FIELD + and SET_LANG_ID ones, so everything is much cleaner and readable. - * configure.bat, Makefile.dos: New files. + * cp-decl.c (pushtag) [NEW_CLASS_SCOPING]: Push into the template's + class scope before trying to push the decl, and then pop back out. + (globalize_nested_type) [NEW_CLASS_SCOPING]: Asserts 348 and 349 + aren't correct, shadow can come out to be null in some situations. - * 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. + Thu Aug 12 10:56:50 1993 Mike Stump (mrs@cygnus.com) -Wed Nov 27 13:34:15 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-method.c (build_overload_name): Allow the debugger to + deterministically demangle names with more than 9 nested class + levels. - * 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. + Thu Aug 12 00:46:54 1993 Mike Stump (mrs@cygnus.com) - * combine.c (simplify_comparison, ASHIFT case): Prevent shift by - HOST_BITS_PER_INT for inequality comparisons. + * cp-search.c (pushd_stack_level): Fix memory corruption problem. + Don't assume that the obstack won't move, because they will. Among + other things, the fix allows one to nest classes upto 240 levels + deep, instead of 60 or so. - * fold-const.c (operand_equal_p): Arguments are not equal if - signedness differs. Conversions don't match if signedness differs. + Thu Aug 12 00:38:05 1993 Per Bothner (bothner@kalessin.cygnus.com) - * sparc.md (movsi, movhi, movqi, movdi): Prohibit matches that - would require reloading by the use of conditions. + * cp-decl2.c (finish_file): Use new get_file_function_name(). + * cp-tree.h (FILE_FUNCTION_FORMAT): No longer needed. - * alloca.c (alloca): Add parens to make precedence clearer. + Fri Aug 6 11:37:08 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-news.h (PRINT_OPERAND): Add 68040 support so that the compiler - will bootstrap. + * cp-decl.c (pop_binding_level) [DEBUG_CP_BINDING_LEVELS]: Don't + call abort, since we need to see where things end up. -Wed Nov 27 09:41:13 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Aug 6 11:13:57 1993 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): Blast away old DECL_SIZE on + base_layout_decl so that the old value is not reused, but rather the + new value in the TREE_TYPE (TYPE_SIZE ()) will be. - * recog.c (indirect_operand): Correctly handle case where we have - a (subreg (mem X) C) after reload. + Thu Aug 5 18:45:26 1993 Mike Stump (mrs@cygnus.com) -Tue Nov 26 16:24:03 1991 Ron Guilmette (rfg at ncd.com) + * cp-init.c (emit_base_init): Move vbase vtable pointer init to very + end of base initialization code. Completes July 30 change. The + dynamic type of a virtual base should not be the type of the current + constructor, until after all bases are initialized. - * dwarfout.c (output_enumeration_type_die): Handle a GNU C - language extension: incomplete enum types. +Thu Aug 26 06:00:09 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * dwarfout.c (output_type): Fixed bug which causes DIEs for - file-scope tagged types to be generated in a local-scope - under some conditions. + * expr.c: (apply_args_register_offset): Don't use ANSI-style + definition. - * 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. +Wed Aug 25 19:37:26 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * 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. + * expmed.c (store_bit_field): Do not use bitfield instructions for + STRICT_ALIGNMENT machines if the MEM's alignment isn't as big as + the MEM's mode. - * 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 $. +Wed Aug 25 19:17:13 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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). + * c-typeck.c (format_char_info_print_table, "p"): Allow width. - * x-genix, x-i386sco, x-xenix (INSTALL): Define as cp. +Tue Aug 24 18:36:31 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Tue Nov 26 16:24:03 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * rs6000.c (output_{pro,epi}log): Don't need no-ops after calls + to functions to save and restore FP regs. - * gcc.c (default_compilers): Pass -A* to cpp. +Tue Aug 24 15:43:43 1993 Michael Meissner (meissner@osf.org) - * 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. + * osfrose.h (SUBTARGET_SWITCHES): Add -mlarge-align and + -mword-align to control whether alignments of > 4 are honored. + (ASM_OUTPUT_ALIGN_CODE): If -mlarge-align allow alignments > 4. + (ASM_OUTPUT_ALIGN): Ditto. + (ASM_OUTPUT_LOOP_ALIGN): Always do a .align 2. + (FUNCTION_BLOCK_PROFILER): Define. + (BLOCK_PROFILER): Define. - * configure (m68000-hp-hpux*): Use xm-hp320.h. +Tue Aug 24 14:04:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * stmt.c (expand_value_return): New subroutine. - (expand_return): Use that. + * pa.c (compute_frame_size): Always align stack to 64 byte + boundary. - * make-gcc.com: New name for make.com. + * pa.h (STACK_BOUNDARY): Stack pointer is 512 bit (64 byte) + aligned. - * stor-layout.c (layout_record): Return list of static members. - (layout_type): Lay them out here. + * pa.c (output_call): Use ASM_OUTPUT_INTERNAL_LABEL instead of + output_asm_label. - * expmed.c (init_expmed): Use 3 as shift count for shift_cost. +Tue Aug 24 11:24:27 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * Merge of Objective C related changes since June 1. + + * objc/xforward.c, objc/mutex.h: Files removed. + * objc/encoding.[ch]: New files. + * objc/todo: File removed. + + Tue Jun 1 00:05:12 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * expr.c (apply_args_register_offset): New function + (apply_args_reg_offset): New variable + (apply_args_size): Added initialization of apply_args_reg_offset. + + * objc-act.c (offset_is_register): New variable + (forwarding_offset): Use apply_args_register_offset to get + register offset. + (encode_method_def, encode_method_prototype): Prepend argument + offset by '+' if passed in register. + (apply_args_register_offset): Added declaration. + + Sun Jun 6 20:57:03 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc/encoding.h, objc/encoding.c: New files. + * objc/Object.m (-performv): Use new objc_msg_sendv. + * objc/sendmsg.c (objc_msg_sendv): Use new encoding facilities. + * objc/objc.h (arglist_t): Data-definition changed. + * objc/xforward.c: File removed. + * objc/Makefile (sendmsg.c, fflags, xforward): Targets removed; + (OBJC_O): Added encoding.o; + (OBJC_H): Added encoding.h, removed mutex.h. + + * objc/objc.h (nil_method): Don't define it, import it from sendmsg.c. + + Wed Jun 16 17:39:56 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc/objc-api.h: (CLS_SETNUMBER): Clear old number + * objc/sendmsg.c (__objc_update_dispatch_table_for_class): + Don't free dtable... (memory leak to make posing work) + * objc/class.c (class_pose_as): lazy copy dtables. + #include sarray.h + + Tue Jun 22 21:39:11 1993 Kresten Krab Thorup (krab@xiv) + + * objc/class.c (class_pose_as): Rewritten + * objc/sendmsg.c (__objc_update_dispatch_table_for_class): + Free old dispatch table and install a new. + + Tue Aug 24 00:41:35 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc-act.c (generate_method_descriptors, generate_ivar_lists, + generate_dispatch_tables): Reorganized use of constructors. + (build_descriptor_table_initializer, build_ivar_list_initializer, + build_dispatch_table_initializer): Removed argument `int *size'. + + Tue Aug 24 00:52:04 1993 Kresten Krab Thorup (krab@iesd.auc.dk) + + * objc/sendmsg.c (__objc_install_dispatch_table_for_class): + Dynamically expand dispatch table when full. - * x-sco: File deleted. +Mon Aug 23 19:37:33 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * print-tree.c (print_node): Always be brief for vector elts. + * pa.h (TARGET_TRAILING_COLON): Delete switch. TARGET_GAS now + controls the use of trailing colons. -Tue Nov 26 07:42:41 1991 Michael Tiemann (tiemann at rtl.cygnus.com) +Mon Aug 23 18:46:14 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - * cp-decl.c (grokdeclarator): Fix typo involving ~RID_STATIC. + * config/m68k/dpx2g.h (ASM_LONG): Move from dpx2.h. -Mon Nov 25 21:51:09 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * configure (m68k-bull-sysv): Add support for working with native + assembler. + * config/m68k/dpx2.h (MOTOROLA): Define this. + (VERSADOS): This the name of the DPX2 assembler. Define this in case. + (USG): Define this. + (SGS_NO_LI): define this to suppress jump table usage. + (TARGET_DEFAULT): Define this to 3 inside the conditional USE_GAS + since bitfields do not work a clean way on DPX2. + (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, + SELECT_RTX_SECTION): #undef these. + (READONLY_DATA_SECTION): Define to data_section. + (*_ASM_OP, ASM_OUTPUT_*): Define these accordingly to the native + assembler syntax. + (LONG_DOUBLE_TYPE_SIZE): Set to 64 to not use XFmode. + (REAL_ARITHMETIC): Define this to use the software floating point + emulator. + (JUMP_TABLES_IN_TEXT_SECTION): Define this to 1. + (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Override m68k.h default. + (ASM_OUTPUT_ASCII): add a new variable to take care of the lentgh of + the operand field which must be < 80 chars. + (PRINT_OPERAND_ADDRESS): Override m68k.h default. + (PUT_SDB_TYPE): Output type in decimal. + (PUT_SDB_FUNCTION_[START|END]): Override sdbout.c default. + (PUT_SDB_BLOCK_[START|END]): Override sdbout.c default. - * optabs.c (emit_cmp_insn): If both operands are VOIDmode, - put first operand into register, not second. +Mon Aug 23 18:33:26 1993 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. + * fold-const.c (twoval_comparison_p): Add new arg, SAVE_P; all + callers changed. + (fold, case EQ_EXPR): If SAVE_P is true after call to + twoval_comparison_p, call save_expr on the expression we make. -Mon Nov 25 20:51:00 1991 DJ Delorie (dj@ctron.com) +Mon Aug 23 07:57:41 1993 Michael Meissner (meissner@osf.org) - * cccp.c (main): Look in env vars to override header dir list. - * gcc.c (process_command): Likewise. + * i386/osfrose.h (CC1_SPEC, CPP_SPEC): If NO_UNDERSCORE is + defined, the ELF compiler defaults to -mno-underscores to remove + leading underscores. Clean up ROSE -pic options so that they are + never passed when building ELF objects. + * i386/osfelf.h: Likewise. - * 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. +Sun Aug 22 23:36:24 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Mon Nov 25 17:18:52 1991 Michael Collison (collison at osf.org) + * expr.c (expand_builtin_apply): Fix typo. - * x-encrose: New file for mmax running OSF/1. - * t-encrose: ditto. + * pa.md (untyped_call): New define_expand. - * 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. +Fri Aug 20 12:24:50 1993 Ian Lance Taylor (ian@spiff.gnu.ai.mit.edu) - * 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. + * gcc.c (main): Correct August 6 change. - * tm-i386rose.h: New file for 386 running on OSF/1. - * x-i386rose: ditto - * t-i386rose: ditto +Thu Aug 19 19:19:19 1993 Jim Wilson (wilson@cygnus.com) - * config.subr: Added case for 'osf-'. - * configure: Added case for i386-osfrose + * combine.c (simplify_shift_const, XOR case): When applying + distributive law, use shift_mode and GET_MODE (varop) instead of + result_mode. - * 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 19 08:28:50 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Nov 25 17:18:52 1991 Jyrki Kuoppala (jkp at batman.hut.fi) + * rs6000.md (scc): Fix typo in scc with compare and set. - * 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. + * combine.c (can_combine_p): Don't reject SUBREG assignments here. + (subst): Instead, do it here, but also allow it in as a + nested SUBREG since the inner one will be eliminated. + (simplify_and_const_int): Convert (and (neg X) (const_int 1)) + to a shift when X is known to be either 0 or 1. - * out-ns32k.c (calc_address_cost): don't assume unknown RTX codes - have XEXP's which are rtx's. + * fold-const.c (fold): Handle EQ_EXPR and NE_EXPR where both + args are comparisons or BIT_AND_EXPR with constant 1. - * ns32k.md (movsi): don't use addr for the 32532 immed displacements. - (shift patterns): fixed a typo with %$%n. +Wed Aug 18 23:37:05 1993 Jim Wilson (wilson@cygnus.com) - * out-ns32.c (calc_address_cost) new function. - tm-ns32k.h (ADDRESS_COST): call calc_address_cost. + * mips.h (SELECT_SECTION): Put object in sdata only if size is + known, i.e. greater than 0. - * out-ns32k.c (print_operand_address): use error & debug_rtx if error. +Wed Aug 18 17:48:51 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * combine.c (try_combine): Don't split a PARALLEL of a SIGN_EXTEND + and the object being sign extended if we have made assumptions + about the form the I2DEST. - * ns32k.md (subsf+1): don't use ajdspb on the 32532. + * combine.c (nonzero_bits): Handle case when BYTE_LOADS_EXTEND is + not on and we are asked for something in a mode wider than it. - * tm-ns32k.h (CONST_OK_FOR_LETTER_P): positive values not OK for - constraint 'I' if on 32532. +Wed Aug 18 02:21:35 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * ns32k.md (ashl??): if TARGET_32532, use lsh{d,w,b}. + * pa.md (movdf insn): Distinguish between offsettable and + nonoffsettable memory locations when loading/storing a GR. + (movdi insn): Likewise. Loading a DImode constant can take as + many as 4 insns (length of 16 bytes). - * ns32k.md (adjusting stack pointer): don't use ajdp{b,w} if not 32532. + * pa.md (zero_extendqihi2): No need to explicitly set a length; + the defaults are correct. + (zero_extendqisi2, floatsisf2, floatsidf2): Likewise. + (fix_truncdfsi2, fix_truncsfdi2, fix_truncdfdi2): Likewise. - * ns32k.md (isv,insv-1,insv-2,extzv): use constraint K instead of - n for offset. + * pa.c (emit_move_sequence): Check both reload_in_progress and + reload_completed when choosing a scratch/temporary register. - * 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. + * pa.h (TARGET_KERNEL): Delete switch and all references to it. + * pa.c (emit_move_sequence): Always handle secondary reloads for + symbolic addresses. + (secondary_reload_class): Symbolic operands always need a secondary + reload from R1_REGS if their target class is not R1_REGS. + * pa.md (HIGH for symbolic operands): TARGET_KERNEL version is now + the only choice. Delete ! TARGET_KERNEL version. - * out-ns32k.c (print_operand): define as a void function. + * pa.h (DEFAULT_GDB_EXTENSIONS): GDB extensiosn are on by default. + * pa-hpux.h (DEFAULT_GDB_EXTENSIONS): Turn GDB extensions off. + * pa-hpux7.h (DEFAULT_GDB_EXTENSIONS): Likewise. - * ns32k.md (call_value): use operands[1], not operands[0] to check - for CONSTANT_ADDRESS_P. + * pa.h (TARGET_GAS): New target flag to control use of GAS + specific assembler directives. + (TARGET_SWITCHES): Support -mgas and -mno-gas. + (ASM_DECLARE_FUNCTION_NAME): If TARGET_GAS then emit .PARAM + directives for static functions so argument relocations work. + * pa-ghpux.h (TARGET_DEFAULT): Enable TARGET_GAS. + * pa-gux7.h, pa-utahmach.h, pa.h (TARGET_DEFAULT): Likewise. + * pa1-ghpux.h, pa1-utahmach.h, pa1.h (TARGET_DEFAULT): Likewise. - * out-ns32k.c (print_operand): eliminate - PRINT_OPERAND_EXTRACT_FLOAT, don't depend on HOST_WORDS_BIG_ENDIAN. + * pa.c (hppa_legitimize_address): Rework address computation for + x[n - m] so that problems with implicit space register selection + are avoided. - * tm-ns32.h (INDIRECTABLE_1_ADDRESS_P): use CONSTANT_ADDRESS_P, - not CONSTANT_P. + * pa.h (EXTRA_CONSTRAINT): Delete unused 'S' constraint. + * pa.md (call_internal_symref): Make pattern unavailable if + TARGET_LONG_CALLS. + (call_value_internal_symref): Likewise. - * 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. +Mon Aug 16 18:47:56 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * tm-ns32k.h (output_move_double, output_shift_insn): New declarations. + From parkes@uiuc.edu: + * encore.h, ns32k.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use .double instead + of .word. + * ns32k.h (CASE_VECTOR_MODE): Now SImode; was HImode. + * ns32k.md (tablejump): Now SImode and uses cased. - * out-ns32k.c (print_operand_address): Use fatal for errors. + * fold-const.c (fold, case EQ_EXPR): Re-enable converting + signed MOD operations to unsigned when inside comparisons + against zero, but only when the second operand of the MOD + is an integral power of two. - * ns32k.md (insv, extzv): Replaced with the pattern near insv in 1.40. +Mon Aug 16 12:38:28 1993 John Hassey (hassey@dg-rtp.dg.com) - * 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. + * fixinc.dgux: Fixed va_list problem in _int_varargs.h - * out-ns32k.c (print_operand_address): replaced the function with - a more clean version, written for gas syntax. +Mon Aug 16 11:26:57 1993 Kevin Buettner (kev@spuds.geg.mot.com) - * ns32k.md (call): #if 0 code which was used when GAS_SYNTAX was not - defined. - (call_value): likewise. + * configure (m88k-mot-sysv4*): Added new configuration for m88k + delta machines running svr4. - * 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. + * config/m88k/mot-sysv4.h: New file. - * ns32k.md (movsf): put #ifndef GAS_SYNTAX part inside #if 0 since - for now we only use GAS syntax. +Mon Aug 16 11:16:32 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * tm-ns32k.h (INDIRECTABLE_2_ADDRESS_P): add TARGET_SB as a - condition in addition to CONSTANT_ADDRESS_P. + * combine.c: (use_crosses_set_p): Check for partially overlapping + hard regs. - * tm-ns32k.h (MEM_REG): use CONSTANT_ADDRESS_P instead of GET_CODE - == SYMBOL_REG, add TARGET_SB to the second-part condition. +Sun Aug 15 20:17:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * ns32k.md (rotrsi3): fixed a typo NEGATE->NEG + * reorg.c (find_end_label): If a suitable RETURN insn exists at + the end of the current function, place a label in front of it for + the end_of_function_label. - * tm-ns32k.h: added a comment about CONSTANT_ADDRESS_P; it's not - strictly according to the spec. +Fri Aug 13 16:40:03 1993 Pat Rankin (rankin@eql.caltech.edu) - * tm-ns32k.h: added defaults for ABSOLUTE_PREFIX,IMMEDIATE_PREFIX - etc, using gas syntax. + * c-typeck.c (check_format): For scan of "%[", skip over scan set + til closing ']' to avoid processing it as ordinary format characters. - * out-ns32k.c: removed macro FP_REG_P. +Fri Aug 13 16:02:23 1993 Chip Salzenberg (chip@fin.uucp) - * 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. + * c-common.c (declare_hidden_char_array): New function to + factor out duplicate code in declare_function_name. + Don't set DECL_EXTERNAL (which is illegal without TREE_PUBLIC) + to prevent output; instead, set TREE_ASM_WRITTEN. + (declare_function_name): Use declare_hidden_char_array. - * 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. +Fri Aug 13 14:58:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-ns32k.h (TARGET_VERSION) says GAS syntax. - (TARGET_*) added some empty lines for clarity. + * config/ns32k/encore.h (ASM_OUTPUT_ALIGN_CODE): Override as no-op. -Mon Nov 25 14:29:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Fri Aug 13 14:29:17 1993 Stephen Moshier (moshier@world.std.com) - * Makefile.in (aux-output.o): Depend on insn-codes.h. + * sparc.h (LONG_DOUBLE_TYPE_SIZE): Define to 128. - * make-cc1.com: Handle print-rtl.c. + * real.c (GET_REAL, PUT_REAL): Add TFmode versions. + (MAXDECEXP, MINDECEXP): New decimal exponent limits + that vary with definition of LONG_DOUBLE_TYPE_SIZE. + (endian, ereal_atof, real_value_truncate, einfin, emdnorm, asctoeg): + Add cases for TFmode. + (etartdouble): New function converts REAL_VALUE_TYPE to TFmode + for use by ASM_OUTPUT_LONG_DOUBLE. + (edivm, emulm): Ifdef out, replace by faster multiply and divide. + (etoe113, toe113, e113toe): New type conversions for TFmode. + (asctoe113, e113toasc): New TFmode binary <-> decimal conversions. + (at top level): Define constants ezero, eone, emtens, etens, ... + in a new 20-byte format when LONG_DOUBLE_TYPE_SIZE = 128 and + set NE to 10. Otherwise, the internal format remains 12 bytes wide. + (etoudi, etodi, ditoe, uditoe): New functions, signed and unsigned + DImode float and fix, for real.c used in a libgcc-of-last-resort. + (esqrt): New function, correctly rounded square root for libgcc. + (etodec): Delete ifdef'd version. + (eroundi, eroundui): Rename to efixi, efixui and always + round towards zero. - * 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. + From frank@atom.ansto.gov.au (Frank Crawford): + (etoibm, toibm, ibmtoe): New conversions for IBM 370 float format. + (e53toe, e64toe, toe64, etoe53, toe53, etoe24, toe24, asctoe53, + asctoeg, make_nan): Ifdef for IBM. -Mon Nov 25 13:29:50 1991 Per Bothner (bothner at cygnus.com) + * real.h (REAL_VALUE_TYPE): Define array at least 20 bytes wide + if LONG_DOUBLE_TYPE_SIZE is 128 bits. + (etartdouble): Declare and use for REAL_VALUE_TO_TARGET_LONG_DOUBLE + when long double is TFmode. + (REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX): Must always round + towards zero. - * cp-except.c (init_exception_processing): Fix return type of - longjmp (from int to void). +Fri Aug 13 07:50:42 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Nov 25 13:11:51 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * expr.c (expand_expr, case SAVE_EXPR): Set MEM_IN_STRUCT_P + appropriately when the result is a MEM. - * rtlanal.c (refers_to_regno_p): Check for `x == 0' on repeat. + * integrate.c (expand_inline_function): Copy args that are in + hard regs instead of substituting them directly into insns. - * x-mips, xm-vms.h: Change cplus-* to cp-* in comments. - * x-tower (X_CFLAGS): Add missing `-'. + * rs6000.md (subsi3): Merge alternatives. + (comparison patterns): Eliminate generation of "sfi."; no such + instruction exists. - * unroll.c (unroll_loop): When simplifying loops executed only once, - use last_loop_insn not copy_end. +Thu Aug 12 21:24:01 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Nov 25 07:45:46 1991 Michael Tiemann (tiemann at rtl.cygnus.com) + * config/m68k/sun3.h (CPP_PREDEFINES): Define _CROSS_TARGET_ARCH. - * cp-except.c (init_exception_processing): Mark `ExceptionHandler' - constructor and destructor as being TREE_EXTERNAL, and mark the - `ExceptionHandler' type as being interface-only. +Thu Aug 12 19:02:47 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-decl.c (maybe_globalize_type): Don't test TYPE_BEING_DEFINED - for ENUMERAL_TYPE. + * rs6000.md (attribute "type"): Add new type, "branch". + (attribute "length"): New attribute; put on all insns that don't + have default length. + (branch patterns): If conditional branch won't reach, take + conditional branch around an unconditional branch. - * cp-class.c (modify_vtable_entry): Disable code which attempts to - encode in a vtable an indirection to another vtable entry. + * rs6000.md (plus): Split (plus (COMPARISON FOO ...) ...) at FOO. - * 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). +Thu Aug 12 14:04:40 1993 Michael Meissner (meissner@osf.org) -Mon Nov 25 00:41:14 1991 Per Bothner (bothner at cygnus.com) + * i386/osfrose.h (SUBTARGET_SWITCHES): Add -munderscores and + -mno-underscores. + (CPP_SPEC): If -mno-underscores, define __NO_UNDERSCORES__. + (LPREFIX): Redefine, to take -m{,no-}underscores into account. + (ASM_GENERATE_INTERNAL_LABEL): Ditto. + (ASM_OUTPUT_INTERNAL_LABEL): Ditto. + (ASM_OUTPUT_LABELREF): Ditto. - * 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 ... + * i386/osfelf.h (CPP_SPEC): If -mno-underscores, define + __NO_UNDERSCORES__. -Sun Nov 24 19:32:07 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * c-decl.c (pushdecl): Don't give nested warning messages if + DECL_IN_SYSTEM_HEADER is set in order not to give warnings when + defining new instances of __FUNCTION__ and __PRETTY_FUNCTION__. - * sched.c (update_links): Use PUT_REG_NOTE_KIND to change REG_NOTE. +Thu Aug 12 13:42:04 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) -Sun Nov 24 14:53:37 1991 Ron Guilmette (rfg at ncd.com) + * sparc.c (legitimize_pic_address): Delete 4th arg SCRATCH. + Fix all callers. + (emit_move_sequence): Delete 3rd arg SCRATCH_REG. Fix all + callers. If operand1 is an invalid PIC address, then legitimize + it before doing anything else. + * sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Delete case for invalid + PIC addresses. + (CONSTANT_ADDRESS_P): Reject invalid PIC addresses. + (LEGITIMATE_PIC_OPERAND_P): New macro. + (GO_IF_LEGITIMATE_ADDRESS): Reject invalid PIC addresses. + (LEGITIMIZE_ADDRESS): Fix call to legitimize_pic_address. + * sparc.md (reload_insi): Delete. + (*): Fix all callers of legitimize_pic_address and emit_move_sequence. - * cccp.c: Add `return 0;' statements to all do_* functions which - needed them to prevent spurious warnings. Also change plain - `return;' statements to `return 0;' statements where appropriate. + * sched.c (sched_analyze_insn): Handle USE before a JUMP_INSN just + like a USE before a CALL_INSN. + * function.c (thread_prologue_and_epilogue_insns): For the + epilogue, put USE insns immediately before the return insn. -Sun Nov 24 07:37:17 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * sparc.h (ASM_OUTPUT_DOUBLE): Always use REAL_VALUE_TO_TARGET_DOUBLE. + (ASM_OUTPUT_FLOAT): Always use REAL_VALUE_TO_TARGET_SINGLE. - * cse.c (cse_insn): When making equivalences of subparts of - a SET, avoid putting a (hard) register in the hash table twice, - each time with different modes. +Wed Aug 11 19:48:24 1993 Per Bothner (bothner@kalessin.cygnus.com) - * genrecog.c (write_tree_1,change_state): Don't check for a position - containing a '*' since we don't set it to that. - (main): Don't define recog_addr_dummy; no longer used. - * recog.c (recog_addr_dummy): No longer needed; wasn't actually used. - (init_recog_no_volatile, init_recog): Don't set recog_addr_dummy. + * tree.c (get_file_function_name): New function + for language-independent constructor name generation. + * objc-act.c (build_module_descriptor): Use it. + * tree.h (CONSTRUCTOR_NAME_FORMAT): Removed. - * expmed.c (store_split_bit_field, extract_bit_field): Abort if - operand_subword of target returns 0. - * expr.c (convert_move, move_block_from_reg, emit_move_insn): Likewise. +Wed Aug 11 19:50:05 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * combine.c (subst, case SUBREG): Don't allow making a SUBREG of - a hard reg in a mode not valid for that hard reg. - * emit-rtl.c (gen_lowpart_common, operand_subword): Likewise. + * reorg.c (try_merge_delay_insns): Fix typo. + (fill_simple_delay_slots): Only access the JUMP_LABEL field + if the INSN needing delay slots is a JUMP_INSN. - * expmed.c (extract_split_bit_field): Use operand_subword_force. - * expr.c (emit_move_insn): If operand_subword fails for non-const, - use operand_subword_force. +Wed Aug 11 15:09:52 1993 Michael Meissner (meissner@osf.org) - * expmed.c (expand_mult): Pass OP0 through protect_from_queue so we can - use it in a REG_EQUAL note and check it for being a MEM. + * c-typeck.c (output_init_element): Don't call default_conversion + for a STRING_CST if type is directly suitable for it. + (digest_init): Eliminate a lot of code that checks the variable + 'element', since element is always 0 in these code paths. - * rtl.def (SMIN, SMAX, UMIN, UMAX): New RTL codes. - * fold-const.c (const_binop, case MIN_EXPR, MAX_EXPR): Use MIN and MAX. - (fold, case MIN_EXPR, MAX_EXPR): Check for operands equal; check for - min (x, lowest-value-for-type) and max (x, highest-value-for-type). - (fold, case COND_EXPR): Look for conditionals that are equivalent - to ABS_EXPR, MIN_EXPR, or MAX_EXPR and convert them to the appropriate - expression. - * expr.h (smin_optab, smax_optab, umin_optab, umax_optab): New vars. - * gcc.texinfo (smin, smax, umin, umax): Add documentation. - * expr.c (expand_expr, case ABS_EXPR): Ignore ABS on unsigned types. - If jumps are expensive, we can do ABS with shifts and xors. - (expand_expr, case MIN_EXPR, MAX_EXPR): Try to do using new optabs. - * optabs.c (smin_optab, smax_optab, umin_optab, umax_optab): - Initialize new optabs. - * cse.c (simplify_binary_operation): New cases SMIN, SMAX, UMIN, UMAX. - * rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): New patterns. - * m88k.md (abssi2): Delete pattern; now done in expr.c. +Wed Aug 11 17:59:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * rs6000.md (scc): Correct typos in last change. + * combine.c (combine_instructions): Fix typo on test of basic block + number. - * expmed.c (expand_mult): TARGET will only be written once, so - function return register is OK. - Write a REG_EQUAL note so multiplications can be cse'ed. +Wed Aug 11 17:44:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expmed.c (emit_store_flag): Skip trying most sequences of insns - if branches are very cheap (BRANCH_COST == 0). - * expr.c (expand_expr, case COND_EXPR): Check for BRANCH_COST <= 1, - not equal to 1. - Know that emit_store_flag won't do most sequence if branches are very - cheap. + * configure (m68k-hp-bsd4.4*): Add missing *; + move before m68k-hp-bsd*. - * tm-vax.h (BRANCH_COST): Define to be equal to zero. +Wed Aug 11 09:21:56 1993 Ian Lance Taylor (ian@cygnus.com) -Sun Nov 24 07:07:31 1991 Michael Tiemann (tiemann at cygnus.com) + * fixincludes: Get SIZE_TYPE by invoking gcc rather than cc; gcc + location is passed in as fourth argument. + * Makefile.in (stmp-fixinc): Depend upon xgcc and cpp; pass + objdir/xgcc -Bobjdir/ as fourth argument to $(FIXINCLUDES). - * cp-decl.c (maybe_globalize_type): Don't globalize a type that's - being defined. +Tue Aug 10 15:12:11 1993 Jim Wilson (wilson@cygnus.com) -Sun Nov 24 05:08:57 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cse.c (cse_insn): After inserting src_eqv, check to see if it is + identical to any uninserted SET_SRCs, and if so, set their src_elt + to src_eqv_elt. - * c-decl.c (finish_struct): Use main variant checking ANSI bitfields. +Tue Aug 10 12:56:46 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * tm-tower-as.h (ASM_FILE_START): Use output_file_directive. + * pa.h (DOLLARS_IN_IDENTIFIERS): Define as 2. - * gcc.c (process_command): Treat `-' as file name, not option. +Mon Aug 9 19:02:49 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) -Sat Nov 23 20:28:58 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Merged fixproto stuff from Cygnus. - * cse.c (simplify_binary_operation): Remove duplicate code for SFmode - and DFmode; use of REAL_VALUE_TRUNCATE means that all modes can be - handled with the same code. - Truncate result as well as inputs to computations. + Fri Aug 6 12:23:04 1993 Per Bothner (bothner@kalessin.cygnus.com) - * cse.c (cse_basic_block): Allow recording of destinations in the - final insn of a LIBCALL block. + * fixproto, Makefile.in: Rename tmp.[ci] -> fixtmp.[ci]. - * flow.c (insn_dead_p): Add new argument CALL_OK. - (propagate_block): Pass new arg. - (libcall_dead_p): Indicate that we can accept a CALL when we use - insn_dead_p to see if the destination of the CALL is dead. + Tue Aug 3 22:24:58 1993 Per Bothner (bothner@kalessin.cygnus.com) - * genrecog.c (struct decision): Remove fields `dupcount' - and `reg_class' and all references; they were being set but never - used and are now obsolete. + * fixproto: Find not only nested directories, but also + links to directories. - * emit-rtl.c (gen_lowpart_common, operand_subword): Don't make - a new REG for the function return value until we after the RTL - is copied for possible inlining; use a SUBREG instead. + Mon Aug 2 18:58:35 1993 Per Bothner (bothner@kalessin.cygnus.com) - * combine.c (can_combine_p): Don't move insn past a volatile ref if - it is an `asm', even if non-volatile. + * fixproto: Add kludge to getting hit by double globbing. + * scan-types.sh: Fix to emit #define, not a typedef. + * patch-header.c (main): Make sure to print a space after + a function name when we didn't see a '('. + * Makefile.in (stmp-fixproto): Fix so (/*...*/) becomes (). - * gmicro.md: Fix punctuation problem causing syntax error. + Fri Jul 30 17:18:22 1993 Per Bothner (bothner@kalessin.cygnus.com) - * tm-rs6000.h (CONST_OK_FOR_LETTER_P): Add `O' and `P'. - * out-rs6000.c (reg_or_neg_short_operand): New function. + * fixproto: Append seen files to fixproto.list file, + instead of done_files variable (which could become too long). + * fixproto: Don't generate a huge rel_souce_files variable + (which might become too long); instead loop over directories. + * fixproto: Remove signal() from list of required functions + for signal.h, because we can't grok its complicted prototype. + * Makefile.in (mostlyclean): Also delete fixproto.list. - * rs6000.md (attribute "type"): New type `delayed_compare'. - Add define_function_unit for delayed comparisons. - Mark comparison results of certain insns as being delayed for - longer that normal comparison results; add a new missing types - of `compare'. - (seq, sle): Remove special-cases for (const_int 0) operands; use - alternative with constraint of `O' instead. - (sltu, sgeu): Support most constants in second operand. + Thu Jul 29 12:43:53 1993 Per Bothner (bothner@kalessin.cygnus.com) - * cse.c (prev_insn_cc0_mode): New variable. - (fold_rtx): When folding CC0, get the mode from prev_insn_cc0_mode. - (cse_insn): Save mode of SET of CC0 in prev_insn_cc0_mode. + * scan-decls.c (skip_to_enclosing_brace): New function. + * scan-decls.c (main): After a parameter list, skip + any following function body (usually for inline functions). -Sat Nov 23 17:01:47 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * fixproto: Fix to make sure stdlib.h and unistd.h get + the proper required_list, even when they need to be created. + * fixproto: Direct cpp error messages to /dev/null. + * patch-header.c: Make less verbose. - * expmed.c (init_expmed): Make REG a pseudo, not a hard reg. + Wed Jul 28 16:12:39 1993 Per Bothner (bothner@kalessin.cygnus.com) - * tm-m68k.h (RTX_COSTS): New macro. + * fixproto: Rewrite to use a case statement instead of eval to + set required_list and extra_check_list. + * fixproto: Simplify remaining call to tr improving portability. - * varasm.c (make_decl_rtl): Get rid of pedantic warning. + * scan-decl: Recognize inline functions, emitting typecode 'I'. + * patch-header (read_scan_file): Handle inline functions. + * patch-header (read_scan_file): Fix thinko. Rename variable. - * gcc.c (link_command_spec): Delete code for handling -collect. - (default_compilers): Get rid of the %x for g++. - This is because now collect is always supposed to be run. +Mon Aug 9 17:47:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-vms.h (ASM_OUTPUT_COMMON): Avoid void as type in :? operator. - * tm-sun3.h (ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): - Likewise. - * tm-vaxv.h (ASM_OUTPUT_ASCII): Declare `s' as unsigned char *. - * tm-crds.h (FUNCTION_EPILOGUE): Don't call FUNCTION_EXTRA_EPILOGUE. + * c-typeck.c (build_c_cast): For (void *) (FOO *) 0, return a nop_expr + so it doesn't count as a null pointer constant. + (convert_for_assignment, build_binary_op): Pedantically warn about + that case if looking for a null_pointer_constant. + (build_conditional_expr): Likewise. - * configure (i386-dontknow-*, ns32k-*-*): Alternatives deleted. - (m68k-tti2-*): Deleted. - (m68k-tti-*): Renamed from m68k-tti1-*. - - * i860.md (floatsidf2): Escape the doublequotes. - - * Makefile.in (final.o): Add insn-codes.h as dep. - (OBJS): Add dbxout.o. - (C_OBJS, OBJC_OBJS): Deleted here. - (CPLUS_OBJS): Deleted cp-dbxout.o. - (cp-dbxout.o): Target deleted. - -Sat Nov 23 06:33:24 1991 Michael Tiemann (tiemann at cygnus.com) - - * cp-spew.c (yylex): Don't see TYPENAME if LOOKING_FOR_TYPENAME - is < 0. Definitely see TYPENAME if LOOKING_FOR_TYPENAME > 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) + * ns32k.c (output_move_double): Fix typos in last change. - * 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. + * expr.c (store_expr): Don't return TEMP if it's a MEM. -Wed Nov 13 14:43:09 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Mon Aug 9 15:26:27 1993 Jim Wilson (wilson@cygnus.com) - * 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. + * varasm.c (assembler_variable): For XCOFF_DEBUG, restore section + if dbxout_symbol call changes it. -Tue Nov 5 17:01:05 1991 Ken Raeburn (raeburn at cygnus.com) + * sched.c (schedule_insns): Don't emit a NOTE at the end of the last + basic block if that would put it between a JUMP_INSN and a BARRIER. - * cp-pt.c (tsubst): For char_type_node, just build variant and - return it. - (tsubst, case FUNCTION_DECL): Walk methods more efficiently. + * mips.h (OPTIMIZATION_OPTIONS): Use |=, not &= to set -mpgopt. + * mips.c (function_arg, DFmode case): Set regbase to GP_ARG_FIRST + if cum->arg_number greater than or equal to 2. - * 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. +Mon Aug 9 07:31:07 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * optabs.c (widen_operand): New function. + (expand_binop, expand_unop): Call it. - * cp-pt.c (pop_template_decls): Don't explicitly clear out value - slots of identifier; let poplevel/poplevel_class do it. +Sun Aug 8 17:32:04 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-pt.c: Use build_lang_decl insteaed of build_decl for - all TEMPLATE_DECL and TYPE_DECL nodes. + * combine.c (num_sign_bit_copies): Properly handle case when MODE is + narrower than that of X. + (simplify_shift_const): Remove change of July 26. - * cp-tree.h (make_anon_name): Declare it. +Sun Aug 8 17:26:57 1993 Jim Wilson (wilson@cygnus.com) - * cp-pt.c (unify): Deleted unreachable code. + * sparc.c (sparc_type_code): Support range types. - * 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. + * expr.c (expand_increment): Call save_expr on inner expression if + it is itself an increment expression. - * 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. + * configure (*-*-riscos*): Set broken_install. + (mips-*-riscos[56789]sysv4): Use xm-sysv4.h. + * mips/xm-sysv4.h: New file. + * mips/svr3-5.h, mips/svr4-5.h (_SC_PAGE_SIZE): Define to + _SC_PAGESIZE if that exists. - * 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. + * sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Use fp_zero_operand. + * sparc.c (reg_or_0_operand): Use fp_zero_operand. + (fp_zero_operand): New function. -Tue Nov 5 13:46:06 1991 Tom Wood (wood at dg-rtp.dg.com) + * c-typeck.c (build_array_ref): Force array to be allocated on the + stack if it is accessed by out-of-bound constant integer subscript. - * sdbout.c (sdbout_init, sdbout_symbol): Don't reverse the - permanent types. + * configure (mips-*): Standardize indentation. + (mips-*-*bsd*): Use t-bsd and t-bsd-gas. + (mips-*-*sysv4*): Use t-svr4 and t-svr4-gas. + (mips-*-*sysv*): Use t-svr3 and t-svr3-gas. + * mips/t-bsd, mips/t-bsd-gas, mips/t-svr3, mips/t-svr3-gas, + mips/t-svr4, mips/t-svr4-gas: New files. - * cccp.c (make_definition): Eliminate previous change associated - with pretty-printing strings passed to do_define. - (pass_thru_directive): Move pretty-printing here. +Sun Aug 8 11:33:51 1993 John F Carr (jfc@Athena.mit.edu) -Tue Nov 5 11:21:34 1991 Michael Meissner (meissner at osf.org) + * expmed.c (SLOW_UNALIGNED_ACCESS): Define, but allow override. + (store_bit_field): Test that instead of STRICT_ALIGNMENT. + Also, allow fetching as non-bitfield if memory is aligned enough. + (extract_bit_field): Install code here like that in store_bit_field. - * 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. +Sun Aug 8 04:26:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Nov 5 09:54:08 1991 Tom Wood (wood at dg-rtp.dg.com) + * expr.c (expand_assignment): If WANT_VALUE is 0, return NULL. + (store_expr): Likewise. + Rename arg SUGGEST_REG to WANT_VALUE. + Never return TARGET if WANT_VALUE unless BLKmode. + Instead, return TEMP or a value copied from TARGET. + Pass 0 for WANT_VALUE in recursive calls that ignore value. - * tm-m88kv4.h, t-m88kv4, x-m88kv4: Renamed from *m88ksysv4*. + * varasm.c (contains_pointers_p): New function. + (assemble_variable): Use that. -Tue Nov 5 06:36:07 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * toplev.c (rest_of_decl_compilation): Don't look at DECL_IGNORED_P. + Don't output a read-only initialized extern variable. - * cse.c (simplify_relational_operation, unsigned comparisons): Don't - simplify unless mode of operand is a MODE_INT mode. + * c-common.c (declare_function_name): Set DECL_EXTERNAL in the decls. - * 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. +Sat Aug 7 22:25:42 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * gstddef.h: Renamed from stddef.h. - * Makefile.in (USER_H, install-common-headers): Install gstddef.h as - stddef.h. + * c-typeck.c (process_init_element): Don't call clear_momentary + if value is 0. -Mon Nov 4 17:54:04 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sat Aug 7 15:53:06 1993 Doug Evans (dje@canuck.cygnus.com) - * 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). + * caller-save.c (MAX_MOVE_MAX, MAX_UNITS_PER_WORD): New macros. + (regno_save_mode, regno_save_mem): Use them. + * tm.texi (MAX_MOVE_MAX, MAX_UNITS_PER_WORD): Document them. - * 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. + * c-decl.c (init_decl_processing): Make long long available to + use for SIZE_TYPE and PTRDIFF_TYPE. - * global-alloc.c (find_reg): If all_regs_p, use ALL_REGS, not - GENERAL_REGS. - * local-alloc.c (block_alloc): Likewise. +Sat Aug 7 14:47:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * genoutput.c (gen_expand): Record all the same information as - for a DEFINE_INSN. + * config/ns32k/ns32k.md (strict_low_part add/subtract recognizers): + Use %2, not %1, in template. - * 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. +Sat Aug 7 07:40:28 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Nov 4 16:29:01 1991 Mark Eichin (eichin at cygnus.com) + * reload.c (find_reloads): Don't combine two reloads if their + reload_reg_rtx values differ. - * cp-pt.c (overload_template_name): use build_lang_decl so that - lang_specific gets initialized properly. + * alpha.c (add_long_const): New function. + (output_{pro,epi}log): Use it. + If register save area is more than 32768 from SP, compute its + address into a register. - * cp-parse.y (LC): use make_lang_type to produce complete node, - not just make_node. + * expmed.c (expand_divmod): Clean up code and documentation, + especially in areas related to when copies are made. - * cp-ptree.c (print_lang_type): return if TYPE_LANG_SPECIFIC is - null, since everything printed here is in lang_specific. + * reload.c (push_reload, find_reloads): Treat (subreg (pseudo)) + and (subreg (mem)) the same. + If we have (subreg:M1 (mem:M2 ...) ...), never do anything + special if M1 and M2 are the same size. -Mon Nov 4 16:17:48 1991 James Van Artsdalen (james at raid.dell.com) + * tree.c (print_obstack_name): New function; derived from + original debug_obstack. + (debug_obstack): Call print_obstack_name. + * print-tree.c (print_node): Print obstack node is contained in. - * x-i386v4: New file. - * configure (i386-sysv4): Use it. +Sat Aug 7 04:47:43 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Nov 4 12:36:09 1991 Michael Meissner (meissner at osf.org) + * c-decl.c (finish_decl): Allow file-scope static incomplete array. - * gcc.texinfo (BRANCH_COST): Move so BRANCH_COST formats correctly. +Fri Aug 6 13:03:27 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -Mon Nov 4 08:03:44 1991 Tom Wood (wood at dg-rtp.dg.com) + * expr.c (expand_expr, case PLUS_EXPR): Goto binop2 not + both_summands if we should not be returning a plus. - * x-m88kdgux, x-m88ksysv4: Don't set XCFLAGS. +Fri Aug 6 16:35:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): Change "if (...) x = 0;" to use a - store-flag insn if jumps are expensive (BRANCH_COST). + * config/m68k/m68k.md (call and call_value pic recognizers) [HPUX_ASM]: + Output plain bsr, without `@PLTPC'. - * 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. +Fri Aug 6 16:12:08 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Mon Nov 4 07:19:36 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * alpha.c (reg_or_6bit_operand): New function. + * alpha.h (PREDICATE_CODES): Add reg_or_6bit_operand to list. + * alpha.md (shifts): Use reg_or_6bit_operand for shift counts. - * romp.md (movdf, movdi): When splitting, ensure we put in a CLOBBER - for a scratch register, when needed. +Fri Aug 6 15:57:58 1993 Ian Lance Taylor (ian@cygnus.com) - * tm-a29k.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define to be - compatible with those chosen by EPI. + * gcc.c (main): If standard_startfile_prefix is a relative path, + prepend standard_exec_prefix/MACHINE/VERSION and, if + GCC_EXEC_PREFIX is defined, GCC_EXEC_PREFIX/MACHINE/VERSION. - * tm-rs6000.h (REG_ALLOC_ORDER): Put CR registers before integer regs. + * configure: If config.status did not change, don't update its + modification time. - * cse.c (simplify_relational_operation): Fix error in last change. +Fri Aug 6 15:23:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Nov 3 12:22:41 1991 Torbjorn Granlund (tege at sics.se) + * c-typeck.c (output_init_element): Fix backward test in last change. + Use TYPE_MAIN_VARIANT. - * longlong.h (m68020 count_leading_zeros): Fix typo in previous - change. +Fri Aug 6 06:43:09 1993 Michael Meissner (meissner@osf.org) -Sun Nov 3 09:25:39 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * g++.c (fancy_abort): Provide function in case user does + #define abort fancy_abort when building GCC. - * cse.c (simplify_relational_operation, cases GEU, LTU, GTU, LEU): - Simplify comparisons that have known values such as (unsigned) x < 0. +Fri Aug 6 00:15:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * cccp.c (main): If -v, print header search dir list. - * mips.md (movsi_ulw, movsi_usw): Call mips_count_memory_refs if - needed. + * c-typeck.c (output_init_element): Call default_conversion here. + Set constructor_erroneous, etc., here. + (process_init_element): Not here. -Tue Oct 29 05:14:27 1991 Ken Raeburn (raeburn at cygnus.com) +Thu Aug 5 20:55:47 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cp-parse.y (template_def): Don't pass bogus declspecs to - start_decl. + Cygnus<->FSF merge. - * cp-pt.c (tsubst, case FUNCTION_DECL): Build new argument list - from method template, instead of retaining the old one. + Thu Aug 5 17:07:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Oct 29 00:44:51 1991 Ken Raeburn (raeburn at cygnus.com) + * cp-class.c (build_vtable, prepare_fresh_vtable): Turn on + WRITABLE_VTABLES stuff that I disabled July 30th. + * cp-pt.c: Include flags.h to get write_symbols. - * cp-class.c (finish_struct): Skip type fields if they are - template names bound to their expansions. + Thu Aug 5 15:50:25 1993 Mike Stump (mrs@cygnus.com) - * 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-class.c (finish_struct): Make DWARF conditional code, really + DWARF conditional (write_symbols == DWARF_DEBUG). + * cp-decl.c (pushtag): Ditto. + * cp-decl2.c (finish_vtable_vardecl): Ditto. + * cp-pt.c (end_template_instantiation): Ditto. + * cp-search.c (dfs_debug_mark): Ditto. - * cp-decl2.c (grokclassfn): Include length of class name when - creating assembler name for destructor; otherwise ambiguities - result. + Wed Aug 4 15:42:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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-typeck.c (build_object_ref): Pass the original basetype, not + the type value of it, into build_scoped_ref (completes change of + Jul 1). - * cp-method.c (fndecl_as_string): Print constructor_name of type - for constructor and destructor, not type name. + Wed Aug 4 14:40:35 1993 Mike Stump (mrs@cygnus.com) - * 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-class.c (related_vslot): Additional check to make sure vslots + are related. + * cp-class.c (modify_vtable_entries): Use DECL_CONTEXT, not + DECL_CLASS_CONTEXT when finding the vtable to put the virtual + function in, as otherwise we might not be able to find secondary + vtables. Ensures that the virtual function pointer will be put in + the correct vtable, instead of the wrong one. + * cp-class.c (modify_vtable_entry): Delete unused argument context. + * cp-class.c (modify_vtable_entries): Ditto. - * cp-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. + Tue Aug 3 08:24:50 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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-init.c (nc_nelts_field_id): New variable to cache the value of + the "nelts" identifier, to avoid unnecessary calls to get_identifier. + (init_init_processing): Use it. + (build_new): Likewise. + (build_vec_delete): Likewise. - * cp-tree.def: Fix up some comments relating to PT-related types. + * cp-decl2.c (walk_vtables): Make sure the type of VARS isn't an + error_mark_node when we're running down the list. - * tree.c (init_tree_codes): Now void, in agreement with decl - elsewhere. + * cp-decl.c (grokdeclarator): Give an error and return an + error_mark_node, instead of saying sorry, when we're dealing with a + structure that's not yet been defined. Make sure type isn't an + error_mark_node when looking for an anonymous type. -Mon Oct 28 22:07:44 1991 Jeffrey A Law (law at b117.super.org) + * cp-pt.c (end_template_instantiation): If we're supplying dwarf + debug info, set up the TYPE_STUB_DECL and output the rest of the + debug output for the decl. - * output.h (current_function_uses_pic_offset_table): Declare here - so that out-*.c can see it. + * cp-search.c (pop_search_level): Change from a macro into a + function, so we can more easily debug 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. + * cp-search.c (dfs_debug_mark): Only mark the type name as ignored + if we aren't doing dwarf debugging. - * 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. + * cp-typeck.c (build_unary_op): Only allow the prefix operators to + be lvalues, not the postfix ones. -Mon Oct 28 10:02:36 1991 Michael Meissner (meissner at osf.org) + * cp-decl.c (duplicate_decls): Delete the code that saved and + restored the UID of a decl, it's no longer necessary. - * 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. + * cp-call.c (compute_conversion_costs_ansi): Avoid generating + warnings when we call build_type_conversion. - * out-mips.c (g_switch_set, g_switch_value): Delete these global - variables, since toplev.c now defines them. + Mon Aug 2 17:56:36 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-decl.c (start_function): Complain about redeclaration of a + template function, being careful to only deal with pre-parsed + declarations that *are* in fact from templates. - * tm-decrose.h (ASM_SPEC, LINK_SPEC): Remove -G32. + Fri Jul 30 18:03:10 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-decstatn.h (ASM_SPEC, LINK_SPEC): Remove -G32. + * cp-class.c, cp-decl.c, cp-pt.c, cp-tree.h: Delete all of the old + code for DEBUG_CP_BINDING_LEVELS, and replace it with a new, cleaner, + and more usable format. - * tm-iris.h (ASM_SPEC, LINK_SPEC): Remove -G32. + Fri Jul 30 17:06:24 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-mips-bsd.h (LINK_SPEC): Remove -G32. + * cp-class.c (build_vtable, prepare_fresh_vtable): Temporarily + disable the change of June 20th making vtables readonly by default. - * tm-mips-news.h (ASM_SPEC, LINK_SPEC): Remove -G32. + Fri Jul 30 14:47:09 1993 Mike Stump (mrs@cygnus.com) - * tm-mips-sysv.h (LINK_SPEC): Remove -G32. + * cp-init.c (emit_base_init): Make sure we initialize the pointer to + vtables even when we are not in charge. Fixes virtual calls to derived + objects that have a static base type, so that they call derived + functions, not base functions. + * cp-search.c (build_vbase_vtables_init): Change comments to reflect + uses of last argument more accurately. Also rename last argument to + a better name. -Mon Oct 28 07:11:28 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Jul 28 16:23:52 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * combine.c (try_combine): Don't delete unused SETs if they have - side-effects. + * cp-search.c (build_type_pathname): Deleted fn. + * cp-class.c (build_type_pathname): Moved to here and made static, + since prepare_fresh_vtable is the only fn that ever uses it. + * cp-tree.h (build_type_pathname): Deleted prototype. - * Makefile.in, t-i386sco: Had both LIMIT_H and LIMITS_H; latter - is correct. + * g++.c (error) [!HAVE_VFPRINTF]: Move before fatal to avoid an + implicit declaration. - * 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. + Wed Jul 28 13:49:58 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) - * Makefile.in (LANGUAGES): Use `objective-c' instead of `class-c' - to avoid confusion. + * Makefile.in (g++-cross): Add an explicit $(srcdir) for g++.c, pass + the quotes as part of GCC_NAME - * gcc.c (xmalloc, xrealloc): Really make non-static. + * g++.c: only define GCC_NAME if it's already undefined -Mon Oct 28 00:21:56 1991 Michael Meissner (meissner at osf.org) + Tue Jul 27 10:48:30 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-mips.h (CC1_SPEC): Convert -gline into -g1. + * cp-decl.c (finish_decl): Don't error on uninitialized const + arrays. Use error, not error_with_decl, so we know what really + brought about the problems. -Sun Oct 27 17:15:48 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * g++.c: New file, written in C so we don't do so many exec's, as we + did with the shell script. + * g++, c++: Deleted. + * Makefile.in (STAGESTUFF): Added g++ and g++-cross. + (all.cross): Added g++-cross. + (all.build): Depend upon g++. + (g++, g++-cross): New rules. + (install-common): Depend upon g++. Changed installation of g++/c++ + to install the g++ program, and link c++ to it. Likewise for + g++-cross and c++-cross. - * reload1.c (spill_hard_reg): Rework code that relies on the fact that - reg_class_superclasses[i][0] == i, since it isn't true! + Mon Jul 26 09:40:37 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sun Oct 27 06:15:24 1991 Ron Guilmette (rfg at ncd.com) + * cp-typeck.c (build_unary_op) [case ADDR_EXPR]: When taking the + address of an increment/decrement operation, act on the thing + being incremented, not the ..._EXPR itself. - * configure: Always remove any files before we write them in case - the old copy was read-only. + Fri Jul 23 08:33:32 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-call.c (build_method_call): Check DECL_STATIC_FUNCTION_P, not + TREE_STATIC, when validating a method call in a static call context. - * genemit.c (gen_exp): Write integer using %u instead of %d to - avoid warnings from some compilers when most negative int is written. +Thu Aug 5 19:18:00 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * tree.h (TYPE_OBSTACK): New macro. + (struct tree_type): Add new field obstack. + * tree.c (make_node, copy_node): Set TYPE_OBSTACK. + (build_type_variant, build_type_copy, build_pointer_type): Put + new node in same obstack as old node; use push/pop obstacks. + * stor-layout.c (layout_type): Put size-related nodes in same + obstack as type. -Sun Oct 27 06:14:45 1991 Jeffrey A Law (law at b115.super.org) - - * 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. - - * 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. + * reload.c (push_reload, find_reloads): Refine when we reload + inside a SUBREG by respecting BYTE_LOADS_*_EXTEND; see comments + in push_reload. - * reload.c (find_reloads): Do not win in 's', 'i', or 'g' cases - if the constant does not satisfy LEGITIMATE_PIC_OPERAND_P. +Thu Aug 5 14:17:59 1993 Michael Meissner (meissner@osf.org) - * tm-m68k.h (LEGITIMATE_PIC_OPERAND_P): New macro. - - * out-m68k.c (symbolic_operand): New function. Copied from - tm-sparc.h. - - * gcc.texinfo: Document LEGITIMATE_PIC_OPERAND_P. - -Sat Oct 26 07:51:40 1991 Michael Meissner (meissner at osf.org) - - * mips.md (movsi_usw): Remove invalid '&' constraint on a memory - address. - -Sat Oct 26 07:16:15 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * flow.c (find_basic_blocks): Build label_value_list as list of - CODE_LABELs, not LABEL_REFs. - - * fold-const.c (optimize_bit_field_compare): Call fold on result - of build1 call that converts integer to proper mode. - - * 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. + * i386/osfrose.h (ASM_DECLARE_FUNCTION_SIZE): Enable setting the + size for elf functions. -Sat Oct 26 06:48:59 1991 Jeffrey A Law (law at b115.super.org) +Thu Aug 5 01:44:37 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * tm-sun2.h, tm-sun3.h (ASM_SPEC): Pass "-k" to the assembler if - -fpic or -fPIC. + * toplev.c (rest_of_compilation): If not optimizing, turn off + DECL_INLINE for functions declared as inline. Avoid turning on + DECL_INLINE when -finline-functions is used without -O. -Fri Oct 25 20:43:54 1991 Michael Meissner (meissner at osf.org) +Thu Aug 5 00:06:45 1993 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. + * collect2.c (handler): Check whether c_file and o_file are 0. - * configure (dec-mips-osf): DECstation running OSF/rose uses - t-decrose, not t-mips. +Wed Aug 4 18:06:26 1993 Samuel A. Figueroa (figueroa@cs.nyu.edu) - * x-decrose (COFF_CC, COFF_CFLAGS, WARNINGS): Delete. - (libdir, bindir, mandir): Put GCC 2 in the /usr/ccs/gcc tree. + * i386/gas.h (ASM_FILE_START): Write out two backslashes for each + backslash in the filename. - * x-mips (comment): Delete a comment about cross compilers that is - no longer true. +Wed Aug 4 18:00:43 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * t-decrose (coff-obstack.o): Delete rule that is no longer used. + * clipper.md (movdf+2): Allow `f' register as source operand in + first alternative. -Fri Oct 25 18:46:51 1991 Mark Eichin (eichin at cygnus.com) +Wed Aug 4 07:35:03 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cp-dem.c (cp-demangle): added support for templates, static - data, and the new (correct) mangling for destructors. + * reload1.c (eliminate_regs_in_insn): Always do elimination in + REG_NOTES if we changed anything in the insn. -Fri Oct 25 16:18:18 1991 Mark Eichin (eichin at tweedledumber.cygnus.com) + * genattrtab.c: Include gvarargs.h after hconfig.h, like elsewhere. - * 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. +Wed Aug 4 01:32:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Oct 25 02:15:12 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-typeck.c (output_init_element): Call digest_init before + calling output_constant. Always pass 0, 0 for last 2 args + to digest_init. - * SYSCALLS.c, protoize.c: Changes from rfg. - waiting for real changelog entries from rfg. + * expr.c (do_tablejump) [PIC_CASE_VECTOR_ADDRESS]: If pic, + copy INDEX to a register early, to avoid invalid address later. - * gcc.c (xmalloc, xrealloc): No longer static. - -Thu Oct 24 19:21:04 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * fold-const.c (optimize_bit_field_compare): - Use build1 rather than convert, to avoid warnings. - - * final.c (output_source_line): Fix if-scope for DBX fmt. - -Thu Oct 24 13:29:34 1991 Tom Wood (wood at dg-rtp.dg.com) - - * gcc.c gen*.c: Don't make fancy_abort static. - -Thu Oct 24 12:07:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * combine.c (simplify_comparison): When narrowing a comparison - and removing ANDs, make it unsigned. - -Thu Oct 24 08:02:04 1991 Ken Raeburn (raeburn at cygnus.com) - - * 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. - - * 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. - - * cp-lex.c (do_identifier): Don't try looking up fields in base - classes of UNINSTANTIATED_P_TYPE. - - * 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. - - * cp-ptree.c (print_lang_decl): For UNINSTANTIATED_P_TYPE, show - template as well as parameters. - - * 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. - - * cp-pt.c (uses_template_parms): Handle ADDR_EXPR. - (end_template_decl): For function with non-null context, pop class - binding level. +Tue Aug 3 23:56:49 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Oct 24 06:57:28 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * gcc.c (process_command): Don't check whether file `-' exists. - * a29k.md, romp.md, rs6000.md (movdi, movdf, movti): Handle case of - reg-reg copy with overlapping registers correctly. +Tue Aug 3 18:52:13 1993 John Hassey (hassey@dg-rtp.dg.com) - * out-rs6000.c (ccr_bit, case NE): Fix typo in bit number. - (output_epilog): Must restore stack using backchain if alloca called. + * configure (m88k-dg-dgux*): Use fixinc.dgux. + * x-dgux (INSTALL_HEADERS): Definition deleted. + * fixinc.dgux: New file. - * romp.md, rs6000.md (extendxxyy2, zero_extendxxyy2): Use DEFINE_EXPAND - to force operand to register; DEFINE_INSN allows memory (better cse). +Tue Aug 3 17:34:53 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * rs6000.md (ffssi2): New patterns. - (maskir): Add patterns to use maskir instructions. + * calls.c (store_one_arg): Don't pass ARG->STACK as TARGET if it + is a different mode than the expression (i.e., a promoted mode). - * tm-a29kunix.h (TARGET_DEFAULT, CPP_SPEC): Default to 29050. + * combine.c (force_to_mode): Now pass actual AND mask instead + of number of bits; generalize appropriately. + Move most cases from simplify_and_const_int in. + (simplify_and_const_int): Remove most code from here; call + force_to_mode instead. + (subst, make_extraction, make_compound_operation): Change calls + to force_to_mode. + (make_field_assignment): Likewise. + (simplify_comparison): Add call to force_to_mode when + doing a sign bit comparison. + * optabs.c (code_to_optab): New variable. + (init_optab): Initialize it. + * expr.h: Declare code_to_optab. - * 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. +Tue Aug 3 15:40:16 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Oct 23 17:48:43 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * gstddef.h: Test and define __INT_WCHAR_T_H. - * 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. +Mon Aug 2 22:42:10 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * configure (i[34]86-sequent-sysv*): New alternative. + * config/i386/seq-sysv3.h: New file. -Wed Oct 23 16:38:26 1991 Torbjorn Granlund (tege at hal.gnu.ai.mit.edu) + * combine.c (struct undo): Rename `rtx' fields to `r'. + (undo_all, SUBST, gen_rtx_combine): Corresponding changes. - * gnulib2.c (__ashrdi3): Compute sign extension shift count from - machine word size instead of using 31. +Mon Aug 2 18:53:23 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Wed Oct 23 14:25:04 1991 Michael Meissner (meissner at osf.org) + * combine.c (subst): Move simple operations inside IF_THEN_ELSE + if the IF_THEN_ELSE is in the second operand as well as the first. + (subst, case NEG): Use plus_constant to make a PLUS. + (subst, case MINUS): Simplify (minus 1 (comparison foo bar)). + (subst, case EQ): Add a number of missing cases where + comparisons may be replaced with arithmetic or logical ops. + (subst, case IF_THEN_ELSE): Handle (if_then_else COND (OP Z C1) Z) + in a more general manner. + (simplify_and_const_int): Make AND with gen_binary in case we + can simplify it. - * tm-mips.h (PREFERRED_DEBUGGING_TYPE): Unless otherwise defined, - set to SDB_DEBUG. +Mon Aug 2 14:45:43 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - * tm-decrose.h (PREFERRED_DEBUGGING_TYPE): Define to DBX_DEBUG. + * genattrtab.c (substitute_address): In prototype, don't specify + the arg types of the arg functions. - * out-mips.c (override_options): Don't override debugger choice now - that PREFERRED_DEBUGGING_TYPE is provided. + * config/m68k/x-dpx2 (CLIB): Fix typo. -Wed Oct 23 07:25:32 1991 Tom Wood (wood at dg-rtp.dg.com) +Mon Aug 2 06:36:53 1993 John F Carr (jfc@Athena.mit.edu) - * sdbout.c (sdbout_symbol/FUNCTION_DECL, sdbout_toplevel_data, - sdbout_end_epilogue): Use DECL_ASSEMBLER_NAME to avoid link-time - multiple definitions. + * local-alloc.c (block_alloc): Don't attempt to allocate a + SCRATCH if it will not fit in scratch_list. -Tue Oct 22 15:06:31 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Aug 2 00:02:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * reload1.c (reload): For now, we must always have a frame pointer - if a function calls alloca and EXIT_IGNORE_STACK is non-zero. + * calls.c (expand_call): Check properly for volatile function. - * 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. +Sun Aug 1 04:18:23 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Oct 22 10:25:29 1991 Tom Wood (wood at dg-rtp.dg.com) + * c-common.c (decl_attributes): Support attributes `volatile' + with alias `noreturn', and `const'. + * c-parse.in (attrib): Accept those attributes. - * tm-m88kdgux.h (PREFERRED_DEBUGGING_TYPE): Use it. - * tm-m88k.h (OVERRIDE_OPTIONS): Don't override write_symbols. + * c-typeck.c (build_binary_op): Warn about ordered comparison + between pointers to complete and incomplete types. - * out-m88k.c (m88k_output_{prologue,epilogue}): Renamed. + * c-parse.in (stmt): In an expr stmt, call default_conversion + for arrays and for functions. -Tue Oct 22 00:51:48 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-decl.c (finish_struct): No pedwarn for field with enum type + if size matches int. + (grokdeclarator): No error for void type for extern or global var. - * c++: New shell script. + * c-typeck.c (digest_init): No error for a STRING_CST that already + went through digest_init. + (parser_build_binary_op): Generate a NON_LVALUE_EXPR, not NOP_EXPR, + around a constant value. - * gcc.c (default_compilers): Treat .ii files as cpp'd C++. + * config/m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL) + (ASM_GENERATE_INTERNAL_LABEL): Definitions deleted. - * varasm.c (make_function_rtl): Don't alter DECL_ASSEMBLER_NAME. + * expr.c (do_tablejump): Use PIC_CASE_VECTOR_ADDRESS if defined. + * config/m68k/m68k.h (PIC_CASE_VECTOR_ADDRESS): Defined. + (GO_IF_LEGITIMATE_ADDRESS): If pic, accept LABEL+INDEX. - * toplev.c (main): Use PREFERRED_DEBUGGING_TYPE if support - more than one format. + * c-decl.c (grokdeclarator): Warn here for volatile fn returning + non-void type. + (start_function): Not here. -Mon Oct 21 23:08:02 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-decl.c (grokdeclarator): Don't pass on const and volatile + fron function value type to function type. - * c-decl.c (grokdeclarator): Fix error message for long float. +Sat Jul 31 01:48:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Oct 21 16:55:31 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * c-typeck.c (digest_init): Finish getting rid of tail. + Also get rid of old_tail_contents. Don't set free_tree_list. + (free_tree_list): Var deleted. - * 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. + * c-typeck.c (process_init_element): Treat string constants specially + only for arrays of integers. - * 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. +Fri Jul 30 06:49:58 1993 Torbjorn Granlund (tege@sics.se) - * reorg.c (steal_delay_list_from_target): Don't take an insn from - the fallthrough thread of an annulled branch insn. - -Mon Oct 21 16:55:08 1991 Tom Wood (wood at dg-rtp.dg.com) - - * configure (m88k targets): Complete last change. - -Mon Oct 21 16:06:25 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * integrate.c (copy_rtx_and_substitute): When making copy of frame, - round size to keep substituted frame pointer aligned. - (CEIL_ROUND): New macro. - -Mon Oct 21 15:16:17 1991 Michael Meissner (meissner at osf.org) - - * 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. - -Mon Oct 21 15:08:15 1991 Tom Wood (wood at dg-rtp.dg.com) - - * 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. - - * 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. - - * 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. - - * 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. - -Sun Oct 20 06:39:54 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (simplify_comparison, case PLUS): Only do simplification - for equality comparison due to overflow problems. - - * gen*.c: Remove "void *" and uses of size_t added by recent change. - - * reload.c (find_reloads): If "&" given without any registers, - turn off earlyclobber, in addition to giving error. - - * Makefile.in (STAGE_GCC): Deleted. - (STAGESTUFF): Add gcc (from STAGE_GCC) and gcc-cross. - -Sun Oct 20 04:37:21 1991 Michael Tiemann (tiemann at cygnus.com) - - * 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. - - * cp-cvt.c (convert_pointer_to): Test if PARENT is TREE_VEC - before testing IS_AGGR_TYPE. - -Sun Oct 20 00:40:47 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * gcc.c (link_command_spec): -collect converts to -c. - - * toplev.c (main): Support -gstabs and -gcoff. Fix args to strncmp. - -Sat Oct 19 21:51:03 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - -Sat Oct 19 17:30:23 1991 Michael Meissner (meissner at osf.org) - - * 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. - -Sat Oct 19 11:59:55 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) - - * tm-sun3.h, tm-sparc.h (WORD_SWITCH_TAKES_ARG): - Check for Tdata as well as target. - - * c-decl.c (grokdeclarator): Don't warn for array of incomplete elt. - - * expr.c (expand_expr): For INDIRECT_REF, don't set unchanging bit. - * c-typeck.c (build_indirect_ref): Do set TREE_UNCHANGING if nec. - - * reload.c (find_reloads): Warning or error for misuse of `&'. - * toplev.c (warning_for_asm): New function. - - * t-i386sco: New file. - * x-i386sco: Add -Di286 to CC, OLDCC. - (LIMIT_H): Moved to t-i386sco. - -Sat Oct 19 09:08:11 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * gcc.c: Add missing extern declarations deleted by last change. - (xrealloc, xmalloc): Don't declare as void *; non-ANSI compilers - can't handle it. - -Sat Oct 19 08:26:13 1991 Ron Guilmette (rfg at ncd.com) - - * tree.h: Fix spelling error in comment. - - * tree.def, cp-parse.y: Change comments that refer to LET_STMT nodes to - refer to BLOCK nodes. - - * 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. - -Fri Oct 18 16:58:12 1991 Eric Youngdale (youngdale at v6550c.nrl.navy.mil) - - * make-cc1.com: Finish changeover from cplus-* to cp-*. - -Fri Oct 18 16:57:37 1991 Ron Guilmette (rfg at ncd.com) - - * tm-svr4.h: Delete lines duplicated due to transmission problems. - -Fri Oct 18 16:55:53 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * jump.c (unsigned_condition, signed_condition): New functions. - - * configure (vax): Set tm_file to tm-vax.h so "configure vax-dec-bsd" - works. - - * 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)). - - * combine.c (expand_compound_operation): Correctly handle case where - we have a ZERO_EXTRACT that extends beyond the bounds of the object. - - * global-alloc.c (mark_elimination): No longer have FORBIDDEN_REGS as - argument. - * reload1.c (reload): Don't pass FORBIDDEN_REGS to mark_elimination. - - * 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. + * expmed.c (mult_is_very_cheap): Delete. + (mult_cost): Delete. + (init_expmed): Delete computation of mult_cost and mult_is_very_cheap. + (expand_mult): Compute mult_cost here for every constant multiplier. + (synth_mult): Return found algorithms through a struct pointer. + +Fri Jul 30 06:45:35 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * fold-const.c (fold, case NOP_EXPR): Delete a pair of conversions + back to the original type when intermediate type is at least as wide. - * cp-ptree.c (print_lang_type): Handle UNINSTANTIATED_P_TYPE. + * combine.c: Remove change of July 21. + (this_basic_block): New variable. + (combine_instructions): Set it. + (try_combine, distribute_links): Use it and basic_block_head + to see if we've gone to a new basic block instead of trying + to reproduce calculation done in flow. - * cp-tree.h (push_overload_decl): Declare here, not in - cp-decl.c. - (TEMPLATE_TYPE_* macros): Delete unused (and now incorrect) - versions. + * stmt.c (expand_return): Don't use jumps for "return x == y" if + they are expensive. -Mon Oct 14 14:30:32 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Fri Jul 30 02:03:12 1993 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. + * config/i386/i386.md (ffssi2 and ffshi2 recognizers): + Generate unique labels by hand. - * cse.c (canon_hash, SUBREG case): Add cast which is needed by some - compilers. +Thu Jul 29 01:47:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Oct 14 07:59:50 1991 Tom Wood (wood at dg-rtp.dg.com) + * c-typeck.c (push_init_level): For braces around scalar, just warn. + (process_init_element): Special handling for {"foo"}. + (struct constructor_stack): New field `replacement_value'. + (push_init_level, really_start_incremental_init): Clear new field. + (pop_init_level): Return the replacement_value if any. + At top level in initializer, output that value, + and set the array size from it. - * 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-typeck.c (digest_init): Delete arg TAIL. Fix all calls. - * 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. + * objc-act.c (build_shared_structure_initializer): + Call default_conversion for NAME. + (add_objc_string): Make an ADDR_EXPR to return. + (init_objc_symtab): Make ADDR_EXPR for UOBJC_SELECTOR_TABLE_decl. -Sat Oct 12 00:30:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * objc-act.c: Build all CONSTRUCTORs with types. + (build_constructor): New function. All CONSTRUCTOR builds changed. + (init_def_list, init_objc_symtab): New arg TYPE. + (init_module_descriptor): Likewise. + (init_objc_symtab): Pass TYPE arg to init_def_list. + (generate_objc_symtab_decl): Pass TYPE arg to init_objc_symtab. + (build_module_descriptor): Pass TYPE arg to init_module_descriptor. + (build_descriptor_table_initializer): New arg TYPE. + (generate_method_descriptors): Pass TYPE arg to + build_descriptor_table_initializer. + (generate_protocols): Pass TYPE arg to build_protocol_initializer. + (uild_protocol_initializer): New arg TYPE. + (build_ivar_list_initializer): New arg TYPE. + (generate_ivar_lists): Pass TYPE arg to build_ivar_list_initializer. + (build_dispatch_table_initializer): New arg TYPE. + (generate_dispatch_tables): Pass TYPE arg to + build_dispatch_table_initializer. + (build_category_initializer): New arg TYPE. + (build_shared_structure_initializer): New arg TYPE. + (generate_category): Pass TYPE arg to build_category_initializer. + (generate_shared_structures): Pass TYPE arg to + build_shared_structure_initializer. - * Makefile.in (.SUFFIXES): Rule added. + * config/i386/x-ncr3000 (CC, OLDCC): Deleted. + * config/i386/xm-sysv4.h [__HIGHC__]: Include alloca.h. - * 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. + * convert.c (convert_to_integer): Don't pass truncate into ABS_EXPR. - * configure: Default srcdir from dir in which configure is found. + * configure: Ignore -enable... and --enable... options. - * i860.md (floatsidf2): Rewrite to be independant of host machine. - (divdf3, divsf3): New patterns. +Wed Jul 28 20:15:05 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-i860.h (ASM_DECLARE_FUNCTION_NAME): Macro deleted. - (ASM_OUTPUT_FUNCTION_PREFIX): Macro added. + * Makefile.in (compare): Add ./ in tail command. - * stmt.c (pushcase, pushcase_range, expand_end_case): - Don't give "unreachable code" warning for a USE. +Wed Jul 28 15:36:11 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * tm-i386.h (HARD_REGNO_MODE_OK): Fp regs reject TFmode. + * integrate.c (copy_rtx_and_substitute, case LABEL_REF): If + we turn off LABEL_REF_NONLOCAL_P, increment function_call_count. -Fri Oct 11 16:43:37 1991 Tom Wood (wood at dg-rtp.dg.com) + * integrate.c (copy_for_inline, case LABEL_REF): Properly copy + LABEL_REF with LABEL_REF_NONLOCAL_P set. + Copy LABEL_OUTSIDE_LOOP_P flag. + (copy_rtx_and_substitute, case LABEL_REF): Likewise. + (copy_rtx_and_substitute, case CONST): Make recursive call for + a LABEL_REF in the constant pool. - * cse.c (find_comparison_args): Reject VOIDmode to avoid invalid - shift. + * c-iterate.c (iterator_loop_{pro,epi}logue): Set TREE_SIDE_EFFECTS + on the MODIFY_EXPRs we make. + Pass const0_rtx as TARGET to expand_expr. + * cp-cvt.c (build_up_reference): Set TREE_SIDE_EFFECTS on MODIFY_EXPR. + * stmt.c (expand_return): Likewise. -Fri Oct 11 14:30:31 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Wed Jul 28 12:17:39 1993 Michael Meissner (meissner@osf.org) - * 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. + * i386/osfrose.h (SUBTARGET_OVERRIDE_OPTIONS): Use this instead of + OVERRIDE_OPTIONS. - * 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. +Wed Jul 28 13:45:13 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * print-rtl.c: New file, split from rtl.c. - * Makefile.in (print-rtl.o): New target. - (OBJS): Add that target. + * expr.c (expand_expr, case ADDR_EXPR): Treat CONCAT like REG. - * 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. + * c-decl.c (start_function): Warn if volatile fn returns non-void. -Fri Oct 11 14:30:43 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Wed Jul 28 13:22:15 1993 Jim Wilson (wilson@cygnus.com) - * stmt.c (expand_anon_union_decl): Correctly handle anonymous - unions, whether in memory or registers. + * c-parse.in (simple_if, if_prefix, stmt): Undo Jul 7 change. + (if_prefix): Store stmt_count in $$ not $1. + (stmt): Add comment explaining why empty-if warning is here. - 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. + * sparc.c (shift_operand): New function. + * sparc.md (ashlsi3, ashrsi3, lshrsi3): Use shift_operand. - * tree.h: Declare savealloc. - * c-common.c: Delete now unnecessary cast of savealloc result. + * loop.c (strength_reduce): Don't ignore a giv that depends on a + reversed biv. -Fri Oct 11 10:06:09 1991 Tom Wood (wood at dg-rtp.dg.com) + * mips/x-sysv (ALLOCA): Define. + * mips-5.h (STARTFILE_SPEC): Define. + * x-iris3: New file. + * configure (mips-sgi-*): Use x-iris3 instead of x-iris. + * Makefile.in (libgcc.a): Do `chmod +w *' between two ar commands. - * cse.c (simplify_binary_operation): Fix typo in last change. + * i960.h (INITIAL_FRAME_POINTER_OFFSET): Negate, and subtract 64 + bytes. - * cp-*, gcc.texinfo, make-cc1.com, tree.c, undocumented: Change - cplus- to cp-. Rename cplus-parse.y to cp-parse.y. + * sched.c (schedule_block): Do not emit line number notes before + other notes. -Fri Oct 11 07:48:40 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * varasm.c (assemble_variable): flag_no_common applies only if + external linkage. - * 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. + * calls.c (expand_call): For unaligned arguments on + BYTES_BIG_ENDIAN machines, correct bitfield offset calculations. + * expr.c (move_block_from_reg): New argument SIZE. If SIZE less + than word and BYTES_BIG_ENDIAN, shift block left to align it + before storing it to memory. + * expr.h (move_block_from_reg): Add new argument to prototype. + * function.c (assign_parms): Pass extra argument SIZE to + move_block_from_reg calls. + (locate_and_pad_parm): For !ARGS_GROW_DOWNWARD case, move downward + padding pad_below call after round_up call. + * mips.c (function_arg): Shift all structures less than 4 bytes, + not just those which are QImode or HImode. + * a29k.h, alpha.h, i960.c, m88k.c, pa.c, romp.h, rs6000.h: + Add new parameter to move_block_from_reg calls. -Fri Oct 11 07:29:33 1991 Ron Guilmette (rfg at ncd.com) +Wed Jul 28 12:40:06 1993 Doug Evans (dje@canuck.cygnus.com) - * 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. + * expmed.c (store_split_bitfield): Fix handling of bitfields that + cross word boundaries, can only handle a word at a time. + (extract_split_bitfield): Likewise. -Thu Oct 10 18:30:28 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) +Wed Jul 28 06:44:50 1993 John Hassey (hassey@dg-rtp.dg.com) - * gcc.c (default_compilers): Correctly handle new debugging - options, pass all -g* and -G* options. + * configure: Use m88k/x-sysv3 for m88k-*-sysv3. + * m88k/x-sysv3: New file, use gnu alloca. - * 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. +Tue Jul 27 13:53:06 1993 Per Bothner (bothner@wombat.gnu.ai.mit.edu) -Thu Oct 10 17:56:16 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * fixproto: Pass '-' to tr as the 1-character range '---'. + * cross-make: Define STMP_FIXPROTO to empty for cross. + * patch-header.c (read_scan_file): Minor re-write to avoid + obstack_copy0, since that uses the non-portable bcopy(). + * Makefile.in (patch-header): Use $(HOST_OBSTACK). + * gen-protos.c (main): Disable obnoxious warning message. - * 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. +Tue Jul 27 16:42:44 1993 John F Carr (jfc@Athena.mit.edu) - * toplev.c (float_signal): Re-enable the signal after we catch it. + * fold-const.c (optimize_bit_field_compare): Preserve volatility + of bitfield. - * cse.c (simplify_binary_operation): Add missing fp error handler - setup in DFmode case. +Tue Jul 27 01:33:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-typeck.c (convert_for_assignment): Mismatch in signedness + of pointer targets should not inhibit warnings for const mismatch. -Thu Oct 10 17:52:44 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * function.c (assign_parms): Don't copy too much when extending + parm_reg_stack_loc. - * c-decl.c (init_decl_processing): Turn off `alloca' for -ansi. - (c_decode_option): Handle -fbuiltin, -fno-builtin. + * config/m88k/m88k.h (ASM_DECLARE_OBJECT_NAME): Don't make a .size + if the size is not known. Use DECL, not decl. + * config/svr4.h, config/i386/osfrose.h: Likewise. -Thu Oct 10 17:42:03 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * c-typeck.c (set_init_index): Add pedantic warning. + (set_init_label): Likewise. - * caller-save.c (emit_mult_restore): Initialize MAYBE_TEMPREG. +Tue Jul 27 14:22:48 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) - * 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. + * gstddef.h (_WCHAR_T_H): Test this and define this. - * sched.c (sched_note_set): Add missing parens. + * configure (m68k-bull-sysv): Test for --stabs; + generate either native coff or dbx-in-coff debugging information. - * sparc.md: Delete unnecessary clobbers from all SCC patterns. + * config/m68k/dpx2.h (CPP_PREDEFINES): added -D_POSIX_SOURCE + -D_XOPEN_SOURCE -D_BULL_SOURCE to the list. + (CPP_SPEC): removed ansi definition. + * config/m68k/dpx2g.h (DBX_DEBUGGING_INFO): Remove this to let gcc + deals with gas and coff. + * config/m68k/dpx2cdbx.h: New file for gas and dbx-in-coff. + * config/x-dpx2 (CLIB): removed -lc_s and added -lmalloc. + (X_CFLAGS): removed -D_SYSV and added -D_POSIX_SOURCE -D_XOPEN_SOURCE + -D_BULL_SOURCE to deal with the posix stuff. - * integrate.c (expand_inline_function): Correct handling of arguments - passed by invisible reference. +Mon Jul 26 17:42:22 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-typeck.c (digest_init): Add `static' to definition. -Wed Oct 9 15:55:42 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * combine.c (simplify_shift_const): Inhibit hacks based on + num_sign_bit_copies if shift_mode differs from the mode of varop. - * cccp.c (main): Update MAX_INCLUDE_LEN if GCC_EXEC_PREFIX gets into - the act. + * toplev.c (main): When -W sets warn_uninitialized, avoid later warning + if warn_uninitialized is not supported. - * xm-a29k.h: Change copyright message back to GPL version 2. - * xm-a29k-ultra.h: Use GPL version 2 copyright. +Mon Jul 26 14:14:02 BST 1993 Richard Earnshaw (rwe11@cl.cam.ac.uk) - * reload1.c (reload): Put array size in cast, to prevent compiler - warning. + * collect2.c (NAME__MAIN, SYMBOL__MAIN): Add default definitions. + (write_c_file, scan_prog_file [OBJECT_FORMAT_ROSE]): + Use macros instead of explicitly __main. - * dwarfout.c (type_attribute): Check for ERROR_MARK nodes. + * function.c (expand_main_function): Likewise. -Wed Oct 9 13:59:22 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * libgcc2.c (__main): Use macro SYMBOL__MAIN instead of invoking + directly. - * toplev.c (float_signal): Reenable handler. +Mon Jul 26 16:03:33 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * configure: Comment out various options not yet updated. + * fold-const.c (fold, case EQ_EXPR): Remove code that converts + mod to unsigned mod; it isn't correct for negative operands. - * cp-*.c, cp-*.h: Renamed from cplus-*.[ch]. - * Makefile.in: Renaming here also. + * toplev.c (strip_off_ending): Allow .ad* for Ada. - * 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. +Mon Jul 26 14:06:04 1993 Bill Cox (bill@majipoor.cygnus.com) - * t-mips: Most of x-mips moved here. - * t-decrose: Likewise from x-decrose. + * c-decl.c (print_lang_decl, print_lang_type): Correct function + headers to match prototype, and calls. - * xm-a29k-ult.h: Renamed from xm-a29k-ultra.h. +Sun Jul 25 17:01:34 1993 Per Bothner (bothner@kalessin.cygnus.com) - * Makefile. in (install-common): Don't handle `collect' specially. - It should be in EXTRA_PASSES if it is needed. + * fixproto: New script to add prototypes and otherwise clean up + system include files (especially for C++ and also gcc -Wimplicit). + * scan-decl.c: New program used by fixproto to analyze header + files (it extracts declarations from cpp output). + * patch-header.c: New program used by fixproto to analyze and + patch header files. + * scan.c: New file. Routines used by scan-decls and + patch-header. + * scan.h: New file. Common declarations. + * gen-protos.c: New file. Massages a list of prototypes. + * Makefile.in: Add fixproto support. + * populate: Deleted. Superseded by fixproto. - * cse.c (simplify_binary_expression): Use float handler for DF like SF. - Don't warn about traps; leave them for run time. +Sun Jul 25 03:56:18 1993 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. + * c-typeck.c (start_init): Fill in p->next. -Wed Oct 9 12:15:40 1991 Tom Wood (wood at dg-rtp.dg.com) + * config/i386/i386.md (movstrictqi): Change q<-g alternative to q<-m. - * 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. +Sat Jul 24 18:17:55 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Oct 9 03:55:21 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * expr.c (emit_move_insn_1): For complex stack push, + don't use change_address. - * make-mips (BISONFLAGS): Assignment deleted. +Sat Jul 24 15:05:50 1993 Per Bothner (bothner@kalessin.cygnus.com) - * 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. + * fixincludes (unistd.h): Generalize AIX fix (for using + C++ keyword new) to unistd.h as well as stdio.h. + * fixincludes (sys/wait.h): Fix NeXT problem with + a 'wait(union wait*)' prototype that breaks Posix.1. + * fixincludes (math.h): For C++, patch AIX's use of + 'class' as function name. -Tue Oct 8 17:56:13 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) +Sat Jul 24 02:48:31 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * c-decl.c (duplicate_decls): If redeclaring builtin as static, - replace the old decl. + * function.c (put_reg_into_stack): New subroutine. + (put_var_into_stack): Use that; handle CONCAT. - * tm-seq386.h (HARD_REGNO_MODE_OK): Copy usual def into override def. + * varasm.c (assemble_variable): For array whose size comes from + the initializer, determine proper alignment here. + (assemble_align): New function. - * tm-news.h (CPP_PREDEFINES): Get rid of invalid conditionals. - * tm-tower.h: Likewise. + * c-typeck.c: Handle gaps in record initializers. + (constructor_bit_index): New variable. + (constructor_stack): New field bit_index. + (really_start_incremental_init, push_init_level): Save and init it. + (pop_init_level): Restore it. + (output_init_element): Update constructor_bit_index. + Use it to output gaps. + (pop_init_level): Speed up by using constructor_bit_index. - * tm-gmicro.h (MODES_TIEABLE_P): Fix typo. + * c-typeck.c (process_init_element): Accept STRING_CST for subarray. - * ns32k.md (rotrsi3): Fix typo `NEGATE' for `NEG'. + * loop.c (mark_loop_jump): Handle weird cases like jumping to + a symbol_ref. - * c-typeck.c (mark_addressable): Handle CONSTRUCTOR. - * expr.c (expand_expr): Handle addressable contructors. +Fri Jul 23 15:55:14 1993 Doug Evans (dje@canuck.cygnus.com) -Tue Oct 8 14:42:56 1991 Tom Wood (wood at dg-rtp.dg.com) + * c-tree.h: Fix prototypes for print_lang_decl, print_lang_type. - * expmed.c (lshift_value): Ensure the shift amount is in range. +Fri Jul 23 15:06:05 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Mon Oct 7 20:45:35 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * c-typeck.c (start_init): Second arg is now a tree. - * integrate.c (function_cannot_inline_p, save_for_inline_copying, - save_for_inline_nocopy, expand_inline_function, - output_inline_function): Use GET_RTX_CLASS. +Fri Jul 23 08:26:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * listing: Remove RCS Author and Log fields. + Cygnus<->FSF merge. + Thu Jul 22 09:54:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-decl.c (push_overloaded_decl): Fix typo in warning msg. - * longlong.h: Again fix same typo previously fixed Sept 5. + Tue Jul 20 13:13:18 1993 Mike Stump (mrs@cygnus.com) -Mon Oct 7 17:28:23 1991 Michael Meissner (meissner at osf.org) + * cp-class.c (build_vtable, prepare_fresh_vtable): Make the vtables + readonly by default. - * xm-mips.h (MIPS): Define MIPS to 1 instead of nothing, so - mips-tfile will compile once again. + Mon Jul 19 13:16:58 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Oct 7 17:10:32 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-tree.h (NEW_CLASS_SCOPING): Turn this off for now. - * cccp.c (main): Pedantically warn if no newline at end of file. - (finclude): Likewise. + Mon Jul 19 11:04:51 1993 Jason Merrill (jason@rtl.cygnus.com) - * c-decl.c (grokdeclarator): funcdef_flag overrides parm level. + * cp-class.c (build_vfn_ref): Rename `index' to `idx'. -Sun Oct 6 16:37:31 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + Fri Jul 16 07:44:49 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * sparc.md (peephole for lo-sum and load df): Use output_move_double. + * cp-class.c (finish_struct): Check both if the type has a default + constructor, and if it has a non-const copy constructor, so we'll know + not to generate a const copy constructor for the type we're working on. + * cp-lex.c (cons_up_default_function): Add other front-end debugging + info. + (default_copy_constructor_body): And take it out of here. - * tree.h (DECL_BUILT_IN_NONANSI): New flag. - * c-decl.c (init_decl_processing): Set flag for `alloca'. + * cp-expr.c (cplus_expand_expr): Add missing arguments to expand_expr. - * 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. + Thu Jul 15 16:54:33 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * out-sparc.c (output_move_double): Fix typo in test for using ldd. + * cp-lex.c (default_copy_constructor_body): Also check to copy + anonymous unions, since they don't show up as FIELD_DECLs. + (largest_union_member): New function. -Sun Oct 6 12:56:19 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Thu Jul 15 16:23:18 1993 Mike Stump (mrs@cygnus.com) - * expr.c (expand_expr, case COND_EXPR): Rename var added in last - change; some C compilers don't like "optab optab;". + * cp-expr.c (cplus_expand_expr): Use resolve_offset_ref to handle + OFFSET_REFs, as anything else would be wrong. + + Thu Jul 15 13:23:40 1993 Mike Stump (mrs@cygnus.com) -Sun Oct 6 09:26:55 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-tree.h (CLASSTYPE_INTERFACE_KNOWN, + SET_CLASSTYPE_INTERFACE_UNKNOWN_X, SET_CLASSTYPE_INTERFACE_UNKNOWN, + SET_CLASSTYPE_INTERFACE_KNOWN): New access methods. + * cp-class.c (import_export_vtable, duplicate_tag_error, + finish_struct): Use new access method. + * cp-decl.c: (grokfndecl, grokdeclarator, xref_tag): Ditto. + * cp-gc.c (build_t_desc): Ditto. + * cp-lex.c (set_vardecl_interface_info, make_lang_type): Ditto. + * cp-pt.c (end_template_instantiation, do_pending_expansions): + Ditto. + * cp-search.c (dfs_debug_mark): Ditto. - * 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. + * cp-decl.c (grok_reference_init): Reword error message. - * 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. + Wed Jul 14 09:17:18 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-cvt.c (convert_to_reference): Adjust change of May 30th to + accept more things (and still handle ARM p308 properly). Disable + the old way, but leave it to be properly fixed later. - * 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. + Tue Jul 13 22:43:38 1993 Mike Stump (mrs@cygnus.com) -Sat Oct 5 14:32:01 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-decl.c (get_binfo_from_vfield): New function. + * cp-decl.c (finish_function): Use get_binfo_from_vfield to get the + binfo used to find the vtable for this vfields. Corrects problem + with vtable pointers being wrong during called member functions, + called from destructors. - * expmed.c (expand_mult): Avoid fetching memory more than once. + Tue Jul 13 11:52:37 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-ultrix.h (DOLLARS_IN_IDENTIFIERS): Define as 1. + * cp-decl.c (grokdeclarator): Don't pedwarn about a duplicate long + for `long long', until we figure out how we really want to handle it. - * expr.c (expand_builtin): Clarify error message for BUILT_IN_NEXT_ARG. + Sat Jul 10 14:54:36 1993 Chip Salzenberg (chip@fin.uucp) -Sat Oct 5 08:42:02 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-tree.h (warn_redundant_decls, warn_missing_braces): Declared. + * cp-decl.c (warn_redundant_decls): Not declared here. + * cp-decl2.c (warn_missing_braces): Defined. + (lang_decode_option): Handle -Wmissing-braces. + * cp-type2.c (process_init_constructor): Test warn_missing_braces. - * 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. + * cp-typeck.c (build_binary_op_nodefault): Make warning + message distinguish between right/left and shift/rotate. - * cplus-decl.c (xref_tag): Set TREE_VEC_LENGTH (BINFOS) to the - number of basetypes that were actually accepted. + * cp-decl.c (init_decl_processing): When making SIZETYPE, + start with name in SIZE_TYPE. If -traditional, use a signed + version of that type, if it is unsigned. - * cplus-parse.y (datadef, fndef): Accept `extern "C"' as a storage - class specifier. + * cp-typeck.c (c_sizeof, build_c_cast): Set TREE_OVERFLOW in + addition to TREE_CONSTANT_OVERFLOW. - * cplus-init.c (build_new): Handle allocating types whose TRUE_TYPEs - start off as ARRAY_TYPEs. + * cp-decl.c (finish_enum): Store layout results into variant types. - * 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. + * cp-typeck.c (internal_build_compound_expr): When pedantic, don't + simplify a COMPOUND_EXPR, so that it won't be mistaken for an + lvalue or an integer constant expression. - * 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. + * cp-parse.y (program): After extdefs, pop any unpopped binding lvls. - * cplus-expr.c (cplus_expand_expr): Handle OFFSET_REFs. + * cp-decl.c (grokdeclarator, ARRAY_REF case): Build array type, + and then build the variant array type. - * cplus-typeck.c (build_binary_op_nodefault): If PEDANTIC, don't - permit comparisons between pointers and integers. + * cp-lex.c (real_yylex): Avoid invalid shift for erroneous empty + char const. - * cplus-decl2.c (explicit_warn_return_type): New variable. - * cplus-decl.c (grokdeclarator): Test `explicit_warn_return_type' - instead of `warn_return_type'. + * cp-decl.c (complete_array_type): Make maxindex -1 for empty + constructor. - * 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. + * cp-type2.c (initializer_constant_valid_p): Allow cast of ptr to + wider integer. - * cplus-cvt.c (convert_to_integer): Make anachronisms errors if - PEDANTIC is nonzero. + * cp-decl.c (pushdecl): Copy DECL_FRAME_SIZE for inline function decls. - * 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. + * cp-decl.c (finish_decl): Do not allocate static var of + unknown size. + (complete_array_type): Use 0 as default maxindex. - * cplus-decl.c (push_overloaded_decl): If PEDANTIC, give error when - functions overload variables. +Fri Jul 23 07:18:20 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * function.c (aggregate_value_p): An ARRAY_TYPE is also an aggregate. -Sat Oct 5 06:52:29 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Jul 23 01:54:28 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * expr.c (expand_expr, case COND_EXPR): Case for X ? A + 1 : A can - also handle MINUS_EXPR and BIT_*_EXPR. + * gcc.c (main): Improve "No input files" error message. - * 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. +Thu Jul 22 23:00:11 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * 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. + * reorg.c (relax_delay_slots): Do not redirect a jump if doing so + invalidates insns in the jump's delay slots. + (redirect_with_delay_slots_safe_p): New function. -Fri Oct 4 15:25:33 1991 Michael Tiemann (tiemann at cygnus.com) +Thu Jul 22 18:01:29 1993 John Hassey (hassey@dg-rtp.dg.com) - * cplus-decl.c (set_identifier_type_value): New function. Change - all callers of macro SET_IDENTIFIER_TYPE_VALUE to call this function - instead. + * invoke.texi, m88k.h, m88k.c: Changed serialize-volatile + to use tb1 instead of fldcr, fldcr has problems on 88110. + Made serialize-volatile the default behavior for all models. - * 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 22 11:19:28 PDT 1993 Ron Guilmette (rfg@netcom.com) -Fri Oct 4 14:47:52 1991 Michael Meissner (meissner at osf.org) + * fixinc.svr4 (making LIB absolute): Just concat with $ORIG_DIR. - * 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. + * configure: Use `sed' rather than `cat' to put `MAYBE_TARGET_DEFAULT' + definition in. (This is a work-around for an NFS bug.) -Fri Oct 4 13:37:11 1991 Tom Wood (wood at dg-rtp.dg.com) +Thu Jul 22 14:59:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * c-typeck.c: Output most constructors an element at a time. + (digest_init): Deleted code for raw constructors. + (process_init_constructor): Function deleted. + (start_init, finish_init): New functions. + (really_start_incremental_init) + (push_init_level, check_init_type_bitfields, pop_init_level) + (set_init_index, set_init_label, process_init_element) + (output_init_element, output_pending_init_elements): New functions. + * c-tree.h: Declare most of those functions. -Thu Oct 3 22:08:45 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * c-parse.in (cast_expr): Use new initializer parsing functions. + (initdcl, notype_initdcl): Likewise. + (init): Likewise. + (initlist_maybe_comma, initlist1): These replace initlist. + (initelt): New nonterminal. + Change specified index syntax to `[INDEX]='. + Change specified field syntax to `.NAME='. - * objc-actions.h (CLASS_SUPER_NAME): Change type.basetypes to - type.binfo so that it will compile. + * varasm.c (output_constant_def_contents): New function. + (output_constant_def): Use it. + (deferred_constants): New list of constants not yet output. + (defer_addressed_constants): New function. + (output_deferred_addressed_constants): New function. + (make_decl_rtl): Don't ever replace old rtl; + instead, change its mode if necessary. -Thu Oct 3 06:46:38 1991 Niklas Hallqvist (niklas at appli.se) +Wed Jul 21 15:50:19 1993 Jim Wilson (wilson@cygnus.com) - * 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. + * expr.c (expand_expr, COMPONENT_REF case): For unaligned object + in an aligned union, set MEM_IN_STRUCT_P if create a MEM rtx. - * cplus-init.c: Use new SET/CLEAR macros. - - * cplus-search.c: Ditto. + * sparc.c (output_move_double): Only set highest_first if first reg + of dest overlaps memory src address. Otherwise, if addreg1 set and + is same as second reg of dest, suppress trailing decrement. - * 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) + * sparc.md (movdi+1): Delete & from r/i constraint. - * dbxout.c: Include before config.h, because it may define - MIN and MAX. + From rfg@netcom.com: + * fixinc.svr4 (): Don't apply specialized fixes to + if we are on Solaris. They are not needed in that case. - * fold-const.c (const_binop): Delete incorrect short cut for - (0 - const). + * combine.c (nonlocal_label_list): New variable. + (combine_instructions): Set it. + (try_combine, distribute_links): CALL_INSN terminates a basic + block if nonlocal_label_list is set. - * 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. + * config/mips/{bsd-4.h, bsd-5.h, iris3.h, mips.h, news4.h, + news5.h, nws3250v4.h, osfrose.h, svr3-4.h, svr3-5.h, svr4-4.h, + svr4-5.h, ultrix.h} (CPP_SPEC): Define LANGUAGE_ASSEMBLY, not + LANGUAGE_C, when compiling a .s file. - * 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. + * m68k.h (TARGET_SWITCHES): Recognize -m68851, -mno-68851, + -m68302, -mno-68302, -m68332, -mno-68332. - * 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. + * lynx.h, i386/lynx.h, m68k/lynx.h, sparc/lynx.h: New files. + * i386.h (OVERRIDE_OPTIONS, SUBTARGET_OVERRIDE_OPTIONS): Define. + * m68k.h (TARGET_SWITCHES): Add SUBTARGET_SWITCHES. + (OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS. + (SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define. + * sparc.h (TARGET_SWITCHES): Add SUBTARGET_SWITCHES. + (OVERRIDE_OPTIONS): Add SUBTARGET_OVERRIDE_OPTIONS. + (SUBTARGET_SWITCHES, SUBTARGET_OVERRIDE_OPTIONS): Define. -Mon Sep 30 14:07:20 1991 Tom Wood (wood at dg-rtp.dg.com) + * fixincludes (sys/types.h sys/stdtypes.h): Delete newline before + do. + (machine/cpu.h): Delete space in `2>& 1'. - * 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. + * config.sub (lynx): Recognize as vendor. + (lynxos): Recognize as OS. + * configure (i386-*-lynxos, sparc-*-lynxos, m68k-*-lynxos): + Recognize as new configurations. - 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. + * gcc.c (link_command_spec): Move %{T*} after %{L*} and %D. - 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. + * optabs.c (expand_binop): Synthesize double word shifts and + rotates from single word shifts. + * sparc.md (ashldi3, lshrdi3): Obsolete, deleted. -Sun Sep 29 16:29:08 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Jul 21 15:55:18 1993 Ian Lance Taylor (ian@cygnus.com) - * 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. + * fixinc.svr4: When fixing ftw.h, preserve remainder of + ftw and nftw declaration; don't just rewrite it. - * 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. +Tue Jul 20 23:35:36 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Sun Sep 29 12:49:47 1991 Michael Tiemann (tiemann at cygnus.com) + * collect2.c (is_ctor_dtor): Delete leading _'s from sym names + in `special' table, in neither-dots-nor-dollars case. - * 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. +Tue Jul 20 18:49:09 1993 Michael Meissner (meissner@osf.org) - * 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). + * i386/osfrose.h, i386/osfelf.h (CC1_SPEC): Don't turn on + -mhalf-pic if ELF. - * cplus-typeck.c (convert_arguments): Strip the `&' from an - overloaded function passed as an argument into an ellipses. + * i386/osfrose.h (ASM_FILE_END): Put filename, sans directory into + the .ident string. -Sat Sep 28 15:37:26 1991 Michael Tiemann (tiemann at cygnus.com) +Tue Jul 20 15:07:06 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cplus-typeck.c (build_x_binary_op): We have to special-case the - failure of MEMBER_REF to be overloaded as an operator. + * combine.c: Add prototypes for static functions. + (subst, case IF_THEN_ELSE): Add missing arg to make_compound_operation. + (make_compound_operation, case ASHIFTRT): Delete extra gen_unary arg. -Sat Sep 28 10:44:36 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) +Mon Jul 19 18:15:48 1993 John F Carr (jfc@Athena.mit.edu) - * reload1.c (reload): If we find at some point that we need - caller-saves, disable elimination of the frame pointer. + * rs6000.c (current_file_function_operand): New function. + * rs6000.h (ENCODE_SECTION_INFO): New macro. + (PREDICATE_CODES): Add current_file_function_operand. + * rs6000.md: Add variants of call and call_value patterns for + calls to functions defined in the same file. Omit the TOC pointer + reload after such calls. - * reload.c (subst_reloads): Re-enable code to prevent making - a SUBREG inside a SUBREG. +Mon Jul 19 13:17:52 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Sat Sep 28 00:40:51 1991 Ken Raeburn (raeburn@cygnus.com) + * reorg.c (fill_simple_delay_slots): Try filling any insn needing + delay slots with a JUMP_INSN. - * cplus-pt.c (do_pending_expansions): Adjust "DECIDE" macro to avoid - compiler warning from Sun cc. +Mon Jul 19 00:33:24 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Sep 27 17:30:39 1991 Per Bothner (bothner at cygnus.com) + * varasm.c (assemble_variable): New arg DONT_OUTPUT_DATA. + * toplev.c (rest_of_decl_compilation): Pass 0 as DONT_OUTPUT_DATA. - * configure[.in]: Move most of the target_vendor switch - entries (e.g. next, sun, sony) from the m88k architecture to m68k, - where they belong. +Sun Jul 18 15:38:04 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Sep 27 16:21:04 1991 Michael Tiemann (tiemann at cygnus.com) + * c-typeck.c (c_expand_return): Set TREE_SIDE_EFFECTS + for the MODIFY_EXPR that we make. - * 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. + * stmt.c (expand_return): When expanding assignment into DECL_RESULT, + ignore the "value"--do it for effect. -Fri Sep 27 07:05:57 1991 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) + * fold-const.c (fold): Handle CONJ_EXPR. + * c-typeck.c (build_unary_op): Support CONJ_EXPR. + Change BIT_NOT_EXPR to CONJ_EXPR if arg is complex. - * c-decl.c (pushdecl): Fix typo: TREE_EXTERNAL misspelled. +Sun Jul 18 14:22:05 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Thu Sep 26 17:36:14 1991 Michael Meissner (meissner at osf.org) + * function.c (init_function_start): Initialize trampoline_list here. + (expand_function_end): Not here. - * tm-mips.h (ASM_FINAL_SPEC): Handle gcc -c -o foo bar.c. +Sun Jul 18 01:24:54 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * tm-decrose.h (ASM_FINAL_SPEC): Handle gcc -c -o foo bar.c. + * c-typeck.c (common_type): Use TYPE_MAIN_VARIANT when preferring + long int to int (when width is the same). - * 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. + * varasm.c (assemble_variable): Move debugging output calls + to after section has been selected. Select the section again + if the debugging output call changes the section. + * dbxout.c (dbxout_symbol_location): Call in_text_section + to decide whether to use DBX_STATIC_CONST_VAR_CODE. -Thu Sep 26 11:53:49 1991 Ken Raeburn (raeburn@cygnus.com) + * objc-act.c (synth_module_prologue): Call layout_type for the array + type used for _OBJC_SELECTOR_TABLE. - * cplus-tree.h (TEMPLATE_TYPE_*): Use slower versions that uses tree - structures more properly, so accessor macros don't lose. +Sat Jul 17 00:41:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-pt.c (end_template_parm_list): For type parameters, make the - new decl be the name of the "type". + * expr.c (expand_increment): Convert constant subtract to add + before setting single_insn. Compensate for this when choosing + the tree code to pass to `build'. - * Makefile.in (cplus-tab.{c,h}): There are now 30 s/r conflicts. + * toplev.c (rest_of_compilation): If function is extern inline, + even if we can't inline it, don't compile it. - * cplus-class.c (resolves_to_fixed_type_p, case CALL_EXPR): Deleted - duplicate code. +Fri Jul 16 21:33:50 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * dwarfout.c (dwarfout_init): Report failure of getpwd. - * cplus-gc.c (type_needs_gc_entry): If the type has no base types, - don't check to see whether they need gc entries. +Fri Jul 16 15:59:07 1993 Ian Lance Taylor (ian@cygnus.com) - * cplus-parse.y (yyprint): Handle SCSPEC and AGGR. + * config/m68k/hp320.h (LINK_LIBGCC_SPECIAL, SPACE_AFTER_L_OPTION) + (LIB_SPEC): Move outside of USE_GAS conditional. - * 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 Jul 16 14:26:25 1993 David d `zoo' Zuhn (zoo@cygnus.com) -Fri Sep 20 00:27:43 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * config.sub: if [ "$os" ] --> if [ x"$os" != x"" ] - * 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. +Fri Jul 16 05:50:35 1993 Paul Eggert (eggert@twinsun.com) - * explow.c (allocate_dynamic_stack_space): - Handle SETJMP_VIA_SAVE_AREA before rounding to STACK_BOUNDARY. + * c-typeck.c (check_format): With -Wformat, warn about + printf("%ld", 1) even if sizeof (int) == sizeof (long), + since the code isn't portable. Similarly for "%d" vs 1L. -Thu Sep 19 21:13:17 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * c-typeck.c (convert_arguments) [PROMOTE_PROTOTYPES]: + With -Wconversion, use unpromoted type to check for signedness changes. - * Makefile.in (dist, gcc-*.tar, gcc-*.tar.Z): New targets. +Thu Jul 15 13:04:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): In handling `if (...) x = a; else x = b;', - don't crash if scan reaches start of insns. + * fixincludes (stdlib.h): Check carefully for definition of size_t. - * 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. +Wed Jul 14 19:05:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * protoize.c: Major rewrite by RFG and RMS. + * fixincludes: Fix size_t definition in stdlib.h as in types.h. + Also a conditional to prevent repeated definition. -Thu Sep 19 09:58:25 1991 Tom Wood (wood at dg-rtp.dg.com) +Wed Jul 14 14:53:26 1993 Ian Lance Taylor (ian@cygnus.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. + * fixincludes: Don't discard comment end characters on lines that + look like "#endif */". Fixes Esix 4.0.4 problem. -Thu Sep 19 06:16:34 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Jul 14 12:20:13 1993 Jeffrey A. Law (law@snake.cs.utah.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. + * pa.c (emit_move_sequence): Use cint_ok_for_move instead of + checking each condition ourselves. - * combine.c (subst, case SET): Fix typo in last change. + * pa-utahmach.h (CPP_PREDEFINES): Do not define HPUX_SOURCE, hp700 + or HP700. + * pa1-utahmach.h (CPP_PREDEFINES): Do not define hp9000s800, + hp9k8, HPUX_SOURCE, or hp800. - * 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. + * Allow unconditional jumps in delay slots of call and millicode + call instructions. + * pa.h (TARGET_JUMP_IN_DELAY): New target flag to allow/disallow + jump instructions in call delay slots. + (TARGET_SWITCHES): Add -mjump-in-delay and -mno-jump-in-delay. + Provide -mno alternatives for most options. + (output_call): Declare. + * pa.c (output_call): New function to output a function call or + millicode call, possibly with a jump in the delay slot. + (output_mul_insn): Accept additional argument, use output_call. + (output_div_insn): Likewise. + (output_mod_insn): Likewise. + (jump_in_call_delay): New function to determine if the given + JUMP_INSN is in the delay slot of a call or millicode call. + * pa.md (uncond_branch): New type attribute. Explicitly disallow + uncond_branch in most delay slots. + (in_call_delay attribute): New test for delay slot of call insns. + Allow uncond_branches in the delay slot if TARGET_JUMP_IN_DELAY. + (define_delay for calls, millicode calls, branches, returns, etc): + Broken up into two define delays. One for calls and millicode + calls, a second for branches, returns, etc. + (millicode insns): Pass the current insn down to + output_{mul,div,mod}_insn. + (jump insn): Use "uncond_branch" type attribute. Length of this + insn varies if it is in the delay slot of a call. + (call_internal_symref): Use output_call. + (call_value_internal_symref): Likewise. + (call_internal_reg): Use %r syntax instead of just register numbers. + (call_value_internal_reg): Likewise. - * combine.c (simplify_shift_const): Correct handling of shift counts - that become out-of-range. +Wed Jul 14 02:19:11 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * combine.c (expand_field_assignment): Don't allow sharing the RTL - for the inner object. + * rtl.def (CONCAT): New rtx code. + * emit-rtl.c (gen_lowpart_common, gen_highpart): Handle CONCAT. + (operand_subword): Likewise. + (gen_reg_rtx): For complex mode, return a CONCAT of two pseudos. + * stmt.c (expand_decl): Make a CONCAT, for decls of complex type. + * dbxout.c (dbxout_symbol_location): Subroutine broken out from + dbxout_symbol. Handle CONCAT here. + (dbxout_symbol_name): New subroutine. Handle anonymous decls too. + (dbxout_reg_parms): Simplify using dbxout_symbol_location. + Handle CONCAT. - * 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. + * c-typeck.c (build_c_cast): When casting to union, if value is array + or function, do default_conversion. - * 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. +Wed Jul 14 00:52:23 1993 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) - * 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. + * config.sub: Add case for Bull dpx/2. -Wed Sep 18 18:54:15 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Mon Jul 12 17:26:53 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * fixincludes: When looking for #define CTRL, + accept multiple spaces between the two words. -Wed Sep 18 15:38:52 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload1.c (reload): Don't free scratch_list or scratch_block if 0. - * c-decl.c (grokdeclarator): Error if nested function is extern. +Mon Jul 12 17:12:31 1993 Paul Eggert (eggert@twinsun.com) -Wed Sep 18 02:41:08 1991 Per Bothner (bothner at cygnus.com) + * c-common.c (unsigned_conversion_warning): Just use `warning', + not `pedwarn'; these diagnostics are not required by Standard C. + * c-typeck.c (convert_for_assignment): Use `convert_and_check', + not `convert', for converting arithmetic types, since + `convert_and_check' no longer reports an error + where it should just warn. - * 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. +Mon Jul 12 16:44:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Tue Sep 17 22:33:30 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * config/i386/i386.md (ffssi2, ffshi2): Assume bsf produces + garbage if input is 0. Use jumps to load output in that case. - * c-typeck.c (check_format): - No warning if types match except for signedness. + * config/vax/vax.h (INITIALIZE_TRAMPOLINE): Add code to + do an rei to clear the insn cache. -Tue Sep 17 10:56:46 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Sun Jul 11 18:13:47 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-decl.c (pushtag): When creating a TYPE_DECL that's in class - scope, allocate the space needed for DECL_CLASS_CONTEXT. + * config/ns32k/ns32k.c (output_move_double): Do the low reg first, + when only the high reg has an overlap. - * 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. + * c-typeck.c (convert_arguments): Don't warn about sign change + for an INTEGER_CST inside NOP_EXPR, if value not fits new type. + Delete the code to check for VAL having enumeration type. -Mon Aug 16 12:09:32 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * i860.c (output_move_double): Fix typos in Jun 28 change. - * make.com: Fix typo. +Sat Jul 10 16:05:26 1993 Jim Wilson (wilson@sphagnum.cygnus.com) -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. + * i860.c (output_move_double): Only set highest_first if first reg + of dest overlaps memory src address. Otherwise, if addreg1 set and + is same as second reg of dest, suppress trailing decrement. - * 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. +Sat Jul 10 19:49:31 1993 Jeffrey A. Law (law@mole.gnu.ai.mit.edu) - * c-decl.c (finish_function): Don't clear DECL_INITIAL if nested. - (pop_c_function_context): Do it here instead. + * jump.c (jump_optimize): Correctly identify branches to the end + of a function so that they may be turned into RETURN insns. -Tue Sep 17 11:30:32 1991 Michael Meissner (meissner at osf.org) +Sat Jul 10 17:37:12 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * collect-osf.c (scan_prog_file): Recognize alternate forms for the - constructor and destructor names. + * collect2.c (main): Allocate COLLECT_NAME string with xmalloc. - * 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. +Sat Jul 10 14:44:29 1992 Chip Salzenberg (chip@fin.uucp) + + * basic-block.h (REGSET_ELT_TYPE): Make unsigned to avoid + signed arithmetic overflow. + * hard-reg-set.h (HARD_REG_ELT_TYPE): New unsigned type to + avoid signed arithmetic overflow. + (HARD_REG_SET): Define as HARD_REG_ELT_TYPE, or array thereof. + (HARD_CONST): Always cast to HARD_REG_ELT_TYPE. + (*_HARD_REG_*): Use unsigned HARD_CONST and HARD_REG_ELT_TYPE + types instead of assuming HOST_WIDE_INT. + +Sat Jul 10 10:25:16 1993 Karl Berry (karl@cs.umb.edu) + + * fixincludes: Check for symlinks being available in /tmp. + +Sat Jul 10 02:01:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) + + * config/m68k/3b1.h (MY_ISCOFF, OBJECT_FORMAT_COFF, NO_SYS_SIGLIST): + New definitions. + +Fri Jul 9 20:40:29 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + + * pa.md (dbra and movb patterns): Fix constraints so that FP + registers are never preferred. + +Fri Jul 9 17:36:35 1993 Holger Teutsch (holger@hotbso.rhein-main.de) + + * va-clipper.h: Make var/stdargs compatible with apogee's acc. + (__gnuc_va_list): Replace __va_f and __va_r with __va_reg. + (__va_list, _SYS_INT_STDARG_H): New defines. + (va_arg): Corresponding changes. + + * config/clipper/clipper.c (clipper_builtin_saveregs) : Dito. + +Fri Jul 9 13:39:08 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + Cygnus<->FSF merge. + Fri Jul 9 12:17:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-typeck.c (build_array_ref): Force the array to be allocated on + the stack if it is accessed by a out-of-bound constant integer + subscript. + + * cp-decl.c (pushdecl): Undo change to generate a new _TYPE node for + a typedef. + + Thu Jul 8 16:25:52 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl.c (pushtag): Don't mark the binding layer marker; for + dwarf debugging, do mark the TYPE_DECL we created as ignored. + + * cp-tree.h (IN_CHARGE_NAME): Define to not need DOLLAR_IN_LABEL. + (VTBL_PTR_TYPE): Likewise. + (VTABLE_DELTA_NAME, VTABLE_INDEX_NAME, VTABLE_PFN_NAME, + VTABLE_DELTA2_NAME): Use two leading underscores. + + Thu Jul 8 14:31:40 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-tree.h (TREE_ANON_UNION_ELEM): Deleted, it's never set. + * cp-decl.c (build_default_constructor): Delete checking + TREE_ANON_UNION_ELEM. + * cp-init.c (emit_base_init): Likewise. + * cp-type2.c (my_friendly_abort): Update count. + + * cp-type2.c (build_functional_cast): Disable assert 323 (see + comments for explanation). + + * cp-typeck.c (comp_target_parms): Return 0 if strict is != 0, not + just > 0. + + * cp-decl.c (init_decl_processing): Don't set WARN_RETURN_TYPE. + + Wed Jul 7 18:36:59 1993 Niklas Hallqvist (niklas@della.appli.se) + + Add the changes to redo how we handle scoping. [Merged by bpk.] + + * cp-class.c ({pop,push}_nested_class): New functions to use + instead of plain {push,pop}class. These functions will see to + that static entities of enclosing classes will be visible. + * cp-tree.h ({pop,push}_nested_class): Declare them. + * cp-decl.h ({finish,start}_function): Use these new functions + instead of plain {push,pop}class calls. + (grokdeclarator): Ditto. + * cp-decl2.c (build_push_scope): Ditto. + * cp-class.c (popclass): Only call pop_class_decls if MODIFY is + set. + + * cp-decl.c (start_decl): Maybe call pushdecl_class_level instead of + pushdecl. This is used for nested types. + (grokdeclarator): Remove the {push,pop}level calls around the + indirect recursion occuring when groking class-local typedefs. + Remove the error check of such typedefs hiding other fields in the + same scope. Remove the pushdecl_class_level call since start_decl + does the work now. + + Class scoping (and type value caching) redone. The new behaviour + is triggered by NEW_CLASS_SCOPING being defined to 1. The old + behavior is accomplished by defining it to the value 0. The entries + below describes the effective changes when NEW_CLASS_SCOPING is set + to non-zero. + + * cp-class.c (set_class_shadows): Add prototype. + (previous_class_values): New variable. + (pushclass): Adapted to not use previous_class_type & unuse_fields. + Removed setting of IDENTIFIER_CLASS_VALUE. + (popclass): Adapted to not use previous_class_type. Don't reset + IDENTIFIER_CLASS_VALUE. Moved call of pop_class_decls. + (maybe_push_cache_obstack): New function. + * cp-decl.c (current_class_depth): Add extern decl. + (previous_class_values): Add extern decl. + (pop_decl_level): Don't reset IDENTIFIER_CLASS_VALUE. + (set_class_shadows): New function. + (poplevel_class): Adjust setting of IDENTIFIER_CLASS_VALUE to only + happen if we're not leaving a toplevel class. + (push_to_top_level): Don't use adjust_type_value. + (set_identifier_type_value): Reverse the choice between class and + local scope when installing the type value. + (set_identifier_local_value): Set the type value if we're seeing a + TYPE_DECL. + (set_nested_typename): Added comment. + (pushtag): Don't call set_identifier_type_value. Leave out + setting of IDENTIFIER_CLASS_VALUE. + (adjust_type_value): Removed. + (pushdecl): Don't call adjust_type_value. + (pushdecl_class_level): Call push_class_level_binding. Set the + type value if we're seeing a TYPE_DECL. + (push_class_level_binding): New function whose guts came from + pushdecl_class_level. + (globalize_nested_type): See to that both the class_shadowed and + type_shadowed lists in the binding stack gets updated correctly. + Don't call set_identifier_type_value on the DECL_NESTED_TYPENAME. + Clear DECL_CLASS_CONTEXT as well as DECL_CONTEXT. Install a + correct IDENTIFIER_{CLASS,TYPE}_VALUE if needed. + (grokdeclarator): Prefer pushdecl_class_level over pushtag when + recording a nested typedef. + (build_enumerator): Don't install a method-local enumerator into + class scope. + * cp-decl2.c (grokfield): Don't call set_identifier_type_value. + * cp-search.c (closed_envelopes): New list containing information + of what decls should be pushed when entering a class scope. + (dfs_pushdecls): Build and maintain the closed_envelopes list + instead of managing the IDENTIFIER_CLASS_VALUEs directly. + (dfs_compress_decls): Adapted to recognize the envelopes + dfs_pushdecls has installed in the IDENTIFIER_CLASS_VALUE slots. + (push_class_decls): Tell overload_template_name to push the + template decls into class scope instead of building a new level. + Added code to open up the envelopes in closed_envelopes and + install the class/type values in the class binding contour with + proper shadowing. + (dfs_popdecls): Removed. + (pop_class_decls): Removed the actual decl-popping code, leaving + just the obstack freeing pop_search_level call. The popping is + automatically handled by poplevel now. + * cp-tree.h (NEW_CLASS_SCOPING): A new macro constant defaulted to + the value 1. + (adjust_type_value): Prototype removed. + (push_class_level_binding): Added prototype. + + Wed Jul 7 11:04:09 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl.c (pushdecl): When processing a typedef statement, + generate a whole new ..._TYPE node. Be careful that the type we're + looking at isn't an error_mark_node. + + * cp-class.c (finish_struct): Set the DECL_CONTEXT on the type we've + found. + * cp-decl.c (pushtag): Mark the TYPE_DECL as ignored when using + dwarf debugging; don't ignore it if it's anonymous for dwarf + debugging. Put the DECL_CONTEXT in the TYPE_CONTEXT of TYPE. + (globalize_nested_type): Remember to set TYPE_CONTEXT. + * cp-pt.c (overload_template_name): Set DECL_CONTEXT. + * cp-search.c (compute_visibility): Set DECL_CONTEXT if the context + is NULL. + + * cp-class.c (finish_struct): Mark the tag as ignored for dwarf + debugging. + + * cp-except.c (EHS_type): Don't make it static. + * cp-class.c (finish_struct): Don't create a default copy + constructor for the EHS_type. + + * cp-class.c (get_vtable_name): Leave the numbers in the name for + the vtable, so we're uniform with what prepare_fresh_vtable is + doing. Introduces a binary incompatability. + + * cp-tree.c (build_cplus_method_type): Mark the first argtype (the + this pointer) as artificial. + + * cp-init.c (do_friend): Don't allow a friend of a class that's not + yet been defined; instead, complain. Make sure we mark every decl + that comes in as being a friend of something. + + * cp-decl2.c (grokclassfn): Mark the __in_chrg parameter as + artificial. Don't mark it as readonly, and for destructors make + sure the first arg in the arg_types chain has TREE_SIDE_EFFECTS set, + so it's seen as artificial. + (finish_vtable_vardecl): For dwarf debugging, make the vtable's + VAR_DECL node be ignored. + + * cp-decl.c (redeclaration_error_message): Use comptypes to see if + OLDDECL and NEWDECL have the same type. + * cp-typeck.c (comptypes): Compare the main variants of the types, + after we've checked the qualifiers that could have been used on them. + + * cp-call.c (EVIL_RETURN, QUAL_RETURN, TRIVIAL_RETURN, ZERO_RETURN): + Rewrite definitions to not use do/while(0), to avoid bogus warnings + on compilers that can't deal with a return inside it. Change all + uses of them to do `return FOO_RETURN'. + + Tue Jul 6 13:00:44 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * cp-decl.c (duplicate_decls): Set GIVE_ERROR so we know where the + previous declaration was for empty parameter name list declarations. + + * cp-class.c (finish_struct): Clean up error message about anonymous + classes. + + * cp-class.c (finish_struct): Don't play with TAIL when we're + dealing with a TYPE_DECL of a RECORD_TYPE; the list continues on + just fine, and TAIL is only used for managing FN_FIELDS. + + * cp-decl.c (pushlevel): Change cast to HOST_WIDE_INT. + * cp-search.c (breadth_first_search): Likewise. + + Fri Jul 2 19:24:55 1993 Steve Chamberlain (sac@rtl.cygnus.com) + + * cp-method.c: Include "cp-class.h" + + Fri Jul 2 18:16:10 1993 Michael Tiemann (tiemann@blues.cygnus.com) + + * cp-call.c (build_overload_call_real): Don't look at a required + template instantiation and a speculative template instantiation as + two different functions if they are really the same function. + + Thu Jul 1 22:28:46 1993 Michael Tiemann (tiemann@blues.cygnus.com) + + * cp-tree.h: Don't include "cp-class.h" here. + * cp-call.c, cp-cvt.c: Include it here instead. + + Thu Jul 1 18:42:03 1993 Mike Stump (mrs@cygnus.com) + + * cp-decl.c (duplicate_decls): Fix typo. (olddecl->olddecls) + + Thu Jul 1 18:34:12 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + New implementation of argument matching. This is now much cleaner + to read, and is designed such that it should be easy to tweak + things when incorrect decisions are made based on the candidates + being examined. + + * cp-decl2.c (flag_ansi_overloading): New variable. + (lang_f_options): Add -fansi-overloading. + * toplev.c (lang_options): Add -fansi-overloading and + -fno-ansi-overloading. + + * cp-class.h (harshness_code): New struct. + (candidate): New members `h' and `h_len' used by new method. New + anonymous union `v', with ansi_harshness and old_harshness. + Deleted member `harshness' (used by old method, now in `v'). + Change every file that uses harshness to refer to it in the union + as appropriate. + (EVIL_CODE, CONST_CODE, ELLIPSIS_CODE, USER_CODE, STD_CODE, + PROMO_CODE, QUAL_CODE, TRIVIAL_CODE): New macros. - * genrecog.c (write_tree_1): Avoid pos[depth-1] if depth is 0. + * cp-call.c (EVIL_RETURN, QUAL_RETURN, TRIVIAL_RETURN, + ZERO_RETURN): New macros. + (rank_for_overload): Renamed to rank_for_overload_old. + (rank_for_overload_ansi): New function for new method. + (rank_for_overload): Call the appropriate fn based on the new flag. + (rank_for_ideal): New function for new method. + (compute_harshness): Renamed to compute_harshness_old. + (compute_harshness_ansi): New function for new method. + (compute_conversion_costs): Renamed to compute_conversion_costs_old. + (compute_conversion_costs_ansi): New function for new method. + (compute_conversion_costs): Call the appropriate fn based on the + new flag. + (ideal_candidate): Renamed to ideal_candidate_old. + (ideal_candidate_ansi): New function for new method. + (ideal_candidate): Call the appropriate fn based on the new flag. + (strictly_better): New function for new method. + (build_method_call): Change things to use the new method if + -fansi-overloading is set. + (build_overload_call_real): Likewise. + * cp-cvt.c (convert_to_aggr): Likewise. -Sun Sep 15 15:19:16 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) + * cp-call.c (build_overload_call_real): Only use the speed hack + to trigger immediately if the OVERLOAD_NAME has a global value if we + aren't using the new overloading scheme. - * make.com: Modify to allow direct submission to a batch queue. - Also, add instructions to build GNU C++ as well as GNU CC. + * cp-cvt.c (build_type_conversion): Only accept using an `operator + double' if there isn't a conflicting `operator int', if + -fansi-overloading is on. - * 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. + Thu Jul 1 17:54:44 1993 Mike Stump (mrs@cygnus.com) -Sun Sep 15 15:12:41 1991 Michael Meissner (meissner at osf.org) + * cp-decl.c (duplicate_decls): Propagate some changes from C + front-end. Conflicts with built-in functions are now only warnings. - * make-mips (Makefile): Remove rule building Makefile, since - Makefile.in now has one. + Thu Jul 1 15:43:48 1993 Mike Stump (mrs@cygnus.com) - * make-decrose (Makefile): Remove rule building Makefile, since - Makefile.in now has one. + * cp-call.c (build_field_call): Use real type if type is a + REFERENCE_TYPE. + * cp-parse.y (primary): Cleanup and move some code out into new + function build_object_ref. + * cp-tree.h (build_object_ref): New function. + * cp-typeck.c (build_object_ref): Define new function. + * cp-typeck.c (build_x_function_call): Return error_mark_node if + first argument is, and handle when TREE_PURPOSE is a binfo and comes + from lookup_fnfields. -Sun Sep 15 14:12:47 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Thu Jul 1 13:48:46 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * Makeflags (SYSCALLS.c.X): Use CPPFLAGS and INCLUDES. + * cp-lex.c (readescape): Don't complain for \% unless pedantic. -Sun Sep 15 12:03:35 1991 Michael Tiemann (tiemann at cygnus.com) + Wed Jun 30 10:35:50 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cplus-decl.c (poplevel): Match change made to c-decl.c on Oct 3, - 1989. + * cp-decl2.c (bad_specifiers): Moved to cp-decl.c. New args + `inlinep' and `object' (old object renamed to type), so we can see + where the thing was declared. Use error_with_decl instead of error. + * cp-decl.c (grokdeclarator): Pass INLINEP and DECL down; move calls + so we'll have a valid DECL to give it. + * cp-tree.h (bad_specifiers): Deleted prototype. -Sun Sep 15 06:52:42 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-call.c (build_scoped_method_call): If it's a reference, work + with the actual type. + * cp-type2.c (build_scoped_ref): Likewise. - * 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. + Tue Jun 29 19:49:57 1993 Mike Stump (mrs@poseidon.cygnus.com) -Sat Sep 14 13:03:29 1991 Michael Tiemann (tiemann at cygnus.com) + * cp-lex.c (default_copy_constructor_body): Hack broken code to work + marginally better than how it worked before, so that PlotFile3D's + make check of libg++ works. - * 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. + Tue Jun 29 12:44:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Sat Sep 14 09:14:26 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-typeck.c (mark_addressable): Don't complain about taking the + address of an object with register storage class; it's legal in C++. - * 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. + * cp-typeck.c (convert_arguments): Only warn about passing an object + through an ellipsis. -Sat Sep 14 01:34:39 1991 Richard Stallman (rms@mole.gnu.ai.mit.edu) + * cp-parse.y (typed_declspecs): Make sure the TYPESPEC we hit + upon is non-null. - * configure (vax-ultrix*): New alternative. + Tue Jun 29 11:58:03 1993 Tony Deigh (tonyd@bostech.com) - * reload1.c (choose_reload_regs): Always ignore cancelled reloads. + * cp-decl.c (grokdeclarator): Look at the decl as a FUNCTION_TYPE + before seeing if its TYPE_MAIN_VARIANT matches or it's a friend; + this way, we can properly detect declaration of another class's + methods inside another class. Solves chainon aborts. - * real.h (atof): Alternate declaration on MIPS. + Tue Jun 29 09:47:36 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Thu Sep 12 18:55:06 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) + * cp-class.c (finish_struct): Use pedwarn_with_decl for warnings + about non-static const/ref in class without a ctor, so the line + number is helpful. - * optabs.c (expand_binop): Fix carry propagation code for multiple - words. + Tue Jun 29 02:46:39 1993 Mike Stump (mrs@cygnus.com) - * tm-*.h: Fix systematic typo in comment. + * cp-cvt.c (build_up_reference): Delete unneed cast. + * cp-typeck.c (convert_for_assignment): Likewise. -Thu Sep 12 18:23:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Jun 28 19:19:34 1993 Mike Stump (mrs@rtl.cygnus.com) - * gvarargs.h, va-mips.h, va-sparc.h (_va___list): Was __va_list. + * cp-lex.c (real_yylex): Use pedwarn to warn about using catch, try + and throw as identifiers. -Thu Sep 12 12:53:36 1991 Roland H. Pesch (pesch at cygint.cygnus.com) + Mon Jun 28 11:13:17 1993 Brendan Kehoe (brendan@lisa.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. + * cp-method.c (hack_identifier): Only look for visibility if we have + a basetype path. -Thu Sep 12 07:58:11 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) + * cp-decl.c (grokdeclarator): Also forbid the subscripting operator, + and class member access operator being declared as a non-member + function. - * m68k.md (umulsidi3, mulsidi3): New DEFINE_EXPANDs and DEFINE_INSN - recognizers. + * cp-init.c (add_friend): Pedwarn on duplicate friend decls. -Wed Sep 11 22:11:17 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-init.c (is_friend_type): New function. + (is_friend): Call it; rewrite in minor ways, to clean the code up. + * cp-tree.h (is_friend_type): Add prototype. + * cp-search.c (compute_visibility): Also check if the + CURRENT_CLASS_TYPE is a friend of CONTEXT, which can buy us access + to the field in question. - * a29k.md, romp.md: Update calling sequence to emit_no_conflict_block. + * cp-init.c (sort_member_init): Disable assert that was wrong. -Wed Sep 11 21:06:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-class.c (finish_struct): Make declaration of a non-static const + or reference member get a pedwarn if the class it's in has no + constructor. - * fold-const.c (const_binop): Fix last change for ceil and round. + * cp-decl2.c (grokfield): Fix up the error message about member + initialization. - * gvarargs.h, va-mips.h, va-sparc.h (va_list): Now a macro again. - (__va_list): This is the typedef. + * cp-typeck.c (c_expand_return): Make sure we don't set + CURRENT_FUNCTION_RETURNS_VALUE if we set CURRENT_FUNCTION_RETURNS_NULL. -Wed Sep 11 16:52:20 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-method.c (dump_init): Don't emit digit_buffer if we're giving + an enum's tag. - * c-typeck.c (build_binary_op_nodefault, RSHIFT_EXPR): Change - "shift count" warnings changed to errors back to warnings. +Fri Jul 9 16:45:25 1993 David d `zoo' Zuhn (zoo@cygnus.com) - * cse.c (canon_hash): Also do not record global_regs if - SMALL_REGISTER_CLASSES. Makes the code match the comment. + * config.sub: Make -solaris reflect the most recent major release. - * cexp.y (yylex): Add sprintf call to create error message, - because yyerror does not call *printf itself. +Fri Jul 9 16:18:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * gcc.c (default_compilers): Support new option -traditional-cpp, - which passes traditional to cpp, but not to cc1. - * gcc.texinfo: Document it. + * Change length attributes to use bytes instead of instruction + counts. + * pa.h (CASE_VECTOR_MODE): Change to DImode. + * pa.c (compute_movstrsi_length): Return length in bytes. + (pa_adjust_insn_length): Return adjustment in bytes. + (output_cbranch): Handle lengths as bytes. + (output_bb, output_dbra, output_movb): Likewise. + * pa.md (default length define_attr): Lengths are in bytes now. + (asm_attributes): Likewise. + (delay slot attributes): Deal with lengths in bytes. + (explicit length computations): Compute length in bytes. - * 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. + * Make more dbra insns and support movb insns. + * pa.h (output_dbra, output_movb): Declare. + * pa.md (dbra pattern): Use output_dbra. + (dbra pattern #2): New pattern. Also use output_dbra. + (movb, inverted movb): New patterns. + * pa.c (pa_adjust_insn_length): dbra and movb insns which have + their output in a FP register do not need adjustment. + (output_cbranch, output_bb): Handle conditional jump to the + following instruction. + (output_dbra): New function extracted from dbra pattern. + (output_movb): New function. + (eq_neq_comparison_operator): New function. + (movb_comparison_operator): New function. - * sched.c (swap_sort): Must pass &insn to rank_for_schedule, not a - pointer into the array being sorted. +Fri Jul 9 01:07:52 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * cplus-lex.c (do_identifier): Put function return type on - preceeding line. + * config/m68k/mot3300.h (ASM_OUTPUT_OPCODE): Don't add .w suffix + to jump insns. -Wed Sep 11 05:51:00 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * combine.c, cse.c: Include stdio.h before rtl.h. - * cplus-typeck.c (build_binary_op_nodefault): If OP0 or OP1 is a - zero pointer, canonicalize it to NULL_POINTER_NODE. +Wed Jul 7 18:06:45 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * 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. + From moshier@world.std.com: + * sparc.c (singlemove_string): Convert SFmode by REAL_VALUE... macros. + * sparc.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): + Use REAL_VALUE_TO_DECIMAL to generate decimal string. + (REAL_ARITHMETIC): Define. - * cplus-tree.c (build_cplus_new): When building cleanup, make - the call to the cleanup nonvirtual. + * sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Use + STARTING_FRAME_OFFSET. + (STARTING_FRAME_OFFSET): Set to -16. -Tue Sep 10 20:28:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-parse.in (simple_if): Save stmt_count, and print empty body + warning here. + (if_prefix): Don't save stmt_count here. + (stmt): Don't print empty body warning here. - * fold-const.c (const_binop): Shortcut for dividing single-word - sizes + * combine.c (simplify_comparison): Add parentheses to satify gcc. + * sparc.c (sparc_frw_save_restore): Likewise. + * expr.c (convert_to_mode): Move misplaced parentheses. - * Makefile.in (varasm.o): Depend on insn-codes.h. +Wed Jul 7 16:37:26 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Tue Sep 10 19:29:26 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * Improve code for conditional branches and dbra insns on the PA. + * pa.c (pa_adjust_insn_length): Rewrite so that it only adjusts + insns which really need adjustment. + (output_cbranch): Rework so that output templates are simpler. + Use shorter sequence for long backwards conditional branches with + a filled delay slot that is nullified. More agressively use "skip" + instructions. More agressively nullify the delay slot if nothing + useful could be placed there. + (output_bb): Likewise. + (forward_branch_p): New function. + * pa.md (conditional branches): Use the full displacement range + for the branch target. Update length computations to match current + reality. + (branch on bit patterns): Likewise. + (decrement_and_branch_until_zero): Re-enable pattern. Rewrite to + be simpler and more efficient. Also handle case where loop counter + is in a FP register. - * optabs.c (expand_binop): Try to open-code muldi3 if we have mulsi3 - and mulsidi3. Idea due to tege@sics.se. +Wed Jul 7 11:19:03 1993 Ian Lance Taylor (ian@cygnus.com) - * 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. + * glimits.h (MB_LEN_MAX): Don't override the value from the system + . Just define it if it is not already defined. -Tue Sep 10 18:16:16 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * collect2.c (main): Search for ld in the compiler directories. - * m68k.md (fix_trunc*): Call CC_STATUS_INIT, since these patterns - do not leave the condition codes in the expected state. +Wed Jul 7 13:40:55 1993 Jim Wilson (wilson@kropotkin.gnu.ai.mit.edu) - * tm-ultrix.h (CPP_PREDEFINES): Add __vax. + * collect2.c (fork_execute, scan_prog_file): Use "fork" in error + messages instead of "vfork" when vfork is defined to fork. -Tue Sep 10 04:12:53 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Tue Jul 6 16:38:36 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * 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'. + * sparc.c (sparc_type_code): Recognize SET_TYPE. For special + Fortran/Pascal types, just return qualifiers instead of aborting. -Mon Sep 9 22:09:27 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * c-decl.c (insert_block): Correct typo in comment. - * cplus-tree.h (prev_class_type): Delete this bogus definition. + * combine.c (simplify_and_const_int, LSHIFTRT case): Must be at + least as many sign bit copies as bits in mask. - * cplus-class.c (instantiate_type): Don't complain about no static - member functions being found until we have been through all the - baselinks. + * c-typeck.c (build_conditional_expr): All simplified results + must go through pedantic_non_lvalue. + * cp-typeck.c (build_conditional_expr): Likewise. + * fold-const.c (fold, COND_EXPR case): Likewise. + (pedantic_non_lvalue): New function. + * tree.h (pedantic_non_lvalue): Add declaration. - * 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?) + * fold-const.c (invert_truthvalue): Check for ERROR_MARK input. - * cplus-decl2.c (lang_decode_option): Turn on warn_uninitialized if - -Wall is the argument. + * m68k.h (LEGITIMATE_BASE_REG_P): New macro. + (INDIRECTABLE_1_ADDRESS_P, GO_IF_INDEXABLE_BASE, + LEGITIMATE_INDEX_REG_P): Accept SUBREG everywhere REG is accepted. -Mon Sep 9 19:05:01 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * sparc.h (EXTRA_CONSTRAINT): For 'T', pass address not mem to + strict_memory_address_p call. For 'U', don't accept unallocated + pseudo-reg when strict. - * gcc.c (default_compilers): For .S files, pass -traditional not - -ftraditional to cpp. + * sparc.c (output_move_quad): Implement CNSTOP case. -Mon Sep 9 15:01:58 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * i960.h (ASM_OUTPUT_COMMON): Use SIZE not ROUNDED. - * fold-const.c (optimize_bit_field_compare): Distinguish NE from EQ. +Tue Jul 6 02:12:15 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * explow.c (allocate_dynamic_stack_space): - Handle SETJMP_VIA_SAVE_AREA by allocating extra space. + * cse.c (simplify_binary_operation, case MINUS): Fix backwards + test added in last change. - * cplus-parse.y (empty_parms): Change inline to __inline. + * config/i386/sun.h (SIZE_TYPE): Deleted. -Mon Sep 9 15:16:24 1991 Torbjorn Granlund (tege at zevs) + * c-typeck.c (convert_arguments): Don't warn for -Wconversion + about signedness of an arg that's extended from narrower unsigned type. - * longlong.h (m68000 umul_ppmm): Clobber one register less by - slightly rearranging the code. + * c-decl.c (duplicate_decls): Don't warn for non-extern var decl + following an extern one (for -Wredundant-decls). -Sun Sep 8 16:47:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Mon Jul 5 17:50:27 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * cccp.c (main, fatal): Delete the deps output file if error. - (deps_file): New variable. + * reload1.c (emit_reload_insns): Don't use gen_lowpart_common to + get reload register into proper mode. + * reload.c (subst_reloads): Likewise. - * expr.c (convert_move): Update call to emit_no_conflict_block. + * combine.c (subst, case PLUS): Simplify (plus (comp A B) -1), etc. - * expmed.c (CEIL): New macro. + * fold-const.c (fold, case EQ_EXPR, LE_EXPR): If comparing results + of signed MOD with zero, use an unsigned MOD. - * optabs.c (expand_binop): Don't do add by words for more than 2 words. + * calls.c: Fix typo: had ARGS_GROW_DOWNARD. - * c-typeck.c (build_modify_expr): Test TREE_READONLY of lhs. + * configure (rs6000-ibm-aix): Use default files for aix3.2 and + aix31.h for aix3.[01]. Add new file x-aix31. + * rs6000.c (input_operand): Fix missing operand on a return. + (print_operand): Add new code '.'. + (rs6000_sa_size): Delete unused variable `i'. + (output_prolog, output_epilog): Use new RS6000_CROR_BIT_NUMBER. + * rs6000.h (CPP_PREDEFINES): Define _AIX32. + (ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP): Use ".text[PR]" as + csect name. + (RS6000_CROR_BIT_NUMBER): New macro. + (PRINT_OPERAND_PUNCT_VALID_P): Allow `.' as valid. + * rs6000.md (call patterns): Use %. in cror. + * x-rs6000 (CLIB): No longer need -lm. + * aix31.h, x-aix31.h: New files. + * aix32.h: Deleted. -Sun Sep 8 01:17:47 1991 Torbjorn Granlund (tege at zevs) +Mon Jul 5 17:44:09 1993 John F Carr (jfc@Athena.mit.edu) - * sparc.md (sgtu, sleu): Test for SUBREG as well as REG. + * romp.md (movhi): When storing a constant in an HImode register, use + cal16 instead of cal so that the high bits are clear (combine + requires this). -Sun Sep 8 07:04:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Mon Jul 5 17:15:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * objc-act.c (encode_type_qualifiers): Add casts to enums in indices. - * cse.c (fold_rtx): Fix typo with parens in associative operation case. +Mon Jul 5 02:25:54 1993 Doug Evans (dje@wookumz.gnu.ai.mit.edu) -Sat Sep 7 21:49:46 1991 Jim Wilson (wilson at cygint.cygnus.com) + * Makefile.in: Parameterize libgcc.a and install-libgcc + (LIBGCC and INSTALL_LIBGCC). - * 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. + * tree.c (get_narrower): Preserve unsignedness when bitschange == 0. - * expr.c (emit_move_insn): When emitting multiple move insns in - the loop, remember last insn emitted so that it can be returned. +Sun Jul 4 02:55:46 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * expmed.c (store_split_bit_field, extract_split_bit_field): + Handle fields split across more than 2 aligned units. -Sat Sep 7 16:25:50 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * expr.c (store_field): Test STRICT_ALIGNMENT at run time. + (expand_expr, COMPONENT_REF case): Fetch unaligned field as bitfield. - * 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. + * collect2.c (error, fatal, fatal_perror): Say collect2, not collect. - * 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. + * c-parse.in (primary): In statement expression case, + if compstmt returns something other than a BLOCK, + return it unchanged. -Sat Sep 7 13:07:12 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Sat Jul 3 20:32:43 1993 Minh Tran-Le (tranle@intellicorp.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. + * fixinc.svr4: Added fixup for __STDC__ == 0 and __STDC__ == 1 + cases found in sequent PTX-2.0.x headers. - * out-m68k.c (output_function_prologue): Add a negative constant - to sp rather than adding a positive one, since this is faster. +Sat Jul 3 18:54:07 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * out-m68k.c (output_function_prologue, output_function_epilogue): - Use word sized immediates when possible. + * pa.c (call_operand_address): Do not accept registers anymore. + * pa.md (call expanders): Emit different patterns for named calls + and indirect calls. + (call_internal_symref, call_internal_reg): New patterns. + (call_internal): Deleted. Now handled by call_interal_{symref,reg}. + (call_value_internal_symref, call_value_internal_reg): New patterns. + (call_value_internal): Deleted. Now handled by + call_value_internal_{symref,reg). - * 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. +Sat Jul 3 16:40:52 1993 Doug Evans (dje@wookumz.gnu.ai.mit.edu) - * genextract.c (main): Don't use __builtin_memcpy in GCC 1. + * collect2.c (main): Give ld_file_name an initial value. -Fri Sep 6 19:29:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Fri Jul 2 16:36:56 1993 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu) - * 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. + * sparc.md (ashldi3+2): Change lshift to ashift. - * fold-const.c (fold): Ensure we always return an object of the - desired type. + * sparc.md (zero_extendhisi2, extendhisi2, extendqihi2, + extendqisi2): Preserve the SUBREG_WORD value of subreg operands. + (ashldi3): Delete, obsoleted by lshldi3 pattern. + (lshldi3): Rename to ashldi3 for consistency with SImode shifts. - * reload1.c (reload, reload_as_needed): reload_in_progress must be - set during caller-save processing. +Fri Jul 2 01:10:56 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Sep 6 18:36:55 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * Makefile.in (install-headers-tar): Ignore exit status of the + first tar command. - * 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. +Thu Jul 1 14:31:45 1993 Doug Evans (dje@canuck.cygnus.com) -Fri Sep 6 17:16:05 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * flow.c (find_auto_inc): In *p=expr;q=p+size case, avoid clobbering q + if referenced in expr. - * configure: Default $cpu_type properly. +Fri Jul 2 01:26:01 1993 Paul Eggert (eggert@twinsun.com) -Fri Sep 6 05:50:58 1991 Ken Raeburn (raeburn at watch.com) + * tree.h (pushcase, pushcase_range): Add a new converter + function argument that specifies how to convert case labels to the + nominal type. + * stmt.c (pushcase, pushcase_range): Likewise. + * c-parse.in (label): Use `convert_and_check' when checking for + overflow in case labels. + * cp-parse.y (simple-stmt): Similar change, but use `convert' instead; + this leaves the behavior unchanged for C++. A C++ expert should look + into this. - * genextract.c: Generate one large function with a switch, instead - of a table of small functions to call. Use __builtin_memcpy under - GNU C. + * tree.h (TREE_OVERFLOW): New macro. + * c-common.c (constant_expression_warning, overflow_warning, + convert_and_check): Distinguish between TREE_OVERFLOW, which is just + for warnings, and TREE_CONSTANT_OVERFLOW, which is for required + pedantic diagnostics. + * c-typeck.c (c_sizeof, build_c_cast): Set TREE_OVERFLOW in addition + to TREE_CONSTANT_OVERFLOW. + (store_init_value): STRIP_TYPE_NOPS is required before + constant_expression_warning. + * fold-const.c: (const_binop, fold_convert, fold): + Set TREE_OVERFLOW in addition to TREE_CONSTANT_OVERFLOW. - * genoutput.c: For "@" constructs, now generates a lookup table per - insn, instead of a switch. +Thu Jul 1 20:55:27 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Fri Sep 6 15:40:54 1991 Tom Wood (wood at dg-rtp.dg.com) + * reload1.c (eliminate_regs): Fix typo in BYTE_LOADS_ZERO_EXTEND. - * cccp.c (skip_if_group): Deal with invalid directives the same - way handle_directive does. +Thu Jul 1 20:00:00 1993 DJ Delorie (dj@ctron.com) -Fri Sep 6 16:37:04 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * gcc.c (choose_temp_base): Try multiple variables. Don't + assume that the variable points to a valid directory. - * tm-sparc.h (RTX_COSTS): Define costs for MULT and various divides. + * gcc.c (pexecute): Handle the MS-DOS return codes correctly. + Add .exe to file name when appropriate. - * loop.c (move_movables): Call `gen_lowpart_common' instead of - building SUBREG manually. + * configure.bat: Make gcc use its own obstack.o. - * 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. + * objc/makefile.dos: New file for building with djgpp. -Fri Sep 6 07:15:44 1991 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu) +Thu Jul 1 18:15:17 1993 Paul Eggert (eggert@twinsun.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. + * fixincludes, fixinc.svr4: Don't create absolute symbolic links; + make them relative instead. + * fixincludes: Remove special case for IRIX 4.0.1 that was + superseded by a more general fix to fixincludes. - * gnulib2.c (__muldi3): Cast operands to unsigned. + * fixinc.svr4: Remove everything after #endif, instead of trying + to turn it into comments, which loses inside comments. + * fixincludes: Likewise. Remove #endif workarounds for Ultrix 4.[12] + and SunOS 4.1, which are no longer needed because of this bug fix. - * gnulib2.c (__Xcmpdi): Use `long' for all variables for - consistency. +Thu Jul 1 14:56:56 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * 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. + * pa.h (OVERRIDE_OPTIONS): Define. Give a warning if -fpic or + -fPIC was specified on the command line. -Fri Sep 6 05:44:07 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * configure (hppa1.0-hp-hpux8.02): New target. + (hppa1.1-hp-hpux8.02): Accept "--gas" in this configuration. + * pa-oldas.h: New target for 1.0 machines running HPUX 8.02. + * pa.c (output_arg_descriptor): Reverse polarity of test for + HP_FP_ARG_DESCRIPTOR_REVERSED. + * pa.h (ASM_DOUBLE_ARG_DESCRIPTORS): Likewise. + * pa-hpux7.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Define. + * pa1-oldas.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Define. + (TARGET_DEFAULT): Clear useless bits in TARGET_DEFAULT. + * pa-utahmach.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Do not define here. + * pa1-utahmach.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Likewise. + * pa1-ghpux.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Likewise. + * pa1-hpux.h (HP_FP_ARG_DESCRIPTOR_REVERSED): Likewise. - * 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. +Thu Jul 1 09:48:23 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * fold-const.c (fold, case GE_EXPR, LT_EXPR): Don't assume + result of comparison is integer_type_node. -Fri Sep 6 15:58:52 1991 Torbjorn Granlund (tege at zevs) +Thu Jul 1 00:23:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - * 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. + * config/i386/mach.h (SIZE_TYPE): Definition deleted. -Fri Sep 6 01:42:09 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Wed Jun 30 16:16:20 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * jump.c (jump_optimize): Delete duplicate line number notes. + * config/m68k/sun3.h (SIZE_TYPE): Definition deleted. -Thu Sep 5 19:23:24 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Wed Jun 30 16:55:25 1993 John F Carr (jfc@Athena.mit.edu) - * configure (romp): Fix typo in name of xm_file. + * mips.c (gen_int_relational): For test with constant result, + copy const0_rtx or const_true_rtx to result register instead + of allocating a new pseudo-register. - * rtlanal.c (dead_or_set_p): If INSN has a CLOBBER for X, X is - dead. +Wed Jun 30 15:19:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) - * 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. + * config.sub: Recognize `gnu' as a valid operating system. Sheesh. -Thu Sep 5 18:32:27 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) +Wed Jun 30 13:43:45 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * m68k.md (zero_extend*): Don't allow memory-memory due to aliasing. + * pa.c (output_function_prologue): Emit SAVE_SP flag if a frame + pointer is needed. - * expr.c (do_jump): Don't lose if only 1 insn precedes new jump. +Wed Jun 30 00:52:25 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sparc.md (ashldi3): Fix dumb bug detecting constant 1. + * collect2.c (main): Don't look for `gld' or `TARGET-gld'. - * out-sparc.c (output_move_double): Use split_double for constant. - Properly decrement addreg1. + * fixincludes (stdtypes.h): Verify that size_t etc. follow whitespace. -Thu Sep 5 15:20:25 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * expr.c (expand_expr, case PLUS_EXPR): In the special case + to return sym+integer as an expression, limit it to when + the non-CONST_INT arg is at least a constant. + (expand_increment): Do preinc with single insn if there's such an insn. - * out-sparc.c: Include expr.h and delete extern declarations. + * stmt.c (expand_end_case): Pass 1 as UNSIGNEDP to emit_cmp_insn + when handling wide values. + Save original minval in orig_minval and use for making the table. - * 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. +Tue Jun 29 22:28:06 1993 Jeffrey A. Law (law@snake.cs.utah.edu) - * 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. + * pa.c (singlemove_string): Use zdepi and ldil to load constants + into registers when appropriate. - * 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. +Tue Jun 29 11:26:35 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * sched.c (schedule_block): When calculating estimated IPC, avoid - divide by zero. + * config.sub: Recognize -sysv* after -sysvr4. - * 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. + * config/vax/vax.h (GO_IF_NONINDEXED_ADDRESS): Declare reg_equiv_mem. - * toplev.c (fatal_insn_not_found): Correct typo in error message. - (main): Include "gsdb" and "gdbx" in warning message when -g is not - supported. +Mon Jun 28 20:12:04 1993 Steve Chamberlain (sac@apple-gunkies.gnu.ai.mit.edu) - * expr.h (enum expand_modifier): Delete last vestige of - EXPAND_INTO_STACK. + * config/sh/*: Major rework. -Thu Sep 5 13:50:21 1991 John Gilmore (gnu at cygint.cygnus.com) +Mon Jun 28 02:46:47 1993 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. + * fixincludes (file): When changing VA_LIST to DUMMY_VA_LIST, + preserve _NEED___VA_LIST. -Thu Sep 5 13:44:19 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * config/ns32k/ns32k.c (output_move_double): + Handle reg[n,n+1] = mem[reg[n] + reg[n+1]]. + * config/ns32k/ns32k.md (movdf, movdi): Delete `&' from constraint. - * 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. + * config/sparc/sparc.c (output_move_double): Use new local var + highest_first to make sure addreg1 gets handled in the overlap case. + In 2-reg-overlap case, really use proper reg in new address. - * 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. + * config/i860/i860.c (output_move_double): + Handle reg[n,n+1] = mem[reg[n] + reg[n+1]]. Use new local var + highest_first to make sure addreg1 gets handled in the overlap case. + * config/i860/i860.md (movdf, movdi): Delete `&' from load constraint. -Thu Sep 5 13:15:43 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * config/sparc/sol2.h (CPP_SPEC): For -compat-bsd, put the ucbinclude + dirs before, not after. - * rtlanal.c (reg_referenced_p): Handle USE and CALL. - Use switch instead of if-then-else. + * expr.c (store_field): Store unaligned field with bit field methods. -Thu Sep 5 08:03:58 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * config/vax/vax.h (GO_IF_NONINDEXED_ADDRESS): If reload_in_progress, + check a REG's reg_equiv_mem the way we would check a MEM. - * cplus-class.c (propagate_assoc_offsets): Don't fail to - propagate the offset to the rightmost basetype. + * reload.c (find_reloads_address): Be selective about what inner + addresses to allow in an indirect mem ref. - * cplus-decl.c (xref_tag): Allocate nodes for basetype info on - permanent obstack, not temporary obstack. +Sun Jun 27 16:40:59 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Wed Sep 4 18:53:16 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * emit-rtl.c (copy_rtx_if_shared): Don't try to copy a 0-length vector. - * fixincludes : Change `m68k' to `__m68k__' in all #if's. + * config/m68k/x-apollo68 (TAROUTOPTS): New definition. - * Makefile.in (ALLOCA_FLAGS): Add -Demacs. - (ALLOCA_FINISH): Put option before input file name. - (alloca.o): Supply $(INCLUDES). + * config.sub: Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4. - * 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. + * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Check for -iwithprefixbefore. + (option_map): Add --include-with-prefix-before and + --include-with-prefix-after. -Wed Sep 4 18:13:56 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) +Sun Jun 27 16:04:52 1993 Holger Teutsch (holger@hotbso.rhein-main.de) - * combine.c (make_extraction): When picking up low-order part, - ensure that we don't create a non-aligned object if alignment - is required. + * va-clipper.h: Use and define Macro __GNUC_VA_LIST. Define struct + __gnuc_va_list. + +Sun Jun 27 08:32:19 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * machmode.h (INTEGRAL_MODE_P, FLOAT_MODE_P): New macros. + * cse.c (simplify_*_operation, fold_rtx, record_jump_cond, cse_insn): + Use them. + * combine.c (subst, apply_distributive_law): Likewise. + (reversible_comparison_p): Likewise. + Can reverse if MODE_COMPLEX_INT or MODE_PARTIAL_INT. + + * function.c (fixup_stack_1): Handle + current_function_internal_arg_pointer. + + * stor-layout.c: Add prototypes for layout_record and layout_union. + (smallest_mode_for_size): New function. + (variable_size): Allow variable sizes if global_bindings_p returns a + negative value. + (mode_for_size): Fix incorrect comment. + (layout_decl): If DECL has a size already, don't copy from type. + (layout_type, case INTEGER_TYPE, ENUMERAL_TYPE): Use smallest + integer mode that fits, whether or not it fits exactly. - * 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). - - (compile_file, rest_of_decl_compilation): Attribute time in - {dbxout,sdbout,dwarfout} functions to symout_time. - - * 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. - -Tue Sep 3 23:34:57 1991 Torbjorn Granlund (tege at zevs) - - * sparc.md (ashldi3 expander & recognizer): Make shift count have - SImode. Used to have DImode. - - * expmed.c (emit_store_flag): Declare arg UNSIGNEDP. - - * vax.md (adddi3): Make operands 2 and 3 commutative. - - * sparc.md (subtract constant then return): Peephole deleted. - -Tue Sep 3 22:23:52 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * Makefile.in (mostlyclean, clean, realclean): Some files were missing. - - * gvarargs.h (va_list): Make it typedef, not macro. - * va-mips.h, va-pyr.h: Likewise. - -Tue Sep 3 22:07:04 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-init.c (build_vec_delete): Fix off-by-one error for arrays - of length 1. - -Tue Sep 3 19:30:45 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * combine.c (try_combine): Don't pass a STRICT_LOW_PART to - reg_overlap_mentioned_p. - - * 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. - - * 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. - -Tue Sep 3 19:17:34 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * 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. - - * 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. - -Tue Sep 3 16:28:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * optabs.c (expand_binop): Fix carry calculation. + * emit-rtl.c (restore_emit_status): Clear LAST_LABEL_NUM. - * 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. + * calls.c (expand_call): If function hasn't been used before, + call assemble_external. - * configure: Fix typo in last change. + * expr.c (store_constructor): Treat QUAL_UNION_TYPE just + like UNION_TYPE. + (safe_from_p, case ADDR_EXPR): EXP is safe from X it is is static or + if the object whose address is being taken is safe from X. + (expand_expr): Fix misplaced comment from last change. + (expand_expr, case *_DECL): If not already used, assemble external. + (expand_expr, case EXIT_EXPR): Simplify. + (expand_expr, TRUTH_{AND,OR}IF_EXPR): Properly handle IGNORE case. - * cccp.c (handle_directive): Normally no error for line with `###'. + * tree.c (array_type_nelts): Tighten up code and make more general. + (build_function_type): Allow function to return array. + (decl_function_context): Treat QUAL_UNION_TYPE like UNION_TYPE. -Tue Sep 3 10:53:12 1991 Tom Wood (wood at dg-rtp.dg.com) + * fold-const.c (fold, case TRUTH_XOR_EXPR): End with `return', + not `break'. - * 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. + * dwarfout.c (output_compile_unit_die): Add support for Ada. -Tue Sep 3 03:18:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * c-iterate.c (collect_iterators, case SAVE_EXPR): Simplify code + added in previous change. - * expr.c (expand_expr): Get rid of EXPAND_INTO_STACK. + * expr.c: Fix typo: was ARGS_GROW_DOWNARD. -Mon Sep 2 14:07:54 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * gcc.c (do_spec_1): In %X, terminate the arg after each option. - - * 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' - - * tm-sysv4.h (ASM_DECLARE_FUNCTION_SIZE): New macro. - - * tm-mips.h, tm-m88k.h (abort): Macro definition deleted. It is - not right for any machines description to specify use of fancy_abort. - - * protoize.c [v.4]: Include fcntl.h. - (execvp): Correct type for second arg. - (compile_params): Remove `const'; that loses when calling execvp. - - * cccp.c (directive_table): Typo in entry for do_ident. - - * xm-m68k.h (alloca): Define macro with arg. - - * emit-rtl.c (reorder_insns_with_line_notes): New function. - (find_line_note, emit_line_note_after): New functions. - - * 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. - -Mon Sep 2 03:30:35 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * Makefile.in (collect2): Compile with gcc. - -Sun Sep 1 9:03:46 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - Define two macros to eliminate the need for a seperate collect pass. - - * tm-vms.h (ASSEMBLE_OUTPUT_CONSTRUCTOR): Define. - (ASSEMBLE_OUTPUT_DESTRUCTOR): Define. - -Sun Sep 1 08:14:22 1991 Michael Meissner (meissner at osf.org) - - * collect-osf.c (main): Print version number if -v. Also ignore all - arguments beginning with -c rather than just '-c'. - - * make-decrose (collect): Add version.o to link. - -Sat Aug 31 17:03:23 1991 Michael Meissner (meissner at osf.org) - - * cplus-input.c (inline macro definition): If inline is already - defined, don't redefine it. - - * 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. - - * osf-main.c (__finis): Don't call descructors already called if one - of the destructors calls exit (which in turn calls __finis). - - * 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. - - * 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. - - * 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. - -Sat Aug 31 12:52:17 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * cccp.c (handle_directive): Be more fussy detecting `# LINE' case. - - * cccp.c (directive_table): Pass through and ignore #ident. - (do_ident): New function. - (skip_if_group): Error if unrecognized directive seen. - - * jump.c (jump_optimize): In converting x=a; if (...) x=b; to - store flag, insert all the new code in just one line. - - * gcc.c (do_spec_1): Use xmalloc to make linker_options the first time. - - * expr.c (expand_expr): Make EXPAND_SUM and EXPAND_INITIALIZER - imply EXPAND_CONST_ADDRESS in all cases. - - * c-decl.c (c_decode_option): -Wall sets warn_uninitialized. - * flags.h (warn_uninitialized): Declared. - * toplev.c (warn_uninitialized): No longer static. - - * cccp.c (main): Make no assumptions about include_defaults - in calculation of max_include_len. Add fudge space if VMS. - - * 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. - - * cplus-xref.c: Finish installing changes from Youngdale. - -Sat Aug 31 09:02:25 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-decl2.c (finish_file): Call varasm routines to assemble ctor - and dtor lists. - - * cplus-dbxout.c (dbxout_type_methods): Fix error in printing symbol - info for classes that only define a destructor. - -Sat Aug 31 08:32:12 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.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. - - * 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. - - * 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. - - * local-alloc.c (requires_inout_p): Don't have cases for '[Q-U]' unless - EXTRA_CONSTRAINT is defined.. - - * local-alloc (block_alloc): Don't allocate SCRATCH on machines with - SMALL_REGISTER_CLASSES defined. - - * regclass.c (reg_class_record): Add missing case for 'V'. - -Fri Aug 30 04:42:19 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * tm-i386.h (OUTPUT_JUMP): Use cc_prev_status. - -Fri Aug 30 17:08:52 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * 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. - - * 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. - -Fri Aug 30 17:30:15 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * cplus-xref.c: Reinstall Aug 25 changes discarded by Tiemann. - - * 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. - -Fri Aug 30 15:41:03 1991 Michael Meissner (meissner at osf.org) - - * mips.md (copyleft): Use separate copyright years. - (mov*): Use nonimmediate_operand instead of general_operand. - - * tm-mips.h (copyleft): Use separate copyright years. - - * xm-mips.h (copyleft): Use separate copyright years. - - * xm-umips.h (copyleft): Use separate copyright years. - -Fri Aug 30 08:47:30 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * 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. - - * 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 Aug 30 07:40:49 1991 Tom Wood (wood at dg-rtp.dg.com) - - * jump.c (delete_jump): When checking REG_DEAD notes, make sure they - have a legal value. - -Fri Aug 30 00:57:05 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * 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. - -Thu Aug 29 21:39:07 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-typeck.c (build_binary_op_nodefault): Fix last change. - -Thu Aug 29 19:11:05 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - -Thu Aug 29 09:53:27 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) - - * 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 Aug 29 08:07:40 1991 Tom Wood (wood at dg-rtp.dg.com) - - * m88k.md (define_function_unit): Update latencies. - - * out-m88k.c (output_function_profiler): Correct offsets for - register saves. - * tm-m88ksvr4.h (FUNCTION_PROFILER): Use the name _mcount and do - register saves. - - * tm-m88k.h (ASM_DWARF_POP_SECTION): Specify "previous". - - 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. - -Thu Aug 29 06:15:32 1991 Michael Tiemann (tiemann at rtl.cygnus.com) - - * cplus-type2.c (build_functional_cast): If we have a valid value in - `expr_as_conversion' return that before returning error_mark_node. - - * cplus-init.c (expand_recursive_init): Fix typo is testing - TYPE_USES_VIRTUAL_BASECLASSES. - -Wed Aug 28 23:12:35 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-typeck.c (build_binary_op_nodefault): For shift and rotate ops, - if traditional, use the common type of the operands. - -Wed Aug 28 07:31:33 1991 Tom Wood (wood at dg-rtp.dg.com) - - * 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). - -Wed Aug 28 06:24:30 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - - * machmode.h (MIN, MAX): Undefine these before our definition. - -Tue Aug 27 21:33:04 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) - - * version.c: Now 1.95. - -Tue Aug 27 18:05:25 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * reload1.c (possible_group_p): Use earliest class that needs a group. - - * 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. - - * cse.c (find_comparison_code): Don't call fold_rtx, - because we don't know which insn to pass for its second argument. - - * cse.c (fold_rtx): Don't fold what we get from lookup_as_function. - -Tue Aug 27 17:46:59 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * cse.c (rtx_cost): A USE is free; it is likely being used as a marker. - - * 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. - - * 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. - - * cse.c (delete_dead_from_cse): Treat a SET that copies a register - to itself as if it were setting a dead register. - - * 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. - - * fold-const.c ({neg,mul,lshift,rshift,lrotate,rrotate}_double): - No longer static. - * cse.c (simplify_{unary,binary}_operation): Fold some DImode - operations. - - * fold-const.c (fold, case EQ_EXPR, NE_EXPR, ...): Add code to handle - cases where we are comparing the result of a comparison. - -Tue Aug 27 14:35:59 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * 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. - - * c-decl.c (store_parm_decls): No error if arglist contains type tag. - - * optabs.c (expand_fix): Really call emit_cmp_insn right. - - * floatlib.c: New file. - - * gnulib2.c (__clz_tab): Moved to _udivdi3. - -Tue Aug 27 06:44:12 1991 Michael Tiemann (tiemann at rtl.cygnus.com) - - * cplus-typeck.c (c_expand_return): Don't use the cleanup generated - by `build_functional_cast'. - - * cplus-class.c (resolves_to_fixed_type_p): Handle WITH_CLEANUP_EXPR. - -Mon Aug 26 20:55:58 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-parse.y (yylex): Cast shorts[n] to long before shifting. - * fold-const.c (decode): Likewise. - - * Makefile.in (INSTALL_DATA): Renamed from INSTALL_FILE. - - * cse.c (canon_hash): Don't crash if subexpression is 0. - - * cplus-lex.c (interface_strcmp): Put back variable s1. - -Mon Aug 26 18:14:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * function.c (instantiate_virtual_regs_1): Complete previous change; - had omitted arg on two returns. - -Mon Aug 26 15:16:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * optabs.c (expand_float, expand_fix): Pass new arg to emit_cmp_insn. - - * out-m68k.c (singlemove_string): Fix last change. - -Mon Aug 26 11:20:51 1991 Tom Wood (wood at dg-rtp.dg.com) - - * m88k.md (cmpsi insn): Don't provide an insn that compares two - constants. - -Mon Aug 26 08:34:48 1991 Michael Meissner (meissner at osf.org) - - * 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. - - * 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. - -Mon Aug 26 07:22:21 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - - * tm-rs6000.h (HARD_REGNO_MODE_OK): Don't put DImode in reg 31; - similarly for TImode. - - * 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. - - * reload1.c (alter_reg): Ensure that stack slot is always the correct - mode. - -Mon Aug 26 06:20:43 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * 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. - - * cplus-init.c (expand_member_init): Call error with - IDENTIFIER_POINTER, not DECL_NAME, of NAME. - - * cplus-method.c (fndecl_as_string): Don't skip `in_charge' - parameter twice. - - * 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. - - * 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. - - * cplus-typeck.c (type_unknown_p): If TREE_CODE (EXP) == TREE_LIST, - it's type is unknown. - - * cplus-typeck.c (commonparms): Don't insert default parmeter values - into existing arg lists. Instead, unify them into new ones only. - - * 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'. - - * 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. - -Sun Aug 25 22:44:57 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-typeck.c (compparms): Deal with STRICT == 3. - * cplus-search.c (get_first_matching_virtual): Call `compparms' with - STRICT == 3. - - * cplus-lex.c (operator_name_string): Don't abort if we cannot find - a operator name for NAME. Instead, return identifier for - . - -Sun Aug 25 15:42:59 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * 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. - - * optabs.c (expand_binop): Use word mode for force_reg on op1 of shift. - - * out-m68k.c (singlemove_string): Use moveq when appropriate. - - * 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. - - * 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): - - * 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. - - * expr.c (do_jump_for_compare): Don't assume the compare survives - when the branch is emitted. - - * expr.c (convert_move): Fix typo in prev change. - - * emit-rtl.c (fconst2_rtx, dconst2_rtx): New vars. - (init_emit_once): Initialize them. - - * expmed.c (extract_bit_field, store_bit_field): - For multi-word field, do words from least significant first. - - (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. - - * 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. - - * Makefile.in (ENQUIRE_CFLAGS, ENQUIRE_LDFLAGS): New parameters. - (enquire, enquire.o): Use them. - - * tm-sysv4.h: New file, cut out from tm-m88k.h. - * tm-m88k.h: Include that. - - * vax.md (sltu, sgeu): New patterns. - -Sat Aug 24 11:19:43 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-init.c (build_offset_ref): Pass a TYPE_DECL node, not a - RECORD_TYPE node, to `build_component_type_expr'. - - * 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'. - - * cplus-typeck.c (build_x_*_op): Don't try using built-in operators - if user-defined ones are not accessible. - - * 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. - - * 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). - - * 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. - - * 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'. - - * cplus-decl.c (grokdeclarator): Don't let member functions have - static linkage. - - * 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. - - * 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. - - * 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. - -Sat Aug 24 01:33:00 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * expr.c (convert_move): Make integer extension general. - - * optabs.c (init_extends, gen_extend_insn): Finish and turn on. - - * reload1.c (possible_group_p): Insist on regs in needed class. - - * SYSCALLS.c (alloca): Declare arg as size_t. - - * expr.c (store_constructor): Handle union constructor. - - * final.c (split_double): long long CONST_DOUBLE now has VOIDmode. - - * optabs.c (expand_binop): Fix carry propagation bugs. - Handle carry propagation for big-endian case. - -Fri Aug 23 21:29:46 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * cplus-decl.c (finish_decl): More PIC fixes. Also, don't assign - any storage for static member variables except when they are being - defined. - - * 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. - -Fri Aug 23 18:31:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * expr.c (do_store_flag): Give up if can't directly compare args. - -Fri Aug 23 18:00:58 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * function.c (instantiate_virtual_regs_1): Add new arg and now returns - int instead of void. - All callers changed. - - * 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-common.c (shorten_compare): Warn about unsigned >= 0. - -Sun Aug 18 17:29:16 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * tm-vms.h (ASM_OUTPUT_EXTERNAL): Remove code to round the storage - size up to a multiple of 4 bytes. - -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. - - * cplus-ptree.c (print_lang_type): Modified as necessary to cope with - new inheritance structure. - - * cplus-search.c (get_base_type_1): This function was unused and - wrong. Deleted. - - * cplus-tree.c (layout_basetypes): Take new arg ASSOCS. Layout the - basetypes my modifying the assocs, not the types. - (layout_vbasetypes): Ditto. - - * all cplus-* files: Removed dead code, unused variables, and change - asserts where appropriate. - - * 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. - -Sat Aug 17 15:16:40 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * function.h (inline_function_decl): Declare it. - * integrate.c: Include function.h; don't declare var here. - - * rtl.h (regno_reg_rtx): Declare it. - - * stmt.c (expand_end_case): - When filling labelvec from case range, avoid overflow in i. - -Fri Aug 16 23:06:37 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-typeck.c (build_binary_op_nodefault): - Take out warning added by recent changes. - -Fri Aug 16 22:00:09 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - -Fri Aug 16 21:41:10 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) - - * a29k.md (insv,extv): Changed POS / SIZE to POS / 8, since high - order bit of BP selects half-word position for half-word ops. - -Fri Aug 16 18:52:35 1991 Jim Wilson (wilson at sphagnum.cygnus.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) - - * cplus-pt.c (uses_template_parms): Run loop over _EXPR nodes from - TREE_CODE_LENGTH-1 to 0, not from TREE_CODE_LENGTH. - - * cplus-decl.c (grokfndecl): Change `==' to `=' in assignment to - `raises' - (finish_decl): If FLAG_PIC is nonzero, leave initialized data in - common space. - -Fri Aug 16 13:13:11 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * 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 Aug 16 16:16:45 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) - - * tm-sparc.h (SELECT_SECTION): Don't put relocatable values into - text space if generating position-independent code. - -Fri Aug 16 16:00:30 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * protoize.c (__flsbuf): Decl deleted; no need. - [ultrix]: Include string.h, not strings.h. - - * function.c (instantiate_virtual_regs_1): Bug adding NEW to addr of X. - -Fri Aug 16 08:51:25 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - -Thu Aug 15 23:38:04 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * tm-m68k.h (PRINT_OPERAND): Use asm_fprintf to print immed prefix. - -Thu Aug 15 23:36:12 1991 Micheal Tiemann (tiemann at pogo.gnu.ai.mit.edu) - - * cplus-decl.c (finish_enum): Remove last traces of Wood's mistaken - changes for tag handling in C++. - * cplus-class.c (finish_struct): Ditto. - -Tue Aug 13 06:12:18 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - - * 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. - - * optabs.c (emit_cmp_insn): Use type of int instead of SImode for - return from memcmp and bcmp. - -Mon Aug 12 17:54:55 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * stmt.c: Include recog.h. - * stmt.c (expand_end_bindings): Expect abort to return void. - (expand_end_case): Give tablejump whatever mode it wants. - - * integrate.c (integrate_type): New function. - * c-typeck.c (build_binary_op_nodefault): Rewrite last change. - - * 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. - -Mon Aug 12 17:25:48 1991 Michael Meissner (meissner at osf.org) - - * 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. - - * 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. - -Mon Aug 12 16:31:47 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * explow.c (expr_size): Fix typo. - -Mon Aug 12 14:27:31 1991 Jim Wilson (wilson at wookumz.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. - - * rtl.h (SCHED_GROUP_P): Fix typo in definition. - -Mon Aug 12 08:01:01 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * 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. - -Mon Aug 12 01:44:26 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * 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. - - * 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. - - * final.c (final_scan_insn): In the ASM_OUTPUT_LOOP_ALIGN code, - must verify that next exists before checking whether it is a label. - -Sun Aug 11 16:46:17 1991 James Van Artsdalen (james at bigtex.cactus.org) - - * i386.md (cmpstrsi): Enable it. Now uses REG as output, not cc0. - Old cc0-output pattern remains for combining cmpstrsi & test pairs. - -Sun Aug 11 15:52:33 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * dbxout.c (dbxout_symbol): Handle var-length array with reference. - - * 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. - - * expr.c (expand_builtin): Get value mode properly, for memcmp. - -Sun Aug 11 15:52:33 1991 Jim Wilson (wilson at cygint.cygnus.com) - - * dbxout.c (dbxout_symbol): DECL_ASSEMBLER_NAME is a tree, not a - character string, so call IDENTIFIER_POINTER before printing it. - - * 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. - -Sat Aug 10 22:58:01 1991 Michael Meissner (meissner at osf.org) - - * mips.md (extendqihi2 define_split): Use SImode on shifts rather - than HImode, and turn result register into SImode as well. - -Sat Aug 10 21:00:59 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * 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. - - * 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. - - * combine.c (distribute_links): Fix typo in comment. - -Sat Aug 10 18:42:22 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * emit-rtl.c (operand_subword): Replace explicit SImode references - with mode for BITS_PER_WORD bits. - -Sat Aug 10 14:17:08 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * calls.c (expand_call): Handle ARGS_GROW_DOWNWARD. - - * ns32k.md (call_value): Consistently realize function is operand 1. - - * cccp.c (do_include): Get current dir from nominal_fname. - - * expr.c (expand_builtin): Give cmpstr* a target in the mode it wants. - * optabs.c (expand_cmp_insn): Likewise. - -Fri Aug 9 09:59:27 1991 Tom Wood (wood at dg-rtp.dg.com) - - * dwarfout.c (output_symbols_for_block): Fix typo in iterating over - subblocks. - - * make-m88k{,dgux,luna}: Eliminate m88k-trace.asm. - * tm-m88k.h, out-m88k.c: Make -mbig-pic a synonym for -fPIC. - Delete -mtrace-function. - - * 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. - -Fri Aug 9 15:21:16 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * 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. - -Fri Aug 9 11:09:22 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * 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. - -Fri Aug 9 06:42:15 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * genemit.c (gen_split): Add "_fail:" label here too. - - * 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. - - * global-alloc.c (expand_preferences): New function. - (global_alloc): Call it. - -Fri Aug 9 01:19:26 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) - - * optabs.c (emit_cmp_insn): Correct typo in spacing. - - * 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. - -Thu Aug 8 17:57:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * 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. - - * tm-m68k.h (LEGITIMIZE_ADDRESS): Copy address before changing it. - (COPY_ONCE): New macro, subroutine for LEGITIMIZE_ADDRESS. - - * toplev.c (main): Accept -g with warning if not supported. - - * Makefile.in (install-cross-tools): Do nothing unless have gcc-cross. - (gnulib2.ready): Depend on install-cross-tools. - -Thu Aug 8 14:34:53 1991 Ken Raeburn (raeburn at watch.com) - - * 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. - - * cplus-method.c (do_inline_function_hair): Change some assignments - to asserts, since they seem to be copying values that are already - there. - -Mon Aug 5 22:23:34 1991 Michael Meissner (meissner at osf.org) - - * 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). - -Mon Aug 5 21:28:06 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * cplus-xref.c (GNU_xref_file): Treat VMS like USG. - - * optabs.c (expand_binop): In libcall, use actual mode of op1. - - * c-typeck.c (build_binary_op_nodefault): - In signed versus unsigned compare warning, note promotions of unsigned. - - * c-parse.y (simple_if): Allow error instead of lineno_labeled_stmt. - (if_prefix): New subroutine of simple_if. - - * gnulib2.c (__ashldi3, __ashrdi3, __lshldi3, __lshrdi3): - Accept second arg as int, not long long. - -Sun Aug 4 22:31:53 1991 Michael Tiemann (tiemann at cygint.cygnus.com) - - * 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. - - * 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++. - - * 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'. - - * 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. - -Sun Aug 4 16:44:54 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * rtlanal.c (reg_referenced_p): Properly handle ASM_OPERANDS. - - * cse.c (cse_insn): When recording this_insn_cc0, build a COMPARE - rtl if SRC is a floating-point value. - -Sun Aug 4 16:16:11 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * fold-const.c (fold): Don't compute shift with negative count. - * cse.c (simplify_binary_operation): Likewise. - -Sat Aug 3 15:57:55 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - * 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. - -Sat Aug 3 15:02:40 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * integrate.c (save_for_inline_copying): Clear constant pool after - saving constants into the insns. - - * expr.c (expand_builtin, case BUILT_IN_MEMCPY): Ensure items - passed to emit_block_move are valid MEMs. - - * 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. - - * stmt.c (expand_end_stmt_expr): Don't try to copy result to - REG; it might be BLKmode. - - * reload.c (MATCHES): Don't consider two things equal if they have - side effects. - - * combine.c (try_combine): When replacing SET_DEST inside a PARALLEL, - don't replace it with something that has a side effect. - -Sat Aug 3 13:17:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) - - * c-decl.c (init_decl_processing): - If traditional, omit builtins with names that don't start with _. - Also omit if not optimizing. - - * Makefile.in (combine.o, emit-rtl.o, expr.o, final.o, tree.o): - Depend on gvarargs.h. - -Fri Aug 2 11:00:10 1991 (Eric Youngdale at youngdale@v6550c.nrl.navy.mil) - - 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. - - * tm-vms.h: Define NO_EXTERNAL_INDIRECT_ADDRESS, define - ENCODE_SEGMENT_INFO to make use of hook in varasm.c - - * 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. - -Fri Aug 2 21:54:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) - - * loop.c (check_dbra_loop): Fix typo in arg to single_set. + * combine.c (subst, case IF_THEN_ELSE): Install correct version of + last change. - * 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. +Sat Jun 26 15:38:33 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * combine.c (set_significant): Handle a complex SET_DEST correctly. + * cccp.c (main): For -iwithprefix, if no include_prefix, + make a default from GCC_INCLUDE_DIR. + Support -iwithprefixbefore. -Fri Aug 2 17:12:24 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload.c (find_reloads): When merging reloads again after they have + been changed, do check reload_reg_class and reload_nocombine. - * tree.c (build_array_type): Make pointer type before array type. + * config/sparc/sparc.md (movdf recognizer): Remove & from + constraint for loading mem to cpu reg. - * Makefile.in (install-common): Never install gcc if gcc-cross exists. + * expr.c (expand_assignment): If FROM is scalar function call, + expand_expr FROM before TO. -Fri Aug 2 14:58:42 1991 Michael Meissner (meissner at osf.org) + * gcc.c (translate_options): `*' inhibits warning of extraneous arg. - * make-mips (CC, OLDCC): Comment why we need to define CC and OLDCC - to get around fixed size table complaints in the MIPS compiler. +Sat Jun 26 11:07:23 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) -Fri Aug 2 14:08:01 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * reload1.c (reload): Use reg_equiv_address for invalid addresses + of the form (mem (reg)). - * configure (writing VPATH definition): Avoid temp file. + * config/*/xm-*.h: Remove line that #define's alloca + to __builtin_alloca. - * 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. + * fold-const.c (fold, case PLUS_EXPR, MINUS_EXPR): Apply + distributive law to multiplication. + (fold, case *_DIV_EXPR): Replace code to handle (A*C1)/C2 with + more general code to handle addition as well. + (fold, case *_MOD_EXPR): Add simplified version of above code. -Fri Aug 2 01:46:39 1991 James Van Artsdalen (james at bigtex.cactus.org) + * integrate.c (function_cannot_inline_p): Can now inline nested + functions. + (expand_inline_function): Set up static chain if needed. + (output_inline_function): Don't switch to temporary allocation + here. + * toplev.c (compile_file): Switch to temporary allocation when + writing out inline function. + * cp-decl2.c (write_vtable_entries, finish_file): Likewise. + * c-decl.c, cp-decl.c (poplevel): Start new function context + when writing inline function. + + * c-decl.c (init_decl_processing): When making SIZETYPE, + start with name in SIZE_TYPE. If -traditional, use a + signed version of that type, if it is unsigned. + + * fold-const.c: Add prototypes for static functions. + ({l,r}{shift,rotate}_double): COUNT arg is HOST_WIDE_INT, PREC is int. + (all_ones_mask): Remove __inline__. + (range_test): Make static; not used elsewhere. + * tree.h: Add more decls for functions in fold-const.c. + + * calls.c (expand_calls): Fix typo: ALLOCATE_OUTGOING_ARGS + should be ACCUMULATE_OUTGOING_ARGS. + + * tree.def (TRUTH_{AND,OR,XOR}_EXPR): Make code class be 'e' like + the rest of the truth operations. + * fold-const.c (fold_truthop): Treat a BIT_AND_EXPR with a constant of + one as if it were surrounded with an NE_EXPR. + (fold): Don't move operation into conditional if it + is BIT_{AND,OR}_EXPR with the constant 1; change it to TRUTH_*_EXPR + instead. + When moving things inside conditions, move comparisons as well as + binary operations. + Don't make a SAVE_EXPR when moving things inside conditionals unless + the value would really have been used twice. - * 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. + * expr.c (do_store_flag): When computing via a shift, allow for + an inner RSHIFT_EXPR in BITNUM. + Sometimes do the operations as signed. -Thu Aug 1 19:05:31 1991 Matthew Self (mself at next.com) + * combine.c (subst): apply_distributive_law can also handle AND. + (subst, case IF_THEN_ELSE): Make a shift when appropriate. + (simplify_shift_const): If we have an outer operation and made + a shift, see if it can be simplified. - * 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. +Sat Jun 26 03:25:35 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) -Thu Aug 1 19:02:57 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * configure (i370-*-mvs*): New configuration. + * config/i370/i370.md, mvs370.c, tm-mvs.h, xm-mvs.h - * emit-rtl.c (gen_rtx): Don't return frame_pointer_rtx (e.g.) if - mode is not Pmode. + * final.c, varasm.c: Include ctype.h. + * c-lex.c: Include ctype.h. + (isalnum, isdigit): Macros deleted. - * emit-rtl.c (operand_subword): Don't write explicit divide by 0; - some (broken) compilers give errors for it. + * config/sparc/sparc.c (output_move_double): Handle + reg[n,n+1] = mem[reg[n] + reg[n+1]]. + * config/sparc/sparc.md (movdi): Delete the earlyclobber in load case. - * 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. +Sat Jun 26 03:15:38 1993 Doug Evans (dje@wookumz.gnu.ai.mit.edu) -Thu Aug 1 13:41:47 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * gcc.c (option_map): Add missing comma. - * 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. +Sat Jun 26 02:17:28 1993 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. + * config/we32k/we32k.c: Clean up formatting. - * cplus-pt.c: Removed extraneous declaration of `permanent_obstack'. - Also, added comment for `reinit_parse_for_template'. + * calls.c (calls_function_1): Add declaration. - * cplus-typeck.c (mark_addressable): For FUNCTION_DECL case, also - test DECL_PENDING_INLINE_INFO. + * config/m68k/m68k.md (fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2): + Require TARGET_68881 as well as TARGET_68040. -Thu Aug 1 13:26:12 1991 Michael Meissner (meissner at osf.org) +Fri Jun 25 20:13:51 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * calls.c (calls_function): Don't scan a single save_expr twice. + (calls_function_1): New subroutine for the actual recursion. - * tm-decrose.h (ASM_FINAL_SPEC): Add this to call mips-tfile if - using the MIPS assembler. + * c-parse.in (all_iter_stmt_simple): Add missing `else'. - * tm-mips.h (ASM_FINAL_SPEC): Add this to call mips-tfile unless - using gas. - (TARGET_VERSION): Do not put __DATE__ in the output. +Fri Jun 25 15:53:59 1993 Brendan Kehoe (brendan@lisa.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. + Cygnus<->FSF merge. + Fri Jun 25 10:00:34 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * make-decrose (EXTRA_PASSES): Build collect. - (Makefile): Explicitly use sh to invoke configure. + * cp-decl.c: Delete some #if 0'd code that has been there forever. -Thu Aug 1 12:22:17 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-type2.c (my_friendly_abort): Update count of aborts (added by + emit_base_init rewrite). - * cccp.c (directive_table, node_type): Add #include_next. - (do_include): Support #include_next. - (finclude): New arg DIRPTR. All callers changed. + Make default copy constructors work properly. + * cp-lex.c (cons_up_default_function): Mark the generated ctor with + RID_INLINE, so it won't get emitted unless it's needed. + * cp-decl.c (grok_ctor_properties): If CTYPE has virtual base + classes, make sure we don't pay attention to the int that we + magically added to the ctor decl. + * cp-ptree.c (print_lang_type): Note a const copy ctor vs a normal + copy ctor. Say if TYPE_HAS_DEFAULT_CONSTRUCTOR. + * cp-tree.h (cons_up_default_function): Modify prototype. + * cp-class.c (finish_struct): Also check TYPE_HAS_CONSTRUCTOR, so + we don't generate a default ctor if they already declared one + (taking whatever arg types). - * reload1.c (reload_as_needed): Check live_known before accessing - basic_block_head. + Wed Feb 3 17:41:02 1993 Chip Salzenberg (chip@tct.com) -Thu Aug 1 11:47:37 1991 Michael Meissner (meissner at osf.org) + * cp-class.c (needs_const_ctor): Eliminate as meaningless. + (finish_struct) Always generate default functions. + Generate exactly one copy constructor: either "X(X&)" or + "X(const X&)", but not both. + * cp-lex.c (cons_up_default_function): Take list of fields + as a new parameter. Use default_copy_constructor_body. + Set TREE_PUBLIC and DECL_EXTERNAL correctly for usage with + #pragma interface. + (default_copy_constructor_body): New function (uses obstacks). - * 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. + Thu Jun 24 12:41:16 1993 Mike Stump (mrs@rtl.cygnus.com) -Thu Aug 1 07:42:37 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-call.c (build_scoped_method_call, build_method_call): Remove + maybe_adjust argument to build_delete as it is unneeded and remove all + support for the magic cookie key in the area just before the data + allocated by new []. + * cp-decl.c (finish_function, maybe_build_cleanup, + push_exception_cleanup): Likewise. + * cp-decl2.c (delete_sanity, finish_file): Likewise. + * cp-init.c (init_init_processing, build_new, + maybe_adjust_addr_for_delete, build_delete, build_vbase_delete, + build_vec_delete): Likewise. + * cp-tree.c (build_cplus_new): Likewise. + * cp-tree.h (build_delete): Likewise. - * dwarfout.c (element_list_attribute): AT_element_list is a BLOCK4. + Wed Jun 23 17:18:41 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jul 31 17:42:40 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (init_decl_processing): Also catch SIGBUS. + (sigsegv): Rename to signal_catch; also reset SIGBUS. - * 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. + * cp-typeck.c (pointer_diff): Error if op1 is a pointer to an + incomplete type. - * 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. + Wed Jun 23 16:17:43 1993 Mike Stump (mrs@rtl.cygnus.com) -Wed Jul 31 13:41:37 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-search.c (dfs_get_vbase_types, get_vbase_types): Conform to ARM + 12.6.2 with respect to virtual bases. Virtual bases are now + initialized in dfs order. - * sdbout.c (sdbout_parms): Don't crash if MEM address is a MEM. + Wed Jun 23 16:04:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jul 31 12:36:37 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-tree.c (layout_basetypes): Disable the warning relating to a + non-virtual dtor. - * fixincludes: New variable INCLUDES specifies input dir. + Tue Jun 22 20:03:59 1993 Mike Stump (mrs@cygnus.com) - * Makefile.in (install-common): Add dummy elt to EXTRA_PASSES. - Fix typo in test. + * cp-lex.c (reinit_parse_for_block): Detect EOFs inside templates. - * Makefile.in (install-cross-tools): Use /. in args to test -d. - (cccp.o, dbxout.o, c-plus-*): Added missing dependencies. + Tue Jun 22 16:10:46 1993 Mike Stump (mrs@cygnus.com) - * c-common.c: Don't include rtl.h--that was unmodular. + * cp-class.c (finish_struct): Set TYPE_NONCOPIED_PARTS now that the + right vtable can be found, so that the vtable pointers are set + correctly when implementing default copy constructors. + * cp-typeck.c (build_modify_expr): Use TYPE_NONCOPIED_PARTS in the + same way the backend uses it when implementing default copy + constructors. - * make-i386v (INSTALL): Define this. + Tue Jun 22 10:50:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Wed Jul 31 07:38:12 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-decl.c (grokdeclarator): Don't try to mangle the name of a fn + that has C linkage. - * Makefile.in (LIB2FUNCS_EXTRA): Extra C and assembler files for - gnulib2. - * make-m88k*: Put the assembler files in gnulib2 and eliminate use - of gnulib1. + * cp-init.c (xref_friends): Deleted fn, since it's the same as + xref_friend. + (xref_friend): Make it static. + (do_friend): Change call to xref_friend. + * cp-tree.h (xref_friend, xref_friends): Delete extern decls. -Tue Jul 30 20:21:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-tree.h (lang_type): Delete `dynamic' bit. + * gplus.gperf (dynamic): Delete reserved word. + * cp-hash.h: Generated a new version. + * cp-lex.c (init_lex): Delete doing an unset of `dynamic'. + * cp-parse.y (DYNAMIC): Delete token and setting it to %right. + (new, aggr): Delete DYNAMIC rules. + * cp-spew.c (init_spew, struct toks_follow_types): Delete DYNAMIC. - * stddef.h (WCHAR_T): - Test _WCHAR_T_, __WCHAR_T, _T_WCHAR_ and ___int_wchar_t_h. + * cp-typeck.c (convert_for_assignment): There's no standard + conversion from a pointer to member to a `void *'. - * tm-i386isc.h (RETURN_POPS_ARGS): Caller pops the struct value addr. + * cp-decl.c (init_decl_processing): Add builtins for + __builtin_apply_args, __builtin_apply, and __builtin_return. - * cccp.c (default_include): Search local dir, system, then standard. + Mon Jun 21 12:05:28 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * Makefile.in (USE_HOST_MALLOC, USE_HOST_OBSTACK): - Don't depend on which C compiler is in use. + * cp-decl2.c (grok_x_components): New function. Adjust the code that + handles ENUMERAL_TYPEs and UNION_TYPEs to make more sense. + * cp-parse.y (component_decl): Move a lot of code into that fn. + * cp-tree.h (grok_x_components): Add extern decl. - * reload1.c (reload): Use pseudoreg to compute spill_indirect_levels. + * cp-parse.y (component_decl_list): Don't warn about a semicolon + after a component_decl_list. - * 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. + * cp-search.c (lookup_field): Be careful to handle operators + properly when complaining about ambiguities &c. -Tue Jul 30 18:45:39 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-search.c (dfs_pushdecls): Make sure we have a context before + seeing if it derives from TYPE. - * reload.c (decompose): Don't blow up for constants; they are safe. + Fri Jun 18 08:14:11 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Jul 30 15:49:34 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl2.c (finish_anon_union): Use simple_cst_equal to find the + member that can hold all the values, instead of just doing a compare + between the DECL_SIZEs. - * dbxout.c (dbxout_parms): Don't crash if MEM address is a MEM. + Wed Jun 16 10:57:37 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-typeck.c (build_unary_op): Make sure it's the global fn `main' + before complaining about taking the address of it. -Tue Jul 30 15:37:25 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-decl.c (grokdeclarator): Also forbid `operator ()' as a + non-member fn. - * cplus-init.c (build_vec_delete): Use `size_binop' when building up - the array end boundary. + * cp-decl.c (grok_reference_init): Don't allow an initializer list + as the initializer for a reference. -Tue Jul 30 10:03:54 1991 Michael Meissner (meissner at osf.org) + * cp-method.c (dump_init): Handle a NON_LVALUE_EXPR. - * tm-mips.h (DOLLARS_IN_IDENTIFIERS): Define to be 1. + Sun Jun 13 12:55:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Jul 29 18:56:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-decl.c (grokvardecl): Don't complain about duplicate + definitions of `extern "C"' declarations (parallelize it with how + regular `extern' decls are handled). - * 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. + * cp-decl.c (start_function): Avoid a null-reference on CTYPE. - * cse.c (fold_rtx): Don't make shifts wider than object. + * cp-cvt.c (build_default_binary_type_conversion): Look deeper into + what ARG1 and ARG2 are if they're POINTER_TYPEs. -Mon Jul 29 17:17:55 1991 Michael Collison (collison at osf.org) + Thu Jun 10 12:09:17 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * configure: Added entry for mmax-osfrose (Multimax with ns32k - running OSF/1). + * cp-decl.c (grokdeclarator): Make the warning about opr-eq being a + member function be a pedwarn. -Mon Jul 29 14:51:32 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Thu Jun 10 00:30:08 1993 Mike Stump (mrs@cygnus.com) - * 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. + * cp-tree.h: (previous_class_type): Add external declaration. + * cp-class.c (prev_class_type): Rename to previous_class_type. + * cp-decl.c (struct saved_scope): Add previous_class_type slot. + * cp-decl.c (push_to_top_level, pop_from_top_level): Track + previous_class_type value. The only trick is that we have to call + popclass(-1) when we have a previous_class_type that we are about to + destroy, to keep things in sync. - * 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. + Tue Jun 8 16:48:49 1993 Mike Stump (mrs@cygnus.com) - * 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. + * cp-cvt.c (build_thunk, convert_fn_ptr): New routines to handle + thunks. + * cp-cvt.c (cp_convert_to_pointer): Use convert_fn_ptr when + converting non-static pointer to members. - * cccp.c (default_include): Get rid of extra #endif. - Use CROSS_COMPILE, not CROSS. + Tue Jun 8 16:41:59 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * make-i386mach: New file. - * configure (i386-mach): Use that file. + * cp-lex.c (reinit_parse_for_block): Make sure not to try to use + consume_string on an escaped double-quote. -Mon Jul 29 09:10:13 1991 Tom Wood (wood at dg-rtp.dg.com) + Tue Jun 8 16:25:43 1993 Mike Stump (mrs@cygnus.com) - * tm-m88kluna.h (SYSTEM_INCLUDE_DIR): Define (also MACH). + * cp-call.c (build_method_call): Don't search hidden functions from + base classes, as this violates chapter 10. -Sun Jul 28 16:15:39 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon Jun 7 18:46:01 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-init.c (emit_base_init): Rewrite, merging the two paths into + one for member initialization. Now members will be initialized in + order of declaration, not in the order of the mem-initializer list. + (perform_member_init, sort_member_init): New functions. - * cccp.c (default_include): Use CROSS_INCLUDE_DIR if cross-compiler. - * Makefile.in (cccp.o): Pass a definition for CROSS_INCLUDE_DIR. + Mon Jun 7 18:01:31 1993 Mike Stump (mrs@cygnus.com) - * 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. + * cp-search.c (is_subobject_of_p, lookup_field, lookup_fnfields): + Because virtual bases don't necessarily share the same binfo, use + the binfo hierarchy of TYPE_BINFO of any virtual bases, when + performing hiding checks. Fixes problem introduced on Thu Mar 25 + 23:09:27 1993. The symptom is the compiler reports non ambiguous + members as being ambiguous. - * sdbout.c (plain_type_1): Don't record the size in sdb_type_size - unless a tag is output. + Sun Jun 6 11:45:44 1993 Michael Tiemann (tiemann@rtl.cygnus.com) - * 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. + * cp-call.c (EVIL,TRIVIAL): New macros. + (convert_harshness): Use these macros. - * Makefile.in (EXTRA_PASSES): New variable. - Used for machines which have extra passes to run. - (install-cross): Install those programs. - (native): Compile them. + Sat Jun 5 19:06:13 1993 Michael Tiemann (tiemann@rtl.cygnus.com) - * c-parse.y: Support `foo:' before a close brace. - (label): New nonterminal. - (stmt): Use that. Treat a label as a statement in itself. + * cp-init.c (emit_base_init): Make clearing BINFO_BASEINIT_MARKED + symmetric with its setting. Fixes p2825. - * 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. + Thu Jun 3 16:24:30 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * move-if-change: Use -f with rm and mv. + * cp-parse.y (component_declarator, component_declarator0): + Allow attribute after nameless field. - * Makefile.in (gnulib2.ready): No longer phony. + * cp-lex.c (real_yylex): Take care to expand token_buffer before + storing each character. -Sat Jul 27 13:03:50 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-lex.c (real_yylex): If an integer value overflows so the high + word is negative, it's of unsigned long long type. Integer constant + is unsigned for purposes of int_fits_type_p so that it compares huge + constants properly. Warn about integers so large that they are + unsigned. - * combine.c (can_combine_p): Don't use NEXT_INSN, in previous change. + * cp-cvt.c (convert_from_reference): Do an or-equals on setting + TREE_SIDE_EFFECTS for NVAL. + * cp-tree.c (lvalue_p): For a SAVE_EXPR, check its first argument. - * Makefile.in (class-c, objective-c): New targets. + Thu Jun 3 11:34:35 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-decl2.c (grok_alignof): New function. + * cp-parse.y (unary_expr, ALIGNOF unary_expr rule): Move the code + into the new function, to reduce the size of the parser. + * cp-tree.h (grok_alignof): Add prototype. - * fixincludes (memvar.h): Make two defs of CAT, one ANSI and one trad. + * cp-decl.c (grokdeclarator): Allow function-call notation for + initialization of scalars as well as aggregates. - * expmed.c (emit_store_flag): Set ICODE only after CODE is right. + * cp-decl.c (pushdecl): Don't pay attention to friends when noting a + missing `static' decl. Disable this code for now. -Sat Jul 27 06:45:32 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Wed Jun 2 12:23:05 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * flow.c (insn_dead_p): Don't clobber NEEDED while ensuring that we - don't delete insns that set the frame or arg pointer. + * cp-decl.c (duplicate_decls): Do a regular error if the line number + on NEWDECL hasn't been set yet (e.g., before finish_struct). - * 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) + * cp-class.c (finish_struct): Remove warning about a bit-field + having a bad type in ANSI C++, it's not appropriate given the + warning immediately above. - * 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. + * cp-typeck.c (require_instantiated_type): Don't allow an + initializer list in an argument list. -Fri Jul 26 22:47:53 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (pushdecl): Change shadowing of a param in outermost + block of the fn from a pedwarn to an error, since it's a + redeclaration. - * cccp.c (macroexpand): Fix error message syntax. + * cp-class.c (finish_struct): Say anonymous classes and structs are + useless, not just classes. - * Makefile.in (gnulib2.target): Add semicolon. + * cp-lex.c (real_yylex): Warn if catch, throw, or try are used as + identifier names. -Fri Jul 26 18:17:36 1991 Michael Meissner (meissner at pogo.gnu.ai.mit.edu) + * cp-decl.c (pushdecl): Make sure we have a CURRENT_FUNCTION_DECL + before setting its public flag. - * make-mips (CC): Bump -Wf,-XNg option to 1500 to allow the MIPS - compiler to compile cc1plus. + * cp-decl.c (expand_static_init): Only complain about multiple + initializations of a static variable if we actually have an + initializer. + (finish_decl): Likewise for const. -Fri Jul 26 14:42:35 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-search.c (build_mi_matrix): Fix off-by-one error in + clearing of MI_MATRIX. + (get_base_distance): Init NEW_BINFO to 0. - * c-parse.y (yylex): Don't use mbtowc to translate L'\0'. + * cp-pt.c (instantiate_member_templates): Initialize XXX to 0. - * tm-m88ksvr4.h (CPP_SPEC): Specify SVR4 pre-assertions. + * cp-call.c (build_method_call): Zero out candidates. + (build_overload_call_real): Likewise. -Fri Jul 26 09:53:53 1991 Michael Meissner (meissner at pogo.gnu.ai.mit.edu) + Wed Jun 2 11:53:24 1993 Mike Stump (mrs@cygnus.com) - * Makefile.in (cplus_expr.o): Add missing dependencies, so cc1plus - can be built without first building cc1. + * cp-search.c (lookup_fnfields_here): Use TYPE_MAIN_VARIANT on + context types before comparing. Fixes const member functions not + being found in templates. -Fri Jul 26 07:30:51 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Tue Jun 1 18:26:18 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * combine.c (can_combine_p): Can't combine if DEST is used in an - insn in the range (succ, i3). + * cp-parse.y (structsp): Avoid a null-ref on ID. + (left_curly): Likewise. - * 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. + Tue Jun 1 13:49:20 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * 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. + * cp-decl.c (pushdecl): Communicate a `static' decl of a prototype + into its definition, if they forget to take care of it. -Thu Jul 25 21:57:42 1991 Jim Wilson (wilson at wookumz.gnu.ai.mit.edu) + * cp-init.c (emit_base_init): Make error message more useful about + insufficient initializers for a member of a class w/o a ctor. - * 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. + Sun May 30 09:45:06 1993 Michael Tiemann (tiemann@rtl.cygnus.com) -Thu Jul 25 18:15:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-call.c (compute_conversion_costs): Penalise each argument that + matches an ellipsis, not just the ellipsis itself. + (build_method_call): Don't consider a candidate an easy match if + cp->ellipsis is non-zero (fixes p2778). - * flow.c (regno_clobbered_at_setjmp): Don't blow up if no basic blocks. + Sat May 29 09:34:57 1993 Michael Tiemann (tiemann@rtl.cygnus.com) -Thu Jul 25 16:55:57 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-cvt.c (convert_to_reference): Match ARM rules more closely by: + (1) not converting between types of different signedness, and + (2) converting between types of different varieties if a const& + suggests we can use a temporary (fixes p2780). - * cse.c (invalidate, cse_insn): Don't use HASHREG directly. - (HASH): Substitute HASHREG in. - (HASHREG): Deleted. + * cp-decl.c (decls_match): Handle pseudo-match of parameter lists + according to p308 of the ARM. + (push_overloaded_decl): Ditto. + * cp-typeck.c (comptypes): Rest of change (closes p2779). - * tm-i386mach.h: New file. - * configure (i386-mach): Use that. + * cp-call.c (compute_conversion_costs): Count ellipses when we see + them. + (ideal_candidate): Gracefully handle arg lists that have ellipses + (Fixes p2777). - * tm-i386isc.h: New file, copied from 1.40. + * cp-call.c (build_method_call): Delete some #ifdefs that are + obsoleted by ANSI. - * 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. + Fri May 28 12:15:21 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * rtl.h (FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE): Fix typo. + * cp-decl.c (finish_decl): Don't allow overloaded operators to have + default arguments. -Thu Jul 25 16:25:52 1991 Tom Wood (wood at dg-rtp.dg.com) + * cp-cvt.c (convert): If it's an anonymous enum, say so instead of + giving the cryptic `._123' as the enum type. - * out-m88k.c (legitimize_address): Note use of addressing base. - (m88k_layout_frame): Establish PIC addressing base as needed. + Thu May 27 10:52:49 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-m88kdgux.h (GPLUSPLUS_INCLUDE_DIR): Specify. + * cp-decl.c (grokdeclarator): Return 0 instead of doing a 155 abort, + so we'll get the right error message later. -Thu Jul 25 07:54:36 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-type2.c (readonly_error): Give a more useful error when the arg + is a RESULT_DECL. - * rtl.h (FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE): Defined. + * cp-init.c (build_new): Set LOOKUP_COMPLAIN on the flags, so we'll + pay attention to the visibility of the constructor we're trying to + call. - * integrate.c (expand_inline_function): Propagate the value of - FUNCTION_FLAGS_USES_PIC_OFFSET_TABLE. + * toplev.c (lang_options): Add warning about ctor/dtor privacy. + * cp-decl2.c (lang_decode_option): Grok it. Make -Wall effect it. + (warn_ctor_dtor_privacy): New variable, default being on. + * cp-tree.h (warn_ctor_dtor_privacy): Add extern decl. + * cp-class.c (finish_struct_methods): Make the ctor warning + conditionalized on the flag. + (finish_struct): Likewise for ctors. + * invoke.texi (Option Summary, Warning Options): Add it. + (Options to Request or Suppress Warnings): Explain it. - * 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. + * cp-decl.c (grokdeclarator): Use a pedwarn on extern inline. -Wed Jul 24 13:54:41 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Tue May 25 13:55:48 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * tm-m68k.h (NOTICE_UPDATE_CC): - Calls clear status even if value in address reg. + * cp-init.c (build_delete): Don't pass the size as an argument to + builtin delete for a non-aggregate type. Only pass it for a class + when we'll be using its own operator delete(). (complies w/ $12.5) + (build_x_delete): Don't pass the size down to builtin delete. - * tm-i386gas.h, tm-i386vgas.h (ASM_OUTPUT_ALIGN_CODE): Align with NOPs. + * cp-decl2.c (delete_sanity): If it's a pointer to a type that has + no destructor, then build a regular delete expression, instead of a + vector one (since we didn't push any info into the BI_header_type + area). - * i386.md (andsi3): Don't use movzbl if op1 can't support it. + * cp-decl2.c (grok_array_decl): Add a pedwarn if they do `5[a]'. -Wed Jul 24 07:47:59 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-typeck.c (comptypes): Don't warn about t2 being an + error_mark_node. - * cplus-decl.c (finish_decl): Don't build a cleanup for an variable - that is TREE_EXTERNAL. + * cp-decl.c (finish_decl): If type is laid out, but decl is not, + call layout_decl. -Tue Jul 23 20:48:23 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + Mon May 17 10:35:55 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * make-mips: Delete rules for saber C. - * Makefile.in (STAGESTUFF, gnulib2.ready): Undo last change. + * cp-tree.h (error_not_base_type): Add prototype. - * tm-vax.h (LIB_SPEC): Supply missing close braces. + Fri May 14 17:16:55 1993 Mike Stump (mrs@poseidon.cygnus.com) -Tue Jul 23 14:03:10 1991 Michael Meissner (meissner at osf.org) + * cp-class.c (finish_struct): Use get_binfo instead of binfo_value + to find vfields. Cures compiler_error. - * 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. + Thu May 13 14:57:51 1993 Mike Stump (mrs@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-tree.c (binfo_value): If type is the main binfo for elem, + return it. - * 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 May 12 13:10:07 1993 Brendan Kehoe (brendan@lisa.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-typeck.c (c_expand_return): Pedwarn on using return without a + value in a function that requires one. Clear + CURRENT_FUNCTION_RETURNS_NULL, so we don't get a bogus warning about + reaching the end of a non-void function. + + Tue May 11 17:51:16 1993 Mike Stump (mrs@poseidon.cygnus.com) + + * cp-decl.c (start_decl): Allow -fexternal-templates compiled code to + fall back to old strategy of generating static copies for templates + that are not under the control of #pragma interface/implementation, + but warn if this happens. + * cp-decl2.c (warn_if_unknown_interface): Likewise. + * cp-lex.c (reinit_parse_for_method, cons_up_default_function): + Likewise. + * cp-pt.c (end_template_decl, instantiate_member_templates, + instantiate_template): Likewise. + * cp-tree.h (warn_if_unknown_interface): Likewise. - * 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. + Sat May 8 05:53:17 1993 Michael Tiemann (tiemann@cygnus.com) - * 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. + * cp-decl.c (finish_decl): TOPLEV should be set non-zero also if we + are at the pseudo-global level. Use TOPLEV instead of testing + CURRENT_BINDING_LEVEL. - * osf-main.c (new file): Provide simple constructor, destructor - capability to be linked into gnulib. + Fri May 7 12:42:46 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * collect-osf.c (various): General rewrite to improve speed and - portability. + * cp-decl2.c (grok_array_decl): New function. + * cp-parse.y (primary): Use it instead of lots of code in the + parser. + * cp-tree.h (grok_array_decl): Add prototype. - * 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. + * cp-parse.y (component_decl): Disable change about TYPE_DECLs going + into the TYPE_FIELDS list for now. + * cp-type2.c (store_init_value): Disable checks for now. - * mips-tfile.c (toplevel, main): Add -I file option, which renames - the original output file to the given file. + Thu May 6 16:59:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * cplus-lex.c (toplevel): Include instead of "assert.h" - in order to avoid problems when including cplus-input.c, which also - uses . + * cp-lex.c (check_newline): Use a while instead of a do-while to + avoid reading the line after the #pragma if we're at a newline. - * 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. + Wed May 5 16:38:06 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Tue Jul 23 13:15:43 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * Makefile.in (stamp-cp-parse): Update reduce/reduce count to 13. - * xm-i386.h, xm-i860.h, xm-spur.h, xm-tahoe.h: Use __builtin_alloca. + * cp-decl2.c (delete_sanity): New function. + * cp-parse.y (unary_expr): Call it, getting rid of a lot of + repeated code in the parser. + * cp-tree.h (delete_sanity): Add prototype. -Tue Jul 23 12:26:01 1991 Michael Tiemann (tiemann at cygint.cygnus.com) + * cp-init.c (emit_base_init): Don't try to do anything with a member + that lacks a DECL_NAME (e.g., types we added in component_decl from + the parser). - * 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. + Wed May 5 12:57:33 1993 Jim Wilson (wilson@sphagnum.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-parse.y (get_current_declspecs): Obsolete, deleted. - * loop.c (loop_optimize): Use get_max_uid to compute max_uid_for_loop. + Tue May 4 13:46:09 1993 Brendan Kehoe (brendan@lisa.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-type2.c (process_init_constructor): Don't check for private or + protected members; we do that in store_init_value now. - * integrate.c (expand_inline_function): Add minor efficiency - hack to not free all the temp slots as parameters are passed - from "caller" to "callee". + * cp-parse.y (simple_stmt): Use expr_no_commas instead of expr for + case labels. - * 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. + * cp-typeck.c (build_binary_op_nodefault): Add 'right' and 'left' to + shift count warnings to distinguish them from each other. - * tm-decstatn.h (SIZE_TYPE): Define this to be "unsigned int". + * cp-decl.c (finish_decl, grokdeclarator): Report overflows in + storage sizes. + (build_enumerator): Report overflows on enumerators. + * cp-decl2.c (grokbitfield): Likewise. + * cp-parse.y (unary_expr): Warn about overflows in parser-built + unary expressions. + * cp-typeck.c (c_sizeof): Call force_fit_type only for INTEGER_CST. + (build_c_cast): Ignore any integer overflow caused by a cast. + (convert_for_assignment): Warn if source had overflow in folding. + (build_conditional_expr): Check conversions in if-then-else + expressions. + * cp-tree.h (convert_and_check, overflow_warning, + unsigned_conversion_warning): Add prototypes for fns in c-common.c. - * emit-rtl.c (try_split): If `split_insns' actually returns a SEQ - which is isomorphic to PAT, return TRIAL. + * cp-decl.c (init_decl_processing): Make the arrays 200 long to + leave enough room for most names. - * out-sparc.c (eligible_for_epilogue_delay): FP register moves are - only eligible for leaf-function epilogue delay slots. + * cp-decl.c (lookup_label): Return a NULL_TREE if not within a + function. + * cp-parse.y (unary_expr, ANDAND identifier): Handle lookup_label + returning a NULL_TREE. -Tue Jul 23 11:52:50 1991 Michael Meissner (meissner at geech.gnu.ai.mit.edu) + * cp-method.c (dump_init): Grok a FIELD_DECL as well. - * 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-decl.c (finish_function): Move setting of the DECL_RESULT's + context and calling setjmp_protect after poplevel, so we have a + valid DECL_INITIAL for the fndecl (not an error_mark_node). -Tue Jul 23 07:10:41 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Mon Jan 25 11:04:23 1993 Niklas Hallqvist (niklas at della.appli.se) - * 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 static + class members. + * cp-decl.c (grokdeclarator): Ditto. -Mon Jul 22 21:37:03 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-decl.c (shadow_tag): Emit error message if static or extern + is specified as per ARM 7.1.1. + + * cp-decl2.c (finish_anon_union): Issue error if a global + anonymous union is not declared static, remove old funny error + about some optimizer failing. - * fold-const.c (fold): Always preserve type after using const_binop. + * cp-class.c (finish_struct): Corrected error message concerning + anonymous classes. -Mon Jul 22 18:34:55 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-lex.c (check_for_missing_semicolon): Allow trailing storage + specifiers. - * 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). + Fri Jan 29 09:39:17 1993 Niklas Hallqvist (niklas at della) -Mon Jul 22 15:25:48 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-parse.y (component_decl): Nested unions, enums and structs + should have their TYPE_DECLs in the TYPE_FIELDS slot of the + containing type so the access flags eventually will get correctly + set. - * gcc.c (process_command): -xnone turns off any -x option. + * cp-type2.c (store_init_value): Check for the aggregate conditions + described in ARM 8.4.1. - * tree.c (copy_chain): Deleted. - * integrate.c (copy_decl_tree): Use copy_list and copy_node. + Mon May 3 19:10:28 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Jul 22 11:35:47 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * cp-lex.c (real_yylex): Don't warn about floating point out of + range if target floating-point format is IEEE. - * tree.c, tree.h: Fix typos in Jul 22 merge. + * cp-class.c (finish_struct): Promote unsigned bitfields to signed + int if the field isn't as wide as an int. -Mon Jul 22 08:51:47 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + * cp-search.c (dfs_pushdecls): Use warning_with_decl, so we give the + line number of the offending method declaration, rather than the + line number of the curly-brace that ends the class definition. - * jump.c (thread_jumps): Don't set CHANGED if the jump's label isn't - changing. + Mon May 3 18:04:15 1993 Brendan Kehoe (brendan@lisa.cygnus.com) -Mon Jul 22 02:37:23 1991 Michael Tiemann (tiemann at pogo.gnu.ai.mit.edu) + * cp-cvt.c (convert): When doing int->enum conversions, always call + pedwarn, even if we didn't give `-pedantic'. - * version.c: Bumped to 1.94 because of significant changes to - cplus-* files. + * cp-decl.c (start_function): Add extern decl of + `flag_external_templates'. -Sun Jul 21 18:45:57 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * cp-lex.c (check_newline): Warn if there's anything after a + `#pragma interface'. - * 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. + Mon May 3 12:39:49 1993 Brendan Kehoe (brendan@lisa.cygnus.com) - * integrate.c (integrate_decl_tree): Renamed from copy_decl_tree. - (integrate_parm_decls): Renamed from copy_parm_decls. + * cp-class.c (finish_struct_methods): Use `warning' on a class w/ a + private dtor and no friends, so the line number comes out right. Also + only emit this warning when `extra_warnings' is true. - * tree.c (copy_chain): New function. + * cp-type2.c (process_init_constructor): Don't allow use of an + initializer list for a class with private or protected members. -Sun Jul 21 06:43:23 1991 James Van Artsdalen (james at bigtex.cactus.org) + Sat May 1 15:07:24 1993 Mike Stump (mrs@poseidon.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-decl.c (start_decl, start_function): Add a new flag + -fexternal-templates. Use flag_external_templates to determine when + template definitions should be made externally visible and + accessible. This permits non-exponential growth in object files + that use templates. + * cp-decl2.c (lang_f_options): Likewise. + * cp-lex.c (reinit_parse_for_method, cons_up_default_function): + Likewise. + * cp-parse.y (template_instantiate_once): Likewise. + * cp-pt.c (end_template_decl, instantiate_member_templates, + instantiate_template, end_template_instantiation): Likewise. + * toplev.c (lang_options): Likewise. -Sun Jul 21 06:27:33 1991 Richard Kenner (kenner at vlsi1.ultra.nyu.edu) + Fri Apr 30 18:50:00 1993 Brendan Kehoe (brendan@lisa.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. - -Sun Jul 21 06:11:55 1991 Michael Tiemann (tiemann at cygint.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. - - * 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. - - * 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. - - * cplus-pt.c (uses_template_parms): Add handler for ARRAY_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. + * cp-spew.c (arbitrate_lookup): If the next character is a '[', then + have the compiler assume it's an expression instead of a type. - * cplus-class.c (finish_struct_methods): Fix fencepost error if - there were no member functions except for ctors/dtors. + Fri Apr 30 14:39:28 1993 Mike Stump (mrs@poseidon.cygnus.com) -Sun Jul 21 06:19:01 1991 James Van Artsdalen (james at bigtex.cactus.org) + * cp-class.c (maybe_fixup_vptrs): Use the VF_NORMAL_VALUE of the + vfields to get the binfo to get the vtable, so that we may pick up + the most derived version of the vtable. - * 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-class.c (finish_base_struct): Always set the VF_NORMAL_VALUE so + that maybe_fixup_vptrs can get the most derived vtable. - * calls.c (expand_call): Set current_function_calls_longjmp if - this call is to `longjmp'. +Fri Jun 25 14:00:17 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * 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. + * config.sub: Convert ...-sysvr4 into ...-sysv4. - * rtl.h (FUNCTION_FLAGS_CALLS_LONGJMP): New macro. + * config/m68k/news.h (CPP_PREDEFINES): Have two alternatives, + one for motorola and one for not motorola. - * 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. + * config/m68k/tower-as.h, mot3300.h, m68kv4.h, hp320.h, amix.h: + * config/m68k/3b1.h, crds.h (CPP_PREDEFINES): Add __motorola__. - * function.h (struct function): New field `calls_longjmp'. + * expr.c (store_expr): If TARGET is volatile mem ref, return it. - * out-i386.c (simple_386_epilogue): Add function description. - Return 0 if NON_SAVING_SETJMP && `setjmp' is called in function. + * toplev.c (lang_options): Add -fdollars-in-identifiers. + * c-decl.c (c_decode_option): Handle -fdollars-in-identifiers. - * tm-i386v.h (NON_SAVING_SETJMP): New macro. - (FRAME_POINTER_REQUIRED): New macro. +Fri Jun 25 13:33:39 1993 Jeffrey A. Law (law@snake.cs.utah.edu) -Sat Jul 20 12:25:56 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu) + * pa-hpux.h (LINK_SPEC): Search shared libraries by default; turn + off shared library searching of -static is specified. + * pa-ghpux.h (LINK_SPEC): Likewise. - * tm-m88k.h (OPTIMIZATION_OPTIONS): Don't change flag_signed_bitfields. + * pa.h (TARGET_SHARED_LIBS): Delete switch and all references to + the switch. + * pa.c: References to TARGET_SHARED_LIBS deleted. + * pa.md: Likewise. - * cccp.c (include_defaults) Use LOCAL_INCLUDE_DIR macro instead - of "/usr/local/include". Provide default definition. + * pa-utahmach.h (TARGET_DEFAULT): Allow indexing on Mach ports. + * pa1-utahmach.h (TARGET_DEFAULT): Likewise. + * pa.h (TARGET_DISABLE_INDEXING): Clean up comments. - * 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. +Fri Jun 25 00:50:48 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu) - * proto-man: Renamed from proto-unproto.1. + * expr.c (store_expr): Ignore SUGGEST_REG if target is volatile. - * final.c (final_scan_insn): Do ASM_OUTPUT_LOOP_ALIGN only for real loop. + * config/mips/mips.md (negdi2, negdi2_internal): Renamed from negdi3... -Sat Jul 20 05:34:13 1991 Michael Tiemann (tiemann at cygint.cygnus.com) +Thu Jun 24 00:31:27 1993 Richard Stallman (rms@wookumz.gnu.ai.mit.edu) - * 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. + * gcc.c (option_map): Make --version alias for -dumpversion. - * cplus-decl.c (init_decl_processing): Variable - `const_ptr_type_node' was not being initialized. Same with - `const_string_type_node'. +Wed Jun 23 07:50:21 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * 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. + * romp.c (output_prologue): Delete unused var, INSN. + (output_encoded_offset): New function. + (output_epilogue): Minor changes to traceback table; call + new output_encoded_offset. + (romp_debugger_{auto,arg}_correction): New functions. + * romp.h (DBX_REGPARM_STABS_LETTER, DEBUGGER_{AUTO,ARG}_OFFSET): + New macros. - * 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. + * reorg.c (fill_slots_from_thread): When replacing a use of a + register with what it was set to, don't do it when either the + destination or source of the copy is set in the insn. + + * jump.c (jump_optimize): Properly make jump into store-flag + sequence when the jump can't be reversed but the TRUE branch + is const0_rtx. + + * expr.c (expand_expr): Set IGNORE if target is const0_rtx or + result type is VOID. + Move most IGNORE processing to one place to avoid expanding things + that don't need to be expanded. + (expand_expr, case CONSTRUCTOR, case COND_EXPR): If IGNORE, don't + expand anything we don't have to. + (expand_expr, case CONVERT_EXPR): Don't deal with IGNORE here. + +Wed Jun 23 07:47:32 1993 John F Carr (jfc@Athena.mit.edu) + + * regs.h (scratch_list, scratch_block, scratch_list_length): New vars. + * reload1.c (mark_scratch_live): New function. + (reload): Call it on each SCRATCH. + Free scratch list and block. + (spill_hard_reg): Reallocate any SCRATCH whose register we want to + spill. + * local-alloc.c (scratch_block, scratch_list{,_length}, scratch_index): + New variables. + (local_alloc): Allocate and initialize them. + (alloc_qty_for_scratch): Can allocate likely-spilled register + classes for SCRATCH. + (block_alloc): Likewise for regs in small register classes. + Only allocate a SCRATCH if it can fit in the block we make. + Don't mark regs used in SCRATCH live here; instead, make entry in + new tables. + +Tue Jun 22 19:52:08 1993 Richard Stallman (rms@wookumz.gnu.ai.mit.edu) + + * emit-rtl.c (copy_rtx_if_shared): In `E' case, get the length + before copying, and don't get it again after. + +Tue Jun 22 10:50:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com) + + * toplev.c (report_error_function): Change format of the + included-file stack to be more readable. + * cccp.c (print_containing_files): Likewise. - * cplus-tree.c (lang_printable_name): Use a ring-buffer to hold - printable names instead of DECL_PRINT_NAME slot of a _DECL node. +Mon Jun 21 19:21:18 1993 Richard Kenner (kenner@vlsi1.ultra.nyu.edu) - * collect2.c: #define COLLECT, and let config.h provide definition - of macros. + * rs6000.c (print_operand, case 'J'): Write out shift count + of 0, not 32 for bit 31 of CCR. -See file ChangeLog.3. - -Local Variables: -mode: indented-text -left-margin: 8 -fill-column: 76 -version-control: never -End: +See ChangeLog.7 for earlier changes.