Commit Graph

51201 Commits

Author SHA1 Message Date
Andreas Jaeger
82a30d6f0f gcov-io.c: Convert prototypes to ISO C90.
* gcov-io.c: Convert prototypes to ISO C90.
	* gcov-io.h: Likewise.

From-SVN: r68735
2003-06-30 21:45:17 +02:00
Neil Booth
37fa72e9d3 c-common.c (enum c_language_kind, flag_objc): Remove.
* c-common.c (enum c_language_kind, flag_objc): Remove.
	(fix_string_type, check_case_value, c_common_nodes_and_builtins,
	c_add_case_label, finish_label_addr_expr, boolean_increment):
	Use c_dialect_ macros.
	* c-common.h (enum c_language_kind): Extend.
	(c_dialect_cxx, c_dialect_objc): New.
	(flag_objc): Remove.
	(c_common_init_options): Update prototype.
	* c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
	macros.
	* c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
	macros.
	* c-format.c (C_STD_VER, C_STD_NAME): Similarly.
	* c-lang.c (c_init_options): Remove.
	(c_language): Define.
	(LANG_HOOKS_INIT_OPTIONS): Use common hook.
	* c-lex.c (lex_charconst): Use c_dialect_cxx().
	* c-opts.c (lang_flags): Make function-local.
	(c_common_init_options): Use c_dialect_ macros.  Handle
	C++ diagnostic requirements.
	(c_common_handle_option, c_common_post_options): Use flag_cxx.
	* c-parse.in (init_reswords): Use c_dialect_objc ().
	* c-pch.c (get_ident): Use c_language.
	* c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
	* c-typeck.c (comptypes, build_c_cast): Similarly.
	* objc/objc-lang.c (c_language): Define.
	(LANG_HOOKS_INIT_OPTIONS): Use common hook.
	(objc_init_options): Remove.
cp:
	* Make-lang.in: Update.
	* cp-lang.c (c_language): Define.
	(LANG_HOOKS_INIT_OPTIONS): Use common hook.
	* cp-tree.h (cxx_init_options): Remove.
	* lex.c: Don't include diagnostic.h.
	(cxx_init_options): Remove.

From-SVN: r68734
2003-06-30 19:36:25 +00:00
Giovanni Bajo
4497827651 re PR c++/4933 (tree_list not supported by dump_expr)
2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/4933
        * error.c (dump_expr): Support correctly the COMPOUND_EXPR
        tree generated within a template. Use dump_expr to dump an
        expression sizeof.

From-SVN: r68733
2003-06-30 13:22:48 -06:00
Giovanni Bajo
c85e18ee68 re PR c++/4933 (tree_list not supported by dump_expr)
2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/4933
        * g++.dg/template/sizeof4.C: New test.

From-SVN: r68732
2003-06-30 13:21:25 -06:00
Gary Benson
27758dc09f For PR libgcj/11349:
2003-06-30  Gary Benson  <gbenson@redhat.com>

	For PR libgcj/11349:
	* javax/naming/spi/NamingManager.java (getURLContext): Use

From-SVN: r68730
2003-06-30 19:15:56 +00:00
Doug Gregor
d147b75b92 Don't initialize an insert_iterator with a singular iterator
From-SVN: r68729
2003-06-30 19:11:12 +00:00
Giovanni Bajo
20929c7f42 pt.c (value_dependent_expression_p): Cast expressions are value-dependent also if...
2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        * pt.c (value_dependent_expression_p): Cast expressions are
        value-dependent also if their operand is value-dependent itself.

From-SVN: r68728
2003-06-30 13:07:32 -06:00
Giovanni Bajo
f8bee204f6 mangle.c (write_expression): Exit gracefully when trying to mangle a CALL_EXPR.
2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        * mangle.c (write_expression): Exit gracefully when trying to
        mangle a CALL_EXPR.

From-SVN: r68724
2003-06-30 13:02:04 -06:00
Giovanni Bajo
b3c5e31b81 error6.C: New test.
2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        * g++.dg/other/error6.C: New test.

From-SVN: r68723
2003-06-30 13:01:08 -06:00
Wolfgang Bangerth
813e059114 Fix bad indentation due to changes in whitespace between patch creation and patch application.
From-SVN: r68722
2003-06-30 12:55:06 -06:00
Giovanni Bajo
984e085f58 re PR c++/10750 (error with using template template expression in static const initializer)
2003-06-17  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/10750
        * g++.dg/parse/constant2.C: New test.

From-SVN: r68721
2003-06-30 12:46:19 -06:00
Giovanni Bajo
9b61cc1bcc re PR c++/10750 (error with using template template expression in static const initializer)
2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        PR c++/10750
        * parser.c (cp_parser_primary_expression): A VAR_DECL with a
        (value- or type-) dependent expression as DECL_INITIAL is a
        valid constant-expression (at parser time).

From-SVN: r68720
2003-06-30 12:45:25 -06:00
Paolo Carlini
fbfcbadc8f 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
Tweak a couple of recent Changelog entries.

From-SVN: r68716
2003-06-30 17:46:26 +00:00
Benjamin Kosnik
44f0760eae acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2003-06-30  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
	* aclocal.m4: Regenerate.
	* configure.in (GLIBCPP_CHECK_PCH): Move, change to
	GLIBCPP_ENABLE_PCH, default to yes.
	* configure: Regenerate.
	* docs/html/configopts.html: Add --enable-pch.

From-SVN: r68715
2003-06-30 17:40:13 +00:00
Kazu Hirata
ec097612bc alpha.h (FUNCTION_ARG_PADDING): Remove.
* config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
	* config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.

From-SVN: r68714
2003-06-30 17:30:32 +00:00
Phil Edwards
e37f7da796 libstdc++-v3-dg.exp: Add comments.
2003-06-30  Phil Edwards  <pme@gcc.gnu.org>

	* testsuite/lib/libstdc++-v3-dg.exp:  Add comments.
	(libstdc++-v3-init):  Also set LD_RUN_PATH.

From-SVN: r68713
2003-06-30 17:17:58 +00:00
Giovanni Bajo
5806e0404c re PR c++/11106 (Error message gives partially mangled operator name)
2003-06-30  Giovanni Bajo <giovannibajo@libero.it>

        PR c++/11106
        * g++.dg/other/error5.C: New test.

From-SVN: r68712
2003-06-30 11:07:07 -06:00
Giovanni Bajo
37198bc85c re PR c++/11106 (Error message gives partially mangled operator name)
2003-06-10  Giovanni Bajo <giovannibajo@libero.it>

        PR c++/11106
        * error.c (dump_decl): Call dump_decl to dump the DECL_NAME for a
        USING_DECL, instead of print_tree_identifier.

From-SVN: r68711
2003-06-30 11:05:43 -06:00
Wolfgang Bangerth
b10d2c9d46 sourcebuild.texi: Don't reference gnats.html any more.
2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>

       * doc/sourcebuild.texi: Don't reference gnats.html any more.

From-SVN: r68710
2003-06-30 10:08:38 -06:00
Kazu Hirata
81983b04ee h8300.c (compute_mov_length): Fix length of mov:SF on H8/300.
* config/h8300/h8300.c (compute_mov_length): Fix length of
	mov:SF on H8/300.

From-SVN: r68709
2003-06-30 14:42:32 +00:00
Nick Clifton
1e0b938e57 oops - entry omitted during previous delta
From-SVN: r68708
2003-06-30 13:55:05 +00:00
Jan Hubicka
a9bce3ab59 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
From-SVN: r68706
2003-06-30 13:39:03 +00:00
Christopher Faylor
a22a090819 fix typo
From-SVN: r68705
2003-06-30 13:34:44 +00:00
Hartmut Penner
46c07df8a1 rs6000.c (rs6000_split_altivec_in_gprs): New function.
2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>

        * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
        (altivec_in_gprs_p): New function.

	* config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
	prototype.
	(altivec_in_gprs_p): New prototype.

	* config/rs6000/altivec.md (*movv4si_internal): Change
	multi-assembler alternative to '#'. Add postreload splitter to
	handle this cases.
	(*movv4hi_internal): Likewise.
	(*movv4qi_internal): Likewise.
	(*movv4sf_internal): Likewise.

From-SVN: r68704
2003-06-30 13:30:45 +00:00
Nick Clifton
8fca31a21e (BIGGEST_FIELD_ALIGNMENT): Make defintion constant.
From-SVN: r68703
2003-06-30 13:17:38 +00:00
Jason Merrill
9d6bef9526 defaults.h (PUSH_ARGS_REVERSED): Define default here.
* defaults.h (PUSH_ARGS_REVERSED): Define default here.
        * calls.c: Not here.

From-SVN: r68701
2003-06-30 09:16:26 -04:00
Ben Elliston
4e938719ec arm.c (arm_rtx_costs): Remove #if 0 block.
* config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
	(bad_signed_byte_operand): Likewise.
	(arm_output_epilogue): Likewise.
	(arm_final_prescan_insn): Likewise.

From-SVN: r68698
2003-06-30 22:06:04 +10:00
Rainer Orth
73383a8105 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
From-SVN: r68697
2003-06-30 12:00:16 +00:00
Rainer Orth
2d583dcbac c-pch.c (c_common_write_pch): Flush asm_out_file to allow for subsequent writes.
* c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
	subsequent writes.

From-SVN: r68696
2003-06-30 11:57:35 +00:00
Paolo Carlini
cd16e04b18 std_streambuf.h (_M_mode): Move from here to filebuf and stringbuf.
2003-06-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_streambuf.h (_M_mode): Move from here to
	filebuf and stringbuf.
	(~basic_streambuf()): Don't set _M_mode.
	(basic_streambuf()): Don't set _M_mode.
	* include/std/std_fstream.h (_M_mode): Move here, from streambuf.
	(~basic_filebuf()): Clean up.
	* include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
	* include/std/std_sstream.h (_M_mode): Move here, from streambuf.
	* testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
	* testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
	* testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.

2003-06-30  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_fstream.h (_M_underflow): Remove.
	(uflow): Remove, inherited from streambuf.
	(underflow): Only declare.
	* include/bits/fstream.tcc (_M_underflow): Rename to
	underflow, to which is equivalent for __bump == false,
	simplify.
	* include/std/std_sstream.h (_M_underflow): Remove.
	(uflow): Remove, inherited from streambuf.
	(underflow): Only declare.
	* include/bits/sstream.tcc (_M_underflow): Rename to
	underflow, to which is equivalent for __bump == false,
	simplify.

From-SVN: r68695
2003-06-30 11:17:23 +00:00
Jan Hubicka
3cf5441285 cfgrtl.c (verify_flow_info): Accept degenerated condjumps in cfglayout mode.
* cfgrtl.c (verify_flow_info): Accept degenerated condjumps
	in cfglayout mode.

From-SVN: r68694
2003-06-30 08:04:24 +00:00
Jan Hubicka
1f48e56d09 i386.c (standard_80387_constant_p): Accept TFmode constants too.
* i386.c (standard_80387_constant_p): Accept TFmode constants too.
	(init_ext_80387_constants): Likewise.
	(standard_80387_constant_rtx): Likewise.
	* i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
	(atantf): Disable for !TARGET_128BIT_LONG_LONG
	(fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
	(fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
	(fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
	(fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
	(frndinttf2): New.
	(f2xm1tf2): New.
	(exp?f2): Use expsf2_tf when needed.
	(exp?f2_tf): New.
	(exptf): New.

From-SVN: r68693
2003-06-30 07:57:58 +00:00
Uwe Stieber
8f48afc165 Patch from Uwe Stieber.
* config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
statement from tmake_file set.

From-SVN: r68692
2003-06-29 22:43:37 -07:00
James E Wilson
bd235d86cd reload.c (find_reloads): Change push_reloads to push_reload in comment.
* reload.c (find_reloads): Change push_reloads to push_reload in
comment.
* reload1.c (eliminate_regs): Likewise.
(dump_needs): Delete prototype for deleted function.

From-SVN: r68691
2003-06-29 20:11:48 -07:00
Paolo Carlini
c868f37e40 stl_algo.h (LOTS): Fully qualify standard functions with std::, thus avoiding Koenig lookup.
2003-06-29  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/stl_algo.h (LOTS): Fully qualify standard
	functions with std::, thus avoiding Koenig lookup.

From-SVN: r68690
2003-06-30 01:46:42 +00:00
Kaveh R. Ghazi
280c1e0d23 builtin-attrs.def (gcc_diag, [...]): New format attributes.
gcc:
	* builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
	format attributes.
	* c-format.c (enum format_type): Add gcc_diag_format_type,
	gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
	(gcc_diag_length_specs, gcc_cdiag_length_specs,
	gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
	gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
	gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
	gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
	(format_types_orig): Add new data.
	(find_char_info_specifier_index, init_dynamic_diag_info): New
	functions.
	(handle_format_attribute): Update to handle new format attributes.

testsuite:
	* gcc.dg/format/gcc_diag-1.c: New test.

From-SVN: r68689
2003-06-30 00:31:21 +00:00
GCC Administrator
54bbcbd99d Daily bump.
From-SVN: r68687
2003-06-30 00:16:06 +00:00
Aaron W. LaFramboise
29427b01e7 * config/i386/mingw32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
From-SVN: r68685
2003-06-29 23:35:55 +00:00
Dara Hazeghi
41ca24de1d Patch from Dara Hazeghi.
* doc/install.texi: Remove install documentation for obsoleted targets
i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
arm-*-aof.
Update information about IA64 toolchain, AIX make requirements,
and binutils for m68k-*-hpux and *-*-linuxaout targets.

From-SVN: r68683
2003-06-29 16:10:28 -07:00
Jan Hubicka
41b3243ed3 regmove.c (regmove_optimize): Don't try to make src and dst match when they are in different modes.
* regmove.c (regmove_optimize): Don't try to make src and dst match
	when they are in different modes.

From-SVN: r68682
2003-06-29 22:51:45 +00:00
Jan Hubicka
64e9744358 builtins.c (expand_builtin_mathfn, [...]): Avoid busy work when builtin is not supported by the backend.
* builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
	busy work when builtin is not supported by the backend.

From-SVN: r68681
2003-06-29 21:16:13 +00:00
Zdenek Dvorak
51a7f2053a loop.c (count_one_set): Fix detection of registers set in more than one basic block.
* loop.c (count_one_set): Fix detection of registers set in more
	than one basic block.

From-SVN: r68680
2003-06-29 20:42:42 +00:00
Andreas Jaeger
4a023207ac target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
* target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
	* system.h: Poison OBJ_FORMAT_ROSE.
	* doc/tm.texi (Macros for Initialization): Remove documentatin of
	OBJECT_FORMAT_ROSE.
	* config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
	* collect2.c: Remove usage of OBJECT_FORMAT_ROSE.

From-SVN: r68678
2003-06-29 20:34:38 +02:00
John David Anglin
5fad1c24db pa.c (update_total_code_bytes): New function.
* pa.c (update_total_code_bytes): New function.
	(last_address): Number of bytes output for a function and its
	associated thunks.
	(compute_frame_size): Use BITS_PER_UNIT.
	(pa_output_function_epilogue): Compute last_address.  Use
	update_total_code_bytes.
	(output_lbranch): Handle long branch on portable runtime.
	(attr_length_millicode_call, attr_length_call,
	attr_length_indirect_call): Only use total_code_bytes for calls in
	the text section.
	(output_call): Only use an indirect call sequence when the target is
	not local.
	(pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
	test to determine when an IA-relative branch can be used.  Add various
	long branch sequences.  Avoid using an indirect branch on all ports
	except SOM.

From-SVN: r68677
2003-06-29 18:21:57 +00:00
Ulrich Weigand
342e2b749d * expr.c (clear_by_pieces): Fix prototype.
From-SVN: r68676
2003-06-29 17:47:37 +00:00
David Edelsohn
e601f149a9 * config.gcc: Add 970.
From-SVN: r68675
2003-06-29 13:36:44 -04:00
Andreas Jaeger
502b832280 except.c: Convert prototypes to ISO C90.
* except.c: Convert prototypes to ISO C90.
	* except.h: Likewise.
	* emit-rtl.c: Likewise.
	* et-forest.c: Likewise.
	* et-forest.h: Likewise.
	* except.c: Likewise.
	* explow.c: Likewise.
	* expmed.c: Likewise.
	* expr.c: Likewise.
	* expr.h: Likewise.

From-SVN: r68674
2003-06-29 18:21:58 +02:00
Andreas Jaeger
7080f73594 cse.c: Convert prototypes to ISO C90.
* cse.c: Convert prototypes to ISO C90.
	* cselib.c: Likewise.
	* cselib.h: Likewise.
	* dbxout.c: Likewise.
	* debug.c: Likewise.
	* df.c: Likewise.
	* df.h: Likewise.
	* dojump.c: Likewise.
	* doloop.c: Likewise.
	* dominance.c: Likewise.
	* dwarf2asm.c: Likewise.
	* dwarf2out.c: Likewise.
	* dwarf2out.h: Likewise.
	* dwarfout.c: Likewise.

From-SVN: r68673
2003-06-29 17:19:13 +02:00
Kazu Hirata
f9da506452 alloc-pool.c: Fix comment formatting.
* alloc-pool.c: Fix comment formatting.
	* bitmap.c: Likewise.
	* bitmap.h: Likewise.
	* bt-load.c: Likewise.
	* builtins.c: Likewise.
	* caller-save.c: Likewise.
	* cfganal.c: Likewise.
	* cfgrtl.c: Likewise.
	* collect2.c: Likewise.
	* cse.c: Likewise.
	* df.c: Likewise.
	* diagnostic.c: Likewise.
	* dwarf2out.c: Likewise.
	* dwarfout.c: Likewise.
	* expmed.c: Likewise.
	* final.c: Likewise.
	* flags.h: Likewise.
	* fold-const.c: Likewise.
	* gcc.c: Likewise.
	* gcov-io.h: Likewise.
	* gcov.c: Likewise.
	* genattrtab.c: Likewise.
	* genautomata.c: Likewise.
	* libgcov.c: Likewise.
	* mips-tfile.c: Likewise.
	* optabs.c: Likewise.
	* prefix.c: Likewise.
	* rtlanal.c: Likewise.
	* stmt.c: Likewise.
	* stor-layout.c: Likewise.
	* toplev.c: Likewise.
	* varasm.c: Likewise.
	* vmsdbgout.c: Likewise.

From-SVN: r68672
2003-06-29 13:53:12 +00:00
Kazu Hirata
329d586fe5 expr.c (emit_single_push_insn): If padding is needed downward...
* expr.c (emit_single_push_insn): If padding is needed
	downward, adjust the stack pointer first, and then store the
	data into the stack location using an offset.

From-SVN: r68670
2003-06-29 13:40:24 +00:00