Commit Graph

16445 Commits

Author SHA1 Message Date
Joern Rennecke ba70e85a77 Formatting fix.
From-SVN: r19345
1998-04-20 15:43:51 +01:00
J"orn Rennecke 9570762777 final.c (shorten_branches, [...]): Move code to free label_align...
* final.c (shorten_branches, init_insn_lengths): Move code
	to free label_align, uid_shuid, insn_lengths, insn_addresses
	and uid_align from the former function into the latter one;
	Add code to clear these variables.
	* sh.h (label_align): Remove declaration.

From-SVN: r19344
1998-04-20 15:40:04 +01:00
Michael Meissner 2b6ede1da6 Add extra protection in case strrchr already defined
From-SVN: r19343
1998-04-20 13:30:32 +00:00
Michael Meissner 763d7ce894 Fix warning when compiling g++.o
From-SVN: r19342
1998-04-20 13:27:00 +00:00
Michael Meissner f55b1ca872 Switch to strrchr if available instead of rindex
From-SVN: r19341
1998-04-20 13:11:38 +00:00
Michael Meissner 0cd355fe9d For movsf/movdf splits, let movsi define_split handle subword moves
From-SVN: r19340
1998-04-20 11:54:40 +00:00
J"orn Rennecke a07987797e Fix some problems that resulted in assmebler messages 'Error: pcrel too far'
Fix some problems that resulted in assmebler messages 'Error: pcrel too far'
	* sh.c (find_barrier): Fix bug in ADDR_DIFF_VEC handling.
	(split_branches): Call init_insn_lengths.

From-SVN: r19339
1998-04-20 11:59:18 +01:00
Michael Meissner ced8dd8ccd Include expr.h to get the change_address prototype declared.
From-SVN: r19338
1998-04-20 07:41:41 +00:00
H.J. Lu f37eb5cb09 reg-stack.c (subst_asm_stack_regs): Change to return the last new insn generated by this function.
* reg-stack.c (subst_asm_stack_regs): Change to return the last
	new insn generated by this function.
	(subst_stack_regs): Likewise.
	(convert_regs): Record the last newly generated insn and use
	it for change_stack () instead of INSN.

From-SVN: r19328
1998-04-19 18:01:15 -06:00
Jeff Law 0620228c24 New test from HJ.
From-SVN: r19326
1998-04-19 17:40:30 -06:00
H.J. Lu f77cc4ccb1 * isgetline.cc (istream::get): Fix a typo.
From-SVN: r19314
1998-04-19 15:14:32 -06:00
Dave Love 39339a62dc * g77.f-torture/compile/980419-2.f (main): New test.
From-SVN: r19301
1998-04-19 11:52:15 +00:00
Dave Love d9695db87f New test.
From-SVN: r19300
1998-04-19 11:49:56 +00:00
Manfred Hollstein 08fbf99d63 fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files.
a
	* fix-header.c (enum special_file): Undefine enumerators if they
	are already defined by include files.
	* fixproto (rel_source_file in unistd.h stdlib.h): Prefix file protection
	macro with '__' to not pollute user namespace.

From-SVN: r19298
1998-04-19 06:48:08 +00:00
Manfred Hollstein 4f1817ee4f fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files.
d
	* fix-header.c (enum special_file): Undefine enumerators if they
	are already defined by include files.
	* fixproto (rel_source_file in unistd.h stdlib.h): Prefix file protection
	macro with '__' to not pollute user namespace.

From-SVN: r19297
1998-04-19 06:48:07 +00:00
Manfred Hollstein 49fb83823e fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files.
�
	* fix-header.c (enum special_file): Undefine enumerators if they
	are already defined by include files.
	* fixproto (rel_source_file in unistd.h stdlib.h): Prefix file protection
	macro with '__' to not pollute user namespace.

From-SVN: r19296
1998-04-19 06:48:05 +00:00
Dave Love bddcc8a6dc 970125-0.f: New test.
* g77.f-torture/compile/970125-0.f: New test.
        * g77.f-torture/compile/980419-1.f: New test.

From-SVN: r19295
1998-04-19 05:59:43 +00:00
Dave Love 06b0a933a2 New File.
From-SVN: r19294
1998-04-19 05:54:09 +00:00
Richard Henderson c6a754f2d7 * haifa-sched.c (queue_to_ready): Fix typo in prototype.
From-SVN: r19293
1998-04-18 19:45:34 -07:00
Jeffrey A Law 399cc1480c Bump for snapshot
From-SVN: r19291
1998-04-18 17:52:37 -06:00
Jeff Law 7beb63818c i386.md (fix_truncsfdi2+[123]): Add + to operand 1 constraints.
* i386.md (fix_truncsfdi2+[123]): Add + to operand 1 constraints.

From-SVN: r19287
1998-04-18 16:19:52 -06:00
Jeff Law 07415a177e i386.md (fix_truncsfdi2+[123]): Add + to operand 1 constraints.
* i386.md (fix_truncsfdi2+[123]): Add + to operand 1 constraints.

From-SVN: r19286
1998-04-18 16:19:50 -06:00
Jim Wilson 84b77fbac2 Patch from Ulrich to fix problems with default CPU defines.
* i386.h (CPP_CPU_DEFAULT): Renamed to CPP_CPU_DEFAULT_SPEC.
	Add missing -Dpentium* options.
	(CPP_CPU_SPEC): Delete redundant definition.  Include cpp_cpu_default
	instead of CPP_CPU_DEFAULT.
	(EXTRA_SPECS): Add entry for cpp_cpu_default.

From-SVN: r19284
1998-04-18 11:36:11 -07:00
David Edelsohn db72d7a1d6 rs6000.md (floatsidf2_loadaddr): rs6000_fpmem_offset will be negative in a stackless frame.
* rs6000.md (floatsidf2_loadaddr): rs6000_fpmem_offset will be
        negative in a stackless frame.
        * rs6000.c (rs6000_stack_info): Don't include fixed-size link area
        in stackless frame size.  Support 64-bit stackless frame size.
        Combine fpmem offset calculations and don't add total_size to
        offset if not pushing a stack frame.

From-SVN: r19283
1998-04-18 12:16:02 -04:00
Jim Wilson a1ecb5ca07 Fix regmove typos spotted by H.J. Lu.
* regmove.c (fixup_match_1): In three places, in flag_exceptions
	check, change p to q.

From-SVN: r19282
1998-04-18 08:42:48 -07:00
Jim Wilson a2a05b0a35 Patches to make g++/g77 give useful error when no files are given.
* gcc.c (lang_specific_driver): Add new parm type to prototype.
	(added_libraries): New file scope static variable.
	(process_command): Initialize added_libraries.  Pass it to
	lang_specific_driver.
	(main): Use added_libraries in check for no input files.

From-SVN: r19281
1998-04-18 08:31:36 -07:00
Jim Wilson ea16ab474b Patches to give useful error when no files given.
* g77spec.c (lang_specific_driver): New argument in_added_libraries.
	New local added_libraries.  Increment count when add library to
	arglist.

From-SVN: r19280
1998-04-18 08:30:09 -07:00
Jim Wilson 8491463400 Patches to give useful error when no files specified.
* g++spec.c (lang_specific_driver): New argument in_added_libraries.
	New local added_libraries.  Increment count when add library to
	arglist.

From-SVN: r19279
1998-04-18 08:26:22 -07:00
John Carr 284d86e9f0 sparc.c, [...]: Many changes related to V9 code generation.
Sat Apr 18 01:23:11 1998  John Carr  <jfc@mit.edu>
        * sparc.c, sparc.h, sparc.md, sol2.h: Many changes related to V9
        code generation.  Use 64 bit instructions in 32 bit mode when
        possible.  Use V9 return instruction.  UltraSPARC optimizations.
        * sparc.h: Change gen_rtx (CODE to gen_rtx_CODE (.

From-SVN: r19278
1998-04-17 18:24:59 -07:00
Mark Mitchell f4c81730d8 New test
From-SVN: r19277
1998-04-18 01:12:22 +00:00
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