Commit Graph

51295 Commits

Author SHA1 Message Date
Kaveh R. Ghazi af2619030a * config/mips/mips.h (save_argv): Delete.
From-SVN: r68882
2003-07-03 13:24:04 +00:00
Kaveh R. Ghazi 04d6ccbd2d class.c (add_method, [...]): Fix format specifier.
* class.c (add_method, check_field_decl): Fix format specifier.
	* decl.c (duplicate_decls, pushdecl, check_goto,
	fixup_anonymous_aggr, maybe_commonize_var, grokdeclarator,
	start_enum): Likewise.
	* decl2.c (ambiguous_decl): Likewise.
	* pt.c (redeclare_class_template): Likewise.

From-SVN: r68878
2003-07-03 13:16:01 +00:00
Roger Sayle a11c61d20b re PR target/10700 (ICE in copy_to_mode_reg on 64-bit targets)
PR target/10700
	* fold-const.c (extract_muldiv_1): There's nothing that can be done
	if the expression is a SAVE_EXPR.

	* gcc.c-torture/compile/20030703-1.c: New test case.

From-SVN: r68877
2003-07-03 13:08:10 +00:00
Kazu Hirata dab66575b4 m32r.c: Fix comment typos.
* config/m32r/m32r.c: Fix comment typos.
	* config/m68hc11/m68hc11.c: Likewise.
	* config/m68hc11/m68hc11.h: Likewise.
	* config/m68k/m68k.c: Likewise.
	* config/mcore/mcore.c: Likewise.
	* config/mcore/mcore.h: Likewise.
	* config/mcore/mcore.md: Likewise.
	* config/mips/mips.c: Likewise.
	* config/mips/mips.h: Likewise.
	* config/mips/mips.md: Likewise.
	* config/mips/netbsd.h: Likewise.
	* config/mn10300/mn10300.c: Likewise.

From-SVN: r68876
2003-07-03 12:34:09 +00:00
Andreas Schwab 8837d828e7 dbxout.c (pending_bincls): Move decl down inside DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
* dbxout.c (pending_bincls): Move decl down inside
	DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.

From-SVN: r68875
2003-07-03 10:18:18 +00:00
Nathan Sidwell dd107e6641 rtl.h (NOTE_DATA): Refer to whole union.
* rtl.h (NOTE_DATA): Refer to whole union.
	* emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.

From-SVN: r68874
2003-07-03 09:52:26 +00:00
Mark Mitchell 06114438c0 * g++.dg/template/local3.C: Remove extra semicolon.
From-SVN: r68872
2003-07-03 08:10:54 +00:00
Eric Botcazou 8821d0914c re PR rtl-optimization/11381 (volatile memory access optimized away)
PR optimization/11381
	* simplify-rtx.c (simplify_relational_operation): Check that
	two equal operands have no side-effects before simplifying
	the comparison.

From-SVN: r68869
2003-07-03 07:30:03 +00:00
Jeff Law 7960bf2230 expr.c (do_store_flag): Remove special case folding for single bit tests.
* expr.c (do_store_flag): Remove special case folding for
	single bit tests.  Instead call back into the commonized folder
	routine.
	* fold-const.c (fold_single_bit_test): New function, mostly
	extracted from do_store_flag, with an additional case extracted
	from fold.
	(fold): Call fold_single_bit_test appropriately.
	* tree.h (fold_single_bit_test): Prototype.

From-SVN: r68867
2003-07-02 23:42:57 -06:00
Neil Booth b9add4494a * misc.c (save_argv): Make const.
From-SVN: r68866
2003-07-03 05:37:36 +00:00
Matt Kraai 0e8a66de6d gcse.c: Fix misspelling.
* gcse.c: Fix misspelling.
	* line-map.c: Likewise.
	* config/dsp16xx/dsp16xx.h: Likewise.

From-SVN: r68865
2003-07-03 05:26:31 +00:00
Zack Weinberg 3dce14083f system.h: Include filenames.h.
* system.h: Include filenames.h.
	(IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
	(DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
	define based on HAVE_DOS_BASED_FILE_SYSTEM.
	* config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
	* config/i386/xm-mingw32.h: Don't define
	HAVE_DOS_BASED_FILE_SYSTEM,
	DIR_SEPARATOR, or DIR_SEPARATOR_2.
	* doc/hostconfig.texi: Update to match.

	* cppfiles.c, gcc.c, gensupport.c, protoize.c,
	config/i386/cygwin.h:
	Use IS_ABSOLUTE_PATH throughout.
	* gcc.c (DIR_UP): Delete, unused.
	* protoize.c (IS_SAME_PATH): Define in terms of
	FILENAME_CMP.
	(is_abspath): Delete.
java:
	* jcf-path.c: Don't default-define PATH_SEPARATOR nor
	DIR_SEPARATOR.
	Use FILENAME_CMP.
	* jcf-write.c: Don't default-define DIR_SEPARATOR.
	* jcf.h: Delete COMPARE_FILENAMES definition.

From-SVN: r68863
2003-07-03 04:24:01 +00:00
Danny Smith bacb96b24f pex-win32.c (fix_argv): Ensure that the executable pathname uses Win32 backslashes.
2003-07-02  Danny Smith  <dannysmith@users.source.forge.net>

	* pex-win32.c (fix_argv): Ensure that the executable pathname
	uses Win32 backslashes.
	(pexecute): Cast away constness when assigning *errmsg_arg.

From-SVN: r68862
2003-07-03 04:21:13 +00:00
GCC Administrator cac4a1a56f Daily bump.
From-SVN: r68860
2003-07-03 00:16:07 +00:00
Kazu Hirata c51e6d855e emmintrin.h: Fix comment typos.
* config/i386/emmintrin.h: Fix comment typos.
	* config/i386/i386.c: Likewise.
	* config/i386/i386.h: Likewise.
	* config/i386/sco5.h: Likewise.
	* config/ia64/ia64.c: Likewise.
	* config/ia64/itanium2.md: Likewise.

From-SVN: r68857
2003-07-02 21:33:54 +00:00
Wolfgang Bangerth 82911f36f9 Fix a typo.
From-SVN: r68856
2003-07-02 15:32:58 -06:00
H.J. Lu 5ec3a5a717 dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with DBX_USE_BINCL.
2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>

	* dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
	DBX_USE_BINCL.
	(emit_bincl_stab): Same.
	(emit_pending_bincls): Same.

From-SVN: r68855
2003-07-02 14:28:03 -07:00
Kazu Hirata fad37371f9 h8300.c (compute_mov_length): Fix the length of loading CONST0_RTX (SFmode).
* config/h8300/h8300.c (compute_mov_length): Fix the length of
	loading CONST0_RTX (SFmode).
	* config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
	'G' to CONST0_RTX (SFmode).
	* config/h8300/h8300.md (movsf_h8300): Change the first
	constraint to 'G'.
	(movsf_h8300h): Likewise.

From-SVN: r68854
2003-07-02 20:48:04 +00:00
Neil Booth 836d77a9f4 * misc.c (save_argc, save_argv): Keep non-static!
From-SVN: r68853
2003-07-02 20:40:41 +00:00
Neil Booth 851224451d * Make-lang.in: Use C_COMMON_H
From-SVN: r68852
2003-07-02 20:29:06 +00:00
Neil Booth b86f6cd9ab c-common.h (c_common_init_options): New prototype.
* c-common.h (c_common_init_options): New prototype.
	* c-opts.c (deferred_size): Remove.
	(defer_opt): Array is now pre-allocated.
	(c_common_init_options): Pre-allocate deferred_opts.  Make
	lang_flags unsigned.
	(push_command_line_options): Free deferred_opts.
	* hooks.c (hook_uint_uint_constcharptrptr_0): New.
	* hooks.h (hook_uint_uint_constcharptrptr_0): New.
	* langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
	* langhooks.h (struct lang_hooks): New prototype for init_options.
	* main.c (main): Cast argv.
	* opts.c (handle_option, handle_options): Update prototypes.
	(decode_options): save_argc, save_argv are not global.  Constify.
	* opts.h (decode_options): New prototype.
	* toplev.c (general_init): New protoype.
	(save_argv): Make static.
	(save_argc): Remove.
	(print_switch_values, general_init): Constify.
	(toplev_main): Save argv.
	* toplev.h (toplev_main): Update prototype.
	(save_argc, save_argv): Remove.
ada:
	* misc.c (save_argc, save_argv): Make static.
	(gnat_init_options): New prototype.
	(gnat_init_options): Update.
f:
	* top.c (ffe_init_options): Update prototype.
	* top.h (ffe_init_options): Update prototype.
java:
	* lang.c (java_init_options): Update prototype.
treelang:
	* tree1.c (treelang_init_options): Update prototype.
	* treelang.h (treelang_init_options): Update prototype.

From-SVN: r68850
2003-07-02 20:15:46 +00:00
Paolo Carlini 41ba4c4632 basic_string.tcc (_M_replace_aux): Constify __n1 and __off1.
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/basic_string.tcc (_M_replace_aux): Constify
	__n1 and __off1.

From-SVN: r68849
2003-07-02 19:36:40 +00:00
David Edelsohn f23b9d529c dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
* dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
        (emit_bincl_stab): Same.
        (emit_pending_bincls): Same.

From-SVN: r68848
2003-07-02 13:50:37 -04:00
Nathanael Nerode 5208b50b05 re PR fastjar/9532 (jar -C flag is incompatible with Sun's (fastjar uses nonportable feature of getcwd))
PR java/9532
	* jartool.c (add_to_jar): Return 1 on failure to open file.
	Split out -C case to:
	* jartool.c (add_to_jar_with_dir): New function.

From-SVN: r68847
2003-07-02 17:20:54 +00:00
Nathan Sidwell 300e89a2b6 re PR c++/11072 (Implementation of offsetof macro)
PR c++/11072
	* ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
testsuite:
	PR c++/11072
	* g++.dg/other/offsetof2.C: XFAIL.
	* g++.dg/other/offsetof5.C: New.

From-SVN: r68831
2003-07-02 14:30:53 +00:00
Andreas Schwab eaac6968d6 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
From-SVN: r68829
2003-07-02 11:40:12 +00:00
Paolo Carlini da73f9deba stl_bvector.h: Fully qualify standard functions with std::, thus avoiding Koenig lookup.
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/stl_bvector.h: Fully qualify standard
	functions with std::, thus avoiding Koenig lookup.
	* include/bits/stl_construct.h: Likewise.
	* include/bits/stl_deque.h: Likewise.

From-SVN: r68828
2003-07-02 10:37:33 +00:00
Paolo Carlini 1c3800951b 7.cc: Include <testsuite_hooks.h>, tweak.
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/num_put/put/char/7.cc: Include
	<testsuite_hooks.h>, tweak.
	* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.

From-SVN: r68827
2003-07-02 10:35:14 +00:00
Rainer Orth 11fedfd3dc Actually remove iris[34].h.
From-SVN: r68826
2003-07-02 10:30:50 +00:00
Nathan Sidwell 08476342ab re PR c++/10219 (ICE in maybe_adjust_types_for_deduction on invalid code)
cp:
	PR c++/10219
	* pt.c (type_unification_real): Don't unify exprs of error type.
	* tree.c (error_type): Don't die on error_type.
testsuite:
	PR c++/10219
	* g++.dg/template/error1.C: New.

From-SVN: r68825
2003-07-02 09:41:52 +00:00
Nathan Sidwell 0c83a0fcff re PR c++/9779 (ICE in type_unknown_p when casting in static member)
cp:
	PR c++/9779
	* decl2.c (arg_assoc_class): Don't die on NULL type.
	* typeck.c (type_unknown_p): Don't die on untyped expressions.
testsuite:
	PR c++/9779
	* g++.dg/template/dependent-expr1.C: New.

From-SVN: r68824
2003-07-02 09:36:20 +00:00
Eric Botcazou 1a8c4ca62d re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char)
PR optimization/11210
	* expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
	about the behaviour with regard to bitfields.
	* fold-const (decode_field_reference): Record outermost type in
	case the expression is a NOP. Strip all NOPs. Set the signedness
	to that of the outermost type (if any) when the bitsize is equal
	to the size of the type.

From-SVN: r68823
2003-07-02 07:41:07 +00:00
Richard Sandiford 23cdfcf71f mips.md (addsi3): Remove workaround for adds of -32768.
* config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
	(addsi3_internal, adddi3, adddi3_internal_2): Likewise.
	(adddi3_internal_3, addsi3_internal_2): Likewise.

From-SVN: r68822
2003-07-02 07:36:04 +00:00
Richard Sandiford 6f2993e58b mips.c (machine_function): Add new fields: ignore_hazard_length_p and all_noreorder_p.
* config/mips/mips.c (machine_function): Add new fields:
	ignore_hazard_length_p and all_noreorder_p.
	(mips_flag_delayed_branch): New variable.
	(override_options): Treat '/' as an operand punctuation character.
	Set up mips_flag_delayed_branch.
	(print_operand): Handle '/'.
	(mips_output_function_prologue): Put the whole function in
	.set noreorder and .set nomacro if all_noreorder_p is true.
	(mips_output_function_epilogue): End the noreorder/nomacro sequence.
	(mips16_optimize_gp): Remove "first insn" parameter.
	(mips16_lay_out_constants): New function, split out from mips_reorg.
	(mips_avoid_hazard, mips_avoid_hazards): New functions.
	(mips_reorg): For mips16 code, call mips16_lay_out_constant
	and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
	do delayed-branch scheduling followed by hazard detection.
	(mips_adjust_insn_length): Only account for hazards if
	!ignore_hazard_length_p.
	(mips_output_load_label): Add a nop to the o32 sequence if
	the target suffers from load delays.
	(mips_output_conditional_branch): Add %/ to the end of branches.
	(mips_output_division): Fill the branch delay slot with %#.
	* config/mips/mips.md: Remove redundant '%*' from mips16 branch
	instructions.  End all other %* branches with %/.
	(ffssi2, ffsdi2): Fix lengths.
	(truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
	(fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
	(fix_truncsfsi2_macro): Likewise.
	(mov_lwl): Set hazard to "none".
	(ashldi3_internal): Fill the branch delay slot with %#.
	(ashrdi3_internal, lshrdi3_internal): Likewise.
	(exception_receiver): Explicitly set $28.
	(hazard_nop): New pattern.

From-SVN: r68821
2003-07-02 07:34:27 +00:00
Jan Hubicka 0184bd46b0 cgraphunit.c (cgraph_finalize_unit): Set current_function_decl before calling tree_inlinable_function_p.
* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
	before calling tree_inlinable_function_p.

From-SVN: r68819
2003-07-02 06:14:50 +00:00
Mark Mitchell ddb45080b4 re PR c++/6949 (ICE in tsubst_decl, at cp/pt.c:5733)
PR c++/6949
	* decl2.c (grokfield): Create TEMPLATE_DECLs for methods in local
	classes.

	PR c++/6949
	* g++.dg/template/local3.C: New test.

From-SVN: r68818
2003-07-02 04:11:30 +00:00
Phil Edwards f9f4d1e10a Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects check* targets, but not libs/programs).
2003-07-01  Phil Edwards  <pme@gcc.gnu.org>

	* testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
	check* targets, but not libs/programs).
	* testsuite/Makefile.in:  Regenerate.

From-SVN: r68813
2003-07-02 01:40:59 +00:00
Rainer Orth 1a78e5a7c6 inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too.
* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
	<internal/stdio_core.h> too.
	(stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
	<internal/wchar_core.h> too.
	Substitute va_list uses in inline definition.
	* fixinc/fixincl.x: Regenerate.

From-SVN: r68811
2003-07-02 01:30:10 +00:00
Kaveh R. Ghazi b01b248468 * error.c (locate_error): %P takes an `int', not a `tree'.
From-SVN: r68809
2003-07-02 01:11:21 +00:00
Rainer Orth 4c82f12b8e iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
* config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
	Undef before redefinition.
	(LABEL_AFTER_LOC): Likewise.
	(DEFAULT_SIGNED_CHAR): Likewise.
	(ASM_OUTPUT_ASCII): Moved here from iris4.h.
	Fix IRIX spelling.

	* config/mips/iris3.h: Remove, unused.
	* config/mips/iris4.h: Likewise.

	* config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.

	* config/mips/iris5.h (TARGET_DEFAULT): Move ...
	* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
	target_cpu_default.

	* config/mips/iris5.h: Move explicit includes ...
	* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.

	* config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
	* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
	tm_defines.

	* config/mips/iris6.h (TARGET_DEFAULT): Move ...
	* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
	target_cpu_default.

	* config/mips/iris6.h: Fix IRIX spelling.
	(MULTILIB_DEFAULTS): Undef before redefinition.

	* config/mips/iris6.h: Move explicit includes ...
	* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.

From-SVN: r68808
2003-07-02 00:21:56 +00:00
Jan Hubicka 8bd87c4e73 cgraph.c (cgraph_mark_needed_node, [...]): Use next_needed field instead of aux to maintain the queue.
* cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
	cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
	Use next_needed field instead of aux to maintain the queue.
	* cgraph.h (cgraph_node): Add next_needed.
	(cgraph_varpool_node): Add next_needed; remove aux.
	* cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.

From-SVN: r68807
2003-07-02 00:17:38 +00:00
GCC Administrator d6435621b2 Daily bump.
From-SVN: r68805
2003-07-02 00:16:06 +00:00
Jan Hubicka f6981e16c3 cgraphunit.c (cgraph_finalize_function): Set finalized.
* cgraphunit.c (cgraph_finalize_function): Set finalized.
	(cgraph_finalize_function): Do not examine inlinablility.
	(cgraph_finalize_compilation_unit): Do it here.
	* cgraph.h (cgraph_local_info): Add finalized field.

From-SVN: r68803
2003-07-02 00:14:44 +00:00
Rainer Orth d1c608553b ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
* ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
	(gt_pch_restore): Likewise.

From-SVN: r68802
2003-07-02 00:12:23 +00:00
Jan Hubicka 8cd2462c1b decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
* decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
	(finish-file): Do not process function with DECL_DEFER_OUTPUT clear;
	clear DECL_DEFER_OUTPUT once function is processed; avoid flags
	massaging.

	* cp-tree.h (DECL_NEEDED_P): Support unit-at-a-time
	(expand_or_defer_fn): Declare.
	(lower_function): Declare.
	* decl.c (start_cleanup_fn): Use expand_or_defer_fn.
	* decl2.c: Include cgraph.h and varpool.h
	(maybe_emit_vtables):  Make explicit instantations as needed.
	(mark_member_pointers, lower_function): New functions.
	(finish_file): Do unit-at-a-time.
	* method.c (synthesize_method): Use expand_or_defer_fn.
	* optimize.c (maybe_clone_body): Use expand_or_defer_fn.
	* parser.c (cp_parser_function_definition_after_decl): Use
	expand_or_defer_fn.
	* pt.c (instantiate_decl): Likewise.
	* semantics.c: Include cgraph.h
	(expand_or_defer_fn): Break out from ...
	(expand_body): ... here; deal with unit-at-a-time.
	* cp-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
	LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Define.

From-SVN: r68801
2003-07-02 00:12:10 +00:00
Kazu Hirata 093354e08f alpha.c: Fix comment typos.
* config/alpha/alpha.c: Fix comment typos.
	* config/alpha/elf.h: Likewise.
	* config/arm/arm.c: Likewise.
	* config/arm/arm.h: Likewise.
	* config/arm/arm.md: Likewise.
	* config/arm/t-arm-coff: Likewise.
	* config/arm/t-strongarm-pe: Likewise.
	* config/arm/xscale-elf.h: Likewise.
	* config/avr/avr.h: Likewise.

From-SVN: r68800
2003-07-01 23:26:43 +00:00
Neil Booth 2a2ecc33a8 Make-lang.in: Update.
treelang:
	* Make-lang.in: Update.
	* tree1.c: Include c-common.h.  Define c_language.

From-SVN: r68796
2003-07-01 21:25:52 +00:00
Roger Sayle b7693a4679 acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2003-07-01  Roger Sayle  <roger@eyesopen.com>

	* acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
	(GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

From-SVN: r68793
2003-07-01 21:09:11 +00:00
Benjamin Kosnik a5b1b26c90 acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
	* aclocal.m4: Regenerated.
	* configure: Regenerated.

From-SVN: r68792
2003-07-01 20:55:19 +00:00
Zack Weinberg b6728b1b51 * filenames.h: New file imported from binutils.
From-SVN: r68791
2003-07-01 20:29:16 +00:00