1. 31 Jul, 2003 11 commits
  2. 30 Jul, 2003 23 commits
  3. 29 Jul, 2003 6 commits
    • c-decl.c (last_function_parm_vars, [...]): New static variables. · 55d54003
      	* c-decl.c (last_function_parm_vars, current_function_parm_vars):
      	New static variables.
      	(struct c_scope): Add parms and warned_forward_parm_decls
      	fields; remove parm_order.
      	(storedecls, storetags): Delete.
      	(poplevel): Also clear bindings on the parms chain.
      	(pushdecl): Handle forward declarations of parameters, and
      	chain PARM_DECLs on the parms list, not the names list.
      	(lookup_name_current_level): Check for PARM_DECLs on the parms
      	list too.
      	(push_parm_decl): Don't update parm_order.
      	(clear_parm_order): Rename mark_forward_parm_decls.  Issue the
      	warning, only once per parameter list, and set TREE_ASM_WRITTEN
      	on the decls here.  Then move the forward decls to the names list.
      	(grokparms): Set last_function_parm_vars.
      	(get_parm_info): Don't use gettags or getdecls.  No need to
      	extract non-parms from the parms list, or reorganize the parms
      	list.  Feed nonparms back in the TREE_TYPE of the list node
      	returned.  Issue only one error per parameter list for "void"
      	appearing more than once in said parameter list.  Collapse
      	parmlist_tags_warning into this function to avoid double scan
      	of tags list.
      	(start_function): Set current_function_parm_vars.
      	(store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
      	directly.  Get non-parms from current_function_parm_vars; no
      	need to extract them from the parms chain.  Properly bind tags
      	in the new scope.
      	(store_parm_decls_oldstyle): No need to extract non-parameters
      	from the parms chain, nor to store them back afterward.  Move
      	declaration to top of function, restructure code reordering
      	DECL_ARGUMENTS.
      	(store_parm_decls): No need to save and restore warn_shadow.
      	* c-parse.in: Don't call parmlist_tags_warning nor
      	clear_parm_order.  Call mark_forward_parm_decls when forward
      	parm decls are encountered.
      	* c-tree.h: Prototype mark_forward_parm_decls; not
      	clear_parm_order or parmlist_tags_warning.
      
      testsuite:
      	* gcc.dg/struct-in-proto-1.c: New test.
      
      From-SVN: r69945
      Zack Weinberg committed
    • c-common.c (allow_pch): Remove. · 18c81520
      2003-07-29  Geoffrey Keating  <geoffk@apple.com>
      
      	* c-common.c (allow_pch): Remove.
      	* c-common.h (allow_pch): Remove.
      	(c_common_no_more_pch): Declare.
      	* c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
      	* c-pch.c: Include hosthooks.h.
      	(c_common_valid_pch): Don't check allow_pch.
      	(c_common_read_pch): Clear valid_pch to prevent reading PCH files.
      	(c_common_no_more_pch): New.
      	* ggc-common.c: Include hosthooks.h.
      	(gt_pch_save): Call gt_pch_get_address.
      	(gt_pch_restore): Call gt_pch_use_address.
      	* hooks.c (hook_voidp_size_t_null): New.
      	(hook_bool_voidp_size_t_false): New.
      	* hooks.h (hook_voidp_size_t_null): New.
      	(hook_bool_voidp_size_t_false): New.
      	* hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
      	(HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
      	(HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
      	HOST_HOOKS_GT_PCH_USE_ADDRESS.
      	* hosthooks.h (struct host_hooks): Add gt_pch_get_address,
      	gt_pch_use_address.
      	* doc/hostconfig.texi (Host Common): Document
      	HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
      	* Makefile.in (c-pch.o): Depend on hosthooks.h.
      	(ggc-common.o): Likewise.
      
      	* config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
      	(HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
      	(pch_address_space): New.
      	(darwin_rs6000_gt_pch_get_address): New.
      	(darwin_rs6000_gt_pch_use_address): New.
      
      Index: cp/ChangeLog
      2003-07-29  Geoffrey Keating  <geoffk@apple.com>
      
      	* parser.c (cp_lexer_new_main): Use c_common_no_more_pch instead
      	of setting valid_pch by hand.
      
      From-SVN: r69944
      Geoffrey Keating committed
    • Makefile.in (LIBCPP_DEPS): Add HASHTAB_H. · 8f9b4009
      	* Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
      	* cppfiles.c: Completely rewritten.
      	* c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
      	struct cpp_path is now struct cpp_dir.
      	(remove_duplicates): Don't simplify path names.
      	* c-opts.c (c_common_parse_file): cpp_read_next_file renamed
      	cpp_stack_file.
      	* cpphash.h: Include hashtab.h.
      	(_cpp_file): Declare.
      	(struct cpp_buffer): struct include_file is now struct _cpp_file,
      	and struct cpp_path is now struct cpp_dir.  Rename members.
      	(struct cpp_reader): Similarly.  New members once_only_files,
      	file_hash, file_hash_entries, quote_ignores_source_dir,
      	no_search_path, saw_pragma_once.  Remove all_include_files and
      	max_include_len.  Make some members bool.
      	(_cpp_mark_only_only): Renamed from _cpp_never_reread.
      	(_cpp_stack_file): Renamed from _cpp_read_file.
      	(_cpp_stack_include): Renamed from _cpp_execute_include.
      	(_cpp_init_files): Renamed from _cpp_init_includes.
      	(_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
      	* cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
      	(cpp_read_next_file): Rename and move to cppfiles.c.
      	(cpp_read_main_file): Update.
      	* cpplib.c (run_directive): Update for renamed members.
      	(do_include_common, _cpp_pop_buffer): Update.
      	(do_import): Undeprecate #import.
      	(do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
      	* cpplib.h: Remove file_name_map_list.
      	(cpp_options): Remove map_list.
      	(cpp_dir): Rename from cpp_path.  New datatype for name_map.
      	(cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
      testsuite:
      	* gcc.dg/cpp/include2.c: Only expect one message.
      
      From-SVN: r69942
      Neil Booth committed
    • * decl.c (finish_enum): Initialize underlying_type. · ad96995b
      From-SVN: r69941
      Rainer Orth committed
    • Makefile.in: Make stamp-objdir safe for parallel builds. · a6400add
      2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
      
      	* Makefile.in:  Make stamp-objdir safe for parallel builds.
      
      From-SVN: r69937
      Phil Edwards committed
    • GtkButtonPeer.java: Call getName rather than getXLFD. · 5596e92f
      2003-07-29  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* gnu/java/awt/peer/gtk/GtkButtonPeer.java: Call getName rather
      	than getXLFD.
      	* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java: Likewise.
      	* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java: Likewise.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
      	(gtkSetFont): Scale size parameter by PANGO_SCALE.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c:
      	Likewise.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c:
      	Likewise.
      
      From-SVN: r69936
      Thomas Fitzsimmons committed