1. 25 Jul, 2003 11 commits
    • [multiple changes] · ec8a1dd5
      2003-07-25  Mark Wielaard  <mark@klomp.org>
      
      	* Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java
      	added.
      	* Makefile.in: Likewise.
      
      2003-07-25  Jeroen Frijters  <jeroen@frijters.net>
      
      	* java/awt/Component.java
      	(getPreferredSize): Call preferredSize.
      	(preferredSize): Moved body of getPreferredSize here.
      	(getMinimumSize): Call minimumSize.
      	(minimumSize): Moved body of getMinimumSize here.
      	(prepareImage): Fall back on Toolkit.prepareImage if there is no peer
      	(checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but
      	pass -1
      	* java/awt/Container.java
      	(validate): Don't validate if there is no peer.
      	(update): Clear background before calling paint.
      	* java/awt/GridBagLayout.java
      	Completed the implementation and fixed several bugs.
      	* java/awt/MediaTracker.java
      	(MediaEntry.imageUpdate): Fixed typo. & instead of | was used to
      	combine flags.
      	* java/awt/Window.java
      	(Window): Don't call setVisible(false). Windows are invisible by
      	default and calling virtual methods from constructor causes
      	compatibility problems (e.g. subclasses may assume that the peer
      	already exists).
      
      2003-07-25  Michael Koch  <konqueror@gmx.de>
      
      	* java/awt/GridBagLayout.java:
      	Totally reworked and partly implemented.
      	* java/awt/GridBagLayoutInfo.java:
      	New file.
      
      From-SVN: r69785
      Mark Wielaard committed
    • passes.texi (Passes): Mention pretty-printing and diagnostic files. · 0fe37f68
              * doc/passes.texi (Passes): Mention pretty-printing and
              diagnostic files.
      
      From-SVN: r69783
      Gabriel Dos Reis committed
    • * decl.c (force_poplevels): Fix warning call. · b8bae365
      From-SVN: r69782
      Nathan Sidwell committed
    • extend.texi (Function Attributes): GNU C++ does now allow unused parameter decls. · 50fc59e7
      	* doc/extend.texi (Function Attributes): GNU C++ does now allow
      	unused parameter decls.
      	(Attribute Syntax): GNU C++ does not allow label attributes to be
      	after the ':'.
      
      From-SVN: r69781
      Nathan Sidwell committed
    • objc-act.c (objc_check_decl): Don't use xxx_with_decl. · cd475805
              * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
              (objc_declare_class): Likewise.
              (error_with_ivar): Likewise.
              (start_class): Likewise.
              (warn_with_method): Likewise.
      
      java/
              * expr.c (expand_java_field_op): Don't use xxx_with_decl
              (expand_java_field_op): Likewise.
              * class.c (layout_class_method): Likewise
              (emit_register_classes): Likewise.
              * decl.c (pushdecl): Likewise.
              (poplevel): Likewise.
              (force_poplevels): Likewise.
              (give_name_to_locals): Likewise.
              * check-init.c (check_for_initialization): Likewise.
      
      From-SVN: r69780
      Gabriel Dos Reis committed
    • Revert patch for 11617 which accidently crept in · e710066d
      From-SVN: r69779
      Nathan Sidwell committed
    • re PR c++/11596 (ICE with int templates) · a91db711
      cp:
      	PR c++/11596
      	* pt.c (maybe_fold_nontype_arg, maybe_fold_nontype_args): Remove.
      	(tsubst_template_arg): New.
      	(tsubst_template_arg_vector): Rename to ...
      	(tsubst_template_args): ... this. Accept a TREE_LIST form. Use
      	tsubst_template_arg.
      	(coerce_template_parms): Use tsubst_template_arg for default
      	value.
      	(tsubst_template_parms): Likewise.
      	(tsubst_aggr_type): Adjust.
      	(tsubst_decl): Likewise.
      	(tsubst): Use tsubst_template_arg for a DOMAIN. Adjust.
      	(tsubst_copy) <TEMPLATE_ID_EXPR case>: Use tsubst_template_args.
      testsuite:
      	PR 11596
      	* g++.dg/template/defarg3.C: New test.
      
      	* g++.dg/ext/packed2.C: Pack member struct too. Explain why.
      
      From-SVN: r69776
      Nathan Sidwell committed
    • Remove pedwarn_with_decl, warning_with_decl and error_with_decl from GCC. · b6fe0bb8
              Remove pedwarn_with_decl, warning_with_decl and error_with_decl
              from GCC.
              * calls.c (try_to_integrate): Don't use xxx_with_decl.
              (expand_call): Likewise.
              * dwarfout.c (output_reg_number): Likewise.
              * expr.c (expand_expr): Likewise.
              * function.c (assign_temp): Likewise.
              (uninitialized_vars_warning): Likewise.
              (setjmp_args_warning): Likewise.
              (expand_function_end): Likewise.
              * stmt.c (fixup_gotos): Likewise.
              (warn_about_unused_variables): Likewise.
              (expand_end_bindings): Likewise.
              * stor-layout.c (layout_decl): Likewise.
              (place_field): Likewise.
              * toplev.c (check_global_declarations): Likewise.
              (rest_of_handle_inlining): Likewise.
              (default_tree_printer): New function.
              (general_init): Initialize diagnostic machinery before routing
              signals to the ICE machinery.  Set default tree printer.
              * toplev.h (pedwarn_with_decl): Remove declaration.
              (warning_with_decl): Likewise.
              (error_with_decl): Likewise.
              (pedwarn): Remove attribute for the time being.
              * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
              * varasm.c (named_section): Likewise.
              (make_decl_rtl): Likewise.
              (assemble_variable): Likewise.
              (merge_weak): Likewise.
              (declare_weak): Likewise.
      
              * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
              * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
              (format_with_decl): Remove.
              (diagnostic_for_decl): Likewise.
              (pedwarn_with_decl): Likewise.
              (warning_with_decl): Likewise.
              (error_with_decl): Likewise.
              (diagnostic_initialize): Adjust.
              (diagnostic_count_diagnostic): Likewise.
              (announce_function): Likewise.
              (lhd_print_error_function): Likewise.
              (diagnostic_report_current_module): Likewise.
              (default_diagnostic_starter): Likewise.
              (diagnostic_report_diagnostic): Likewise.
              (default_diagnostic_finalizer): Likewise.
              (verbatim): Likewise.
              (error): Likewise.
              (warning): Likewise.
              * opts.c (common_handle_option): Likewise.
              * pretty-print.c: New file.
              * c-pretty-print.h (pp_base): Override.
              * c-pretty-print.c: Adjust use of macros throughout.
              (pp_buffer): New macro.
              (pp_newline): Likewise.
              * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
              * Makefile.in (DIAGNOSTIC_H): New variable.
              (c-errors.o): Use it.
              (c-objc-common.o): Likewise.
              (c-common.o): Likewise.
              (c-opts.o): Likewise.
              (c-format.o): Likewise.
              (diagnostic.o): Likewise.
              (opts.o): Likewise.
              (toplev.o): Likewise.
              (rtl-error.o): Likewise.
              (dwarf2out.o): Likewise.
              (jump.o): Likewise.
              (pretty-print.o): New rule.
      
      cp/
              * Make-lang.in (cp/error.o): Depend on DIAGNOSTIC_H.
              * error.c: Use the new pretty-printer fraamework.
      
      From-SVN: r69773
      Gabriel Dos Reis committed
    • char_traits.h (class char_traits): Put all the real work into the new class… · d5ff4e3f
      char_traits.h (class char_traits): Put all the real work into the new class template __gnu_cxx::char_traits.
      
      
      	* /include/bits/char_traits.h (class char_traits): Put all the
      	real work into the new class template __gnu_cxx::char_traits.
      	Gave generic definitions for member functions.  Types are taken
      	from the new class template __gnu_cxx::_Char_types.
      	* testsuite/21_strings/char_traits/requirements/short/1.cc: New
      	file.  Test of std::char_traits<short>, which serves as a test of
      	the char_traits primary template.
      
      From-SVN: r69772
      Matt Austern committed
    • decl.c (pushdecl_class_level): Don't use push_srcloc/pop_srcloc which causes… · b3179b0d
      decl.c (pushdecl_class_level): Don't use push_srcloc/pop_srcloc which causes errors messages to incorrectly...
      
      
      	* decl.c (pushdecl_class_level):   Don't use push_srcloc/pop_srcloc
      	which causes errors messages to incorrectly mention included files.
      
      From-SVN: r69771
      Per Bothner committed
    • Daily bump. · c60ab831
      From-SVN: r69766
      GCC Administrator committed
  2. 24 Jul, 2003 24 commits
  3. 23 Jul, 2003 5 commits