Commit Graph

40780 Commits

Author SHA1 Message Date
Eric Botcazou
2eb96bdbd4 20021212-1.c: New test.
2002-12-12  Eric Botcazou  <ebotcazou@libertysurf.fr>

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

From-SVN: r60068
2002-12-12 11:09:39 +00:00
Eric Botcazou
a5163dcdac Link PR opt/8334 to its fix.
From-SVN: r60067
2002-12-12 10:59:45 +00:00
GCC Administrator
e588dc171f Daily bump.
From-SVN: r60066
2002-12-12 08:17:18 +00:00
Alexandre Oliva
852dff6156 mips.c (mips_output_conditional_branch): Support PIC-safe out-of-range branch and branch-likely.
* config/mips/mips.c (mips_output_conditional_branch): Support
PIC-safe out-of-range branch and branch-likely.
* config/mips/mips.md (attr length): PIC-safe out-of-range
branches are longer.
("jump"): Support PIC-safe out-of-range-for-branch jumps.  Remove
unused code to support indirect jumps.

From-SVN: r60058
2002-12-12 05:13:04 +00:00
John David Anglin
d6567b3adf pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
* pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
	(MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
	BIGGEST_ALIGNMENT.
	(PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
	(FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.

From-SVN: r60056
2002-12-12 02:44:02 +00:00
Kazu Hirata
355bd14f09 * doc/invoke.texi: Correct dump file names.
From-SVN: r60055
2002-12-12 02:07:46 +00:00
Steve Ellcey
9a3873b48f ia64.c (ia64_hpux_asm_file_end): Don't send stripped name to globalize_label or assemble_name.
* config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
	name to globalize_label or assemble_name.

From-SVN: r60046
2002-12-11 20:41:43 +00:00
J"orn Rennecke
9a4816af1e sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS if not TARGET_SHMEDIA.
* sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
	if not TARGET_SHMEDIA.

From-SVN: r60045
2002-12-11 20:16:27 +00:00
J"orn Rennecke
70a72ca423 sh.h (REG_CLASS_HAS_GENERAL_REG): New.
* sh.h (REG_CLASS_HAS_GENERAL_REG): New.
	(REGISTER_MOVE_COST): Use it.

From-SVN: r60041
2002-12-11 18:42:11 +00:00
Richard Henderson
5d5cd66f11 tree.h (MODULE_LOCAL_P): Kill.
* tree.h (MODULE_LOCAL_P): Kill.
        * varasm.c (default_binds_local_p_1): Use decl_visibility instead.

From-SVN: r60040
2002-12-11 10:28:26 -08:00
Kazu Hirata
68d0a3d279 * config/h8300/h8300.md (two define_peephole2): New.
From-SVN: r60036
2002-12-11 13:27:29 +00:00
Kazu Hirata
722d59a337 h8300.h (CONST_OK_FOR_J): Remove.
* config/h8300/h8300.h (CONST_OK_FOR_J): Remove.
	(CONST_OK_FOR_K): Likewise.
	(CONST_OK_FOR_M): Likewise.
	(CONST_OK_FOR_LETTER_P): Do not use the above macros.

From-SVN: r60035
2002-12-11 13:01:40 +00:00
GCC Administrator
3cc661ed29 Daily bump.
From-SVN: r60030
2002-12-11 08:17:16 +00:00
Neil Booth
b3a5a50c26 c-common.c (builtin_define_type_max): Handle unsigned types too.
* c-common.c (builtin_define_type_max): Handle unsigned
	types too.
testsuite:
	* gcc.dg/fshort-wchar: New test.

From-SVN: r60023
2002-12-11 06:36:17 +00:00
Mark Mitchell
d23faea18e re PR c++/8372 (ICE on explicit call of destructor)
PR c++/8372
	* pt.c (tsubst_copy): Handle destructor names more correctly.

	PR c++/8372
	* g++.dg/template/dtor1.C: New test.

From-SVN: r60015
2002-12-10 22:31:40 +00:00
Matt Austern
3932057ce9 * cp-tree.h: get rid of needs_virtual_reinit bit.
From-SVN: r60014
2002-12-10 21:53:49 +00:00
Janis Johnson
40d81ee46b re PR other/8882 (Error in the documentation "GNU Compiler Collection Internals")
2002-12-10  Janis Johnson  <janis187@us.ibm.com>

	PR other/8882
	* doc/tm.texi (PUSH_ARGS): Remove misplaced line.

From-SVN: r60011
2002-12-10 21:00:31 +00:00
Devang Patel
48aec0bcc6 Add support for darwin linker options.
* config/darwin.h(LINK_SPEC): Add darwin specific linker options.
	* doc/invoke.texi: Add new "Darwin Options" section.

From-SVN: r60010
2002-12-10 12:20:47 -08:00
Jim Wilson
0e9f8e8295 Fix PPC32 SVR4 ABI bug with 128-bit long double.
* rs6000.h (RETURN_IN_MEMORY): If ABI_V4, then TFmode is returned in
	memory.

From-SVN: r60006
2002-12-10 11:24:38 -08:00
Andrew Haley
3e25353ee7 cse.c (cse_insn): Don't cse past a basic block boundary.
2002-12-10  Andrew Haley  <aph@redhat.com>

	* cse.c (cse_insn): Don't cse past a basic block boundary.

From-SVN: r60000
2002-12-10 16:35:37 +00:00
Mark Mitchell
4fe1edca4d memconst.C: Use old-deja, not dg, error markers.
* g++.old-deja/g++.ext/memconst.C: Use old-deja, not dg, error
	markers.

From-SVN: r59997
2002-12-10 14:45:48 +00:00
Jakub Jelinek
801bb04d14 * g++.dg/parse/parameter-declaration-1.C: Expect error on last line.
From-SVN: r59994
2002-12-10 12:06:33 +01:00
Jakub Jelinek
17772b2a16 linux.h (LIB_SPEC): If -pthread, add -lpthread even if -shared.
* config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
	-shared.
	* config/alpha/linux-elf.h (LIB_SPEC): Likewise.
	* config/alpha/linux.h (LIB_SPEC): Likewise.
	* config/arm/linux-elf.h (LIB_SPEC): Likewise.
	* config/pa/pa-linux.h (LIB_SPEC): Likewise.
	* config/sparc/linux.h (LIB_SPEC): Likewise.
	* config/sparc/linux64.h (LIB_SPEC): Likewise.

From-SVN: r59992
2002-12-10 11:55:32 +01:00
GCC Administrator
db8a1d4a56 Daily bump.
From-SVN: r59990
2002-12-10 08:17:19 +00:00
Mark Mitchell
dcba9b0fab re PR c++/8153 (ICE with static const member in class)
PR c++/8153
	PR c++/8036
	* NEWS: Document removal of in-class initialization extension for
	static data members of non-arithmetic, non-enumeration type.
	* decl.c (check_static_variable_definition): Do not allow that
	extension.
	* decl2.c (grokfield): Do not call digest_init when processing
	templates.

	PR c++/8153
	PR c++/8036
	* g++.dg/template/static1.C: New test.
	* g++.dg/template/static2.C: New test.
	* g++.old-deja/g++.ext/memconst.C: New test.

From-SVN: r59980
2002-12-10 07:11:46 +00:00
Larin Hennessy
63358530f8 * doc/invoke.texi: Document UltraSparc III option.
From-SVN: r59977
2002-12-09 18:01:29 -08:00
Richard Henderson
2e37b0cee2 i386.h (TARGET_CPU_CPP_BUILTINS): Define __tune_pentium2__ and __tune_pentium3__ as necessary.
* config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
        __tune_pentium2__ and __tune_pentium3__ as necessary.

From-SVN: r59974
2002-12-09 16:56:36 -08:00
Richard Henderson
3a04ff6433 target.h (gcc_target): Add cannot_force_const_mem.
* target.h (gcc_target): Add cannot_force_const_mem.
        * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
        (TARGET_INITIALIZER): Add it.
        * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
        * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
        * reload1.c (reload): Likewise.
        * hooks.c (hook_bool_rtx_false): New.
        * hooks.h: Declare it.

        * config/i386/i386.c (ix86_cannot_force_const_mem): New.
        (TARGET_CANNOT_FORCE_CONST_MEM): New.
        (ix86_expand_move): Remove de-const-pooling hack.

	* gcc.dg/tls/opt-4.c: New.

From-SVN: r59971
2002-12-09 15:54:01 -08:00
Jan Hubicka
a9a4005fca * toplev.c (dump_file): Fix order to match reality.
From-SVN: r59968
2002-12-09 20:49:34 +00:00
Geoffrey Keating
7ef788f02f rs6000.md (load_multiple): Use adjust_address_nv.
* config/rs6000/rs6000.md (load_multiple): Use adjust_address_nv.
	(store_multiple): Likewise.

From-SVN: r59967
2002-12-09 19:59:17 +00:00
John David Anglin
3f320b7e63 fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize function pointers in page 0.
* pa/fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize
	function pointers in page 0.

From-SVN: r59964
2002-12-09 19:16:14 +00:00
Steve Ellcey
3870df966e hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove definition
* config/ia64/hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove
	definition
	(MEMBER_TYPE_FORCES_BLK): Move.
	* config/ia64/ia64.c (ia64_function_arg): Use PARALLEL to pass
	aggregate arguments.
	(ia64_function_value): Use PARALLEL to return aggregate values.

From-SVN: r59963
2002-12-09 18:07:58 +00:00
Steve Ellcey
9ac3e73b40 tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
* doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
	* defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
	* calls.c (store_unaligned_arguments_into_pseudos) Remove
	FUNCTION_ARG_REG_LITTLE_ENDIAN.
	* stmt.c (expand_return): Ditto.
	* expr.c (move_block_from_reg): Ditto.
	(copy_blkmode_from_reg): Ditto.
	* expmed.c (store_bit_field): Ditto.

From-SVN: r59962
2002-12-09 17:54:07 +00:00
GCC Administrator
e46af8eda8 Daily bump.
From-SVN: r59961
2002-12-09 08:17:22 +00:00
Svein E. Seldal
7f0db92aa6 config.sub: Import from master repository
* config.sub: Import from master repository
	* config.guess: Ditto
	* MAINTAINERS: Added Svein Seldal under write after approval
	* gcc/config.gcc: Added tic4x-* target as an alias to c4x-*

From-SVN: r59955
2002-12-09 08:10:20 +00:00
Kaveh R. Ghazi
da549e294b conpr-2.C: Expect failure on solaris2.
* g++.dg/special/conpr-2.C: Expect failure on solaris2.
	* g++.dg/special/ecos.exp (conpr-3.C): Likewise.
	* g++.dg/special/initp1.C: Likewise.

From-SVN: r59950
2002-12-09 00:47:30 +00:00
Jan Hubicka
37c66aa6ef i386.c (ix86_expand_int_movcc): Use force_operand instead of constructing insn directly.
* i386.c (ix86_expand_int_movcc):  Use force_operand instead of constructing
	insn directly.

From-SVN: r59937
2002-12-08 14:03:40 +00:00
GCC Administrator
e598cc3141 Daily bump.
From-SVN: r59935
2002-12-08 08:17:08 +00:00
Gabriel Dos Reis
29d4fdf2c3 New test.
From-SVN: r59920
2002-12-07 18:39:05 +00:00
GCC Administrator
f71d0a9529 Daily bump.
From-SVN: r59910
2002-12-07 08:17:27 +00:00
Kazu Hirata
2a598b3ac1 * config/h8300/h8300.md (*iorhi_shift_8): New.
From-SVN: r59904
2002-12-07 05:44:44 +00:00
Bernd Schmidt
840758d3aa Fix errors in last change
From-SVN: r59903
2002-12-07 02:31:34 +00:00
Bernd Schmidt
7089914828 FRV docs
From-SVN: r59901
2002-12-06 23:54:41 +00:00
Gerald Pfeifer
377dfc820f install.texi (Configuration): Improve description of cases where make distclean may fail...
* doc/install.texi (Configuration): Improve description of cases
	where `make distclean` may fail; clarify --with-gnu-as; fix grammar.

From-SVN: r59899
2002-12-06 23:32:52 +00:00
Dhananjay R. Deshpande
7144b2d89a sh.c (calc_live_regs): Save fpscr only if target has FPU.
2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>

	* gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
	FPU.
	(push): Generate push_fpscr.
	(pop): Generate pop_fpscr.
	* gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
	(fpu_switch): Add alternative to push fpscr.  Enable for TARGET_SH3E.

From-SVN: r59893
2002-12-06 20:10:50 +00:00
Ranjit Mathew
0cc1565af0 parse.y (source_end_java_method): Remove custom encoding of line numbers for a function decl before passing it to...
2002-12-05  Ranjit Mathew <rmathew@hotmail.com>
        Andrew Haley <aph@redhat.com>

        * parse.y (source_end_java_method): Remove custom encoding of line
        numbers for a function decl before passing it to the back end.

Co-Authored-By: Andrew Haley <aph@redhat.com>

From-SVN: r59892
2002-12-06 20:10:33 +00:00
J"orn Rennecke
aa06e8f5d2 sh.c (dump_table): DImode pool constants need only 32 bit alignment.
* sh.c (dump_table): DImode pool constants need only 32 bit alignment.
	DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.

From-SVN: r59891
2002-12-06 19:43:22 +00:00
J"orn Rennecke
0113c3c03e * sh.md (movdi_i): Name. Remove inappropriate comment.
From-SVN: r59890
2002-12-06 19:20:52 +00:00
J"orn Rennecke
8d6b008db4 backport: sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
Merged from basic improvements branch (excerpt):

	2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
	* config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.

From-SVN: r59889
2002-12-06 15:49:49 +00:00
GCC Administrator
cdb8f3ebe7 Daily bump.
From-SVN: r59887
2002-12-06 08:17:26 +00:00
Jakub Jelinek
61f6c84f21 expr.c (expand_expr): Never modify exp in place.
* expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.

	* gcc.c-torture/execute/20021204-1.c: New test.

From-SVN: r59881
2002-12-06 08:07:57 +01:00
John David Anglin
bf97847b37 pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
* pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
	* pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.

From-SVN: r59879
2002-12-06 02:54:38 +00:00
Dale Johannesen
1fcfaf375c tree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.
2002-12-05  Dale Johannesen  <dalej@apple.com>

        * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.

From-SVN: r59875
2002-12-06 00:08:11 +00:00
Danny Smith
1a823ac1fd cygwin.h (SUBTARGET_PROLOGUE): Replace with PROFILE_HOOK.
* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
	PROFILE_HOOK.
	* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.

From-SVN: r59874
2002-12-05 23:55:15 +00:00
Aldy Hernandez
747db47705 spe.h (__ev_mwlufi): Remove.
2002-12-05  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/spe.h (__ev_mwlufi): Remove.
	(__ev_mwlufia): Remove.
	(__ev_mwlumfaaw): Remove.
	(__ev_mwlusfaaw): Remove.
	(__ev_mwlumfanw): Remove.
	(__ev_mwlusfanw): Remove.

From-SVN: r59871
2002-12-05 23:02:19 +00:00
Kaveh R. Ghazi
42b99e0340 * error.c (dump_expr): Fix format specifier warning.
From-SVN: r59867
2002-12-05 22:20:51 +00:00
Kazu Hirata
94f09825cb * config/h8300/h8300.md (*andorsi3_shift_8): New.
From-SVN: r59860
2002-12-05 14:54:47 +00:00
Kazu Hirata
1e5bdc4095 h8300.c (shift_alg_si): Optimize ashift:HI and lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
* config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
	lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
	(get_shift_alg): Return optimal assembly instructions for the
	shifts mentioned above.

From-SVN: r59859
2002-12-05 13:19:16 +00:00
GCC Administrator
9148659d58 Daily bump.
From-SVN: r59854
2002-12-05 08:17:18 +00:00
Kazu Hirata
b6fd51f649 h8300.c (h8300_init_once): Do not use loop to implement ashiftrt:HI by 13 bits on H8S.
* config/h8300/h8300.c (h8300_init_once): Do not use loop to
	implement ashiftrt:HI by 13 bits on H8S.

From-SVN: r59845
2002-12-05 02:23:26 +00:00
John David Anglin
9e1ab8c1a5 fptr.c (__canonicalize_funcptr_for_compare): New file and function.
* pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
	* pa.md (canonicalize_funcptr_for_compare): Output library call to
	canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
	* pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
	CTOR_LIST_BEGIN): New defines.
	* pa/t-linux (LIB2FUNCS_EXTRA): New define.
	(fptr.c): Add make rules.

From-SVN: r59842
2002-12-05 01:57:27 +00:00
Geoffrey Keating
16823694d5 Index: gcc/ChangeLog
2002-12-02  Geoffrey Keating  <geoffk@apple.com>

	* combine.c (combine_simplify_rtx): Add new canonicalizations.
	* doc/md.texi (Insn Canonicalizations): Document new
	canonicalizations for multiply/add combinations.
	* config/rs6000/rs6000.md: Add and modify floating add/multiply
	patterns to ensure they're used whenever they can be.

Index: gcc/testsuite/ChangeLog
2002-12-02  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/ppc-fmadd-1.c: New file.
	* gcc.dg/ppc-fmadd-2.c: New file.
	* gcc.dg/ppc-fmadd-3.c: New file.

From-SVN: r59841
2002-12-05 01:05:13 +00:00
Kazu Hirata
5ec0b66e16 * config/h8300/h8300.c: Update the comments related to shifts.
From-SVN: r59836
2002-12-04 23:45:42 +00:00
Chris Demetriou
7fa9ed6593 mips.md (get_fnaddr): Correct length attribute.
2002-12-04  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (get_fnaddr): Correct length attribute.

From-SVN: r59833
2002-12-04 14:09:35 -08:00
Kazu Hirata
6bd6fd35db h8300.md (*extzv_8_8): New.
* config/h8300/h8300.md (*extzv_8_8): New.
	(*extzv_8_16): Likewise.

From-SVN: r59832
2002-12-04 21:01:54 +00:00
Geoffrey Keating
6c73ad72f8 class.c (finish_struct_1): Correct comment.
* class.c (finish_struct_1): Correct comment.
	* cp-tree.c (DECL_SORTED_FIELDS): Likewise.

From-SVN: r59828
2002-12-04 20:17:49 +00:00
Jason Merrill
c246c65d76 PR c++/8461, c++/8625
PR c++/8461, c++/8625
        * integrate.c (copy_decl_for_inlining): Handle explicit invisible
        references.
        * tree-inline.c (initialize_inlined_parameters): Likewise.

2002-12-03  Jason Merrill  <jason@redhat.com>

        PR c++/8461, c++/8625
        * call.c (convert_for_arg_passing): Don't mess with error_mark_node.
        (cp_convert_parm_for_inlining): Remove.
        * cp-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
        Remove.
        * cp-tree.h (ADDR_IS_INVISIREF): Remove.
        * except.c (stabilize_throw_expr): Remove ADDR_IS_INVISIREF code.

From-SVN: r59827
2002-12-04 15:13:01 -05:00
Chris Demetriou
ae598ab989 mips.md (get_fnaddr): Avoid placing an "la" macro instruction in a branch delay slot...
2002-12-04  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
        macro instruction in a branch delay slot, to avoid assembler
        warnings.

From-SVN: r59825
2002-12-04 11:39:57 -08:00
Eric Botcazou
d61fd3f12a * gcc.c-torture/compile/20021204-1.c: New test.
From-SVN: r59818
2002-12-04 15:06:23 +00:00
Eric Botcazou
a9b6f1e712 re PR c/7622 (tree inliner fallout (regression relative to 2.95))
PR c/7622
	* c-semantics (genrtl_scope_stmt): Do not output inlined
	nested functions that contain no code.

From-SVN: r59817
2002-12-04 14:58:19 +00:00
Jan Hubicka
a3716585f6 cfgrtl.c (force_nonfallthru_and_redirect): Allow abnormal edge to be forced into nonfallthru.
* cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
	to be forced into nonfallthru.

From-SVN: r59816
2002-12-04 14:21:58 +00:00
Gabriel Dos Reis
8c048a52a4 re PR c++/8799 (ICE: Error reporting routines re-entered.)
PR C++/8799
        * error.c (dump_expr): Don't ever try to dump a non-existent
        expression.

From-SVN: r59814
2002-12-04 11:32:14 +00:00
GCC Administrator
33602aec45 Daily bump.
From-SVN: r59807
2002-12-04 08:17:32 +00:00
Jason Thorpe
44924a365e * config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
From-SVN: r59795
2002-12-04 01:33:38 +00:00
Aldy Hernandez
3678a93e2f spe.md (*movv1di_const0): New pattern.
2002-12-03  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.md (*movv1di_const0): New pattern.

From-SVN: r59791
2002-12-03 23:41:32 +00:00
Richard Henderson
6e1be6b19c * libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
From-SVN: r59784
2002-12-03 14:04:22 -08:00
Hans-Peter Nilsson
c47eb51bbf bitmap.c (bitmap_ior_and_compl, [...]): Initialize tmp.using_obstack to 0.
* bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
	Initialize tmp.using_obstack to 0.

From-SVN: r59782
2002-12-03 21:00:16 +00:00
Andreas Schwab
2cff4a6e82 m68k.h (EH_RETURN_DATA_REGNO): Define.
* config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
	(EH_RETURN_STACKADJ_RTX): Define.
	(EH_RETURN_HANDLER_RTX): Define.
	(ASM_PREFERRED_EH_DATA_FORMAT): Define.
	* config/m68k/m68k.c (m68k_save_reg): New function.  Handle eh
	registers and don't save fixed registers.
	(m68k_output_function_prologue): Use it.
	(use_return_insn): Likewise.
	(m68k_output_function_epilogue): Likewise.

From-SVN: r59780
2002-12-03 19:45:30 +00:00
Jason Merrill
c203334d6d call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on an ambiguous conversion.
* call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on
        an ambiguous conversion.

From-SVN: r59775
2002-12-03 12:29:43 -05:00
Kazu Hirata
491a977722 h8300.c (single_one_operand): Fix a warning.
* config/h8300/h8300.c (single_one_operand): Fix a warning.
	(single_zero_operand): Likewise.

From-SVN: r59772
2002-12-03 14:36:41 +00:00
Andrew Haley
421f9e6091 natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.
2002-12-03  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
	_Jv_PushClass.
        (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL.
        (_Jv_PopClass): New.
        (_Jv_PushClass): New.
        * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to
        discover the ClassLoader of our caller.
        (_Jv_CheckArrayStore): Don't check that a class is assignment
        compatible with Object.
        * java/lang/natVMTHrowable.cc: Delete.
        * gnu/gcj/runtime/StackTrace.java: New, partly copied from
	java.lang.VMThrowable.
        (StackTrace(), StackTrace(int)): New constructors.
        (classAt, methodAt, update, methodAtAddress): New methods.
        (map): New field.
	* java/lang/VMThrowable.java: Use StackTrace instead of
	natVMTHrowable.
	* java/lang/Class.h (getClassLoaderInternal): New.
        (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass.
        Be friendly with gnu::gcj::runtime::StackTrace.
        (Object.chain): New field.
        * include/java-interp.h (class _Jv_InterpMethod): Be friendly with
        gnu::gcj::runtime::StackTrace.
        * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal()
        instead of getClassLoader().
        * verify.cc (class _Jv_BytecodeVerifier): Likewise.
        java::lang::VMThrowable.
        * Makefile.am (core_java_source_files): Add MethodRef.java,
	StackTrace.java.
        (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc.
        * Makefile.in: Rebuild.

2002-12-03  Andrew Haley  <aph@redhat.com>

	* class.c (make_class_data): New field, "chain".
	* decl.c (java_init_decl_processing): Likewise.

From-SVN: r59769
2002-12-03 13:50:05 +00:00
Mark Mitchell
ee7ecb2924 re PR c++/8688 (ICE with segfault on missing comma in initializer of 2D array.)
PR c++/8688
	* decl.c (reshape_init): Handle erroneous initializers.

	PR c++/8688
	* g++.dg/init/brace3.C: New test.

From-SVN: r59768
2002-12-03 09:05:36 +00:00
GCC Administrator
67f05dcb2c Daily bump.
From-SVN: r59766
2002-12-03 08:17:12 +00:00
Mark Mitchell
5089de9338 re PR c++/8720 (ICE with bitwise or (3 operands))
PR c++/8720
	* spew.c (remove_last_token): Make sure that last_chunk is set
	correctly.

	PR c++/8615
	* error.c (dump_expr): Handle character constants with
	TREE_OVERFLOW set.

	PR c++/8720
	* g++.dg/parse/defarg1.C: New test.

	PR c++/8615
	* g++.dg/template/char1.C: New test.

From-SVN: r59757
2002-12-03 06:52:25 +00:00
Kazu Hirata
e8a68017b0 h8300.c (dosize): Replace argument op with sign.
* config/h8300/h8300.c (dosize): Replace argument op with
	sign.
	(h8300_output_function_prologue): Update the call to dosize.
	(h8300_output_function_epilogue): Likewise.

From-SVN: r59746
2002-12-02 22:22:05 +00:00
Bob Wilson
834572b852 * config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
From-SVN: r59740
2002-12-02 21:24:44 +00:00
Kazu Hirata
b11b0178aa * gcc.dg/20020210-1.c: Fix a comment typo.
From-SVN: r59736
2002-12-02 20:28:38 +00:00
Craig Rodrigues
9118405f7a configure.in: Use "missing" script to generate warning if flex or bison programs not found...
* configure.in: Use "missing" script to generate warning if
flex or bison programs not found, instead of invoking "false".
* configure: Rebuilt.

From-SVN: r59735
2002-12-02 15:22:14 -05:00
Mark Mitchell
2e18515557 * g++.dg/template/varmod1.C: Fix typo.
From-SVN: r59733
2002-12-02 19:44:13 +00:00
Jan Hubicka
4ff38cd53f * unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
From-SVN: r59732
2002-12-02 19:29:45 +00:00
Tom Tromey
6b55b27fb9 For PR java/8740:
* parse.y (do_resolve_class): Handle qualified name via
	recursion.

From-SVN: r59728
2002-12-02 19:04:14 +00:00
Jan Hubicka
adc72fa6ce * i386.c (ix86_expand_int_movcc): Avoid overflow.
From-SVN: r59724
2002-12-02 18:44:05 +00:00
Kriang Lerdsuwanakij
218e0eb6d3 DR 180
DR 180
	* decl.c (grokdeclarator): Require class-key for all friend class.
	Output the correct type and context in the error message.

	* g++.old-deja/g++.pt/crash32.C: Expect error.

From-SVN: r59719
2002-12-02 17:03:13 +00:00
Kazu Hirata
513f31eb68 h8300.c (dosize): Output r7/er7 instead of sp.
* config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
	(push): Likewise.
	(pop): Likewise.
	(h8300_output_function_prologue): Likewise.
	(h8300_output_function_epilogue): Likewise.

From-SVN: r59718
2002-12-02 16:54:14 +00:00
J"orn Rennecke
7ffc9761ca expmed.c (store_bit_field): Use int_mode_for_mode to find corresponding mode of non-integer mode...
* expmed.c (store_bit_field): Use int_mode_for_mode to find
	corresponding mode of non-integer mode, unless it is VOIDmode.

From-SVN: r59716
2002-12-02 14:44:17 +00:00
Kazu Hirata
0a2a0a583e h8300.md (stm_h8300s_2): New.
* config/h8300/h8300.md (stm_h8300s_2): New.
	(stm_h8300s_3): Likewise.
	(stm_h8300s_4): Likewise.
	(five define_peephole2): Likewise.

From-SVN: r59715
2002-12-02 14:24:11 +00:00
GCC Administrator
54806c1855 Daily bump.
From-SVN: r59712
2002-12-02 08:17:22 +00:00
Kazu Hirata
28432d9f64 * ra-build.c: Fix a comment typo.
From-SVN: r59705
2002-12-02 05:12:53 +00:00
Kazu Hirata
e651d484e1 h8300.c (h8300_output_function_prologue): Remove variable idx.
* config/h8300/h8300.c (h8300_output_function_prologue):
	Remove variable idx.
	(h8300_output_function_epilogue): Likewise.

From-SVN: r59703
2002-12-02 02:02:43 +00:00
Mark Mitchell
94fc547cec re PR c++/5919 (ICE when passing variable array to template function)
PR c++/5919
	* g++.dg/template/varmod1.C: New test.

	PR c++/5919
	* pt.c (unify): Use variably_modified_type_p to test validity of
	template argument types.

From-SVN: r59698
2002-12-01 20:46:08 +00:00
Mark Mitchell
a82d6da5fc re PR c++/8727 (compiler confused by inheritance from an anonymous struct)
PR c++/8727
	* g++.dg/inherit/typeinfo1.C: New test.

	PR c++/8663
	* g++.dg/inherit/typedef1.C: New test.

	PR c++/8727
	* cp-tree.h (lang_type_class): Add typeinfo_var.
	(CLASSTYPE_TYPEINFO_VAR): New macro.
	* rtti.c (get_tinfo_decl): Use it.

	PR c++/8663
	* init.c (expand_member_init): Always get the main variant of a
	base class.

From-SVN: r59694
2002-12-01 20:27:37 +00:00
Zack Weinberg
558bb2c45e * config/frv/xm-frv.h: Delete, unnecessary.
From-SVN: r59693
2002-12-01 19:16:12 +00:00
Kazu Hirata
96cc06af6f * config/h8300/h8300.md: Add comments for define_peephole2.
From-SVN: r59690
2002-12-01 18:04:06 +00:00
Mark Mitchell
c9f8536c5d re PR c++/8332 (strlen/template interaction causes ICE)
PR c++/8332
	PR c++/8493
	* decl.c (cxx_init_decl_processing): Use size_type_node, not
	c_size_type_node.
	* decl2.c (coerce_new_type): Likewise.
	* except.c (do_allocate_exception): Likewise.

	* builtin-types.def (BT_SIZE): Use size_type_node.
	* builtins.c (fold_builtin): Make the builtin strlen returns a
	size_t, not a sizetype.
	* c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
	c_size_type_node.
	(c_alignof_expr): Likewise.
	(c_common_nodes_and_builtins): Likewise.
	* c-common.h (CTI_C_SIZE_TYPE): Remove.
	(c_size_type_node): Likewise.
	* c-format.c (T_ST): Use size_type_node, not c_size_type_node.
	* tree.h (TI_SIZE_TYPE): New enumeral.
	(size_type_node): Likewise.

	PR c++/8332
	PR c++/8493
	* g++.dg/template/strlen1.C: New test.

From-SVN: r59689
2002-12-01 17:51:51 +00:00
Zack Weinberg
335c9de73b Revert change accidentally applied to wrong branch
From-SVN: r59688
2002-12-01 17:32:33 +00:00
GCC Administrator
a46ad9b0fb Daily bump.
From-SVN: r59679
2002-12-01 08:17:11 +00:00
Zack Weinberg
1886c47420 i * configure.in: Don't put ${tm_file} into host_xm_file,
build_xm_file, or xm_file.  Do put tm-preds.h into tm_p_file.
	Take location of tm-preds.h into account when calculating
	tm_p_file_list.
	* configure: Regenerate.
	* mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
	arguments.  Do not provide rtx, rtvec, tree, or GTY here.
	Remove special case code for tm_p.h and *config.h; add new
	special case code for tm.h and tconfig.h. Clean up a bit.

	* Makefile.in (tm_file, tm_file_list): New variables set from
	@-substitutions.
	(GCONFIG_H): Deleted.
	(GTM_H, TM_H): New.
	(CONFIG_H): Is now just config.h $(host_xm_file_list).
	(TM_P_H): Move up with the other mkconfig.sh-generated
	headers; don't mention tm-preds.h explicitly.
	(tm.h, cs-tm.h): New rule.
	(cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
	invocations of mkconfig.sh for changes to that program.
	(mostlyclean): Delete print-rtl1.c.
	(clean): Delete tm.h.
	* Makefile.in, ada/Make-lang.in, cp/Make-lang.in,
	f/Make-lang.in, java/Make-lang.in, objc/Make-lang.in,
	treelang/Make-lang.in: Update dependencies for the files
	listed below.
	* mklibgcc.in:  Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.

	* coretypes.h: New file.
	* system.h: #define malloc to xmalloc and realloc to xrealloc
	when FLEX_SCANNER or YYBISON is defined, independent of the
	value of GCC_VERSION.
	* alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
	c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
	c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
	c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
	c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
	cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
	cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
	cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
	cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
	cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
	debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
	dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
	emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
	expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
	function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
	gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
	gencheck.c, gencodes.c, genconditions.c, genconfig.c,
	genconstants.c, genemit.c, genextract.c, genflags.c,
	gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
	genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
	gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
	ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
	hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
	lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
	main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
	optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
	print-tree.c, profile.c, protoize.c, ra-build.c,
	ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
	real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
	regrename.c, reload.c, reload1.c, reorg.c, resource.c,
	rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
	scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
	sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
	ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
	tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
	tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
	xcoffout.c, config/darwin-c.c, config/darwin.c,
	config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
	config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
	config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
	config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
	config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
	config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
	config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
	config/i960/i960-c.c, config/i960/i960.c,
	config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
	config/m32r/m32r.c, config/m68hc11/m68hc11.c,
	config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
	config/mips/irix6-libc-compat.c, config/mips/mips.c,
	config/mmix/mmix.c, config/mn10200/mn10200.c,
	config/mn10300/mn10300.c, config/ns32k/ns32k.c,
	config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
	config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
	config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
	config/sparc/sparc.c, config/stormy16/stormy16.c,
	config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
	config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
	Include coretypes.h and tm.h.

	* genattrtab.c, genconditions.c, genemit.c, genextract.c,
	gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
	genrecog.c: Include coretypes.h and tm.h from the file
	generated by this program.

	* unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
	unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
	coretypes.h and tm.h, and tsystem.h when not already included.
	No need to include stddef.h nor stdlib.h.

	* ada/cuintp.c, ada/decl.c, ada/deftarg.c, ada/misc.c,
	ada/targtyps.c, ada/trans.c, ada/utils.c, ada/utils2.c:
	Include coretypes.h and tm.h, and system.h when not already
	included.

	* cp/call.c, cp/class.c, cp/cp-lang.c, cp/cvt.c, cp/cxxfilt.c,
	cp/decl.c, cp/decl2.c, cp/dump.c, cp/error.c, cp/except.c,
	cp/expr.c, cp/friend.c, cp/g++spec.c, cp/init.c, cp/lex.c,
	cp/mangle.c, cp/method.c, cp/optimize.c, cp/parse.y, cp/pt.c,
	cp/ptree.c, cp/repo.c, cp/rtti.c, cp/search.c, cp/semantics.c,
	cp/spew.c, cp/tree.c, cp/typeck.c, cp/typeck2.c:
	Include coretypes.h and tm.h.

	* f/proj.h, f/ansify.c, f/g77spec.c, f/intdoc.c:
	Include coretypes.h and tm.h.

	* fixinc/fixlib.h: Include coretypes.h and tm.h.  Do not
	include auto-host.h or ansidecl.h/
	* fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
	* fixinc/procopen.c: Include server.h after fixlib.h.  Do not
	include auto-host.h, ansidecl.h, or system.h.
	* fixinc/server.c: Likewise.  Also, do not include signal.h,
	and do not redefine volatile.

	* java/boehm.c, java/buffer.c, java/builtins.c,
	java/check-init.c, java/class.c, java/constants.c,
	java/decl.c, java/except.c, java/expr.c, java/gjavah.c,
	java/jcf-depend.c, java/jcf-dump.c, java/jcf-io.c,
	java/jcf-parse.c, java/jcf-path.c, java/jcf-write.c,
	java/jv-scan.c, java/jvgenmain.c, java/jvspec.c, java/lang.c,
	java/mangle.c, java/mangle_name.c, java/parse-scan.y,
	java/parse.y, java/typeck.c, java/verify.c, java/xref.c,
	java/zextract.c: Include coretypes.h and tm.h.

	* treelang/lex.l: Move "%{" below copyright notice; get rid of
	"/*" embedded in comment.  Do not #undef IN_GCC; do not
	include stdio.h, memory.h, or ansidecl.h; do not include
	config.h twice.  Do include coretypes.h and tm.h.
	* treelang/parse.y: Do not #undef IN_GCC, provide bogus
	definitions of tree and rtx typedefs, or include stdio.h,
	stdlib.h, string.h, or ansidecl.h. Do include coretypes.h and
	tm.h.
	* treelang/tree1.c: Do not include ansidecl.h, stdlib.h,
	unistd.h, ctype.h, stdarg.h, string.h, or stdio.h.  Do include
	coretypes.h and tm.h.
	* treelang/treetree.c: Do not include stdlib.h, unistd.h,
	safe-ctype.h, errno.h. stdarg.h, limits.h, string.h, fcntl.h,
	getopt.h. stdio.h, or ansidecl.h.  Do include coretypes.h and
	tm.h.

[[Split portion of a mixed commit.]]

From-SVN: r59673.2
2002-12-01 05:43:14 +00:00
Mark Mitchell
328de7c2f1 re PR c++/8227 (g++ 3.3: ctors not called in static array initialization)
PR c++/8227
	* decl.c (layout_var_decl): Deal gracefully with erroneous types.
	(check_initializer): Validate the type of the initialized
	variable, even if the initializer is absent.
	* typeck.c (cp_type_quals): Deal gracefully with erroneous types.

	PR c++/8227
	* g++.dg/template/ctor2.C: New test.

From-SVN: r59672
2002-12-01 04:55:20 +00:00
John David Anglin
f6318a2baf cfg.c (dump_flow_info): Use max_reg_num () to determine the largest pseudo register number plus 1.
* cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
	pseudo register number plus 1.

From-SVN: r59669
2002-12-01 03:52:04 +00:00
Mark Mitchell
c17707f1d1 re PR c++/8214 (character conversion problem)
PR c++/8214
	* g++.dg/init/string1.C: New test.

	PR c++/8214
	* typeck.c (convert_for_assignment): Do not use
	decl_constant_value on the operand.

From-SVN: r59668
2002-12-01 02:11:05 +00:00
Mark Mitchell
65f8b0fbaf re PR c++/8511 ((hopefully) reproducible cc1plus SIGSEGV.)
PR c++/8511
	* pt.c (instantiate_decl): Handle template friends defined outside
	of the class correctly.

	PR c++/8511
	* g++.dg/template/friend8.C: New test.

From-SVN: r59665
2002-11-30 21:57:32 +00:00
GCC Administrator
acb45e09fe Daily bump.
From-SVN: r59657
2002-11-30 08:17:11 +00:00
Hans-Peter Nilsson
2402645b4d cpplib.c (_cpp_test_assertion): Default *value to 0.
* cpplib.c (_cpp_test_assertion): Default *value to 0.

	* cppexp.c (num_part_mul): Initialize result.unsignedp, to 1.

From-SVN: r59648
2002-11-29 22:41:04 +00:00
Joe Buck
f6a83eb0a7 anon2.C: New test.
* g++.dg/lookup/anon2.C: New test.

	* parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
	anonymous structs.

From-SVN: r59647
2002-11-29 22:08:36 +00:00
Mark Mitchell
ff944b4986 class.c (walk_subobject_offsets): Recur on binfos as well as on types.
* class.c (walk_subobject_offsets): Recur on binfos as well as on
	types.
	(layout_nonempty_base_or_field): Pass it a binfo when processing a
	base class.
	(layout_empty_base): Likewise.
	(build_base_field): Likewise.

From-SVN: r59643
2002-11-29 21:17:05 +00:00
Ulrich Weigand
8ef34c0df0 t-crtstuff: New target makefile fragment.
* config/s390/t-crtstuff: New target makefile fragment.
	* config.gcc [s390-*-linux, s390x-*-linux]: Use it.

From-SVN: r59641
2002-11-29 19:59:25 +00:00
Kazu Hirata
b8bbda910a h8300.md (movsi_h8300hs): Change the order of alternatives to correct the length when...
* config/h8300/h8300.md (movsi_h8300hs): Change the order of
	alternatives to correct the length when the memory operand is
	either pre_dec or post_inc.

From-SVN: r59637
2002-11-29 16:24:58 +00:00
Kazu Hirata
d23dff51b2 h8300.md (an anonymous pattern): Give an internal name *tst_extzv_bitqi_1_n.
* config/h8300/h8300.md (an anonymous pattern): Give an
	internal name *tst_extzv_bitqi_1_n.
	Accept bit_operand instead of bit_memory_operand.
	Do not accept bit tests with the MSB.
	(*tst_extzv_memqi_1_n): New.

From-SVN: r59636
2002-11-29 16:10:21 +00:00
GCC Administrator
45596747ca Daily bump.
From-SVN: r59631
2002-11-29 08:17:51 +00:00
Kazu Hirata
3f7211f19e h8300.c (h8300_eightbit_constant_address_p): Fix a comment typo.
* config/h8300/h8300.c (h8300_eightbit_constant_address_p):
	Fix a comment typo.
	(h8300_tiny_constant_address_p): Likewise.

From-SVN: r59623
2002-11-29 02:15:52 +00:00
Michael Matz
fcb204cecf * doc/passes.texi: Mention the other register allocator.
From-SVN: r59615
2002-11-28 20:53:45 +00:00
Kazu Hirata
7957fde4e8 * config/h8300/h8300.md (6 new peephole2 patterns): New.
From-SVN: r59611
2002-11-28 18:02:46 +00:00
Kazu Hirata
e7c79ef9c9 strct-varg-1.x: Remove xfail on the h8300 port.
* gcc.c-torture/execute/strct-varg-1.x: Remove xfail on the
	h8300 port.

From-SVN: r59610
2002-11-28 17:41:12 +00:00
Jakub Jelinek
17c04c5eb2 config.gcc (x86_64-*-linux*): Remove i386/t-crtstuff.
* config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
	* config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
	* config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.

From-SVN: r59607
2002-11-28 15:47:02 +01:00
Kazu Hirata
73cc75e983 h8300.c (h8300_and_costs): New.
* config/h8300/h8300.c (h8300_and_costs): New.
	* config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
	* config/h8300/h8300-protos.h: Add a prototype for
	h8300_and_costs.

From-SVN: r59606
2002-11-28 14:08:34 +00:00
GCC Administrator
bcfb713a6f Daily bump.
From-SVN: r59603
2002-11-28 08:17:17 +00:00
Zack Weinberg
0dbc3651e1 rs6000.c (altivec_init_builtins): Make the pointer argument in the prototypes of the following builtins be (const...
* config/rs6000/rs6000.c (altivec_init_builtins): Make the
	pointer argument in the prototypes of the following builtins
	be (const TYPE *) rather than (TYPE *):
	 + __builtin_altivec_ld_internal_4sf
	 + __builtin_altivec_ld_internal_4si
	 + __builtin_altivec_ld_internal_8hi
	 + __builtin_altivec_ld_internal_16qi
	 + __builtin_altivec_lvsl
	 + __builtin_altivec_lvsr
	 + __builtin_altivec_lvebx
	 + __builtin_altivec_lvehx
	 + __builtin_altivec_lvewx
	 + __builtin_altivec_lvxl
	 + __builtin_altivec_lvx
	 + __builtin_altivec_dst
	 + __builtin_altivec_dstt
	 + __builtin_altivec_dstst
	 + __builtin_altivec_dststt

From-SVN: r59596
2002-11-28 05:29:12 +00:00
Kaveh R. Ghazi
d1aed877ee * decl.c (java_init_decl_processing): Use `LL' on 64-bit constant.
From-SVN: r59594
2002-11-28 02:12:01 +00:00
Kaveh R. Ghazi
fe3f9515cb except.c (default_exception_section): Move variable into the scope where it is used.
* except.c (default_exception_section): Move variable into the
	scope where it is used.

From-SVN: r59593
2002-11-28 02:10:46 +00:00
Krister Walfridsson
4e85eadab7 config.gcc (*-*-netbsd[2-9]*, [...]): Test for correct version.
2002-11-27  Krister Walfridsson  <cato@df.lth.se>

	* config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
	correct version.

From-SVN: r59592
2002-11-28 00:09:54 +00:00
Kazu Hirata
f248423aa2 * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
From-SVN: r59591
2002-11-27 22:41:36 +00:00
Kazu Hirata
ae5570023f h8300.c (h8300_shift_costs): New.
* config/h8300/h8300.c (h8300_shift_costs): New.
	* config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
	* config/h8300/h8300-protos.h: Add a prototype for
	h8300_shift_costs.

From-SVN: r59588
2002-11-27 22:21:11 +00:00
David Edelsohn
ebe637e3c2 - Fix typo in rs6000_output_load_multiple commit.
From-SVN: r59587
2002-11-27 17:14:14 -05:00
Jim Wilson
c9b93e1a32 spe.md (spu_evsplatfi, [...]): Swap operands in output template.
2002-11-22  Jim Wilson  <wilson@redhat.com>

        * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
        in output template.

From-SVN: r59584
2002-11-27 20:58:37 +00:00
Mark Mitchell
21b3d0ba2b class.c (build_base_field): Make sure we get the canonical base when descending through primary bases.
* class.c (build_base_field): Make sure we get the canonical base
	when descending through primary bases.

From-SVN: r59582
2002-11-27 20:44:16 +00:00
Casper S. Hornstrup
249e6b636b i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
* config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
        * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
        DLL_IMPORT_EXPORT_PREFIX, not '@'.
        (i386_pe_dllimport_name_p): Likewise.
        (i386_pe_mark_dllexport): Likewise.
        (i386_pe_mark_dllimport): Likewise.
        (i386_pe_encode_section_info): Likewise.
        (i386_pe_strip_name_encoding): Likewise.

From-SVN: r59580
2002-11-27 12:04:16 -08:00
Richard Henderson
5a5c00af7d mkmap-symver.awk (BEGIN): Set sawsymbol false.
* mkmap-symver.awk (BEGIN): Set sawsymbol false.
        (nm && NF == 3): Set sawsymbol true.
        (END): Exit if no symbols seen.
        (output): Fix map syntax error if no globals for the version.

From-SVN: r59578
2002-11-27 12:00:14 -08:00
Richard Sandiford
6331370066 * gcc.dg/bitfld-6.c: New test.
From-SVN: r59573
2002-11-27 15:17:31 +00:00
Jan Hubicka
1dc46545cb * builtins.def (DEF_C99_BUILTIN): Fix.
From-SVN: r59571
2002-11-27 13:49:33 +00:00
Andrew Haley
5154b05d15 unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename from_Unwind_Find_Enclosing_Function.
2002-11-26  Andrew Haley  <aph@redhat.com>

        * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
        from_Unwind_Find_Enclosing_Function.
        * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
        * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
        * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
        _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
        * unwind.h (_Unwind_FindEnclosingFunction): Add.

From-SVN: r59568
2002-11-27 10:33:56 +00:00
GCC Administrator
a916a6c019 Daily bump.
From-SVN: r59567
2002-11-27 08:18:24 +00:00
Hartmut Penner
0f942cae3b s390.c (390_output_constant_pool): Set alignment before label in 64 bit mode, behind otherwise.
* config/s390/s390.c (390_output_constant_pool): Set alignment
         before label in 64 bit mode, behind otherwise.

From-SVN: r59561
2002-11-27 07:18:20 +00:00
Richard Henderson
d5c4db1738 c-common.c (handle_visibility_attribute): Accept "default".
* c-common.c (handle_visibility_attribute): Accept "default".
	* tree.h (enum symbol_visibility): New.
	(decl_visibility): Declare.
	* target.h (gcc_target.visibility): Take visibility arg as integer.
	* varasm.c (default_assemble_visibility): Likewise.
	(decl_visibility): New.
	(maybe_assemble_visibility): Use it.
	* output.h (default_assemble_visibility): Update prototype.
	* config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
	visibility arg as integer.
	* doc/extend.texi: Document default visibility.

From-SVN: r59560
2002-11-26 22:32:13 -08:00
Richard Henderson
25fdb4dc97 c-common.c (handle_visibility_attribute): Accept "default".
* c-common.c (handle_visibility_attribute): Accept "default".
	* tree.h (enum symbol_visibility): New.
	(decl_visibility): Declare.
	* target.h (gcc_target.visibility): Take visibility arg as integer.
	* varasm.c (default_assemble_visibility): Likewise.
	(decl_visibility): New.
	(maybe_assemble_visibility): Use it.
	* output.h (default_assemble_visibility): Update prototype.
	* config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
	visibility arg as integer.

From-SVN: r59559
2002-11-26 22:13:23 -08:00
Kazu Hirata
920e86b8da h8300.c: Adjust spacing.
* config/h8300/h8300.c: Adjust spacing.
	* config/h8300/h8300.h: Likewise.

From-SVN: r59557
2002-11-27 03:46:50 +00:00
Richard Henderson
7b1bd3c534 hooks.c (hook_bool_void_false, [...]): Rename so that the return type is first.
* hooks.c (hook_bool_void_false, hook_void_tree_int,
        hook_void_FILEptr_constcharptr): Rename so that the return
        type is first.
        (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
        hook_bool_tree_false): New.
        * hooks.h: Update.
        * langhooks-def.h: Update for renames.
        * target-def.h: Likewise.
        * tree.c (default_comp_type_attributes,
        default_set_default_type_attributes, default_insert_attributes,
        default_function_attribute_inlinable_p,
        default_ms_bitfield_layout_p): Remove.
        * tree.h: Update.

From-SVN: r59556
2002-11-26 18:47:44 -08:00
John David Anglin
44571d6e46 pa-protos.h (function_value): New prototype.
* pa-protos.h (function_value): New prototype.
	* pa.c (function_value): Use a PARALLEL to return small aggregates on
	TARGET_64BIT.
	* pa.h (FUNCTION_VALUE): Use function_value.
	* pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
	call_value_internal_reg, sibcall_value_internal_symref,
	sibcall_value_internal_symref_64bit): Remove =rf constraint on return
	value.

From-SVN: r59555
2002-11-27 02:34:15 +00:00
John David Anglin
084a11066f expr.c (gen_group_rtx, [...]): New functions.
* expr.c (gen_group_rtx, emit_group_move): New functions.
	* expr.h (gen_group_rtx, emit_group_move): Prototype.
	* function.c (expand_function_start): Use gen_group_rtx to create a
	PARALLEL rtx to hold the return value when the real return rtx is a
	PARALLEL.
	(expand_function_end): Use emit_group_move to move the return value
	from a PARALLEL to the real return registers.
	* rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
	in PARALLELs.

From-SVN: r59554
2002-11-27 02:29:12 +00:00
Geoffrey Keating
a16f235752 Index: cp/ChangeLog
2002-11-26  Geoffrey Keating  <geoffk@apple.com>

	* decl.c (check_initializer): Don't error on initialisation of
	a scalar with a brace-enclosed expression.

Index: testsuite/ChangeLog
2002-11-26  Geoffrey Keating  <geoffk@apple.com>

	* g++.dg/init/brace2.C: New test.
	* g++.old-deja/g++.mike/p9129.C: Correct.

From-SVN: r59553
2002-11-27 01:59:43 +00:00
Jason Thorpe
5d2fe49338 * config/t-libc-ok: Fix typo.
From-SVN: r59545
2002-11-26 22:47:18 +00:00
Jakub Jelinek
13c22933ff configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back before AC_PROG_CC.
* configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
	before AC_PROG_CC.
	* configure: Rebuilt.

From-SVN: r59532
2002-11-26 21:08:08 +01:00
Mark Mitchell
6b5aa5d056 * g++.dg/abi/empty10.C: Don't run on non-x86 targets.
From-SVN: r59529
2002-11-26 19:37:45 +00:00
Nathan Sidwell
688f66887f cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
* cp-tree.h (DECL_LANG_FLAG_4): Document more uses.
	(template_parms_equal): Remove prototype.
	* typeck.c (buuld_indirect_ref): Reformat.

From-SVN: r59528
2002-11-26 17:40:56 +00:00
Nathan Sidwell
5326cd3d22 * c-decl.c: (start_struct): Commonize flag setting.
From-SVN: r59527
2002-11-26 17:36:14 +00:00
Hartmut Penner
0412a4d4d7 Mention all function changed.
From-SVN: r59519
2002-11-26 15:50:51 +00:00
Jason Thorpe
647d340d4b rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
* config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
RS6000_CPU_CPP_ENDIAN_BUILTINS.
* config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.

From-SVN: r59518
2002-11-26 15:46:40 +00:00
Hartmut Penner
29742ba4f4 s390.md (literal_pool_64, [...]): New insns.
* config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
	insns.
	* config/s390/s390.c (struct machine_function): Introduction of
	struct machine_function.
	* config/s390/s390-protos.h (s390_output_constant_pool): Changed
	prototype.

From-SVN: r59515
2002-11-26 15:26:40 +00:00
Jakub Jelinek
f411159305 varasm.c (output_constant_pool): For pool constants in mergeable section ensure each constant is padded to...
* varasm.c (output_constant_pool): For pool constants in mergeable
	section ensure each constant is padded to multiple of entity size.

From-SVN: r59508
2002-11-26 13:36:09 +01:00
Jakub Jelinek
96d0f4dc5c varasm.c (default_exception_section): Move to...
* varasm.c (default_exception_section): Move to...
	* except.c (default_exception_section): ... here. Make
	.gcc_except_table read-only if it is not expected to have any
	dynamic relocations and linker handles it.
	* dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
	if it is not expected to have any dynamic relocations and linker
	handles it.
	* configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
	when linking read-only and read-write sections together.
	* configure, config.in: Rebuilt.
	* crtstuff.c (EH_FRAME_SECTION_CONST): Define.
	(__EH_FRAME_BEGIN__, __FRAME_END__): Add it.

From-SVN: r59507
2002-11-26 13:34:25 +01:00
GCC Administrator
db4d71292f Daily bump.
From-SVN: r59505
2002-11-26 08:19:05 +00:00
Mark Mitchell
29fae15c80 tree.c (cp_build_qualified_type_real): Correct handling of array types.
* tree.c (cp_build_qualified_type_real): Correct handling of
	array types.

From-SVN: r59499
2002-11-26 08:11:33 +00:00
Aldy Hernandez
020a7b12f8 spe.h (__ev_create_sfix32_fs): Change macro into new function.
2002-11-25  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
        new function.
        (__ev_create_ufix32_fs): Same.
        (__ev_get_sfix32_fs_internal): New.
        (__ev_get_sfix32_fs): Define to use function.
        (__ev_get_ufix32_fs_internal): New.
        (__ev_get_ufix32_fs): Define to use function.
        (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
        (__ev_get_lower_ufix32_fs): Same.
        (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
        (__ev_get_lower_sfix32_fs): Same.
        (__ev_set_sfix32_fs_internal): New.
        (__ev_set_ufix32_fs_internal): New.
        (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
        (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
        (__ev_set_upper_sfix32_fs): Call function.
        (__ev_set_lower_sfix32_fs): Same.
        (__ev_set_upper_ufix32_fs): Same.
        (__ev_set_lower_ufix32_fs): Same.

From-SVN: r59498
2002-11-26 07:28:02 +00:00
Mark Mitchell
2003cd3794 empty11.C: New test.
* testsuite/g++.dg/abi/empty11.C: New test.
	* testsuite/g++.dg/rtti/cv1.C: New test.

	* tree.c (cp_build_qualified_type_real): Correct handling of
	array types.
	* class.c (walk_subobject_offsets): Fix thinko.
	(build_base_field): Record offsets of empty bases in primary
	virtual bases.
	(layout_class_type): Record offsets of empty bases in fields.

From-SVN: r59497
2002-11-26 07:20:13 +00:00
Douglas B Rupp
d2dff06bdb * gcc.c (do_spec_1): Reset delete_this_arg to zero.
From-SVN: r59495
2002-11-26 07:03:49 +00:00
Jason Thorpe
32f0ffb380 elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
* config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
* config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
* config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
defining.
* config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
* config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.

From-SVN: r59493
2002-11-26 04:54:50 +00:00
Dave Pitts
160f9a4c92 add i370-*-openedition to bypass fixinc list
From-SVN: r59490
2002-11-26 02:23:06 +00:00
Kazu Hirata
3c0f538988 * config/h8300/h8300.md (an anonymous pattern): New.
From-SVN: r59489
2002-11-26 02:08:49 +00:00
Richard Henderson
83bbd9b6c0 alias.c (find_base_value): Use new_reg_base_value if it's live.
* alias.c (find_base_value): Use new_reg_base_value if it's live.
        (copying_arguments): Make boolean.

From-SVN: r59483
2002-11-25 16:51:17 -08:00
Jason Thorpe
7c64a86005 [ChangeLog missed with previous commit.]
* gcc.c (static_spec_functions): Add if-exists-else spec
function.
(if_exists_else_spec_function): New function.
* doc/invoke.texi: Document the if-exists-else spec function.

* config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
"%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".

From-SVN: r59481
2002-11-26 00:36:19 +00:00
Jason Thorpe
152a5a9c94 gcc.c (static_spec_functions): Add if-exists-else spec function.
* gcc.c (static_spec_functions): Add if-exists-else spec
function.
(if_exists_else_spec_function): New function.
* doc/invoke.texi: Document the if-exists-else spec function.

* config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
"%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".

From-SVN: r59480
2002-11-26 00:31:31 +00:00
Jason Thorpe
a4967b8db1 config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with "netbsd.h netbsd-elf.h" in tm_file.
* config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
"netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
"${tmake_file} rs6000/t-netbsd".
* config/rs6000/netbsd.h: Rewrite.
* config/rs6000/t-netbsd: New file.

From-SVN: r59479
2002-11-26 00:05:07 +00:00
Kazu Hirata
a91dce31a5 h8300.md (an anonymous pattern): Relax the condition for the pattern.
* config/h8300/h8300.md (an anonymous pattern): Relax the
	condition for the pattern.

From-SVN: r59470
2002-11-25 20:43:04 +00:00
Aldy Hernandez
5ddd137f23 * config/rs6000/spe.md: Same for patterns.
From-SVN: r59469
2002-11-25 19:40:28 +00:00
Aldy Hernandez
fe29a4ea4b rs6000.h (enum rs6000_builtins): Remove evmwlssf...
2002-11-25  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
	evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
	evmwlssfanw, evmwlsmfanw.

	* config/rs6000/rs6000.c (bdesc_2arg): Same.

	* config/rs6000/spe.md: Same for patterns.

From-SVN: r59468
2002-11-25 19:40:01 +00:00
Christian Ehrhardt
b77f37445e re PR c/8639 (simple integer arithmetic expression broken)
PR c/8639
        * fold-const.c (extract_muldiv): Don't propagate division unless
        both arguments are multiples of C.
	* gcc.c-torture/execute/20021119-1.c: New.

From-SVN: r59466
2002-11-25 11:04:57 -08:00
Andrew Haley
5dafd28231 libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
2002-11-25  Andrew Haley  <aph@redhat.com>

        * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
        * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
        * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
        * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.

From-SVN: r59460
2002-11-25 17:20:10 +00:00
Diego Novillo
b4bbc8b7d3 jcf-reader.c: Don't expand JCF_readu4 inside the expansion of JCF_SKIP.
* jcf-reader.c: Don't expand JCF_readu4 inside the
	expansion of JCF_SKIP.

From-SVN: r59459
2002-11-25 09:22:06 -05:00
Mark Mitchell
b82ddab44c search.c (is_subobject_of_p_1): Fix thinko.
* search.c (is_subobject_of_p_1): Fix thinko.
	(lookup_field_queue_p): Likewise.

From-SVN: r59455
2002-11-25 09:25:31 +00:00
GCC Administrator
7580b910da Daily bump.
From-SVN: r59454
2002-11-25 08:17:14 +00:00
Hans-Peter Nilsson
d860bdd355 * lib/prune.exp: Prune more -fpic/-fPIC warnings.
From-SVN: r59446
2002-11-25 00:58:16 +00:00
Kazu Hirata
92d4b8a08f h8300.c (h8300_init_once): Fix a typo in the target help message.
* config/h8300/h8300.c (h8300_init_once): Fix a typo in the
	target help message.

From-SVN: r59445
2002-11-25 00:27:13 +00:00
Jason Thorpe
1169f9e02d config.gcc (*-*-netbsd*1.[7-9]*, [...]): Set extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o".
* config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
crtbeginT.o".
(arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
(ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
to "" for a.out configurations.
* config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".

From-SVN: r59444
2002-11-24 23:36:26 +00:00
Mark Mitchell
8a874cb437 class.c (layout_class_type): Reuse tail padding when laying out virtual bases.
* class.c (layout_class_type): Reuse tail padding when laying out
	virtual bases.

	* g++.dg/abi/empty10.C: New test.

From-SVN: r59443
2002-11-24 23:26:13 +00:00
Jason Thorpe
adde288a90 netbsd.h (CPP_SUBTARGET_SPEC): Just use NETBSD_CPP_SPEC directly.
* config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
NETBSD_CPP_SPEC directly.
(SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec.  Add
netbsd_endfile_spec.
(ENDFILE_SPEC): Use %(netbsd_endfile_spec).

From-SVN: r59442
2002-11-24 23:19:19 +00:00
Eric Botcazou
642c8681b6 * gcc.c-torture/compile/20021124-1.c: New test.
From-SVN: r59441
2002-11-24 22:20:42 +00:00
Jason Thorpe
1ebe8c03ce netbsd-elf.h (STARTFILE_SPEC): Rename to NETBSD_STARTFILE_SPEC.
* config/netbsd-elf.h (STARTFILE_SPEC): Rename to
NETBSD_STARTFILE_SPEC.
(STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
(ENDFILE_SPEC): Likewise.
* config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.

From-SVN: r59436
2002-11-24 21:17:04 +00:00
Andreas Schwab
523cb4994d Makefile.in (install-driver): Remove versioned link before trying to create it.
* Makefile.in (install-driver): Remove versioned link before
	trying to create it.

From-SVN: r59435
2002-11-24 20:43:02 +00:00
Andreas Schwab
bdabc150ce m68k.c: Fix typo in last change defining TARGET_ASM_CAN_OUTPUT_MI_THUNK.
* config/m68k/m68k.c: Fix typo in last change defining
	TARGET_ASM_CAN_OUTPUT_MI_THUNK.

From-SVN: r59432
2002-11-24 18:32:01 +00:00
Kazu Hirata
56b8e164db h8300.c (print_operand): Update the use of h8300_tiny_constant_address_p.
* config/h8300/h8300.c (print_operand): Update the use of
	h8300_tiny_constant_address_p.
	(h8300_adjust_insn_length): Likewise.
	(h8300_tiny_constant_address_p): Check if the given rtx is a
	variable declared with __attribute__ ((tiny_data)).

From-SVN: r59431
2002-11-24 13:17:11 +00:00
GCC Administrator
02ccd3c984 Daily bump.
From-SVN: r59428
2002-11-24 08:17:47 +00:00
GCC Administrator
0176b49232 Daily bump.
From-SVN: r59408
2002-11-23 08:17:09 +00:00
Dale Johannesen
2bb74773da toplev.c (rest_of_compilation): Fix comments.
2002-11-22  Dale Johannesen  <dalej@apple.com>

        * toplev.c (rest_of_compilation):  Fix comments.

From-SVN: r59397
2002-11-23 02:07:13 +00:00
Geoffrey Keating
199cbacc90 aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not allow mmap from /dev/zero.
* aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
	allow mmap from /dev/zero.  Don't make decisions for the host
	based on presence or absence of /dev/zero on the build machine.
	(ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
	(AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
	* configure: Regenerate.

From-SVN: r59394
2002-11-23 00:20:13 +00:00
Mark Mitchell
05abed76a9 rtti2.C: New test.
* g++.dg/abi/rtti2.C: New test.

	* rtti.c (qualifier_flags): Fix thinko.

From-SVN: r59391
2002-11-22 23:19:17 +00:00
Tom Tromey
dd06be9e8d re PR java/8676 (ICE in generate_bytecode_conditional at jcf-write.c:1359)
* parse.y (patch_binop): Cast right hand side of shift expression
	to `int'.  Fixes PR java/8676.

From-SVN: r59390
2002-11-22 21:49:06 +00:00
Ranjit Mathew
34744d4e5f jcf-write.c (write_classfile): Remove target class file...
2002-11-22  Ranjit Mathew <rmathew@hotmail.com>
	    Andrew Haley <aph@redhat.com>

	* gcc/java/jcf-write.c (write_classfile): Remove target
	class file, if it exists, before renaming the temporary
	class file to it.

Co-Authored-By: Andrew Haley <aph@redhat.com>

From-SVN: r59386
2002-11-22 21:01:24 +00:00
Daniel Jacobowitz
42766f8db1 libiberty.h (make_relative_prefix): Add prototype.
include/
	* libiberty.h (make_relative_prefix): Add prototype.
libiberty/
	* Makefile.in: Add make-relative-prefix.c.
	* make-relative-prefix.c: New file.
	* functions.texi: Rebuilt.
gcc/
	* gcc.c (make_relative_prefix, split_directories)
	(free_split_directories): Removed.

From-SVN: r59385
2002-11-22 20:01:07 +00:00
Daniel Jacobowitz
80486e0671 configure.in: Set insn=nop for DWARF-2 tests on ARM.
* configure.in: Set insn=nop for DWARF-2 tests on ARM.
	* configure: Regenerated.

From-SVN: r59383
2002-11-22 19:34:21 +00:00
Kazu Hirata
41c3eb5d45 h8300.c (compute_a_shift_length): Fix the insn length computation when xor.l is output.
* config/h8300/h8300.c (compute_a_shift_length): Fix the insn
	length computation when xor.l is output.

From-SVN: r59376
2002-11-22 14:16:12 +00:00
GCC Administrator
fac3e63d64 Daily bump.
From-SVN: r59373
2002-11-22 08:17:23 +00:00
Jim Wilson
57de2c8fb8 rs6000.c (function_arg): Set inner mode of SPE vectors to SI.
2002-11-21  Jim Wilson  <wilson@redhat.com>

	* config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
	vectors to SI.

From-SVN: r59365
2002-11-22 02:22:13 +00:00
Bob Wilson
58db834b27 xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
* config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
        * config/xtensa/xtensa.c (struct machine_function): Add
        incoming_a7_copied flag.
        (xtensa_copy_incoming_a7): Define.
        (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
        * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.

From-SVN: r59364
2002-11-22 00:23:31 +00:00
Jan Hubicka
c05dbe8131 i386-protos.h (x86_64_sign_extended_value): Fix prototype.
* i386-protos.h (x86_64_sign_extended_value): Fix prototype.
	* i386.c (x86_64_general_operand, x86_64_szext_general_operand,
	x86_64_nonmemory_operand, x86_64_movabs_operand,
	x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
	ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
	(local_symbolic_operand): Do not care the 64bit limits.
	(x86_64_sign_extended_value): Remove allow_rip support.
	(legitimate_pic_address_disp_p): Handle all cases allowed
	with RIP addressing.
	(legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
	(legitimize_pic_address): Reorganize.
	* i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.

From-SVN: r59362
2002-11-21 22:54:20 +00:00
Eric Botcazou
75c2b9730d * gcc.dg/i386-unroll-1.c: New test.
From-SVN: r59361
2002-11-21 22:08:15 +00:00
Glen Nakamura
1c83ea9fd0 re PR c++/8342 (g++.jason/pmf7.C fails on i586-pc-linux-gnu)
PR c++/8342
	* typeck.c (get_member_function_from_ptrfunc): Make sure that a
	SAVE_EXPR for instance_ptr doesn't get evaluated first inside one
	of the branches of a COND_EXPR.

From-SVN: r59360
2002-11-21 21:42:40 +00:00
Jason Thorpe
ff3afb5623 config.gcc (arm*-*-netbsdelf*): Enable configuration.
* config.gcc (arm*-*-netbsdelf*): Enable configuration.
* config/arm/netbsd-elf.h: New file.

From-SVN: r59359
2002-11-21 21:39:17 +00:00
Jason Thorpe
57c21a4200 elf.h (SUBTARGET_EXTRA_SPECS): Add subtarget_asm_float_spec.
* config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
subtarget_asm_float_spec.
(SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
defaults from...
(ASM_SPEC): ...here.  Use subtarget_asm_float_spec.

From-SVN: r59358
2002-11-21 21:29:24 +00:00
Nick Clifton
3d5ee65b2e fr30.md (movsf_constant_store): Move code to detect 0.0 into fr30.c.
* config/fr30/fr30.md (movsf_constant_store): Move code to detect 0.0 into fr30.c.
* config/fr30/fr30-protos.h (fr30_const_double_is_zero): Prototype.
* config/fr30/fr30.c (fr30_const_double_is_zero): New function.  Return true if the rtx is 0.0.

From-SVN: r59349
2002-11-21 16:36:52 +00:00
Jason Thorpe
4d938a0912 elf.h (ASM_SPEC, LINK_SPEC): Pass -EL if -mlittle-endian is specified.
* config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
if -mlittle-endian is specified.

From-SVN: r59348
2002-11-21 15:48:02 +00:00
Richard Earnshaw
1dda7ee45a re PR rtl-optimization/2903 ([arm] Optimization bug with long long arithmetic)
PR optimization/2903
* arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
(anddi_notsesidi_di): Likewise.

From-SVN: r59347
2002-11-21 14:51:27 +00:00
Kazu Hirata
7c143ed268 h8300.c (print_operand): Use h8300_eightbit_constant_address_p and h8300_tiny_constant_address_p.
* config/h8300/h8300.c (print_operand): Use
	h8300_eightbit_constant_address_p and
	h8300_tiny_constant_address_p.
	(h8300_adjust_insn_length): Likewise.
	* config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
	(TINY_CONSTANT_ADDRESS_P): Likewise.
	(OK_FOR_U): Use eightbit_constant_address_p.

From-SVN: r59343
2002-11-21 14:09:31 +00:00
Ulrich Weigand
b5798b2a8b libgcc-libc.ver: Add multilib support.
* config/s390/libgcc-libc.ver: Add multilib support.
	* config/s390/linux.h (MULTILIB_DEFAULT): Define.
	* config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
	MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
	EXTRA_MULTILIB_PARTS): Define.

From-SVN: r59342
2002-11-21 12:03:49 +00:00
Richard Earnshaw
c231c91e55 arm.c (arm_get_frame_size): A leaf function does not need its stack padding to an aligned boundary if...
* arm.c (arm_get_frame_size): A leaf function does not need its
stack padding to an aligned boundary if it has no frame.
(thumb_get_frame_size): Likewise.

From-SVN: r59339
2002-11-21 10:22:02 +00:00
GCC Administrator
3c6843e78a Daily bump.
From-SVN: r59336
2002-11-21 08:17:21 +00:00
Toon Moene
02f0f531d4 invoke.texi: Explain the purpose of -fmove-all-movables...
2002-11-20  Toon Moene  <toon@moene.indiv.nluug.nl>

	* invoke.texi: Explain the purpose of -fmove-all-movables,
	-freduce-all-givs and -frerun-loop-opts better.

From-SVN: r59323
2002-11-20 23:22:50 +00:00
Steve Ellcey
27e58a706f emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type to component type using GET_MODE_INNER.
* emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
	to component type using GET_MODE_INNER.
	* expr.c (emit_move_insn_1): Ditto.
	* optabs.c (expand_binop): Ditto.
	(expand_unop): Ditto.
	(expand_complex_abs): Ditto.

From-SVN: r59317
2002-11-20 21:52:59 +00:00
Douglas B Rupp
964b104aba * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
From-SVN: r59316
2002-11-20 21:41:19 +00:00
DJ Delorie
3d4b192ae9 stormy16.c (s16builtins, [...]): New.
* config/stormy16/stormy16.c (s16builtins,
xstormy16_init_builtins, xstormy16_expand_builtin): New.
* config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.

From-SVN: r59312
2002-11-20 16:08:33 -05:00
Hans-Peter Nilsson
9a0a7d5dfa ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD): Define as empty.
* ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
	Define as empty.
	(ggc_realloc): Update valgrind annotations.
	* ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
	Define as empty.
 	(alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
	valgrind-annotate memory.

From-SVN: r59310
2002-11-20 20:06:34 +00:00
Hans-Peter Nilsson
414d23ae18 Makefile.in (RUN_GEN, [...]): New variables.
* Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
	(DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
	(executing gencheck, genconfigs, genconditions, genflags,
	gencodes, genconstants, genemit, genrecog, genopinit, genextract,
	genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
	gengtype, genprotos): Prepend $(RUN_GEN).
	* configure.in: Move host compiler tests before --enable-checking
	tests.
	(--enable-checking=valgrind): New.
	* config.in, configure: Regenerate.
	* cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
	Define as empty.
	(read_include_file): When doing the mmap+1 trick,
	valgrind-annotate the byte after the mmap:ed area as readable.
	(purge_cache): Remove above annotation.
	* gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
	VALGRIND_PATH -q to each command.

From-SVN: r59309
2002-11-20 19:49:53 +00:00
Ulrich Weigand
3ba2436a67 recog.c (constrain_operands): Prefer exact match over reloadable EXTRA_MEMORY_CONSTRAINT or...
* recog.c (constrain_operands): Prefer exact match over reloadable
	EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.

	* reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
	operands in Pmode.

From-SVN: r59308
2002-11-20 17:05:08 +00:00
Eric Botcazou
6d1d1db044 20021120-1.c: New test.
* gcc.c-torture/compile/20021120-1.c: New test.
	* gcc.c-torture/compile/20021120-2.c: New test.

From-SVN: r59303
2002-11-20 10:50:29 +00:00
Eric Botcazou
02a362d982 re PR c/8518 (ICE when compiling mplayer)
PR c/8518
	* c-decl.c (duplicate_decls): Outline the second definition
	of an extern inline function in all cases.

From-SVN: r59302
2002-11-20 10:37:08 +00:00
Richard Sandiford
5354730bf6 stor-layout.c (place_field): Update rli->offset as well as rli->bitpos.
* stor-layout.c (place_field): Update rli->offset as well as
	rli->bitpos.

From-SVN: r59301
2002-11-20 10:09:01 +00:00
Richard Sandiford
5720520fc7 * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
From-SVN: r59300
2002-11-20 10:03:36 +00:00
Richard Sandiford
4392ebd361 sh.md (udivsi3): Don't put udivsi3_i4_media instructions into a libcall block.
* config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
	into a libcall block.
	(divsi3): Likewise divsi3_i4_media.

From-SVN: r59299
2002-11-20 09:59:28 +00:00
Richard Sandiford
3748bd9e22 global.c (find_reg): Check HARD_REGNO_NREGS before kicking out another register.
* global.c (find_reg): Check HARD_REGNO_NREGS before kicking
	out another register.

From-SVN: r59298
2002-11-20 09:52:14 +00:00
Jakub Jelinek
bc02f8d3f7 combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask (not just mask) are set in C.
* combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
	(not just mask) are set in C.

	* gcc.c-torture/execute/20021118-3.c: New test.

From-SVN: r59295
2002-11-20 10:43:20 +01:00
GCC Administrator
13b42735b6 Daily bump.
From-SVN: r59294
2002-11-20 08:17:15 +00:00
Andreas Jaeger
3bdcef4db4 loop.c (record_giv): Initialize not_replaceable.
* loop.c (record_giv): Initialize not_replaceable.
	(check_final_value): Likewise.

From-SVN: r59288
2002-11-20 07:14:54 +01:00
Mark Mitchell
ad2ae3b294 pt.c (for_each_template_parm): Free allocated memory.
* pt.c (for_each_template_parm): Free allocated memory.
	* search.c (is_subobject_of_p_1): New function.
	(is_subobject_of_p): Avoid walking virtual bases multiple times.

From-SVN: r59287
2002-11-20 05:17:01 +00:00
Kazu Hirata
ec5b0c68f3 h8300.c (h8300_init_once): Replace 1 with MASK_H8300S.
* config/h8300/h8300.c (h8300_init_once): Replace 1 with
	MASK_H8300S.

From-SVN: r59286
2002-11-20 05:04:31 +00:00
Vijay L. Khuspe
39ba95b5e1 h8300.c (h8300_init_once): Allow -mn switch only if -mh or -ms present.
* config/h8300/h8300.c (h8300_init_once): Allow -mn switch
	only if -mh or -ms present.
	(h8300_eightbit_constant_address_p): Support the normal mode.
	(h8300_tiny_constant_address_p): Likewise.
	* config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
	(POINTER_SIZE): Add 16 bit pointer for the normal mode.
	(Pmode): Evaluate to HImode for the normal mode.
	(SIZE_TYPE): Evaluate to unsigned int for normal mode.
	(PTRDIFF_TYPE): Evaluate to int for the normal mode.
	(ASM_WORD_OP): Evaluate to word for the normal mode.
	* config/h8300/h8300.md (tablejump_normal_mode): New.
	(indirect_jump_normal_mode): New.
	* config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
	directory.
	(MULTILIB_DIRNAMES): Create target dependent directory
	'normal'.
        (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
	* doc/invoke.texi (gccoptlist): Describe the new switch -mn.

From-SVN: r59285
2002-11-20 04:54:39 +00:00
Toon Moene
27dcc451f4 re PR fortran/8587 ((double complex zero)**(double prec number) = NAN instead of zero)
2002-11-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/8587
	* libF77/pow_zz.c: Handle (0.0, 0.0) ** power.

2002-11-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/8587
	* news.texi: Show PR fortran/8587 fixed.

From-SVN: r59280
2002-11-19 23:17:36 +00:00
Jan Hubicka
efcc70370b i386.md (length_immediate): Do not refer to insn address.
* i386.md (length_immediate): Do not refer to insn address.
	(jcc*, jmp patterns):  Compute length explicitly.

From-SVN: r59279
2002-11-19 22:52:40 +00:00
Eric Botcazou
d5fc82c51a 2002-11-19 �Eric Botcazou �<ebotcazou@libertysurf.fr>
* gcc.c-torture/compile/20021119-1.c: New test.

From-SVN: r59276
2002-11-19 20:19:50 +00:00
Eric Botcazou
35f1c975a3 re PR c/8588 (ICE in extract_insn, at recog.c:2148)
2002-11-19 �Eric Botcazou �<ebotcazou@libertysurf.fr>

	PR c/8588
	* optabs.c (expand_binop): Convert CONST_INTs in shift
	operations too.

From-SVN: r59274
2002-11-19 20:13:20 +00:00
Roger Sayle
a500466ba1 * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
From-SVN: r59271
2002-11-19 19:26:53 +00:00
Kazu Hirata
3b16115392 h8300.md (an anonymous pattern): Relax the condition to accept the same operands and/or subregs.
* config/h8300/h8300.md (an anonymous pattern): Relax the
	condition to accept the same operands and/or subregs.

From-SVN: r59270
2002-11-19 18:41:27 +00:00
Daniel Jacobowitz
85af47b9e6 sh.c (gen_shl_and): Revert previous patch.
* config/sh/sh.c (gen_shl_and): Revert previous patch.
        * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
        reload_completed.

From-SVN: r59269
2002-11-19 18:27:01 +00:00
Kazu Hirata
9675a91e9b h8300.c (print_operand): Update the use of EIGHTBIT_CONSTANT_ADDRESS_P.
* config/h8300/h8300.c (print_operand): Update the use of
	EIGHTBIT_CONSTANT_ADDRESS_P.
	(h8300_adjust_insn_length): Likewise.
	(h8300_eightbit_constant_address_p): Check if the given rtx is
	a variable with __attribute__((eightbit_data)).
	* config/h8300/h8300.h (OK_FOR_U): Update the use of
	EIGHTBIT_CONSTANT_ADDRESS_P.

From-SVN: r59263
2002-11-19 15:17:24 +00:00
Gerald Pfeifer
7b61fa4da9 contrib.texi (Contributors): Add self as second contact in addition to Jeff Law.
* doc/contrib.texi (Contributors): Add self as second contact in
	addition to Jeff Law.

From-SVN: r59256
2002-11-19 08:25:01 +00:00
GCC Administrator
b9423ac22f Daily bump.
From-SVN: r59255
2002-11-19 08:18:06 +00:00
Andreas Jaeger
50aadcbcd9 tree-inline.c: Move prototpyes of find_alloca_call_1 and find_alloca_call to right place.
* tree-inline.c: Move prototpyes of find_alloca_call_1 and
	find_alloca_call to right place.

From-SVN: r59247
2002-11-19 08:11:42 +01:00
Kazu Hirata
dc65cd609e * cppfiles.c: Fix formatting.
From-SVN: r59245
2002-11-19 06:55:04 +00:00
Jason Thorpe
f3226a9001 gcc.c (The Specs Language): Document spec functions.
* gcc.c (The Specs Language): Document spec functions.
(static_spec_functions, lookup_spec_function)
(eval_spec_function, handle_spec_function)
(if_exists_spec_function, alloc_args): New.
(execute): Abort if processing_spec_function is true.
(do_spec_1): Hand off spec to handle_spec_function if %:
is encountered.  If processing_spec_function is true,
end any pending argument when the end of the string is reached.
(main): Use alloc_args to allocate the initial argument vector.
* gcc.h (struct spec_function): New.
(lang_specific_spec_functions): New extern.

* config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
(ENDFILE_SPEC): Add if-exists(crtn%O%s).
* config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.

* doc/invoke.texi: Document spec functions.

* cppspec.c (lang_specific_spec_functions): New.
* gccspec.c: Likewise.

* g++spec.c (lang_specific_spec_functions): New.

* g77spec.c (lang_specific_spec_functions): New.

* jvspec.c (lang_specific_spec_functions): New.

From-SVN: r59241
2002-11-19 04:37:50 +00:00
Jason Thorpe
3b312ef46f duff-1.c: New test.
* gcc.dg/duff-1.c: New test.
* gcc.dg/duff-2.c: New test.
* gcc.dg/duff-3.c: New test.

From-SVN: r59240
2002-11-19 04:27:13 +00:00
Steve Ellcey
08c42743e0 hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
* config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
	(FIXUNS_TRUNCTFDI2_LIBCALL): New.
	(fixunstfsi_libfunc): Change.
	(fixunstfdi_libfunc): Change.
	(sdiv_optab): Don't zero out SImode handler.
	(udiv_optab): Don't zero out SImode handler.
	(smod_optab): Don't zero out SImode handler.
	(umod_optab): Don't zero out SImode handler.

From-SVN: r59238
2002-11-18 23:21:42 +00:00
Neil Booth
8128cccfcf re PR preprocessor/8524 (_Pragma within macros is improperly expanded)
PR preprocessor/8524
	* cpplib.c (run_directive): Remove previous kludge to _Pragma.
	Add a new one in its place, which hopefully works.
	(skip_rest_of_line): Change test for bottom-of-context-stack.
testsuite:
	* gcc.dg/cpp/_Pragma5.c: New test.

From-SVN: r59232
2002-11-18 20:43:40 +00:00
Jan Hubicka
9519920205 i386.md (addqi_1_slp): Fix output template.
* i386.md (addqi_1_slp): Fix output template.
	(subqi_1_slp): Fix type.

From-SVN: r59230
2002-11-18 20:32:56 +00:00