Commit Graph

40780 Commits

Author SHA1 Message Date
Kaz Kojima
d5db5b9790 linux.h (NO_IMPLICIT_EXTERN_C, [...]): Define.
* config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
	Define.

From-SVN: r60231
2002-12-18 02:26:03 +00:00
Jason Merrill
89ea02fbac calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR with special struct-return ABIs.
* calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
        with special struct-return ABIs.

cp/
        * semantics.c (simplify_aggr_init_exprs_r): Don't change the type
        of the CALL_EXPR.

From-SVN: r60223
2002-12-17 16:29:29 -05:00
Jason Merrill
e489a31f89 * genmultilib: Use 'cd ./foo'.
From-SVN: r60222
2002-12-17 16:17:35 -05:00
Kazu Hirata
5b8f02c6b1 * doc/c-tree.texi: Restore deliberate spelling mistakes.
From-SVN: r60219
2002-12-17 19:59:45 +00:00
Kazu Hirata
c0478a660f c-tree.texi: Fix typos and follow spelling conventions.
* doc/c-tree.texi: Fix typos and follow spelling conventions.
	* doc/cpp.texi: Likewise.
	* doc/extend.texi: Likewise.
	* doc/gty.texi: Likewise.
	* doc/install.texi: Likewise.
	* doc/invoke.texi: Likewise.
	* doc/md.texi: Likewise.
	* doc/passes.texi: Likewise.
	* doc/rtl.texi: Likewise.
	* doc/sourcebuild.texi: Likewise.
	* doc/tm.texi: Likewise.

From-SVN: r60213
2002-12-17 16:47:45 +00:00
Jerry Quinn
3364c33bf7 * doc/invoke.texi: Minor spelling and grammar fixes.
From-SVN: r60212
2002-12-17 14:38:59 +00:00
Ulrich Weigand
d65f135a99 s390.c (s390_output_constant_pool): Replace ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).
* config/s390/s390.c (s390_output_constant_pool): Replace
	ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).

From-SVN: r60208
2002-12-17 12:38:58 +00:00
Jan Hubicka
4b20744484 convert.c (convert_to_real): Disable function transformation for now.
* convert.c (convert_to_real): Disable function transformation for
	now.

From-SVN: r60206
2002-12-17 08:50:41 +00:00
GCC Administrator
3ac036b50b Daily bump.
From-SVN: r60205
2002-12-17 08:17:34 +00:00
Geoffrey Keating
cde26509ba * gcc.c (handle_braces): Allow '@' as a switch name.
From-SVN: r60198
2002-12-17 07:49:32 +00:00
Jason Merrill
9f17520894 c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT doesn't match the begin SCOPE_STMT in partialness.
* c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT
        doesn't match the begin SCOPE_STMT in partialness.

cp/
        * semantics.c (do_pushlevel): Call pushlevel after adding the
        SCOPE_STMT.
        (do_poplevel): Call poplevel before adding the SCOPE_STMT.
        * parse.y (function_body): Go back to using compstmt.
        * decl.c (pushdecl): Skip another level to get to the parms level.

        * call.c (build_new_method_call): Use is_dummy_object to determine
        whether or not to evaluate the object parameter to a static member
        function.

From-SVN: r60196
2002-12-17 01:24:02 -05:00
Geoffrey Keating
c79d892f64 * genmultilib: Create temporary files in unique subdirectory.
From-SVN: r60195
2002-12-17 05:23:07 +00:00
Geoffrey Keating
7a975113a8 * gcc.c (validate_switches): Allow '@' as a switch name.
From-SVN: r60194
2002-12-17 05:18:51 +00:00
Loren J. Rittle
8483c7e022 * Makefile.in (gcov-iov.h): Improve portability.
From-SVN: r60190
2002-12-17 02:02:48 +00:00
Jan Hubicka
9ee7999f33 mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not gas
* mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not
	gas
	* mips.md (tablejump insn): Likewise.

From-SVN: r60188
2002-12-16 22:45:41 +00:00
Mark Mitchell
7a04c51ba3 gcc-common.texi: Change version number to 3.4.
* doc/include/gcc-common.texi: Change version number to 3.4.

	* gcj.texi: Change version number to 3.4.

	* root.texi: Change version number to 3.4.

From-SVN: r60183
2002-12-16 21:59:43 +00:00
Jason Merrill
ed698fc59d add PR reference
From-SVN: r60182
2002-12-16 15:52:22 -05:00
Bruce Korb
165bfb59b2 oops.
From-SVN: r60178
2002-12-16 19:02:09 +00:00
Bruce Korb
27eaa70873 move inclusion of signal.h
From-SVN: r60176
2002-12-16 18:58:42 +00:00
Zack Weinberg
4977bab6ed Merge basic-improvements-branch to trunk
From-SVN: r60174
2002-12-16 18:23:00 +00:00
J"orn Rennecke
b51dc04500 sh.h (EXTRA_CONSTRAINT_Z): New macro.
* sh.h (EXTRA_CONSTRAINT_Z): New macro.
	(EXTRA_CONSTRAINT): Use it.
	* sh.md (anddi3): Use 'Z' constraint for alternative 2.

From-SVN: r60173
2002-12-16 17:21:50 +00:00
GCC Administrator
c82fec369b Daily bump.
From-SVN: r60172
2002-12-16 08:17:31 +00:00
Geert Bosch
d2f97d3eb5 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
From-SVN: r60159
2002-12-15 18:32:01 +01:00
Geert Bosch
93a81b023f re PR ada/5690 (renaming subprograms and default_expression)
* sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
        case of a body created for a Renaming_As_Body, on which
        conformance checks are not performed. Fixes PR ada/5690.

From-SVN: r60158
2002-12-15 17:18:20 +01:00
Richard Sandiford
595416a87f Revert last commit due to freeze.
From-SVN: r60157
2002-12-15 12:05:34 +00:00
Richard Sandiford
46b192aea8 * config/mips/mips.md: Disable the movstrsi define_split.
From-SVN: r60156
2002-12-15 11:34:17 +00:00
GCC Administrator
7bd4393548 Daily bump.
From-SVN: r60154
2002-12-15 08:17:26 +00:00
GCC Administrator
2545fbad4e Daily bump.
From-SVN: r60125
2002-12-14 08:17:21 +00:00
John David Anglin
f5f9008b80 pa.c (output_millicode_call): Correct typo.
* pa.c (output_millicode_call): Correct typo.
	(output_call): Likewise.

From-SVN: r60115
2002-12-14 02:54:14 +00:00
Dale Johannesen
69db9b9903 Fix test for LP64, move it to gcc.c-torture/compile (per Kaveh Ghazi)
From-SVN: r60111
2002-12-14 00:54:02 +00:00
Alexandre Oliva
a58be199f1 mn10300.c (print_operand): Check operand's range.
* config/mn10300/mn10300.c (print_operand) <case N>: Check
operand's range.  Print value directly, without aid from
output_address.
<case U>: New.
<case S>: Make sure argument to fprintf has the right type.
* config/mn10300/mn10300.h (OK_FOR_T): New macro.
(EXTRA_CONSTRAINT): Adjust.
* config/mn10300/mn10300.md: Add new all-QImode pattern for
bclr.  Use %U for immediate operands of bset and bclr.
(iorqi3): New expand, with insns for AM33 and mn10300.

From-SVN: r60109
2002-12-13 23:07:47 +00:00
Gabriel Dos Reis
75c525d71b re PR c++/8031 (ICE in comptypes, at cp/typeck.c:913)
PR C++/8031
* cvt.c (convert_to_pointer_force): Don't try comparing	against
erronous type.

From-SVN: r60106
2002-12-13 21:58:54 +00:00
Geoffrey Keating
8c6ae51fa9 cp-tree.h: Have the multiple-include guards around the entire file.
* cp-tree.h: Have the multiple-include guards around
	the entire file.

From-SVN: r60104
2002-12-13 21:04:27 +00:00
J"orn Rennecke
d9da94a1f0 *** empty log message ***
From-SVN: r60103
2002-12-13 20:20:28 +00:00
Devang Patel
42e903c91c Fix type.
From-SVN: r60102
2002-12-13 12:16:07 -08:00
Jim Wilson
580fb356c0 Doc fix for PR 1621.
* doc/extend.texi (Complex Numbers): Update info on debug info.

From-SVN: r60101
2002-12-13 12:07:15 -08:00
Kazu Hirata
697d8028c2 h8300.md (addhi3_h8300): Remove the last alternative.
* config/h8300/h8300.md (addhi3_h8300): Remove the last
	alternative.

From-SVN: r60098
2002-12-13 13:47:12 +00:00
GCC Administrator
9d051273bd Daily bump.
From-SVN: r60096
2002-12-13 08:17:16 +00:00
Devang Patel
dd05b1b461 I forgot to commit ChangeLogs with darwin ld tests and documentation patch.
From-SVN: r60088
2002-12-12 17:32:48 -08:00
Jim Wilson
24aacafbfc re PR debug/1621 (Debugging with complex numbers)
Fix for PR 1621.
	* dbxout.c (dbxout_fptype_value): New.
	(dbxout_type, case COMPLEX_TYPE): Call it.  Use 'R' instead of 'r'.

From-SVN: r60087
2002-12-12 17:24:52 -08:00
Kazu Hirata
09da15320b c-decl.c: Fix a comment typo.
* c-decl.c: Fix a comment typo.
	* cfg.c: Likewise.
	* cfgcleanup.c: Likewise.
	* cfglayout.c: Likewise.
	* cfgrtl.c: Likewise.
	* c-typeck.c: Likewise.
	* dominance.c: Likewise.
	* dwarf2asm.c: Likewise.
	* dwarfout.c: Likewise.
	* expmed.c: Likewise.
	* expr.c: Likewise.
	* final.c: Likewise.
	* flow.c: Likewise.
	* function.c: Likewise.
	* gcc.c: Likewise.
	* genautomata.c: Likewise.
	* integrate.c: Likewise.
	* loop.c: Likewise.
	* loop.h: Likewise.
	* output.h: Likewise.
	* profile.c: Likewise.
	* ra.h: Likewise.
	* reload1.c: Likewise.
	* reload.c: Likewise.
	* sched-rgn.c: Likewise.
	* stmt.c: Likewise.
	* tree.h: Likewise.
	* vmsdbgout.c: Likewise.

From-SVN: r60085
2002-12-13 00:17:22 +00:00
Kazu Hirata
7930523de8 * config/h8300/h8300.md: Add a new peephole2.
From-SVN: r60082
2002-12-12 22:29:10 +00:00
Devang Patel
61c85ff12d invoke.texi: Document Darwin linker options...
gcc
        *doc/invoke.texi: Document Darwin linker options, -bundle
        -bind_at_load, -all_load and -arch_errors_fatal

testsuite
        * gcc.dg/darwin-ld-1.c: New test.
        * gcc.dg/darwin-ld-2.c: New test.
        * gcc.dg/darwin-ld-3.c: New test.
        * gcc.dg/darwin-ld-4.c: New test.
        * gcc.dg/darwin-ld-5.c: New test.

From-SVN: r60081
2002-12-12 14:23:45 -08:00
Kazu Hirata
59578c8447 h8300.md (a peephole2): Accept a constant that's accepted by CONST_OK_FOR_J.
* config/h8300/h8300.md (a peephole2): Accept a constant
	that's accepted by CONST_OK_FOR_J.

From-SVN: r60080
2002-12-12 21:33:43 +00:00
Kazu Hirata
8cc5359b78 h8300.h (CONST_OK_FOR_J): New.
* config/h8300/h8300.h (CONST_OK_FOR_J): New.
	(CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
	* config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
	(*addhi_h8300hs): Likewise.

From-SVN: r60079
2002-12-12 21:19:57 +00:00
J"orn Rennecke
ec555f3273 sh.c (reg_class_from_letter): No longer const.
* sh.c (reg_class_from_letter): No longer const.  Add 'e' entry.
	(sh_register_move_cost): Add clause for SImode fp-fp moves.
	Increase cost for moves involving multiple general purpose registers.
	* sh.h (OVERRIDE_OPTIONS): Set reg_class_from_letter['e'] according to
	TARGET_FMOVD.
	(HARD_REGNO_MODE_OK): Allow V2SFmode and V4SFmode in general purpose
	registers, and SImode in fp registers, for ! TARGET_SHMEDIA.
	(enum reg_class reg_class_from_letter): No longer const.
	(SECONDARY_OUTPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG /
	REGCLASS_HAS_GENERAL_REG.
	Handle SImode moves from/to fp registers.
	! TARGET_SHMEDIA && TARGET_FMOVD.
	(SECONDARY_INPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG.
	* sh.md (movsi_ie): Add alternatives to move from / to fp regisyters.

From-SVN: r60076
2002-12-12 17:11:13 +00:00
Joern Rennecke
95c0af870b sh.h (REG_CLASS_HAS_FP_REG): New.
Wed Dec 11 19:05:05 2002  J"orn Rennecke <joern.rennecke@superh.com>

        * sh.h (REG_CLASS_HAS_FP_REG): New.
        (REGISTER_MOVE_COST) Use it.  Put body into a function and
        move it into:
        * sh.c (sh_register_move_cost).
        * sh-protos.h (sh_register_move_cost): Declare.

        * sh.c (sh_expand_builtin): Abort for unexpected nop values.
        (sh_adjust_cost): Always return a value.

From-SVN: r60075
2002-12-12 16:40:49 +00:00
Joern Rennecke
7a18508b1f sh.h (REG_CLASS_HAS_FP_REG): New.
* sh.h (REG_CLASS_HAS_FP_REG): New.
        (REGISTER_MOVE_COST) Use it.  Put body into a function and
        move it into:
        * sh.c (sh_register_move_cost).
        * sh-protos.h (sh_register_move_cost): Declare.

        * sh.c (sh_expand_builtin): Abort for unexpected nop values.
        (sh_adjust_cost): Always return a value.

From-SVN: r60074
2002-12-12 16:25:12 +00:00
Andreas Schwab
83ebfdc01c ia64.c (ia64_hpux_asm_file_end): Fix typo in last change and some warnings.
* config/ia64/ia64.c (ia64_hpux_asm_file_end): Fix typo in last
	change and some warnings.

From-SVN: r60073
2002-12-12 14:08:21 +00:00
Kazu Hirata
299c51115b * doc/md.texi (pushm): Fix a typo.
From-SVN: r60072
2002-12-12 14:03:56 +00:00
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