Commit Graph

31938 Commits

Author SHA1 Message Date
Jeff Law
f7da5f3d46 Daily bump.
From-SVN: r37735
2000-11-25 01:45:08 -07:00
Alexandre Oliva
ae010e4332 sh.h (TARGET_NONE): New.
* config/sh/sh.h (TARGET_NONE): New.
(TARGET_SWITCHES): For all variant-selecting switch, use
TARGET_NONE to reset all other variant-selecting switch.  Added
empty strings to avoid warnings.
(TARGET_DEFAULT): Set to SH1_BIT.

From-SVN: r37734
2000-11-25 06:35:09 +00:00
Alexandre Oliva
8618466f58 Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for insn-codes.h.
* Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
insn-codes.h.

From-SVN: r37733
2000-11-25 06:24:05 +00:00
Alexandre Oliva
5db5a888d1 sh.md (sibcalli, [...]): New insns.
* gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
(sibcall_pcrel): New insn_and_split.
(sibcall, sibcall_value, sibcall_epilogue): New expands.

From-SVN: r37732
2000-11-25 04:57:39 +00:00
Alexandre Oliva
6915629f81 sh.md (GOTaddr2picreg, [...]): Don't set current_function_uses_pic_offset_table.
* config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
symPLT_label2reg, call, call_value): Don't set
current_function_uses_pic_offset_table.
* config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
takes it into account.
(FINALIZE_PIC): Delete, useless.
(LEGITIMATE_CONSTANT_P): Delete, unused.
* config/sh/sh.c (sh_expand_prologue): Don't use
current_function_uses_pic_offset_table.  Don't special-case
PIC_OFFSET_TABLE_REGNUM.  Initialize it if it's ever live and
PIC is enabled.
(sh_expand_epilogue, initial_elimination_offset): Don't
special case PIC_OFFSET_TABLE_REGNUM.

From-SVN: r37731
2000-11-25 04:42:27 +00:00
Alexandre Oliva
2d01e44576 sh-protos.h (symbol_ref_operand): Declare.
* config/sh/sh-protos.h (symbol_ref_operand): Declare.
* config/sh/sh.md (UNSPEC_CALLER): New constant.
(calli_pcrel, call_valuei_pcrel): Use PIC_REG.
(call_pcrel, call_value_pcrel): New insn_and_splits.
(call, call_value): Use them.
(call_site): New expand.
(sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
Output call_site label.
(PREDICATE_CODES): Added symbol_ref_operand.
* config/sh/sh.c (symbol_ref_operand): Define.
* emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
to CALL_INSNs in the split sequence.

From-SVN: r37730
2000-11-25 04:32:45 +00:00
Alexandre Oliva
9eca082e50 * gcc.c-torture/compile/20001123-2.c: New.
From-SVN: r37729
2000-11-25 04:27:59 +00:00
Kriang Lerdsuwanakij
3a163b1a99 * g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
From-SVN: r37728
2000-11-25 02:40:00 +00:00
Nick Clifton
c3edd394bb Use target specific, language specific object files feature to allow build
v850 pragma support into gcc and gxx.

From-SVN: r37727
2000-11-25 00:43:32 +00:00
Nick Clifton
aac69a49c9 Add support for target specific, language specific object files.
From-SVN: r37726
2000-11-25 00:33:04 +00:00
Nick Clifton
0a534f40cc Add xscale-elf and xscale-coff targets.
Add xscale-elf and xscale-coff targets.  (Only supported in binutils at the
moment).

From-SVN: r37725
2000-11-25 00:28:09 +00:00
Richard Kenner
7257bbc671 * gcc.c (process_command): Use F_OK, not R_OK.
From-SVN: r37724
2000-11-24 18:57:31 -05:00
Benjamin Kosnik
35a63b9486 codecvt_wchar_t_char.cc (main): Add _GLIBCPP_USE_WCHAR_T guards.
2000-11-24  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* testsuite/22_locale/codecvt_wchar_t_char.cc (main): Add
	_GLIBCPP_USE_WCHAR_T guards.

	* configure.in (AC_OUTPUT_COMMANDS): Remove, just run scripts as
	is, so that checks for existence of generated files actually work.
	* configure: Regenerate.

From-SVN: r37723
2000-11-24 23:48:45 +00:00
Arno J. Klaassen
c3ff75c421 * flow.c (print_rtl_and_abort): Remove ANSIism.
From-SVN: r37722
2000-11-24 15:45:08 -08:00
Alexandre Oliva
104ee20b72 sh.h (GENERAL_REGISTER_P, [...]): New macros.
* config/sh/sh.h (GENERAL_REGISTER_P,
GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros.  Use them
all over.
(SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
* config/sh/sh.c: Use new macros.
* config/sh/sh.md: Likewise.

From-SVN: r37721
2000-11-24 22:06:31 +00:00
Alexandre Oliva
5d00b10a56 sh.md: Clobber MACH_REG and MACL_REG in SImode, instead of just MACH_REG in DImode.
* config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
instead of just MACH_REG in DImode.  Always refer to FPSCR_REG
in PSImode.

From-SVN: r37720
2000-11-24 21:54:19 +00:00
Anthony Green
00e930367b libjava.exp (bytecompile_file): Change default from javac to gcj -C.
Fri Nov 24 11:25:20 2000  Anthony Green  <green@redhat.com>

	* lib/libjava.exp (bytecompile_file): Change default from javac to
 	gcj -C.
	(libjava_arguments): Fix classpath.

	* libjava.compile/PR129_B.no-link: New file.

From-SVN: r37719
2000-11-24 21:38:16 +00:00
Tom Tromey
ad86a903a2 prims.cc (_Jv_NewObjectArray): Use palcement new to create array.
* prims.cc (_Jv_NewObjectArray): Use palcement new to create
	array.
	(_Jv_NewPrimArray): Likewise.
	Include <new>.
	* gcj/array.h (__JArray): `length' field now const.  Added
	constructor.
	(class JArray): Added constructor.

From-SVN: r37718
2000-11-24 21:02:36 +00:00
Tom Tromey
81d87b4e64 * libjava.compile/PR375.java: New file. For PR gcj/375.
From-SVN: r37717
2000-11-24 20:54:56 +00:00
Tom Tromey
b5a50b6457 * libjava.compile/PR374.java: New file. For PR gcj/374.
From-SVN: r37716
2000-11-24 20:54:44 +00:00
Denis Chertykov
33f7735588 avr.c (out_tsthi,out_tstsi): Test simplification bug fixed.
* config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
	fixed.
	(machine_dependent_reorg): Wrong optimization based on
	NOTICE_UPDATE_CC removed.

From-SVN: r37715
2000-11-24 23:02:40 +03:00
J"orn Rennecke
692dc9c635 jump.c (delete_computation): Re-instate deletion of feeding insn.
* jump.c (delete_computation): Re-instate deletion of feeding insn.
	(delete_insn): Look for REG_LABEL notes.
	(redirect_tablejump): Delete feeding insns.

From-SVN: r37714
2000-11-24 19:51:09 +00:00
Bernd Schmidt
90d10fb9c6 Make operand numbers contiguous in four patterns.
From-SVN: r37713
2000-11-24 17:51:51 +00:00
Bernd Schmidt
7cf5c9e1a0 Fix crash in fold_range_test
From-SVN: r37712
2000-11-24 17:45:04 +00:00
Bernd Schmidt
ff6534ad16 Fix code that substitutes reloadreg into SET_DEST of previous insn.
From-SVN: r37711
2000-11-24 17:40:09 +00:00
Bernd Schmidt
176f9a7b1c Treat ready list as a (for now, semi-)abstract datatype. Lose max_priority.
From-SVN: r37710
2000-11-24 17:36:47 +00:00
Bernd Schmidt
222de5be45 New testcase
From-SVN: r37709
2000-11-24 17:11:10 +00:00
Anthony Green
1510057a32 jcf-parse.c (init_jcf_parse): Register current_file_list root.
* jcf-parse.c (init_jcf_parse): Register current_file_list root.
        Move current_file_list out of yyparse and make it static.

        * expr.c: Declare quick_stack and tree_list_free_list as static
        (init_expr_processing): Register quick_stack and
        tree_list_free_list roots.

From-SVN: r37708
2000-11-24 15:29:39 +00:00
Bernd Schmidt
52a84e4270 Fix bug in previous change.
From-SVN: r37707
2000-11-24 14:22:01 +00:00
Bernd Schmidt
235cfbc40f Overhaul sequence point warnings (again)
From-SVN: r37706
2000-11-24 11:49:46 +00:00
Richard Sandiford
58ecb5e2cd Avoid a bit of copy propagation when there's a REG_EQUIV note
From-SVN: r37705
2000-11-24 11:36:27 +00:00
Bernd Schmidt
c34102419d Avoid hard register combinations
From-SVN: r37704
2000-11-24 11:28:51 +00:00
Nathan Sidwell
2f401cc807 c-parse.in (unary_expr): Move VA_ARG from here ...
* c-parse.in (unary_expr): Move VA_ARG from here ...
        (primary): ... to here.
cp:
        * parse.y (unary_expr): Move VA_ARG from here ...
        (primary): ... to here.

testsuite:
        * g++.old-deja/g++.other/vaarg4.C: New test.
        * gcc.c-torture/compile/20001123-1.c: New test.

From-SVN: r37703
2000-11-24 10:30:46 +00:00
Nathan Sidwell
3d7e9ba41e semantics.c (finish_id_expr): If type is error_mark, return error_mark.
cp:
	* semantics.c (finish_id_expr): If type is error_mark, return
	error_mark.
testsuite:
	* g++.other/crash24.C: Adjust and remove XFAIL.
	* g++.other/crash37.C: New test.

From-SVN: r37702
2000-11-24 09:56:27 +00:00
Jeff Law
f4f6bd8d30 Daily bump.
From-SVN: r37701
2000-11-24 01:45:08 -07:00
Graham Stott
963a2a84a4 expr.c (store_constructor): If a field is non addressable and the target is a MEM use MEM_ALIAS_SET...
* expr.c (store_constructor): If a field is non addressable and
	the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.

From-SVN: r37700
2000-11-23 20:15:36 +00:00
Bernd Schmidt
f9b697bfa1 Try to dump some information before aborting.
From-SVN: r37699
2000-11-23 18:19:18 +00:00
Nathan Sidwell
ab09753510 pt.c (lookup_template_class): Simplify loop exit constructs.
cp:
	* pt.c (lookup_template_class): Simplify loop exit constructs.
	Cope when there is no partial instantiation of a template
	template member.
testsuite:
	* g++.old-deja/g++.pt/instantiate9.C: New test.

From-SVN: r37698
2000-11-23 15:19:36 +00:00
Alexandre Oliva
8d4af2d7a9 Use UNSPEC_MOVA in newly-introduced mova_const
From-SVN: r37697
2000-11-23 13:24:28 +00:00
Alexandre Oliva
69295d6d26 emit-rtl.c (gen_lowpart_common): Use word 0 if register mode is narrower than requested mode.
* emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
is narrower than requested mode.
(gen_highpart): Abort if register mode is narrower than
requested mode.

From-SVN: r37696
2000-11-23 13:23:04 +00:00
Hans-Peter Nilsson
d0c3e4f498 os_defines.h: Include <features.h>.
* config/os/gnu-linux/bits/os_defines.h: Include <features.h>.
	If not glibc 2.1 or higher, include <gnu/types.h> and define
	__off64_t as __loff_t and #define __THROW as empty.

	* libio/libio.h [__P]: Move __THROW and __PMT into their own
	ifndef:s.

From-SVN: r37695
2000-11-23 11:30:46 +00:00
Graham Stott
99a9c9460d cse.c (cse_insn): Initialise all regcost variables.
* cse.c (cse_insn): Initialise all regcost variables.
        Fix a typo add missing '='.
        Only compare costs if there is a replacement insn.

From-SVN: r37694
2000-11-23 11:04:45 +00:00
Jeff Law
f9b383f20f Daily bump.
From-SVN: r37693
2000-11-23 01:45:07 -07:00
Benjamin Kosnik
4ce69c7f61 Make deprecated strstream header consistent with new and new.h.
2000-11-22  Benjamin Kosnik  <bkoz@redhat.com>

	Make deprecated strstream header consistent with new and new.h.
	* include/backward/strstream.h: Add. Use using declarations to
	scope strstreambuf, istrstream, ostrstream, strstream to global
	scope.
	* include/backward/strstream: Remove using declarations.
	* src/Makefile.am (base_headers): Add strstream.
	* src/Makefile.in: Regenerate.

	* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
	to be consistent with other headers.

From-SVN: r37692
2000-11-23 06:46:31 +00:00
Alexandre Oliva
422be3c3cc final.c (output_addr_const): Simplify.
* final.c (output_addr_const) [LABEL_REF]: Simplify.
[MINUS]: Enclose non-CONST_INTs in parentheses.
[default]: Try OUTPUT_ADDR_CONST_EXTRA.
* tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
* varasm.c (decode_rtx_const) [CONST]: If it's not something
PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
instead of abort()ing.
* sh.c (output_pic_addr_const): Removed.  Fixed all callers.
* sh.h (OUTPUT_ADDR_CONST_EXTRA): New.  Handle the UNSPECs
formerly handled in output_pic_addr_const.
* sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
operands of MINUS in CONSTs so that decode_rtx_const() will
accept them.

From-SVN: r37691
2000-11-23 06:37:23 +00:00
Alexandre Oliva
43c0563453 sh.md (mova_const): New pattern.
* config/sh/sh.md (mova_const): New pattern.
(GOTaddr2picreg): Use it.
* config/sh/sh.c (broken_move): Match it.
(mova_p): Don't match it.
(machine_dependent_reorg): Adjust it.

From-SVN: r37690
2000-11-23 06:20:16 +00:00
Alexandre Petit-Bianco
5e18f6d629 parse.y (build_outer_field_access): New local `decl_ctx', use it.
2000-11-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (build_outer_field_access): New local `decl_ctx', use
	it. Check for field's context and current class immediate outer
	context inheritance.
	(outer_field_access_p): Consider fields inherited from the last
	enclosing context.
	(build_access_to_thisn): Stop at the last enclosing context if
	necessary.
	Fixes gcj/367.

(http://gcc.gnu.org/ml/gcc-patches/2000-11/msg01335.html)

From-SVN: r37689
2000-11-22 22:04:16 -08:00
David Edelsohn
54214152bd * porting.texi: Expand libtool information.
From-SVN: r37688
2000-11-23 00:51:07 -05:00
Mark Wielaard
abb32cf595 name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting lookup.
2000-11-23  Mark Wielaard  <mark@klomp.org>

	* name-finder.cc (lookup): Check for a NULL _Jv_argv before
	attempting lookup.

From-SVN: r37687
2000-11-23 05:45:47 +00:00
Alexandre Oliva
e11cddecea Formatting and coment changes
From-SVN: r37686
2000-11-23 05:40:27 +00:00