Commit Graph

34640 Commits

Author SHA1 Message Date
Alan Modra
6619e96c70 pa.c (force_mode): New function.
* pa.c (force_mode): New function.
	(emit_move_sequence): Use it instead of generating new rtx_REGs.

From-SVN: r41353
2001-04-14 18:12:31 +09:30
Alexandre Oliva
92547f1261 Update copyright notice
From-SVN: r41352
2001-04-14 07:45:10 +00:00
Alexandre Oliva
27345bb5c7 Update copyright notice
From-SVN: r41351
2001-04-14 07:26:52 +00:00
Alexandre Oliva
4f28f0587a Whitespace fix
From-SVN: r41350
2001-04-14 07:21:07 +00:00
GCC Administrator
382e8461c6 Daily bump.
From-SVN: r41348
2001-04-14 07:16:09 +00:00
Jim Wilson
25250265ba Fix linux kernel -foptimize-sibling-calls miscompilation
Fix linux kernel -foptimize-sibling-calls miscompilation
	* config/ia64/ia64.c (ia64_expand_epilogue): Emit alloc if sibcall_p.
	(first_instruction): New static variable.
	(rtx_needs_barrier): Return 1 for alloc.
	(init_insn_group_barriers): Set first_instruction.
	(rws_sum): Delete duplicate definition.
	(group_barrier_needed_p): Return 0 when first_instruction true.
	(safe_group_barrier_needed_p): Save and restore first_instruction
	around group_barrier_needed_p call.

From-SVN: r41347
2001-04-13 20:49:46 -07:00
Loren J. Rittle
b215b52e59 expr.h (enum libfunc_index): Add LTI_memmove.
* expr.h (enum libfunc_index): Add LTI_memmove.
        (memmove_libfunc): Define macro.
        * optabs.c (init_optabs): Initialize memmove_libfunc.
        * expr.c (expand_assignment): Use memmove_libfunc instead of
        memcpy_libfunc.

From-SVN: r41345
2001-04-13 21:39:22 -06:00
Alan Modra
7eb07bdb50 pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM fp mode addresses.
2001-04-13  Alan Modra  <alan@linuxcare.com.au>

        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM
        fp mode addresses.

From-SVN: r41343
2001-04-13 15:47:07 -06:00
Mark Mitchell
530ec96d29 cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
* cp-tree.h (DELTA2_FROM_PTRMEMFUNC): Remove.
	(expand_ptremfunc_cst): Change prototype.
	(delta2_from_ptrmemfunc): Remove.
	* expr.c (cplus_expand_constant): Adjust call to
	expand_ptrmemfunc_cst.
	* typeck.c (build_ptrmemfunc1): Simplify.
	(build_ptrmemfunc): Make sure that casting a PTRMEM_CST still
	results in a constant.
	(expand_ptrmemfunc_cst): Remove idx and delta2 parameters.
	(delta2_from_ptrmemfunc): Remove.
	(pfn_from_ptrmemfunc): Adjust call to expand_ptrmemfunc_cst.

From-SVN: r41341
2001-04-13 21:16:42 +00:00
Kaveh R. Ghazi
2840aebf08 Makefile.in (reg-stack.o): Depend on reload.h.
* Makefile.in (reg-stack.o): Depend on reload.h.
	(insn-attrtab.o): Depend on flags.h.

	* genattrtab (main): Include flags.h in insn-attrtab.c.

	* reg-stack.c: Include reload.h.

	* sparc.h (flag_pic): Delete redundant declaration.

	* output.h (flag_pic): Likewise.

	* tree.h (pedantic): Likewise.

From-SVN: r41340
2001-04-13 21:10:16 +00:00
Kaveh R. Ghazi
8461e98455 Makefile.in (toplev.o, [...]): Depend on reload.h
* Makefile.in (toplev.o, jump.o, regmove.o): Depend on reload.h

	* jump.c, regmove.c, toplev.c: Include reload.h.

	* reload.h (reload_cse_regs): Declare.

	* rtl.h (find_equiv_reg, operands_match_p, safe_from_earlyclobber,
	reload_cse_regs, init_reload, mark_home_live, reload,
	init_caller_save): Delete redundant prototypes.

From-SVN: r41338
2001-04-13 16:41:16 +00:00
Kaveh R. Ghazi
0829d244e7 Makefile.in (ssa.o, regclass.o): Depend on $(EXPR_H).
* Makefile.in (ssa.o, regclass.o): Depend on $(EXPR_H).

	* regclass.c, ssa.c: Include expr.h.

	* rtl.h (memory_address, force_reg, emit_queue, emit_move_insn,
	gen_move_insn): Delete redundant declarations.

From-SVN: r41337
2001-04-13 16:34:41 +00:00
Franz Sirl
78faa32d14 Makefile.in (STAGE1_CFLAGS): Pass down.
2000-04-13  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
        * Makefile.in (STAGE1_CFLAGS): Pass down.

gcc/
        * Makefile.in (CFLAGS, BOOT_CFLAGS): Partly revert 2000-10-27 patch.
        (stage1_build): Instead pass down STAGE1_CFLAGS here. Pass down.
        MAKEINFO and MAKEINFOFLAGS too.
        (stage4_build): Correctly order -B flags.

From-SVN: r41335
2001-04-13 10:14:47 +00:00
Phil Edwards
948421e0c9 stl_algobase.h (equal): Use EqualOpConcept instead of EqualityComparableConcept.
2001-04-13  Phil Edwards  <pme@sources.redhat.com>

	* include/bits/stl_algobase.h (equal):  Use EqualOpConcept instead
	of EqualityComparableConcept.

From-SVN: r41334
2001-04-13 09:28:56 +00:00
Phil Edwards
62bb0c97fd boost_concept_check.h: Uglify, fork from Boost.
2001-04-13  Phil Edwards  <pme@sources.redhat.com>

	* include/bits/boost_concept_check.h:  Uglify, fork from Boost.
	* include/bits/concept_check.h:  Uglify.
	* include/bits/stl_algo.h:  Likewise.
	* include/bits/stl_algobase.h:  Likewise.
	* include/bits/stl_deque.h:  Likewise.
	* include/bits/stl_heap.h:  Likewise.
	* include/bits/stl_iterator_base_funcs.h:  Likewise.
	* include/bits/stl_list.h:  Likewise.
	* include/bits/stl_map.h:  Likewise.
	* include/bits/stl_multimap.h:  Likewise.
	* include/bits/stl_multiset.h:  Likewise.
	* include/bits/stl_numeric.h:  Likewise.
	* include/bits/stl_queue.h:  Likewise.
	* include/bits/stl_set.h:  Likewise.
	* include/bits/stl_stack.h:  Likewise.
	* include/bits/stl_vector.h:  Likewise.
	* include/ext/hash_map:  Likewise.
	* include/ext/hash_set:  Likewise.
	* include/ext/slist:  Likewise.

From-SVN: r41333
2001-04-13 09:03:18 +00:00
GCC Administrator
1f212504cf Daily bump.
From-SVN: r41331
2001-04-13 07:16:13 +00:00
Alan Modra
831c176364 pa.c: Formatting and white space fixes throughout file.
* pa.c: Formatting and white space fixes throughout file.
	(zdepi_cint_p): Describe zdepi insn.

From-SVN: r41330
2001-04-13 15:29:10 +09:30
Alan Modra
fbdd633b87 pa.c (hppa_init_pic_save): Set rtx_unchanging for PIC_OFFSET_TABLE_SAVE_RTX.
* pa.c (hppa_init_pic_save): Set rtx_unchanging for
	PIC_OFFSET_TABLE_SAVE_RTX.

From-SVN: r41329
2001-04-13 15:21:45 +09:30
Alan Modra
e0c556d31f pa.c (uint32_operand): Don't use long constant >= 2^32.
* pa.c (uint32_operand): Don't use long constant >= 2^32.
	(emit_move_sequence): Use HOST_WIDE_INT constants.  Don't worry
	about 32->64 bit sign extension if 32 bit HOST_WIDE_INTs.
	(compute_movstrsi_length): Make `align' unsigned to avoid warning.
	(output_64bit_and): Use plain `int's for shift counts.
	(output_64bit_ior): Likewise.
	(function_arg_partial_nregs): Use unsigned vars to avoid warnings.
	* pa.h (CONST_OK_FOR_LETTER_P): Use HOST_WIDE_INT constants for case
	`N', and simplify.

From-SVN: r41328
2001-04-13 15:18:20 +09:30
Alan Modra
cdbff0ab8c config.guess: Add hppa64-linux support.
* config.guess: Add hppa64-linux support.  Note for next import that
	this is already in the master file.
	* configure.in: Likewise.  Accept `parisc' alias for `hppa'.

From-SVN: r41327
2001-04-13 15:11:45 +09:30
Alan Modra
8d913d9996 pa-hpux10.h (NEW_HP_ASSEMBLER): Define to 1.
* pa-hpux10.h (NEW_HP_ASSEMBLER): Define to 1.
	* pa-hpux11.h (NEW_HP_ASSEMBLER): Likewise.
	* pa.h (LEGITIMATE_CONSTANT_P) Collapse two defines depending on
	NEW_HP_ASSEMBLER into one.  Kill warnings.

From-SVN: r41326
2001-04-13 15:04:06 +09:30
Alan Modra
c21a23721b pa-gas.h: Delete file.
* pa-gas.h: Delete file.
	* config.gcc: Match `parisc' as well as `hppa' for cpu_type=pa.
	Add new targets hppa*64*-*-linux* and parisc*64*-*-linux*.  Update
	hppa*-*-linux*.  For all pa targets, remove pa/gas.h from tm_file,
	instead setting MASK_GAS | MASK_JUMP_IN_DELAY in target_cpu_default2.

From-SVN: r41325
2001-04-13 14:57:47 +09:30
Alan Modra
48bd775831 mill32.S: New file.
* config/pa/mill32.S: New file.
	* config/pa/mill64.S: New file.
	* config/pa/t-linux (LIBGCC1, CROSS_LIBGCC1, LIB1ASMFUNCS,
	LIB1ASMSRC, CRTSTUFF_T_CFLAGS_S, TARGET_LIBGCC2_CFLAGS): Define.
	* config/pa/t-linux64: New file.
	* config/pa/t-pa64 (CROSS_LIBGCC1): Change to libgcc1-asm.a
	(LIB1ASMFUNCS, LIB1ASMSRC): Define.
	(TARGET_LIBGCC2_CFLAGS): Add -Dpa64=1 -DELF=1.

From-SVN: r41324
2001-04-13 14:49:02 +09:30
Alan Modra
a7e184fc5f Add new files.
From-SVN: r41323
2001-04-13 14:43:43 +09:30
Alan Modra
e25724d884 elfos.h (SELECT_SECTION): Undef before defining.
* elfos.h (SELECT_SECTION): Undef before defining.
	* pa-linux.h (LINUX_DEFAULT_ELF, PTRDIFF_TYPE, CPP_SPEC): Remove.
	(LIB_SPEC): Remove -lmilli.
	(DBX_REGISTER_NUMBER): Remove.
	(PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
	(DWARF2_UNWIND_INFO, ASM_SPEC, LINK_SPEC, FUNCTION_OK_FOR_SIBCALL,
	NO_PROFILE_COUNTERS, SELECT_RTX_SECTION, INCOMING_RETURN_ADDR_RTX,
	DWARF_FRAME_RETURN_COLUMN, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
	DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_FILE_START,
	ASM_OUTPUT_DEF, ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
	ASM_OUTPUT_LABEL, ASM_GLOBALIZE_LABEL, ASM_DECLARE_FUNCTION_NAME,
	TARGET_GAS): Define.
	* pa.c (output_arg_descriptor): Disable for TARGET_ELF32.
	(function_arg): If TARGET_ELF32, pass fp args in both general and fp
	regs if we don't have a prototype.
	* pa.md (canonicalize_funcptr_for_compare): Not for TARGET_ELF32.
	* pa.h (TARGET_ELF32): Default to 0 if undefined.
	(EH_RETURN_DATA_REGNO, EH_RETURN_STACKADJ_RTX,
	EH_RETURN_HANDLER_RTX): Define.
	* pa32-regs.h (DBX_REGISTER_NUMBER): Remove unnecessary test.
	(DWARF_FRAME_REGNUM): Define.
	* pa64-regs.h (DWARF_FRAME_REGNUM): Define.
	* pa32-linux.h: New file.
	* pa64-linux.h: New file.

From-SVN: r41322
2001-04-13 14:42:12 +09:30
Alan Modra
380109278c pa-64.h (WCHAR_TYPE, [...]): Define.
* pa-64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
	(ASM_OUTPUT_DOUBLE_INT): Format, protect macro with do..while.
	(LINK_SPEC, LIB_SPEC, MD_EXEC_PREFIX, MD_STARTFILE_PREFIX,
	NEW_HP_ASSEMBLER, ASM_FILE_START, OBJECT_FORMAT_ELF,
	DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_FORMAT,
	DWARF2_ASM_LINE_DEBUG_INFO, USE_CONST_SECTION, CONST_SECTION_ASM_OP,
	CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
	FINI_SECTION_ASM_OP, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
	READONLY_DATA_SECTION, CONST_SECTION_FUNCTION, CTORS_SECTION_FUNCTION,
	DTORS_SECTION_FUNCTION, ASM_OUTPUT_SECTION_NAME, MAKE_DECL_ONE_ONLY,
	UNIQUE_SECTION_P, UNIQUE_SECTION, INT_ASM_OP, ASM_OUTPUT_CONSTRUCTOR,
	ASM_OUTPUT_DESTRUCTOR, TYPE_ASM_OP, SIZE_ASM_OP, ASM_WEAKEN_LABEL,
	TYPE_OPERAND_FMT, ASM_DECLARE_RESULT): Move to..
	* pa64-hpux.h: New file.
	(ASM_FILE_START): Correct typo.
	(PREFERRED_DEBUGGING_FORMAT): Rename to PREFERRED_DEBUGGING_TYPE.
	* config.gcc: Modify for above.

From-SVN: r41321
2001-04-13 14:36:32 +09:30
John Wehle
35bb0780fc jump.c (jump_optimize_1): Don't delete dead stores here.
* jump.c (jump_optimize_1): Don't delete dead stores here.
	* toplev.c (rest_of_compilation): Call delete_trivially_dead_insns
	prior to running jump optimize before cse2.

From-SVN: r41320
2001-04-13 04:10:56 +00:00
Richard Henderson
1a5428f737 Makefile.in (regmove.o): Depend on except.h.
* Makefile.in (regmove.o): Depend on except.h.
        * remove.c: Include it.

From-SVN: r41319
2001-04-12 19:52:24 -07:00
Gabriel Dos Reis
d72274e411 set_operators.cc: Just try to compile.
* testsuite/23_containers/set_operators.cc: Just try to compile.
	Mark as XFAIL.
	* testsuite/23_containers/map_operators.cc: Same.

From-SVN: r41318
2001-04-13 02:14:11 +00:00
Stan Shebs
4bd34c3985 objc-act.c: Remove all code ifdefed with the never-used macro OBJC_INT_SELECTORS.
* objc/objc-act.c: Remove all code ifdefed with the never-used
        macro OBJC_INT_SELECTORS.
        * config/d30v/d30v.h: Remove commented-out ref to OBJC_INT_SELECTORS.
        * tm.texi: Remove doc for OBJC_INT_SELECTORS.

From-SVN: r41317
2001-04-13 01:42:39 +00:00
Jason Merrill
ee8fc32b17 cp-tree.h (decl_namespace_list): New macro.
* cp-tree.h (decl_namespace_list): New macro.
        (struct saved_scope): Add decl_ns_list.
        * decl.c (mark_saved_scope): Mark it.
        * decl2.c: Lose static decl_namespace_list.
        (init_decl2): Don't save it.

From-SVN: r41316
2001-04-12 20:49:43 -04:00
Rodney Brown
3b7da9c5fb * config/pa/quadlib.c: Add prototypes.
From-SVN: r41315
2001-04-12 18:12:12 -06:00
Kaveh R. Ghazi
48857160b2 cp-tree.h (warn_return_type, yylex): Delete redundant declarations.
* cp-tree.h (warn_return_type, yylex): Delete redundant
	declarations.

	* decl.c (current_class_depth, global_namespace): Likewise.

	* decl2.c (current_class_depth, flag_gnu_xref): Likewise

	* repo.c (flag_use_repository): Likewise.

From-SVN: r41314
2001-04-12 22:31:56 +00:00
Kaveh R. Ghazi
44c4c11d5d bitmap.h (debug_bitmap): Delete redundant prototype.
* bitmap.h (debug_bitmap): Delete redundant prototype.

	* rtl.h (get_frame_size): Likewise.

From-SVN: r41313
2001-04-12 22:27:22 +00:00
Kaveh R. Ghazi
e197a0eccf bad.c (inhibit_warnings): Delete redundant declaration.
* bad.c (inhibit_warnings): Delete redundant declaration.

	* com.c (skip_redundant_dir_prefix): Likewise.

	* com.h (mark_addressable): Likewise.

From-SVN: r41312
2001-04-12 22:18:51 +00:00
Jim Wilson
640cea5fb4 Fix for PR 2498, getf/stf require normalization after a cast.
* config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Simplify
	to just emit an fnorm.

From-SVN: r41311
2001-04-12 13:46:19 -07:00
Kaveh R. Ghazi
20e50c6277 c-common.h (truthvalue_conversion, [...]): Delete redundant declarations.
* c-common.h (truthvalue_conversion, type_for_mode,
	type_for_size): Delete redundant declarations.

	* c-lex.h (is_class_name): Likewise.

	* c-tree.h (pedantic, convert, getdecls, gettags,
	global_bindings_p, init_decl_processing, insert_block,
	maybe_build_cleanup, poplevel, print_lang_decl,
	print_lang_identifier, print_lang_type, pushdecl, pushlevel,
	set_block, incomplete_type_error, build_function_call,
	lvalue_or_else, mark_addressable): Likewise.

	* expr.h (expand_tree_builtin): Likewise.

From-SVN: r41309
2001-04-12 18:23:09 +00:00
Mark Mitchell
33d3b05bdc * invoke.texi: Document --param max-gcse-memory.
From-SVN: r41308
2001-04-12 17:05:13 +00:00
Kaveh R. Ghazi
845e14ed61 cp-tree.h (pedantic, [...]): Delete redundant declarations.
* cp-tree.h (pedantic, convert, global_bindings_p, insert_block,
	set_block, pushdecl, getdecls, gettags, init_decl_processing,
	maybe_build_cleanup, copy_lang_decl, prep_stmt, lvalue_p,
	lvalue_or_else, print_lang_statistics, comp_target_types,
	unsigned_type, signed_type, signed_or_unsigned_type,
	build_function_call, mark_addressable, incomplete_type_error):
	Delete redundant declarations.

From-SVN: r41306
2001-04-12 15:43:32 +00:00
Kaveh R. Ghazi
6c889b67cb configure.in (errno): Check for declaration.
* configure.in (errno): Check for declaration.
	* configure, config.in: Regenerated.

	* system.h (errno): Only declare if not already done.

From-SVN: r41305
2001-04-12 15:36:24 +00:00
Jason Merrill
1951a1b6ec cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
* cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
        (TYPE_ANONYMOUS_P): New macro.
        (TAGGED_TYPE_P): New macro.
        * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P.
        (grokfndecl, grokvardecl, grokdeclarator): Likewise.
        * tree.c (no_linkage_helper): Likewise.
        * semantics.c (begin_class_definition): Likewise.
        * pt.c (convert_template_argument): Likewise.
        * lex.c (check_for_missing_semicolon): Likewise.

From-SVN: r41303
2001-04-12 10:15:48 -04:00
Jason Merrill
d93aa33514 libstdc++.exp (libstdc++-dg-test): Prepend "./" to output_file.
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Prepend "./" to
        output_file.
        (dg-test): Revert rth's change.

From-SVN: r41301
2001-04-12 09:35:24 -04:00
Alexandre Oliva
75b9074c18 ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.226.
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.226.

From-SVN: r41299
2001-04-12 12:28:03 +00:00
Bryce McKinlay
52c2897732 Makefile.am: Make a libtool convenience library.
libffi:
	* Makefile.am: Make a libtool convenience library.
	* Makefile.in: Rebuilt.

libjava:
	* java/io/File.java (normalizePath): New private method.
	(File (String)): Use normalizePath().
	(File (String, String)): Likewise.

	* Makefile.am (libffi_files): Removed.
	(libgcj.la): Link libffi as a convenience library instead of
	refering to its object files directly.
	* Makefile.in: Rebuilt.

From-SVN: r41298
2001-04-12 10:32:50 +01:00
Nathan Sidwell
f847167e3d eh_alloc.cc (__cxa_allocate_exception): Don't terminate holding the mutex.
* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Don't
	terminate holding the mutex. Make sure size fits in EMERGENCY_OBJ_SIZE.

From-SVN: r41296
2001-04-12 07:47:34 +00:00
Nathan Sidwell
0fb3018cd8 class.c (dfs_unshared_virtual_bases): New function.
cp:
	* class.c (dfs_unshared_virtual_bases): New function.
	(mark_primary_bases): Call it.
	(check_bases): Ignore virtual bases when determining
	nearly-emptiness.
testsuite:
	* g++.old-deja/g++.abi/primary3.C (main): Correct expected layout.
	* g++.old-deja/g++.abi/crash1.C: New test.

From-SVN: r41295
2001-04-12 07:44:48 +00:00
Nathan Sidwell
bbb53468cc method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
cp:
	* method.c (make_thunk): Clear DECL_CLONED_FUNCTION.
testsuite:
	* g++.old-deja/g++.other/crash40.C: New test.

From-SVN: r41294
2001-04-12 07:42:17 +00:00
GCC Administrator
571a66c6c9 Daily bump.
From-SVN: r41291
2001-04-12 07:16:40 +00:00
Alexandre Oliva
c033e268c5 recog.c (general_operand, [...]): Require CONST_INTs to be sign-extended values for their modes.
* recog.c (general_operand, immediate_operand,
nonmemory_operand): Require CONST_INTs to be sign-extended
values for their modes.

From-SVN: r41286
2001-04-12 05:25:55 +00:00
Alexandre Oliva
691073076b expmed.c (store_bit_field): Truncate CONST_INTs.
* expmed.c (store_bit_field): Truncate CONST_INTs.
(expand_mult_highpart, expand_divmod): Likewise.
* expr.c (convert_modes, store_field): Likewise.
* integrate.c (expand_inline_function): Use promote_mode() to
determine whether to convert_modes() an argument as signed
or unsigned.
* optabs.c (expand_binop): Get CONST_INT operands
sign-extended for their appropriate modes.
* stmt.c (emit_case_nodes): Convert node values to the
appropriate mode.
(expand_end_case): Convert minval and range to the appropriate
mode.
* unroll.c (loop_iterations): Truncate abs_diff to the mode of
the iteration variable.
* varasm.c (immed_double_const): Don't require words to be
narrower than host wide ints to properly sign-extend
CONST_INTs.

From-SVN: r41285
2001-04-12 03:41:36 +00:00