Commit Graph

25752 Commits

Author SHA1 Message Date
Jason Merrill 512b62fb1b configure.in (i?86-*-beos{pe,elf,}*): Recognize.
* configure.in (i?86-*-beos{pe,elf,}*): Recognize.
        * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
        * i386/beos-elf.h, i386/beos-pe.h: New files.

        * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
        * cross-make (SYSTEM_HEADER_DIR): Define using
        CROSS_SYSTEM_HEADER_DIR.

        * gcc.c (LIBRARY_PATH_ENV): Provide default.
        (process_command): Use it.
        (main): Likewise.  Kill trailing = from env vars.
        (build_search_list): Put it back.
        * collect2.c (main): Use LIBRARY_PATH_ENV.

        * configure.in (GCC_NEED_DECLARATIONS): Add environ.
        * toplev.c: Use NEED_DECLARATION_ENVIRON.

        * tm.texi (Frame Layout): Document SMALL_STACK.
        * c-common.c (c_common_nodes_and_builtins): Check it.

        * system.h: Undef alloca after including glibc's <stdlib.h>,
        if USE_C_ALLOCA is defined.

        * gcc.c (set_input): New fn.
        (main): After all input files are compiled, reset the input file
        info to the first.

        * aclocal.m4 (rindex, index): If already defined, don't attempt
        to redefine.

        * ginclude/varargs.h: (__va_list__): Define ifndef.
        * ginclude/stdarg.h: Likewise.

        * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
        instead of unsigned char.

        * hash.h (true, false, boolean): Undef before enum.

From-SVN: r31366
2000-01-12 19:37:06 -05:00
Jason Merrill 6bb88f3be6 delete stray semicolon
From-SVN: r31365
2000-01-12 19:35:38 -05:00
Kaveh R. Ghazi 80cca0e191 svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
* svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.

	* recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.

	* regclass.c (choose_hard_reg_mode): Likewise.

	* reload.c (find_valid_class, strict_memory_address_p): Likewise.

	* reorg.c (optimize_skip): Wrap prototype in macro conditionals.

From-SVN: r31364
2000-01-13 00:17:33 +00:00
Mark Mitchell 07c88314a3 call.c (convert_class_to_reference): Fix typos.
* call.c (convert_class_to_reference): Fix typos.
	(build_conditional_expr): Handle errors gracefully.
	* class.c (push_nested_class): Likewise.
	* cp-tree.h (VAR_FUNCTION_OR_PARM_DECL_CHECK): New macro.
	(DECL_THIS_EXTERN): Use it.
	(DECL_THIS_STATIC): Likewise.
	* cvt.c (convert_to_void): Handle errors gracefully.
	(build_expr_type_conversion): Likewise.
	* decl.c (maybe_push_decl): Likewise.
	(start_decl_1): Likewise.
	(require_complete_types_for_parms): Likewise.
	* parse.y (structsp): Likewise.
	(base_class): Likewise.
	* parse.c: Regenerated.
	* pt.c (finish_member_template_decl): Likewise.

From-SVN: r31363
2000-01-12 23:27:46 +00:00
Kaveh R. Ghazi 6e090c767a c-common.c: PROTO -> PARAMS.
* c-common.c: PROTO -> PARAMS.
        * c-common.h: Likewise.
        * c-decl.c: Likewise.
        * c-iterate.c: Likewise.
        * c-lang.c: Likewise.
        * c-lex.c: Likewise.
        * c-lex.h: Likewise.
        * c-parse.in: Likewise.
        * c-pragma.c: Likewise.
        * c-pragma.h: Likewise.
        * c-tree.h: Likewise.
        * c-typeck.c: Likewise.
        * objc/objc-act.c: Likewise.
        * objc/objc-act.h: Likewise.

From-SVN: r31362
2000-01-12 22:47:13 +00:00
Mark Mitchell dd42e13519 cp-tree.h (dfs_skip_vbases): New function.
* cp-tree.h (dfs_skip_vbases): New function.
	(find_vbase_instance): Likewise.
	* class.c (determine_primary_base): Allow a nearly empty base to
	serve as a primary base class under the new ABI.
	(get_class_offset_1): Rename to ...
	(dfs_get_class_offset): ... this.  Simplify.  Don't issue error
	messages here.
	(get_class_offset): Use it.  Issue error messages here.
	(dfs_modify_vtables): Rely on dfs_unmarked_real_bases_queue_p to
	find the right copies of virtual bases.
	(fixup_vtable_deltas1): Rename to ...
	(dfs_fixup_vtable_deltas): ... this.  Adjust to handle virtual
	bases as primary bases.
	(fixup_vtable_deltas): Remove.
	(override_one_vtable): Handle virtual bases as primary bases.
	(merge_overrides): Likewise.
	(finish_struct_1): Likewise.
	(dump_class_hierarchy): Dump primary-ness of bases as well.
	* search.c (mark_primary_bases): Use a pre-order traversal to
	handle primary virtual bases.
	(dfs_skip_vbases): New fiunction.
	(expand_upcast_fixups): Adjust to handle primary virtual bases.
	(fixup_virtual_upcast_offsets): Likewise.
	(fixup_all_virtual_upcast_offsets): Likewise.
	(dfs_find_vbase_instances): New function.
	(find_vbase_instance): Likewise.

From-SVN: r31360
2000-01-12 20:56:15 +00:00
Kaveh R. Ghazi e5778b1e84 m88k-protos.h: New file.
* m88k-protos.h: New file.

        * m88k.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * m88k.h: Move prototypes to m88k-protos.h.  Fix compile time warnings.

        * m88k.md: Likewise.

        * tekXD88.h: Likewise.

From-SVN: r31359
2000-01-12 19:50:19 +00:00
Kaveh R. Ghazi 5505f548bb m68k-protos.h: New file.
* m68k-protos.h: New file.

        * m68k.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * m68k.h: Move prototypes to m68k-protos.h.  Fix compile time warnings.

        * mot3300.h: Likewise.

From-SVN: r31358
2000-01-12 19:24:13 +00:00
Richard Earnshaw 394c46fe47 haifa-sched.c (split_edges): Pass edgeset_size as second arg to extract_bitlst.
* haifa-sched.c (split_edges): Pass edgeset_size as second arg to
extract_bitlst.
(extract_bitlist): Declare bitlen.

From-SVN: r31357
2000-01-12 18:48:08 +00:00
Zack Weinberg cd6311ef6e c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the qualifiers don't match at any level of...
* c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
	qualifiers don't match at any level of pointerness.

From-SVN: r31356
2000-01-12 17:35:41 +00:00
Zack Weinberg f668c81cda cccp.c: Accept and ignore -lang-fortran.
* cccp.c: Accept and ignore -lang-fortran.
	* f/lang-specs.h: Pass -lang-fortran to preprocessor.

From-SVN: r31355
2000-01-12 17:34:22 +00:00
Robert Lipe e8fe510b13 sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
2000-01-12  Robert Lipe  <robertl@sco.com>

	* i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.

From-SVN: r31354
2000-01-12 16:32:57 +00:00
Robert Lipe 66959c63a6 * sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
From-SVN: r31353
2000-01-12 16:31:32 +00:00
Bernd Schmidt 9e3a9cf21e Fix suboptimal code generation bug in reload
From-SVN: r31352
2000-01-12 12:40:49 +00:00
Joel Sherrill 02368d6dd4 Makefile.in (CC_FOR_TARGET): Use newlib libraries as well as include files.
* Makefile.in (CC_FOR_TARGET): Use newlib libraries as well
        as include files.

From-SVN: r31351
2000-01-12 04:01:26 -07:00
Jeff Law 76875ef1b2 Add file missed during recent rtems changes.
From-SVN: r31350
2000-01-12 03:47:36 -07:00
Toshiyasu Morita b746d31a11 reorg.c (fill_slots_from_thread): Check modified_in_p before replacing.
* reorg.c (fill_slots_from_thread): Check modified_in_p
        before replacing.

From-SVN: r31349
2000-01-12 03:30:33 -07:00
John Marshall 25e3c7bf27 gcc.texi (Funding, [...]): Format these nodes even if INTERNALS is not set.
* gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
        these nodes even if INTERNALS is not set.

From-SVN: r31348
2000-01-12 03:25:52 -07:00
Nick Burrett 40d7a3fece gcse.c (delete_null_pointer_checks_1): Cope when get_condition cannot determine the condition.
* gcse.c (delete_null_pointer_checks_1): Cope when
	get_condition cannot determine the condition.

From-SVN: r31347
2000-01-12 03:16:04 -07:00
Jeff Law d2f5d3b8d6 Daily bump.
From-SVN: r31346
2000-01-12 01:45:06 -07:00
Mumit Khan 5ffb32944a lex.c (DIR_SEPARATOR): Delete macro.
2000-01-11  Mumit Khan  <khan@xraylith.wisc.edu>

	* lex.c (DIR_SEPARATOR): Delete macro.

From-SVN: r31345
2000-01-12 05:22:42 +00:00
Mumit Khan 51149cc88d jcf-path.c: Delete PATH_SEPARATOR and DIR_SEPARATOR macros.
2000-01-11  Mumit Khan  <khan@xraylith.wisc.edu>

	* jcf-path.c: Delete PATH_SEPARATOR and DIR_SEPARATOR macros.
	* jcf-write.c: Likewise.
	* parse.y: Likewise.
	* parse.c: Regenerate.

From-SVN: r31344
2000-01-12 05:21:12 +00:00
Gabriel Dos Reis b903d81e07 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
Implement automatic line wrapping mode in the g++ front-end.

From-SVN: r31343
2000-01-12 01:54:31 +00:00
Zack Weinberg 40c79d58a3 cpplib.h (struct cpp_options): Change lang_asm to char.
2000-01-11 16:24 -0800  Zack Weinberg  <zack@wolery.cumb.org>

	* cpplib.h (struct cpp_options): Change lang_asm to char.
	Add lang_fortran.
	* cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
	done in cpp_handle_option now.
	(initialize_builtins): Take out special case code used only by
	__STDC_VERSION__.
	(cpp_handle_option): Turn off trigraphs and trigraph warnings
	if -traditional.  Recognize -lang-fortran and set
	lang_fortran, also turn off cplusplus_comments.
	(print_help): Document -lang-fortran.
	* cpplib.c (handle_directive): Ignore `# 123 "file"' if
	lang_asm. Ignore all directives other than `# 123 "file"' if
	CPP_PREPROCESSED.
	(cpp_get_token): If -traditional, don't recognize directives
	unless the # is in column 1.
	(parse_string): If lang_fortran or lang_asm, silently
	terminate strings ('' or "") at end of line.
	Remove unnecessary braces.

From-SVN: r31342
2000-01-12 00:35:36 +00:00
Zack Weinberg 2e76d35c7c * Add self as cpplib maintainer, as requested by Jason
Merrill.  Correct my e-mail address.

From-SVN: r31341
2000-01-12 00:14:46 +00:00
Alexandre Oliva 07570c398b resource.c (mark_referenced_resources): Mark a set strict_low_part as used.
* resource.c (mark_referenced_resources): Mark a set strict_low_part
as used.
* config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
strict_low_part when possible.

From-SVN: r31340
2000-01-11 23:52:07 +00:00
Alexandre Oliva a5bfff0ce6 * gcc.dg/20000111-1.c: New test.
From-SVN: r31339
2000-01-11 23:28:38 +00:00
Kaveh R. Ghazi 3d994c6bef alias.c: PROTO -> PARAMS.
* alias.c: PROTO -> PARAMS.
	* basic-block.h: Likewise.
	* bitmap.c: Likewise.
	* bitmap.h: Likewise.
	* builtins.c: Likewise.
	* c-aux-info.c: Likewise.
	* caller-save.c: Likewise.
	* calls.c: Likewise.

From-SVN: r31338
2000-01-11 23:27:40 +00:00
Kaveh R. Ghazi d0af450df2 Makefile.in (toplev.o): Depend on regs.h.
* Makefile.in (toplev.o): Depend on regs.h.

        * output.h (tdesc_section): Prototype.

        * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.

        * sdbout.c: Include "tm_p.h".

        * toplev.c: Include "regs.h".

From-SVN: r31337
2000-01-11 22:57:39 +00:00
Jason Merrill 203588e7ff fix typos
From-SVN: r31336
2000-01-11 16:23:49 -05:00
Mike Stump 7cdc045ed6 testcase for recent unroll.c fix
From-SVN: r31335
2000-01-11 20:10:46 +00:00
Mike Stump 3951ad49fc * unroll.c (unroll_loop): Add EH support.
From-SVN: r31334
2000-01-11 19:51:20 +00:00
Tom Tromey b5fba37d0f klass.out: New file.
* libjava.lang/klass.out: New file.
	* libjava.lang/klass.java: New file.

From-SVN: r31333
2000-01-11 18:58:49 +00:00
Tom Tromey 6baee4c5c3 natSystem.cc (getpwuid_adaptor): New adaptor for HP/UX.
* java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
	HP/UX.  From David Scott Urban.

From-SVN: r31332
2000-01-11 18:58:13 +00:00
Kaveh R. Ghazi 519104fe1a pa-protos.h: New file.
* pa-protos.h: New file.

        * pa.c: Include recog.h and tm_p.h.
        (compute_zdepwi_operands, compute_movstrsi_length,
        remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
        find_addr_reg, import_milli): Add static prototypes.
        (pa_cpu_string, pa_arch_string): Constify a char*.
        (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
        (read_only_operand): Add argument `mode'.
        (singlemove_string, output_move_double, output_fp_move_double,
        output_block_move, output_and, output_ior, output_ascii,
        remove_useless_addtr_insns, milli_names, output_mul_insn,
        output_div_insn, output_mod_insn, output_arg_descriptor,
        output_cbranch, output_bb, output_bvb, output_dbra, ,
        output_millicode_call, output_call, hppa_encode_label,
        output_parallel_movb, output_parallel_addb): Constify a char*.
        (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
        (output_parallel_addb): Remove extra arg to `constrain_operands'

        * pa.h:  Move all prototypes to pa-protos.h.
        (pa_cpu_string, pa_arch_string): Constify a char*.
        (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.

        * pa.md: Call `function_label_operand' with mode argument.
        Likewise for `read_only_operand'.
        Fix nesting of parens in call to `symbolic_operand'.

From-SVN: r31331
2000-01-11 18:37:11 +00:00
Kaveh R. Ghazi e2d457f192 i860-protos.h: New file.
* i860-protos.h: New file.

        * i860.c: Include tm_p.h.  Add static prototypes.  Fix compile
        time warnings.

        * i860.h: Move prototypes to i860-protos.h.  Fix compile time warnings.

        * i860.md: Likewise.

From-SVN: r31330
2000-01-11 18:19:22 +00:00
Jan Hubicka f90800f836 i386.md (movstrsi expander): Rewrite.
* i386.md (movstrsi expander): Rewrite.
	(movstrsi_1 insn): Deleted.
	(strmovhi, strmovqi expander): New expanders.
	(movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
	* i386.c (x86_single_stringop): New global variable.
	* i386.h (x86_single_stringop): Declare.
	(TARGET_SINGLE_STRINGOP): New macro.

From-SVN: r31329
2000-01-11 18:01:35 +00:00
Clinton Popetz 1e7a71c153 mips.c (mips_va_arg): For EABI...
* config/mips/mips.c (mips_va_arg): For EABI, emit the queued
        integer vararg POSTINCREMENT before the destination of the jump
        for the hard fp case.
        (function_arg_pass_by_reference): Pass a copy of CUM to
	FUNCTION_ARG.

        * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
        for CONSTANT_ADDRESS_P above while loop for subreg.

From-SVN: r31328
2000-01-11 12:42:30 -05:00
Clinton Popetz a249decd13 flow.c (propagate_block): When a prologue/epilogue insn is marked dead...
* flow.c (propagate_block): When a prologue/epilogue insn
        is marked dead, unconditionally clear libcall_is_dead and
        insn_is_dead, and only dump rtl if warnings aren't being
        suppressed.

From-SVN: r31327
2000-01-11 12:26:28 -05:00
Jan Hubicka 7c7ef435b1 i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
* i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
	* i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
	(FIXED_REGISTERS): Set dirflag as fixed.
	(CALL_USED_REGISTERS): Set dirflag as used.
	(REG_ALLOC_ORDER): Set dirflag as last one.
	(DIRFLAG_REG): New macro.
	(MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
	(HI_REGISTER_NAMES): Add dirflag.
	(DEBUF_PRINT_REG): Handle dirflag.
	* i386.md (type attribute): New cld and str types.
	(length_opcode attribute): Set cld and str to 1.
	(memory attribute): Set str to unknown - it is not clear from the
	patterns.
	(pent_np function unit): Prefixed string operations takes 12 cycles
	minimally; cld takes 2 cycles.
	(ppro_uops attribute): Str is "many" and cld is "few".
	(ppro_p0 unit): Handle cld here.
	(k6_alux unit): Handle cld and str types.
	(k6_load unit): It is ocupied by str opcodes.
	(k6_store unit): It is ocupied by str opcodes.
	(athlon_decode): Str is vector decoded.
	(athlon_ieu): Handle str and cld.
	(cld pattern): New.
	(movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
	(movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
	cmpstrsi_nz_1 insn): Do not output cld instruction

From-SVN: r31326
2000-01-11 15:44:34 +00:00
Jeffrey A Law a500c31b2e i386.c (ix86_expand_setcc): Fix typo.
* i386.c (ix86_expand_setcc): Fix typo.
        (ix86_expand_movcc): Similarly.

From-SVN: r31325
2000-01-11 06:37:37 -07:00
Jeff Law bbf27bbe57 Copyright date.
From-SVN: r31324
2000-01-11 06:24:58 -07:00
David Starner ce8f925bbf gcc.texi (G++ and GCC): Add Java and Chill.
* gcc.texi (G++ and GCC): Add Java and Chill.
        (Bug Critera): Don't list languages.

        * gcc.texi (Incompatibilities): No longer claim most C compilers
        are K&R.

        * gcc.texi (G++ and GCC): Update other front-ends list.

From-SVN: r31323
2000-01-11 06:23:59 -07:00
Jeffrey A Law 8613329216 * Band-aid until haifa's bitset implementation is nuked.
* haifa-sched.c (extract_bitlst): New parameter for size of the
        bitset in bits.  All callers changed.  Avoid looking at undefined
        bits in the bitset.
        (edgeset_bitsize): New variable.
        (schedule_region): Initialize edgeset_bitsize.

From-SVN: r31322
2000-01-11 05:50:18 -07:00
Mark Mitchell c6f3ffc624 friend.c (do_friend): Don't resolve scopes when processing template declarations...
* friend.c (do_friend): Don't resolve scopes when processing
	template declarations, even if the qualifying scope doesn't
	involve template parameters.

From-SVN: r31321
2000-01-11 08:54:28 +00:00
Jeff Law da36fb7797 Daily bump.
From-SVN: r31320
2000-01-11 01:45:06 -07:00
Mark Mitchell 376f73bd08 class.c (dfs_modify_vtables_queue_p): Remove.
* class.c (dfs_modify_vtables_queue_p): Remove.
	(modify_all_vtables): Use dfs_unmarked_real_bases_queue_p
	and dfs_marked_real_bases_queue_p instead of
	dfs_modify_vtables_queue_p.

From-SVN: r31319
2000-01-11 06:50:19 +00:00
Zack Weinberg 1e57ec7533 New test - apostrophes, Hollerith constants, and cpp
From-SVN: r31318
2000-01-11 06:06:11 +00:00
Mark Mitchell 2db7017d94 Fix typos in previous change
From-SVN: r31317
2000-01-11 04:18:25 +00:00
Mark Mitchell 9d4c0187c6 class.c (build_vbase_path): Simplify.
* class.c (build_vbase_path): Simplify.
	(dfs_propagate_binfo_offsets): New function.
	(propagate_binfo_offsets): Use it.
	(remove_base_field): Simplify.
	(dfs_set_offset_for_vbases): Remove.
	(dfs_set_offset_for_shared_vbases): New function.
	(dfs_set_offset_for_unshared_vbases): Likewise.
	(layout_virtual_bases): Use them.
	(layout_basetypes): Don't call propagate_binfo_offsets.
	* search.c (dfs_get_vbase_types): Clone completely fresh binfos
	for the vbases.

From-SVN: r31316
2000-01-11 04:13:27 +00:00