Commit Graph

17810 Commits

Author SHA1 Message Date
David Edelsohn
e675f62571 rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.
* rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.
        * rs6000.md (movsi, movdi): Add CONSTANT_P_RTX.
        * rs6000.c (short_cint_operand): Add CONSTANT_P_RTX.
        (u_short_cint_operand): Same.
        (reg_or_cint_operand): Same.
        (logical_operand): Same.
        (input_operand): Same.
        (reg_or_short_operand): Use u_short_cint_operand.

From-SVN: r21323
1998-07-21 08:56:31 -04:00
Richard Henderson
1ca2e73f35 alpha.md (fix_truncdfsi2, [...]): Remove the define_expands, but keep the insns and splits.
* alpha.md (fix_truncdfsi2, fix_truncsfsi2): Remove the define_expands,
        but keep the insns and splits.  Adjust so when the ultimate destination
        is memory, use cvtql.

From-SVN: r21322
1998-07-21 01:57:27 -07:00
Richard Henderson
bd80fbde8e * flow.c (regno_uninitialized): Fixed regs are never uninitialized.
From-SVN: r21321
1998-07-21 01:54:29 -07:00
Jeffrey A Law
50ea20cfa8 gcc.c (do_spec): Call "error" not "warning".
* gcc.c (do_spec): Call "error" not "warning".
Opps.

From-SVN: r21319
1998-07-21 01:52:35 -06:00
Jeff Law
96e30856cf Daily bump.
From-SVN: r21317
1998-07-20 18:45:02 -06:00
Jeffrey A Law
0b9d02c6f6 configure.in: Fix minor problems with gas feature detection code.
* configure.in: Fix minor problems with gas feature detection code.
        * configure: Rebuilt.

From-SVN: r21315
1998-07-20 17:56:42 -06:00
Jeffrey A Law
4089dfabe1 gcc.c (do_spec): Issue a warning for '%[]' usage.
Tue Jul 21 00:31:01 1998  Jeffrey A Law  (law@cygnus.com)
        * gcc.c (do_spec): Issue a warning for '%[]' usage.
        * Undo this change.
        * gcc.c: Delete %[spec] support.
        (do_spec_1, case '('): Likewise.
        (do_spec_1, case '['): Call error.

From-SVN: r21314
1998-07-20 17:38:58 -06:00
Richard Henderson
952fc2ed3a alpha.h (CPP_SPEC): Tidy.
* alpha.h (CPP_SPEC): Tidy.  Hook to cpp_cpu and cpp_subtarget.
        (CPP_SUBTARGET_SPEC): Default to empty string.
        (CPP_AM_*, CPP_IM_*, CPP_CPU_*, CPP_CPU_SPEC): New.
        (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): New.
        * alpha/elf.h (LD_SPEC): Use %(elf_dynamic_linker).
        * alpha/linux-elf.h (SUBTARGET_EXTRA_SPECS): New.
        (LIB_SPEC): Tidy.
        * alpha/linux.h (CPP_PREDEFINES): Tidy.
        * alpha/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): New.
        * alpha/netbsd.h (CPP_PREDEFINES): Tidy.
        * alpha/osf.h (CPP_PREDEFINES): Remove bits subsumed by CPP_CPU_SPEC.
        * alpha/win-nt.h (CPP_PREDEFINES): Likewise.
        * alpha/vsf.h (CPP_PREDEFINES): Likewise.
        (CPP_SUBTARGET_SPEC): New.  Do this instead of overriding CPP_SPEC.
        * alpha/vxworks.h: Likewise.

From-SVN: r21311
1998-07-20 16:04:58 -07:00
Jeff Law
254fcdd2fe Remove accidental checkin.
From-SVN: r21309
1998-07-20 16:36:45 -06:00
Ken Raeburn
e4f5c5d630 mips.md (reload_outsi): Added missing REGNO call.
* mips.md (reload_outsi): Added missing REGNO call.
(smulsi3_highpart, umulsi3_highpart): Provide prototype for function pointer.
(mul_acc_di, mul_acc_64bit_di): Don't use match_op_dup, use another
match_operator and compare the codes.
* mips.h (MASK_DEBUG_E, MASK_DEBUG_I): Set to zero.
* MIPS multiply pattern fixes:
* mips.h (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add union
classes for HI, LO, or HILO plus general registers.
(GENERATE_MADD): Deleted.
* mips.md (mulsi3_mult3): Don't disparage output-LO alternative.  Add
TARGET_MAD to condition.
(mulsi3): Test HAVE_mulsi3_mult3, not specific flags.
(mul_acc_si): Expand GENERATE_MADD here; it's the only use.  Use "*d" for
accumulator, to give preference to LO initially but not during reload.

From-SVN: r21305
1998-07-20 19:53:04 +00:00
Dave Brolley
0d3ba7398c lex.c (mbchar.h): #include it.
1998-07-20  Dave Brolley  <brolley@cygnus.com>
	* lex.c (mbchar.h): #include it.
	(GET_ENVIRONMENT): New macro.
	(init_parse): Set character set based on LANG environment variable.
	(real_yylex): Handle multibyte characters in character literals.
	(real_yylex): Handle multibyte characters in string literals.

From-SVN: r21304
1998-07-20 09:36:43 -04:00
Dave Brolley
56f48ce976 configure.in (enable_c_mbchar): New configure option.
Mon Jul 20 16:16:38 1998  Dave Brolley  <brolley@cygnus.com>
	* configure.in (enable_c_mbchar): New configure option.
	(extra_cpp_objs): Always available now.
	* cexp.y (mbchar.h): #include it.
	(yylex): Handle Multibyte characters in character literals.
	* cccp.c (mbchar.h): #include it.
	(main): Set character set based on LANG environment variable.
	(rescan): Handle multibyte characters in comments.
	(skip_if_group): See above.
	(validate_else): See above.
	(skip_to_end_of_comment): See above.
	(macarg1): See above.
	(discard_comments): See above.
	(rescan): Handle multibyte characters in string and character literals.
	(collect_expansion): See above.
	(skip_quoted_string): See above.
	(macroexpand): See above.
	(macarg1): See above.
	(discard_comments): See above.
	(change_newlines): See above.
	* c-lex.c (mbchar.h): #include it.
	(GET_ENVIRONMENT): New macro.
	(init_lex): Set character set based on LANG environment variable.
	(yylex): Handle multibyte characters in character literals.
	(yylex): Handle multibyte characters in string literals.
	* Makefile.in (mbchar.o): New target.
	(cccp$(exeext)): @extra_cpp_objs@ is always available.
	(cppmain$(exeext)): @extra_cpp_objs@ is always available.
	* mbchar.[ch]: New files for multibyte character handling.

From-SVN: r21303
1998-07-20 09:35:38 -04:00
David S. Miller
689fcba861 jump.c (jump_optimize): When simplifying noop moves and PUSH_ROUNDING...
* jump.c (jump_optimize): When simplifying noop moves and
	PUSH_ROUNDING, fix thinko so we use same criterion for identifying
	the PUSHes to rewrite in second loop as we did in the first.

From-SVN: r21302
1998-07-19 19:20:07 -07:00
Jeff Law
b7863d43dc Daily bump.
From-SVN: r21301
1998-07-19 18:45:31 -06:00
Jason Merrill
160387c4a7 new
From-SVN: r21300
1998-07-19 20:29:35 -04:00
Robert Lipe
6288717fb3 config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
8
	* config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
	(*-pc-unixware7) Add detection for Pentium II, Pentium Pro.

From-SVN: r21297
1998-07-19 18:00:54 -06:00
Robert Lipe
7f1937c125 config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
@
	* config.guess: (*-pc-sco3.2v5) Add detection for Pentium II.
	(*-pc-unixware7) Add detection for Pentium II, Pentium Pro.

From-SVN: r21296
1998-07-19 18:00:52 -06:00
Craig Burley
530f70105f lang-options.h: Fix up doc strings.
* lang-options.h: Fix up doc strings.
        Remove the unimplemented -fdcp-intrinsics-* options.
        * str-1t.fin: Change mixed-case spelling of `GoTo' from
        `Goto'.

From-SVN: r21292
1998-07-19 17:55:30 -06:00
Jason Merrill
e13a41239f lex.c (do_identifier): Look for class value even if we don't have a global value.
* lex.c (do_identifier): Look for class value even if we don't
	have a global value.  Do implicit declaration if parsing is 2.
	* semantics.c (finish_call_expr): Pass 2 if we're doing Koenig
	lookup.

From-SVN: r21291
1998-07-19 19:47:18 -04:00
Mark Mitchell
077e7015e0 decl.c (pushtag): Revert previous change.
* decl.c (pushtag): Revert previous change.
	* pt.c (lookup_template_class): Don't put out debugging
	information for types that use template parameters.

From-SVN: r21286
1998-07-19 18:55:38 +00:00
Mark Mitchell
d92e4d8cba decl.c (pushtag): Don't put out debugging information for compiler-generated typedefs.
* decl.c (pushtag): Don't put out debugging information for
	compiler-generated typedefs.

From-SVN: r21285
1998-07-19 18:00:47 +00:00
Mark Mitchell
3df095e2f1 error.c (dump_type_real): Don't crash when presented with intQI_type_node or the like.
* error.c (dump_type_real): Don't crash when presented with
	intQI_type_node or the like.

From-SVN: r21284
1998-07-19 17:54:13 +00:00
Mark Mitchell
8014a339af semantics.c (finish_translation_unit): Fix spelling error in comment.
* semantics.c (finish_translation_unit): Fix spelling error in
	comment.

From-SVN: r21283
1998-07-19 17:52:17 +00:00
Kaveh R. Ghazi
d94f5c58a8 This fixes a problem when using KNR compilers.
* cplus-dem.c (demangle_nested_args): Make function definition
        static to match the prototype.

From-SVN: r21281
1998-07-19 05:28:57 +00:00
Dave Love
df192962a2 Makefile.in (all): Depend on s-libe77, not e77.
1998-07-19  Dave Love  <d.love@dl.ac.uk>
	* Makefile.in (all): Depend on s-libe77, not e77.
	(.PHONY): Remove e77.

From-SVN: r21280
1998-07-19 04:54:39 +00:00
Dave Love
affb86c1b4 (all): Depend on s-libe77, not e77.
(.PHONY): Remove e77.

From-SVN: r21279
1998-07-19 04:54:06 +00:00
Jeff Law
9715310372 Daily bump.
From-SVN: r21276
1998-07-18 18:45:01 -06:00
Marc Lehmann
2ada2bd6bf Fix typo.
From-SVN: r21275
1998-07-18 15:48:44 +00:00
Mark Mitchell
4bf6f6a255 *** empty log message ***
From-SVN: r21274
1998-07-18 15:25:20 +00:00
Jason Merrill
0c64a9cab4 decl.c (lookup_name_real): Pull out single function here.
* decl.c (lookup_name_real): Pull out single function here.
	(select_decl): Not here.
	(unqualified_namespace_lookup): Use CP_DECL_CONTEXT.

From-SVN: r21268
1998-07-17 22:26:44 -04:00
Jeff Law
f193b4b996 Daily bump.
From-SVN: r21267
1998-07-17 18:45:02 -06:00
Jason Merrill
6b945830ff * decl.c (qualify_lookup): Tweak again.
From-SVN: r21266
1998-07-17 13:19:31 -04:00
Jason Merrill
c3baf4b55a pt.c (lookup_template_class): Don't mess with the context of the instantiation.
* pt.c (lookup_template_class): Don't mess with the context of the
	instantiation.
	* decl2.c (current_decl_namespace): Remove special handling for
	templates.

From-SVN: r21265
1998-07-17 12:29:25 -04:00
Richard Henderson
402cdad5e7 alloca.c: Respect USE_C_ALLOCA.
* alloca.c: Respect USE_C_ALLOCA.
        * gencheck.c (xmalloc): Ignore __GNUC__ for definition.
        * gengenrtl.c (xmalloc): Likewise.

From-SVN: r21264
1998-07-17 08:00:11 -07:00
Richard Henderson
45f97e2e08 loop.h (struct induction): Add no_const_addval.
* loop.h (struct induction): Add no_const_addval.
        * loop.c (the_movables, reg_address_cost): New variables.
        (init_loop): Init reg_address_cost.
        (loop_optimize): Call end_alias_analysis.
        (scan_loop): Init the_movables.
        (record_giv): Init induction->no_const_addval.
        (basic_induction_var) [PLUS]: Use rtx_equal_p instead of ==.
        [REG]: Rearrange loop search test to catch more cases.
        (general_induction_var): Return success not benefit; take an extra
        argument for that.  Change all callers.
        (simplify_giv_expr) [PLUS]: Always combine invariants.  Use sge_plus.
        [MULT]: Use rtx_equal_p instead of ==.  Combine simple invariants.
        [default]: Search the_movables for additional combinations.
        (sge_plus_constant, sge_plus): New functions.
        (express_from_1): New function.
        (express_from): Always define.  Rewrite using express_from_1.
        (combine_givs_p): Handle more cases.  Ignore address cost.
        (cmp_combine_givs_stats): New function.
        (combine_givs_used_once, combine_givs_benefit_from): New functions.
        (combine_givs): Rewrite to do best-fit combination.
        * fold-const.c (operand_equal_p): Handle RTL_EXPR.
        (fold): Do a complete (A*C)+(B*C) association check.

From-SVN: r21263
1998-07-17 07:46:06 -07:00
Nick Clifton
d4c011bca5 mark as expected failure
From-SVN: r21262
1998-07-17 14:20:47 +00:00
Jim Wilson
07362cb321 Fix some sparc complex testsuite failures.
* function.c (fixup_var_refs_insns): Handle CLOBBER of a CONCAT.

From-SVN: r21251
1998-07-17 04:22:40 -07:00
Jeffrey A Law
2fed503d0e * mn10300.c (MODES_TIEABLE_P): Fix typo.
From-SVN: r21249
1998-07-17 04:53:58 -06:00
Jason Merrill
c5a6fc4557 pt.c (tsubst, [...]): Fix getting complete args for a member template specialization.
* pt.c (tsubst, case FUNCTION_DECL): Fix getting complete args for
	a member template specialization.
	* tree.c (ovl_member): Use decls_match to compare functions.
	* decl.c (decls_match): Check the context of a function.

From-SVN: r21248
1998-07-17 02:19:07 -04:00
Richard Earnshaw
f022f9bcfc tree.c (valid_machine_attribute): Only create a new type variant if there is a decl to use it.
* tree.c (valid_machine_attribute): Only create a new type variant if
there is a decl to use it.

From-SVN: r21247
1998-07-17 03:34:34 +00:00
Jason Merrill
03d8299153 parse.y (primary): Use notype_unqualified_id instead of IDENTIFIER in Koenig lookup support rules.
* parse.y (primary): Use notype_unqualified_id instead of IDENTIFIER
	in Koenig lookup support rules.
	* semantics.c (finish_call_expr): Handle the new cases.
	* typeck.c (build_x_function_call): Handle overloaded methods.
	* decl.c (grokvardecl): Don't call build_static_name for extern "C".

From-SVN: r21245
1998-07-16 22:48:08 -04:00
Jason Merrill
32dd8ef8f3 tmap.cc: Use less<int>.
* tmap.cc: Use less<int>.
	* tlist.cc (main): Use remove_if.

From-SVN: r21244
1998-07-16 21:30:01 -04:00
Jeff Law
2768c658b0 Daily bump.
From-SVN: r21241
1998-07-16 18:45:02 -06:00
Mark Mitchell
c68c56f727 semantics.c (finish_object_call_expr): Revert previous change.
1998-07-16  Mark Mitchell  <mark@markmitchell.com>
	* semantics.c (finish_object_call_expr): Revert previous change.
	* call.c (build_new_method_call): Likewise.  Instead, convert
	TYPE_DECLs to IDENTIFIERs here, in the presence of templates.

From-SVN: r21240
1998-07-16 23:38:43 +00:00
Jeff Law
b5044593c9 (ffecom_finish_symbol_transform_): Revert change of 1998-05-23...
* (ffecom_finish_symbol_transform_): Revert change
	of 1998-05-23, as it was too aggressive, in that it
	prevented transformation of (used) functions before
	primary code generation.

From-SVN: r21236
1998-07-16 16:53:02 -06:00
Craig Burley
c30922357a (ffecom_finish_symbol_transform_): Revert change of 1998-05-23...
d
	* (ffecom_finish_symbol_transform_): Revert change
	of 1998-05-23, as it was too aggressive, in that it
	prevented transformation of (used) functions before
	primary code generation.

From-SVN: r21235
1998-07-16 16:53:01 -06:00
Craig Burley
75750f9c8a (ffecom_finish_symbol_transform_): Revert change of 1998-05-23...
�
	* (ffecom_finish_symbol_transform_): Revert change
	of 1998-05-23, as it was too aggressive, in that it
	prevented transformation of (used) functions before
	primary code generation.

From-SVN: r21234
1998-07-16 16:52:59 -06:00
Jeff Law
db7fe2273c Updates from craig.
From-SVN: r21233
1998-07-16 16:51:15 -06:00
Nick Clifton
1ccb8f57d5 gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.
8
	* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
	a suffix.

From-SVN: r21229
1998-07-16 16:45:49 -06:00
Nick Clifton
4249dc2be3 gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.
�
	* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
	a suffix.

From-SVN: r21228
1998-07-16 16:45:47 -06:00