1. 21 Sep, 2004 4 commits
    • c-common.c (fix_string_type): Build the unqualified array type unconditionally... · c162c75e
      2004-09-20  Matt Austern <austern@apple.com>
      	    Zack Weinberg  <zack@codesourcery.com>
      
      	* c-common.c (fix_string_type): Build the unqualified array
      	type unconditionally, then use c_build_qualified_type to get
      	the proper const-qualified variant, and set its
      	TYPE_MAIN_VARIANT to refer to the unqualified type.
      	* c-lex.c (c_lex_return_raw_string): New global.
      	(c_lex_with_flags): Honor it.
      	* c-pragma.h: Declare it.
      
      cp:
      	* decl.c (make_rtl_for_nonlocal_decl, start_preparsed_function):
      	Apply lbasename to input_filename before passing to get_fileinfo.
      	* semantics.c (begin_class_definition): Likewise.
      	* lex.c (handle_pragma_interface): Apply get_fileinfo to the
      	correct filename.  Rename variables to be less confusing.
      	(handle_pragma_implementation): Likewise.  Disable "appears
      	after file is included" diagnostic.
      
      	* parser.c (struct cp_token): Add in_system_header fiag.
      	(CP_TOKEN_BLOCK_NUM_TOKENS, struct cp_token_block)
      	(CP_TOKEN_BUFFER_SIZE, cp_token_cache_push_token)
      	(CPP_NONE, cp_lexer_read_token): Delete.
      	(struct cp_lexer): Remove first_token, string_tokens,
      	main_lexer_p fields.  Clarify comments.
      	(struct cp_token_cache): Now just a pair of pointers.
      	(CP_LEXER_BUFFER_SIZE): New #define.
      	(CPP_PURGED): New fake token type.
      	(cp_lexer_new_from_token_array, cp_lexer_destroy)
      	(cp_lexer_peek_token_emit_debug_info, cp_lexer_skip_purged_tokens)
      	(cp_lexer_handle_pragma, cp_token_cache_new, cp_parser_string_literal):
      	New functions.
      	(cp_lexer_new_from_tokens): Now a simple wrapper around
      	cp_lexer_new_from_token_array.
      	(cp_lexer_set_source_position_from_token): Also update
      	in_system_header.
      	(cp_lexer_next_token, cp_lexer_prev_token, cp_lexer_advance_token):
      	Don't wrap round.
      	(cp_lexer_token_difference): Dont handle wrapping round.
      	(cp_lexer_new_main): Enable pragma deferral and raw strings,
      	read the entire translation unit through c_lex_with_flags into
      	this lexer's buffer, then turn raw strings back off again.
      	(cp_lexer_grow_buffer): Adjust for buffer no longer being circular.
      	(cp_lexer_get_preprocessor_token): No need to handle not being
      	the main lexer.  Set token->in_system_header too.
      	(cp_lexer_peek_token): Skip purged tokens.  Feed pragma tokens
      	to cp_lexer_handle_pragma.  No need to call cp_lexer_read_token.
      	(cp_lexer_peek_nth_token): Likewise.
      	(cp_lexer_purge_token): Mark the token PURGED, don't shift all
      	the other tokens down.
      	(cp_lexer_purge_tokens_after): Likewise.
      	(cp_lexer_save_tokens, cp_lexer_rollback_tokens): Don't worry
      	about there being no tokens.
      	(cp_lexer_print_token): Revise to give useful information on
      	all tokens.
      	(struct cp_parser): Add field translate_strings_p.
      	(cp_parser_new): Initialize it.
      	(cp_parser_translation_unit): Destroy the lexer when done.
      	(cp_parser_parameter_declaration): Restructure saving of
      	default arguments.
      	(cp_parser_save_member_function_body): Likewise.
      	(cp_parser_check_for_invalid_template_id)
      	(cp_parser_nested_name_specifier_opt, cp_parser_template_id):
      	Adjust calls to cp_lexer_advance_token.
      	(cp_parser_skip_to_closing_parenthesis, cp_parser_declaration):
      	No need to fiddle c_lex_string_translate.
      	(cp_parser_primary_expression, cp_parser_linkage_specification)
      	(cp_parser_asm_definition, cp_parser_asm_specification_opt)
      	(cp_parser_asm_operand_list, cp_parser_asm_clobber_list)
      	Use cp_parser_string_literal.
      	(cp_parser_attribute_list): Save and restore
      	parser->translate_strings_p, not c_lex_string_translate.
      	(cp_parser_cache_group): Delete.
      	(cp_parser_cache_group_1): Rename cp_parser_cache_group.  Do
      	not take a cache argument.
      
      From-SVN: r87786
      Matt Austern committed
    • Makefile.in: Fix flags.h dependencies to be $(FLAGS_H). · 5cfa8766
      2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
      
      	* Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
      
      From-SVN: r87785
      Daniel Berlin committed
    • Daily bump. · d6c0b27a
      From-SVN: r87783
      GCC Administrator committed
    • re PR middle-end/17126 (ICE with -fno-unit-at-a-time and -O3) · d21bede3
      	PR middle-end/17126
      	* tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
      	(tree_rest_of_compilation): Cleanup.
      
      From-SVN: r87780
      Jan Hubicka committed
  2. 20 Sep, 2004 27 commits
  3. 19 Sep, 2004 8 commits
    • decl2.c (determine_visibility): Allow class visibility directives to override… · 5bd91632
      decl2.c (determine_visibility): Allow class visibility directives to override targetm.cxx.export_class_data.
      
      	* decl2.c (determine_visibility): Allow class visibility
      	directives to override targetm.cxx.export_class_data.
      
      [[Split portion of a mixed commit.]]
      
      From-SVN: r87735.2
      Mark Mitchell committed
    • tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field. · 6775f1f3
      2004-09-19  Ira Rosen  <irar@il.ibm.com>
      
              * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
              (STMT_VINFO_VECT_DR_BASE): Declare.
              (VECT_SMODULO): Declare.
              * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
              (vect_compute_array_base_alignment): New function.
              (vect_analyze_data_ref_access): Check array indices. Remove one
              dimensional arrays restriction.
              (vect_get_ptr_offset): New function.
              (vect_get_symbl_and_dr): New function.
              (vect_get_base_and_bit_offset): Support additional data refs. Renamed
              (former name vect_get_base_decl_and_bit_offset).
              (vect_create_index_for_array_ref): Removed.
              (vect_create_index_for_vector_ref): New function.
              (vect_create_addr_base_for_vector_ref): New function.
              (vect_create_data_ref): Handle additional data refs. Call
              vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
              (vect_compute_data_ref_alignment): Support the changes. Call
              vect_get_base_and_bit_offset.
              (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
              data refs. Store vect_dr_base.
              (vect_analyze_data_ref_accesses): Support nonconstant init.
              (new_stmt_vec_info): Initialize vect_dr_base field.
              (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
              (get_vectype_for_scalar_type): Check for BLKmode.
              * tree-chrec.h (initial_condition_in_loop_num): Declare.
              * tree-chrec.c (initial_condition_in_loop_num): New function.
              (chrec_component_in_loop_num): New function.
              (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
              * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
              to be pointer to varray_type.
      
      From-SVN: r87731
      Ira Rosen committed
    • basic-block.h (update_bb_profile_after_threading): Declare. · 15db5571
      	* basic-block.h (update_bb_profile_after_threading): Declare.
      	* cfg.c (update_bb_profile_after_threading): Break out from ...
      	* cfgcleanup.c (try_forward_edges): ... here; use it.
      	* tree-ssa-dom.c (thread_across_edge): Use it.
      	* tree-ssa-threadupdate.c (create_block_for_threading): Zero out
      	profile of the new BB.
      
      From-SVN: r87730
      Jan Hubicka committed
    • tree-ssa-pre.c (insert_into_set): Don't put is_gimple_min_invariant values into the set. · 97141338
      2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree-ssa-pre.c (insert_into_set): Don't put
      	is_gimple_min_invariant values into the set.
      
      From-SVN: r87725
      Daniel Berlin committed
    • tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix prototype. · 76fd4fd7
      
      	* tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
      	prototype.
      
      From-SVN: r87721
      Andreas Jaeger committed
    • cris.h: Preserve the original spelling in a quote. · 938688cd
      	* config/cris/cris.h: Preserve the original spelling in a
      	quote.
      
      From-SVN: r87720
      Kazu Hirata committed
    • tree-ssa-dom.c (nonzero_vars_stack, [...]): New global varrays to replace the block local varrays. · fdabe5c2
      
      	* tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
      	global varrays to replace the block local varrays.
      	(struct dom_walk_block_data): Remove, no longer used.
      	(get_eq_expr_value): No longer need to pass around pointers to local
      	varrays.  Callers updated.  Unused markers added to unused parameters.
      	(record_range, record_equivalences_from_stmt): Likewise.
      	(record_equivalences_from_incoming_edge): Likewise.
      	(record_var_is_nonzero): Likewise.  Update now that we have a
      	single global varray of SSA_NAMEs that need restoring.
      	(dom_opt_initialize_block_local_data): Kill, no longer used.
      	(tree_ssa_dominator_optimize): Initialize new global varrays.
      	Update callbacks in dominator walker structure.
      	(dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
      	VRP_VARIABLES_STACK.
      	(restore_nonzero_vars_to_original_value): Update now that we have
      	a single global varray of SSA_NAMEs that need restoring.
      	(dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
      	Remove unused variables.
      	(optimize_stmt): Remove unused variable.
      
      From-SVN: r87719
      Jeff Law committed
    • Daily bump. · 45576477
      From-SVN: r87717
      GCC Administrator committed
  4. 18 Sep, 2004 1 commit
    • config.h.in: Regenerate. · f596fc98
      2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
      
      	* config.h.in: Regenerate.
      	* configure: Regenerate.
      	* configure.ac (AC_CHECK_HEADERS): Check for sys/mman.h.
      	* unix.c: Include stdio.h.
      	(HAVE_SYS_MMAN_H): Check.
      	(PROT_READ, PROT_WRITE): Provide default definitions.
      
      From-SVN: r87714
      Aaron W. LaFramboise committed