Commit Graph

35051 Commits

Author SHA1 Message Date
David Edelsohn
f3ce87a905 expr.c (emit_group_load): extract_bit_field requires a REG or MEM as an argument.
* expr.c (emit_group_load): extract_bit_field requires a REG or
        MEM as an argument.

From-SVN: r41950
2001-05-10 17:59:10 -04:00
Ben Elliston
3f19b4396a Makefile.in (all-sid): New target.
2001-05-11  Ben Elliston  <bje@redhat.com>

	* Makefile.in (all-sid): New target.
	(check-sid, clean-sid, install-sid): Likewise.

From-SVN: r41948
2001-05-11 06:51:52 +10:00
Jeffrey A Law
7dfd465c83 jump.c (jump_optimize_1): Do not wrap the new jump target inside a LABEL_REF...
* jump.c (jump_optimize_1): Do not wrap the new jump target
        inside a LABEL_REF; gen_jump will do that automatically.

From-SVN: r41947
2001-05-10 14:43:50 -06:00
Kaveh R. Ghazi
f59328a83d * ansidecl.h (NULL_PTR): Delete.
From-SVN: r41946
2001-05-10 19:11:58 +00:00
Toon Moene
79cdfa4b29 dwarf2out.c (mem_loc_descriptor): Do not pass constant pool contents for a SYMBOL_REF in case of floating point...
2001-05-10  Toon Moene  <toon@moene.indiv.nluug.nl>

	* dwarf2out.c (mem_loc_descriptor): Do not pass constant pool
	contents for a SYMBOL_REF in case of floating point constants.

From-SVN: r41945
2001-05-10 18:52:28 +00:00
Tom Browder
df33e4e18e howto.html: Fix typo.
2001-05-01  Tom Browder  <tbrowder@home.com>

	* docs/html/ext/howto.html:  Fix typo.

From-SVN: r41944
2001-05-10 18:42:11 +00:00
Tom Tromey
9622762678 [multiple changes]
2001-05-10  Tom Tromey  <tromey@redhat.com>

	* java/util/GregorianCalendar.java: Imported from Classpath.
	* gnu/java/locale/LocaleInformation_nl.java: New file from
	Classpath.
	* gnu/java/locale/LocaleInformation_en.java: Likewise.
	* gnu/java/locale/LocaleInformation_de.java: Likewise.
	* gnu/java/locale/LocaleInformation.java: Likewise.
	* natGregorianCalendar.cc: Removed.
	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Removed
	natGregorianCalendar.cc.

2001-05-10  Tom Tromey  <tromey@redhat.com>

	* java/text/SimpleDateFormat.java (computeCenturyStart): New
	method.
	(defaultCenturyStart): Use it.
	(readObject): Likewise.
	(SimpleDateFormat): Clear the calendar.  Set the grouping on the
	number format.
	(parse): Copy the calendar before modifying it.  Correctly handle
	the time zone.

	* java/util/Calendar.java (clear): Set field value(s) to 0.

2001-05-10  Jeff Sturm  <jsturm@one-point.com>

	* Calendar.java (get): Clear areFieldsSet if requested field
	is not set.
	(set): Unset fields that depend on new value.

From-SVN: r41942
2001-05-10 18:13:17 +00:00
DJ Delorie
b0089a92a3 c-common.c (combine_strings): Widen strings in a host-endian-independent way.
* c-common.c (combine_strings): Widen strings in a
host-endian-independent way.

From-SVN: r41941
2001-05-10 13:39:19 -04:00
Joseph Myers
25d78ace72 c-parse.in: Remove many shift/reduce conflicts.
* c-parse.in: Remove many shift/reduce conflicts.  Update
	%expect values.
	(declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
	declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
	declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
	declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
	declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
	declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
	declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
	declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
	declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
	declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
	maybe_type_quals_setattrs, typespec_nonattr, typespec_attr,
	typespec_reserved_nonattr, typespec_reserved_attr,
	typespec_nonreserved_nonattr, maybe_setattrs, structsp_attr,
	structsp_nonattr, components_notype, component_notype_declarator,
	absdcl1_ea, absdcl1_noea, direct_absdcl1, absdcl_maybe_attribute,
	firstparm, setspecs_fp): New
	(typed_declspecs, reserved_declspecs, typed_typespecs,
	reserved_typespecquals, declmods, typespec, typespecqual_reserved,
	typed_declspecs_no_prefix_attr reserved_declspecs_no_prefix_attr
	declmods_no_prefix_attr, nonempty_type_quals, structsp,
	type_quals): Remove.  Users updated.
	(initdecls, notype_initdecls, after_type_declarator,
	parm_declarator, notype_declarator, absdcl1, components, ivars):
	Don't allow attributes at the start of a declarator; include them
	in the production containing the declarator instead.  Always
	require type specifiers before trying to redeclare a typedef name.
	(typename): Allow for attributes but warn that they are ignored.
	(parmlist, firstparm, setspecs_fp): Include attributes in
	parmlist; suck them off the parser stack in firstparm using
	setspecs_fp.

testsuite:
	* gcc.c-torture/compile/20010313-1.c: New test.

From-SVN: r41940
2001-05-10 17:17:07 +01:00
Jeffrey A Law
f926a2566d ifcvt.c (merge_if_block): Use any_uncondjump_p...
* ifcvt.c (merge_if_block): Use any_uncondjump_p, not simplejump_p
        to determine if a block has an unconditional jump at its end.

        * jump.c (jump_optimize_1): When converting a conditional jump
        to an unconditional jump, build the jump using gen_jump instead
        of just modify operands in-place.

From-SVN: r41939
2001-05-10 09:15:48 -06:00
Benjamin Kosnik
8850521be3 libstdc++.exp: Use libgloss.exp.
2001-05-09  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/lib/libstdc++.exp: Use libgloss.exp. Call
	libgloss_link_flags to find crt0.o for targets that use libgloss
	instead of newlib.
	Change LDFLAGS to LIBS.
	Consistently name procedures libstdc++-XXX.
	* testsuite/libstdc++.tests/tests.exp: Use new procedure names.

From-SVN: r41938
2001-05-10 08:55:50 +00:00
GCC Administrator
1be6bcf20c Daily bump.
From-SVN: r41936
2001-05-10 07:16:09 +00:00
Zack Weinberg
6d4587f735 cppinit.c (cpp_post_options): Shut off macro expansion if -fpreprocessed.
* cppinit.c (cpp_post_options): Shut off macro expansion if
	-fpreprocessed.
	* cpplib.c (_cpp_handle_directive): If -fpreprocessed, accept
	IN_I directives only if the # is in column 1 and the directive
	name begins in column 2.
	* cppmain.c (scan_buffer): Insert a space between # and an
	identifier, when that identifier is a directive name.

	* tradcpp.c (struct file_buf): Add a pointer to the next entry
	in the header search path.
	(enum node_type): Add T_INCLUDE_NEXT.
	(directive_table): Add entry for include_next.
	(do_include_next): New function.
	(process_include): New routine, broken out of do_include.
	(finclude): Insert 'nhd' argument, to be copied into
	next_header_dir of the new buffer.
	(main): Adjust to match.
	* gsyslimits.h, limity.h: Un-indent #include_next.

testsuite:
	* gcc.dg/cpp/direct2.c: New test.
	* gcc.dg/cpp/direct2s.c: New test.

	* gcc.c-torture/execute/920730-1t.c: #undef __GNUC__ at head.

From-SVN: r41932
2001-05-10 00:07:23 +00:00
Jeffrey Oldham
6ebe3121aa ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds.
2001-05-09  Jeffrey Oldham  <oldham@codesourcery.com>

	* ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds.

From-SVN: r41931
2001-05-09 22:29:20 +00:00
Thiemo Seufer
8a1532886f md5.c (md5_init_ctx): Declare constants as unsigned.
* md5.c (md5_init_ctx): Declare constants as unsigned.
(md5_process_block): Likewise.

From-SVN: r41930
2001-05-09 15:09:55 -04:00
Joseph Myers
10c179f3e9 objc.texi: Move from ../libobjc/objc-features.texi.
gcc:
	* objc.texi: Move from ../libobjc/objc-features.texi.  Adjust for
	inclusion as a chapter of the GCC manual.
	* gcc.texi: Include objc.texi.
	* fdl.texi: Use @unnumberedsec for the addendum.
	* Makefile.in ($(srcdir)/gcc.info, gcc.dvi): Update dependencies.

libobjc:
	* objc-features.texi: Move to ../gcc/objc.texi.
	* fdl.texi: Remove.
	* Makefile.in: Don't generate documentation from
	objc-features.texi.

From-SVN: r41927
2001-05-09 15:16:47 +01:00
Jan Hubicka
6c12e4889f * i386.md (DImode move splitters): Use !MMX and !SSE for the condition.
From-SVN: r41926
2001-05-09 14:03:39 +00:00
Alexandre Oliva
d3c7d45ed9 regclass.c (scan_one_insn): Update REG_N_REFS when optimizing handling of two-address insns.
* regclass.c (scan_one_insn): Update REG_N_REFS when optimizing
handling of two-address insns.

From-SVN: r41925
2001-05-09 13:40:49 +00:00
Alexandre Oliva
d08d4a19e3 Makefile.in (NM_FOR_TARGET): Look for ./nm, then .../binutils/nm-new instead of ../binutils/nm.
* Makefile.in (NM_FOR_TARGET): Look for ./nm, then
../binutils/nm-new instead of ../binutils/nm.

From-SVN: r41924
2001-05-09 13:37:28 +00:00
Jan Hubicka
a2bafd2011 i386.md (movdi splitter): Fix the splitting condition (float_extenddftf splitter): Fix mode.
* i386.md (movdi splitter): Fix the splitting condition
	(float_extenddftf splitter): Fix mode.

From-SVN: r41923
2001-05-09 10:19:00 +00:00
Jan Hubicka
4ea7a307cf genrecog.c (write_switch): Avoid outputting of switch for types wider than int.
* genrecog.c (write_switch): Avoid outputting of switch for
	types wider than int.

From-SVN: r41922
2001-05-09 10:06:20 +00:00
GCC Administrator
710bbed09d Daily bump.
From-SVN: r41921
2001-05-09 07:16:39 +00:00
Benjamin Kosnik
eea790f7b3 std_cstring.h (memchr): Correct definitions.
2001-05-08  Benjamin Kosnik  <bkoz@fillmore.constant.com>

	* include/c_std/bits/std_cstring.h (memchr): Correct definitions.
	(strchr): Same.
	(strpbrk): Same.
	(strrchr): Same.
	(strstr): Same.
	* include/c_std/bits/std_cwchar.h (wcschr): Same.
	(wcsbrk): Same.
	(wcsrchr): Same.
	(wcsstr): Same.
	(wmemchr): Same.
	* testsuite/21_strings/c_strings.cc: Add tests.

From-SVN: r41919
2001-05-08 23:53:55 +00:00
Andrew Haley
94bd63e512 reload1.c (copy_eh_notes): New function.
2001-05-03  Andrew Haley  <aph@cambridge.redhat.com>

        * reload1.c (copy_eh_notes): New function.
        (emit_input_reload_insns): Call it.
        (emit_output_reload_insns): Call it.

From-SVN: r41918
2001-05-08 14:14:11 +00:00
Alexandre Petit-Bianco
352b3f3f2a re PR java/2538 (latest gcj no longer compiles apache xerces parser due problems with variable declarations and inner classes)
2001-05-07  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (build_unresolved_array_type): Set
	EXPR_WFL_QUALIFICATION on the newly created wfl.
	Fixes PR java/2538. Fixes PR java/2535.

(http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00438.html )

From-SVN: r41917
2001-05-08 01:11:26 -07:00
GCC Administrator
f9c00bbcb7 Daily bump.
From-SVN: r41914
2001-05-08 07:16:41 +00:00
Zack Weinberg
76555b9b2c Really remove this file
From-SVN: r41913
2001-05-08 06:45:53 +00:00
Zack Weinberg
7d25bcce9e config.gcc (i[34567]86-*-sco3.2v4*, [...]): Delete stanzas.
* config.gcc (i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*):
	Delete stanzas.
	* config/i386/sco.h, config/i386/sco4.h, config/i386/scodbx.h,
	config/i386/sco4dbx.h, config/i386/x-sco4: Delete file.

	* optabs.c: Delete #ifdef BROKEN_LDEXP block.

	* POTFILES.in: Remove config/i386/sco.h, config/i386/sco4.h,
	config/i386/sco4dbx.h, and config/i386/scodbx.h.

From-SVN: r41912
2001-05-08 06:26:49 +00:00
Zack Weinberg
641b2721c4 cp-demangle.c (demangle_v3_with_details, [...]): Use K+R style function definition.
* cp-demangle.c (demangle_v3_with_details,
	is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
	function definition.
	* ternary.c: Use K+R style function definitions.  Use PTR, not
	void *.  Make arguments constant where possible.
	* demangle.h: Use PARAMS for all prototypes.
	* ternary.h: Use PARAMS for all prototypes.  Use PTR, not void *.
	Make arguments constant where possible.

From-SVN: r41910
2001-05-08 06:13:58 +00:00
Benjamin Kosnik
ee2f20b9c5 std_fstream.h (basic_filebuf): Change signature.
2001-05-07  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2523
	* include/bits/std_fstream.h (basic_filebuf): Change signature.
	* include/bits/fstream.tcc (basic_filebuf): Change bool argument
	to int_type, pass in buffer size info.
	* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
	unbuffered situation.
	(underflow): Remove codecvt bits for the time being.
	* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
	* include/bits/locale_facets.tcc (_M_extract): Cache dereference
	values from iterators, clean.
	* src/locale.cc: Ditto.
	* include/bits/sbuf_iter.h: Format.
	* src/ios.cc: Explicitly pass in buffer sizes at creation time.
	* testsuite/27_io/narrow_stream_objects.cc: Add tests.
	* testsuite/27_io/filebuf.cc: Tweaks.
	* testsuite/27_io/filebuf_members.cc: Tweaks.

From-SVN: r41909
2001-05-08 03:39:50 +00:00
Benjamin Kosnik
39003c9902 std_fstream.h (basic_filebuf): Change signature.
2001-05-07  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2523
	* include/bits/std_fstream.h (basic_filebuf): Change signature.
	* include/bits/fstream.tcc (basic_filebuf): Change bool argument
	to int_type, pass in buffer size info.
	* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
	unbuffered situation.
	(underflow): Remove codecvt bits for the time being.
	* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
	* include/bits/locale_facets.tcc (_M_extract): Cache dereference
	values from iterators, clean.
	* src/locale.cc: Ditto.
	* include/bits/sbuf_iter.h: Format.
	* src/ios.cc: Explicitly pass in buffer sizes at creation time.
	* testsuite/27_io/narrow_stream_objects.cc: Add tests.
	* testsuite/27_io/filebuf.cc: Tweaks.
	* testsuite/27_io/filebuf_members.cc: Tweaks.

From-SVN: r41908
2001-05-08 03:07:56 +00:00
Mark Mitchell
eefd41e318 * config/os/solaris/solaris2.7/bits/os_defines.h
(_LARGEFILE_SOURCE): Define it.

From-SVN: r41907
2001-05-08 03:02:05 +00:00
Alexandre Petit-Bianco
41ee087715 re PR java/2598 (Runtime crash regression accessing field from enclosing class from inner class)
2001-05-07  Alexandre Petit-Bianco  <apbianco@redhat.com>

        * parse.y (fix_constructors): Removed unecessary assignment to
        local. Moved assignment to `this$<n>', fixed comments and
        indentation.
        (build_wfl_wrap): Fixed indentation.
        Fixes PR java/2598, java/2579 and java/2658.

(http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00412.html )

From-SVN: r41905
2001-05-07 12:53:15 -07:00
John David Anglin
5c8cfcd63d pa.md (interspace_jump): Revise comment.
* pa.md (interspace_jump): Revise comment.
	(builtin_longjmp): Block initial setup insns from delay slot of
	interspace branch.
	(builtin_setjmp_receiver): New expander to save and restore PIC
	register.

	* som.h (NM_FLAGS): Remove `-n' sort option.  Revise comment.

From-SVN: r41902
2001-05-07 19:22:28 +00:00
Mark Mitchell
1a560c3a48 op2.C: Don't use `glob' as a variable.
* g++.old-deja/g++.other/op2.C: Don't use `glob' as a variable.
	* g++.old-deja/g++.other/op3.C: Likewise.

From-SVN: r41901
2001-05-07 18:03:52 +00:00
Jeffrey A Law
1a02aff499 toplev.c (compile_file): Set up the output file before we call the various initializers for the compiler.
* toplev.c (compile_file): Set up the output file before we call
        the various initializers for the compiler.

From-SVN: r41897
2001-05-07 09:51:21 -06:00
Jeffrey A Law
cb0bb87d89 except.c (sjlj_mark_call_sites): Do not search for assignments to non-argumment registers that are mentioned in...
* except.c (sjlj_mark_call_sites): Do not search for assignments to
        non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.

From-SVN: r41896
2001-05-07 09:45:47 -06:00
Mark Mitchell
5cdba4ff5f splay-tree.h (splay_tree_max): New function.
* splay-tree.h (splay_tree_max): New function.
	(splay_tree_min): Likewise.

From-SVN: r41895
2001-05-07 15:45:24 +00:00
Jeffrey A Law
b73bff7e3f pa.h (MAX_LONG_TYPE_SIZE): Should be 32, not 64.
* pa.h (MAX_LONG_TYPE_SIZE): Should be 32, not 64.
        * pa-64.h (*_TYPE_SIZE): Undefine before redefining.

From-SVN: r41893
2001-05-07 09:28:50 -06:00
GCC Administrator
e51becf539 Daily bump.
From-SVN: r41892
2001-05-07 07:16:38 +00:00
Zack Weinberg
3745946688 * Makefile.in (tradcpp0): Correct typo in dependency list.
From-SVN: r41889
2001-05-07 04:30:01 +00:00
Geoffrey Keating
d5fa86ba42 rs6000.c (rs6000_emit_prologue): Don't save the link register if we're not going to use it.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Don't save
	the link register if we're not going to use it.

	* config/rs6000/rs6000.c (output_profile_hook): Fix a warning.
	(output_function_profiler): Likewise.

From-SVN: r41888
2001-05-07 02:54:29 +00:00
Alan Modra
ff5a340ad5 * pa.c (compute_frame_size): 64-bit frame marker is 16 bytes.
From-SVN: r41887
2001-05-07 11:20:52 +09:30
Alexandre Oliva
b8ebd779d5 unroll.c (loop_iterations): Don't sign-extend abs_diff; zero-extend it.
* unroll.c (loop_iterations): Don't sign-extend abs_diff;
zero-extend it.  Make abs_inc unsigned.

From-SVN: r41886
2001-05-06 19:51:19 +00:00
Alexandre Oliva
3c04502e2b optabs.c (expand_binop): Sign-extend xop0 and xop1 from the widest mode in narrowing and widening operations.
* optabs.c (expand_binop): Sign-extend xop0 and xop1 from the
widest mode in narrowing and widening operations.

From-SVN: r41885
2001-05-06 19:47:15 +00:00
Alexandre Oliva
7cbdf57537 Whitespace change
From-SVN: r41884
2001-05-06 19:44:37 +00:00
Alexandre Oliva
024c02b178 * config/mips/mips.md: Sign extend CONST_INTs.
From-SVN: r41883
2001-05-06 19:35:41 +00:00
Andreas Jaeger
762e166bf4 invoke.texi (Option Summary): Add -momit-leaf-frame-pointer (i386 Options): Document -momit-leaf-frame-pointer.
* invoke.texi (Option Summary): Add -momit-leaf-frame-pointer
	(i386 Options): Document -momit-leaf-frame-pointer.

From-SVN: r41881
2001-05-06 19:10:53 +02:00
Neil Booth
714a0864cc c-typeck.c (internal_build_compound_expr): Check for array to pointer conversion just once.
* c-typeck.c (internal_build_compound_expr): Check for
	array to pointer conversion just once.

From-SVN: r41879
2001-05-06 16:38:56 +00:00
Bryce McKinlay
7026707d15 Class.h (_Jv_Self): New union type.
* java/lang/Class.h (_Jv_Self): New union type.
	(Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
	Jeff Sturm and Fergus Henderson.

	* java/lang/ClassLoader.java: Remove dead code fragment.

From-SVN: r41876
2001-05-06 14:42:11 +01:00