1. 05 Feb, 2004 39 commits
    • dwarf2out.c (force_type_die): Look up input type itself instead of root_type() of type. · 9733d507
             * dwarf2out.c (force_type_die): Look up input type itself
             instead of root_type() of type.
      
      From-SVN: r77348
      Devang Patel committed
    • s390.md ("*tmqidi_ext"): New insn. · 19796784
      2004-02-04  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/s390.md ("*tmqidi_ext"): New insn.
      	("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
      	pre-reload splitters are transformed to post-reload
      	define_insn_and_split patterns.
      	("*tmqisi_ext"): Renamed old "*tmqi_ext".
      
      From-SVN: r77346
      Andreas Krebbel committed
    • utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES with targetm.calls.promote_prototypes. · 136e64db
      	ada/
      	* ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
      	with targetm.calls.promote_prototypes.
      
      	gcc/
      	* config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
      	TARGET_PROMOTE_PROTOTYPES.
      
      	cp/
      	* call.c (type_passed_as): Replace PROMOTE_PROTOTYPES with
      	targetm.calls.promote_prototypes.
      
      	java/
      	* Make-lang.in (java/decl.o, java/expr.o, java/parse.o):
      	Depend on target.h.
      	* decl.c: Include target.h.
      	(start_java_method): Replace PROMOTE_PROTOTYPES with
      	targetm.calls.promote_prototypes.
      	* expr.c: Include target.h.
      	(pop_arguments): Replace PROMOTE_PROTOTYPES with
      	targetm.calls.promote_prototypes.
      	* parse.y: Include target.h.
      	(start_complete_expand_method): Replace PROMOTE_PROTOTYPES
      	with targetm.calls.promote_prototypes.
      
      From-SVN: r77345
      Kazu Hirata committed
    • re PR target/13750 (Ada bootstrap failure on Tru64 UNIX: b_gnat[1b].o comparison failure) · 839ee4bc
      	PR middle-end/13750
      	Revert:
      	2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      	PR pch/13361
      	* c-typeck.c (constructor_asmspec): Delete.
      	(struct initializer_stack): Delete field 'asmspec'.
      	(start_init): Delete saving of asmspec.
      	(finish_init): Don't update constructor_asmspec.
      	* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
      	* stmt.c (expand_asm): Duplicate strings from tree.
      	(expand_asm_operands): Likewise.
      	* tree.c (tree_size): Update computation of size of STRING_CST.
      	(make_node): Don't make STRING_CST nodes.
      	(build_string): Allocate string with tree node.
      	* tree.def (STRING_CST): Update comment.
      	* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
      	(tree_string): Place contents of string in tree node.
      	* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
      	from tree.
      
      	cp:
      	PR middle-end/13750
      	Revert:
      	2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      	PR pch/13361
      	* cp/lex.c (handle_pragma_interface): Duplicate string from tree.
      	(handle_pragma_implementation): Likewise.
      
      	testsuite:
      	PR middle-end/13750
      	Revert:
      	2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      	PR pch/13361
      	* testsuite/g++.dg/pch/wchar-1.C: New.
      	* testsuite/g++.dg/pch/wchar-1.Hs: New.
      
      From-SVN: r77343
      Rainer Orth committed
    • diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to msgid. · 687d688e
      	* diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
      	msgid.
      
      From-SVN: r77341
      Joseph Myers committed
    • locale_facets.tcc (money_get::do_get(string_type&)): Thousands-sep are always optional... · d9010fca
      2004-02-05  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
      	Thousands-sep are always optional; thousands-sep are not allowed
      	after the decimal_point.
      	* testsuite/22_locale/money_get/get/char/12.cc: New.
      	* testsuite/22_locale/money_get/get/char/13.cc: New.
      	* testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
      	* testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
      
      	* testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
      	* testsuite/22_locale/money_get/get/char/2.cc: Likewise.
      	* testsuite/22_locale/money_get/get/char/3.cc: Likewise.
      	* testsuite/22_locale/money_get/get/char/4.cc: Likewise.
      	* testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
      	* testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
      	* testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
      	* testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
      
      	* testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
      	the standard.
      	* testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
      
      From-SVN: r77339
      Paolo Carlini committed
    • Fix typo and clarify comment. · 6327d36a
      From-SVN: r77338
      Richard Kenner committed
    • os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T): Define. · d232925f
      	* config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
      	Define.
      	* config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
      	it to decide whether FIONREAD should take an off_t or int argument.
      
      From-SVN: r77336
      Richard Sandiford committed
    • re PR c++/13714 (destructor name `const s' does not match type `const s' of expression) · fca00ffb
      	PR c++/13714
      	* typeck.c (lookup_destructor): Tweak error message.
      
      From-SVN: r77334
      Mark Mitchell committed
    • Scrollbar.java (next_scrollbar_number): New field. · bc1ec7f7
      2004-02-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	* java/awt/Scrollbar.java (next_scrollbar_number): New field.
      	(Scrollbar (int, int, int, int, int)): Make default page
      	increment 10.
      	(setValues): Only call peer.setValues if one of the values has
      	changed.
      	(generateName): New method.
      	(getUniqueLong): New method.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
      	(range_scrollbar): Remove structure.
      	(post_adjustment_event): Remove function.
      	(post_change_event): Accept jobject argument.
      	(create): Cast jints to gdoubles.  Round scrollbar values to the
      	nearest integer.  Clamp min, max and value settings.
      	(connectJObject): Connect hook to widget->window.
      	(connectSignals): Remove range_scrollbar structure variables.
      	Remove "move-slider" connection.  Pass global peer reference to
      	"value-changed" callback.
      	(setLineIncrement): Cast jint value to gdouble.
      	(setPageIncrement): Likewise.
      	(setValues): Likewise.  Clamp min, max and value settings.
      
      From-SVN: r77332
      Thomas Fitzsimmons committed
    • tree.c (cp_cannot_inline_tree_fn): Allow inlining of comdat functions. · 6039a93d
      
      	* tree.c (cp_cannot_inline_tree_fn):  Allow inlining of comdat
      	functions.
      
      From-SVN: r77330
      Jan Hubicka committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 693dcd3d
      	* javax/swing/AbstractCellEditor.java
      	(getCellEditorValue): Removed.
      	* javax/swing/Box.java: Reformated.
      	(serialVersionUID): New field.
      	* javax/swing/ButtonGroup.java:
      	Removed some weird whitespace.
      	* javax/swing/CellEditor.java: Reformated.
      	* javax/swing/CellRendererPane.java
      	(serialVersionUID): New field.
      	(AccessibleCellRendererPaneserialVersionUID): New field.
      	* javax/swing/DefaultListModel.java
      	(serialVersionUID): New field.
      	* javax/swing/JEditorPane.java
      	(serialVersionUID): New field.
      	(setPage): Throws IOException.
      	(addHyperlinkListener): Implemented.
      	(removeHyperlinkListener): Implemented.
      	(getHyperlinkListener): New method.
      	* javax/swing/JFileChooser.java
      	(serialVersionUID): New field.
      	(AccessibleJFileChooser.serialVersionUID): New field.
      	(addActionListener): Implemented.
      	(removeActionListener): Implemented.
      	(getActionListeners): New method.
      	* javax/swing/JFormattedTextField.java
      	(serialVersionUID): New field.
      	(AbstractFormatter.serialVersionUID): New field.
      	(clone): Throws CloneNotSupportedException
      	(setEditValid): Add missing argument.
      	(stringToValue): Throws ParseExcpetion.
      	(valueToString): Throws ParseException.
      	(commitEdit): Throws ParseException.
      	* javax/swing/JLabel.java
      	(serialVersionUID): New field.
      	* javax/swing/JList.java
      	(serialVersionUID): New field.
      	(addListSelectionListener): Reformated.
      	(removeListSelectionListener): Reformated.
      	(getListSelectionListeners): New method.
      	* javax/swing/colorchooser/AbstractColorChooserPanel.java:
      	Reformated.
      	(serialVersionUID): New field.
      	* javax/swing/table/AbstractTableModel.java
      	(getValueAt): Removed.
      	(getColumnCount): Removed.
      	(getRowCount): Removed.
      
      From-SVN: r77329
      Michael Koch committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 2d168657
      	* java/awt/datatransfer/DataFlavor.java
      	(imageFlavor): Javadoc added.
      	(javaJVMLocalObjectType): Fixed.
      
      From-SVN: r77328
      Michael Koch committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 7959d598
      	* java/lang/Thread.java
      	(Thread): Reordered.
      	(setContextClassLoader): Fixed javadoc comment.
      	(setPriority): Reordered.
      	(yield): Reordered.
      	(initialize_native): Reordered.
      	(gen_name): Reordered.
      
      From-SVN: r77327
      Michael Koch committed
    • altivec.md (*movv4si_internal): At least one operand must be altivec_register_operand. · 20a20bf0
      2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
      
              * config/rs6000/altivec.md (*movv4si_internal): At least one
              operand must be altivec_register_operand.
              (*movv8hi_internal1): Likewise.
              (*movv16qi_internal1): Likewise.
              (*movv4sf_internal1): Likewise.
      
      From-SVN: r77326
      Dorit Naishlos committed
    • configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr. · 6b37db3c
              * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
              * configure: Regenerate.
      
      From-SVN: r77325
      David Edelsohn committed
    • re PR c++/14008 (Confusing diagnostic when omitting a template parameter) · 2f69c594
      	PR c++/14008
      	* g++.dg/parse/error15.C: New test.
      	* g++.dg/parse/crash11.C: Update dg-error mark.
      
      From-SVN: r77324
      Giovanni Bajo committed
    • re PR c++/14008 (Confusing diagnostic when omitting a template parameter) · 2097b5f2
      	PR c++/14008
      	* parser.c (cp_parser_diagnose_invalid_typename): Removed parsing
      	code, only emits the diagnostic now. Added lookup of the identifier
      	and support for qualified ids.
      	(cp_parser_parse_and_diagnose_invalid_type_name): New function.
      	Parse an (invalid) type name as id-expression within a declarator.
      	(cp_parser_simple_declaration): Use it.
      	(cp_parser_member_declaration): Likewise.
      	(cp_parser_make_typename_type): New function. Handle errors through
      	cp_parser_diagnose_invalid_typename.
      	(cp_parser_elaborated_type_specifier): Use it.
      
      From-SVN: r77323
      Giovanni Bajo committed
    • Thread.java: Reordered fields... · 5ad13654
      2004-02-05  Michael Koch  <konqueror@gmx.de>
      
      	* java/lang/Thread.java: Reordered fields, reformated much code,
      	no functional changes, some variables renamed, javadoc comments
      	merged.
      
      From-SVN: r77322
      Michael Koch committed
    • Deflater.java, [...]: Reformated and javadoc comments merged from classpath. · 6d0c7d7b
      2004-02-05  Michael Koch  <konqueror@gmx.de>
      
      	* java/util/zip/Deflater.java,
      	java/util/zip/DeflaterOutputStream.java,
      	java/util/zip/GZIPInputStream.java:
      	Reformated and javadoc comments merged from classpath.
      
      From-SVN: r77319
      Michael Koch committed
    • 2004-02-05 Michael Koch <konqueror@gmx.de> · 99814868
      	* gnu/java/nio/NIOServerSocket.java
      	(impl): Unused, removed.
      	* gnu/java/nio/SocketChannelImpl.java
      	(finnishConnect): Don't throw NoConnectionPendingException if not
      	connected or no connection pending.
      
      From-SVN: r77317
      Michael Koch committed
    • stl_function.h: Minor formatting changes. · 92ff3e43
      2004-02-05  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/stl_function.h: Minor formatting changes.
      
      From-SVN: r77316
      Paolo Carlini committed
    • install.texi: Update description of --gxx-include-dir to give correct default value. · e0b24bce
      2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
      
      	* doc/install.texi: Update description of --gxx-include-dir to
      	give correct default value.
      
      From-SVN: r77315
      Jonathan Wakely committed
    • h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace 8 with MAC_REG. · 2dca8ddb
      	* config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
      	8 with MAC_REG.
      
      From-SVN: r77314
      Kazu Hirata committed
    • pa.c (emit_hpdiv_const): Replace gen_rtx with gen_rtx_PARALLEL. · 92fd5e41
      	* config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
      	gen_rtx_PARALLEL.
      
      From-SVN: r77313
      Kazu Hirata committed
    • * emit-rtl.c: Update the comment about the file. · f822fcf7
      From-SVN: r77312
      Kazu Hirata committed
    • sourcebuild.texi (Test Idioms): Update testcase naming conventions. · 4ef84575
      	* sourcebuild.texi (Test Idioms): Update testcase naming
      	conventions.
      
      From-SVN: r77306
      Joseph Myers committed
    • Partially revert/redo 2003-10-01 change; fix -fworking-directory. · 8e9ea4d7
      	* c-ppoutput.c (pp_dir_change):  New function.
      	* c-common.h (pp_dir_change):  New declaration.
      	* cpplib.h (struct cpp_options):  Remove working_directory field.
      	* cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
      	(cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
      	Don't handle -fworking_directory here, but in c_common_post_options.
      	(read_original_directory): Don't back up when done.
      	Don't clear no-longer used working_directory flag.
      	* cpplib.h:  Update declarations to match.
      	* c-lex.c (cb_dir_change):  Move to c-opts.c.
      	(init_c_lex):  Don't set dir_change callback here, since we want
      	to set it even if flag_preprocess_only.
      	* c-opts.c (cb_dir_change):  Function moved from c-lex.c.
      	(c_common_post_options):  Set dir_change callback.
      	Call pp_dir_change if approporiate.
      	(finish_options):  Don't call cpp_find_main_file here.	Hence remove
      	unneeded parameter and result. Do LC_RENAME for <built-in>.
      	(c_common_post_options):  Call cpp_read_main_file here instead.
      	(c_common_init):  Update accordingly.
      	(push_command_line_include):  Don't cpp_push_main_file.
      	Do LC_RENAME rather than LC_LEASE to get back to main file.
      	Compared to pre-10-01 version, inline cpp_rename_to_main_file.
      	(c_common_parse_file):  Call cpp_read_main_file for subsequent main
      	files, but call finish_options for all files.
      	* c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
      	* fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
      	cpp_find_main_file + cpp_push_main_file.
      	* c-lex.c (fe_file_change):  Don't set main_input_filename here.
      	* opts.c (handle_options):  Only set main_input_filename first time.
      
      From-SVN: r77303
      Per Bothner committed
    • basic_file_stdio.cc (__gnu_internal::fopen_mode): New function. · 6a734d61
      2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
      	    Zack Weinberg  <zack@codesourcery.com>
      
      	* config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
      	New function.
      	(__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
      	(__basic_file<char>::_M_open_mode): Delete.
      	* config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
      
      	* testsuite/27_io/basic_filebuf/close/char/9964.cc
      	* testsuite/27_io/basic_filebuf/open/char/9507.cc:
      	Correct flags to filebuf::open calls.
      
      	* config/abi/alpha-freebsd5/baseline_symbols.txt
      	* config/abi/alpha-linux-gnu/baseline_symbols.txt
      	* config/abi/hppa-linux-gnu/baseline_symbols.txt
      	* config/abi/i386-freebsd4/baseline_symbols.txt
      	* config/abi/i386-freebsd5/baseline_symbols.txt
      	* config/abi/i486-linux-gnu/baseline_symbols.txt
      	* config/abi/ia64-linux-gnu/baseline_symbols.txt
      	* config/abi/mips-linux-gnu/baseline_symbols.txt
      	* config/abi/sparc-freebsd5/baseline_symbols.txt
      	* config/abi/sparc-linux-gnu/baseline_symbols.txt
      	* config/abi/x86_64-linux-gnu/baseline_symbols.txt:
      	Remove entry for __basic_file<char>::_M_open_mode.
      
      From-SVN: r77298
      Benjamin Kosnik committed
    • re PR c++/13932 (duplicate warning message for conversion) · f583e452
      	PR c++/13932
      	* call.c (convert_like_real): Use "converting" rather than
      	"argument" as the descriptive keyword to
      	dubious_conversion_warnings.
      	* typeck.c (convert_for_assignment): Do not call
      	dubious_conversion_warnings.
      
      	PR c++/13932
      	* g++.dg/warn/conv2.C: New test.
      
      From-SVN: r77297
      Mark Mitchell committed
    • file-format.exp (gcc_target_object_format): Use ${tool}_target_compile, not gcc_target_compile. · bfa21a28
      	* lib/file-format.exp (gcc_target_object_format): Use
      	${tool}_target_compile, not gcc_target_compile.
      	* lib/target-supports.exp (check_alias_available): Likewise.
      	(check_gc_sections_available): Likewise.
      	* g++.dg/ext/attrib10.C: Use dg-require-alias.
      	* g++.old-deja/g++.ext/attrib5.C: Use dg-require-weak and
      	dg-require-alias.
      
      From-SVN: r77295
      Mark Mitchell committed
    • re PR c++/13086 (the location of the warning message is wrong when calling… · 7778d52d
      re PR c++/13086 (the location of the warning message is wrong when calling delete on incomplete type)
      
      	PR c++/13086
      	* g++.dg/warn/incomplete1.C: Remove xfail.
      
      From-SVN: r77290
      Giovanni Bajo committed
    • re PR c++/13086 (the location of the warning message is wrong when calling… · b1e5b86c
      re PR c++/13086 (the location of the warning message is wrong when calling delete on incomplete type)
      
      	PR c++/13086
      	* init.c (build_delete): Emit a more informative error message in
      	case of an incomplete type, and on the correct source line.
      
      From-SVN: r77289
      Giovanni Bajo committed
    • re PR c++/9941 (typeinfo not generated correctly when #pragmas are involved) · 6f3d0d2f
      	PR c++/9941
      	* rtti.c (tinfo_base_init): Use import_export_tinfo to decide the
      	linkage for the typeinfo name string.
      
      From-SVN: r77288
      Mark Mitchell committed
    • [multiple changes] · de8a2f87
      
      2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
      
      	* testsuite/performance/20_util/producer_consumer.cc: New.
      	* testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
      
      2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/performance/20_util/allocator.cc: Move to..
      	* testsuite/performance/20_util/allocator/insert.cc: ...here.
      	* testsuite/performance/20_util/allocator_thread.cc: Move to...
      	* testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
      	* testsuite/performance/20_util/allocator_map_thread.cc: Move to...
      	* testsuite/performance/20_util/allocator/map_thread.cc: ...here.
      
      From-SVN: r77285
      Benjamin Kosnik committed
    • Daily bump. · 90bd9d54
      From-SVN: r77282
      GCC Administrator committed
  2. 04 Feb, 2004 1 commit