1. 23 Jun, 2004 16 commits
  2. 22 Jun, 2004 24 commits
    • re PR middle-end/16026 (ICE in function.c:4804, assign_parms, when -mpowerpc64 &… · a926b253
      re PR middle-end/16026 (ICE in function.c:4804, assign_parms, when -mpowerpc64 & half-word operation)
      
              PR middle-end/16026
              * function.c (assign_parms): Don't abort for overaligned PARALLEL.
      
      From-SVN: r83525
      Richard Henderson committed
    • istream.tcc (getline): Make sure arguments passed to min/max have the same type. · fa948784
      * include/bits/istream.tcc (getline): Make sure arguments passed
      to min/max have the same type.
      * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
      * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
      
      From-SVN: r83522
      Alexandre Oliva committed
    • fix · 514df03f
      From-SVN: r83517
      Jason Merrill committed
    • re PR target/15869 (No NOP after LW (with -mips1 -O0)) · 987a3c2b
      	PR target/15869
      	* config/mips/mips.c (mips_avoid_hazards): Call split_all_insns_noflow.
      
      From-SVN: r83516
      Richard Sandiford committed
    • pr15551.C: New testcase. · 89b4f108
      
      2004-06-22 Kelley Cook <kcook@gcc.gnu.org>
      
      	* g++.dg/opt/pr15551.C: New testcase.
      
      From-SVN: r83515
      Kelley Cook committed
    • re PR c++/16112 (ICE with statement expression in return statement) · 28c6dc63
              PR c++/16112
              * cp-gimplify.c (cp_gimplify_init_expr): Look through
              CLEANUP_POINT_EXPR.
      
      From-SVN: r83514
      Jason Merrill committed
    • re PR target/14800 (Some x86 tests aren't valid for x86_64) · 96a4ec03
      2004-06-22  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR target/14800
      	* gcc.misc-tests/linkage.exp: Set native_cflags to "-m32" for
      	x86_64-*-linux* when compiling for 32bit.
      
      From-SVN: r83513
      H.J. Lu committed
    • BytesToUnicode.java (getDecoder): Pass original encoding name to iconv. · eb8163ab
      	* gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original
      	encoding name to iconv.
      	* gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise.
      
      From-SVN: r83512
      Bryce McKinlay committed
    • Testcases for my rs6000-specific change of this date. · a91b0033
      From-SVN: r83511
      Dale Johannesen committed
    • mn10300.md (movdi, movdf): Use high/low for movu operands. · 6bb1041e
      * config/mn10300/mn10300.md (movdi, movdf): Use high/low for movu
      operands.
      
      From-SVN: r83510
      Alexandre Oliva committed
    • re PR java/16113 (ICE: Segmentation fault when compiling bytecode with debugging… · 56c5197b
      re PR java/16113 (ICE: Segmentation fault when compiling bytecode with debugging info and try/catch)
      
      	Fixes PR java/16113.
      	* decl.c (force_poplevels): Remove call to expand_end_bindings.
      
      Co-Authored-By: Ranjit Mathew <rmathew@hotmail.com>
      
      From-SVN: r83509
      Andrew Haley committed
    • parse.y (create_class): Correct diagnostic message about java.lang.Object extending anything else. · 815c5191
      	* parse.y (create_class): Correct diagnostic message about
      	java.lang.Object extending anything else.
      
      From-SVN: r83507
      Ranjit Mathew committed
    • rs6000.c (legitimate_offset_address_p): Make global, rename rs6000_legitimate_offset_address_p. · 76d2b81d
      
      2004-06-22  Dale Johannesen  <dalej@apple.com>
      
      	* config/rs6000/rs6000.c (legitimate_offset_address_p): Make
      	global, rename rs6000_legitimate_offset_address_p.
      	(rs6000_legitimate_address_p): Adjust calls to it.
      	(lmw_operation): Ditto.
      	(stmw_operation): Ditto.
      	* config/rs6000/rs6000-protos.h: Declare it.
      	* config/rs6000/rs6000.md (*movdf_hardfloat32): Use it
      	instead of offsettable_memref_p.
      
      2004-06-22  Dale Johannesen  <dalej@apple.com>
      
      	* config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
      	[reg+reg] mode for TFmode memory accesses.
      	(rs6000_eliminate_indexed_memrefs): New.
      	(rs6000_emit_move): Call preceding for TImode and TFmode.
      
      From-SVN: r83504
      Dale Johannesen committed
    • Fix ChangeLog entry. · e9cb3dac
      From-SVN: r83502
      Bryce McKinlay committed
    • re PR libgcj/16134 (Memory leak in String.getBytes()) · f50aa505
      	PR libgcj/16134:
      	* gnu/gcj/convert/BytesToUnicode.java: Canonicalize encoding name
      	before cache lookup. Thanks to Hannes Wallnoefer.
      	* gnu/gcj/convert/UnicodeToBytes.java: Likewise.
      
      From-SVN: r83501
      Bryce McKinlay committed
    • abi.html: Update links. · 3b56276e
      
      2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* docs/html/abi.html: Update links.
      
      From-SVN: r83498
      Benjamin Kosnik committed
    • complex_inserters_extractors.cc, [...]: Move to... · 482c0c5d
      2004-06-22  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/26_numerics/complex_inserters_extractors.cc,
      	complex_value.cc, buggy_complex.cc: Move to...
      	* testsuite/26_numerics/complex/: ... here.
      	* testsuite/26_numerics/c99_classification_macros_c++.cc,
      	c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
      	fabs_inline.cc: Move to...
      	* testsuite/26_numerics/cmath/: ... here.
      	* testsuite/26_numerics/binary_closure.cc, slice.cc,
      	slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
      	valarray_name_lookup.cc, valarray_operators.cc,
      	valarray_subset_assignment.cc: Move to...
      	* testsuite/26_numerics/valarray/: ... here (new dir).
      	* testsuite/26_numerics/sum_diff.cc: Move to...
      	* testsuite/26_numerics/numeric/: ... here (new dir).
      
      From-SVN: r83489
      Paolo Carlini committed
    • tree-cfg.c (pass_warn_function_return): It needs CFG, not SSA. · 00bfee6f
      2004-06-22  Paolo Bonzini  <bonzini@gnu.org>
      
      	* tree-cfg.c (pass_warn_function_return): It needs
      	CFG, not SSA.
      
      From-SVN: r83487
      Paolo Bonzini committed
    • std_istream.h (ignore(streamsize __n = 1, int_type __delim = traits_type::eof())): Split into... · 80dddedc
      2004-06-22  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/std/std_istream.h (ignore(streamsize __n = 1,
      	int_type __delim = traits_type::eof())): Split into...
      	(ignore(), ignore(streamsize __n), ignore(streamsize __n,
      	int_type __delim)): The first two can be much more simpler
      	and efficient than the fully general case; also, the last
      	two can take advantage of the same mechanism already used
      	for getline.
      	* include/bits/istream.tcc (ignore(streamsize __n = 1,
      	int_type __delim = traits_type::eof()): Remove.
      	(ignore(), ignore(streamsize __n), ignore(streamsize __n,
      	int_type __delim)): New.
      
      From-SVN: r83486
      Paolo Carlini committed
    • invoke.texi (Machine Dependent Options): Alphabetize. · 39bc1876
      	* doc/invoke.texi (Machine Dependent Options): Alphabetize.
      	(Submodel Options): Likewise.
      
      From-SVN: r83485
      Nathan Sidwell committed
    • Radar #: 3701874 · f6bf7bb6
      2004-06-21  Andrew Pinski  <apinski@apple.com>
      
              Radar #: 3701874
              * c-decl.c (push_file_scope): Return early if we already
              have a file scope.
      
      2004-06-21  Andrew Pinski  <apinski@apple.com>
      
              * gcc.dg/pch/struct-1.c: New.
              * gcc.dg/pch/struct-1.hs: New.
      
      From-SVN: r83483
      Andrew Pinski committed
    • cp-tree.def (NEW_EXPR): Add a fourth slot. · 058b15c1
      	* cp-tree.def (NEW_EXPR): Add a fourth slot.
      	* cp-tree.h (PARMLIST_ELLIPSIS_P): Remove.
      	(TREE_PARMLIST): Likewise.
      	(CALL_DECLARATOR_PARMS): Likewise.
      	(CALL_DECLARATOR_QUALS): Likewise.
      	(CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.
      	(cp_declarator_kind): New type.
      	(cp_parameter_declarator): Likewise.
      	(cp_declarator): Likewise.
      	(cp_error_declarator): Likewise.
      	(no_parameters): Likewise.
      	(groktypename): Change prototype.
      	(start_decl): Likewise.
      	(start_handler_parms): Likewise.
      	(get_scope_of_declarator): Likewise.
      	(start_function): Likewise.
      	(start_preparsed_function): New function.
      	(start_function): Change prototype.
      	(start_method): Likewise.
      	(grokfield): Likewise.
      	(grokbitfield): Likewise.
      	(build_new): Likewise.
      	(make_pointer_declarator): Remove.
      	(make_reference_declarator): Likewise.
      	(make_call_declarator): Likewise.
      	(set_quals_and_spec): Likewise.
      	(process_template_parm): Change prototype.
      	(begin_function_definition): Remove.
      	(finish_parmlist): Remove.
      	* decl.c (groktypename): Do not use trees to represent
      	declarators.
      	(start_decl): Likewise.
      	(start_handler_parms): Remove.
      	(get_scope_of_declarator): Reimplement.
      	(grokdeclarator): Do not use trees to represent	declarators.
      	(grokparms): Likewise.
      	(start_function): Likewise.
      	(start_method): Likewise.
      	(build_void_list_mode): Do not use TREE_PARMLIST.
      	* decl.h (grokdeclarator): Change prototype.
      	* decl2.c (grok_method_quals): Robustify.
      	(grok_x_components): Do not use trees to represent declarators.
      	(grokfield): Likewise.
      	(grokbitfield): Likewise.
      	(start_objects): Build FUNCTION_DECLs, not declarators.
      	(start_static_storage_duration_function): Likewise.
      	* init.c (build_new): Simplify.
      	* lex.c (make_pointer_declarator): Remove.
      	(make_reference_declarator): Likewise.
      	(make_call_declarator): Likewise.
      	(set_quals_and_spec): Likewise.
      	* method.c (use_thunk): Use start_preparsed_function.
      	(synthesize_method): Likewise.
      	(implicitly_declare_fn): Build FUNCTION_DECLs, not declarators.
      	* optimize.c (maybe_clone_body): Use start_preparsed_function.
      	* parser.c (cp_error_declarator): New variable.
      	(declarator_obstack): Likewise.
      	(alloc_declarator): New function.
      	(make_declarator): Likewise.
      	(make_id_declarator): Likewise.
      	(make_pointer_declarator): Likewise.
      	(make_reference_declarator): Likewise.
      	(make_ptrmem_declarator): Likewise.
      	(make_call_declarator): Likewise.
      	(make_array_declarator): Likewise.
      	(no_parameters): New variable.
      	(make_parameter_declarator): Likewise.
      	(cp_parser_check_for_definition_in_return_type): Do not use trees
      	to represent declarators.
      	(cp_parser_translation_unit): Likewise.
      	(cp_parser_new_expression): Likewise.
      	(cp_parser_new_type_id): Likewise.
      	(cp_parser_new_declarator_opt): Likewise.
      	(cp_parser_direct_new_declarator): Likewise.
      	(cp_parser_condition): Likewise.
      	(cp_parser_declaration_statement): Likewise.
      	(cp_parser_declaration): Likewise.
      	(cp_parser_conversion_type_id): Likewise.
      	(cp_parser_conversion_declarator_opt): Likewise.
      	(cp_parser_template_parameter_list): Likewise.
      	(cp_parser_template_parameter): Likewise.
      	(cp_parser_explicit_instantiation): Likewise.
      	(cp_parser_init_declarator): Likewise.
      	(cp_parser_declarator): Likewise.
      	(cp_parser_direct_declarator): Likewise.
      	(cp_parser_type_id): Likewise.
      	(cp_parser_parameter_declaration_clause): Likewise.
      	(cp_parser_parameter_declaration_list): Likewise.
      	(cp_parser_parameter_declaration): Likewise.
      	(cp_parser_member_declaration): Likewise.
      	(cp_parser_exception_declaration): Likewise.
      	(cp_parser_check_declarator_template_parameters): Likewise.
      	(cp_parser_function_definition_from_specifiers_and_declarator):
      	Likewise.
      	(cp_parser_save_member_function_body): Likewise.
      	* pt.c (process_template_parm): Add is_non_type parameter.
      	(convert_template_argument): Adjust call to groktypename.
      	(tsubst_call_declarator_parms): Remove use of TREE_PARMLIST.
      	(tsubst): Do not expect declarators.
      	(tsubst_copy_and_build): Adjust NEW_EXPR case to handle additional
      	argument.
      	(instantiate_decl): Use start_preparsed_function.
      	* semantics.c (begin_function_definition): Remove.
      	(finish_parmlist): Remove.
      	* cp-mudflap.c (mflang_flush_calls): Build FUNCTION_DECLs, not
      	declarators.
      
      From-SVN: r83482
      Mark Mitchell committed
    • c-opts.c (c_common_handle_option): Handle -fpch-preprocess. · c0d578e6
      2004-06-21  Geoffrey Keating  <geoffk@apple.com>
      
      	* c-opts.c (c_common_handle_option): Handle -fpch-preprocess.
      	* c-common.h (flag_pch_preprocess): Declare.
      	(c_common_pch_pragma): Likewise.
      	* c-common.c (flag_pch_preprocess): New.
      	* c-pch.c (c_common_read_pch): Support -fpreprocess-only.
      	(c_common_pch_pragma): New.
      	* c-ppoutput.c (cb_read_pch): New.
      	(init_pp_output): Support -fpch-preprocess.
      	* c-pragma.c (init_pragma): Support #pragma GNUC pch_preprocess.
      	* c.opt (fpch-preprocess): New.
      	* gcc.c (cpp_options): When save-temps, pass -fpch-preprocess.
      	* doc/cppopts.texi: Document -fpch-preprocess.
      	* doc/invoke.texi (Precompiled Headers): Mention that
      	-fpreprocessed is safe for PCH.  Mention that if an option is
      	listed as safe that doesn't mean it does what you expect.
      
      Index: gcc/testsuite/ChangeLog
      2004-06-21  Geoffrey Keating  <geoffk@apple.com>
      
      	* gcc.dg/pch/save-temps-1.c: New file.
      	* gcc.dg/pch/save-temps-1.hs: New file.
      
      Index: libcpp/ChangeLog
      2004-06-21  Geoffrey Keating  <geoffk@apple.com>
      
      	* files.c (should_stack_file): Correct swapped parameters to call
      	to cb.read_pch.
      	* pch.c (cpp_valid_state): Handle -fpreprocessed.
      
      From-SVN: r83478
      Geoffrey Keating committed