1. 30 Jul, 2003 18 commits
  2. 29 Jul, 2003 20 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
    • config-ml.in: Use ac_configure_args directly instead of ml_arguments. · 52c0c542
      2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
      
      	* config-ml.in:  Use ac_configure_args directly instead of
      	ml_arguments.  Only set ml_norecursion if --no[-]recursion is
      	actually seen.
      
      From-SVN: r69934
      Phil Edwards committed
    • Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists. · b2790407
      2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
      
      	* Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
      	(info):  Depend on stmp-docobjdir.
      
      From-SVN: r69933
      Phil Edwards committed
    • * configure: Regenerate. · 8e3940b2
      From-SVN: r69932
      Rainer Orth committed
    • re PR c++/11131 (Unrelated declaration removes inline flag from function) · 987bf56f
      
      	PR C++/11131
      	* tree-inline.c (expand_call_inline): Always call inlinable_function_p
      	in !unit-at-a-time mode.
      
      From-SVN: r69929
      Jan Hubicka committed
    • defineclass.cc (handleField): Throw exception if field name is duplicated. · a47c20a7
      	* defineclass.cc (handleField): Throw exception if field name is
      	duplicated.
      	(handleMethod): Throw exception for duplicate method.
      
      From-SVN: r69928
      Tom Tromey committed
    • natIconv.cc (write): Handle case where output buffer is too small. · b33ab7a9
      	* gnu/gcj/convert/natIconv.cc (write): Handle case where
      	output buffer is too small.
      
      From-SVN: r69927
      Tom Tromey committed
    • re PR c++/9447 (using Base<T>::member does not work) · 399dedb9
      cp:
      	PR c++/9447
      	* decl.c (add_binding): Add bval local variable.
      	(push_class_level_binding): Likewise. Allow a USING_DECL to be
      	pushed.
      	* decl2.c (do_class_using_decl):  The type of a using decl is
      	unknown.
      	* parser.c (cp_parser_postfix_expression): Refactor unqualified-id
      	function call lookup code.
      	* pt.c (tsubst): A USING_DECL will have unknown type.
      	(tsubst_copy_and_build): Allow a using decl.
      	(type_dependent_expression_p): A USING_DECL will make it
      	dependent.
      	* semantics.c (finish_member_declaration): Push a dependent using
      	declaration.
      testsuite:
      	PR c++/9447
      	* g++.dg/template/using1.C: New test.
      	* g++.dg/template/using2.C: New test.
      	* g++.dg/template/using3.C: New test.
      	* g++.dg/template/using4.C: New test.
      
      From-SVN: r69921
      Nathan Sidwell committed
    • crontab: Update invocation of gcc_release according to the previous changes there. · 16ff3a23
      	* crontab: Update invocation of gcc_release according to the
      	previous changes there.  Add automatic 3.4 snapshots from mainline.
      
      From-SVN: r69919
      Gerald Pfeifer committed
    • string-opt-9.c: strcmp returns int. · f67f7737
      * gcc.c-torture/execute/string-opt-9.c: strcmp returns int.
      * gcc.c-torture/execute/string-opt-10.c: Likewise.
      
      From-SVN: r69916
      Alexandre Oliva committed
    • c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect main function. · 5f0eabcc
      	* c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
      	main function.
      
      From-SVN: r69913
      Geoffrey Keating committed
    • * os_dep.c: Remove redundancy introduced in last merge. · 5fd5bdbd
      From-SVN: r69912
      Loren J. Rittle committed
    • re PR c++/11530 ([unit-at-a-time] inline static function not emitted with -O3) · 415d4636
      	PR c++/11530
      	* parser.c (cp_parser_postfix_expression): Do not call mark_used.
      	* semantics.c (finish_id_expression): Call mark_used for all
      	declarations.
      
      	PR c++/11530
      	* g++.dg/opt/call1.C: New test.
      
      From-SVN: r69911
      Mark Mitchell committed
    • re PR c++/11667 (wider-than-int enums never compare equal to 0) · 7b6d72fc
      	PR c++/11667
      	* c-common.c (shorten_compare): Take into account differences
      	between C and C++ representation for enumeration types.
      	* tree.h (set_min_and_max_values_for_integral_type): Declare.
      	* stor-layout.c (set_min_and_max_values_for_integral_type): New
      	function, broken out from ...
      	(fixup_signed_type): ... here and ...
      	(fixup_unsigned_type): ... here.
      
      	PR c++/11667
      	* call.c (standard_conversion): Allow all integral->enumeral
      	conversions, after marking them as bad.
      	* decl.c (finish_enum): Make sure that all enumerators are
      	properly converted to the underlying type.
      	(build_enumerator): Set DECL_CONTEXT for namespace-scope
      	enumeration types.
      	* pt.c (tsubst_copy): Adjust handling of CONST_DECLs accordingly.
      	(tsubst_enum): Tidy.
      
      	* Make-lang.in (typeck.o): Depend on convert.h.
      	(class.o): Likewise.
      	(rtti.o): Likewise.
      	* call.c: Include convert.h.
      	(convert_arg_to_ellipsis): Use convert_to_real.
      	* class.c: Include convert.h.
      	(build_base_path): Use convert_to_integer.
      	* rtti.c: Include convert.h.
      	(build_headof): Use convert_to_integer.
      	* typeck.c: Include convert.h.
      	(decay_conversion): Use convert_to_integer.
      	(build_unary_op): Use build_nop.
      	(get_delta_difference): Use convert_to_integer.
      	(build_ptrmemfunc): Avoid unncessary conversions.
      
      From-SVN: r69909
      Mark Mitchell committed
    • Daily bump. · 92a6fb2c
      From-SVN: r69907
      GCC Administrator committed
  3. 28 Jul, 2003 2 commits
    • c-decl.c: Update commentary, adjust blank lines throughout. · 14077d68
      	* c-decl.c: Update commentary, adjust blank lines throughout.
      	(struct c_scope): Fix indentation.  Reorder members so
      	outer-context pointers come first, booleans last.
      	(duplicate_decls, define_label): Use a 'locus' variable for
      	diagnostic locations in a few more places.
      	(warn_if_shadowing): Un-split a conditional that fits on one line.
      	(c_init_decl_processing): No need to clear current_scope and
      	current_function_scope.
      	(start_decl): Merge if/else if statements with same action.
      	(push_parm_decl): Rename old_immediate_size_expand to use
      	save_foo convention; save/restore around entire function.
      	(grokdeclarator): Remove unnecessary braces.
      
      From-SVN: r69903
      Zack Weinberg committed
    • decl2.c (mark_member_pointers): Verify that member pointer points to the function. · 58579435
      	* decl2.c (mark_member_pointers): Verify that member pointer points to
      	the function.
      
      From-SVN: r69902
      Jan Hubicka committed