Commit Graph

19398 Commits

Author SHA1 Message Date
Mumit Khan
de3a09679f crtdll.h (CPP_PREDEFINES): Fix typo.
* i386/crtdll.h (CPP_PREDEFINES): Fix typo.
        * i386/mingw32.h (CPP_PREDEFINES): Likewise.

From-SVN: r23292
1998-10-25 04:08:59 -07:00
Jeff Law
ad8a52d430 Daily bump.
From-SVN: r23287
1998-10-24 18:45:02 -06:00
David Edelsohn
7405d9a163 - update record_reg_classes change to be consistent with
Kenner's change to gcc.

From-SVN: r23275
1998-10-24 10:19:32 -04:00
Dave Love
c60f1599b1 Regenerated.
From-SVN: r23272
1998-10-24 09:04:09 +00:00
Dave Love
a8ae89a5e4 configure.in: Touch g2c.h in AC_OUTPUT after multilib disturbance.
1998-10-24  Dave Love  <d.love@dl.ac.uk>
	* configure.in: Touch g2c.h in AC_OUTPUT after multilib
	disturbance.

From-SVN: r23271
1998-10-24 09:03:07 +00:00
Dave Love
e7294982f3 Touch g2c.h in AC_OUTPUT after multilib disturbance.
From-SVN: r23270
1998-10-24 09:01:49 +00:00
Martin v. Löwis
08bb3b69c4 * gxxint.texi: Correct documentation for n, N, Q, and B.
From-SVN: r23269
1998-10-24 03:05:35 +00:00
Jeff Law
2b2ea9100a Daily bump.
From-SVN: r23268
1998-10-23 18:45:01 -06:00
Martin v. Löwis
3a2cbef7a4 parse.y (condition): Convert VAR_DECL from reference to indirect reference.
* parse.y (condition): Convert VAR_DECL from reference to indirect
	reference.

From-SVN: r23267
1998-10-24 00:35:31 +00:00
David Edelsohn
8c368ee218 loop.c (loop_has_tablejump): New variable.
* loop.c (loop_has_tablejump): New variable.
        (prescan_loop): Scan for it.
        (insert_bct): Replace explicit scan with use of it.
        * regclass.c (regclass): Restore loop variable j.
        (record_reg_classes): Deterine op_types modifiers and initialize
        classes[i] before matching constraints.  Handle matching
        constraints 5-9.

From-SVN: r23263
1998-10-23 16:51:02 -04:00
Jeffrey A Law
b590bbfd11 flow.c (life_analysis_1): Enable "rescan" code after reload.
* flow.c (life_analysis_1): Enable "rescan" code after reload.
        (propagate_block): Delete dead code after reload.

From-SVN: r23262
1998-10-23 14:34:52 -06:00
Jeffrey A Law
a1ef0af4d2 sched.c (update_flow_info): Revert Oct 19, 1998 change.
* sched.c (update_flow_info): Revert Oct 19, 1998 change.  Brings
        back Oct 15, 1998 change.
        * haifa-sched.c (update_flow_info): Likewise.
        * flow.c (life_analysis_1): Delete CLOBBER insns after reload.
Real fix was in flow.c...

From-SVN: r23261
1998-10-23 14:25:09 -06:00
Mark Mitchell
d9db46fd48 cplus-dem.c (work_stuff): Replace const_type and volatile_type with type_quals.
* cplus-dem.c (work_stuff): Replace const_type and volatile_type
	with type_quals.
	(TYPE_UNQUALIFIED): New macro.
	(TYPE_QUAL_CONST): Likewise.
	(TYPE_QUAL_VOLATILE): Likewise.
	(TYPE_QUAL_RESTRICT): Likewise.
	(code_for_qualifier): New function.
	(qualifier_string): Likewise.
	(demangle_qualifier): Likewise.
	(internal_cplus_demangle): Use them.
	(demangle_signature): Likewise.
	(demangle_template_value_parm): Likewise.
	(do_type): Likewise.
	(demangle_fund_type)): Likewise.

From-SVN: r23260
1998-10-23 16:36:15 +00:00
Andrew MacLeod
943767e30c exception.cc (__cp_pop_exception): Free the original exception value, not the potentially coerced one.
1998-10-23  Andrew MacLeod  <amacleod@cygnus.com>
      * exception.cc (__cp_pop_exception): Free the original exception
      value, not the potentially coerced one.

From-SVN: r23259
1998-10-23 16:26:19 +00:00
Mark Mitchell
91063b5138 cplus-dem.c (work_stuff): Replace const_type and volatile_type with type_quals.
* cplus-dem.c (work_stuff): Replace const_type and volatile_type
	with type_quals.
	(TYPE_UNQUALIFIED): New macro.
	(TYPE_QUAL_CONST): Likewise.
	(TYPE_QUAL_VOLATILE): Likewise.
	(TYPE_QUAL_RESTRICT): Likewise.
	(code_for_qualifier): New function.
	(qualifier_string): Likewise.
	(demangle_qualifier): Likewise.
	(internal_cplus_demangle): Use them.
	(demangle_signature): Likewise.
	(demangle_template_value_parm): Likewise.
	(do_type): Likewise.
	(demangle_fund_type)): Likewise.
	* Makefile.in (hash.h): Run gperf when necessary.
	* cp-tree.h (CP_TYPE_READONLY): Remove.
	(CP_TYPE_VOLATILE): Likewise.
	(CP_TYPE_QUALS): New macro.
	(CP_TYPE_CONST_P): Likewise.
	(CP_TYPE_VOLATILE_P): Likewise.
	(CP_TYPE_RESTRICT_P): Likewise.
	(CP_TYPE_CONST_NON_VOLATILE_P): Likewise.
	(cp_build_type_variant): Rename to ...
	(cp_build_qualified_type): New function.
	(c_apply_type_quals_to_decl): Declare.
	(SIGNATURE_POINTER_NAME_FORMAT): Modify to allow `restrict'.
	(SIGNATURE_REFERENCE_NAME_FORMAT): Likewise.
	(cp_type_qual_from_rid): New function.
	(compparms): Remove unused parameter.  All callers changed.
	(cp_type_quals): New function.
	(at_least_as_qualified_p): Likewise.
	(more_qualified_p): Likewise.
	* call.c (standard_conversion): Replace calls to
	cp_build_type_variant with cp_build_qualified_type.  Use
	CP_TYPE_QUALS to get qualifiers and at_least_as_qualified_p to
	compare them.  Use CP_TYPE_* macros to check qualifiers.
	(reference_binding): Likewise.
	(implicit_conversion): Likewise.
	(add_builtin_candidates): Likewise.
	(build_over_call): Likewise.
	* class.c (overrides): Compare all qualifiers, not just `const',
	on method declarations.
	* cvt.c (convert_to_reference): More CP_TYPE_QUALS conversion, etc.
	(convert_pointer_to_real): Likewise.
	(type_promotes_to): Likewise.
	* decl.c (check_for_uninitialized_const_var): New function.
	(init_decl_processing): More CP_TYPE_QUALS conversion, etc.
	(cp_finish_decl): Use check_for_uninitialized_const_var.
	(grokdeclarator): More CP_TYPE_QUALS conversion, etc.  Update to
	handle `restrict'.
	(grok_ctor_properties): Likewise.
	(grok_op_properties): Likewise.
	(start_function): Likewise.
	(rever_static_member_fn): Likewise.
	* decl2.c (grok_method_quals): Likewise.
	(grokfield): Likewise.
	* error.c (dump_readonly_or_volatile): Rename to ...
	(dump_qualifiers): New function.  Handle `restrict'.
	(dump_type_real): Use it.
	(dump_aggr_type): Likewise.
	(dump_type_prefix): Likewise.
	(dump_type_suffix): Likewise.
	(dump_function_decl): Likewise.
	(cv_as_string): Likewise.
	* gxx.gperf: Add __restrict and __restrict__.
	* gxxint.texi: Document `u' as used for `__restrict', and a few
	other previously undocumented codes.
	* hash.h: Regenerated.
	* init.c (expand_aggr_init): More CP_TYPE_QUALS conversion, etc.
	(build_member_call): Likewise.
	(build_new_1): Likewise.
	* lex.c (init_parse): Add entry for RID_RESTRICT.
	(cons_up_default_function): More CP_TYPE_QUALS conversion, etc.
	(cp_type_qual_from_rid): Define.
	* lex.h (enum rid): Add RID_RESTRICT.
	* method.c (process_modifiers): Deal with `restrict'.
	* parse.y (primary): More CP_TYPE_QUALS conversion, etc.
	* parse.c: Regenerated.
	* pt.c (convert_nontype_argument): More CP_TYPE_QUALS conversion, etc.
	(tsubst_aggr_type): Likewise.
	(tsubst): Likewise.
	(check_cv_quals_for_unify): Likewise.
	(unify): Likewise.
	* rtti.c (init_rtti_processing): Likewise.
	(build_headof): Likewise.
	(get_tinfo_var): Likewise.
	(buidl_dynamic_cast_1): Likewise.  Fix `volatile' handling.
	(expand_class_desc): Likewise.
	(expand_attr_desc): Likewise.
	(synthesize_tinfo_fn): Likewise.
	* search.c (covariant_return_p): Likewise.  Fix `volatile' handling.
	(get_matching_virtual): Likewise.
	(expand_upcast_fixups): Likewise.
	* sig.c (build_signature_pointer_or_reference_name): Take
	type_quals, not constp and volatilep.
	(build_signature_pointer_or_reference_type): Likewise.
	(match_method_types): More CP_TYPE_QUALS conversion, etc.
	(build_signature_pointer_constructor): Likewise.
	(build_signature_method_call): Likewise.
	* tree.c (build_cplus_array_type): Likewise.
	(cp_build_type_variant): Rename to ...
	(cp_build_qualified_type): New function.  Deal with `__restrict'.
	(canonical_type_variant): More CP_TYPE_QUALS conversion, etc.
	(build_exception_variant): Likewise.
	(mapcar): Likewise.
	* typeck.c (qualif_type): Likewise.
	(common_type): Likewise.
	(comptypes): Likewise.
	(comp_cv_target_types): Likewise.
	(at_least_as_qualified_p): Define.
	(more_qualified_p): Likewise.
	(comp_cv_qualification): More CP_TYPE_QUALS conversion, etc.
	(compparms): Likewise.
	(inline_conversion): Likewise.
	(string_conv_p): Likewise.
	(build_component_ref): Likewise.
	(build_indirect_ref): Likewise.
	(build_array_ref): Likewise.
	(build_unary_op): Likewise.
	(build_conditional_expr): Likewise.
	(build_static_cast): Likewise.
	(build_c_cast): Likewise.
	(build_modify_expr): Likewise.
	(convert_For_assignment): Likewise.
	(comp_ptr_ttypes_real): Likewise.
	(cp_type_quals): New function.

From-SVN: r23258
1998-10-23 14:53:28 +00:00
Jeffrey A Law
7b16da78b1 * flow.c (life_analysis_1): Delete CLOBBER insns after reload.
From-SVN: r23257
1998-10-23 08:33:35 -06:00
Jim Wilson
ca3bf2b5db Fix m32r build failure, (SUBREG (MEM)) problem from Joern's reload patches.
* m32r/m32r.c (gen_split_move_double): Call alter_subreg.  Delete
	subreg support.

From-SVN: r23256
1998-10-23 07:00:08 -07:00
Kaveh R. Ghazi
e1ba7da73f Warning fixes:
* mips.h (EXTRA_SPECS): Add missing initializers.

From-SVN: r23255
1998-10-23 13:23:39 +00:00
Kaveh R. Ghazi
df4f7565fe Warning fixes:
* sparc.h (EXTRA_SPECS): Add missing initializers.
        (sparc_defer_case_vector): Provide a prototype.
        * svr4.h (ASM_OUTPUT_ASCII): Cast STRING_LIMIT to (long) when
        comparing it to the result of a pointer subtraction.

From-SVN: r23254
1998-10-23 13:12:09 +00:00
Kaveh R. Ghazi
d1e6b55b7a Warning fixes:
* alpha.c (override_options): Use ISDIGIT(), not isdigit().  Cast
        the argument to (unsigned char).
        * alpha.h (EXTRA_SPECS): Add missing initializers.
        (ASM_GENERATE_INTERNAL_LABEL): Ensure the argument matches the
        format specifier.

From-SVN: r23253
1998-10-23 12:39:18 +00:00
Jeffrey A Law
c4214310ab * mn10200.md (truncated shift): Accept constant inputs too.
From-SVN: r23252
1998-10-23 06:15:31 -06:00
Dave Love
9cfb030f28 f2cext.c: Include math.h.
1998-10-23  Dave Love  <d.love@dl.ac.uk>
	* f2cext.c: Include math.h.

From-SVN: r23251
1998-10-23 11:39:24 +00:00
Dave Love
87e6e875b3 Include math.h.
From-SVN: r23250
1998-10-23 11:38:34 +00:00
Tom Tromey
45ae5597eb * lang-specs.h: `.zip' files are input to jc1.
From-SVN: r23247
1998-10-23 08:54:10 +00:00
Martin v. Löwis
1d5f42ab2b New test case.
From-SVN: r23246
1998-10-23 08:53:32 +00:00
Richard Earnshaw
abef87891c machmode.h (mode_mask_array): No longer const.
* machmode.h (mode_mask_array): No longer const.
* rtl.c (init_rtl): Fully initialize it if EXTRA_CC_MODES defined.

From-SVN: r23245
1998-10-23 04:09:58 +00:00
Jason Merrill
0aaa908966 cp-tree.h (CP_TYPE_READONLY): New macro to handle arrays.
* cp-tree.h (CP_TYPE_READONLY): New macro to handle arrays.
	(CP_TYPE_VOLATILE): Likewise.
	* decl.c (grokdeclarator): Use them.
	* tree.c (canonical_type_variant): Likewise.

From-SVN: r23244
1998-10-22 22:26:32 -04:00
Martin v. Löwis
ccb5954fea frame.c: Somewhat explain `FDE'.
* frame.c: Somewhat explain `FDE'.
        Suggested by Brendan Kehoe

From-SVN: r23243
1998-10-23 02:25:09 +00:00
Jason Merrill
8d3f83d25c up
From-SVN: r23242
1998-10-22 22:21:02 -04:00
Jason Merrill
fdc46fbe65 expr.c (pending_chain): Move up.
* expr.c (pending_chain): Move up.
	(save_expr_status): Do save pending_chain.
	(restore_expr_status): And restore it.
	* function.h (struct function): Add pending_chain.

From-SVN: r23241
1998-10-22 22:18:53 -04:00
Jeff Law
5581627cef Daily bump.
From-SVN: r23240
1998-10-22 18:45:02 -06:00
Herman A.J. ten Brugge
6f20793d6f reorg.c (relax_delay_slots): Fixed test for mostly_true_jump.
* reorg.c (relax_delay_slots): Fixed test for mostly_true_jump. The
        did not match the code.

From-SVN: r23239
1998-10-22 17:34:56 -06:00
Per Bothner
1938bea67e jvspecs.c: Add (but don't enable) support for combining multiple .class and .java input...
�
	* jvspecs.c:  Add (but don't enable) support for combining multiple
	.class and .java input filenames to a single jc1 invocation.
	Add support for -C flag (copile to .class files).
	Translate -classpath and -CLASSPATH arguments.
	* lang-specs.h:  Don't set %2 spec.

From-SVN: r23238
1998-10-22 16:11:53 -07:00
Per Bothner
172b2240e2 jvspecs.c: Add (but don't enable) support for combining multiple .class and .java input...
* jvspecs.c:  Add (but don't enable) support for combining multiple
	.class and .java input filenames to a single jc1 invocation.
	Add support for -C flag (copile to .class files).
	Translate -classpath and -CLASSPATH arguments.
	* lang-specs.h:  Don't set %2 spec.

From-SVN: r23237
1998-10-22 16:11:51 -07:00
Bernd Schmidt
61719ba72e regclass.c (regclass): Break out some code into new function scan_one_insn, and into regclass_init.
* regclass.c (regclass): Break out some code into new function
        scan_one_insn, and into regclass_init.
        (init_cost): New static variable, moved out of regclass.
        (regclass_init): Initialize it here, not in .
        (scan_one_insn): New static function, broken out of regclass.
        * recog.c (apply_change_group): Break out some code into new
        function insn_invalid_p.
        (insn_invalid_p): New static fn, broken out of apply_change_group.

From-SVN: r23236
1998-10-22 17:08:26 -06:00
Jim Wilson
04bbb0c54c Fix m68k-aout build failure. Invalid insn abort while compiling newlib.
* reload1.c (reload_as_needed): When rewrite POST_INC, verify
	reg_reloaded_contents matches incremented pseudo.

From-SVN: r23235
1998-10-22 15:49:04 -07:00
Jim Wilson
9324411a50 Fix v850 build problem stemming from Joern's reload patch.
* v850/v850.c (v850_reorg): Call alter_subreg.  Delete subreg support.

From-SVN: r23234
1998-10-22 15:37:03 -07:00
Jeff Law
8f38ad1fd8 Opps. Revert another accidental checkin.
From-SVN: r23233
1998-10-22 11:37:35 -06:00
Jeff Law
1da8742aff Revert accidental change.
From-SVN: r23232
1998-10-22 11:17:26 -06:00
Kaveh R. Ghazi
da61b7d51c splay-tree.h: Wrap function pointer parameter declarations in PARAMS() macro.
* splay-tree.h: Wrap function pointer parameter declarations in
        PARAMS() macro.

From-SVN: r23231
1998-10-22 17:02:18 +00:00
Kaveh R. Ghazi
b056ad1c68 splay-tree.c (splay_tree_foreach_helper): Make definition static to match prototype.
* splay-tree.c (splay_tree_foreach_helper): Make definition static
        to match prototype.

From-SVN: r23230
1998-10-22 17:00:43 +00:00
Tom Tromey
71f6a8e2e6 jcf-path.c (add_entry): Don't add trailing separator if entry is a .zip file.
* jcf-path.c (add_entry): Don't add trailing separator if entry is
	a .zip file.
	(add_path): Don't add trailing separator to non-empty path
	elements.
	* lang.c (lang_decode_option): Check for -fclasspath and
	-fCLASSPATH before examining other `-f' options.

From-SVN: r23229
1998-10-22 16:30:34 +00:00
Michael Hayes
b18cfc2861 rtl.def (POST_MODIFY, PRE_MODIFY): New generalized operators for addressing modes with side effects.
* rtl.def (POST_MODIFY, PRE_MODIFY): New generalized operators for
  	addressing modes with side effects.  These are currently
  	placeholders for the C4x target.

From-SVN: r23228
1998-10-22 16:11:16 +00:00
Tom Tromey
f76707606e java-tree.h (finalize_identifier_node): Don't declare.
* java-tree.h (finalize_identifier_node): Don't declare.
	* class.c (make_class_data): Don't push "final" field.
	* decl.c (init_decl_processing): Don't push "final" field.
	(finalize_identifier_node): Removed.
	(init_decl_processing): Don't set finalize_identifier_node.

From-SVN: r23227
1998-10-22 15:52:53 +00:00
Bernd Schmidt
86219cc76f loop.c (express_from): Make sure that when generating a PLUS of a PLUS...
* loop.c (express_from): Make sure that when generating a PLUS of
        a PLUS, any constant expression appears on the outermost PLUS.

From-SVN: r23226
1998-10-22 09:48:47 -06:00
Andreas Schwab
db1b5e8135 * compile/981022-1.c, compile/981022-1.x: New test and driver.
From-SVN: r23225
1998-10-22 09:03:45 -06:00
Martin v. Löwis
f09bbbedfb parse.y (named_class_head): Push into class while parsing the base class list.
* parse.y (named_class_head): Push into class while parsing the
	base class list.
	* decl2.c (push_scope, pop_scope): New functions.
	* tree.h: Declare them.

From-SVN: r23224
1998-10-22 14:52:02 +00:00
Martin v. Löwis
e0afe616d4 * init.c (build_new_1): Delay cleanup until end of full expression.
From-SVN: r23223
1998-10-22 14:48:22 +00:00
Per Bothner
298978c933 Makefile.in (distdir-cvs, [...]): Clean up so it works if "$(srcdir)" != ".".
* Makefile.in (distdir-cvs, distdir-start):  Clean up so it
        works if "$(srcdir)" != ".".

From-SVN: r23222
1998-10-22 08:47:52 -06:00
Jeff Law
4ac2fccfc7 Fix typo.
From-SVN: r23221
1998-10-22 08:31:13 -06:00