Nathan Sidwell
34e225a30b
pt.c (unify): Check array has a domain, before checking whether it is variable sized.
...
cp:
* pt.c (unify): Check array has a domain, before checking
whether it is variable sized.
testsuite:
* g++.old-deja/g++.pt/crash64.C: New test.
From-SVN: r38902
2001-01-11 11:45:03 +00:00
Nathan Sidwell
98979fe0b0
decl.c (grokparms): Unobfuscate and get correct diagnostic for parameters with pointers to arrays...
...
cp:
* decl.c (grokparms): Unobfuscate and get correct diagnostic for
parameters with pointers to arrays of unknown bound.
From-SVN: r38901
2001-01-11 11:37:15 +00:00
Nathan Sidwell
b37bf5bdb3
parse.y (template_parm_header, [...]): New reductions.
...
cp:
* parse.y (template_parm_header, template_spec_header): New
reductions. Split out from ...
(template_header): ... here. Use them.
(template_template_parm): Use template_parm_header.
* semantics.c (finish_template_template_parm): Add assert.
testsuite:
* g++.old-deja/g++.pt/crash63.C: New test.
From-SVN: r38900
2001-01-11 11:29:06 +00:00
Michael Hayes
0ab409ed42
flow.c (flow_call_edges_add): New.
...
* flow.c (flow_call_edges_add): New.
* basic_block.h (flow_call_edges_add): New.
From-SVN: r38899
2001-01-11 09:13:02 +00:00
Jeff Law
9e96a929d0
Daily bump.
...
From-SVN: r38898
2001-01-11 01:45:08 -07:00
Neil Booth
a5624f140d
* gcc.dg/cpp/if-2.c: Fix bogus update.
...
From-SVN: r38897
2001-01-11 08:11:29 +00:00
Neil Booth
f7d7b65139
* gcc.dg/cpp/if-2.c: Add wide char test without sign extension.
...
From-SVN: r38896
2001-01-11 07:53:41 +00:00
Benjamin Kosnik
752808fb43
ios.cc: Fix typo: change cout->wcout.
...
2001-01-10 Benjamin Kosnik <bkoz@redhat.com>
* src/ios.cc: Fix typo: change cout->wcout.
* src/Makefile.am (targetincludep): Fix for version-specific-libs.
* src/Makefile.in: Regenerate.
From-SVN: r38895
2001-01-11 07:27:50 +00:00
Mark Mitchell
792508b58b
* mangle.c (write_builtin_type): Fix thinko.
...
From-SVN: r38894
2001-01-11 03:15:49 +00:00
Mark Mitchell
8afa707fab
pt.c (copy_default_args_to_explicit_spec_1): New function.
...
* pt.c (copy_default_args_to_explicit_spec_1): New function.
(copy_default_args_to_explicit_spec): Likewise.
(check_explicit_specialization): Use it.
From-SVN: r38893
2001-01-11 03:10:12 +00:00
Bryce McKinlay
7e1376a14c
parse.y (resolve_expression_name): Permit instance variables from enclosing context in super constructor call.
...
* parse.y (resolve_expression_name): Permit instance variables from
enclosing context in super constructor call.
(resolve_qualified_expression_name): Permit enclosing class's
qualified "this" in super constructor call.
From-SVN: r38892
2001-01-11 03:00:56 +00:00
J"orn Rennecke
ada6635f2b
reload1.c (move2add_note_store): Update reg_set_luid even if base reg remains the same.
...
* reload1.c (move2add_note_store): Update reg_set_luid even if
base reg remains the same.
From-SVN: r38891
2001-01-11 02:57:52 +00:00
Bryce McKinlay
f6d1c49e80
Makefile.am: Re-enable dependencies.
...
* Makefile.am: Re-enable dependencies.
* Makefile.in: Rebuilt.
From-SVN: r38890
2001-01-11 02:50:47 +00:00
Jeff Law
38fd12eaa5
Rotate ChangeLog entries.
...
From-SVN: r38889
2001-01-10 19:12:48 -07:00
Nick Clifton
73d771f0f4
Initialise machine_function structure to zero.
...
From-SVN: r38888
2001-01-11 01:47:23 +00:00
Mark Mitchell
cbd5937a3d
c-common.h (CTI_VOID_LIST): Remove.
...
* c-common.h (CTI_VOID_LIST): Remove.
(void_list_node): Likewise.
* tree.h (TI_VOID_LIST_NODE): New enumeral.
(void_list_node): New macro.
* config/arm/arm.c (arm_init_builtins): Use void_list_node.
* config/i386/i386.c (ix86_init_builtins): Likewise.
* config/ia64a/ia64.c (ia64_init_builtins): Likewise.
* class.c (finish_struct_1): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
* decl.c (builtin_function): Likewise.
(build_cp_library_fn): Likewise.
(check_initializer): Likewise.
(make_rtl_for_nonlocal_decl): Likewise.
(cp_finish_decl): Likewise.
(start_function): Likewise.
* decl2.c (finish_anon_union): Likewise.
* friend.c (do_friend): Likewise.
* init.c (build_java_class_ref): Likewise.
* method.c (make_thunk): Likewise.
* pt.c (tsubst_friend_function): Likewise.
* semantics.c (expand_body): Likewise.
From-SVN: r38887
2001-01-11 00:08:45 +00:00
Alan Lehotsky
d0be7718ed
*** empty log message ***
...
From-SVN: r38886
2001-01-10 18:57:55 -05:00
Neil Booth
2f638f9664
Makefile.in (tradcpp0): Depend on mkdeps.h.
...
* Makefile.in (tradcpp0): Depend on mkdeps.h. Link mkdeps.o
* cppinit.c (cpp_start_read): Update comment, remove unneeded
if statement.
* tradcpp.c: Include mkdeps.h.
(deps, print_deps_phony_targets, deps_append, output_deps,
init_dependency_output, output_deps): New.
(deps_buffer, deps_allocated_size, deps_size, deps_column,
deps_output): Delete.
(print_deps_missing_files): Rename deps_missing_files.
(inhibit_output): Make global.
(main): Delete inhibit_output, deps_stream, deps_target.
Use mkdeps functionality in the same way as cpplib. Remove
-g3 handling. Handle -MF, -MP, -MQ, -MT. Update handling of
-M and -MM. Remove old handling of deps via deps_out, and
old reading of environment variables.
(get_filename): Update to use deps_add_dep.
From-SVN: r38885
2001-01-10 23:28:00 +00:00
Mark Mitchell
6c41818449
output.h (make_function_rtl): Remove prototype.
...
* output.h (make_function_rtl): Remove prototype.
(make_decl_rtl): Likewise.
* varasm.c (make_function_rtl): Remove.
(make_decl_rtl): Determine top-levelness from DECL_CONTEXT, rather
than from a third parameter.
* tree.h (make_decl_rtl): Remove last parameter.
* c-decl.c (builtin_function): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
(start_function): Likewise.
* except.c (call_get_eh_context): Likewise.
* expr.c (emit_block_move): Likewise.
(clear_storage): Likewise.
* profile.c (output_func_start_profiler): Likewise.
* toplev.c (rest_of_decl_compilation): Likewise.
* objc/objc-act.c (create_builtin_decl): Likewise.
(synth_module_prologue): Likewise.
(generate_static_reference): Likewise.
(build_selector_reference_decl): Likewise.
(build_class_reference_decl): Likewise.
(build_objc_string_decl): Likewise.
(build_protocol_reference): Likewise.
* class.c (finish_struct_1): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
* decl.c (builtin_function): Likewise.
(build_cp_library_fn): Likewise.
(check_initializer): Likewise.
(make_rtl_for_nonlocal_decl): Likewise.
(cp_finish_decl): Likewise.
(start_function): Likewise.
* decl2.c (finish_anon_union): Likewise.
* friend.c (do_friend): Likewise.
* init.c (build_java_class_ref): Likewise.
* method.c (make_thunk): Likewise.
* pt.c (tsubst_friend_function): Likewise.
* semantics.c (expand_body): Likewise.
* com.c (ffecom_init_zero_): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
(ffecom_lookup_label_): Likewise.
(builtin_function): Likewise.
(start_function): Likewise.
* class.c (build_utf8_ref): Remove last argument in call to
make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
(build_class_ref): Likewise.
(build_static_field_ref): Likewise.
(get_dispatch_table): Likewise.
(layout_class_method): Likewise.
(emit_register_classes): Likewise.
* constants.c (build_constant_data_ref): Likewise.
* decl.c (builtin_function): Likewise.
(create_primitive_vtable): Likewise.
* expr.c (build_known_method_def): Likewise.
(build_jni_stub): Likewise.
(java_lang_expand_expr): Likewise.
From-SVN: r38884
2001-01-10 23:06:30 +00:00
Richard Henderson
4621c6409a
* hwint.h: Revert yesterday's change.
...
From-SVN: r38883
2001-01-10 14:27:40 -08:00
Nick Clifton
414c4dc49c
Remove {save|restore}_machine_status.
...
Document {init|mark|free}_machine_status.
From-SVN: r38882
2001-01-10 21:40:14 +00:00
Neil Booth
5c5d1ea0c8
cppinit.c (OPT_g): Remove.
...
* cppinit.c (OPT_g): Remove.
(cpp_handle_option): Update for removed -g3.
(print_help): Update.
* cpplib.h (struct cpp_options): Remove debug_output.
* cppmain.c (setup_callbacks, cb_define): Update.
* gcc.c (cpp_options): Translate -g3 to -dD.
From-SVN: r38881
2001-01-10 21:32:15 +00:00
Aldy Hernandez
d9271ccca6
fix constraint for i960.md
...
From-SVN: r38880
2001-01-10 21:14:04 +00:00
Aldy Hernandez
c243fc1b44
fix constraint
...
From-SVN: r38879
2001-01-10 21:12:28 +00:00
Peter Schmid
90e420bd60
std_complex.h: Fix a typo.
...
2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/std_complex.h: Fix a typo.
From-SVN: r38878
2001-01-10 20:55:03 +00:00
Richard Henderson
37b157440f
alpha.c (alpha_free_machine_status): New.
...
* config/alpha/alpha.c (alpha_free_machine_status): New.
(override_options): Install it.
(alpha_mark_machine_status): Verify machine non-null.
* config/i386/i386.c (ix86_free_machine_status): New.
(override_options): Install it.
(ix86_init_machine_status): Use xcalloc.
(ix86_mark_machine_status): Verify machine non-null.
* config/ia64/ia64.c (ia64_free_machine_status): New.
(ia64_override_options): Install it.
(ia64_mark_machine_status): Verify machine non-null.
From-SVN: r38877
2001-01-10 11:59:23 -08:00
Mark Mitchell
31d95fc6e6
cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not looking at DECL_CLONED_FUNCTION for non-functions.
...
* cp-tree.h (DECL_CLONED_FUNCTION_P): Avoid wild reads by not
looking at DECL_CLONED_FUNCTION for non-functions.
From-SVN: r38876
2001-01-10 19:55:03 +00:00
Alexandre Petit-Bianco
23d4e4cc4a
decl2.c (acceptable_java_type): Allow references too.
...
2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
* decl2.c (acceptable_java_type): Allow references too.
* init.c (build_java_class_ref): When using the new ABI, search
`class$' and have it mangled with `mangle_decl.'
* mangle.c (write_java_integer_type_codes): New function.
(write_builtin_type): Detect and mangle Java integer and real
types.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg00756.html )
From-SVN: r38875
2001-01-10 11:20:52 -08:00
Tom Tromey
0adc3d8a92
* jvspec.c (jvgenmain_spec): Omit -fencoding from cc1 invocation.
...
From-SVN: r38874
2001-01-10 19:13:10 +00:00
Jeffrey A Law
87c61e2d0d
function.c (instantiate_virtual_regs): Instantiate virtual registers found in CALL_INSN_FUNCTION_USAGE.
...
* function.c (instantiate_virtual_regs): Instantiate virtual
registers found in CALL_INSN_FUNCTION_USAGE.
From-SVN: r38873
2001-01-10 11:35:50 -07:00
Joseph Myers
930bbdd224
i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as equivalent to -ansi in disabling -Di386.
...
* i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
equivalent to -ansi in disabling -Di386.
From-SVN: r38872
2001-01-10 17:52:40 +00:00
Benjamin Kosnik
469550eb04
Fixes for libstdc++/1576
...
2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
<kainz@ilm.com>
Fixes for libstdc++/1576
* src/stdstreams.cc: Initialize with NULL filebuf. Delete
file, move contents into....
* src/ios.cc: ...Here. Put defines for iostreams objects and
initialization routines into one file to simplify DSO interaction.
* include/bits/std_iostream.h: Touch.
* include/bits/ios_base.h (_S_synched_with_stdio): Make static.
* src/Makefile.am (sources): Remove stdstreams.cc.
* src/Makefile.in: Regenerate.
From-SVN: r38871
2001-01-10 17:24:11 +00:00
Alexandre Petit-Bianco
761491c8dc
[multiple changes]
...
2001-01-08 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java-tree.h (lang_printable_name_wls): New prototype.
* lang.c (put_decl_name): Removed dead code. Use DECL_CONTEXT
rather than `current_class' to print type name. Don't prepend type
names when printing constructor names.
(lang_printable_name_wls): New function.
* jcf-parse.c (jcf_parse_source): Pass NULL `file' argument to
`build_expr_wfl', alway set EXPR_WFL_FILENAME_NODE.
* parse.y (patch_method_invocation): Message tuned for constructors.
(not_accessible_p): Grant `private' access from within
enclosing contexts.
2001-01-05 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (patch_binop): Compute missing type in error situations.
(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg00752.html )
From-SVN: r38870
2001-01-10 09:05:43 -08:00
Nathan Sidwell
31bb3027a6
error.c (dump_template_parameter): Use parm to determine how to print default value.
...
cp:
* error.c (dump_template_parameter): Use parm to determine how
to print default value.
testsuite:
* g++.old_deja/g++.pt/error3.C: New test.
From-SVN: r38869
2001-01-10 15:41:00 +00:00
Jan Hubicka
c0c102a96b
i386.c (ix86_fp_compare_code_to_integer, [...]): new functions.
...
* i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
new functions.
(ix86_expand_fp_compare): Make trivial use of new infrastructure.
From-SVN: r38868
2001-01-10 15:39:55 +00:00
Nathan Sidwell
fd3f43e7a5
class.c (duplicate_tag_error): Clear more flags.
...
cp:
* class.c (duplicate_tag_error): Clear more flags.
testsuite:
* g++.old_deja/g++.other/crash39.C: New test.
From-SVN: r38867
2001-01-10 15:30:59 +00:00
Nathan Sidwell
042b4c4e4d
call.c (build_new_method_call): Use binfo_for_vbase.
...
cp:
* call.c (build_new_method_call): Use binfo_for_vbase.
testsuite:
* g++.old_deja/g++.other/vbase4.C: New test.
From-SVN: r38866
2001-01-10 14:13:41 +00:00
Richard Earnshaw
7805390752
Temporary fix to work around bug in C++ front end.
...
* arm.c (arm_init_builtins): Temporarily disable xscale builtins.
From-SVN: r38865
2001-01-10 13:54:30 +00:00
Joseph Myers
a7537031e6
invoke.texi: Document that -fcond-mismatch isn't supported for C++.
...
* invoke.texi: Document that -fcond-mismatch isn't supported for
C++.
cp:
* cp-tree.h (flag_cond_mismatch): Don't declare.
* decl2.c (flag_cond_mismatch): Don't define.
(lang_f_options): Remove cond-mismatch.
(unsupported_options): Add cond-mismatch.
From-SVN: r38864
2001-01-10 10:57:17 +00:00
Joseph Myers
2642624b16
gcc.texi: Define macro gcctabopt.
...
gcc:
* gcc.texi: Define macro gcctabopt.
* invoke.texi: Add manpage sections BUGS and AUTHOR. Use
@command, @env and @option in some places where appropriate. Use
@gcctabopt where appropriate. Put URLs and email addresses inside
@w.
contrib:
* texi2pod.pl: Handle @gcctabopt and @env in tables. Handle
@command. Format URLs and email addresses in bold.
From-SVN: r38863
2001-01-10 10:54:02 +00:00
Warren Levy
737c87df28
* java/math/BigDecimal.java (divide): Fixed comment.
...
From-SVN: r38862
2001-01-10 10:26:34 +00:00
Warren Levy
698489049d
re PR libgcj/1596 (setScale() missing from java.math.BigDecimal)
...
Fix for PR libgcj/1596:
* java/math/BigDecimal.java (divide): Check newScale for validity.
Ensure that BigInteger.pow() is called with a non-negative value.
(setScale (int)): New public method.
(setScale (int,int)): New public method.
From-SVN: r38861
2001-01-10 09:38:08 +00:00
Jeff Law
534808a32a
Daily bump.
...
From-SVN: r38860
2001-01-10 01:45:10 -07:00
Nathan Sidwell
11972f66cd
gcc.c (cpp_options): Set MD file name from output filename, if specified.
...
* gcc.c (cpp_options): Set MD file name from output
filename, if specified.
(suffix_subst): New static variable.
(do_spec): Clear it.
(do_spec_1, case '.'): Handle new `%.suffix' spec.
Clear it.
(give_switch): Handle suffix_subst.
From-SVN: r38859
2001-01-10 08:18:10 +00:00
Phil Edwards
0a75e5c306
invoke.texi: Fix another typo.
...
2001-01-10 Phil Edwards <pme@sources.redhat.com>
* invoke.texi: Fix another typo.
From-SVN: r38858
2001-01-10 08:10:59 +00:00
Phil Edwards
9169269f62
invoke.texi: Fix typo.
...
2001-01-10 Phil Edwards <pme@sources.redhat.com>
* invoke.texi: Fix typo.
From-SVN: r38857
2001-01-10 07:54:07 +00:00
Neil Booth
ee811cfdfa
c-lang.c (lang_hooks): Update.
...
* c-lang.c (lang_hooks): Update.
(lang_decode_option): Remove.
(lang_init_options): Rename c_init_options.
* toplev.c (main): Use lang_hooks for lang_init_options
and lang_decode_option.
* toplev.h (lang_hooks): Add 2 new hooks.
* tree.h: Remove lang_init_options and lang_decode_option.
* cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
* cp/decl2.c: Similarly.
* cp/lex.c (lang_init_options): Rename cxx_init_options.
(lang_hooks): Update.
* f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
for consistency.
(lang_init_options): Rename ffe_init_options.
(lang_hooks): Update.
(lang_decode_option): Remove.
* java/lang.c (lang_init_options): Rename java_init_options.
(lang_decode_option): Rename java_decode_option.
(lang_hooks): Update.
* objc/objc-act.c (lang_init_options): Rename objc_init_options.
(lang_decode_option): Rename objc_decode_option.
(lang_hooks): Update.
From-SVN: r38856
2001-01-10 07:51:11 +00:00
Nick Clifton
8541c24be9
Change from using {save|restore}_machine_status to {init|mark|free}_machine_status
...
From-SVN: r38855
2001-01-10 05:29:14 +00:00
John David Anglin
4d5a6f78b4
pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code, PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
...
* pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code,
PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
* pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
From-SVN: r38854
2001-01-09 21:35:07 -07:00
Jeffrey A Law
ecb7e78400
lang-options.h: Remove bogus reference to Java trademark.
...
* objc/lang-options.h: Remove bogus reference to
Java trademark.
From-SVN: r38853
2001-01-09 21:32:04 -07:00