Jason Merrill [Sat, 12 Aug 2000 00:02:49 +0000 (20:02 -0400)]
decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're looking inside.
* decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
looking inside.
From-SVN: r35650
Richard Henderson [Fri, 11 Aug 2000 23:48:26 +0000 (16:48 -0700)]
ia64.md (addsi3): Remove expander.
* config/ia64/ia64.md (addsi3): Remove expander.
(subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
(*addsi3_shladd): New.
From-SVN: r35649
Richard Henderson [Fri, 11 Aug 2000 23:10:10 +0000 (16:10 -0700)]
ia64.c (do_spill): Pass cfa offset to move expander.
* config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
(do_restore): Likewise.
(gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
(ia64_expand_prologue, ia64_expand_epilogue): Use them.
(rtx_needs_barrier): Track actual bit manipulation for
ar.unat moves, gr_spill, and gr_restore.
(emit_insn_group_barriers): Special case gr_spill/gr_restore.
(process_set): Don't handle varargs spills.
* config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
.mem.offset here instead of in process_set.
(gr_restore): Likewise.
From-SVN: r35648
Jason Merrill [Fri, 11 Aug 2000 22:41:38 +0000 (18:41 -0400)]
straits.h (is_del): Boolify with !!.
* std/straits.h (is_del): Boolify with !!.
* std/bastring.cc (compare to charT*): Add rlen==n check.
* std/bastring.h (Rep::grab): Add x86 atomic version.
From-SVN: r35647
Richard Henderson [Fri, 11 Aug 2000 22:25:22 +0000 (15:25 -0700)]
* config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
From-SVN: r35646
Geoff Keating [Fri, 11 Aug 2000 22:02:04 +0000 (22:02 +0000)]
configure.in (CHILL_FOR_TARGET, [...]): Use slightly more portable shell script to convert blanks to commas in $LANGUAGES.
* configure.in (CHILL_FOR_TARGET, CXX_FOR_TARGET): Use slightly more
portable shell script to convert blanks to commas in $LANGUAGES.
From-SVN: r35645
Alexandre Petit-Bianco [Fri, 11 Aug 2000 22:01:37 +0000 (22:01 +0000)]
class.c (maybe_layout_super_class): Fixed indentation.
2000-08-10 Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (maybe_layout_super_class): Fixed indentation.
* java-tree.h (CLASS_METHOD_CHECKED_P): New macro.
(java_check_methods): New function declaration.
* jcf-parse.c (get_constant): Let `char_len' go up to 3. Use `str'
instead of `str_ptr'.
* jcf-write.c (generate_bytecode_insns): Emit number the of args
of a `invokeinterface' at the right time.
* parse.h (WFL_STRIP_BRACKET): New macro.
(SET_TYPE_FOR_RESOLUTION): Use it.
* parse.y (build_unresolved_array_type): Reuse `type_or_wfl.'
(check_class_interface_creation): Don't check for cross package
innerclass name clashes.
(method_header): Behave properly if MDECL is `error_mark_node.'
(method_declarator): Return `error_mark_node' if bogus current
class.
(resolve_class): Apply WFL_STRIP_BRACKET on `cl' if necessary.
(resolve_and_layout): New local `decl_type', set and used. Call
java_check_methods.
(java_check_methods): New method.
(java_layout_classes): Use it.
(resolve_qualified_expression_name): No EH check necessary in
access$<n>.
(java_complete_lhs): Use VAR_DECL's DECL_INITIAL when evaluating
`case' statement.
(patch_assignment): Set DECL_INITIAL on integral final local.
(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00516.html)
From-SVN: r35644
Manfred Hollstein [Fri, 11 Aug 2000 21:25:29 +0000 (21:25 +0000)]
* objc-features.texi: Move @node Top before @menu.
From-SVN: r35643
Mark Elbrecht [Fri, 11 Aug 2000 21:23:00 +0000 (21:23 +0000)]
gcc.texi (The Configuration File): Document COLLECT2_HOST_INITIALIZATION...
* gcc.texi (The Configuration File): Document
COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
UPDATE_PATH_HOST_CANONICALIZATION.
From-SVN: r35642
Kaveh R. Ghazi [Fri, 11 Aug 2000 16:25:02 +0000 (16:25 +0000)]
c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for unprototyped function pointer casts on...
* c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
unprototyped function pointer casts on integer constants.
From-SVN: r35638
G. Helffrich [Fri, 11 Aug 2000 16:11:08 +0000 (16:11 +0000)]
com.c (ffecom_transform_equiv_): Make EQUIVALENCEs addressable so that debug info can be attached to their storage.
2000-08-11 G. Helffrich <george@gly.bris.ac.uk>
Toon Moene <toon@moene.indiv.nluug.nl>
* com.c (ffecom_transform_equiv_): Make EQUIVALENCEs addressable
so that debug info can be attached to their storage.
Unconditionally list the storage set aside for them.
Co-Authored-By: Toon Moene <toon@moene.indiv.nluug.nl>
From-SVN: r35637
Laurynas Biveinis [Fri, 11 Aug 2000 15:20:10 +0000 (15:20 +0000)]
* fixproto: Recognize DOS paths with drive letters as absolute paths.
From-SVN: r35636
Alexandre Oliva [Fri, 11 Aug 2000 14:55:08 +0000 (14:55 +0000)]
* config-ml.in (CC, CXX): Don't introduce a leading space.
From-SVN: r35635
Nathan Sidwell [Fri, 11 Aug 2000 14:09:15 +0000 (14:09 +0000)]
cp-tree.h (resolve_scope_to_name): Remove unused prototype.
* cp-tree.h (resolve_scope_to_name): Remove unused prototype.
(lookup_nested_tag): Likewise.
* decl2.c (grokfield): Fix comment to reflect many types of _DECLs
can be produced.
From-SVN: r35634
Nathan Sidwell [Fri, 11 Aug 2000 13:53:39 +0000 (13:53 +0000)]
parse.y (named_complex_class_head_sans_basetype): Remove always true if.
* parse.y (named_complex_class_head_sans_basetype): Remove
always true if.
From-SVN: r35633
Nathan Sidwell [Fri, 11 Aug 2000 13:42:32 +0000 (13:42 +0000)]
* extend.texi (Volatiles): Fix typos.
From-SVN: r35632
Kazu Hirata [Fri, 11 Aug 2000 12:45:05 +0000 (12:45 +0000)]
* flow.c: Fix formatting.
From-SVN: r35631
Nathan Sidwell [Fri, 11 Aug 2000 09:28:08 +0000 (09:28 +0000)]
* g++.old-deja/g++.pt/explicit81.C: New test.
From-SVN: r35630
Nathan Sidwell [Fri, 11 Aug 2000 09:28:01 +0000 (09:28 +0000)]
decl2.c (build_expr_from_tree, [...]): Build explicit TEMPLATE_ID_EXPR args.
* decl2.c (build_expr_from_tree, case METHOD_CALL_EXPR): Build
explicit TEMPLATE_ID_EXPR args.
(build_expr_from_tree, case CALL_EXPR): Likewise.
From-SVN: r35629
Nathan Sidwell [Fri, 11 Aug 2000 09:12:43 +0000 (09:12 +0000)]
* g++.old-deja/g++.pt/typename26.C: New test.
From-SVN: r35628
Nathan Sidwell [Fri, 11 Aug 2000 09:12:31 +0000 (09:12 +0000)]
decl.c (check_tag_decl): Diagnose typename's which don't declare anything.
* decl.c (check_tag_decl): Diagnose typename's which don't
declare anything.
From-SVN: r35627
Richard Henderson [Fri, 11 Aug 2000 08:52:58 +0000 (01:52 -0700)]
reload.c (push_secondary_reload): When invoking a reload_{in,out} pattern...
* reload.c (push_secondary_reload): When invoking a reload_{in,out}
pattern, always allocate a tertiary scratch register.
* config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
(reload_inhi): Likewise.
From-SVN: r35626
Richard Henderson [Fri, 11 Aug 2000 07:49:07 +0000 (00:49 -0700)]
function.c (put_reg_into_stack): Allow type to be NULL.
* function.c (put_reg_into_stack): Allow type to be NULL.
(schedule_fixup_var_refs): Likewise.
(gen_mem_addressof): Allow decl to be NULL.
(put_addressof_into_stack): Likewise.
From-SVN: r35625
Jeff Law [Fri, 11 Aug 2000 07:45:09 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35624
Richard Henderson [Fri, 11 Aug 2000 07:39:55 +0000 (00:39 -0700)]
flow.c (merge_blocks_nomove): Be more careful about locating the beginning of block A.
* flow.c (merge_blocks_nomove): Be more careful about
locating the beginning of block A.
From-SVN: r35623
Richard Henderson [Fri, 11 Aug 2000 07:38:23 +0000 (00:38 -0700)]
* combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
From-SVN: r35622
Benjamin Kosnik [Fri, 11 Aug 2000 07:32:37 +0000 (07:32 +0000)]
locale_facets.tcc: Formatting tweaks.
2000-08-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* bits/locale_facets.tcc: Formatting tweaks.
* bits/locale_facets.h (__enc_traits): Start integrating this
into codecvt, ctype. Formatting tweaks.
From-SVN: r35621
Ovidiu Predescu [Fri, 11 Aug 2000 05:51:12 +0000 (05:51 +0000)]
Reverted the check for <sched.h>.
From-SVN: r35620
Geoff Keating [Fri, 11 Aug 2000 03:58:55 +0000 (03:58 +0000)]
* gcc.dg/920413-1.c: Allow for 'traditional C rejects 'U' suffix' warning.
From-SVN: r35619
Chris Demetriou [Fri, 11 Aug 2000 03:18:05 +0000 (03:18 +0000)]
elf.h (CTOR_SECTION_NAME, [...]): New macros define the name of CTOR and DTOR sections.
* mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
macros define the name of CTOR and DTOR sections.
(CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
DTOR_LIST_END): Change to use attributes to specify
sections.
* mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
(CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
DTOR_LIST_END): Same as in mips/elf.h.
From-SVN: r35618
Tom Tromey [Fri, 11 Aug 2000 03:07:59 +0000 (03:07 +0000)]
natPlainSocketImpl.cc (bind): Don't go to error case when errno not set.
* java/net/natPlainSocketImpl.cc (bind): Don't go to error case
when errno not set.
(connect): Likewise.
(accept): Likewise.
(getOption): Likewise.
* java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
case when errno not set.
(peek): Likewise.
(send): Likewise.
(receive): Likewise.
(mcastGrp): Likewise.
(setOption): Likewise.
(getOption): Likewise.
From-SVN: r35617
Kazu Hirata [Fri, 11 Aug 2000 01:43:47 +0000 (01:43 +0000)]
h8300.c (expand_a_rotate): New.
* h8300.c (expand_a_rotate): New.
(emit_a_rotate): Likewise.
(h8300_adjust_insn_length): Add support for the rotate insns.
* h8300.md (rotlqi3): New.
(*rotlqi3_1): Likewise.
(rotlhi3): Likewise.
(*rotlhi3_1): Likewise.
(rotlhi3): Likewise.
(*rotlhi3_1): Likewise.
* h8300-proto.h: Add prototypes for expand_a_rotate and
emit_a_rotate.
From-SVN: r35616
Drew Moseley [Fri, 11 Aug 2000 01:31:14 +0000 (01:31 +0000)]
mn10300.h: Added no-crt0 option for explicitly disabling just crt0.o.
* config/mn10300/mn10300.h: Added no-crt0 option for explicitly
disabling just crt0.o.
From-SVN: r35615
Richard Earnshaw [Fri, 11 Aug 2000 00:30:55 +0000 (00:30 +0000)]
Fix interworking support of functions in lib1funcs.asm.
From-SVN: r35610
Kazu Hirata [Thu, 10 Aug 2000 23:21:52 +0000 (23:21 +0000)]
h8300.c: Fix comment typos.
* h8300.c: Fix comment typos.
(dosize): Declare the variable amount as unsigned.
(get_shift_alg): Fix a comparison between signed and unsigned.
(emit_a_shift): Likewise.
(h8300_adjust_insn_length): Simplify the code.
From-SVN: r35609
Kazu Hirata [Thu, 10 Aug 2000 22:01:22 +0000 (22:01 +0000)]
* c-decl.c: Fix formatting.
From-SVN: r35608
Kaveh R. Ghazi [Thu, 10 Aug 2000 15:21:18 +0000 (15:21 +0000)]
c-lex.c (parse_float, yylex): For -Wtraditional, issue a warning about non-traditional numeric constant suffixes.
* c-lex.c (parse_float, yylex): For -Wtraditional, issue a
warning about non-traditional numeric constant suffixes.
* cppexp.c (parse_number): Likewise.
* invoke.texi: (-Wtraditional): Document new behavior.
From-SVN: r35607
Nathan Sidwell [Thu, 10 Aug 2000 12:33:45 +0000 (12:33 +0000)]
* g++.old-deja/g++.other/array3.C: New test.
From-SVN: r35606
Nathan Sidwell [Thu, 10 Aug 2000 12:32:40 +0000 (12:32 +0000)]
init.c (build_aggr_init): Reject bogus array initializers early.
* init.c (build_aggr_init): Reject bogus array initializers
early.
From-SVN: r35605
Bryce McKinlay [Thu, 10 Aug 2000 09:10:58 +0000 (10:10 +0100)]
cvs commit ChangeLog
From-SVN: r35604
Bryce McKinlay [Thu, 10 Aug 2000 09:10:25 +0000 (10:10 +0100)]
Connection.java (gotHeaders): Removed.
2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
John Stracke <francis@ecal.com>
* gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
(connect): Don't falsely claim HTTP/1.1 compliance. Call
getHttpHeaders().
(disconnect): Don't unset connected flag.
(getHeaderField (String)): Call connect() if not connected.
(getHeaderField (int)): Ditto.
(getHeaderFieldKey): Ditto.
(getHttpHeaders): Don't call connect().
* java/net/HttpURLConnection.java (instanceFollowRedirects,
gotResponseVals): New fields.
(getResponseCode): Call getResponseVals() conditionally.
(getResponseMessage): Ditto.
(getResponseVals): Call connect(). Don't throw
FileNotFoundException.
From-SVN: r35603
Joseph Myers [Thu, 10 Aug 2000 08:19:44 +0000 (09:19 +0100)]
c90-array-lval-1.c, [...]: New tests.
* gcc.dg/c90-array-lval-1.c, gcc.dg/c90-scope-1.c,
gcc.dg/c99-array-lval-1.c, gcc.dg/c99-const-expr-1.c,
gcc.dg/c99-func-1.c, gcc.dg/c99-func-2.c, gcc.dg/c99-scope-1.c:
New tests.
From-SVN: r35602
Jeff Law [Thu, 10 Aug 2000 07:45:17 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35601
Ovidiu Predescu [Thu, 10 Aug 2000 07:11:44 +0000 (07:11 +0000)]
gthr-posix.h: Include auto-host.h.
Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
* gthr-posix.h: Include auto-host.h. Conditionally include
<sched.h>.
* configure.in: Check for the <sched.h> header file.
* config.in: Added define for HAVE_SCHED_H.
From-SVN: r35600
Ovidiu Predescu [Thu, 10 Aug 2000 07:11:02 +0000 (07:11 +0000)]
Include auto-host.h. Conditionally include <sched.h>.
From-SVN: r35599
Ovidiu Predescu [Thu, 10 Aug 2000 07:10:23 +0000 (07:10 +0000)]
Check for the <sched.h> header file.
From-SVN: r35598
Ovidiu Predescu [Thu, 10 Aug 2000 07:07:58 +0000 (07:07 +0000)]
Added define for HAVE_SCHED_H.
From-SVN: r35597
Tom Tromey [Thu, 10 Aug 2000 01:09:12 +0000 (01:09 +0000)]
re GNATS gcj/310 (illegal type "long" accepted for "switch" expression)
From PR gcj/310:
* libjava.compile/PR310.java: New file.
* libjava.compile/PR310.xfail: New file.
From-SVN: r35596
Kaveh R. Ghazi [Wed, 9 Aug 2000 19:52:35 +0000 (19:52 +0000)]
c-typeck.c (process_init_element): For -Wtraditional, warn about initialization of unions.
* c-typeck.c (process_init_element): For -Wtraditional, warn about
initialization of unions.
* invoke.texi (-Wtraditional): Document new behavior.
From-SVN: r35595
Zack Weinberg [Wed, 9 Aug 2000 19:44:29 +0000 (19:44 +0000)]
Remove stray blank line in previous commit
From-SVN: r35594
Zack Weinberg [Wed, 9 Aug 2000 19:41:12 +0000 (19:41 +0000)]
configure.in (--enable-c-cpplib): Uncomment.
* configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
instead of extra_c_flags.
(--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
* configure: Regenerate.
* config.in: Regenerate.
* cpperror.c (cpp_type2name): New function.
* cpplex.c (lex_line): If we issued an error for an invalid
preprocessing directive, discard that logical line.
* cpplib.c (do_line): Call a hook function if the current file
is renamed by #line.
(do_ident): Pass the contents of the string, not the entire
token, to the callback function.
* cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
(cb.rename_file): New hook function.
(cb.ident): Adjust prototype.
(cpp_type2name): Prototype.
* cppmacro.c (dump_macro_args): Correct precedence lossage.
* cppmain.c (cb_ident): Update for changed interface.
(cb_rename_file): New function.
(main): Set rename callback.
From-SVN: r35593
Jason Merrill [Wed, 9 Aug 2000 18:55:42 +0000 (14:55 -0400)]
pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
* pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
(tsubst_template_arg_vector): Likewise.
From-SVN: r35592
Alexandre Oliva [Wed, 9 Aug 2000 13:14:54 +0000 (13:14 +0000)]
It's `exit(0)', not `exit()'!
From-SVN: r35591
Bryce McKinlay [Wed, 9 Aug 2000 13:03:26 +0000 (13:03 +0000)]
Makefile.am: Move beans and applet classes to awt_java_source_files.
2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am: Move beans and applet classes to
awt_java_source_files.
* Makefile.in: Rebuilt.
From-SVN: r35590
Bryce McKinlay [Wed, 9 Aug 2000 13:01:44 +0000 (14:01 +0100)]
Makefile.am: Move beans and applet classes to awt_java_source_files.
2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am: Move beans and applet classes to
awt_java_source_files.
* Makefile.in: Rebuilt.
* java/awt/Color.java (getTransparency): New method.
* java/awt/Component.java: Various updates.
* java/awt/Container.java (removeNotify): Call super.removeNotify()
after dealing with children.
* java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
* java/awt/Window.java: Various new methods and updates.
* java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
to int for switch.
* java/awt/event/KeyEvent.java (paramString): Initialize `r'.
* java/awt/event/WindowEvent.java (paramString): Ditto.
* java/awt/geom/Dimension2D.java (clone): Wrap super call with
try/catch block.
* java/awt/geom/Point2D.java (clone): Ditto.
* java/awt/geom/RectangularShape.java (clone): Ditto.
* java/awt/image/ColorModel.java (bits, cspace, transparency,
hasAlpha, isAlphaPremultiplied): Make package-private, not private.
From-SVN: r35589
Nathan Sidwell [Wed, 9 Aug 2000 09:57:55 +0000 (09:57 +0000)]
rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi runtime.
* rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
runtime.
* cp/tinfo.cc (__dynamic_cast): Likewise.
* cp/inc/cxxabi.h (__dynamic_cast): Likewise.
From-SVN: r35588
Nathan Sidwell [Wed, 9 Aug 2000 09:52:47 +0000 (09:52 +0000)]
ptrflags.C: Adjust rtti member names.
* g++.old-deja/g++.abi/ptrflags.C: Adjust rtti member names.
* g++.old-deja/g++.abi/vmihint.C: Likewise.
From-SVN: r35587
Nathan Sidwell [Wed, 9 Aug 2000 09:43:00 +0000 (09:43 +0000)]
cvt.c (convert_to_pointer_force): Fix error message when attempting to cast from ambiguous base.
* cvt.c (convert_to_pointer_force): Fix error message when
attempting to cast from ambiguous base.
From-SVN: r35586
Jeff Law [Wed, 9 Aug 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35585
Benjamin Kosnik [Wed, 9 Aug 2000 07:33:39 +0000 (07:33 +0000)]
[multiple changes]
2000-08-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
Preliminary wchar_t implementation, with trivial encodings.
* docs/configopts.html: Add bits about canonical configure option
checking.
* testsuite/27_io/iostream_objects.cc: Replace this file (which
has newly-declared-illegal mixing of wide/narrow stdstreams) with...
* testsuite/27_io/narrow_stream_objects.cc: New file.
* testsuite/27_io/wide_stream_objects.cc: New file.
* bits/fstream.tcc (underflow): Temporarily hack a solution
together that writes from the external file to the internal
buffers. This removes codecvt from the loop, and is incorrect.
(_M_really_overflow): Same here.
* testsuite/21_strings/inserters_extractors.cc (test05): Tweaks.
2000-08-08 Benjamin Kosnik <bkoz@cygnus.com>
Ulrich Drepper <drepper@cygnus.com>
* config/c_io_libio.h: Tweak.
* config/c_io_libio_codecvt.c: New file.
* libio/Makefile.am: Add c_codecvt.c.
* libio/Makefile.in: Regenerate.
* libio/genops.c (_IO_unbuffer_write): Don't call _IO_SETBUF if the
stream is not orientated.
* acinclude.m4: Add config/c_io_libio_codecvt.c dummy file, until
encoding gets fleshed out.
* bits/basic_file.h: Add specialization declarations.
* config/c_io_libio.cc: Add specializations for pbackfail, uflow.
* config/c_io_libio.h: Add __c_wfile_type.
* bits/basic_file.h: Add _M_wfile.
* config/c_io_libio.cc (__basic_file<char>): Initialize the
streams without setting the orientation of the underlying FILE to
either wide or narrow.
(__basic_file<wchar_t>)): Enable tricky wchar_t io bits.
From-SVN: r35584
Benjamin Kosnik [Wed, 9 Aug 2000 07:31:26 +0000 (07:31 +0000)]
c_io_libio.h: Tweak.
2000-08-08 Benjamin Kosnik <bkoz@cygnus.com>
Ulrich Drepper <drepper@cygnus.com>
* config/c_io_libio.h: Tweak.
* config/c_io_libio_codecvt.c: New file.
* libio/Makefile.am: Add c_codecvt.c.
* libio/Makefile.in: Regenerate.
* libio/genops.c (_IO_unbuffer_write): Don't call _IO_SETBUF if the
stream is not orientated.
* acinclude.m4: Add config/c_io_libio_codecvt.c dummy file, until
encoding gets fleshed out.
* bits/basic_file.h: Add specialization declarations.
* config/c_io_libio.cc: Add specializations for pbackfail, uflow.
* config/c_io_libio.h: Add __c_wfile_type.
* bits/basic_file.h: Add _M_wfile.
* config/c_io_libio.cc (__basic_file<char>): Initialize the
streams without setting the orientation of the underlying FILE to
either wide or narrow.
(__basic_file<wchar_t>)): Enable tricky wchar_t io bits.
From-SVN: r35583
Benjamin Kosnik [Wed, 9 Aug 2000 07:28:54 +0000 (07:28 +0000)]
Finish preliminary wchar_t implementation, with trivial encodings.
2000-08-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
Finish preliminary wchar_t implementation, with trivial encodings.
* docs/configopts.html: Add bits about canonical configure option
checking.
* testsuite/27_io/iostream_objects.cc: Replace this file (which
has newly-declared-illegal mixing of wide/narrow stdstreams) with...
* testsuite/27_io/narrow_stream_objects.cc: New file.
* testsuite/27_io/wide_stream_objects.cc: New file.
* bits/fstream.tcc (underflow): Temporarily hack a solution
together that writes from the external file to the internal
buffers. This removes codecvt from the loop, and is incorrect.
(_M_really_overflow): Same here.
* testsuite/21_strings/inserters_extractors.cc (test05): Tweaks.
From-SVN: r35582
Jason Merrill [Wed, 9 Aug 2000 05:52:17 +0000 (01:52 -0400)]
pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
* pt.c (tsubst_aggr_type): Bail if creating the argvec fails.
(tsubst_template_arg_vector): Likewise.
* decl2.c (build_anon_union_vars): Choose the largest field; don't
assume that one will be as large as the union.
From-SVN: r35581
Alexandre Oliva [Wed, 9 Aug 2000 05:21:17 +0000 (05:21 +0000)]
* gcc.c-torture/execute/
20000808-1.c: New test.
From-SVN: r35580
Alexandre Oliva [Wed, 9 Aug 2000 05:17:12 +0000 (05:17 +0000)]
caller-save.c (mark_referenced_regs): Mark partially-overwritten multi-word registers.
* caller-save.c (mark_referenced_regs): Mark partially-overwritten
multi-word registers.
From-SVN: r35579
Alexandre Oliva [Wed, 9 Aug 2000 05:12:51 +0000 (05:12 +0000)]
* test_summary: AWK breaks with filenames containing `='.
From-SVN: r35578
Joseph Myers [Wed, 9 Aug 2000 01:05:09 +0000 (02:05 +0100)]
* gcc.dg/c90-const-expr-1.c: New test.
From-SVN: r35577
Joseph Myers [Tue, 8 Aug 2000 23:19:11 +0000 (00:19 +0100)]
c-common.c (combine_strings, [...]): Refer to ISO C or ISO C89 instead of ANSI C.
* c-common.c (combine_strings, check_format_info): Refer to ISO C
or ISO C89 instead of ANSI C.
* c-decl.c (grokdeclarator, xref_tag, finish_struct,
build_enumerator, do_case): Likewise.
* c-lex.c (parse_float, yylex): Likewise.
* c-parse.in: Likewise.
* c-typeck.c (common_type, build_array_ref, build_binary_op,
build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
build_c_cast, convert_for_assignment, set_init_index,
set_init_label, c_expand_start_case): Likewise.
* toplev.c (documented_lang_options, display_help): Likewise.
From-SVN: r35576
Kazu Hirata [Tue, 8 Aug 2000 23:09:52 +0000 (23:09 +0000)]
h8300.c: Fix formatting.
* h8300.c: Fix formatting.
* h8300.h: Likewise.
* h8300.md: Likewise.
(movsi_h8300hs): Fix formatting of the resulting assembly code.
From-SVN: r35575
Kazu Hirata [Tue, 8 Aug 2000 23:07:10 +0000 (23:07 +0000)]
* reload1.c: Fix formatting.
From-SVN: r35574
Rodney Brown [Tue, 8 Aug 2000 22:40:49 +0000 (22:40 +0000)]
alpha.c (alpha_emit_xfloating_libcall): Use GEN_CALL_VALUE define.
* alpha/alpha.c (alpha_emit_xfloating_libcall):
Use GEN_CALL_VALUE define.
* alpha/alpha.md (untyped_call): Use GEN_CALL define.
* clipper/clipper.md (untyped_call): Likewise.
* dsp16xx/dsp16xx.md (untyped_call): Likewise.
* fx80/fx80.md (untyped_call): Likewise.
* mips/mips.md (untyped_call): Likewise.
* ns32k/ns32k.md (untyped_call): Likewise.
* pa/pa.md (untyped_call): Likewise.
* romp/romp.md (untyped_call): Likewise.
* sparc/sparc.md (untyped_call): Likewise.
From-SVN: r35573
Jason Eckhardt [Tue, 8 Aug 2000 22:22:32 +0000 (22:22 +0000)]
i860.c (singlemove_string): Do not generate assembler pseudo instructions that must be expanded (that is...
2000-08-08 Jason Eckhardt <jle@cygnus.com>
* config/i860/i860.c (singlemove_string): Do not generate assembler
pseudo instructions that must be expanded (that is, with signed
constants larger than 16 bits).
From-SVN: r35572
Richard Henderson [Tue, 8 Aug 2000 19:46:51 +0000 (12:46 -0700)]
flow.c (life_analysis): Only turn off PROP_LOG_LINKS and PROP_AUTOINC at -O0.
* flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
PROP_AUTOINC at -O0. Don't collect alias info at -O0.
(init_propagate_block_info): Don't kill memory stores at -O0.
(mark_set_1, mark_used_regs): Likewise.
From-SVN: r35571
David Edelsohn [Tue, 8 Aug 2000 18:50:15 +0000 (14:50 -0400)]
rs6000.c (optimization_options): Decorate 'level' as ATTRIBUTE_UNUSED.
* rs6000.c (optimization_options): Decorate 'level' as
ATTRIBUTE_UNUSED.
(mask64_operand): Remove sign-extend thinko.
(rldic_operand): New function.
(load_multiple_operation): regno's are unsigned ints.
(store_multiple_operation): Likewise.
(lmw_operation): Likewise.
(stmw_operation): Likewise.
(includes_lshift_p): shift_mask is unsigned int.
(includes_lshift64_p): New function.
(addrs_ok_for_quad_peep): unsigned int reg1.
(print_operand): Consistently add "else" after
output_operand_lossage().
(print_operand, case 'b'): Fold in case 'W'.
(print_operand, case 'W'): Print rldic MB value.
(output_epilogue): Update Objective-C language string.
(output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
* rs6000.h (PREDICATE_CODES): Add rldic_operand.
* rs6000.md (ashldi3): Add rldic instruction.
(iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
(cmpsi_internal2, cmpdi_interal2): Use 'b' output template
modifier.
From-SVN: r35570
Tom Tromey [Tue, 8 Aug 2000 17:35:32 +0000 (17:35 +0000)]
Input_UTF8.java (read): Fixed handling of surrogate characters.
* gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
surrogate characters.
* gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
true.
(write): Correct handling of surrogate characters.
From-SVN: r35569
Richard Henderson [Tue, 8 Aug 2000 10:01:20 +0000 (03:01 -0700)]
ia64-protos.h: Remove duplicates.
* config/ia64/ia64-protos.h: Remove duplicates. Update
for massive code rearrangements.
* config/ia64/ia64.c (ia64_arpfs_regno): Remove.
(ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
(ia64_local_regs, ia64_need_regstk): Remove.
(ar_ccv_reg_operand): New.
(ia64_gp_save_reg): New.
(struct ia64_frame_info): Combine most of the size elements;
add new gr save elements.
(find_gr_spill): New.
(next_scratch_gr_reg): New.
(mark_reg_gr_used_mask): New.
(ia64_compute_frame_size): Rewrite. Allocate special AR regs
to GR backing store regs when possible.
(ia64_initial_elimination_offset): New.
(ia64_rap_fp_offset): Remove.
(save_restore_insns): Remove.
(setup_spill_pointers): New.
(finish_spill_pointers): New.
(spill_restore_mem): New.
(do_spill, do_restore): New.
(ia64_expand_prologue): Rewrite to use them.
(ia64_expand_epilogue): Likewise.
(ia64_direct_return): Update for current_frame_info changes.
(ia64_function_prologue): Simplify .prologue emission. Emit
.spill when needed.
(ia64_setup_incoming_varargs): Don't ever emit rtl.
(ia64_dbx_register_number): New.
(ia64_initialize_trampoline): New.
(ia64_secondary_reload_class): Request GR_REGS for integer
arithmetic destined for FR_REGS.
(ia64_init_machine_status): Don't reset return_address_pointer_rtx.
(ia64_mark_machine_status): Mark ia64_gp_save.
(rws_access_regno): Rename from rws_access_reg; don't treat
predicates specially.
(rws_access_reg): New. Update all callers.
(rtx_needs_barrier): Remove dead unspecs.
(ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
(ia64_encode_section_info): Silence signed/unsigned warnings.
(spill_offset, sp_offset, spill_offset_emitted): Remove.
(tmp_reg, tmp_saved): Remove.
(process_set): Rewrite to expect complicated bits via
REG_FRAME_RELATED_EXPR.
(ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
in the use of ar.ccv; never set RTX_UNCHANGING_P.
(ia64_expand_op_and_fetch): Likewise.
(ia64_expand_compare_and_swap): Likewise.
(ia64_expand_builtin): Likewise.
* config/ia64/ia64.h (AR_UNAT_REGNUM): New.
(FIRST_PSEUDO_REGISTER): Update.
(AR_M_REGNO_P): Update.
(FIXED_REGS): Don't mark three local registers as used.
(EXTRA_CC_MODES): New.
(SELECT_CC_MODE): New.
(HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
(HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
(FRAME_GROWS_DOWNWARD): Unset.
(STARTING_FRAME_OFFSET): Zero.
(ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
(INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
(HARD_FRAME_POINTER_REGNUM): New.
(CAN_DEBUG_WITHOUT_FP): Define.
(TRAMPOLINE_TEMPLATE): Remove.
(TRAMPOLINE_SIZE): Lower to 32.
(TRAMPOLINE_ALIGNMENT): Lower to 64.
(INITIALIZE_TRAMPOLINE): Defer to out of line function.
(PREDICATE_CODES): Update.
(struct machine_function): Add ia64_gp_save.
* config/ia64/ia64.md: Purge unused unspecs.
(movsi patterns): Allow moves to/from AR_M_REGS.
(movdi patterns): Allow moves to/from p0.
(call patterns): Move most setjmp hackery to ia64_gp_save_reg.
(gr_spill, gr_restore): Indicate ar.unat read/written.
(nonlocal_goto): Don't pass old frame_pointer.
(nonlocal_goto_receiver): Remove.
(exception_receiver): New.
(builtin_setjmp_setup): New.
(builtin_setjmp_receiver): New.
* config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
(__ia64_nonlocal_goto): Bundle. Don't kill r7.
(__ia64_restore_stack_nonlocal): Likewise.
(__ia64_trampoline): New.
* config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
function.
* config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
From-SVN: r35568
Richard Henderson [Tue, 8 Aug 2000 09:24:53 +0000 (02:24 -0700)]
* gcc.dg/noncompile/920923-1.c: Declare calloc.
From-SVN: r35567
Richard Henderson [Tue, 8 Aug 2000 09:18:47 +0000 (02:18 -0700)]
* regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
From-SVN: r35566
Richard Henderson [Tue, 8 Aug 2000 09:08:55 +0000 (02:08 -0700)]
frame.h (ia64_frame_state): Add my_psp.
* frame.h (ia64_frame_state): Add my_psp.
* libgcc2.c (ia64_throw_helper): Add throw_sp argument.
(__throw): Pass it in. Don't clobber r7.
* config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
(execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
and nothing to do with sp.
(normalize_reg_loc): Use frame->my_psp.
(frame_translate): Handle frame-pointer-less functions. Set
spill_base correctly, in absence of being told.
(__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
(__ia64_backtrace_helper): New sp argument. Use
builtin_return_address instead of label addresses.
(print_record) [mem_stack_v]: No size member.
From-SVN: r35565
Richard Henderson [Tue, 8 Aug 2000 08:28:00 +0000 (01:28 -0700)]
tm.texi (LOCAL_REGNO): Document.
* tm.texi (LOCAL_REGNO): Document.
* flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
(mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
* reload1.c (reload): Likewise when considering nonlocal labels.
* config/ia64/ia64.h (LOCAL_REGNO): New.
* config/sparc/sparc.h (LOCAL_REGNO): New.
From-SVN: r35564
Joseph Myers [Tue, 8 Aug 2000 08:23:31 +0000 (09:23 +0100)]
c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
* c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
testsuite:
* gcc.dg/noncompile/const-ll-1.c: New test.
From-SVN: r35563
Jeff Law [Tue, 8 Aug 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35562
Tom Tromey [Tue, 8 Aug 2000 03:34:51 +0000 (03:34 +0000)]
Method.java (hashCode): Use getName().
* java/lang/reflect/Method.java (hashCode): Use getName().
(toString): Likewise.
* java/lang/reflect/natMethod.cc (getType): Initialize
exception_types.
From-SVN: r35561
Alexandre Petit-Bianco [Tue, 8 Aug 2000 03:33:36 +0000 (03:33 +0000)]
2000-08-07 Alexandre Petit-Bianco <apbianco@cygnus.com
* parse.y (build_dot_class_method_invocation): Changed parameter
name to `type.' Build signature from `type' and convert it to a
STRING_CST if it's an array.
(patch_incomplete_class_ref): `build_dot_class_method_invocation'
to use `ref_type' directly.
2000-08-01 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (maybe_yank_clinit): When generating bytecode: non empty
method bodies not to rule out discarding `<clinit>'; don't use
<clinit> to initialize static fields with constant initializers.
2000-08-01 Alexandre Petit-Bianco <apbianco@cygnus.com>
* gjavah.c (print_method_info): Added `synth' parameter. Skip
synthetic methods.
(method_synthetic): New global.
(HANDLE_METHOD): Recognize synthetic method and tell
`print_method_info' about it.
(HANDLE_END_METHOD): Do not issue an additional `;\n' if we're
processing a synthetic method.
* jcf-reader.c (skip_attribute): New function.
( skip_attribute): Likewise.
2000-08-01 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (build_outer_field_access): Fixed comments.
(fix_constructors): Emit the initialization of this$<n> before
calling $finit$.
(resolve_qualified_expression_name): Build an access to `decl' if
necessary.
2000-07-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse-scan.y (curent_class): Non longer const.
(inner_qualifier, inner_qualifier_length): Deleted.
(current_class_length): New global.
(bracket_count): Fixed typo in leading comment.
(anonymous_count): New global.
(class_instance_creation_expression:): Handle anonymous classes.
(anonymous_class_creation:): New rule.
(push_class_context): Rewritten.
(pop_class_context): Likewise.
(INNER_QUALIFIER): Macro deleted.
(report_class_declaration): call `push_class_context' when
entering the function. `fprintf' format modified not to use
INNER_QUALIFIER.
(report_class_declaration): Assign `package_name' and
`current_class' to NULL separatly.
2000-07-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (build_invokeinterface): Call layout_class_methods on
target interface.
(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00339.html)
From-SVN: r35560
Nick Clifton [Tue, 8 Aug 2000 01:17:06 +0000 (01:17 +0000)]
Fix most compile time warning messages
From-SVN: r35559
Toon Moene [Mon, 7 Aug 2000 21:19:48 +0000 (23:19 +0200)]
g77spec.c (lang_specific_driver): Clearer g77 version message.
2000-08-07 Toon Moene <toon@moene.indiv.nluug.nl>
* g77spec.c (lang_specific_driver): Clearer g77 version message.
From-SVN: r35558
Tom Tromey [Mon, 7 Aug 2000 20:03:40 +0000 (20:03 +0000)]
Method.java (toString): Use Class.getName, not Class.toString.
* java/lang/reflect/Method.java (toString): Use Class.getName, not
Class.toString.
* java/lang/reflect/Field.java (toString): Correct formatting.
From Corey Minyard.
From-SVN: r35557
Tom Tromey [Mon, 7 Aug 2000 19:59:48 +0000 (19:59 +0000)]
PipedInputStream.java (read(byte[],int,int)): Mostly rewrote.
* java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
rewrote.
(receive): Streamlined.
From-SVN: r35556
Felix Natter [Mon, 7 Aug 2000 19:29:19 +0000 (19:29 +0000)]
porting-howto.html: New version.
2000-08-07 Felix Natter <fnatter@gmx.net>
* docs/17_intro/porting-howto.html: New version.
From-SVN: r35555
DJ Delorie [Mon, 7 Aug 2000 15:04:48 +0000 (11:04 -0400)]
* MAINTAINERS: Add self as a DJGPP maintainer
From-SVN: r35554
DJ Delorie [Mon, 7 Aug 2000 15:00:46 +0000 (11:00 -0400)]
configure.in (FLAGS_FOR_TARGET): invert test for xgcc...
* configure.in (FLAGS_FOR_TARGET): invert test for xgcc, should mean
"if we're also building gcc, and it's a gcc that will run on the
build machine, we want to use its includes instead of the system's
default includes".
From-SVN: r35553
Nick Clifton [Mon, 7 Aug 2000 11:35:06 +0000 (11:35 +0000)]
* mn10300.h (TARGET_SWITCHES): Document `-mam33'.
From-SVN: r35552
Graham Stott [Mon, 7 Aug 2000 11:28:02 +0000 (11:28 +0000)]
mn10300.md: Use nonimmediate_operand instead of general_operand on output operands.
* mn10300.md: Use nonimmediate_operand instead of general_operand
on output operands.
From-SVN: r35551
Graham Stott [Mon, 7 Aug 2000 11:26:59 +0000 (11:26 +0000)]
* mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
From-SVN: r35550
Alexandre Oliva [Mon, 7 Aug 2000 11:20:25 +0000 (11:20 +0000)]
Remove dangling whitespace
From-SVN: r35549
Alexandre Oliva [Mon, 7 Aug 2000 09:58:29 +0000 (09:58 +0000)]
sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
* sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
* sh.c (expand_block_move): Break long lines.
(expand_ashiftrt, fpscr_set_from_mem): Likewise.
* sh.md (mulsi3): Likewise.
(movdi): Adjust spacing.
From-SVN: r35548
Joseph Myers [Mon, 7 Aug 2000 09:48:23 +0000 (10:48 +0100)]
* gcc.dg/c90-printf-2.c, gcc.dg/c99-printf-2.c: New tests.
From-SVN: r35547
Richard Henderson [Mon, 7 Aug 2000 08:27:54 +0000 (01:27 -0700)]
expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
* expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
* expr.c (emit_group_store): Don't set it.
From-SVN: r35546
Jeff Law [Mon, 7 Aug 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35545
Kazu Hirata [Mon, 7 Aug 2000 07:13:13 +0000 (07:13 +0000)]
cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
* cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
* decl.c (pop_labels): Likewise.
From-SVN: r35544