Commit Graph

50215 Commits

Author SHA1 Message Date
Ian Lance Taylor
fc351800ec * MAINTAINERS: Update my e-mail address.
From-SVN: r67053
2003-05-21 01:15:30 +00:00
Danny Smith
93c858e31a stubs.c (hypot, [...]): Don't divide by zero.
* libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
	zero.
	Update copyright year.

From-SVN: r67051
2003-05-21 00:51:24 +00:00
Kaveh Ghazi
c1625e69f7 Concatenate one of the fprintf calls in the previous change.
From-SVN: r67050
2003-05-21 00:47:44 +00:00
Danny Smith
16e3196411 re PR c++/9738 ([mingw] Internal compiler error in rest_of_compilation, at toplev.c: 3491)
PR c++/9738

	* config/i386/winnt.c (i386_pe_encode_section_info): Enable
	even if not first.

	* cp/decl.c (duplicate_decls): Re-invoke make_decl_rtl
	if the old decl had instantiated DECL_RTL.
	(Base on Richard Henderson 2003-05-13 patch to c-decl.c).

	* testsuite/g++.dg/ext/dllimport2.C: New file.
	* testsuite/g++.dg/ext/dllimport3.C: New file.

From-SVN: r67049
2003-05-21 00:33:27 +00:00
GCC Administrator
36f72608a3 Daily bump.
From-SVN: r67047
2003-05-21 00:16:37 +00:00
Kaveh R. Ghazi
1e29b8d725 genautomata.c (output_description, [...]): Add missing specifiers.
* genautomata.c (output_description, output_automaton_units,
	output_state_arcs): Add missing specifiers.

From-SVN: r67045
2003-05-21 00:01:24 +00:00
Bob Wilson
6c2e8d1cf9 lib1funcs.asm: Avoid use of .Lfe* in .size directives.
* config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
	(do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
	(__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
	(nsau): Rename to do_nsau.  Provide alternate version for use when
	the NSAU instruction is available.
	(__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
	(__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
	* config/xtensa/xtensa-config.h: Update comments to match binutils.
	(XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
	* config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
	(TARGET_ABS, TARGET_ADDX): Define.
	(TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
	(TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
	* config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
	*subx8): Set predicate condition to TARGET_ADDX.
	(abssi2): Set predicate condition to TARGET_ABS.
	* doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
	"-maddx", and "-mno-addx" options.
	(Xtensa Options): Likewise.  Also tag some opcode names with @code.

From-SVN: r67044
2003-05-20 23:39:09 +00:00
Paolo Carlini
69cf7a5532 4.cc: Fix typo.
2003-05-20  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.

From-SVN: r67043
2003-05-20 23:03:28 +00:00
Paolo Carlini
80416931e3 5.cc: New file, further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2003-05-20  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
	further testing that upon filebuf::close() 27.8.1.1,3 is enforced.

From-SVN: r67042
2003-05-20 22:43:30 +00:00
Gerald Pfeifer
e5a3a5b240 stl_alloc.h (__default_alloc_template::_S_chunk_alloc): Cast via void* to avoid -Wcast-align warnings.
* include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
	Cast via void* to avoid -Wcast-align warnings.
	(__default_alloc_template::_S_refill): Likewise.

From-SVN: r67041
2003-05-20 22:29:54 +00:00
Benjamin Kosnik
ca5e1be83d README: Move to...
2003-05-20  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/README: Move to...
	* docs/html/test.html: ...here. Add documentation.
	* docs/html/install.html: Move testing bits out..
	* docs/html/documentation.html: Add separate testing link.
        * testsuite/performance: Add.
        * testsuite/performance/allocator.cc: New.
        * testsuite/performance/complex_norm.cc: New.
        * testsuite/performance/cout_insert_int.cc: New.
        * testsuite/performance/fstream_seek_write.cc: New.
        * testsuite/performance/ifstream_getline.cc: New.
        * testsuite/performance/map_create_fill.cc: New.
        * testsuite/performance/ofstream_insert_float.cc: New.
        * testsuite/performance/ofstream_insert_int.cc: New.
        * testsuite/performance/string_append.cc: New.
	* testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
	performance tests.

From-SVN: r67040
2003-05-20 22:25:09 +00:00
Janis Johnson
f737a52d03 struct-by-value-3_x.c: Move common pieces to headers.
2003-05-20  Janis Johnson  <janis187@us.ibm.com>

	* gcc.dg/compat/struct-by-value-3_x.c: Move common pieces to headers.
	* gcc.dg/compat/struct-by-value-3_y.c: Ditto.
	* gcc.dg/compat/struct-by-value-5_x.c: Ditto.
	* gcc.dg/compat/struct-by-value-5_y.c: Ditto.
	* gcc.dg/compat/struct-by-value-6_x.c: Ditto.
	* gcc.dg/compat/struct-by-value-6_y.c: Ditto.
	* gcc.dg/compat/struct-by-value-7_x.c Ditto.
	* gcc.dg/compat/struct-by-value-7_y.c Ditto.
	* gcc.dg/compat/small-struct-defs.h: New file.
	* gcc.dg/compat/small-struct-init.h: New file.
	* gcc.dg/compat/small-struct-check.h: New file.
	* gcc.dg/compat/fp-struct-defs.h: New file.
	* gcc.dg/compat/fp-struct-check.h: New file.
	* gcc.dg/compat/fp-struct-init.h: New file.
	* gcc.dg/compat/fp-struct-test-by-value-y.h: New file.
	* gcc.dg/compat/fp-struct-test-by-value-x.h: New file.

	* gcc.dg/compat/scalar-return-1_main.c: New file.
	* gcc.dg/compat/scalar-return-1_x.c: New file.
	* gcc.dg/compat/scalar-return-1_y.c: New file.
	* gcc.dg/compat/scalar-return-2_main.c: New file.
	* gcc.dg/compat/scalar-return-2_x.c: New file.
	* gcc.dg/compat/scalar-return-2_y.c: New file.
	* gcc.dg/compat/struct-return-3_main.c: New file.
	* gcc.dg/compat/struct-return-3_y.c: New file.
	* gcc.dg/compat/struct-return-3_x.c: New file.
	* gcc.dg/compat/struct-return-2_main.c: New file.
	* gcc.dg/compat/struct-return-2_x.c: New file.
	* gcc.dg/compat/struct-return-2_y.c: New file.

From-SVN: r67038
2003-05-20 22:15:45 +00:00
Kevin Ryde
5d34c8e946 doc/extend.texi: Put warning into documentation of attribute regparm.
Co-Authored-By: Wolfgang Bangerth <bangerth@dealii.org>

From-SVN: r67037
2003-05-20 16:13:34 -06:00
Jason Merrill
a63996f10f fix whitespace
From-SVN: r67036
2003-05-20 16:52:33 -04:00
Jason Merrill
1cd69e2bed tree.c (expr_last): New fn.
* tree.c (expr_last): New fn.
        * tree.h: Declare it.
        * objc/objc-act (expr_last): Rename to objc_expr_last.

From-SVN: r67035
2003-05-20 16:24:08 -04:00
J"orn Rennecke
a60a9553a1 sh.c (sh_register_move_cost): Add clase for moving between FP registers and MAC registers.
* sh.c (sh_register_move_cost): Add clase for moving between
	FP registers and MAC registers.

From-SVN: r67028
2003-05-20 16:48:03 +01:00
Michael Koch
669e91abfa 2003-05-20 Michael Koch <konqueror@gmx.de>
* java/io/DataInputStream.java
	(convertFromUTF): Merged comment from classpath.
	* java/io/PrintStream.java
	(error_occured): Renamed from error, merged comment from classpath.
	(PrintStream): No need to initialized error.
	(checkError): Replace error with error_occurred.
	(setError): Likewise.

From-SVN: r66997
2003-05-20 11:53:11 +00:00
Gerald Pfeifer
8d4d9d1911 gcc_release (upload_files): Put diff files into a "diffs" subdirectory
* gcc_release (upload_files): Put diff files into a "diffs"
	subdirectory

From-SVN: r66996
2003-05-20 11:47:50 +00:00
Michael Koch
c93aa80414 DataInputStream.java: Reformatted, Replaced < and & with html entitites in documentation.
2003-05-20  Michael Koch  <konqueror@gmx.de>

	* java/io/DataInputStream.java:
	Reformatted, Replaced < and & with html entitites in documentation.
	* java/io/File.java:
	Reformatted.
	* java/io/PrintWriter.java:
	Moved class documentation.

From-SVN: r66992
2003-05-20 09:13:19 +00:00
Michael Koch
c2a40660aa Accidently comitted this during last commit, revert this little change:
-TAR = tar
+TAR = gtar

From-SVN: r66991
2003-05-20 09:04:38 +00:00
Michael Koch
3a5eb28322 ByteBufferImpl.java, [...]: Moved files to java/nio.
2003-05-20  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/ByteBufferImpl.java,
	gnu/java/nio/CharBufferImpl.java,
	gnu/java/nio/CharViewBufferImpl.java,
	gnu/java/nio/DirectByteBufferImpl.java,
	gnu/java/nio/DoubleBufferImpl.java,
	gnu/java/nio/DoubleViewBufferImpl.java,
	gnu/java/nio/FloatBufferImpl.java,
	gnu/java/nio/FloatViewBufferImpl.java,
	gnu/java/nio/IntBufferImpl.java,
	gnu/java/nio/IntViewBufferImpl.java,
	gnu/java/nio/LongBufferImpl.java,
	gnu/java/nio/LongViewBufferImpl.java,
	gnu/java/nio/natDirectByteBufferImpl.cc,
	gnu/java/nio/ShortBufferImpl.java,
	gnu/java/nio/ShortViewBufferImpl.java:
	Moved files to java/nio.
	* gnu/java/nio/SocketChannelImpl.java

	* java/nio/ByteBuffer.java,
	java/nio/CharBuffer.java,
	java/nio/DoubleBuffer.java,
	java/nio/FloatBuffer.java,
	java/nio/IntBuffer.java,
	java/nio/LongBuffer.java,
	java/nio/ShortBuffer.java:
	Dont import anything.
	* java/nio/ByteBufferImpl.java,
	java/nio/CharBufferImpl.java,
	java/nio/CharViewBufferImpl.java,
	java/nio/DirectByteBufferImpl.java,
	java/nio/DoubleBufferImpl.java,
	java/nio/DoubleViewBufferImpl.java,
	java/nio/FloatBufferImpl.java,
	java/nio/FloatViewBufferImpl.java,
	java/nio/IntBufferImpl.java,
	java/nio/IntViewBufferImpl.java,
	java/nio/LongBufferImpl.java,
	java/nio/LongViewBufferImpl.java,
	java/nio/natDirectByteBufferImpl.cc,
	java/nio/ShortBufferImpl.java,
	java/nio/ShortViewBufferImpl.java:
	Moved from gnu/java/nio.
	* Makefile.am
	(ordinary_java_source_files): Moved files from gnu/java/nio to
	java/nio.
	(nat_source_files): Moved natDirectByteBufferImpl.cc from gnu/java/nio
	to java/nio.
	* Makefile.in: Regenerated.

From-SVN: r66990
2003-05-20 08:58:31 +00:00
Gabriel Dos Reis
1db0418ae5 re PR libstdc++/10689 (pow(std::complex(0),1/3) returns (nan, nan) instead of 0.)
PR libstdc++/10689
	* include/std/std_complex.h (pow): Tidy

From-SVN: r66989
2003-05-20 06:52:11 +00:00
Kelley Cook
29ad6d3f11 * config.table: Accept i[345867]86 variant.
From-SVN: r66986
2003-05-19 22:49:26 -04:00
John David Anglin
12df72e8d7 * pa/milli64.S ($$mulI): Fix typo.
From-SVN: r66985
2003-05-20 02:08:01 +00:00
Matt Kraai
07b7c979e7 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
(nonlocal_set_p): Remove initial blank line.
	* dwarf2out.c (simple_type_size_in_bits): Likewise.
	* et-forest.c (et_forest_create): Likewise.
	* explow.c (stabilize): Likewise.
	* fix-header.c (write_lbrac): Likewise.
	* graph.c (start_fct, node_data): Likewise.
	* jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
	* rtlanal.c (global_reg_mentioned_p): Likewise.
	* tree.c (bit_position): Likewise.

From-SVN: r66984
2003-05-20 01:49:12 +00:00
Nathanael Nerode
7e2dbcef01 configure.in: Switch more things to use maybe dependencies.
2003-05-19  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.in: Switch more things to use maybe dependencies.
	* Makefile.tpl: Switch more things to use maybe dependencies.
	Factor out common code from autogen IF statements.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

From-SVN: r66982
2003-05-20 01:04:20 +00:00
Alexandre Oliva
fb9fc9f977 linux64.h (LIB_SPEC): Add missing -lc and correct -lthread to -lpthread.
* config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
-lthread to -lpthread.

From-SVN: r66981
2003-05-20 00:48:43 +00:00
GCC Administrator
cee8d9ff4d Daily bump.
From-SVN: r66979
2003-05-20 00:16:08 +00:00
Neil Booth
42ad6c9eb3 c-opts.c (c_common_decode_option): Don't accept dollars as identifier characters in assembly.
* c-opts.c (c_common_decode_option): Don't accept dollars
	as identifier characters in assembly.
	* doc/cpp.texi: Document this.

From-SVN: r66976
2003-05-19 22:15:57 +00:00
Seth Arnold
4b6fe6b647 rs6000.c (rs6000_stack_info): Do not add vrsave_size twice.
2003-05-19  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
        vrsave_size twice.

Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>

From-SVN: r66974
2003-05-19 21:33:57 +00:00
Aldy Hernandez
ce376bebc3 tm.texi (function_arg): Fix typo.
2003-05-19  Aldy Hernandez  <aldyh@redhat.com>

        * doc/tm.texi (function_arg): Fix typo.

From-SVN: r66973
2003-05-19 20:03:42 +00:00
Matt Austern
a01fff59e7 Add a new flag...
Add a new flag, -W(no-)invalid-offsetof, to control whether or
not the compiler warns about incorrect use of the offsetof macro
in C++.  By default the warning is on.

From-SVN: r66972
2003-05-19 19:19:46 +00:00
Paolo Carlini
eab1ff73c8 4.cc: New file, testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2003-05-19  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
	that upon filebuf::close() 27.8.1.1,3 is enforced.

From-SVN: r66970
2003-05-19 18:12:34 +00:00
Kelley Cook
f2a0e225a2 configure.in: Accept i[3456789]86 for machine type.
* configure.in: Accept i[3456789]86 for machine type.
* configure: Regenerate.

From-SVN: r66969
2003-05-19 14:10:21 -04:00
Kelley Cook
399879760a * acinclude.m4: Accept i[3456789]86 for machine type.
From-SVN: r66968
2003-05-19 14:09:59 -04:00
Kevin B. Hendricks
025d9908d3 rs6000.c (rs6000_alignment_string, [...]): New variables.
2003-05-18  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
            David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/rs6000.c (rs6000_alignment_string,
        rs6000_alignment_flags): New variables.
        (rs6000_parse_alignment_option): New function.
        (rs6000_override_options): Call it.
        * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
        (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
        macros.
        * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
        natural alignment if TARGET_NATURAL_ALIGNMENT
        (ROUND_TYPE_ALIGN): Always use default record alignment if
        TAGET_NATURAL_ALIGNMENT.
        * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
        (ROUND_TYPE_ALIGN): Same.
        * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
        (ROUND_TYPE_ALIGN): Same.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>

From-SVN: r66967
2003-05-19 13:39:51 -04:00
J"orn Rennecke
52a8b7b838 c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME of a function using ASMSPEC, prepend a star.
* c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
	of a function using ASMSPEC, prepend a star.

From-SVN: r66965
2003-05-19 17:41:47 +01:00
Jason Merrill
68594ce757 tree-inline.c (copy_body_r): Avoid generating &* during inline substitution.
* tree-inline.c (copy_body_r): Avoid generating &* during inline
        substitution.

From-SVN: r66964
2003-05-19 12:17:32 -04:00
Jakub Jelinek
b041fbe613 * gcc.dg/20030225-2.c: New test.
From-SVN: r66962
2003-05-19 14:15:33 +02:00
Gabriel Dos Reis
a144716696 Fix comment-style.
From-SVN: r66957
2003-05-19 11:04:18 +00:00
Michael Koch
336931c175 2003-05-19 Michael Koch <konqueror@gmx.de>
* java/util/Calendar.java
	(get): Not final anymore since JDK 1.4
	(set): Likewise.

From-SVN: r66956
2003-05-19 09:14:57 +00:00
Michael Koch
66852893a2 CollationKey.java: Merged copyright and dat from classpath.
2003-05-19  Michael Koch  <konqueror@gmx.de>

	* java/text/CollationKey.java:
	Merged copyright and dat from classpath.
	* java/text/RuleBasedCollator.java:
	Merged class documentation from classpath.

From-SVN: r66955
2003-05-19 09:09:23 +00:00
Andrew MacLeod
6208b55d98 (xstormy16_expand_prologue): Do not mark assignments to the hard frame pointer as being stack frame related.
(xstormy16_expand_prologue): Do	not mark assignments to the hard frame pointer
as being stack frame related.
(xstormy16_expand_epilogue): Mark adjustments to the stack pointer as being
stack frame related.

From-SVN: r66954
2003-05-19 08:48:20 +00:00
Michael Koch
27d645f767 2003-05-19 Michael Koch <konqueror@gmx.de>
* java/nio/CharBuffer.java
	(toString): Compile fix.

From-SVN: r66953
2003-05-19 07:48:35 +00:00
Richard Sandiford
21c9500d3e mips.h (ISA_HAS_LOAD_DELAY, [...]): New macros.
* config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
	ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
	(PREDICATE_CODES): Add hilo_operand.
	* config/mips/mips.c (hilo_operand): New predicate.
	(mips_adjust_insn_length): Account for the number nops that might
	be needed to avoid hardware hazards.
	* config/mips/mips.md (dslot): Remove attribute.
	(hazard): New attribute.
	(can_delay): Use it.  Check for calls, branches & jumps.
	(muldi3): Use the standard dmult pattern for mips16 code.
	(muldi3_internal, muldi3_internal2): Adjust conditions accordingly.

From-SVN: r66952
2003-05-19 07:36:28 +00:00
Richard Sandiford
f29d1b660c mips-protos.h (final_prescan_insn, [...]): Remove.
* config/mips/mips-protos.h (final_prescan_insn,
	mips_count_memory_refs, mips_fill_delay_slot): Remove.
	* config/mips/mips.h (delay_type, dslots_load_total,
	dslots_load_filled, dslots_jump_total, dslots_jump_filled,
	dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
	mips_load_reg3, mips_load_reg4): Remove.
	(MASK_STATS): Remove.
	(MASK_EXPLICIT_RELOCS): Reuse its value.
	(TARGET_STATS): Remove.
	(TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
	Warn that -mstats is now ignored.
	(FINAL_PRESCAN_INSN): Undefine.
	(DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
	(ASM_OUTPUT_REG_POP): Likewise.
	* config/mips/mips.c (dslots_load_total, dslots_load_filled,
	dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
	mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
	mips_fill_delay_slot, mips_count_memory_refs,
	final_prescan_insn): Remove.
	(output_block_move): Remove calls to mips_count_memory_refs.
	(print_operand): Remove printing of #nop for TARGET_STATS.
	(mips_output_function_epilogue): Remove TARGET_STATS code.
	Reorganize setting of fnnmae.
	* config/mips/mips.md: Remove handling of dslot statistics
	throughout file.  Change all fcmp patterns into normal asm
	templates, removing calls to mips_fill_delay_slot.
	* doc/invoke.texi: Remove documentation of -mstats.

From-SVN: r66951
2003-05-19 07:33:33 +00:00
Richard Sandiford
30a38382e7 mips.c (mips_class_max_nregs): Return the number of words in the mode.
* config/mips/mips.c (mips_class_max_nregs): Return the number of
	words in the mode.

From-SVN: r66950
2003-05-19 07:30:12 +00:00
Richard Sandiford
beb14bd522 mips.c (override_options): Disable explicit relocs for old ABIs unless using gas.
* config/mips/mips.c (override_options): Disable explicit
	relocs for old ABIs unless using gas.

From-SVN: r66949
2003-05-19 07:27:45 +00:00
Andrew Pinski
7e8f3096dc name-lookup.c (free_binding_entry): fix where the GTY markers are.
* name-lookup.c (free_binding_entry): fix where the GTY markers are.
	(binding_entry_make): Make entry->chain NULL after getting an entry.
	fix the spelling of chain in a comment.
	(binding_table_free): speed up by having temporary variable.
	(binding_table_new): set table->chain to be NULL after allocating
	a table.
	(cxx_binding_make): use gcc_alloc instead of ggc_alloc_cleared and set
	binding->previous to NULL after getting an binding for speed.

From-SVN: r66948
2003-05-19 07:02:12 +00:00
Eric Christopher
1c745a0269 mips.h: Remove definition of g_switch_value.
2003-05-18  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h: Remove definition of g_switch_value.

From-SVN: r66947
2003-05-19 07:00:34 +00:00