Commit Graph

31370 Commits

Author SHA1 Message Date
Tom Tromey
aca46e2a90 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (install-exec-hook): Make `.la' link, not `.so'
	link.

From-SVN: r37210
2000-11-02 20:33:05 +00:00
Mark Mitchell
7d3b1e8d0e atomicity.h (_Atomic_word): Make it a signed type.
* config/os/irix/bits/atomicity.h (_Atomic_word): Make it a
	signed type.
	(__exchange_aand_add): Adjust accordingly.
	(__atomic_add): Likewise.

From-SVN: r37209
2000-11-02 20:31:59 +00:00
Neil Booth
04e3be98eb configure.in: Make integrated CPP the default.
* configure.in: Make integrated CPP the default.
	* configure: Regenerate.

From-SVN: r37208
2000-11-02 19:41:19 +00:00
J"orn Rennecke
0192d70465 reload.c (find_equiv_reg): Test all hard registers for membership in the requested class.
* reload.c (find_equiv_reg): Test all hard registers for membership
	in the requested class.

From-SVN: r37207
2000-11-02 19:22:04 +00:00
Joseph Myers
9473c5226b * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
process_command, main), gcov.c (open_files, output_data), tlink.c
	(frob_extension, scan_linker_output), toplev.c
	(file_name_nondirectory): Use strchr () and strrchr () instead of
	index () and rindex ().

cp:
	* dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
	(build_overload_value), repo.c (open_repo_file), xref.c
	(open_xref_file): Use strchr () and strrchr () instead of index ()
	and rindex ().

f:
	* com.c (open_include_file, ffecom_open_include_): Use strchr ()
	and strrchr () instead of index () and rindex ().

From-SVN: r37206
2000-11-02 19:03:59 +00:00
Joseph Myers
0304bbad37 c-common.c (get_flag_spec, [...]): Use strchr () instead of index ().
* c-common.c (get_flag_spec, check_format_info_main,
	check_format_types): Use strchr () instead of index ().  Compare
	against error_mark_node instead of comparing the TREE_CODE against
	ERROR_MARK.

From-SVN: r37205
2000-11-02 18:59:16 +00:00
Bryce McKinlay
0ad35392f4 AbstractList.java (remove): Comment out modCount increment to work around compiler bug.
2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/AbstractList.java (remove): Comment out modCount
	increment to work around compiler bug.
	(add): Ditto.

From-SVN: r37204
2000-11-02 10:17:15 +00:00
Bryce McKinlay
7177dab5c9 AbstractList.java: Throw messages with IndexOutOfBoundsExceptions.
2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/AbstractList.java: Throw messages with
	IndexOutOfBoundsExceptions.
	 (listIterator()): Call listIterator(0).
	(size): New field. Initialize to size().
	(hasNext): Test position against size, not size().
	(remove): Increment knownMod by one instead of resetting it from
	modCount.
	(add): Ditto.
	(SubList.upMod): Removed.
	(SubList.set): Don't call upMod() or update knownMod.
	(SubList.add(int,Object)): Increment modCount instead of calling
	upMod().
	(SubList.remove): Ditto.
	(SubList.addAll): Don't call backingList.size(). Increment size from
	c.size().
	(SubList.iterator): New method. Call listIterator(0).
	(SubList.listIterator): New method. Restore code to return an
	anonymous listIterator implementation (with some changes).
	* java/util/AbstractSequentialList.java: Throw messages with
	IndexOutOfBoundsExceptions.
	(addAll): Add a specnote.
	* java/util/ArrayList.java (removeRange): Get the math right.
	(addAll): Increment modCount _before_ creating iterator.
	* java/util/LinkedList.java: Rewritten, mostly.

From-SVN: r37203
2000-11-02 10:08:03 +00:00
Jeff Law
17e2e7f92d Daily bump.
From-SVN: r37202
2000-11-02 01:45:10 -07:00
Zack Weinberg
23356f9386 c-lex.c (init_c_lex): Update cpp_start_read call.
* c-lex.c (init_c_lex): Update cpp_start_read call.
        (cb_ident): Update for new callback prototype.
        (cb_def_pragma): Update for new cpp_get_token prototype.
        (c_lex): Similarly.  Use cpp_get_line.

        * c-parse.in (finish_parse): Update for new cpp_finish
        prototype.

        * cp/lex.c (finish_parse): Similarly.

From-SVN: r37201
2000-11-02 08:05:45 +00:00
Benjamin Kosnik
d83c7eb40d locale.cc: Match orderings for static members.
2000-11-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/locale.cc: Match orderings for static members.
	* include/bits/fstream.tcc: Fixes for cin.

From-SVN: r37200
2000-11-02 08:05:16 +00:00
Mike Stump
5988995700 Be sure to initialize the size before use.
From-SVN: r37199
2000-11-02 02:29:31 +00:00
Geoff Keating
7a09981746 * machmode.def: Add V16QImode.
From-SVN: r37198
2000-11-02 00:36:15 +00:00
Gabriel Dos Reis
c987141022 std_complex.h (complex<>): Remove (cos<>, cosh<>, exp<>, log<>, log<>, sin, sinh<>) friend declarations.
* include/bits/std_complex.h (complex<>): Remove (cos<>, cosh<>,
	exp<>, log<>, log<>, sin, sinh<>) friend declarations.
	(cos, cosh, sin, sinh): Define primary templates.

	* src/complex.cc (cos<>, cosh<>, sin<>, sinh<>): Comment out
	definitions.

From-SVN: r37197
2000-11-02 00:21:07 +00:00
Richard Henderson
a97c960093 dwarf2out.c (loc_descriptor_from_tree): Check for null result from rtl_for_decl_location.
* dwarf2out.c (loc_descriptor_from_tree): Check for null result
        from rtl_for_decl_location.
        (add_location_or_const_value_attribute): Likewise.

From-SVN: r37196
2000-11-01 14:45:09 -08:00
Benjamin Kosnik
9717c75cf1 basic_file.h (_M_open_mode): Change signature, move specializations to..
2000-11-01  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/basic_file.h (_M_open_mode): Change signature, move
	specializations to..
	* config/c_io_libio.cc: ...here.
	* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Add sdtio option, remove wince.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* config/c_io_stdio.h: New file.
	* config/c_io_stdio.cc: New file.
	* docs/configopts.html: Modify documentation.

From-SVN: r37195
2000-11-01 21:38:32 +00:00
Neil Booth
a0a9606d4b cpplib.c (run_directive): Use correct line number for output of _Pragma.
* cpplib.c (run_directive): Use correct line number for output
        of _Pragma.  Remember any in-progress directive.

        * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.

From-SVN: r37194
2000-11-01 20:21:13 +00:00
Nick Clifton
fc05d51600 Rename cygnus.com to redhat.com
Install new email address for Clint

From-SVN: r37193
2000-11-01 18:04:26 +00:00
Richard Henderson
ba89764ab1 * stmt.c (expand_start_null_loop): Set continue_label.
From-SVN: r37192
2000-11-01 09:28:02 -08:00
Bernd Schmidt
b0b3afb2f3 Constant folding for builtins
From-SVN: r37191
2000-11-01 17:02:45 +00:00
Tom Tromey
f92351d76e encodings.pl: Added `ASCII' alias.
* scripts/encodings.pl: Added `ASCII' alias.
	* Makefile.in: Rebuilt.
	* Makefile.am (convert_source_files): Added new files.
	* gnu/gcj/convert/Input_ASCII.java: New file.
	* gnu/gcj/convert/Output_ASCII.java: New file.
	* gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
	out-of-range characters.
	* gnu/gcj/convert/natIconv.cc (iconv_init): New method.
	(read): Swap bytes if required.  Treat `count' as character count,
	not byte count.
	(write): Likewise.  Also, handle case where iconv fails on a given
	character.
	(init): Put encoding into exception.
	* gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
	(static): Call iconv_init.  Rebuilt alias list.
	(iconv_init): New private method.

From-SVN: r37190
2000-11-01 17:00:02 +00:00
Tom Tromey
347b93640a Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (install-exec-hook): Only make a single symlink, and
	remove the destination before making the link.
	* configure: Rebuilt.
	* configure.in: Call AC_PROG_LN_S.

From-SVN: r37189
2000-11-01 16:47:06 +00:00
Richard Henderson
6a16a7f0c8 New tests.
From-SVN: r37187
2000-11-01 02:31:02 -08:00
Richard Henderson
f0de0c5d17 stmt.c (expand_start_null_loop): New.
* stmt.c (expand_start_null_loop): New.
        (expand_end_null_loop): New.
        * c-semantics.c (genrtl_do_stmt): Use them.
        * tree.h: Declare them.

From-SVN: r37186
2000-11-01 02:28:32 -08:00
Gabriel Dos Reis
faafaee632 error.c (dump_template_decl): Separate template hearders with space not comma.
* error.c (dump_template_decl): Separate template hearders with
	space not comma.

From-SVN: r37185
2000-11-01 09:35:54 +00:00
Richard Henderson
3a59c77cc6 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
From-SVN: r37184
2000-11-01 00:53:36 -08:00
Jeff Law
6ef3973d17 Daily bump.
From-SVN: r37183
2000-11-01 01:45:07 -07:00
Neil Booth
12c4f523b1 c-parse.in (_yylex): Remove CPP_BACKSLASH case.
* c-parse.in (_yylex): Remove CPP_BACKSLASH case.
	* cp/spew.c: Similarly.
	* cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
	* cppmacro.c (stringify_arg): Similarly.
	* cpplib.h (CPP_BACKSLASH): Delete.

From-SVN: r37182
2000-11-01 07:32:23 +00:00
Kaveh R. Ghazi
78e7629e9f builtins.c (expand_builtin_strstr): New function.
* builtins.c (expand_builtin_strstr): New function.
	(expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.

	* builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.

	* c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
	and builtin strchr.

From-SVN: r37181
2000-11-01 03:22:21 +00:00
Mark Mitchell
9f56c00431 gcc_build (MAKE): New variable.
* gcc_build (MAKE): New variable.
	(build_gcc): Use it.  Fix logging of errors.
	(install_gcc): Likewise.

From-SVN: r37180
2000-11-01 01:58:12 +00:00
Richard Henderson
32ee391b83 i386.c (fcmov_comparison_operator): Check for CCFPmode or CCFPUmode instead of CCmode.
* config/i386/i386.c (fcmov_comparison_operator): Check for
        CCFPmode or CCFPUmode instead of CCmode.
        (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
        unordered operations as well.

From-SVN: r37179
2000-10-31 17:52:52 -08:00
Richard Henderson
5f10ef5bac c-semantics.c (genrtl_do_stmt): Use integer_zerop instead of integer_zero_node.
* c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
        of integer_zero_node.

From-SVN: r37178
2000-10-31 17:48:12 -08:00
Richard Henderson
d599b81f46 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
From-SVN: r37177
2000-10-31 17:31:06 -08:00
Nick Clifton
1426f76142 Do not allow -fdata-sections to override the section attribute of a DECL.
From-SVN: r37176
2000-11-01 01:23:56 +00:00
Chris Demetriou
a8c0159ad4 libgcc2.c (__shtab): Remove __shtab variable.
* libgcc2.c (__shtab): Remove __shtab variable.
	* libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
	* Makefile.in (LIB2FUNCS): Remove _shtab from list of library
	members.

From-SVN: r37175
2000-10-31 17:43:16 -07:00
Jim Wilson
8215347ec3 Make ia64 port use tags instead of labels for debug info labels.
* defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
	* tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
	* dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
	instead of ASM_OUTPUT_INTERNAL_LABEL.
	(dwarf2out_end_block, dwarf2out_label): Likewise.
	* final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
	* config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.

From-SVN: r37174
2000-10-31 16:20:34 -08:00
Warren Levy
4547105f64 jni.cc: Added include of java/lang/ThreadGroup.h.
* jni.cc: Added include of java/lang/ThreadGroup.h.
	* gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
	per change of 2000-10-05.

From-SVN: r37173
2000-11-01 00:18:03 +00:00
Richard Henderson
d8041cc89f dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
* dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
        (size_of_locs): Set it.
        (output_loc_operands): Use it to compute branch displacement.
        (int_loc_descriptor): New.
        (mem_loc_descriptor): Dereference memory in the proper size.
        Use DW_OP_plus_uconst when possible.  Use int_loc_descriptor.
        (loc_descriptor_from_tree): New.
        (rtl_for_decl_location): Break out from ...
        (add_location_or_const_value_attribute): ... here.
        (add_bound_info): Use loc_descriptor_from_tree.

From-SVN: r37172
2000-10-31 16:12:15 -08:00
Neil Booth
86368122e6 cpp.texi: Update for new command line assertion syntax.
* cpp.texi: Update for new command line assertion syntax.
	* cpplib.c (cpp_define): Simplify a bit.
	(cpp_assert, cpp_unassert): Use handle_assertion.
	(handle_assertion): New function; accept new command line
	syntax with '='.
	* testsuite/gcc.dg/cpp/assert3.c: New tests.

From-SVN: r37171
2000-10-31 23:34:59 +00:00
Neil Booth
e199824280 * Forgot to update ChangeLog.
From-SVN: r37170
2000-10-31 22:58:02 +00:00
Benjamin Kosnik
49ba75d20e *** empty log message ***
From-SVN: r37169
2000-10-31 22:33:26 +00:00
Geoff Keating
e201b0a7e9 920501-7.c: Remove 'CYGNUS LOCAL' markers.
* gcc.c-torture/compile/920501-7.c: Remove 'CYGNUS LOCAL' markers.
	* gcc.c-torture/execute/ieee/rbug.c: Remove 'CYGNUS LOCAL' markers.

From-SVN: r37168
2000-10-31 22:30:13 +00:00
Kaveh R. Ghazi
c5a0835dea * gcc.c-torture/execute/va-arg-21.c: New test.
From-SVN: r37167
2000-10-31 21:30:22 +00:00
Jan Hubicka
7e08e19030 i386.h: Clarify CCNOmode description in comment.
* config/i386/i386.h: Clarify CCNOmode description in comment.
	(EXTRA_CC_MODES): Remove CCRCmode.
	* config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
	(put_condition_code, ix86_match_ccmode): Likewise.
	(ix86_cc_mode): Likewise.  Fix comment.
	(ix86_expand_strlensi_unroll_1): *rc patterns are gone.
	* config/i386/i386.md: Add unspec 12 description.
	(adddi3 split): Use unspec 12 instead of CCRCmode.
	(addsi3_carry_rc): Remove.
	(addsi3_cc, addqi3_cc): New patterns.
	(addsi_3): Swap operands, match CCZmode.
	(addsi_4): Rewritten.
	(addsi_5): Renamed from addsi_6.
	(addsi_6): Removed.
	(addhi_3): Swap operands, match CCZmode.
	(addhi_4): Rewritten.
	(addhi_5): Renamed from addhi_6.
	(addhi_6): Removed.
	(addqi_3): Swap operands, match CCZmode.
	(addqi_4): Rewritten.
	(addqi_5): Renamed from addqi_6.  Use =q constraint for clobber.
	(subsi3_carry_rc): Removed.
	(iorqi_3): Use =q constraint for clobber.
	(xorqi_cc_2): Likewise.
	(negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
	(x86_movsicc_0_m1_rc): Removed.
	(cmp?i peepholes): Remove neg.  Use CCGCmode instead of CCRCmode.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r37166
2000-10-31 21:50:30 +01:00
Gabriel Dos Reis
99fa3f5edd std_complex.h (norm): Forward declare.
* include/bits/std_complex.h (norm): Forward declare.
	(complex<>): Comment out friend declaration of conj<>.
	(conj<>): Comment out specialization.
	(exp, log, log10): Define primary templates.

	* src/complex.cc (exp<>, log<>, log10<>): Comment out
	specializations.

From-SVN: r37165
2000-10-31 20:49:01 +00:00
Joseph Myers
93cc1c6995 c-typeck.c (build_unary_op): If pedantic, pedwarn for increment and decrement of complex types.
* c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
	and decrement of complex types.

testsuite:
	* gcc.dg/c99-complex-2.c: New test.

From-SVN: r37164
2000-10-31 20:38:04 +00:00
Neil Booth
510fbf869c cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if undefined.
* cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
	undefined.  Remove #ifdef check.
	* config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
	Define STDC_0_IN_SYSTEM_HEADERS to 1.

From-SVN: r37163
2000-10-31 19:59:44 +00:00
Kaveh R. Ghazi
bcb38cc180 builtins.c (expand_builtin_fputs): When deleting NOP calls to builtin fputs...
* builtins.c (expand_builtin_fputs): When deleting NOP calls to
	builtin fputs, ensure we still evaluate the stream in case it
	has side-effects.

testsuite:
	* gcc.c-torture/execute/stdio-opt-1.c: New test.

From-SVN: r37162
2000-10-31 18:27:42 +00:00
Benjamin Kosnik
bc359d3a5d std_complex.h: Remove duplicate definition of conj.
2000-10-31  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* include/bits/std_complex.h: Remove duplicate definition of conj.
	* include/c/bits/std_cwctype.h: Consistent placement of undefs.

From-SVN: r37161
2000-10-31 18:11:31 +00:00
Jakub Jelinek
681cb2337b expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0) to expand_shift.
* expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
	to expand_shift.

	* g++.old-deja/g++.other/inline16.C: New test.

From-SVN: r37160
2000-10-31 17:02:45 +01:00