1. 14 Jun, 2003 1 commit
    • tree.h (init_function_start): Remove filename and line paramters. · ee6b0296
      	* tree.h (init_function_start): Remove filename and line paramters.
      	* function.c (init_function_start): Remove filename and line
      	parameters. Use DECL_SOURCE_LOCATION.
      	* c-decl.c (store_parm_decls): Adjust init_function_start call.
      	(c_expand_body_1): Likewise.
      	* coverage.c (create_coverage): Likewise.
      
      	* ada/utils.c (begin_subprog_body): Adjust init_function_start
      	call.
      
      	* cp/decl.c (start_function): Adjust init_function_start call.
      	* cp/method.c (use_thunk): Likewise.
      	* cp/semantics.c (genrtl_start_function): Likewise.
      
      	* f/com.c (stor_parm_decls): Adjust init_function_start call.
      
      	* java/class.c (emit_register_classes): Adjust init_function_start
      	call.
      	* java/decl.c (complete_start_java_method): Likewise.
      	* java/resource.c (write_resource_constructor): Likewise.
      
      	* objc/objc-act.c (build_tmp_function_decl): Set line number to
      	zero.
      	(hack_method_prototype): Adjust init_function_start call.
      
      	* treelang/treetree.c (tree_code_create_function_initial): Adjust
      	init_function_start call.
      
      From-SVN: r67953
      Nathan Sidwell committed
  2. 07 Jun, 2003 1 commit
    • Makefile.in (OJBS, c-opts.o): Update. · 2772ef3e
      	* Makefile.in (OJBS, c-opts.o): Update.
      	(c-options.c, c-options.h): Rename options.h and options.c.
      	(options.h): Rename options_.h.
      	(opts.o): New.
      	* c-common.h (c_common_handle_option): Replace c_common_decode_option.
      	(c_common_init_options): Update prototype.
      	* c-lang.c (c_init_options): Update prototype.
      	(LANG_HOOKS_HANDLE_OPTION): Override.
      	(LANG_HOOKS_DECODE_OPTION): Drop.
      	* c-opts.c: Include opts.h and options.h instead of c-options.h
      	and c-options.c.
      	(lang_flags): Move to file scope.
      	(find_opt, c_common_decode_option): Remove.
      	(CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
      	CL_REJECT_NEGATIVE): Move to opts.h.
      	(missing_arg): Update prototype.
      	(c_common_init_options): Update for new prototype.
      	(c_common_handle_options): Filenames are passed as N_OPTS.
      	* hooks.c (hook_int_void_0): New.
      	* hooks.h (hook_int_void_0): New.
      	* langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
      	(LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.h (init_options): Update.
      	(handle_option): New.
      	* opts.c, opts.h: New files.
      	* opts.sh: Update c file to include opts.h and options.h.
      	* toplev.c: Include opts.h; change options.h to options_.h.
      	(parse_options_and_default_flags): Get lang_mask, use
      	handle_option for language-specific handling.
      	* objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
      	(LANG_HOOKS_HANDLE_OPTION): Override.
      	(objc_init_options): Update.
      ada:
      	* misc.c (gnat_init_options): Update.
      cp:
      	* cp-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
      	(LANG_HOOKS_HANDLE_OPTION): Override.
      	* cp-tree.h (cxx_init_options): Update.
      	* lex.c (cxx_init_options): Update.
      f:
      	* com.c (ffe_init_options): Update.
      java:
      	* lang.c (java_init_options): Update.
      
      From-SVN: r67584
      Neil Booth committed
  3. 05 Jun, 2003 1 commit
    • install.tex: Document profiledbootstrap. · 8f231b5d
      	* install.tex: Document profiledbootstrap.
      
      	* Makefile.tpl (profiledbootstrap): New target.
      	* Makefile.in (profiledbootstrap): New target.
      
      	* Makefile.in (clean, distclean): Kill new stages
      	(POSTSTAGE1_FLAGS_TO_PASS): Break from ...
      	(STAGE2_FLAGS_TO_PASS): ... this one.
      	(STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
      	(stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
      	(stageprofile_build, stageprofile_copy, stagefeedback_build,
      	stagefeedback_copy): New.
      	(restageprofile, restagefeedback, stageprofile-start,
      	stageprofile, stagefeedback-start): Likewise.
      
      	* Make-lang.in:  Add support for stageprofile and stagefeedback
      
      From-SVN: r67498
      Jan Hubicka committed
  4. 29 May, 2003 1 commit
    • Remove OBJC_PROLOGUE everywhere. · 1c36b2f9
      	* objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
      	* config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
      	* config/d30v/d30v.h: Similarly.
      	* config/ip2k/ip2k.h: Similarly.
      	* doc/tm.texi: Remove doc of OBJC_PROLOGUE.
      
      From-SVN: r67229
      Stan Shebs committed
  5. 23 May, 2003 1 commit
  6. 20 May, 2003 1 commit
  7. 13 May, 2003 1 commit
    • diagnostic.c (output_format): Add support for %m. · fa6ef813
      	* diagnostic.c (output_format): Add support for %m.
      	(output_printf, output_verbatim, diagnostic_set_info,
      	verbatim): Set err_no field of the text_info structure being
      	initialized.
      	(fatal_io_error): Delete function.
      	* diagnostic.h (text_info): Add err_no field.
      	* toplev.h (fatal_io_error): Delete prototype.
      
      	* c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
      	* toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
      	* f/com.c, java/jcf-parse.c, java/jcf-write.c, java/lex.c
      	* objc/objc-act.c: Replace all calls to fatal_io_error with
      	calls to fatal_error; add ": %m" to the end of all the affected
      	error messages.
      
      From-SVN: r66769
      Zack Weinberg committed
  8. 12 May, 2003 1 commit
    • diagnostic.c (diagnostic_for_decl): Take a diagnostic_context argument. · 9804f5fb
      	* diagnostic.c (diagnostic_for_decl): Take a
      	diagnostic_context argument.  Restructure to be consistent
      	with diagnostic_report_diagnostic.
      	(diagnostic_count_diagnostic): Now static.  Take a
      	diagnostic_info argument, not just a diagnostic_t.  Some code
      	moved here from internal_error.  Move a case label for
      	clarity.
      	(diagnostic_action_after_output): New function.  Code moved
      	here from internal_error and fatal_error.
      	(bug_report_request): New #define so that this text appears in
      	only one place.
      	(diagnostic_report_diagnostic): Update to match changes to
      	diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
      	(diagnostic_set_info): Call gettext here.
      
      	(pedwarn): Update comment.  Don't call gettext here.
      	(sorry): Use report_diagnostic.  Don't call gettext here.
      	(fatal_error): Remove final fnotice and exit, but call
      	real_abort to prevent warnings about noreturn function returning.
      	(internal_error): Likewise.  Don't do ICE suppression here nor
      	call context->internal_error.
      	(warning_with_decl): Suppress for decls in system headers.
      	Adjust call to diagnostic_for_decl.
      	(pedwarn_with_decl): Likewise.
      	(error_with_decl): Adjust call to diagnostic_for_decl.
      	(error_recursion): Use bug_report_request.
      
      	* diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
      	* objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
      	diagnostic_count_diagnostic.
      f:
      	* bad.c: Don't call diagnostic_count_diagnostic.
      
      From-SVN: r66728
      Zack Weinberg committed
  9. 08 May, 2003 1 commit
  10. 01 May, 2003 1 commit
    • input.h (lineno): Rename to ... · d479d37f
      	* input.h (lineno): Rename to ...
      	(input_line): ... here.
      	* tree.h (lineno): Rename to ...
      	(input_line): ... here.
      	* scan.h (lineno): Rename to ...
      	(input_line): ... here.
      	* toplev.c (lineno): Rename to ...
      	(input_line): ... here.
      	(push_srcloc, pop_srcloc):  Rename lineno to input_line.
      	* c-common.c (c_expand_start_cond, fname_decl): Likewise.
      	* c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
      	store_parm_decls, c_expand_body_1): Likewise.
      	* c-errors.c (pedwarn_c99): Likewise.
      	* c-format.c (status_warning): Likewise.
      	* c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
      	* c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
      	* c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
      	* c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
      	gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
      	genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
      	genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
      	build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
      	prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
      	* coverage.c (create_coverage): Likewise.
      	* diagnostic.c (pedwarn, sorry, error, fatal_error,
      	internal_error, warning, diagnostic_report_current_module,
      	inform): Likewise.
      	* expr.c (expand_expr): Likewise.
      	* integrate.c (expand_inline_function,
      	output_inline_function): Likewise.
      	* rtl-error.c (file_and_line_for_asm): Likewise.
      	* tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
      	walk_tree): Likewise.
      	* tree.c (make_node): Likewise.
      	* ada, cp, f, java, objc, treelang: Likewise.
      
      	ada
      	* trans.c (build_unit_elab, set_lineno): Rename lineno to
      	input_line.
      	* utils.c (pushdecl, create_label_decl, begin_subprog_body,
      	end_subprog_body): Likewise.
      	* utils2.c (build_call_raise): Likewise.
      
      	cp
      	* class.c (finish_struct): Rename lineno to input_line.
      	* decl.c (push_binding_level, pop_binding_level,
      	suspend_binding_level, resume_binding_level, make_label_decl,
      	use_label, start_function): Likewise.
      	* decl2.c (warn_if_unknown_interface,
      	start_static_initialization_or_destruction,
      	generate_ctor_or_dtor_function, finish_file): Likewise.
      	* error.c (cp_line_of, print_instantiation_full_context,
      	print_instantiation_context): Likewise.
      	* except.c (check_handlers_1, check_handlers): Likewise.
      	* init.c (create_temporary_var): Likewise.
      	* method.c (use_thunk, synthesize_method): Likewise.
      	* parser.c (cp_lexer_set_source_position_from_token,
      	cp_lexer_get_preprocessor_token): Likewise.
      	* pt.c (push_tinst_level, pop_tinst_level,
      	tsubst_friend_function, instantiate_class_template, tsubst_decl,
      	tsubst, tsubst_expr, instantiate_decl): Likewise.
      	* semantics.c (genrtl_try_block, finish_label_stmt,
      	begin_class_definition, expand_body,
      	genrtl_finish_function): Likewise.
      	* tree.c (build_min_nt, build_min): Likewise.
      
      	f
      	* ansify.c (die_unless): Rename lineno to input_line.
      	* com.c (ffecom_subscript_check_, ffecom_do_entry_,
      	ffecom_gen_sfuncdef_, ffecom_start_progunit_,
      	ffecom_sym_transform_, ffecom_sym_transform_assign_,
      	bison_rule_pushlevel_, bison_rule_compstmt_, finish_function,
      	store_parm_decls): Likewise.
      	* intrin.c (ffeintrin_fulfill_generic): Likewise.
      	* lex.c (ffelex_hash_, ffelex_include_, ffelex_next_line_,
      	ffelex_file_fixed, ffelex_file_free): Likewise.
      	* std.c (ffestd_exec_end): Likewise.
      	* ste.c (ffeste_emit_line_note_, ffeste_start_block_,
      	ffeste_start_stmt_): Likewise.
      	* ste.h (ffeste_filelinenum, ffeste_set_line): Likewise.
      
      	java
      	* lex.h (lineno): Rename to ...
      	(input_line): ... here
      	* parse-scan.y (lineno): Rename to ...
      	(input_line): ... here.
      	(reset_report): Rename lineno to input_line.
      	* check-init.c (check_init): Likewise.
      	* class.c (push_class): Likewise.
      	* decl.c (complete_start_java_method, end_java_method): Likewise.
      	* expr.c (expand_byte_code): Likewise.
      	* jcf-parse.c (give_name_to_class, parse_class_file): Likewise.
      	* jcf-write.c (generate_bytecode_insns): Likewise.
      	* lex.c (java_init_lex, java_allocate_new_line,
      	do_java_lex): Likewise.
      	* parse.h (YYNOT_TWICE): Likewise.
      	* parse.y (empty_statement, expression_statement,
      	java_pop_parser_context, java_parser_context_save_global,
      	yyerror, register_fields, method_header, safe_layout_class,
      	find_in_imports_on_demand, create_artificial_method,
      	source_end_java_method, start_complete_expand_method,
      	build_thisn_assign, java_complete_lhs,
      	maybe_absorb_scoping_block): Likewise.
      
      	objc
      	* objc-act.c (objc_init): Rename lineno to input_line.
      	(build_module_descriptor, build_selector_translation_table,
      	build_protocol_template, build_method_prototype_list_template,
      	build_category_template, build_selector_table,
      	build_class_template, build_super_template, build_ivar_template,
      	build_ivar_list_template, build_method_list_template,
      	build_method_template, add_instance_variable): Likewise.
      
      	treelang
      	* tree1.c (treelang_init): Rename lineno to input_line.
      
      From-SVN: r66333
      Nathan Sidwell committed
  11. 13 Apr, 2003 1 commit
    • tree.c (build_constructor): New function. · dcf92453
      	* tree.c (build_constructor): New function.
      	* tree.h: Prototype it.
      
      	* c-typeck.c (build_c_cast, pop_init_level)
      	* profile.c (build_function_info_value, build_gcov_info_value)
      	(create_profiler):
      	Use build_constructor.
      
      	* builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
      
      	* objc/objc-act.c (build_constructor):
      	Rename objc_build_constructor. Use build_constructor.
      	(build_objc_string_object, objc_add_static_instance)
      	(init_def_list, init_objc_symtab, init_module_descriptor)
      	(generate_static_references, build_selector_translation_table)
      	(build_descriptor_table_initializer, generate_descriptor_table)
      	(build_protocol_initializer, build_ivar_list_initializer)
      	(generate_ivars_list, build_dispatch_table_initializer)
      	(generate_dispatch_table, generate_protocol_list)
      	(build_category_initializer, build_shared_structure_initializer):
      	Update to match.
      
      ada:
      	* gigi.h, utils2.c (build_constructor):
      	Rename gnat_build_constructor. Use build_constructor.
      	* decl.c (gnat_to_gnu_entity)
      	* trans.c (tree_transform, pos_to_constructor, extract_values)
      	* ada/utils.c (build_template, convert_to_fat_pointer, convert)
      	(unchecked_convert)
      	* ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
      	(fill_vms_descriptor):
      	Update to match.
      
      cp:
      	* class.c (initialize_array)
      	* decl.c (reshape_init)
      	* decl2.c (build_expr_from_tree)
      	* init.c (build_zero_init)
      	* pt.c (tsubst_copy, tsubst_copy_and_build)
      	* rtti.c (tinfo_base_init, generic_initializer, ptr_initializer)
      	(ptm_initializer, class_initializer, get_pseudo_ti_init)
      	* semantics.c (finish_compound_literal)
      	* typeck.c (build_ptrmemfunc1)
      	* typeck2.c (store_init_value, process_init_constructor)
      	(build_functional_cast): Use build_constructor.
      
      f:
      	* com.c (ffecom_build_complex_constant_, ffecom_expr_)
      	(ffecom_init_zero_, ffecom_transform_namelist_, ffecom_vardesc_)
      	(ffecom_vardesc_array_, ffecom_vardesc_dims_, ffecom_2)
      	* ste.c (ffeste_io_ialist_, ffeste_io_cilist_, ffeste_io_cllist_)
      	(ffeste_io_icilist_, ffeste_io_inlist_, ffeste_io_olist_):
      	Use build_constructor.
      
      java:
      	* class.c (make_field_value, make_method_value, get_dispatch_table)
      	(make_class_data, emit_offset_symbol_table)
      	* constants.c (build_constants_constructor)
      	* java-tree.h (START_RECORD_CONSTRUCTOR)
      	* parse.y (maybe_build_array_element_wfl):
      	Use build_constructor.
      
      From-SVN: r65539
      Zack Weinberg committed
  12. 11 Apr, 2003 1 commit
    • c-decl.c (struct binding_level): Add shadowed_tags and function_body... · 339a28b9
      2003-04-10  Zack Weinberg  <zack@codesourcery.com>
      
      	* c-decl.c (struct binding_level): Add shadowed_tags and
      	function_body; remove this_block, tag_transparent, and
      	subblocks_tag_transparent; update comments.
      	(clear_binding_level, lookup_tag_reverse): Kill.
      	(make_binding_level): Use ggc_alloc_cleared or memset.
      	(lookup_tag): Remove struct binding_level* parameter.  All
      	callers changed. Just look at IDENTIFIER_TAG_VALUE, and
      	current_binding_level->tags if asked for thislevel_only or if
      	we might have to diagnose "struct foo; union foo;"
      	(pushlevel): Ignore argument.  Do not push another binding
      	level on the transition from the parameters to the top level
      	of the function body; just tweak the flags and proceed.
      	(poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
      	a function body, separate the parameter list from the
      	top-level local variables.
      	(set_block): Do nothing.
      	(pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
      	shadowed_tags if necessary.
      	(warn_if_shadowing): Nuke the special case for local shadowing
      	parameter.
      	(pushdecl): Do not create a shadow entry if we are replacing
      	an older decl in the same binding level.
      	(pushdecl_function_level): Tweak for new way of indicating
      	function scope.
      	(shadow_tag_warned): Use TYPE_NAME, not	lookup_tag_reverse.
      	(start_function): Don't set subblocks_tag_transparent.
      	(finish_function): Fix up the binding_level stack for totally
      	empty functions.  Otherwise, don't call poplevel.
      
      	* c-common.c (shadow_warning): MANDATORY argument is no longer
      	necessary.  Always use plain warning.
      	* c-common.h: Update to match.
      
      	* cfglayout.c (scope_to_insns_initialize): Clear block when we
      	hit the FUNCTION_DECL.
      	* function.c: Do not create cyclic tree structure.
      
      2003-04-10  Zack Weinberg  <zack@codesourcery.com>
      
      	* c-tree.h (struct lang_identifier): Replace global_value,
      	local_value members with symbol_value, tag_value.  Kill
      	implicit_decl and limbo_value.
      	(IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
      	IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
      	C_MISSING_PROTOTYPE_WARNED): Kill.
      	(IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
      	C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
      	(C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
      	(implicit_decl_warning, lookup_name_current_level,
      	record_function_scope_shadow): Don't prototype.
      	(pushdecl_function_level): Prototype.
      
      	* c-decl.c (truly_local_externals): New variable.
      	(struct binding_level): Adjust commentary.
      	(get_function_binding_level, clear_limbo_values,
      	record_function_scope_shadow): Kill.
      	(lookup_name_current_level, implicit_decl_warning): Are	now static.
      	(any_external_decl, record_external_decl): New static functions.
      	(clone_underlying type): Split out of pushdecl.
      	(c_print_identifier): Update to match changes to struct
      	lang_identifier.
      	(poplevel): Delete #if 0 block.  Make externals invisible
      	instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
      	call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
      	IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
      	(duplicate-decls): For real parm decl after a forward decl,
      	set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
      	foo(...) { } with only a warning.  Say whether a previous
      	declaration was implicit.
      	(warn_if_shadowing): Now handles all shadowing, not just
      	local-over-local.  Clarify comments.
      	(pushdecl): Rewritten.  There is no longer a distinction
      	between global and local symbol values; they're all
      	IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
      	DECL_EXTERNAL decls, and use any_external_decl to check
      	against previous externals.  Kill #if 0 blocks.  Don't
      	tolerate error_mark_node being NULL.
      	(pushdecl_top_level): Handle only those cases which
      	Objective C (the only user) needs.
      	(pushdecl_function_level): New function.
      	(implicitly_declare): Create ordinary decls with
      	C_DECL_IMPLICIT set.  Recycle old decls, however they got
      	created.
      	(lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
      	for C_DECL_INVISIBLE symbols.
      	(lookup_name_current_level): Likewise.  Use chain_member.
      	(c_make_fname_decl): Don't muck with DECL_CONTEXT.
      	Use pushdecl_function_level.
      	(builtin_function): Use C_DECL_INVISIBLE.
      	(start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
      	Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
      	(store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
      	(identifier_global_value): Same.  Must scan
      	global_binding_level in extremis.
      
      	* c-typeck.c (undeclared_variable): New static function, split
      	from build_external_ref.
      	(build_external_ref): Use DECL_CONTEXT, not
      	IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
      	an instance variable.  Restructure for clarity.
      	* objc/objc-act.c: Use identifier_global_value, not
      	IDENTIFIER_GLOBAL_VALUE.
      
      cp:
      	* decl.c: Update all calls to shadow_warning.
      
      testsuite:
      	* gcc.c-torture/execute/builtin-noret-2.c: New.
      	* gcc.c-torture/execute/builtin-noret-2.x: New.
      	XFAIL builtin-noret-2.c at -O1 and above.
      	* gcc.dg/redecl.c: New.
      	* gcc.dg/Wshadow-1.c: Update error regexps.
      
      From-SVN: r65460
      Zack Weinberg committed
  13. 08 Mar, 2003 1 commit
    • c-common.h (c_common_init, [...]): Update. · 4bfec483
      	* c-common.h (c_common_init, c_common_post_options): Update.
      	* c-objc-common.c (c_objc_common_init): Update for new prototype.
      	* c-opts.c (saved_lineno): New.
      	(c_common_post_options, c_common_init): Update prototypes,
      	move call to cpp_read_main_file from latter to former.
      	* c-tree.h (c_ojbc_common_init): Update.
      	* langhooks-def.h (lhd_post_options): New.
      	(LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
      	* langhooks.c (lhd_post_options): New.
      	* langhooks.h (struct lang_hooks): Update post_options and init hooks.
      	* toplev.c (no_backend): New.
      	(process_options): Call post_options hook and set main_input_filename
      	and input_filename here.
      	(lang_dependent_init, do_compile): post_options hook moved to
      	process_options.
      	* objc/objc-act.c (objc_init): Update prototype.
      	* objc/objc-act.h (objc_init): Update prototype.
      ada:
      	* misc.c (gnat_init): Update for new prototype.
      cp:
      	* cp-tree.h (cxx_init): Update prototype.
      	* lex.c (cxx_init): Similarly.
      f:
      	* com.c (ffe_init): Update prototype; move code to ffe_post_options.
      	(ffe_post_options): New.
      java:
      	* lang.c (java_init): Update prototype, move code to java_post_options.
      	(java_post_options): Similarly.
      treelang:
      	* tree1.c (in_fname): Fix type.
      	(treelang_init): Update prototype and use of in_fname.
      	* treelang.h (in_fname): Fix type.
      	* treetree.c (tree_code_if_start, tree_code_if_else,
      	tree_code_if_end, tree_code_create_function_prototype,
      	tree_code_create_function_initial, tree_code_create_funciton_wrapup,
      	tree_code_create_variable, tree_code_output_expression_statement)
      	: Fix prototypes and use of filenames.
      	* treetree.h: Similarly.
      
      From-SVN: r64001
      Neil Booth committed
  14. 07 Mar, 2003 2 commits
    • lang-specs.h (objective-c-header): Use .gch not .pch; support -no-integrated-cpp. · 6e5c4eaf
      	* objc/lang-specs.h (objective-c-header): Use .gch not .pch;
      	support -no-integrated-cpp.
      
      	* c-pch.c (get_ident): Use c_language_kind and flag_objc rather
      	than langhooks.name.
      
      From-SVN: r63955
      Geoffrey Keating committed
    • c-pch.c: Include langhooks.h. · 8643e92d
      	* c-pch.c: Include langhooks.h.
      	(IDENT_LENGTH): New.
      	(get_ident): New.
      	(pch_ident): Delete.
      	(pch_init): Use get_ident, IDENT_LENGTH.
      	(c_common_valid_pch): Likewise.  Also, use actual language
      	in warning message.
      	* Makefile.in (c-pch.o): Add langhooks.h to dependencies.
      
      	* objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
      	c-parse.in.
      	* objc/Make-lang.in (objc/objc-act.o): Add dependency on
      	gt-objc-objc-act.h.
      	(gt-objc-objc-act.h): New rule.
      	* objc/lang-specs.h: Support PCH.
      	* objc/objc-act.c: Include gt-objc-objc-act.h.
      	(objc_add_static_instance): Move num_static_inst out, mark for PCH.
      	(build_selector_reference_decl): Move idx out, mark for PCH.
      	(build_class_reference_decl): Likewise.
      	(build_objc_string_decl): Move *_idx out, mark for PCH.
      	(build_tmp_function_decl): Move xxx out, mark for PCH.
      
      From-SVN: r63924
      Geoffrey Keating committed
  15. 04 Mar, 2003 1 commit
  16. 02 Mar, 2003 1 commit
  17. 26 Feb, 2003 2 commits
    • objc-act.c: Include cgraph.h · 0d446150
      	* objc-act.c: Include cgraph.h
      	(mark_referenced_methods): New function.
      	(objc_init): Call it.
      	* objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
      
      	* c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
      	mode.
      
      	* optabs.c (expand_fix): Do not widen the input operand.
      
      	* expr.c (emit_group_store):  Fix crash when converting single
      	register into complex register.
      
      	* Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
      	* alias.c: Include timevar.h
      	(init_alias_analysis):  Set timevar
      	* jump.c: Include timevar.h
      	(rebuild_jump_labels):  Set timevar
      	* regcalss.c: Include timevar.h
      	(reg_scan):  Set timevar
      	* timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
      
      From-SVN: r63464
      Jan Hubicka committed
  18. 31 Jan, 2003 1 commit
    • tree.h (TYPE_BINFO_SIZE, [...]): Remove. · 1824b90d
      	* tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
      	(BINFO_ELTS): New #define.
      	* stor-layout.c (finalize_record_size): Don't set them.
      	* cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
      	BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
      	(BINFO_LANG_ELTS): New #define.
      	* cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
      	* java/class.c (make_class): Use BINFO_ELTS.
      	(set_super_info): Likewse.
      	(add_interface_do): Likewise.
      	* objc/objc-act.c (start_class): Use BINFO_ELTS.
      
      From-SVN: r62180
      Nathan Sidwell committed
  19. 30 Jan, 2003 1 commit
  20. 21 Jan, 2003 1 commit
    • Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn) (gtype-desc.o-warn... · dd859b8a
      gcc:
      	* Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
      	(gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
      	insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
      	c-parse.o-warn): Add -Wno-error.
      	(STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
      
      	* configure.in (--enable-werror): Add new flag.
      	* doc/install.texi (--enable-werror): Document.
      	* configure: Regenerate.
      
      	* objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
      
      cp:
      	Make-lang.in (cp/decl.o-warn): Add -Wno-error.
      
      f:
      	Make-lang.in (f/sta.o-warn): Add -Wno-error.
      
      java:
      	Make-lang.in (jvspec.o-warn): Add -Wno-error.
      
      From-SVN: r61544
      Kaveh R. Ghazi committed
  21. 11 Jan, 2003 1 commit
    • Makefile.in (parsedir): New variable. · 3859c32a
      	* Makefile.in (parsedir): New variable.
      	(docobjdir): New variable.
      	(c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
      	gengtype-lex.c, gengtype-yacc.c): Use parsedir.
      	(info, cpp.info, gcc.info, gccint.info, gccinstall.info,
      	cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
      	gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
      	Use docobjdir.
      	* objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
      	objc.maintainer-clean): Use parsedir.
      
      From-SVN: r61189
      Geoffrey Keating committed
  22. 10 Jan, 2003 1 commit
  23. 02 Jan, 2003 1 commit
    • except.c, [...]: Fix Copyright years. · 43c6a96a
      2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
      
      	* cp/except.c, cp/expr.c, cp/friend.c, cp/g++spec.c,
      	  cp/lang-options.h, cp/lang-specs.h, cp/lex.h,
      	  cp/ptree.c, cp/repo.c,
      	  java/jcf-reader.c, java/jvgenmain.c,
      	  java/keyword.gperf, java/lang-options.h,
      	  java/mangle.c, java/mangle_name.c,
      	  java/xref.c, java/zextract.c,java/zipfile.h,
      	  objc/Make-lang.in, objc/config-lang.in,
      	  objc/lang-specs.h, objc/objc-act.h: Fix
      	  Copyright years.
      
      From-SVN: r60783
      Steven Bosscher committed
  24. 01 Jan, 2003 1 commit
  25. 16 Dec, 2002 1 commit
  26. 24 Oct, 2002 1 commit
  27. 17 Sep, 2002 1 commit
  28. 06 Sep, 2002 3 commits
  29. 03 Sep, 2002 1 commit
  30. 27 Aug, 2002 1 commit
  31. 26 Aug, 2002 1 commit
  32. 20 Aug, 2002 2 commits
    • objc-act.c (building_objc_message_expr): Rename to current_objc_message_selector. · 9f05cef3
       2002-08-19  Ziemowit Laski  <zlaski@apple.com>
      
             * objc/objc-act.c (building_objc_message_expr): Rename to
             current_objc_message_selector.
      
      From-SVN: r56453
      Ziemowit Laski committed
    • objc-act.c (build_ivar_chain): Remove. · 1bd5981b
      [gcc]
      2002-08-19  Ziemowit Laski  <zlaski@apple.com>
      
              * objc/objc-act.c (build_ivar_chain): Remove.
              (objc_copy_list): Likewise.
              (get_class_ivars): Inline call to removed build_ivar_chain
              function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
              slot; use that slot (rather than CLASS_IVARS) when accessing
              ivars for base classes.  Call copy_list and chainon instead of
              objc_copy_list.
              (build_private_template): Call get_class_ivars instead of
              build_ivar_chain.
              (start_class): Allocate room for the CLASS_OWN_IVARS slot.
              (continue_class): Call get_class_ivars instead of
              build_ivar_chain.
              (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
              of DECL_BIT_FIELD (which may have been cleared).
              * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
      
      [gcc/testsuite]
      2002-08-19  Ziemowit Laski  <zlaski@apple.com>
      
              * objc.dg/bitfield-1.m: New test.
              * objc.dg/bitfield-2.m: New test.
      
      From-SVN: r56451
      Ziemowit Laski committed
  33. 10 Aug, 2002 2 commits
    • c-opts.c (set_std_cxx98, [...]): New. · f749a36b
      	* c-opts.c (set_std_cxx98, set_std_c89): New.
      	(COMMAND_LINE_OPTIONS): Move more from cppinit.c.
      	(c_common_decode_option): Handle new switches from cppinit.c.
      	Add -std=gnu++98.
      	* cppinit.c (set_lang): Rename cpp_set_lang.  Export.
      	(no_arg, no_num): Remove.
      	(COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
      	switches apart from -lang-objc and lang-asm.
      	(cpp_handle_option): Similarly.
      	* cpplib.h (cpp_set_lang): New.
      	* doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
      	-std=gnu++98.
      	* objc/lang-specs.h: Remove -ansi.
      cp:
      	* lang-specs.h: Remove -ansi.
      
      From-SVN: r56185
      Neil Booth committed
    • c-common.c (flag_objc): New. · 0f7866e7
      2002-08-09  Ziemowit Laski  <zlaski@apple.com>
      
              * c-common.c (flag_objc): New.
              * c-common.h (c_language_kind): Get rid of clk_objective_c
              enum value.
              (flag_objc): New extern declaration.
              * c-decl.c (implicitly_declare): Call objc_check_decl
              instead of maybe_objc_check_decl.
              (finish_decl): Likewise.
              (grokfield): Likewise.
              (finish_struct): Likewise.
              * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
              (maybe_objc_comptypes): Rename to objc_comptypes.
              (maybe_building_objc_message_expr): Rename to
              objc_message_selector.
              * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
              replace with flag_objc as needed.
              * c-opts.c (c_common_init_options): Likewise.
              (c_common_decode_option): Likewise.
              * c-parse.in (init_reswords): Likewise.
              * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
              (maybe_objc_comptypes): Rename to objc_comptypes.
              (maybe_building_objc_message_expr): Rename to
              objc_message_selector.
              * c-typeck.c (comptypes): Call objc_comptypes instead of
              maybe_objc_comptypes, and/or objc_message_selector instead of
              (comp_target_types): Likewise.
              (convert_for_assignment): Likewise.
              (warn_for_assignment): Likewise.
              * cppinit.c (init_builtins): Set __OBJC__ manifest constant
              independently of those for other languages.
              * objc/objc-act.c (maybe_objc_comptypes): Delete.
              (maybe_objc_check_decl): Delete.
              (maybe_building_objc_message_expr): Rename to
              objc_message_selector.
              * objc/objc-lang.c (objc_init_options): Use clk_c instead of
              clk_objective_c; set flag_objc flag.
      
      From-SVN: r56173
      Ziemowit Laski committed
  34. 08 Aug, 2002 1 commit