Jason Merrill
212e17fd89
cvt.c (cp_convert_to_pointer): Call force_fit_type for null pointers.
...
* cvt.c (cp_convert_to_pointer): Call force_fit_type for null
pointers.
From-SVN: r55272
2002-07-05 18:10:25 -04:00
Stephane Carrez
4c8aed1419
m68hc11.md ("*ashlsi3"): Avoid saving y if we know it is dead.
...
* config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
it is dead.
("*ashrsi3"): Likewise.
("*lshrsi3"): Likewise.
From-SVN: r55270
2002-07-05 23:59:17 +02:00
Vladimir Makarov
99ed68ea7f
genautomata.c (output_max_insn_queue_index_def): Take latencies into account.
...
2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (output_max_insn_queue_index_def): Take latencies
into account.
From-SVN: r55269
2002-07-05 21:40:16 +00:00
Stephane Carrez
581fd39277
m68hc11.md (peephole2): New peephole2 to optimize address computation and memory moves.
...
* config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
address computation and memory moves.
From-SVN: r55267
2002-07-05 23:31:31 +02:00
Tom Tromey
0d49ec1158
re PR libgcj/7060 (getMethod() doesn't search super interface)
...
2002-07-04 Tom Tromey <tromey@redhat.com>
Jeff Sturm <jsturm@one-point.com>
Fix for PR libgcj/7060:
* java/lang/Class.h (_getMethod): Renamed from getMethod.
* java/lang/natClass.cc (_getMethod): Renamed from getMethod.
Recurse into superinterfaces. Don't throw NoSuchMethodException.
* java/lang/Class.java (getMethod): New Java implementation;
complies with spec.
(_getMethod): New native method.
Co-Authored-By: Jeff Sturm <jsturm@one-point.com>
From-SVN: r55266
2002-07-05 20:40:11 +00:00
Mark Mitchell
9833f6792a
re PR c++/6706 (ICE with variable-sized arrays and DWARF-1 output)
...
PR c++/6706
* dwarfout.c (output_reg_number): Fix warning message.
(output_bound_representation): Check SAVE_EXPR_RTL is not NULL
before using it.
PR c++/6706
* g++.dg/debug/debug6.C: New test.
* g++.dg/debug/debug7.C: New test.
From-SVN: r55264
2002-07-05 16:40:01 +00:00
Jason Merrill
7dc17098a2
re PR rtl-optimization/7145 (g++ -O with structure initializer & return value optimization generates bad code)
...
PR optimization/7145
* tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
[[Split portion of a mixed commit.]]
From-SVN: r55262.2
2002-07-05 11:16:56 -04:00
Jason Merrill
98c07d7bd7
re PR rtl-optimization/7145 (g++ -O with structure initializer & return value optimization generates bad code)
...
PR optimization/7145
* tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
From-SVN: r55261
2002-07-05 11:01:04 -04:00
Nathan Sidwell
5974630302
copyright date updated
...
From-SVN: r55260
2002-07-05 12:34:58 +00:00
Rainer Orth
81bca2f51e
gcc.c (asm_debug): Move initialization ...
...
* gcc/gcc.c (asm_debug): Move initialization ...
(init_spec): ... here.
From-SVN: r55259
2002-07-05 12:33:52 +00:00
Nathan Sidwell
17f44f02e7
c-parse.in (extdef): Append ';'.
...
* c-parse.in (extdef): Append ';'.
(old_style_parm_decls): Append ';'.
From-SVN: r55258
2002-07-05 12:31:59 +00:00
Nathan Sidwell
c6f553d129
Repair damage on weak-impared targets caused by my previous patch.
...
* cp-tree.h (import_export_tinfo): Add parameter.
* decl2.c (import_export_tinfo): Add parameter, post adjust
DECL_COMDAT.
* rtti.c (emit_tinfo_decl): DECL_COMDAT is (nearly) always setup by
import_export_tinfo.
From-SVN: r55257
2002-07-05 10:40:47 +00:00
GCC Administrator
3aa0aa2966
Daily bump.
...
From-SVN: r55256
2002-07-05 07:17:18 +00:00
Steve Ellcey
a0af94a769
* ltcf-cxx.sh (hpux*): Modify to support ia64-*-hpux*.
...
From-SVN: r55250
2002-07-04 22:52:03 +00:00
Daniel Jacobowitz
da77408f4c
configure.in: Correct typos...
...
* configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
to gcc_cv_as_gstabs_flag.
* configure: Rebuilt.
From-SVN: r55249
2002-07-04 22:43:29 +00:00
Geoffrey Keating
ec52b446cc
* ggc.h (ggc_add_root): Document as obsolete.
...
From-SVN: r55247
2002-07-04 21:24:25 +00:00
Benjamin Kosnik
49433044e4
std_streambuf.h (basic_streambuf::_M_buf): Change to size_t, from int_type.
...
2002-07-04 Benjamin Kosnik <bkoz@redhat.com>
Jack Reeves <jackw_reeves@hotmail.com>
* include/std/std_streambuf.h (basic_streambuf::_M_buf): Change to
size_t, from int_type.
(basic_streambuf::_M_buf_size_opt): Same.
(basic_streambuf::_S_pback_sizex): Same.
* include/bits/streambuf.tcc: Same.
* include/std/std_streambuf.h (basic_streambuf::snextc): Use
eq_int_type.
(basic_streambuf::uflow): Same.
* include/bits/sstream.tcc (basic_stringbuf::overflow): Use
to_char_type.
* include/bits/basic_ios.tcc (basic_ios::init): Use _CharT().
* include/bits/streambuf.tcc (basic_streambuf::xsgetn): Use
eq_int_type.
(basic_streambuf::xsputn): Same.
(__copy_streambufs): Same.
Co-Authored-By: Jack Reeves <jackw_reeves@hotmail.com>
From-SVN: r55242
2002-07-04 09:20:01 +00:00
Benjamin Kosnik
5acf59f8e1
std_memory.h: Fix formatting.
...
2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_memory.h: Fix formatting.
* testsuite/20_util/auto_ptr_neg.cc: New.
* testsuite/20_util/auto_ptr.cc: Tweaks.
* testsuite/23_containers/map_operators.cc (test01): Split into..
* testsuite/23_containers/map_operators_neg.cc (test01): ...this. New.
* testsuite/23_containers/set_operators.cc: Move to...
* testsuite/23_containers/set_operators_neg.cc: ...here.
* testsuite/README: Add some more naming rules.
From-SVN: r55241
2002-07-04 07:25:19 +00:00
GCC Administrator
7c0f8bc1f4
Daily bump.
...
From-SVN: r55240
2002-07-04 07:17:50 +00:00
J"orn Rennecke
8721e3df4d
sh.md (mshfhi_b, [...]): Add DONE.
...
* sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
(mshflo_w): Likewise.
From-SVN: r55235
2002-07-04 08:02:48 +01:00
J"orn Rennecke
3767c0fdd6
simplify-rtx.c (simplify_subreg): Reduce problem of finding vector mode subregs of constants to finding integer...
...
gcc:
* simplify-rtx.c (simplify_subreg): Reduce problem of finding
vector mode subregs of constants to finding integer mode
subregs of constants.
* cse.c (cse_insn): Use simplify_gen_subreg.
* convert.c (convert_to_integer): Don't strip a NOP_EXPR
From a vector mode expression of different size than the
target mode.
gcc/testsuite:
* gcc.c-torture/compile/simd-3.c: New test.
From-SVN: r55234
2002-07-04 07:38:56 +01:00
Eric Christopher
4e314d1fde
linux.h: Add #undef for SUBTARGET_CPP_SPEC.
...
2002-07-03 Eric Christopher <echristo@redhat.com>
* config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
* config/mips/mips.h: Remove deprecated -m<processor> options
and cc1_cpu_spec associated.
(CONSTANT_ADDRESS_P): Fix last patch.
(ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
* config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
sunge_sf): Remove.
From-SVN: r55233
2002-07-04 05:03:02 +00:00
Steev Wilcox
ec4d88f907
re PR libstdc++/7057 (Operator== on hashtables doesn't appear to work correctly (patch included))
...
2002-07-03 Steev Wilcox <steev@paradigmds.com>
PR libstdc++/7057
* include/ext/stl_hashtable.h: Fix.
* testsuite/ext/hash_map.cc: New.
From-SVN: r55229
2002-07-04 00:28:03 +00:00
Chris Demetriou
a6a5beb19c
mangle6.C: Run for mipsisa64*-*-* targets.
...
2002-07-03 Chris Demetriou <cgd@broadcom.com>
* g++.dg/abi/mangle6.C: Run for mipsisa64*-*-* targets.
* gcc.dg/20020620-1.c: Likewise.
From-SVN: r55228
2002-07-03 16:09:11 -07:00
Nathanael Nerode
423ce3eb95
* configure.in: Make --without-x work.
...
From-SVN: r55226
2002-07-03 22:50:35 +00:00
Jack Reeves
16ad69a19d
re PR libstdc++/3946 (auto_ptr_ref constructor allows dangerous conversion)
...
2002-07-03 Jack Reeves <jackw_reeves@hotmail.com>
Kenny Simpson <theonetruekenny@yahoo.com>
Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/3946
* testsuite/20_util/auto_ptr.cc (test08): New test.
* include/std/std_memory.h (auto_ref_ptr): Make constructor explicit.
(auto_ptr::operator auto_ptr_ref): Fix typo.
General reformatting and doxygenating of the whole file.
Co-Authored-By: Kenny Simpson <theonetruekenny@yahoo.com>
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r55223
2002-07-03 22:25:06 +00:00
Stan Shebs
6f0361e32e
darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
...
* config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
(STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
(CPP_SPEC): Remove insertion of APPLE_CC definition.
From-SVN: r55222
2002-07-03 21:50:12 +00:00
Roger Sayle
3129af4c94
combine.c (struct_undo): Change types of recorded substitutions to be either "int" or "rtx"...
...
* combine.c (struct_undo): Change types of recorded substitutions
to be either "int" or "rtx", instead of "unsigned int" and "rtx".
(do_SUBST_INT): Change types of the substitution from unsigned int
to int, to avoid compilation warning from SUBST_INT's only caller.
(make_extraction): Add cast to avoid compilation warning.
(force_to_mode): Remove cast to avoid compilation warning.
From-SVN: r55221
2002-07-03 21:00:23 +00:00
Benjamin Kosnik
fcad420e8f
re PR libstdc++/7097 (_GLIBCPP_HAVE_MBSTATE_T breaks non-GLIB systems)
...
2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7097
* include/c/std_cwchar.h: Fix.
From-SVN: r55216
2002-07-03 17:14:21 +00:00
Eric Botcazou
c7375e612b
i386.md (length_immediate attribute): Fix typo.
...
* i386.md (length_immediate attribute): Fix typo.
(length_address attribute): Likewise.
(modrm attribute): Set it to 0 for immediate call instructions.
(jcc_1 pattern): Set modrm attribute to 0.
(jcc_2 pattern ): Likewise.
(jump pattern): Likewise.
(doloop_end_internal pattern): Explicitly set length.
(leave pattern): Fix typo.
(leave_rex64 pattern): Likewise.
Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r55215
2002-07-03 11:02:39 -06:00
Kriang Lerdsuwanakij
b2153b98f2
re PR c++/6944 (missing feature on default copy-constructor for class with multi-dim arrays)
...
PR c++/6944
* init.c (build_aggr_init): Remove qualifiers of init before calling
build_vec_init.
(build_vec_init): Flatten multi-dimensional array during cleanup.
(build_vec_delete_1): Abort if the type of each element is array.
* g++.dg/init/array4.C: New test.
* g++.dg/init/array5.C: New test.
From-SVN: r55214
2002-07-03 15:46:21 +00:00
David Edelsohn
61c07d3c9b
rs6000.md (fix_truncdfsi2_internal): Ignore DImode in FPR as preference.
...
* config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
in FPR as preference.
(fctiwz): Same.
(floatdidf2, fix_truncdfdi2): Same.
(floatdisf2, floatditf2, fix_trunctfdi2): Same.
(floatditf2): Same.
(floatsitf2, fix_trunctfsi2): SImode in GPR.
(ctrdi): Remove FPR alternative and splitter.
From-SVN: r55212
2002-07-03 10:41:22 -04:00
Will Cohen
77966be34b
i386.c (x86_integer_DFmode_moves): Disable for PPro.
...
2002-07-02 Will Cohen <wcohen@redhat.com>
* config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
From-SVN: r55211
2002-07-03 14:15:44 +00:00
Graham Stott
492ff760e9
* pt.c (instantiate_class_template): Fix typo.
...
From-SVN: r55210
2002-07-03 12:13:31 +00:00
J"orn Rennecke
34a80643d8
optabs.c (expand_vector_binop): Don't store using a SUBREG smaller than UNITS_PER_WORD...
...
gcc:
* optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
than UNITS_PER_WORD, unless this is little endian and the first unit
in this word. Let extract_bit_field decide how to load an element.
Force arguments to matching mode.
(expand_vector_unop): Likewise.
* simplify-rtx.c (simplify_subreg): Don't assume that all vectors
consist of word_mode elements.
* c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
(build_unary_op): Allow vector types for BIT_NOT_EPR.
* emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
CONST_VECTOR.
* optabs.c (expand_vector_binop): Try to perform operation in
smaller vector modes with same inner size. Add handling of AND, IOR
and XOR. Reject expansion to inner-mode sized scalars when using
OPTAB_DIRECT. Use simplify_gen_subreg on constants.
(expand_vector_unop): Try to perform operation in smaller vector
modes with same inner size. Add handling of one's complement.
When there is no vector negate operation, try a vector subtract
operation. Use simplify_gen_subreg on constants.
* simplify-rtx.c (simplify_subreg): Add capability to convert vector
constants into smaller vectors with same inner mode, and to
integer CONST_DOUBLEs.
gcc/testsuite:
* gcc.c-torture/execute/simd-1.c (main): Also test &, |, ^, ~.
* gcc.c-torture/execute/simd-2.c (main): Likewise.
From-SVN: r55209
2002-07-03 10:49:46 +01:00
GCC Administrator
032b2b2990
Daily bump.
...
From-SVN: r55208
2002-07-03 07:17:24 +00:00
Benjamin Kosnik
fdf7e80975
re PR libstdc++/6410 (Trouble with non-Ascii monetary symbols and wchar_t)
...
2002-07-02 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6410
* include/bits/locale_facets.h (moneypunct::moneypunct): Add const
char* name parameter.
* config/locale/gnu/monetary_members.cc: Use it.
* config/locale/generic/monetary_members.cc: Same.
* src/localename.cc (_Impl::_Impl(const char*, size_t)): Use it.
* include/backward/strstream.h: Update date.
From-SVN: r55203
2002-07-03 06:29:26 +00:00
Nathanael Nerode
c3b7d16939
* configure.in: Rearrange target Makefile fragment collection.
...
From-SVN: r55202
2002-07-03 02:49:38 +00:00
Kaveh R. Ghazi
622d373136
c-parse.in (parsing_iso_function_signature): New variable.
...
gcc:
* c-parse.in (parsing_iso_function_signature): New variable.
(extdef_1): New, copied from...
(extdef): ... here. Reset parsing_iso_function_signature.
(old_style_parm_decls): Reset parsing_iso_function_signature.
(old_style_parm_decls_1): New, copied from old_style_parm_decls.
Warn about ISO C style function definitions.
(nested_function, notype_nested_function): Reset
parsing_iso_function_signature.
(parmlist_2): Set parsing_iso_function_signature.
* doc/invoke.texi (-Wtraditional): Document new behavior.
gcc/testsuite:
* gcc.dg/cpp/tr-warn2.c: Use traditional C style function definitions.
* gcc.dg/wtr-aggr-init-1.c: Likewise.
* gcc.dg/wtr-conversion-1.c: Likewise.
* gcc.dg/wtr-escape-1.c: Likewise.
* gcc.dg/wtr-int-type-1.c: Likewise.
* gcc.dg/wtr-label-1.c: Likewise.
* gcc.dg/wtr-static-1.c: Likewise.
* gcc.dg/wtr-strcat-1.c: Likewise.
* gcc.dg/wtr-suffix-1.c: Likewise.
* gcc.dg/wtr-switch-1.c: Likewise.
* gcc.dg/wtr-unary-plus-1.c: Likewise.
* gcc.dg/wtr-union-init-1.c: Likewise.
* gcc.dg/wtr-union-init-2.c: Likewise.
* gcc.dg/wtr-union-init-3.c: Likewise.
* gcc.dg/wtr-func-def-1.c: New test.
From-SVN: r55201
2002-07-03 02:41:34 +00:00
Chris Demetriou
9bb46191b4
config.gcc (mips*el-*-*): Use tm_defines to set TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
...
2002-07-02 Chris Demetriou <cgd@broadcom.com>
* config.gcc (mips*el-*-*): Use tm_defines to set
TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
* config/mips/little.h: Remove.
From-SVN: r55200
2002-07-02 16:26:45 -07:00
Chris Demetriou
31e25abd91
further fix formatting of previous ChangeLog entry
...
From-SVN: r55199
2002-07-02 16:15:08 -07:00
Chris Demetriou
e1c2dd260b
fix formatting of previous ChangeLog entry
...
From-SVN: r55198
2002-07-02 16:12:03 -07:00
Devang Patel
c40da51899
objc-act.c (adjust_type_for_id_default): Do not allow an object as parameter.
...
* objc/objc-act.c (adjust_type_for_id_default): Do not allow an
object as parameter. Prevent something like 'NSObject' to be
used as the type for a method argument.
testsuite:
* objc.dg/param-1.m: New test.
From-SVN: r55197
2002-07-02 16:06:04 -07:00
Neil Booth
0879540b3d
cpptrad.c: Update comment.
...
* cpptrad.c: Update comment.
testsuite:
* gcc.dg/cpp/trad/directive.c: Add test.
* gcc.dg/cpp/trad/macroargs.c: Add test.
* gcc.dg/cpp/trad/recurse-3.c: Add tests.
From-SVN: r55196
2002-07-02 22:33:38 +00:00
Neil Booth
ba57a9c052
cppinit.c (cpp_handle_option): Suppress warnings with an implicit "-w" for "-M" and "-MM".
...
* cppinit.c (cpp_handle_option): Suppress warnings with an
implicit "-w" for "-M" and "-MM".
From-SVN: r55195
2002-07-02 22:28:18 +00:00
Neil Booth
b6fb43ab3e
cpp.texi: Update for traditional preprocessing changes.
...
* doc/cpp.texi: Update for traditional preprocessing changes.
* goc/cppopts.texi: Similarly.
From-SVN: r55194
2002-07-02 22:20:33 +00:00
Neil Booth
c680d2b66a
* Forgotten to apply.
...
From-SVN: r55193
2002-07-02 22:03:40 +00:00
Ziemowit Laski
c1c5187c9e
c-parse.in (designator): Enable designated initializers if ObjC.
...
2002-07-02 Ziemowit Laski <zlaski@apple.com>
* c-parse.in (designator): Enable designated initializers if ObjC.
(objcmessageexpr): Remove references to objc_receiver_context.
* objc/objc-act.h (objc_receiver_context): Remove decl.
* objc/objc-act.c (objc_receiver_context): Remove.
(lookup_objc_ivar): Test objc_method_context instead of
objc_receiver_context.
2002-07-02 Ziemowit Laski <zlaski@apple.com>
* objc.dg/desig-init-1.m: New test.
From-SVN: r55192
2002-07-02 21:59:34 +00:00
Tom Tromey
aa5661e6b4
2002-07-02 Tom Tromey <tromey@redhat.com>
...
David Hovemeyer <daveho@cs.umd.edu>
* java/text/ChoiceFormat.java
(format(double,StringBuffer,FieldPosition)): Fix fencepost error
in check loop.
* java/text/MessageFormat.java
(format(Object[],StringBuffer,FieldPosition): Pass all arguments
to MessageFormat.
Co-Authored-By: David Hovemeyer <daveho@cs.umd.edu>
From-SVN: r55191
2002-07-02 19:43:06 +00:00
Rodney Brown
40165636b5
encoding.h: Fix formatting.
...
2002-07-02 Rodney Brown <rbrown64@csc.com.au>
* objc/encoding.h: Fix formatting.
* objc/hash.h: Likewise.
* objc/objc-api.h: Likewise.
* objc/runtime.h: Likewise.
* objc/thr.h: Likewise.
* archive.c: Likewise.
* class.c: Likewise.
* encoding.c: Likewise.
* gc.c: Likewise.
* hash.c: Likewise.
* init.c: Likewise.
* misc.c: Likewise.
* nil_method.c: Likewise.
* objects.c: Likewise.
* sarray.c: Likewise.
* selector.c: Likewise.
* sendmsg.c: Likewise.
* thr-mach.c: Likewise.
* thr.c: Likewise.
From-SVN: r55190
2002-07-02 19:43:03 +00:00