Commit Graph

32829 Commits

Author SHA1 Message Date
Gabriel Dos Reis
b2fb49148e tests_flags.in (check_directory): Fix typo.
2001-01-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

        * tests_flags.in (check_directory): Fix typo.

From-SVN: r38851
2001-01-10 02:48:08 +00:00
Kazu Hirata
35fb3d1ff3 h8300.c (get_shift_alg): Use a struct shift_info to return the result.
2001-01-09  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c (get_shift_alg): Use a struct shift_info to
	return the result.

From-SVN: r38850
2001-01-10 02:47:50 +00:00
Alan Lehotsky
4971426b43 *** empty log message ***
From-SVN: r38849
2001-01-09 21:34:14 -05:00
Peter Schmid
fa44a93614 2001-01-09 Peter Schmid<schmid@snake.iap.physik.tu-darmstadt.de>
2001-01-09  Peter Schmid<schmid@snake.iap.physik.tu-darmstadt.de>
        * include/bits/std_complex.h: Fix a typo.

From-SVN: r38848
2001-01-10 02:30:57 +00:00
Loren J. Rittle
046585534e ctype_inline.h (is): (Make right code path:) Remove magic constants and restructure to handle...
* config/os/bsd/freebsd/bits/ctype_inline.h (is): (Make right
	code path:) Remove magic constants and restructure to handle
	ctype.h bit mask layout changes more gracefully.  (Make fast
	code path:) Use __maskrune (), if available.
	(is): Remove special case for digit and xdigit masks.

From-SVN: r38847
2001-01-10 02:08:16 +00:00
Alan Lehotsky
9088c6fcf6 *** empty log message ***
From-SVN: r38846
2001-01-09 20:14:28 -05:00
Jeffrey D. Oldham
c4923b10a8 Remove unintentional merge indicators.
From-SVN: r38845
2001-01-10 00:51:39 +00:00
Jeffrey D. Oldham
3ee816a413 instantiate2.C: ERROR line should fail for mips.
2001-01-09  Jeffrey Oldham  <oldham@codesourcery.com>

	* g++.old-deja/g++.ext/instantiate2.C: ERROR line should fail for
	mips.
	* g++.old-deja/g++.ext/instantiate3.C: Likewise.

From-SVN: r38844
2001-01-10 00:49:22 +00:00
Joseph Myers
10a4c7acd6 c-common.c (enum format_type): Add format_type_error.
* c-common.c (enum format_type): Add format_type_error.
	(decode_format_type): New function.
	(decl_attributes): Use it.
	(format_kind_info): Adjust comment.

From-SVN: r38843
2001-01-09 22:51:05 +00:00
David O'Brien
f6e0c56ca2 config.gcc (*-*-gnu*, [...]): Specify needed platform specific files in tm_file.
2001-01-09  David O'Brien  <obrien@BSDi.com>
	* config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1,
	i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific
	files in tm_file.
	* config/i386/gnu.h: Don't include required platform specific .h files,
	tm.h will do it instead.
	* config/i386/i386elf.h: Likewise.
	* config/i386/linux.h: Likewise.
	* config/i386/moss.h: Likewise.
	* config/mips/gnu.h: Likewise.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20010107030000.A24090@redhat.com>

From-SVN: r38842
2001-01-09 22:10:53 +00:00
Franz Sirl
e556ad197c config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
2001-01-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
	(rs6000-ibm-aix3.[01]*): Likewise.
	(rs6000-ibm-aix3.2.[456789]*, powerpc-ibm-aix3.2.[456789]*): Likewise.
	(rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Likewise.
	(rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Likewise.
	(rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
	(powerpc-*-sysv*): Include {tm_file}. svr4.h and rs6000/sysv4.h.
	(powerpc-*-eabiaix*): Likewise.
	(powerpc-*-eabisim*): Likewise.
	(powerpc-*-elf*): Likewise.
	(powerpc-*-eabi*): Likewise.
	(powerpc-*-rtems*): Likewise.
	(powerpc-*-linux*libc1): Likewise.
	(powerpc-*-linux*): Likewise.
	(powerpc-wrs-vxworks*): Likewise.
	(powerpcle-wrs-vxworks*): Likewise.
	(powerpcle-*-sysv*): Likewise.
	(powerpcle-*-elf*): Likewise.
	(powerpcle-*-eabisim*): Likewise.
	(powerpcle-*-eabi*): Likewise.
	(powerpcle-*-solaris2*): Likewise.
	* config/rs6000/aix31.h: Delete includes.
	* config/rs6000/aix3newas.h: Likewise.
	* config/rs6000/aix41.h: Likewise.
	* config/rs6000/aix43.h: Likewise.
	* config/rs6000/beos.h: Likewise.
	* config/rs6000/rtems.h: Likewise.
	* config/rs6000/sysv4.h: Likewise.

From-SVN: r38841
2001-01-09 20:46:11 +00:00
Kazu Hirata
46d00fef1d h8300.c (function_prologue): Fix code for a monitor function.
2001-01-09  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c (function_prologue): Fix code for a
	monitor function.  Support H8/S.
	(function_epilogue): Do not output pop for a monitor function.

From-SVN: r38840
2001-01-09 20:17:02 +00:00
Kazu Hirata
9789584bd1 h8300.c (get_shift_alg): Remove an argument cpu.
2001-01-09  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c (get_shift_alg): Remove an argument cpu.
	Change an argument mode of machine_mode to shift_mode of
	shift_mode.  Remove an extra error check.
	(emit_a_shift): Adopt to the new calling prototype of
	get_shift_alg.

From-SVN: r38839
2001-01-09 20:02:35 +00:00
Nick Clifton
00dba523ac oops - omitted from previous delta
From-SVN: r38838
2001-01-09 19:38:25 +00:00
Mike Stump
6e2d9a7aab Makefile.in (CONFIGURE_TARGET_MODULES): Pass back configuration failures of subdirectories.
* Makefile.in (CONFIGURE_TARGET_MODULES): Pass back configuration
	failures of subdirectories.

From-SVN: r38837
2001-01-09 18:55:41 +00:00
Nick Clifton
a2e11fd9e2 SWitch use if {save|restore}_machine_status with {init|free}_machine_status
From-SVN: r38836
2001-01-09 18:07:51 +00:00
Richard Henderson
4ba478b87c sched-int.h (struct deps): Add max_reg, reg_last_in_use...
* sched-int.h (struct deps): Add max_reg, reg_last_in_use; merge
        reg_last_uses, reg_last_sets, reg_last_clobbers into struct deps_reg.
        * sched-deps.c (sched_analyze_1): Update uses of struct deps.
        (sched_analyze_2, sched_analyze_insn): Likewise.
        (sched_analyze, init_deps): Likewise.
        (free_deps): Likewise.  Iterate with EXECUTE_IF_SET_IN_REG_SET.
        * sched-rgn.c (propagate_deps): Likewise.  Remove max_reg argument.
        (compute_block_backward_dependences): Update propagate_deps call.

From-SVN: r38835
2001-01-09 09:45:12 -08:00
Mark Elbrecht
9c1fcbfbb6 * gcc.c (process_command): Set switches[n_switches].ordering to 0.
From-SVN: r38834
2001-01-09 11:35:53 -05:00
Neil Booth
e582248c93 cppinit.c (OPT_MD, OPT_MMD): Restore.
* cppinit.c (OPT_MD, OPT_MMD): Restore.
        (cpp_handle_option): Handle them.
        (cpp_post_options): Ensure one of -M or -MM is specified with
        any other -M? option.
        (init_dependency_output): Suppress output with -MG.
        * cpp.texi: Update.
        * invoke.texi: Update.

From-SVN: r38833
2001-01-09 14:45:44 +00:00
Bernd Schmidt
7894cb2753 sh.md (reload_outsf): Generate recognizable patterns for TARGET_SH3E.
* sh.md (reload_outsf): Generate recognizable patterns for
TARGET_SH3E.

From-SVN: r38832
2001-01-09 14:23:50 +00:00
Nathan Sidwell
186c0fbe03 class.c (handle_using_decl): Reject using of constructor name of sourcing class.
cp:
	* class.c (handle_using_decl): Reject using of constructor name
	of sourcing class. Allow injecting of a method with same name as
	nested class. Fixup error messages.
testsuite:
	* g++.old_deja/g++.pt/using8.C: New test.

From-SVN: r38831
2001-01-09 11:37:07 +00:00
Oskar Liljeblad
10a855c7f4 re PR libgcj/1338 (StreamTokenizer does not handle /* comments correctly)
2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>

	Fix for PR libgcj/1338:
	* java/io/StreamTokenizer.java (nextToken): Handle // and /* before
	commentChar.  Fixed typos in comments.

From-SVN: r38830
2001-01-09 11:21:12 +00:00
Neil Booth
9f56ed15ce * ChangLog: Edited wrong ChangeLog.
From-SVN: r38829
2001-01-09 10:58:19 +00:00
Neil Booth
13c61421ff c-lang.c (lang_hooks): Update.
* c-lang.c (lang_hooks): Update.
        (lang_init): Rename c_init.
        (lang_finish): Remove.
        * toplev.c (compile_file): Use lang_hooks for lang_init ()
        and lang_finish ().
        * toplev.h (lang_hooks): Add init () and finish ().
        * tree.h (lang_init, lang_finish): Remove.
        * cp/tree.h (lang_init, lang_finish): Remove.
        * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
        * cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
        lang_hooks): New.
        (lang_init, lang_finish): Remove.
        * f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
        (lang_hooks): Update.
        * java/lang.c (lang_init): Rename java_init.
        (lang_finish): Remove.
        (lang_hooks): Update.
        * objc/objc-act.c (lang_init): Rename objc_init.
        (lang_finish): Remove.
        (lang_hoooks): Update.

From-SVN: r38828
2001-01-09 10:54:01 +00:00
Graham Stott
fb83deef1a cppfiles.c (_cpp_execute_include): Move len initialisation after ptr is initialised.
* cppfiles.c (_cpp_execute_include): Move `len` initialisation
        after `ptr` is initialised.

From-SVN: r38827
2001-01-09 10:51:42 +00:00
Graham Stott
8e178c1d09 cppfiles.c (_cpp_execute_include): Move len initialisation after ptr is initialised.
* cppfiles.c (_cpp_execute_include): Move `len` initialisation
	after `ptr` is initialised.

From-SVN: r38826
2001-01-09 10:43:47 +00:00
Joseph Myers
28ec8d6bf8 * decl2.c (lang_decode_option): Handle -Wformat=2.
From-SVN: r38825
2001-01-09 10:37:02 +00:00
Joseph Myers
654d7a33b2 * gcc.dg/format/attr-2.c, gcc.dg/format/attr-3.c: New tests.
From-SVN: r38824
2001-01-09 10:35:21 +00:00
Alexandre Oliva
ec4ad0f9c7 sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
* config/sh/sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
(INITIALIZE_TRAMPOLINE): Adjust accordingly.
* config/sh/sh.c (sh_expand_prologue): Use r1 as temporary for
stack adjusts, instead of r3.

From-SVN: r38823
2001-01-09 10:31:32 +00:00
Michael Hayes
eab02febcf flow.c (flow_loop_scan): Break out of ...
* flow.c (flow_loop_scan): Break out of ...
	(flow_loops_find) ... here.
	* basic-block.h (flow_loop_scan): New.
	(LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES): Add.
	(LOOP_EDGES, LOOP_EXITS_DOMS, LOOP_ALL): Redefine.

From-SVN: r38822
2001-01-09 10:25:44 +00:00
Alexandre Oliva
4b49c3657f cppinit.c (cpp_cleanup): NULLify macro_buffer and zero macro_buffer_len.
* cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
macro_buffer_len.
* cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
realloc()ing macro_buffer.

From-SVN: r38821
2001-01-09 09:30:43 +00:00
Alexandre Oliva
bad48d7ebd hwint.h (HOST_BITS_PER_WIDE_INT, [...]): Use long long if it's wider than long and the target's long is wider than the...
* hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
if it's wider than long and the target's long is wider than the
host's.

From-SVN: r38820
2001-01-09 09:28:07 +00:00
Jeff Law
afe09d12d8 Daily bump.
From-SVN: r38819
2001-01-09 01:45:11 -07:00
Mark Mitchell
34fa3e7da8 Remove support for using UWIN as a host machine.
* configure.in: Issue an error message.
	* configure: Regenerated.
	* config.gcc: Remove xm_* UWIN configury.
	* config/i386/xm-uwin.h: Remove.

From-SVN: r38818
2001-01-09 08:32:01 +00:00
Robert Lipe
e7eceef2af * include/c_std/bits/std_ctime.h: Undefine difftime.
From-SVN: r38817
2001-01-09 07:42:45 +00:00
Warren Levy
3824a48600 re PR libgcj/1411 (natTimeZone.cc should be removed)
Fix for PR libgcj/1411:
	* Makefile.am: Removed java/util/natTimeZone.cc.
	* Makefile.in: Rebuilt.
	* gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
	missing localized timezone names.
	* java/lang/System.java (getDefaultTimeZoneId): New private method.
	* java/lang/natSystem.cc (getSystemTimeZone): New private method.
	(init_properties): Set user.timezone property.
	* java/text/DateFormatSymbols.java (zoneStringsDefault): Added
	default timezone names; removed non-standard ones.  Use standard
	ID names per JCL.
	* java/util/Date.java (toGMTString): Removed zoneGMT variable.
	(UTC): Ditto.
	* java/util/TimeZone.java: Add standard ID names per JCL; removed
	non-standard ones.
	(getDefaultTimeZoneId): Removed.
	(zoneGMT): Removed.
	(getDefaultTimeZoneId): Removed.
	* java/util/natTimeZone.cc: Removed.

From-SVN: r38816
2001-01-09 07:07:51 +00:00
Nick Clifton
61db460830 Use init/mark/free machine status functions.
Fix compile time warnings building varasm.o
Define USER_LABEL_PREFIX, undefine ASM_OUTPUT_LABELREF

From-SVN: r38815
2001-01-09 03:10:13 +00:00
Alexandre Oliva
4a70b13a4c gen-num-limits.cc (signal_adapter): New template function.
* src/gen-num-limits.cc (signal_adapter): New template function.
(signal_handler): Use it, instead of signal.
(traps<T>): Likewise.  Install SIGTRAP handler too.  Don't
require both tests to trap to set trap_flag.

From-SVN: r38814
2001-01-09 03:01:56 +00:00
Jim Wilson
9c8fad3381 sched-rgn.c (BITSET_ADD, [...]): Cast 1 to unsigned HOST_WIDE_INT before left shift.
* sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
	1 to unsigned HOST_WIDE_INT before left shift.

From-SVN: r38813
2001-01-08 19:40:18 -07:00
Loren J. Rittle
18eb26d4fe mzero2.x: Adjust statement of where a failure is expected.
* gcc.c-torture/execute/ieee/mzero2.x: Adjust statement of
	where a failure is expected.
	* gcc.c-torture/execute/ieee/rbug.x: Likewise.

From-SVN: r38812
2001-01-08 18:11:34 -07:00
Nick Clifton
f7a80099bd Fix memory leak
From-SVN: r38811
2001-01-09 01:08:53 +00:00
Benjamin Kosnik
5a259aec51 fpos.h (fpos:::fpos(streamoff __pos)): Explicitly initialize mbstate_t member, name offset data members *off, not pos.
2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
	initialize mbstate_t member, name offset data members *off, not pos.
	* include/bits/fstream.tcc (filebuf::filebuf): Same.

From-SVN: r38809
2001-01-08 23:51:57 +00:00
Bryce McKinlay
5bb11b2e20 In gcc/java:
* class.c (make_class_data): Push initial value for "arrayclass".
	* decl.c (init_decl_processing): Add new class field "arrayclass".

In libjava:
	* java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
	(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
	(_Jv_GetArrayClass): New inline function.
	(arrayclass): New field.
	* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
	_Jv_GetArrayElementFromElementType.
	(_Jv_NewPrimArray): Ditto.
	(_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
	"idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
	Set Modifier::ABSTRACT.
	* java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
	(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
	Now synchronized. Array classes are now referenced from
	elementClass->arrayclass. Don't use _Jv_FindClassInCache.
	Set array classes' accessibility flags correctly. Optimize so that
	all array classes share the same IDT.
	* java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
	* java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
	* java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
	in superclasses from overwriting classes own fields.
	(_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
	Modifier::isAbstract().
	(null_idt): New static field.
	(_Jv_PrepareConstantTimeTables): Optimize case where class implements
	no interfaces.
	(_Jv_IndexOf): Made inline.
	* boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.

From-SVN: r38808
2001-01-08 23:28:56 +00:00
Tom Tromey
5bab9296f5 re PR java/1586 (linux build problem for libjava - cpplib (?))
Fix for PR java/1586:
	* Makefile.in: Rebuilt.
	* Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.

From-SVN: r38807
2001-01-08 22:55:15 +00:00
Richard Henderson
3c74f8f987 * jump.c (simplejump_p): Revert last change.
From-SVN: r38806
2001-01-08 10:52:50 -08:00
Neil Booth
674c3b405c cppinit.c (init): Rename init_library.
* cppinit.c (init): Rename init_library.
        (cpp_create_reader): Update.
        * gcc.c (cpp_options): If -o given, use it as the target of
        any -M options.

From-SVN: r38805
2001-01-08 18:52:09 +00:00
Benjamin Kosnik
1d8939ef8a reported by Chris G.
2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>

	reported by Chris G. Demetriou <cgd@sibyte.com>
	* configure.in: Change -linux-* to -linux*.
	* configure: Regenerate.

From-SVN: r38804
2001-01-08 17:53:52 +00:00
Richard Earnshaw
b15bca310f arm.c (arm_arch5e): New variable.
* arm.c (arm_arch5e): New variable.
(all_cores): XScale is a 5TE device.
(arm_override_options): Set arm_arch5e.
(arm_init_builtins): __builtin_prefetch is in arch5e.
* arm.h (arm_arch5e): Declare it.

* arm.h (PREDICATE_CODES): Add arm_hard_register_operand.

* arm.md (define_constants): Add defines for UNSPEC and
UNSPEC_VOLATILE insns.  Update all users.
(define_constants): Add constants for IP_REGNUM, SP_REGNUM, PC_REGNUM.
* arm.c (multi_register_push, note_invalid_constants)
(emit_multi_reg_push, emit_sfm, expand_prologue): Use constants.
* arm.h (SP_REGNUM, IP_REGNUM, PC_REGNUM): Delete defines.
(STACK_POINTER_REGNUM): Define in terms of SP_REGNUM.

From-SVN: r38803
2001-01-08 15:33:06 +00:00
Jan Hubicka
261efdefd0 jump.c (jump_optimize_1): Use reversed_comparison_code instead of can_reverse_comparison_p.
* jump.c (jump_optimize_1): Use reversed_comparison_code
	instead of can_reverse_comparison_p.
	(jump_back_p): Likewise.
	(invert_exp_1): Likewise.
	(thread_jumps): Likewise.
	* simplify-rtx.c (simplify_unary_operation): Likewise.
	(simplify_ternary_operation): Likewise.
	* cse.c (find_comparison_args): Convert to use
	can_reverse_comparison_p.
	(record_jump_equiv): Likewise.

From-SVN: r38802
2001-01-08 15:16:40 +00:00
Nathan Sidwell
3febd12318 cp-tree.h (lang_decl_flags): Rename defined_in_class to initialized_in_class.
cp:
	* cp-tree.h (lang_decl_flags): Rename defined_in_class to
	initialized_in_class.
	(DECL_DEFINED_IN_CLASS_P): Rename to ...
	(DECL_INITIALIZED_IN_CLASS_P): ... here, to reflect true meaning.
	* decl.c (duplicate_decls): Preseve DECL_INITIALIZED_IN_CLASS_P.
	(cp_finish_decl): Adjust for DECL_INITIALIZED_IN_CLASS_P.
	* pt.c (check_default_tmpl_args): Adjust for
	DECL_INITIALIZED_IN_CLASS_P.
	(instantiate_class_template): Likewise.
	(instantiate_decl): Check DECL_INITIALIZED_IN_CLASS_P.

	* class.c (finish_struct): Constify saved_filename.
testsuite:
	* g++.old_deja/g++.pt/instantiate12.C: New test.

From-SVN: r38801
2001-01-08 14:41:03 +00:00