Commit Graph

29852 Commits

Author SHA1 Message Date
Richard Henderson
8b4944fbce 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
2000-08-11 00:49:07 -07:00
Jeff Law
6481aabdb4 Daily bump.
From-SVN: r35624
2000-08-11 01:45:09 -06:00
Richard Henderson
8416f80a8a 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
2000-08-11 00:39:55 -07:00
Richard Henderson
f94d0f60d3 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
From-SVN: r35622
2000-08-11 00:38:23 -07:00
Benjamin Kosnik
9c683c2adc 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
2000-08-11 07:32:37 +00:00
Ovidiu Predescu
4b48731a0d Reverted the check for <sched.h>.
From-SVN: r35620
2000-08-11 05:51:12 +00:00
Geoff Keating
be875f8044 * gcc.dg/920413-1.c: Allow for 'traditional C rejects 'U' suffix' warning.
From-SVN: r35619
2000-08-11 03:58:55 +00:00
Chris Demetriou
204772eb9c 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
2000-08-10 21:18:05 -06:00
Tom Tromey
366a0fd804 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
2000-08-11 03:07:59 +00:00
Kazu Hirata
edd71f0f6c 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
2000-08-10 19:43:47 -06:00
Drew Moseley
dff55dbc71 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
2000-08-11 01:31:14 +00:00
Richard Earnshaw
6dcd26ea33 Fix interworking support of functions in lib1funcs.asm.
From-SVN: r35610
2000-08-11 00:30:55 +00:00
Kazu Hirata
64530b8273 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
2000-08-10 17:21:52 -06:00
Kazu Hirata
6645c3fac8 * c-decl.c: Fix formatting.
From-SVN: r35608
2000-08-10 16:01:22 -06:00
Kaveh R. Ghazi
7da92c086f 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
2000-08-10 15:21:18 +00:00
Nathan Sidwell
b498d041fa * g++.old-deja/g++.other/array3.C: New test.
From-SVN: r35606
2000-08-10 12:33:45 +00:00
Nathan Sidwell
aa54df0901 init.c (build_aggr_init): Reject bogus array initializers early.
* init.c (build_aggr_init): Reject bogus array initializers
	early.

From-SVN: r35605
2000-08-10 12:32:40 +00:00
Bryce McKinlay
af65739581 cvs commit ChangeLog
From-SVN: r35604
2000-08-10 10:10:58 +01:00
Bryce McKinlay
b6ac804e3d 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
2000-08-10 10:10:25 +01:00
Joseph Myers
9052d3bebc 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
2000-08-10 09:19:44 +01:00
Jeff Law
da40cbf67a Daily bump.
From-SVN: r35601
2000-08-10 01:45:17 -06:00
Ovidiu Predescu
4f245f2161 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
2000-08-10 07:11:44 +00:00
Ovidiu Predescu
1a46ef5eec Include auto-host.h. Conditionally include <sched.h>.
From-SVN: r35599
2000-08-10 07:11:02 +00:00
Ovidiu Predescu
c3d80041a3 Check for the <sched.h> header file.
From-SVN: r35598
2000-08-10 07:10:23 +00:00
Ovidiu Predescu
3ef5f28679 Added define for HAVE_SCHED_H.
From-SVN: r35597
2000-08-10 07:07:58 +00:00
Tom Tromey
60798ef254 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
2000-08-10 01:09:12 +00:00
Kaveh R. Ghazi
253b6b828a 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
2000-08-09 19:52:35 +00:00
Zack Weinberg
2bf9a2abfe Remove stray blank line in previous commit
From-SVN: r35594
2000-08-09 19:44:29 +00:00
Zack Weinberg
9ec7291f1f 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
2000-08-09 19:41:12 +00:00
Jason Merrill
9cc82a0198 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
2000-08-09 14:55:42 -04:00
Alexandre Oliva
a58df068f4 It's exit(0)', not exit()'!
From-SVN: r35591
2000-08-09 13:14:54 +00:00
Bryce McKinlay
e8244abeda 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
2000-08-09 14:03:26 +01:00
Bryce McKinlay
b996061366 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
2000-08-09 14:01:44 +01:00
Nathan Sidwell
7e8dad1827 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
2000-08-09 09:57:55 +00:00
Nathan Sidwell
68c9819964 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
2000-08-09 09:52:47 +00:00
Nathan Sidwell
0f586b9b02 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
2000-08-09 09:43:00 +00:00
Jeff Law
9371e8a028 Daily bump.
From-SVN: r35585
2000-08-09 01:45:07 -06:00
Benjamin Kosnik
8901ac210e [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
2000-08-09 07:33:39 +00:00
Benjamin Kosnik
5c61484936 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
2000-08-09 07:31:26 +00:00
Benjamin Kosnik
86b8dde633 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
2000-08-09 07:28:54 +00:00
Jason Merrill
08e72a1929 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
2000-08-09 01:52:17 -04:00
Alexandre Oliva
8e32b501b8 * gcc.c-torture/execute/20000808-1.c: New test.
From-SVN: r35580
2000-08-09 05:21:17 +00:00
Alexandre Oliva
2696f6a43d 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
2000-08-09 05:17:12 +00:00
Alexandre Oliva
e50d293252 * test_summary: AWK breaks with filenames containing `='.
From-SVN: r35578
2000-08-09 05:12:51 +00:00
Joseph Myers
1fcbbcd34f * gcc.dg/c90-const-expr-1.c: New test.
From-SVN: r35577
2000-08-09 02:05:09 +01:00
Joseph Myers
89abf8d1d7 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
2000-08-09 00:19:11 +01:00
Kazu Hirata
1a63219b0d 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
2000-08-08 17:09:52 -06:00
Kazu Hirata
1d7254c5a7 * reload1.c: Fix formatting.
From-SVN: r35574
2000-08-08 17:07:10 -06:00
Rodney Brown
0499c2e4dd 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
2000-08-08 16:40:49 -06:00
Jason Eckhardt
ebec3cf99d 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
2000-08-08 22:22:32 +00:00