Commit Graph

16327 Commits

Author SHA1 Message Date
J"orn Rennecke
97d6fd65f3 * sh.c (gen_ashift_hi): Don't make SUBREG of a SUBREG.
From-SVN: r19432
1998-04-27 13:25:51 +01:00
Dave Love
5645adf0a2 Comment about fix.
From-SVN: r19431
1998-04-27 11:19:46 +00:00
J"orn Rennecke
3d5a082089 sh.c (sh_expand_prologue, [...]): If TARGET_DOUBLE_ALIGN, preserve 64 bit stack alignment.
* sh.c (sh_expand_prologue, sh_expand_epilogue):
        If TARGET_DOUBLE_ALIGN, preserve 64 bit stack alignment.
        * sh.h (STACK_BOUNDARY): Likewise.

From-SVN: r19430
1998-04-27 11:26:39 +01:00
Craig Burley
515d3c1783 hostnm_.c (G77_hostnm_0): Fix off-by-one error that was trashing the byte just beyond the CHARACTER*(*)...
Sun Apr 26 09:13:41 1998  Craig Burley  <burley@gnu.org>
	* libU77/hostnm_.c (G77_hostnm_0): Fix off-by-one error
	that was trashing the byte just beyond the CHARACTER*(*)
	argument.

From-SVN: r19429
1998-04-27 10:22:25 +00:00
Jason Merrill
6c58160c11 update
From-SVN: r19428
1998-04-27 06:19:31 -04:00
Craig Burley
6b2fe0fbe4 (G77_hostnm_0): Fix off-by-one error
that was trashing the byte just beyond the CHARACTER*(*)
argument.

From-SVN: r19427
1998-04-27 10:11:57 +00:00
Dave Love
a235cdd775 New test.
From-SVN: r19426
1998-04-27 10:06:28 +00:00
Dave Love
8594f2102c * g77.f-torture/compile/980427-0.f: New test.
From-SVN: r19425
1998-04-27 10:03:37 +00:00
J"orn Rennecke
ef41dabb7e * sh.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
From-SVN: r19424
1998-04-27 10:26:21 +01:00
Michael Meissner
22c4957e6b Redefine abort to report linenumber and filename of the error
From-SVN: r19423
1998-04-27 08:49:53 +00:00
Michael Meissner
563c063f76 Fix a warning
From-SVN: r19422
1998-04-27 06:20:13 +00:00
Michael Meissner
14bf4a33ec Make args to jump_optimize symbolic
From-SVN: r19421
1998-04-27 06:05:55 +00:00
Richard Henderson
5d02ee6677 alpha.h (CONST_COSTS): Zero is always free.
* alpha.h (CONST_COSTS): Zero is always free.
(RTX_COSTS): Add EV6 costs.  Abort if alpha_cpu is unknown.

From-SVN: r19420
1998-04-26 16:21:55 -07:00
Richard Henderson
fcce69a9e9 configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT tests to work out of the...
* configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT
tests to work out of the build directory.

From-SVN: r19419
1998-04-26 11:09:12 -07:00
Mark Mitchell
6757edfe65 cp-tree.h (CLASSTYPE_IS_TEMPLATE): New macro.
* cp-tree.h (CLASSTYPE_IS_TEMPLATE): New macro.
	(DECL_CLASS_TEMPLATE_P): Likewise.
	(DECL_PRIMARY_TEMPLATE): Likewise.
	(PRIMARY_TEMPLATE_P): Use it.
	(push_template_decl_real): New function.
	(redeclare_class_template): Take new template parameters as
	input.
	(is_specialization_of): New function.
	(comp_template_args): Declare.
	* decl.c (pushtag): Handle friend template classes.
	(xref_tag): Likewise.  Use new calling convention for
	redeclare_class_template.
	* decl2.c (grok_x_components): Handle friend templates.
	* friend.c (is_friend): Use is_specialization_of where
	appropriate.  Deal with friend class templates.
	(make_friend_class): Let a class template be friends with itself.
	* pt.c (comp_template_args): Remove declaration.
	(tsubst_friend_class): New function.
	(push_template_decl_real): New function.
	(push_template_decl): Use it.
	(redeclare_class_template): Adjust for new calling convention.
	(comp_template_args): Give it external linkage.
	(instantiate_class_type): Use tsubst_friend_class to deal
	with friend templates.
	* typeck.c (comptypes): Use comp_template_args, rather than
	expanding it inline.
	* parse.y (component_decl): Handle a nested template type
	like other component type declarations.

From-SVN: r19418
1998-04-26 16:30:11 +00:00
Andreas Schwab
7bf407413f cplus-dem.c (gnu_special): Fix off-by-one bug when checking the length in the name of a virtual table.
* cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
	length in the name of a virtual table.

From-SVN: r19417
1998-04-26 11:41:36 -04:00
Jason Merrill
965cec4178 new
From-SVN: r19416
1998-04-26 11:21:49 -04:00
Richard Henderson
556ccd9bad * alpha.c (print_operand): Don't add 'v' suffix for ALPHA_FPTM_N.
From-SVN: r19415
1998-04-26 07:00:10 -07:00
Mark Mitchell
a2b60a0ea2 pt.c (mabybe_get_template_decl_from_type_decl): New function.
* pt.c (mabybe_get_template_decl_from_type_decl): New function.
	(lookup_template_class): Use it.

From-SVN: r19414
1998-04-26 13:36:02 +00:00
Mark Mitchell
42da2fd81b pt.c (check_explicit_specialization): Handle overloaded constructors correctly.
* pt.c (check_explicit_specialization): Handle overloaded
	constructors correctly.

From-SVN: r19413
1998-04-26 12:34:42 +00:00
Richard Henderson
7101ca0127 Duh, remove the mail header before comitting, please.
From-SVN: r19412
1998-04-25 19:14:45 -07:00
Jeffrey A Law
1206d29493 Bump for snapshot
From-SVN: r19410
1998-04-25 16:11:40 -06:00
Jeffrey A Law
4f242db399 * fold-const.c (fold_convert): Fix typo.
From-SVN: r19409
1998-04-25 10:17:08 -06:00
John Carr
de12be1743 alias.c (alias_invariant): New variable.
* alias.c (alias_invariant): New variable.
	(record_base_value): New argument INVARIANT.
	(memrefs_conflict_p): If a register has an entry in the alias_invariant
	array, try substituting that value for the register.
	* rtl.h: Declare record_base_value.
	* loop.c, unroll.c: Update callers of record_base_value.
	* alias.c (find_base_value, find_base_term): SIGN_EXTEND and
	ZERO_EXTEND do not affect base values.

From-SVN: r19408
1998-04-25 16:09:24 +00:00
Jeffrey A Law
fb2c5c00b8 dbxout.c (dbxout_type): Fix typo.
* dbxout.c (dbxout_type): Fix typo.
        (dbxout_range_type): Another HOST_WIDE_INT_PRINT_DEC fix.

From-SVN: r19407
1998-04-24 14:53:53 -06:00
Jeffrey A Law
fe81dd695d * configure.in: Use CC_FOR_BUILD, not BUILD_CC.
From-SVN: r19406
1998-04-24 08:58:23 -06:00
John Carr
87d1ea7937 expr.c (expand_builtin, [...]): Set MEM_IN_STRUCT_P if the argument is the address of a structure or array.
* expr.c (expand_builtin, case MEMSET): Set MEM_IN_STRUCT_P
	if the argument is the address of a structure or array.
	* configure.in: Enable Haifa scheduler by default for SPARC.

From-SVN: r19405
1998-04-24 13:16:26 +00:00
J"orn Rennecke
e89d3e6faf cse.c (cse_set_around_loop): Don't do optimization when new pseudos are created.
* cse.c (cse_set_around_loop): Don't do optimization when
	new pseudos are created.

From-SVN: r19404
1998-04-24 14:03:42 +01:00
Jeff Law
36d86db060 New test from Joern.
From-SVN: r19403
1998-04-24 05:44:42 -06:00
Jeff Law
e003ca80ce dbxout.c (dbxout_type_fields): Use HOST_WIDE_INT_PRINT_DEC appropriately.
d
        * dbxout.c (dbxout_type_fields): Use HOST_WIDE_INT_PRINT_DEC
        appropriately.
        (dbxout_type_method_1, dbxout_type): Likewise.
        (print_int_cst_octal, print_octal, dbxout_symbol): Likewise.
        (dbxout_type): Fix check for when to print a type range in
        octal vs decimal.

From-SVN: r19402
1998-04-24 04:03:16 -06:00
Jeff Law
442f40184c dbxout.c (dbxout_type_fields): Use HOST_WIDE_INT_PRINT_DEC appropriately.
�
        * dbxout.c (dbxout_type_fields): Use HOST_WIDE_INT_PRINT_DEC
        appropriately.
        (dbxout_type_method_1, dbxout_type): Likewise.
        (print_int_cst_octal, print_octal, dbxout_symbol): Likewise.
        (dbxout_type): Fix check for when to print a type range in
        octal vs decimal.

From-SVN: r19401
1998-04-24 04:03:15 -06:00
J"orn Rennecke
7174c937fb * (gen_shl_and, in case 1): Fix comparison with mask.
From-SVN: r19400
1998-04-24 09:51:10 +01:00
Dave Love
2fe8c4d9b7 * g77.f-torture/compile/980424-0.f: New test.
From-SVN: r19399
1998-04-24 07:58:33 +00:00
Dave Love
489e08401c New test.
From-SVN: r19398
1998-04-24 07:53:34 +00:00
Nick Clifton
0b81275849 Disallow frame pointer as second register in REG+REG pair.
From-SVN: r19397
1998-04-24 06:48:40 +00:00
Kaveh R. Ghazi
753a73c846 Fix a typo:
* c-common.c (check_format_info): Don't check for the 'x' format
	character twice, instead check for 'x' and 'X'

From-SVN: r19396
1998-04-24 06:27:03 +00:00
Manfred Hollstein
b9e5c22082 Makefile.in (libgcc2.ready): Add explicit dependancy from $(STMP_FIXPROTO) to ensure all necessary include...
d
	* Makefile.in (libgcc2.ready): Add explicit dependancy from
	$(STMP_FIXPROTO) to ensure all necessary include files have
	been created and to guarantee proper parallel builds.

From-SVN: r19395
1998-04-23 23:04:07 +00:00
Manfred Hollstein
4a1991b347 Makefile.in (libgcc2.ready): Add explicit dependancy from $(STMP_FIXPROTO) to ensure all necessary include...
�
	* Makefile.in (libgcc2.ready): Add explicit dependancy from
	$(STMP_FIXPROTO) to ensure all necessary include files have
	been created and to guarantee proper parallel builds.

From-SVN: r19394
1998-04-23 23:04:05 +00:00
Jason Merrill
5ffe581dd3 cp-tree.def: Add WRAPPER.
* cp-tree.def: Add WRAPPER.  USER_CONV now only has two ops.
	* cp-tree.h: Add WRAPPER support.
	* call.c (add_candidate): Split out from add_*_candidate fns.
	(build_over_call): Take the candidate instead of function and args.
	Enforce access control here.  Emit overload warnings here.
	(add_warning): New fn.
	(joust): Add WARN parm.  If not set, call add_warning instead of
	printing a warning.  Reenable some warnings.
	(tourney): Pass it.
	(convert_like): Adjust.
	(build_new_op): Adjust.
	(build_new_function_call): Adjust.
	(build_user_type_conversion_1): Adjust.
	(USER_CONV_FN): Adjust.
	* tree.c (build_expr_wrapper, build_expr_ptr_wrapper,
	build_int_wrapper): New fns.

From-SVN: r19393
1998-04-23 18:26:41 -04:00
Jim Wilson
624411284f Fix consistency error reported by Yotam Medini.
* configure: Set CXXFLAGS from CXXFLAGS, not CFLAGS.

From-SVN: r19392
1998-04-23 14:33:41 -07:00
J"orn Rennecke
aec373f1a1 Fix for execute/980205.c failure on SH[123].
* sh.c (sh_expand_prologue, in !SH3E code): Don't push an extra
	register for stdarg functions.
	* sh.h (current_function_varargs): Declare.
	(FUNCTION_ARG): Ignore NAMED for stdarg functions.

From-SVN: r19391
1998-04-23 21:57:06 +01:00
Jim Wilson
f1f53f0b75 Partial fix for problem reported by Don Bowman.
* frame.c, libgcc2.c (stdlib.h, unistd.h): Don't include when
	inhibit_libc is defined.

From-SVN: r19390
1998-04-23 12:57:57 -07:00
Jim Wilson
f5880dbeb0 Fix macro usage error found by Martin von Loewis's checking patch.
* c-aux-info.c (gen_type): Use DECL_NAME only for TYPE_DECL.

From-SVN: r19389
1998-04-23 12:52:46 -07:00
Jim Wilson
8ade151969 Fix gcov mips switch table interaction bug reported to bug-gcc.
* profile.c (tablejump_entry_p): New function.
	(branch_prob): Add code to recognize MIPS tablejump entry branch.
	Use tablejump_entry_p in MIPS and HPPA tablejump checking code.

From-SVN: r19388
1998-04-23 12:10:52 -07:00
Mark Mitchell
2e925bfc0c * pt.c (unify): Fix typo in previous change.
From-SVN: r19387
1998-04-23 17:32:02 +00:00
Nick Clifton
a2538ff76a find_barrier(): Return as soon as a BARRIER insn is found.
From-SVN: r19386
1998-04-23 15:03:25 +00:00
J"orn Rennecke
d0c4285986 sh.c (gen_ashift_hi): Implement right shifts via gen_ashift.
* sh.c (gen_ashift_hi): Implement right shifts via gen_ashift.
	* sh.md (ashrhi3_k, lshrhi3_k, lshrhi3_m, lshrhi3, lshrhi3+1): Delete.

From-SVN: r19385
1998-04-23 14:37:16 +01:00
Jason Merrill
6df38d6ddc * error.c (dump_type_real): Declare canonical_name.
From-SVN: r19384
1998-04-23 05:35:38 -04:00
Jason Merrill
bec17cf31e * typeck.c (comp_target_types): Fix PMFs.
From-SVN: r19383
1998-04-23 05:34:57 -04:00
Mark Mitchell
04a81d94f4 Add prototype
From-SVN: r19380
1998-04-22 21:06:37 +00:00