summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2004-06-22 Paolo Bonzini <bonzini@gnu.org>bonzini2004-06-233-2/+7
| | | | | | | | * Makefile.tpl (HOST_EXPORTS): Fix pasto. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83547 138bc75d-0d04-0410-961f-82ee72b054a4
* * gengtype-yacc.y (option): Avoid use of non-constant structrsandifo2004-06-232-2/+10
| | | | | | | initializer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83546 138bc75d-0d04-0410-961f-82ee72b054a4
* remove stray conflict markernathan2004-06-231-1/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83544 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/extend.texi (Function Attributes): Alphabetize.nathan2004-06-232-439/+456
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83543 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Paolo Bonzini <bonzini@gnu.org>bonzini2004-06-233-1138/+1148
| | | | | | | | | | | | | | | | | | | | | * Makefile.tpl (configure-build-[+module+], configure-[+module+], configure-target-[+module+]): Pass [+extra_configure_args+]. (all-build-[+module+], all-[+module+], check-[+module+], install-[+module+], [+make_target+]-[+module+], all-target-[+module+], check-target-[+module+], install-target-[+module+], [+make_target+]-target-[+module+]): Pass [+extra_make_args+]. (HOST_EXPORTS): Include the former GCC_HOST_EXPORTS. (GCC_HOST_EXPORTS): Remove. (configure-gcc, all-gcc, GCC_STRAP_TARGETS, profiledbootstrap, cross, check-gcc, check-gcc-c++, install-gcc, gcc-no-fixedincludes, [+make_target+]-gcc, stage[+id+]-bubble): Replace GCC_HOST_EXPORTS with HOST_EXPORTS. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83542 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-gimplify.c (gimplify_decl_stmt): Update gimplify_type_sizes call.rth2004-06-237-84/+83
| | | | | | | | | | | | | | | | | | | Use gimplify_and_add. * c-typeck.c (c_finish_if_stmt): Use NULL instead of empty stmt. * gimplify.c (build_and_jump, gimplify_exit_expr, gimplify_init_constructor, gimplify_save_expr, gimple_push_cleanup, gimplify_stmt, gimplify_expr): Likewise. (shortcut_cond_expr): Handle NULL arms of COND_EXPR. (gimplify_statement_list): Remove NULL entries. (gimplify_to_stmt_list): Handle NULL results. (gimplify_type_sizes): Add list_p argument. (gimplify_one_sizepos): Don't use internal pre/post queue. * tree-gimple.h (gimplify_type_sizes): Update. ada/ * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83539 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Eric Christopher <echristo@redhat.com>echristo2004-06-232-12/+51
| | | | | | | * config/rs6000/rs6000.md (*insvsi_internal5/6): New patterns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83538 138bc75d-0d04-0410-961f-82ee72b054a4
* * cfghooks.c (make_forwarder_block): Decrement count on fallthru edgelaw2004-06-232-1/+12
| | | | | | | | | | when redirecting back edges. * cfghooks.c (split_block): Call make_single_succ_edge so that edge count/probability are set correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83537 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/noreturn-1.c (foo5): Update function does return lineno.rth2004-06-232-2/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83535 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-typeck.c (emit_side_effect_warnings): Ignore error marks.rth2004-06-232-2/+9
| | | | | | | (c_finish_stmt_expr): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83534 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/i386.c (TARGET_STRUCT_VALUE_RTX): New.rth2004-06-232-21/+43
| | | | | | | | (ix86_return_in_memory): Move SSE vector return warning ... (ix86_struct_value_rtx): ... here. New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83533 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/builtins-config.h: Handle FreeBSD.ljrittle2004-06-232-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83532 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.def (VTABLE_REF): Remove.rth2004-06-2323-109/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (OBJ_TYPE_REF): New. (TRY_CATCH_EXPR, TRY_FINALLY_EXPR): Set type 's'. * expr.c (expand_expr_real_1): Replace VTABLE_REF with OBJ_TYPE_REF. * fold-const.c (non_lvalue): Likewise. * gimplify.c (gimplify_expr): Likewise. (gimplify_call_expr): Use is_gimple_call_addr. * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New. * langhooks.h (fold_obj_type_ref): New. * tree-gimple.c (is_gimple_call_addr): New. * tree-gimple.h (is_gimple_call_addr): Declare. * tree-inline.c (inlinable_function_p): Fix merge error. (estimate_num_insns_1): Replace VTABLE_REF with OBJ_TYPE_REF. * tree-pretty-print.c (dump_generic_node): Likewise. (print_call_name): Handle OBJ_TYPE_REF. * tree-ssa-ccp.c (fold_stmt): Fold OBJ_TYPE_REF. * tree-ssa-operands.c (get_expr_operands): Handle OBJ_TYPE_REF. * tree.h (OBJ_TYPE_REF_EXPR): New. (OBJ_TYPE_REF_OBJECT, OBJ_TYPE_REF_TOKEN): New. * doc/c-tree.texi (VTABLE_REF): Remove. * objc/objc-act.c (build_objc_method_call): Build an OBJ_TYPE_REF. cp/ * class.c (build_vfn_ref): Take a pointer not object. Build an OBJ_TYPE_REF. (cp_fold_obj_type_ref): New. * call.c (build_over_call): Update build_vfn_ref call. * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New. * cp-tree.h (cp_fold_obj_type_ref): Declare. testsuite/ * g++.dg/opt/devirt1.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83531 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-06-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83529 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-06-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83527 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/16026rth2004-06-222-2/+6
| | | | | | | * function.c (assign_parms): Don't abort for overaligned PARALLEL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83525 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (distclean): Don't try to remove empty directories.jsm282004-06-222-1/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83523 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/bits/istream.tcc (getline): Make sure arguments passedaoliva2004-06-224-3/+11
| | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83522 138bc75d-0d04-0410-961f-82ee72b054a4
* fixjason2004-06-221-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83517 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/15869rsandifo2004-06-222-0/+8
| | | | | | | * config/mips/mips.c (mips_avoid_hazards): Call split_all_insns_noflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83516 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Kelley Cook <kcook@gcc.gnu.org>kcook2004-06-222-0/+26
| | | | | | | * g++.dg/opt/pr15551.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83515 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/16112jason2004-06-223-0/+15
| | | | | | | | * cp-gimplify.c (cp_gimplify_init_expr): Look through CLEANUP_POINT_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83514 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 H.J. Lu <hongjiu.lu@intel.com>hjl2004-06-222-0/+11
| | | | | | | | | PR target/14800 * gcc.misc-tests/linkage.exp: Set native_cflags to "-m32" for x86_64-*-linux* when compiling for 32bit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83513 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass originalbryce2004-06-223-6/+12
| | | | | | | | encoding name to iconv. * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83512 138bc75d-0d04-0410-961f-82ee72b054a4
* Testcases for my rs6000-specific change of this date.dalej2004-06-222-0/+23
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83511 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/mn10300/mn10300.md (movdi, movdf): Use high/low for movuaoliva2004-06-222-4/+9
| | | | | | | operands. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83510 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixes PR java/16113.rmathew2004-06-222-1/+6
| | | | | | | * decl.c (force_poplevels): Remove call to expand_end_bindings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83509 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (create_class): Correct diagnostic message aboutrmathew2004-06-222-2/+7
| | | | | | | java.lang.Object extending anything else. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83507 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Dale Johannesen <dalej@apple.com>dalej2004-06-224-30/+67
| | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83504 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix ChangeLog entry.bryce2004-06-221-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83502 138bc75d-0d04-0410-961f-82ee72b054a4
* PR libgcj/16134:bryce2004-06-223-2/+11
| | | | | | | | | * gnu/gcj/convert/BytesToUnicode.java: Canonicalize encoding name before cache lookup. Thanks to Hannes Wallnoefer. * gnu/gcj/convert/UnicodeToBytes.java: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83501 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>bkoz2004-06-222-4/+6
| | | | | | | * docs/html/abi.html: Update links. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83498 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Paolo Carlini <pcarlini@suse.de>paolo2004-06-2218-0/+17
| | | | | | | | | | | | | | | | | | | | * 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). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83489 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Paolo Bonzini <bonzini@gnu.org>bonzini2004-06-222-1/+6
| | | | | | | | * tree-cfg.c (pass_warn_function_return): It needs CFG, not SSA. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83487 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-22 Paolo Carlini <pcarlini@suse.de>paolo2004-06-223-8/+144
| | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83486 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi (Machine Dependent Options): Alphabetize.nathan2004-06-222-3358/+3401
| | | | | | | (Submodel Options): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83485 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-21 Andrew Pinski <apinski@apple.com>pinskia2004-06-225-0/+28
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83483 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-tree.def (NEW_EXPR): Add a fourth slot.mmitchel2004-06-2214-1430/+1343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83482 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-21 Geoffrey Keating <geoffk@apple.com>geoffk2004-06-2217-16/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83478 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-ssa.c (ssa_redirect_edge): Correct leading comment.bje2004-06-222-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83477 138bc75d-0d04-0410-961f-82ee72b054a4
* MAINTAINERS: Added self to write-after-approval.matthewg2004-06-221-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83476 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (gimplify.o): Add cgraph.h.kenner2004-06-222-2/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83475 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c (adjust_offset_for_component_ref): Usekenner2004-06-2272-780/+1648
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | component_ref_field_offset. * c-decl.c (build_array_declarator): Add news args for ARRAY_REF. * c-gimplify.c (gimplify_expr_stmt): Use alloc_stmt_list. (gimplify_decl_stmt): Call gimplify_type_sizes for type. For decl, call gimplify_one_sizepos and use statement list. (gimplify_compound_literal_expr): New arg PRE_P. Add statement to PRE_P list and return DECL. (c_gimplify_expr, case COMPOUND_LITERAL_EXPR): Add arg to gimplify_compound_literal_expr. * c-tree.h (getdecls): Deleted. * c-typeck.c (build_component_ref): Add operand for COMPONENT_REF. (build_array_ref): Add two operands for ARRAY_REF. (build_unary_op): Set TREE_INVARIANT and TREE_CONSTANT for COMPOUND_LITERAL_EXPR. * coverage.c (tree_coverage_counter_ref): Add new operands for ARRAY_REF. * emit-rtl.c (component_ref_for_mem_expr): Add new operand for COMPONENT_REF. (set_mem_attributes_minus_bitpos): Use array_ref_low_bound and array_ref_element_size. (widen_memory_access):Use component_ref_field_offset. * explow.c (update_nonlocal_goto_save_area): Add two operands for ARRAY_REF. * expr.c (array_ref_element_size, array_ref_low_bound): New functions. (component_ref_field_offset): Likewise. (get_inner_reference): Use them. (expand_expr_real_1, case ARRAY_REF): Use array_ref_low_bound. * fold-const.c (fold, case EQ_EXPR): Properly handle DECL_SIZE. (fold_read_from_constant_string): Use array_ref_low_bound. Verify that result is a character type. (build_fold_indirect_ref): Add two operands for ARRAY_REF. * function.c (expand_function_start): Likewise. * gimple-low.c (expand_var_p): Delete duplicated line. * gimplify.c: Add static decls for local functions. (cgraph.h): Now included. (create_tmp_var): Remove check for ARRAY_TYPE. (copy_if_shared_r): Look at bounds and sizes of types. (build_and_jump): Return alloc_stmt_list instead of build_empty_stmt. (gimplify_exit_expr, shortcut_cond_expr): Likewise. (gimplify_save_expr, gimple_push_cleanup): Likewise. (gimplify_init_constructor): Likewise. WANT_VALUE now bool. If empty list with no result wanted, return GS_UNHANDLED. Add additional operands for ARRAY_REF and COMPONENT_REF. (canonicalize_component_ref): Convert to &array[L]. (gimplify_array_ref_to_plus): Use array_ref_element_size and array_ref_lower_bound. (build_addr_expr_with_type, build_addr_expr): New functions. (gimplify_compound_lval): WANT_LVALUE now bool. Major rework to allow handle_component_p and initialize and gimplify new operands for ARRAY_REF, ARRAY_RANGE_REF, and COMPONENT_REF. (gimplify_array_ref): Deleted. (gimplify_self_mod_expr): WANT_VALUE now bool. (gimplify_modify_expr): Gimplify to_p and from_p later. Factor out code into gimplify_modify_expr_rhs and call twice. Move variable-size code earlier and handle PLACEHOLDER_EXPR. (gimplify_modify_expr_rhs, gimplify_variable_sized_compare): New fns. (gimplify_addr_expr, case VIEW_CONVERT_EXPR): New case. (gimplify_expr, case ARRAY_REF): Delete special case. Instead handle like COMPONENT_REF; also do ARRAY_RANGE_REF, IMAGPART, and REALPART the same way. (gimplify_expr, case VIEW_CONVERT_EXPR): New case. (gimplify_expr): Call gimplify_variable_sized_compare if applicable. Call alloc_stmt_list instead of build_empty_stmt. Deal with _REF that's volatile. (gimplify_type_sizes, gimplify_one_sizepos): New functions. (unshare_body, unvisit_body): New functions. (gimplify_body): Call them. * stmt.c (expand_stack_alloc): Don't expand TYPE_MAX_VALUE. * stor-layout.c (get_pending_sizes): Don't change SAVE_EXPR_CONTEXT. * tree-alias-common.c (get_alias_var): Also skip ARRAY_RANGE_REF. * tree-cfg.c (tree_node_can_be_shared): Treat ARRAY_RANGE_REF like ARRAY_REF. (verify_expr, case ADDR_EXPR): Use handled_component_p. * tree-dfa.c (get_virtual_var): Likewise. * tree-dump.c (dequeue_and_dump, case COMPONENT_REF, ARRAY_REF): New cases to dump new operands; likewise for ARRAY_RANGE_REF. * tree-eh.c (tree_could_trap, case ARRAY_RANGE_REF): Like ARRAY_REF. * tree-gimple.c (is_gimple_addr_expr_arg): Add ARRAY_RANGE_REF and INDIRECT_REF. (get_base_address): Use handled_component_p. * tree-gimple.h (gimplify_type_sizes, gimplify_one_sizepos): New. * tree-line.c (walk_tree): Walk more things for types and decls. * tree-mudflap.c (mf_build_check_statement_for): Add new operands for ARRAY_REF and COMPONENT_REF. (mx_xform_derefs_1): Clean up usage of decl sizes. * tree-nested.c (build_addr): Use handled_component_p. (walk_stmts, case CATCH_EXPR): Add missing "break". (get_static_chain, get_frame_field): Add new operand for COMPONENT_REF. (finalize_nesting_tree_1): Likewise. (convert_nonlocal_reference, case ARRAY_RANGE_REF): Like ARRAY_REF and process additional operands. (convert_local_reference): Likewise. * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Treat ARRAY_RANGE_REF similarly to ARRAY_REF. * tree-pretty-print.c (dump_generic_node, case QUAL_UNION_TYPE): Handle like RECORD_TYPE. (dump_generic_node, case COMPONENT_REF): Print offset operand. (dump_generic_node, case ARRAY_RANGE_REF): Treat like ARRAY_REF and print lower bound and element size for both. (op_prio, case ARRAY_RANGE_REF): Like ARRAY_REF. * tree-sra.c (csc_build_component_ref): Add new operand. (scalarize_call_expr): Use get_base_address. * tree-ssa-ccp.c (widen_bitfield): Clean up size handling. (maybe_fold_offset_to_array_ref): Rework to handle input having an ARRAY_REF, refine handling of lower bound, and add new operands for ARRAY_REF. (maybe_fold_to_component_ref): Add new operand for COMPONENT_REF. (maybe_fold_stmt_indirect): Only fold *&B to B if types match. (maybe_fold_stmt_addition): Only handle constant lower bound. * tree-ssa-operands.c (get_expr_operands): Minor rearrangements. Treat ARRAY_REF and ARRAY_RANGE_REF the same; look at extra operands. Look at new offset operand of COMPONENT_REF. * tree-ssa.c (set_is_used): Use handled_component_p. * tree.c (substitute_in_expr, case COMPONENT_REF): Add new operand. (stabilize_reference, case COMPONENT_REF): Likewise. (stabilize_reference, case ARRAY_RANGE_REF, ARRAY_REF): Similarly. (recompute_tree_invariant_for_addr_expr): Completely rework to be more precise. Also set TREE_SIDE_EFFECTS. (build1_stat, case ARRAY_EXPR): Don't handle TREE_SIDE_EFFECTS here. (build2_stat, build3_stat, build4_stat): For references, propagate TREE_THIS_VOLATILE. (get_unwidened): Add new operand for COMPONENT_REF. (get_narrower): Likewise; use host_integerp for DECL_SIZE. * tree.def (COMPONENT_REF): Add new operand. (ARRAY_REF, ARRAY_RANGE_REF): Add two new operands. * tree.h (array_ref_element_size, array_ref_low_bound): New decls. (component_ref_field_offset): Likewise. * config/alpha/alpha.c (alpha_va_start): Add new op for COMPONENT_REF. (alpha_gimplify_va_arg): Likewise. * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise. * config/i860/i860.c (i860_va_start, i860_va_arg): Likewise. * config/iq2000/iq2000.c (iq2000_va_arg): Likewise. * config/mips/mips.c (mips_va_start, mips_va_arg): Likewise. * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg): Likewise. * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise. * config/sh/sh.c (sh_va_start, sh_va_arg): Likewise. * config/stormy16/stormy16.c (xstormy1_expand_builin_va_start): Likewise. (xstormy16_expand_builtin_va_arg): Likewise. * config/xtensa/xtensa.c (xtensa_va_start, xtensa_va_arg): Likewise. * cp/call.c (build_vfield_ref): Add new operand for COMPONENT_REF. (build_new_method_call): Likewise. * cp/decl.c (local_variable_p_walkfn): Don't walk into types. * cp/decl2.c (grok_array_decl): Add new operands for ARRAY_REF. (build_anon_union_vars): Add new operand for COMPONENT_REF. * cp/init.c (buld_new): Add new operand for ARRAY_REF. * cp/method.c (do_build_copy_constructor): New op for COMPONENT_REF. (do_build_assign_ref): Likewise. * cp/parser.c (cp_parser_direct_new_declarator): Add new operands for ARRAY_REF. (cp_parser_direct_declarator): Likewise. * cp/pt.c (tsubst): Likewise. (tsubst_copy, tsubst_copy_and_build): Likewise; also add new operand for COMPONENT_REF. * cp/semantics.c (finish_non_static_data_member): Add new operand for COMPONENT_REF. * cp/typeck.c (build_class_member_access_expr): Likewise. (build_class_member_access_expr, finish_class_member_access_expr): Likewise. (build_ptrmemfunc_access_expr): Likewise. (build_array_ref): Add new operands for ARRAY_REF. * cp/typeck2.c (split_nonconstant_init_1): Likewise; COMPONENT_REF too. * cp/tree.c (count_trees_r, no_linkage_helper): Don't walk in types. * fortran/f95-lang.c (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Deleted. * fortran/trans-array.c (gfc_conv_descriptor_data): Add operand for COMPONENT_REF. (gfc_conv_descriptor_offset, gfc_conv_descriptor_dtype): Likewise. (gfc_conv_descriptor_dimension, gfc_conv_descriptor_stride): Likewise. (gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound): Likewise. * fortran/trans-common.c (create_common): Likewise. * fortran/trans-expr.c (gfc_conv_component_ref): Likewise. * fortran/trans-io.c (set_parameter_value): Likewise. (set_parameter_ref, set_string, set_flag, io_result): Likewise. (transfer_expr): Likewise. * fortran/trans-decl.c (gfc_trans_auto_character_variable): Set up to get DECL_SIZE and DECL_SIZE_UNIT gimplified. (gfc_simplify_function): New function. (gfc_generate_function-code): Properly handle nested functions. * fortran/trans.c (gfc_build_array_ref): Add two new operands for ARRAY_REF. * java/class.c (build_class_ref): Add new operand for COMPONENT_REF. (build_static_field_ref): Likewise and add new operands for ARRAY_REF. * java/constants.c (build_ref_from_constant_pool): Likewise. * java/expr.c (build_java_array_length_access): Likewise. (build_get_class, build_field_ref, build_known_method_ref): Likewise. (invoke_build_dtable, build_invokevirtual): Likewise. (build_invokeinterface, java_expand_expr): Likewise. (emit_init_test_initialization): Likewise. * java/java-gimplify.c (java_gimplify_new_array_init): Likewise. * java/parse.y (make_qualifed_name, build_array_ref): Likewise. * objc/ojbc-act.c (generate_static_references): Add additional operands to ARRAY_REF. (generate_strings, build_method_prototype_list_template): Likewise. (generate_protocol_list): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83474 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Check for srcdir/winsup rather than build directory winsup.cgf2004-06-223-2/+8
| | | | | | | * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83473 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15750pbrook2004-06-2211-16/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (gfc_match_inquire): Bugfix for iolength related stuff. (gfc_resolve_inquire): Resolve the iolength tag. Return SUCCESS at end of function if no failure has occured. * resolve.c (resolve_code): Resolve if iolength is encountered. * trans-io.c: (ioparm_iolength, iocall_iolength, iocall_iolength_done): New variables. (last_dt): Add IOLENGTH. (gfc_build_io_library_fndecls ): Set iolength related variables. (gfc_trans_iolength): Implement. (gfc_trans_dt_end): Treat iolength as a third form of data transfer. libgfortran/ PR fortran/15750 * inquire.c (st_inquire): Add comment * io.h (st_parameter): Add iolength. (st_iolength, st_iolength_done): Declare. * transfer.c (iolength_transfer, iolength_transfer_init, st_iolength, st_iolength_done): New functions. testsuite/ * gfortran.fortran-torture/execute/iolength_1.f90: New test. * gfortran.fortran-torture/execute/iolength_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83472 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/linker-map.gnu: Use wildcards forljrittle2004-06-222-1/+6
| | | | | | | __basic_file::sys_open(FILE*, _Ios_Openmode). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83470 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-06-221-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83467 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2004-06-221-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83466 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/14782danglin2004-06-213-23/+69
| | | | | | | | | | | | | | | * pa.c (emit_move_sequence): Use SFmode for 4-byte modes when doing the address checks for secondary reloads for loads from and stores to floating-point registers. * pa.h (EXTRA_CONSTRAINT, case T): Use SFmode for 4-byte modes in the address check. Move work around for ELF32 targets to GO_IF_LEGITIMATE_ADDRESS. (GO_IF_LEGITIMATE_ADDRESS): Require constant offsets to be correctly aligned for DImode loads and stores. Don't allow long SFmode displacements on ELF32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83464 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-opt/16114rth2004-06-212-5/+16
| | | | | | | | | * cse.c (merge_equiv_classes): Also rehash in response to delete_reg_equiv changes. (rehash_using_reg): Don't exclude REGs from rehashing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83463 138bc75d-0d04-0410-961f-82ee72b054a4