Commit Graph

43312 Commits

Author SHA1 Message Date
Phil Edwards
c619473bdf stl_bvector.h (swap(_Bit_reference,_Bit_reference)): Move/rename...
2002-06-03  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/stl_bvector.h (swap(_Bit_reference,_Bit_reference)):
	Move/rename...
	(vector<bool>::swap(reference,reference)): ...to this.

From-SVN: r54201
2002-06-03 05:03:50 +00:00
Phil Edwards
7f2e0dffc6 TODO: Update.
2002-06-03  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/TODO:  Update.
	* docs/doxygen/user.cfg.in (SORT_MEMBER_DOCS):  Set to off, now that
	some class members are in 14882 order.
	* docs/html/ext/howto.html:  3.1 is in the past now, not the future.

	* include/std/std_bitset.h:  Update comment.
	* src/bitset.cc:  Update comments, clean up spacing.

	* src/Makefile.am (sources):  Alphabetize for convenience.
	* src/Makefile.in:  Regenerate.

From-SVN: r54200
2002-06-03 04:45:03 +00:00
Jason Thorpe
a782515bc9 netbsd.h: Update copyright years.
* config/ns32k/netbsd.h: Update copyright years.
(TARGET_OS_CPP_BUILTINS): Define.
(CPP_PREDEFINES): Remove.
* config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
(TARGET_CPU_CPP_BUILTINS): Define.

From-SVN: r54199
2002-06-03 04:42:02 +00:00
Phil Edwards
5cb6369de1 stl_deque.h, [...]: Reformat to (mostly) match C++STYLE.
2002-06-03  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/stl_deque.h, include/bits/stl_list.h,
	include/bits/stl_vector.h:  Reformat to (mostly) match C++STYLE.
	Reorder to match 14882.  Doxygen blocks for all public members.

From-SVN: r54198
2002-06-03 04:34:19 +00:00
Kazu Hirata
0fb7aedacd emit-rtl.c: Likewise.
* emit-rtl.c: Likewise.
	* errors.h: Likewise.
	* except.c: Likewise.
	* explow.c: Likewise.
	* expmed.c: Likewise.
	* expr.c: Likewise.
	* expr.h: Likewise.

From-SVN: r54197
2002-06-03 01:13:17 +00:00
Kazu Hirata
1c8ec18b71 elf.h: Fix formatting.
* config/h8300/elf.h: Fix formatting.
	* config/h8300/rtems.h: Likewise.

From-SVN: r54196
2002-06-03 00:51:37 +00:00
Jason Thorpe
86cb04f698 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
From-SVN: r54194
2002-06-03 00:28:12 +00:00
Tom Tromey
d22c2324e6 reverted erroneous checkin
From-SVN: r54193
2002-06-02 23:19:01 +00:00
Tom Tromey
5d83269d11 fixincl.x: Rebuilt.
* fixinc/fixincl.x: Rebuilt.
	* fixinc/inclhack.def (thread_keyword): Match `*__thread'.

From-SVN: r54192
2002-06-02 23:17:30 +00:00
Neil Booth
62f6a494be i370.h (TARGET_CPU_CPP_BUILTINS): Use.
config/i370:
	* i370.h (TARGET_CPU_CPP_BUILTINS): Use.
	* linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
	* mvs.h: Similarly.
	* oe.h: Similarly.

From-SVN: r54191
2002-06-02 22:27:32 +00:00
Jan Hubicka
0acb020356 final.c (final): Allow notes to not have computed addresses; kill no longer needed STACK_REGS ifdef.
* final.c (final):  Allow notes to not have computed addresses;
	kill no longer needed STACK_REGS ifdef.

From-SVN: r54190
2002-06-02 22:23:45 +00:00
Richard Henderson
ada8d98a5d * gcse.c (bypass_conditional_jumps): Fix typo last change.
From-SVN: r54189
2002-06-02 15:16:54 -07:00
Jan Hubicka
ba4f7968b5 loop.c (emit_prefetch_instructions): Properly place the address computation.
* loop.c (emit_prefetch_instructions): Properly place the address computation.


	* basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
	(set_block_for_insn): Turn into macro.
	* cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
	* cfglayout.c (insn_scopes): Kill.
	(scope_to_insns_initialize): Do not use insn_scopes.
	(scope_to_insns_finalize): Likewise.
	(duplicate_insn_chain): Likewise.
	(cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
	* cfgrtl.c (basic_block_for_insn): Kill.
	(delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
	(create_basic_block_structure): Use reorder_insns.
	(compute_bb_for_insn): Do not use basic_block_for_insn.
	(merge_blocks_nomove): Likewise.
	(update_bb_for_insn): Likewise.
	(verify_flow_info): Likewise.
	(set_block_for_insn): Kill.
	* combine.c (try_combine): Update gen_rtx_INSN call.
	* emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
	(mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
	scopes and BBs.
	(add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
	(emit_note_before, emit_note_after, emit_line_note_after, emit_note):
	Clear BB.
	(emit_insns_after): Simplify.
	(emit_copy_of_insn_after): Copy scope.
	* final.c (final_start_function): Lower scopes.
	* flow.c (check_function_return_warnings): Do not rely on deleted insn.
	* integrate.c (copy_insn_list): Cope scopes.
	* jump.c (duplicate_loop_exit_test): LIkewise; simplify.
	* loop.c (loop_optimize): Do not care block notes.
	* print-rtl.c (print_rtx): Print BB.
	* recog.c (apply_change_group): Simplify.
	* rtl.c (copy_rtx): Handle 'B'.
	* rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
	* rtl.h (Field accessors): Update indexes.
	* sched-ebb.c (schedule_ebbs): Do not lower notes.
	* sched-rgn.c (schedule_insns): Likewise.
	* toplev.c (rest_of_compilation): Lower notes.
	* unroll.c (unroll_loop): Do not care scoping notes.
	(copy_loop_body): Copy scopes.

From-SVN: r54188
2002-06-02 21:09:54 +00:00
Neil Booth
537fc532be elf.h: Use TARGET_OS_CPP_BUILTINS rather than SUBTARGET_SPEC.
config/h8300:
	* elf.h: Use TARGET_OS_CPP_BUILTINS rather than
	SUBTARGET_SPEC.
	* rtems.h: Similarly.
	* h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
	EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
	(TARGET_CPU_CPP_BUILTINS): Use.

From-SVN: r54187
2002-06-02 21:00:50 +00:00
Richard Henderson
ab7803738d alias.c: Include target.h.
* alias.c: Include target.h.
        (mark_constant_function): Use targetm.binds_local_p instead
        of checking TREE_PUBLIC ourselves.
        * Makefile.in (alias.o): Add TARGET_H.

        * gcc.c-torture/execute/pure-1.c: Don't mark any of the
        test functions static.

From-SVN: r54186
2002-06-02 13:50:32 -07:00
Neil Booth
b9305c66c2 * c-lex.c: Update copyright and file description.
From-SVN: r54185
2002-06-02 20:13:46 +00:00
Neil Booth
a8fd5963e4 * ChangeLog: Credit Zack appropriately.
From-SVN: r54184
2002-06-02 20:09:05 +00:00
Andreas Jaeger
e33a8855bc loop-3c.x: Remove, the test should pass now.
* gcc.c-torture/execute/loop-3c.x: Remove, the test should pass
	now.

From-SVN: r54183
2002-06-02 21:54:02 +02:00
Neil Booth
0ac3e0c466 * config/fr30/fr30.h: Update to new CPP macros.
From-SVN: r54182
2002-06-02 19:47:10 +00:00
Neil Booth
be3a1d4687 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
From-SVN: r54181
2002-06-02 19:39:09 +00:00
Neil Booth
ceeedfc11a c-common.c (c_common_init): Override cpplib's default warn_long_long setting.
* c-common.c (c_common_init): Override cpplib's default
	warn_long_long setting.
	* c-lex.c (lex_number): Replace with interpret_integer,
	interpret_float, narrowest_unsigned_type and
	narrowest_signed_type, taking advantage of the new
	cpplib functionality.
	* cpperror.c (_cpp_begin_message): If a warning is turned
	into an error, avoid printing "warning:".
	* cppexp.c (cpp_num_sign_extend): New.
	* cppinit.c: Update comment.
	* cpplib.h (cpp_num_sign_extend): New.
	* tree.h: Update comment.
testsuite:
	* gcc.dg/wtr-int-type-1.c, gcc.dg/wtr-suffix-1.c,
	gcc.dg/cpp/paste4.c, gcc.dg/cpp/sysmac2.c:
	Update for mofified diagnostics.
	* gcc.dg/c99-intconst-1.c: No longer fail.

From-SVN: r54180
2002-06-02 19:37:34 +00:00
Gabriel Dos Reis
27e511e0d5 diagnostic.h (struct diagnostic_context): Add new member internal_error.
* diagnostic.h (struct diagnostic_context):  Add new member
	internal_error.
	(internal_error_function): Remove declaration.
	* diagnostic.c (internal_error_function): Remove definition..
	(internal_error): Adjust use.
ada/
	* misc.c (gnat_init): Adjust setting of internal_error_function.

From-SVN: r54179
2002-06-02 19:06:30 +00:00
Richard Henderson
818b6b7fb1 rtl.h (CC0_P): New.
* rtl.h (CC0_P): New.
        * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
        (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
        (bypass_block): Save old dest block for dump text.
        (bypass_conditional_jumps): Allow any mode register; use CC0_P.
        Allow only true SET insns, not single_set.

From-SVN: r54178
2002-06-02 11:38:04 -07:00
Richard Henderson
61b78ce13f * gcc.dg/uninit-A.c: Remove xfail markers.
From-SVN: r54177
2002-06-02 11:11:21 -07:00
Gabriel Dos Reis
167143a01e diagnostic.c (diagnostic_finish): Rename to output_flush.
* diagnostic.c (diagnostic_finish): Rename to output_flush.
	(clear_disgnostic_info): Rename to output_clear_data.  Use
	false
	instead of 0 for boolean value.
	Adjust function call throughout.

From-SVN: r54176
2002-06-02 17:36:29 +00:00
Jan Hubicka
eae4bc56ee cfgrtl.c (commit_one_edge_insertion): Fix warning.
* cfgrtl.c (commit_one_edge_insertion): Fix warning.
	* gcse.c (bypass_conditional_jumps): CSE out single_set call.

From-SVN: r54175
2002-06-02 17:18:58 +00:00
Tom Tromey
c442c00222 re PR java/5913 (Core dump for String constant instanceof)
Fix for PR java/5913:
	* parse.y (patch_binop): Call patch_string on op1.

From-SVN: r54174
2002-06-02 16:38:05 +00:00
Tom Tromey
48711f4da9 Fix for PR java/1343, PR java/6336:
* parse.y (make_nested_class_name): Remove extraneous `else'; fix
	formatting.  Changed return type.
	(anonymous_class_counter): Moved to top of file.
	(maybe_make_nested_class_name): Append number to class name for
	function-local classes.

From-SVN: r54173
2002-06-02 16:33:01 +00:00
Kaveh R. Ghazi
e403d80d35 dfe.c (s_rdfe, s_wdfe): Wrap parentheses around assignment used as truth value.
* libI77/dfe.c (s_rdfe, s_wdfe): Wrap parentheses around
	assignment used as truth value.
	* libI77/due.c (s_rdue, s_wdue): Likewise.
	* libI77/endfile.c (f_end): Likewise.
	* libI77/iio.c (s_rsfi, s_wsfi): Likewise.
	* libI77/lread.c (ERR, l_C, nmL_getc, s_rsle): Likewise.
	* libI77/lwrite.c (l_g, l_put): Likewise.
	* libI77/open.c (f_open): Likewise.
	* libI77/rdfmt.c (rd_Z): Likewise.
	* libI77/rsfe.c (s_rsfe): Likewise.
	* libI77/rsne.c (hash, mk_hashtab, nl_init, getname, getdimen,
	x_rsne, s_rsne): Likewise.
	* libI77/sue.c (s_rsue, s_wsue): Likewise.
	* libI77/wref.c (wrt_E, wrt_F): Likewise.
	* libI77/wsfe.c (s_wsfe): Likewise.
	* libI77/wsle.c (s_wsle): Likewise.
	* libI77/wsne.c (s_wsne): Likewise.

From-SVN: r54172
2002-06-02 14:34:31 +00:00
Neil Booth
9eb404a0d9 d30v.h (CPP_PREDEFINES): Replace with
* d30v.h (CPP_PREDEFINES): Replace with
	(TARGET_CPU_CPP_BUILTINS): New.

From-SVN: r54171
2002-06-02 14:11:33 +00:00
Roger Sayle
53e8b0b88f * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
From-SVN: r54170
2002-06-02 13:18:15 +00:00
Kaveh R. Ghazi
1fc04640bb main.c (main): Avoid implicit int.
* libF77/main.c (main): Avoid implicit int.
	* libI77/dfe.c (y_rsk, y_getc, c_dfe): Likewise.
	* libI77/due.c (c_due): Likewise.
	* libI77/err.c (f__canseek, f__nowreading, f__nowwriting):
	Likewise.
	* libI77/fmt.c (op_gen, ne_d, e_d, pars_f, type_f, en_fio):
	Likewise.
	* libI77/iio.c (z_getc, z_rnew, c_si, z_wnew): Likewise.
	* libI77/lread.c (t_getc, c_le, l_read): Likewise.
	* libI77/lwrite.c (l_write): Likewise.
	* libI77/open.c (fk_open): Likewise.
	* libI77/rdfmt.c (rd_ed, rd_ned): Likewise.
	* libI77/rsfe.c (xrd_SL, x_getc, x_endp, x_rev): Likewise.
	* libI77/rsne.c (t_getc, x_rsne): Likewise.
	* libI77/sfe.c (c_sfe): Likewise.
	* libI77/sue.c (c_sue): Likewise.
	* libI77/uio.c (do_us): Likewise.
	* libI77/wref.c (wrt_E, wrt_F): Likewise.
	* libI77/wrtfmt.c (wrt_L, w_ed, w_ned): Likewise.

From-SVN: r54169
2002-06-02 13:01:12 +00:00
Kaveh R. Ghazi
682413221b rdfmt.c (rd_I): Delete unused variable(s).
* libI77/rdfmt.c (rd_I): Delete unused variable(s).
	* libU77/access_.c (G77_access_0): Likewise.
	* libU77/chdir_.c (G77_chdir_0): Likewise.
	* libU77/chmod_.c (G77_chmod_0): Likewise.
	* libU77/ctime_.c (G77_ctime_0): Likewise.
	* libU77/link_.c (G77_link_0): Likewise.
	* libU77/lstat_.c (G77_lstat_0): Likewise.
	* libU77/rename_.c (G77_rename_0): Likewise.
	* libU77/stat_.c (G77_stat_0): Likewise.
	* libU77/symlnk_.c (G77_symlnk_0): Likewise.
	* libU77/unlink_.c (G77_unlink_0): Likewise.

From-SVN: r54168
2002-06-02 12:59:22 +00:00
Kaveh R. Ghazi
03489df3db inquire.c (f_inqu): Avoid ambiguous else clauses.
* libI77/inquire.c (f_inqu): Avoid ambiguous else clauses.
	* libI77/lread.c (l_C, l_L): Likewise.
	* libI77/open.c (f_open): Likewise.
	* libI77/rsne.c (x_rsne): Likewise.
	* libI77/wref.c (wrt_F): Likewise.

From-SVN: r54167
2002-06-02 12:57:28 +00:00
Kaveh R. Ghazi
1d7ed5d3ea getenv_.c (G77_getenv_0): Avoid signed/unsigned warning.
* libF77/getenv_.c (G77_getenv_0): Avoid signed/unsigned warning.
	* libF77/system_.c (G77_system_0): Likewise.
	* libI77/open.c (f_open): Likewise.
	* libI77/rdfmt.c (rd_Z): Likewise.
	* libI77/uio.c (do_us, do_ud): Likewise.

From-SVN: r54166
2002-06-02 12:54:28 +00:00
Jan Hubicka
92e34b6718 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
From-SVN: r54165
2002-06-02 10:21:39 +00:00
Richard Henderson
e7e9d24291 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
From-SVN: r54163
2002-06-02 00:41:59 -07:00
GCC Administrator
1197e11f3c Daily bump.
From-SVN: r54162
2002-06-02 07:26:40 +00:00
GCC Administrator
018545ba5c Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r54161.2
2002-06-02 07:26:38 +00:00
Marek Michalkiewicz
9af145ae9a Support for C++ constructors/destructors.
* config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
	instead of looping if main() returns.
	(asm_file_start): Output global symbols that cause .data and .bss
	initialization code to be linked in, unconditionally for now.
	(avr_asm_out_ctor, avr_asm_out_dtor): New functions.
	* config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
	(TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
	(LIBSTDCXX): New.
	* config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
	(__tablejump__): New.
	(__do_copy_data, __do_clear_bss): New.
	(__do_global_ctors, __do_global_dtors): New.
	* config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
	_ctors, _dtors.

From-SVN: r54156
2002-06-01 23:33:47 +00:00
Neil Booth
0d66ad572b c4x.h (TARGET_CPU_CPP_BUILTINS): New.
* c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
	(CPP_SPEC, CPP_PREDEFINES): Kill.
	* c4x/rtems.h (CPP_PREDEFINES): Kill.
	(TARGET_OS_CPP_BUILTINS): New.

From-SVN: r54155
2002-06-01 23:27:50 +00:00
Jan Hubicka
5c856b2368 Makefile.in (tracer.o): New.
* Makefile.in (tracer.o): New.
	* params.def (TRACER_*): New options.
	* rtl.h (tracer): Declare.
	* timevar.def (TV_TRACER): New.
	* toplev.c (dump_file_index): Add DFI_tracer.
	(dump_file_info): Add tracer.
	(flag_tracer): New.
	(lang_indepdenent_options): Add tracer.
	(rest_of_compilation): Call tracer.
	* tracer.c: New file.
	* invoke.texi (-ftracer): Document.
	(--param tracer-*): Document.

From-SVN: r54154
2002-06-01 21:31:42 +00:00
Daniel Berlin
e2405951a6 tree-inline.c (expand_call_inline): Make the statement expression we generate have a COMPOUND_STMT.
2002-06-01  Daniel Berlin  <dberlin@dberlin.org>

	* tree-inline.c (expand_call_inline): Make the statement
	expression we generate have a COMPOUND_STMT.

From-SVN: r54153
2002-06-01 21:09:52 +00:00
Roger Sayle
0e3f022139 gcse.c (cprop_cc0_jump): Function deleted.
* gcse.c (cprop_cc0_jump): Function deleted.
	(cprop_jump): Take an additional argument which is the possibly
	NULL cc setting insn immediately before the conditional jump.
	When a MODE_CC set is present, substitute it into the JUMP_INSN
	before attempting the constant propagation.
	(cprop_insn):  Recognize cc setters followed by conditional jumps
	as a special case.   Use cprop_jump instead of cprop_cc0_jump.
	(cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
	(find_bypass_set): New function based upon find_avail_set used by
	cprop, but finds constant expressions available at the end of
	basic blocks.
	(bypass_block): New function.  Given a basic block that begins
	with a conditional jump and multiple incoming edges, perform
	the jump bypass optimization.
	(bypass_conditional_jumps): New function.  Call bypass_block with
	each suitable basic block in the CFG using a simple single pass.

From-SVN: r54152
2002-06-01 20:03:08 +00:00
Roger Sayle
378393da61 tree.c (real_minus_onep): New function to test for -1.0.
* tree.c (real_minus_onep): New function to test for -1.0.
	* fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.

	* gcc.dg/fnegate-1.c: New test case.

From-SVN: r54149
2002-06-01 16:56:08 +00:00
Roger Sayle
01c58f2670 fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0" and "!p && !q" into "(p|q) == 0" under...
* fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
	and "!p && !q" into "(p|q) == 0" under suitable conditions.

From-SVN: r54148
2002-06-01 16:51:00 +00:00
Andreas Jaeger
91b1247259 cppexp.c (cpp_classify_number): Cast precission to int for correct printf format.
* cppexp.c (cpp_classify_number): Cast precission to int for
	correct printf format.

From-SVN: r54147
2002-06-01 16:11:45 +02:00
Marek Michalkiewicz
01e9ae8632 avr.c (avr_mcu_types): Remove devices that were once expected, but don't really exist...
* config/avr/avr.c (avr_mcu_types): Remove devices that were once
	expected, but don't really exist: atmega83, atmega85, attiny10.
	* config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
	emulations for all devices.
	(CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
	* config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.

From-SVN: r54146
2002-06-01 13:47:29 +00:00
Kaveh R. Ghazi
407c72cb29 *: Fix formatting.
* libF77/*: Fix formatting.
	* libI77/*: Likewise.
	* libU77/*: Likewise.

From-SVN: r54145
2002-06-01 12:38:32 +00:00
Joseph Myers
113dc14387 gnat_ug.texi: Use @ifnottex instead of @ifinfo.
* gnat_ug.texi: Use @ifnottex instead of @ifinfo.
	* gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
	gnat_ug_wnt.texi: Regenerate.

From-SVN: r54144
2002-06-01 12:17:19 +01:00