Commit Graph

24841 Commits

Author SHA1 Message Date
Jeff Law
8f65050e41 Remove experimental hunk that wasn't supposed to be checked in.
From-SVN: r30298
1999-10-31 17:55:24 -07:00
Jeffrey A Law
5949bdae94 * POTFILES.in: Add simplify-rtx.c
From-SVN: r30296
1999-10-31 17:18:40 -07:00
Jeffrey A Law
0cedb36cbd simplify-rtx.c: New file.
* simplify-rtx.c: New file.
        * Makefile.in (OBJS): Add simplify-rtx.o
        (simplify-rtx.o): Add dependencies.
        * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
        * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
        (cse_gen_binary, simplify_unary_operation): Delete.
        (simplify_binary_operation, simplify_plus_minus): Likewise.
        (check_fold_consts, simplify_relation_operation): Likewise.
        (simplify_ternary_operation): Likewise.
        (delete_trivially_dead_insns): Simplify the contents of the
        REG_EQUAL note before trying to substitute it into the source
        of the reg-reg copy at the end of a libcall sequence.

From-SVN: r30295
1999-10-31 17:18:23 -07:00
Marc Lehmann
8fbe10354e toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber warning from -Wuninitialized and put it under -W.
Sun Oct 31 13:32:15 CET 1999  Marc Lehmann <pcg@goof.com>

	* toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
        warning from -Wuninitialized and put it under -W.
        * function.c (uninitialized_vars_warning): Warn only when the
        corresponding flag is set.

From-SVN: r30294
1999-10-31 21:52:00 +00:00
Brendan Kehoe
79f5f47f76 * cp-tree.h (flag_dump_translation_unit): Add decl.
From-SVN: r30293
1999-10-31 14:41:33 -05:00
Jeffrey A Law
31ec4e5e8a combine.c (combine_simplify_rtx): Renamed from simplify_rtx.
* combine.c (combine_simplify_rtx): Renamed from simplify_rtx.  All
        references/callers changed.

From-SVN: r30292
1999-10-31 10:36:58 -07:00
Jeffrey A Law
6086005548 mn10200.c (mn10200_va_arg): Force the return value into a register.
* mn10200.c (mn10200_va_arg): Force the return value into a
        register.

From-SVN: r30291
1999-10-31 08:37:46 -07:00
Jeffrey A Law
ee61fc79af * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
From-SVN: r30290
1999-10-31 08:35:07 -07:00
Jeffrey A Law
f5d236de11 cccp.c (macroexpand): Avoid out of range accesses for omitted arguments.
* cccp.c (macroexpand): Avoid out of range accesses for omitted
	arguments.

From-SVN: r30289
1999-10-31 01:54:56 -06:00
Jeff Law
0d9009fd94 Daily bump.
From-SVN: r30288
1999-10-31 01:45:06 -06:00
Stephen L Moshier
5630b4635d * lex.c (yylex): Accept 'f' in mantissa of hex float constant.
From-SVN: r30285
1999-10-30 22:44:09 -06:00
Stephen L Moshier
2949a9b6d7 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
From-SVN: r30284
1999-10-30 22:42:55 -06:00
Stephen L Moshier
2a81679ebe * gcc.c-torture/execute/991030-1.c: New test.
From-SVN: r30283
1999-10-30 22:25:01 -06:00
Jeffrey A Law
0d19c2a139 fold-const.c (fold): Fix thinko when optimizing comparisons against -0.0.
* fold-const.c (fold): Fix thinko when optimizing comparisons
        against -0.0.

From-SVN: r30282
1999-10-30 22:22:46 -06:00
Todd T. Fries
f6e8b583c4 * check-init.c: Fix typo in comment.
From-SVN: r30281
1999-10-30 21:36:38 -06:00
David Starner
80126298ca gcc.texi (Passes): Update front-end files to their current location.
* gcc.texi (Passes): Update front-end files to their current
        location.

From-SVN: r30280
1999-10-30 21:33:50 -06:00
Mark Mitchell
d658cd4c6a decl.c (pop_cp_function_context): Don't call free on a NULL pointer.
* decl.c (pop_cp_function_context): Don't call free on a NULL
	pointer.
	* semantics.c: Include ggc.h.
	(expand_body): Do garbage-collection after processing a template
	function.  Clear DECL_SAVED_TREE after generating RTL for a
	function.
	* Makefile.in (semantics.o): Depend on ggc.h.

From-SVN: r30279
1999-10-30 23:32:55 +00:00
Mark Mitchell
64658ada1f Fix incorrect declaration of main
From-SVN: r30278
1999-10-30 22:26:25 +00:00
Richard Henderson
3611aef055 alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
* alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
        (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
        (PREDICATE_CODES): Add addition_operation.
        * alpha-protos.h (addition_operation): Declare.
        (secondary_reload_class): Likewise.
        * alpha.c (addition_operation): New.
        (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
        * alpha.md (adddi3): Turn into expander.
        (*lda, *adddi_2): New.
        (movsf, movdf patterns): Don't preference integer regs.
        (movsi, movdi patterns): Don't preference fp regs.

From-SVN: r30277
1999-10-30 14:46:57 -07:00
Richard Henderson
1e19333726 * genrecog.c (write_switch): Check for duplicate CODE cases.
From-SVN: r30276
1999-10-30 14:40:05 -07:00
Richard Henderson
cb2ec1510d ggc-common.c: Update pre-function commentary.
* ggc-common.c: Update pre-function commentary.
	* ggc-page.c: Likewise.
	(poison): Remove.
	(poison_pages): Use memset directly.
	(ggc_alloc_obj): Likewise.  Use a different pattern than poison_pages.
	(ggc_collect): Poison before sweeping.
	* ggc-simple.c: Update pre-function commentary.
	(ggc_alloc_obj): Poison non-zeroed memory.

From-SVN: r30275
1999-10-30 14:36:13 -07:00
Mark Mitchell
e225758aee ggc-common.c (ggc_print_statistics): Make arguments to fprintf match format string, even on 64-bit hosts.
* ggc-common.c (ggc_print_statistics): Make arguments to fprintf
	match format string, even on 64-bit hosts.
	* gcc-page.c (ggc_page_print_statistics): Likewise.

From-SVN: r30274
1999-10-30 21:26:13 +00:00
Catherine Moore
e42ea7f934 Revert last patch.
From-SVN: r30273
1999-10-30 15:43:20 -04:00
Jeff Law
10e5de9f6c Daily bump.
From-SVN: r30272
1999-10-30 01:45:07 -06:00
Richard Henderson
dcc6c74164 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
From-SVN: r30271
1999-10-29 23:41:19 -07:00
Jim Wilson
501eb93c44 Fix mn10200-elf libio build failure, and minor performance regression.
* stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
	TYPE_SIZE, convert type of result to sizetype.

From-SVN: r30270
1999-10-29 17:18:23 -07:00
Richard Henderson
3071fab505 flow.c (count_or_remove_death_notes): Equate NULL with the universal set.
* flow.c (count_or_remove_death_notes): Equate NULL with the
        universal set.

        * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
        * toplev.c (rest_of_compilation): Rebuild CFG immediately before
        dbr_schedule.

        * i386.c (pic_label_no): Delete.
        (ix86_attr_length_default): Don't use single_set to peek
        inside a parallel.

        * recog.c (peephole2_optimize): Allow recog_next_insn to index
        the first insn after bb->end.
        * i386.md (push mem peeps): Scratch is live after evaluation
        of the memory.
        (cmp mem peep): Similarly.

From-SVN: r30269
1999-10-29 14:45:05 -07:00
Alexandre Petit-Bianco
ed598dde43 class.c (add_method_1): Set DECL_INLINE to 1 for private, static and final method.
Fri Oct 29 14:35:18 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* class.c (add_method_1): Set DECL_INLINE to 1 for private, static
 	and final method.

From-SVN: r30268
1999-10-29 14:37:51 -07:00
Alexandre Petit-Bianco
8119c72007 parse.y (expression_statement:): Call function to report improper invocation of a constructor.
Fri Oct 29 14:23:32 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (expression_statement:): Call function to report
 	improper invocation of a constructor.
	(parse_ctor_invocation_error): New function.

From-SVN: r30267
1999-10-29 14:32:28 -07:00
Catherine Moore
7281a327ec *** empty log message ***
From-SVN: r30266
1999-10-29 14:53:46 -04:00
Catherine Moore
fbb57b2a94 Fix up last patch.
From-SVN: r30265
1999-10-29 14:49:29 -04:00
Kaveh R. Ghazi
e03c5670a9 alpha-protos.h (literal_section): Add prototype.
* alpha/alpha-protos.h (literal_section): Add prototype.
        (alpha_need_linkage, alpha_start_function,alpha_end_function):
        Constify a char*.

        * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
        prototype.
        (alpha_start_function, alpha_end_function, float_strings,
        alpha_need_linkage): Constify a char*

        * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.

        * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.

        * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.

        * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.

From-SVN: r30264
1999-10-29 17:56:19 +00:00
Kaveh R. Ghazi
a8f227e703 flow.c (debug_flow_info): Add prototype.
* flow.c (debug_flow_info): Add prototype.

        * gcc.c (main): Likewise.

        * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
        Likewise.

        * reload1.c (failed_reload, set_reload_reg): Likewise.

        * mips-tfile.c (main): Likewise.
        (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
        with ATTRIBUTE_NORETURN.

From-SVN: r30262
1999-10-29 17:51:38 +00:00
Andrew Haley
90e0ee005b i386.h (ENCODE_SECTION_INFO): Don't do anything if DECL is not a memory ref.
Fri Oct 29 18:16:03 1999  Andrew Haley  <aph@cygnus.com>

       * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
       DECL is not a memory ref.

From-SVN: r30261
1999-10-29 17:34:54 +00:00
Catherine Moore
7ed6230077 Remove stray comment.
From-SVN: r30260
1999-10-29 13:11:16 -04:00
Catherine Moore
4fba106154 i386.h (ix86_cpu): Remove extern attribute.
* config/i386/i386.h (ix86_cpu): Remove extern attribute.
        * config/i386/i386.c (ix86_cpu): Add extern attribute.

From-SVN: r30259
1999-10-29 12:13:23 -04:00
Andrew Haley
273eca161d elf.h: remove NAME__MAIN and SYMBOL__MAIN.
Fri Oct 29 16:30:04 1999  Andrew Haley  <aph@cygnus.com>

        * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
        * config/mips/elf64.h: ditto.

From-SVN: r30258
1999-10-29 15:36:21 +00:00
Catherine Moore
4fc026cde9 expr.c (emit_push_insn): New argument alignment_pad.
* expr.c (emit_push_insn): New argument alignment_pad.
        Update all callers.  Adjust stack pointer based on alignment pad.
        * function.c (pad_to_arg_alignment):  New argument alignment_pad.
        Update all callers.  Track alignment_pad if boundary > PARM_BOUNDARY.
        (locate_and_pad_parm): New argument alignment_pad.  Update all
        callers.
        * expr.h (emit_push_insn): Update prototype.
        (locate_and_pad_parm): Update prototype.
        * calls.c (arg_data):  Add new field alignment_pad.
        (initialize_argument_information): Initialize alignment_pad.

From-SVN: r30257
1999-10-29 11:23:41 -04:00
Mark Mitchell
5faf03ae77 except.c (free_eh_nesting_info): Free the info itself.
* except.c (free_eh_nesting_info): Free the info itself.
	* function.c (free_after_compilation): Don't free NULL.
	* gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
	(pre_edge_insert): Free inserted.
	* stmt.c (free_stmt_status): Don't free NULL.

From-SVN: r30255
1999-10-29 09:49:23 +00:00
Mark Mitchell
3baa501d81 cp-tree.h (make_typename_type): Change prototype.
* cp-tree.h (make_typename_type): Change prototype.
	* decl.c (make_typename_type): Only complain if so requested.
	* parse.y (nested_name_specifier): Adjust calls.
	(typename_sub0): Likewise.
	(typename_sub1): Likewise.
	* parse.c: Regenerated.
	* pt.c (convert_template_argument): Pass complain to
	make_typename_type.
	(tsubst): Likewise.

From-SVN: r30254
1999-10-29 09:35:38 +00:00
Jeff Law
aeaa597325 Daily bump.
From-SVN: r30253
1999-10-29 01:45:06 -06:00
Zack Weinberg
a9ae448346 cpplib.h (struct cpp_buffer: fname, [...]): Mark const.
1999-10-28 21:27 -0700  Zack Weinberg  <zack@bitmover.com>

	* cpplib.h (struct cpp_buffer: fname, nominal_fname,
	last_nominal_fname): Mark const.
	(struct include_hash: name, nshort, control_macro): Mark
	const.
	(struct macrodef: symnam): Mark const.
	(struct if_stack: fname): Mark const.
	(is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
	(IStable): New character-syntax array which encompasses all
	the old is_foo arrays.
	(is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
	is_space): New macros for interrogating IStable.
	(check_macro_name): Kill last argument.  All callers changed.

	* cppinit.c (initialize_char_syntax): Delete.
	(is_idchar, is_idstart, is_hor_space, is_space,
	trigraph_table): Delete.
	(IStable): New.  Initialize with clever macros to avoid
	information duplication.
	(builtin_array): Table of builtins to get rid of explicit list
	in initialize_builtins.
	(initialize_builtins): Use builtins_array.
	(cpp_start_read): Call init_IStable, and set IStable['$'] if
	opts->dollars_in_ident.

	* cppexp.c: Change all refs to is_xyz[] arrays to use new
	is_xyz() macros.
	(cpp_parse_expr): Avoid 'format string is not constant'
	warning. Use ISGRAPH to identify printable chars.
	* cppfiles.c: Change all refs to is_xyz[] arrays to use new
	is_xyz() macros.
	(read_and_prescan): Map trigraphs to chars with open-coded
	if-else-if-... sequence, not a lookup table.
	* cpphash.c: Change all refs to is_xyz[] arrays to use new
	is_xyz() macros.
	* cpplib.c: Change all refs to is_xyz[] arrays to use new
	is_xyz() macros.  Kill SKIP_ALL_WHITE_SPACE (unused).
	(check_macro_name): Remove ability to report an invalid
	assertion name, which is never used.
	(do_line): Constify a couple of char *'s.
	* cppmain.c (main): Call cpp_cleanup before returning.

From-SVN: r30252
1999-10-29 04:31:14 +00:00
Mark Mitchell
3277221c45 ggc.h (struct ggc_statistics): New type.
* ggc.h (struct ggc_statistics): New type.
	(ggc_get_size): New function.
	(ggc_print_statistics): Likewise.
	* ggc-common.c (ggc_stats): New variable.
	(ggc_mark_rtx_children): Keep statistics.
	(ggc_mark_tree_children): Likewise.
	(ggc_print_statistics): New function.
	* ggc-page.c (struct globals): Add bytes_mapped field.
	(alloc_anon): Update it.
	(release_pages): Likewise.
	(ggc_get_size): New function.
	(ggc_page_print_statistics): New function.
	* ggc-simple.c (ggc_get_size): New function.

From-SVN: r30251
1999-10-29 04:17:33 +00:00
Mark Mitchell
13e8cf822f semantics.c (finish_handler): End the scope of the handler before attaching it to the statement-tree.
* semantics.c (finish_handler): End the scope of the handler
	before attaching it to the statement-tree.

From-SVN: r30250
1999-10-29 02:34:31 +00:00
Ian Lance Taylor
0faff58049 improve ChangeLog message
From-SVN: r30249
1999-10-28 23:59:08 +00:00
Ian Lance Taylor
0f4d5c1c4d rtti.c (build_dynamic_cast_1): Give a better error message for an attempt to dynamic_cast a polymorphic type.
* rtti.c (build_dynamic_cast_1): Give a better error message for
	an attempt to dynamic_cast a polymorphic type.

From-SVN: r30248
1999-10-28 23:55:28 +00:00
Geoff Keating
a609297536 flow.c (propagate_block): When the last reference to a label before an ADDR_VEC is deleted because the...
* flow.c (propagate_block): When the last reference to a label
before an ADDR_VEC is deleted because the reference is a dead
store, delete the ADDR_VEC.

From-SVN: r30247
1999-10-28 20:37:37 +00:00
Richard Henderson
af05822029 resource.c (find_free_register): Don't use the frame pointer if frame_pointer_needed.
* resource.c (find_free_register): Don't use the frame pointer
        if frame_pointer_needed.

From-SVN: r30246
1999-10-28 12:30:02 -07:00
Jim Wilson
c9fc373cf0 Fix stdarg bugs with MIPS EABI that caused newlib/libstdc++ build failures.
* config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
	(function_arg_pass_by_reference): Check for a NULL pointer in cum.

From-SVN: r30245
1999-10-28 11:29:10 -07:00
Jim Wilson
7ab282a5a0 Fix i960 varargs/stdarg build failures.
* config/i960/i960.c (i960_va_start): New locals base, num.
	Use INDIRECT_REF instead of ARRAY_REF on valist.
	(i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.

From-SVN: r30244
1999-10-28 10:14:59 -07:00