Commit Graph

16215 Commits

Author SHA1 Message Date
Jeffrey A Law
ea8693a436 global.c (global_alloc): Don't pass HARD_CONST (0) to find_reg, just pass zero.
* global.c (global_alloc): Don't pass HARD_CONST (0) to find_reg,
        just pass zero.  That will work regardless of the size of HARD_REG_SET.

From-SVN: r19276
1998-04-17 19:02:04 -06:00
Jeff Law
c57b6780fe libgcc2.c (__floatdisf): Fix a couple typos.
8
        * libgcc2.c (__floatdisf): Fix a couple typos.

From-SVN: r19275
1998-04-17 15:39:12 -06:00
Jeff Law
43be8193db libgcc2.c (__floatdisf): Fix a couple typos.
�
        * libgcc2.c (__floatdisf): Fix a couple typos.

From-SVN: r19274
1998-04-17 15:39:10 -06:00
Mark Mitchell
294471c351 cp-tree.h (type_as_string_real): New function.
Fri Apr 17 21:25:00 1998  Mark Mitchell  <mmitchell@usa.net>
	* cp-tree.h (type_as_string_real): New function.
	* pt.c (mangle_class_name_for_template): Use it.
	* error.c (dump_aggr_type): Change prototype.
	(dump_type_prefix): Likewise.
	(dump_type_suffix): Likewise.
	(dump_type_real): Convert from dump_type.  If desired, the
	"canonica" name of a typedef, i.e., the name of the underlying
	type, can be printed.
	(dump_type): Call dump_type_real.

From-SVN: r19273
1998-04-17 21:25:38 +00:00
Jim Wilson
45df6aeae2 Fix `make clean' bug with -da files.
* Makefile.in (mostlyclean): Delete *.mach and *.bp files.

From-SVN: r19272
1998-04-17 10:31:30 -07:00
Greg McGary
6cca74ab23 * emit-rtl.c (gen_highpart): initialize `word' properly for pseudo.
From-SVN: r19271
1998-04-17 09:35:07 -07:00
Jason Merrill
4daa9c1429 redo
From-SVN: r19270
1998-04-17 11:52:17 -04:00
Jason Merrill
2702902024 revert
From-SVN: r19269
1998-04-17 11:32:57 -04:00
Jason Merrill
9577319f92 decl2.c (lang_decode_option): -fnew-abi implies -fvtable-thunks.
* decl2.c (lang_decode_option): -fnew-abi implies -fvtable-thunks.
	* typeck.c (comp_target_types): Tweak pedantic case.
	(comp_target_parms): Tweak pedantic case.  Clean up somewhat.
	Return -1 or 1 instead of 1 or 2.
	(compparms): Remove STRICT handling.
	* typeck.c (comp_target_types): Handle references like pointers.
	(comp_target_parms): Note that return code from comp_target_types
	can be negative to indicate failure.

From-SVN: r19268
1998-04-17 11:29:46 -04:00
John Carr
77e6b0eb60 Patch from John Carr to fix sparc v9 failure.
* emit-rtl.c (operand_subword_force): If a register can not be
	accessed by words, copy it to a pseudo register.

From-SVN: r19267
1998-04-17 07:41:49 -07:00
Jim Wilson
27f4cfdb2f Fix vxworks-ppc build failure reported by SXTHREE.
* rs6000/vxppc.h (CPP_SPEC): Add support for mrelocatable*.

From-SVN: r19266
1998-04-17 07:32:23 -07:00
Michael Meissner
f4a7398471 Delete mark_seen_cases declaration
From-SVN: r19265
1998-04-17 14:02:51 +00:00
Jeff Law
ba5b9572d6 stmt.c (mark_seen_cases): Make static and add prototype.
8
        * stmt.c (mark_seen_cases): Make static and add prototype.

From-SVN: r19264
1998-04-17 06:32:43 -06:00
Jeff Law
00769100ef stmt.c (mark_seen_cases): Make static and add prototype.
�
        * stmt.c (mark_seen_cases): Make static and add prototype.

From-SVN: r19263
1998-04-17 06:32:41 -06:00
Jeff Law
47c78a3f4d Typos in last checkin.
From-SVN: r19262
1998-04-17 02:32:50 -06:00
Kaveh R. Ghazi
2467749d6d Zap some warnings in target files:
* frame.c: Include stdlib.h and unistd.h to possibly get various
        function prototypes.  The fixproto script guarantees these header
        files exist on the target system.
        * libgcc2.c: Likewise.
        * gthr-single.h (__gthread_mutex_lock, __gthread_mutex_trylock,
        __gthread_mutex_unlock): Add __attribute__ ((__unused__)) to the
        function parameters.
        * libgcc2.c (__udiv_w_sdiv): Likewise.

From-SVN: r19261
1998-04-17 08:26:33 +00:00
Andreas Schwab
da372c07fc Make-lang.in (c++.all.build): Don't depend on $(DEMANGLER_PROG)...
* Make-lang.in (c++.all.build): Don't depend on $(DEMANGLER_PROG),
        which requires a working target compiler to build.

From-SVN: r19260
1998-04-17 02:12:14 -06:00
Jeffrey A Law
69ac77ce5e tree.c (avoid_overlap): Add prototype.
* tree.c (avoid_overlap): Add prototype.
        * spew.c (num_tokens): Add prototype.
        (nth_noken, add_token, consume_token, debug_yychar): Likewise.
        * search.c (dfs_check_overlap): Add prototype.
        (dfs_no_overlap_yet): Likewise.
        * pt.c (original_template): Add prototype.
        (inline_needs_template_parms): Likewise.
        (push_inline_template_parms_recursive): Likewise.
        (retrieve_specialization, register_specialization): Likewise.
        (print_candidates, reduce_template_parm_level): Likewise.
        (build_template_decl, mark_template_parm): Likewise.
        (tsubst_friend_function, get_bindings_real): Likewise.
        * method.c (start_squangling): Add prototype.
        (end_squangling, check_ktype, issue_ktype): Likewise.
        (build_overloaded_scope_ref, check_btype): Likewise.
        (build_mangled_template_parm_index): Likewise.
        * lex.c (init_cpp_parse): Add prototype.
        (handle_cp_pragma, handle_sysv_pragma): Likewise.
        (reduce_cmp, token_cmp): Likewise.
        * except.c (call_eh_info): Add prototype.
        (push_eh_info, get_eh_info, get_eh_value, get_eh_type): Likewise.
        (get_eh_caught, get_eh_handlers, do_pop_exception): Likewise.
        * decl2.c (is_namespace_ancestor): Add prototype.
        (namespace_ancestor, add_using_namespace): Likewise.
        (ambiguous_decl): Likewise.
        * decl.c (indent): Add prototype.
        * call.c (add_template_candidate_real): Add prototype.

From-SVN: r19259
1998-04-17 02:05:26 -06:00
Jeff Law
45bb86fdcf Typo fix from mrs.
From-SVN: r19258
1998-04-17 01:52:26 -06:00
Jeffrey A Law
ac54632323 Forgot to check in last night.
From-SVN: r19257
1998-04-17 01:39:23 -06:00
Jason Merrill
2fcdec5719 * decl2.c (build_expr_from_tree): Just return a PMF.
From-SVN: r19256
1998-04-16 21:57:57 -04:00
Mark Mitchell
2b6815eae2 typeck2.c (process_init_constructor): Don't strip cv-qualifiers when doing initializations.
* typeck2.c (process_init_constructor): Don't strip cv-qualifiers
	when doing initializations.

From-SVN: r19255
1998-04-16 20:47:20 -04:00
Jeff Law
0e05e8ea12 varasm.c (asm_output_bss): Add prototype.
* varasm.c (asm_output_bss): Add prototype.
        (asm_output_aligned_bss): Likewise.
        * unroll.c (verify_addresses): Add prototype.
        * toplev.c: Add many prototypes.  Too many to mention here.
        * stmt.c (check_seenlabel): Add prototype.
        * rtlanal.c (reg_set_p_1): Add prototype.
        (reg_set_last_1): Likewise.
        * reorg.c (find_dead_or_set_registers): Add prototype.
        * regmove (try_auto_increment): Add prototype.
        * regstack.c (pop_stack): Add prototype.

From-SVN: r19254
1998-04-16 18:40:39 -06:00
Jeff Law
a777ae13a7 Forgot to commit with last batch of prototype changes.
From-SVN: r19253
1998-04-16 18:36:09 -06:00
Jason Merrill
3a56f0abd3 decl.c (duplicate_decls): Fix check for when it's safe to free the new decl.
* decl.c (duplicate_decls): Fix check for when it's safe to free
	the new decl.
	* pt.c (mangle_class_name_for_template): Don't pass a typedef type
	to type_as_string.
	From Mark Mitchell:
	(unify): Use comptypes to compare type args.

From-SVN: r19252
1998-04-16 20:26:13 -04:00
Jeff Law
e009aaf31f loop.c (regs_patch_p): Add prototype.
* loop.c (regs_patch_p): Add prototype.
        (add_label_notes, count_nonfixed_reads): Likewise.
        (find_single_use_in_loop): Likewise.
        (express_from): Surround prototype with #ifdef.
        (giv_sort): Similarly.
        * jump.c (mark_modified_reg): Add prototype.
        * haifa-sched.c (is_prisky): Add prototype.
        (queue_to_ready): Likewise.
        * genextract.c (gen_insn): Add prototype.
        * genemit.c (max_operand_1): Add prototype.
        (max_operand_vec, print_code, gen_exp, gen_insn): Likewise.
        (gen_expand, gen_explit, output_add_clobbers): Likewise.
        (output_init_mov_optab): Likewise.
        * genattrtab.c (attr_hash_add_rtx): Add prototype.
        (attr_hash_add_string, write_length_unit_log): Likewise.
        * genattr.c (init_range): Add prototype.
        * combine.c (sets_function_arg_p): Add prototype.

From-SVN: r19251
1998-04-16 17:56:12 -06:00
Jeff Law
d77fac3be2 expr.c (store_constructor_field): Add prototype.
* expr.c (store_constructor_field): Add prototype.
        (memory_use_mode): Likewise.
        * expmed.c (synth_mult): Add prototype.
        (choose_multiplier, invert_mod2n): Likewise.

From-SVN: r19250
1998-04-16 17:07:05 -06:00
Jeffrey A Law
242c13b000 except.c (push_eh_entry): Add prototype.
* except.c (push_eh_entry): Add prototype.
        (pop_eh_entry, enqueue_eh_entry, dequeu_eh_entry): Likewise.
        (call_get_eh_context, start_dynamic_cleanup): Likewise.
        (start_dynamic_handler, can_throw): Likewise.
        (output_exception_table_entry, scan_region): Likewise.
        (eh_regs, set_insn_eh_region): Likewise.
Also fix typo in previous dwarfout change.

From-SVN: r19249
1998-04-16 16:57:50 -06:00
Jeffrey A Law
1ad4f46be6 dwarfout.c (decl_class_context): Add prototype.
* dwarfout.c (decl_class_context): Add prototype.
        (output_inheritance_die, type_ok_for_scope): Likewise.

From-SVN: r19248
1998-04-16 16:46:15 -06:00
Jeffrey A Law
e822c59383 * c-lex.c (skip_white_space_on_line): Add prototype.
From-SVN: r19247
1998-04-16 16:22:43 -06:00
Jeffrey A Law
70fec6509c alias.c (record_set): Add prototype.
* alias.c (record_set): Add prototype.
        (find_base_term, base_alias_check): Likewise.

From-SVN: r19246
1998-04-16 16:14:41 -06:00
Jeffrey A Law
1ac4f79956 * function.c (assign_outer_stack_local): Make static and add prototype.
From-SVN: r19245
1998-04-16 16:08:49 -06:00
Jeffrey A Law
a2e687765a haifa-sched.c (build_control_flow): Accept raw data as inputs instead of computing it locally.
* haifa-sched.c (build_control_flow): Accept raw data as inputs
        instead of computing it locally.  Callers changed.
        (find_rgns): Several new arguments.  Callers changed.
        Generally clean up and comment better.  Use dominators to
        identify reducible loops.  Convert some flag arrays to bitmaps.
        Convert most of the code to work on pred/succ lists instead of
        an edge table.  Add comments for future improvements.
        (schedule_insns): Allocate temporary tables for flow data, call
        routines to compute flow data and pass it along to children as
        arguments.
        (debug_control_flow): Delete.  Use dump_bb_data instead.
General cleanup + fix a bug or two.

From-SVN: r19244
1998-04-16 16:00:09 -06:00
Jeffrey A Law
97b1ef1cf4 * basic-block.h (compute_dominators): Declare.
From-SVN: r19243
1998-04-16 15:53:42 -06:00
Jeff Law
3522e0f2c7 flow.c (dump_sbitmap, [...]): New debugging functions.
8
        * flow.c (dump_sbitmap, dump_sbitmap_vector): New debugging
        functions.
        * basic-block.h: Declare them.

From-SVN: r19242
1998-04-16 15:42:19 -06:00
Jeff Law
74c5186c2a flow.c (dump_sbitmap, [...]): New debugging functions.
�
        * flow.c (dump_sbitmap, dump_sbitmap_vector): New debugging
        functions.
        * basic-block.h: Declare them.

From-SVN: r19241
1998-04-16 15:42:16 -06:00
Jeff Law
4b58044644 pt.c (build_template_parm_index): Add prototype.
8
        * pt.c (build_template_parm_index): Add prototype.

From-SVN: r19240
1998-04-16 11:22:52 -06:00
Jeff Law
3bea7da833 pt.c (build_template_parm_index): Add prototype.
�
        * pt.c (build_template_parm_index): Add prototype.

From-SVN: r19239
1998-04-16 11:22:50 -06:00
Jeff Law
936f0e0231 search.c (my_tree_cons): Don't clear words outside the newly allocated node.
8
        * search.c (my_tree_cons): Don't clear words outside the
        newly allocated node.

From-SVN: r19238
1998-04-16 10:48:43 -06:00
Jeff Law
472295b891 search.c (my_tree_cons): Don't clear words outside the newly allocated node.
�
        * search.c (my_tree_cons): Don't clear words outside the
        newly allocated node.

From-SVN: r19237
1998-04-16 10:48:41 -06:00
Jim Wilson
7ce55772e8 Patch to fix x86 gcc.dg/980226-1.c failure report by Manfred Hollstein.
* reg-stack.c (constrain_asm_operands): Set n_alternatives to zero if
	no operands.

From-SVN: r19236
1998-04-16 06:46:40 -07:00
Alexandre Petit-Bianco
e88caebd28 tree.c (build_expr_wfl): Use NULL_TREE if the file name is NULL.
�
        * tree.c (build_expr_wfl): Use NULL_TREE if the file name is NULL.
        Propagate TREE_SIDE_EFFECTS and TREE_TYPE iff the encapsulated
        node is non NULL. Cache last file name and file name identifier node.

From-SVN: r19235
1998-04-16 04:49:09 -07:00
Alexandre Petit-Bianco
9fe9a2e1a0 tree.c (build_expr_wfl): Use NULL_TREE if the file name is NULL.
�
        * tree.c (build_expr_wfl): Use NULL_TREE if the file name is NULL.
        Propagate TREE_SIDE_EFFECTS and TREE_TYPE iff the encapsulated
        node is non NULL. Cache last file name and file name identifier node.

From-SVN: r19234
1998-04-16 04:49:07 -07:00
Mark Mitchell
a62e870c5b c-common.c (declare_hidden_char_array): Use TYPE_DOMAIN to get the length of an array, not TREE_TYPE.
1998-04-15  Mark Mitchell  <mmitchell@usa.net>
	* c-common.c (declare_hidden_char_array): Use TYPE_DOMAIN to get
	the length of an array, not TREE_TYPE.

From-SVN: r19233
1998-04-16 00:12:43 +00:00
Jeffrey A Law
5e89e58b55 flow.c (sbitmap_union_of_successors): New function.
* flow.c (sbitmap_union_of_successors):  New function.
        * basic-block.h (sbitmap_union_of_successors): Declare it.
For completeness, we already had the other 3 variants.  This one
is useful for backwards lazy code motion.

From-SVN: r19232
1998-04-15 08:33:54 -06:00
Jeff Law
2414de7158 Forgot to commit.
From-SVN: r19231
1998-04-15 08:12:03 -06:00
Jim Wilson
df6faf7954 Fix host/build confusion with gas and gnu_ld flags.
* configure.in (gnu_ld): Rename to gnu_ld_flag before main loop.
	Set gnu_ld to gnu_ld_flag inside main loop.
	(gas): Likewise.

From-SVN: r19230
1998-04-15 05:41:32 -07:00
Dave Brolley
71b5e53265 com.c (init_parse): Now returns char* containing filename;
Tue Apr 14 15:51:37 1998  Dave Brolley  <brolley@cygnus.com>
	* com.c (init_parse): Now returns char* containing filename;

From-SVN: r19229
1998-04-15 08:36:14 -04:00
Dave Brolley
a755ad1c04 lex.c (init_parse): Now returns char* containing the filename.
Wed Apr 15 15:34:44 1998  Dave Brolley  <brolley@cygnus.com>
	* lex.c (init_parse): Now returns char* containing the filename.

From-SVN: r19228
1998-04-15 08:35:16 -04:00
Dave Brolley
5c60e5c007 toplev.c (compile_file): Call init_parse using new interface.
Wed Apr 15 14:50:05 1998  Dave Brolley  <brolley@cygnus.com>
	* toplev.c (compile_file): Call init_parse using new interface.
	(init_lex): Remove declaration.
	* c-lex.c (init_parse): Now returns char* containing filename.

From-SVN: r19227
1998-04-15 08:31:38 -04:00