Commit Graph

46973 Commits

Author SHA1 Message Date
Nathanael Nerode
11f6b45110 * decl.c: ANSIfy function declarations.
From-SVN: r61049
2003-01-08 17:32:13 +00:00
Mark Mitchell
8caf4c38d8 parser.c (cp_parser_asm_definition): Correct handling of omitted operands.
* parser.c (cp_parser_asm_definition): Correct handling of omitted
	operands.

	* g++.dg/ext/asm4.C: New test.

From-SVN: r61048
2003-01-08 16:59:31 +00:00
Andreas Schwab
918c4fe41e aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache variable.
* aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
	variable.
	* configure: Regenerated.

From-SVN: r61047
2003-01-08 15:03:50 +00:00
Kriang Lerdsuwanakij
2b59fc25c6 re PR c++/9030 (Template friends and access to local classes)
PR c++/9030
	* decl.c (make_typename_type): Check access only when tf_error.
	(make_unbound_class_template): Likewise.
	* pt.c (saved_access_scope): New variable.
	(push_access_scope_real): New function.
	(push_access_scope): Likewise.
	(pop_access_scope): Likewise.
	(tsubst_default_argument): Use them.
	(instantiate_template): Likewise.
	(regenerate_decl_from_template): Likewise.
	(instantiate_decl): Likewise.
	(get_mostly_instantiated_function_type): Likewise.

	* g++.dg/template/friend12.C: New test.
	* g++.dg/template/friend13.C: Likewise.
	* g++.old-deja/g++.eh/spec6.C: Add missing error message.

From-SVN: r61046
2003-01-08 14:42:39 +00:00
Kazu Hirata
c5e7ce43a5 h8300.c (output_logical_op): Replace byte/word extraction of det with b0, b1, w0, w2, etc.
* config/h8300/h8300.c (output_logical_op): Replace byte/word
	extraction of det with b0, b1, w0, w2, etc.
	(compute_logical_op_length): Likewise.
	(compute_logical_op_cc): Likewise.

From-SVN: r61045
2003-01-08 14:02:51 +00:00
Kazu Hirata
eb8a8ec470 h8300.h (CONSTANT_ADDRESS_P): Allow CONST and HIGH on all variants.
* config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
	HIGH on all variants.

From-SVN: r61044
2003-01-08 14:00:31 +00:00
Nathanael Nerode
2f23f5c152 * java-tree.h: Protect against multiple inclusion.
From-SVN: r61043
2003-01-08 13:28:18 +00:00
Josef Zlomek
56f15830d3 Makefile.in (PARTITION_H): New.
* Makefile.in (PARTITION_H): New.
	(BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
	* basic-block.h: Include hard-reg-set.h.

From-SVN: r61041
2003-01-08 13:12:56 +00:00
Richard Earnshaw
ab57893bfc arm.h (ENABLE_XF_PATTERNS): Delete.
* arm.h (ENABLE_XF_PATTERNS): Delete.
* arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
(sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
(extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
(cmpxf_trap): Delete.
(movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.

From-SVN: r61040
2003-01-08 11:55:50 +00:00
Jan Hubicka
4298c66b58 i386-cadd.c: New test.
* gcc.dg/i386-cadd.c: New test.
	* gcc.dg/i386-cmov4.c: Likewise.

From-SVN: r61039
2003-01-08 11:51:42 +00:00
Jan Hubicka
7b52eedeed i386.md (adddi3_carry_rex64, [...]): Name pattern.
* i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
	(addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
	(add??cc): New expanders.
	* i386.c (expand_int_addcc): New function.
	* i386-protos.h (expand_int_addcc): Declare.

	* alias.c (memory_modified_1): New static function.
	(memory_modified): New static varaible.
	(memory_modified_in_insn_p): New global function.
	* rtl.h (memory_modified_in_insn_p): Declare.
	* rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
	references.

	* expr.h (emit_conditional_add): Declare.

From-SVN: r61038
2003-01-08 11:20:23 +00:00
GCC Administrator
67d96a1661 Daily bump.
From-SVN: r61036
2003-01-08 08:17:32 +00:00
Janis Johnson
7404975589 re PR other/8947 (Please add a Warning about "-malign-double" in docs)
2003-01-07  Janis Johnson  <janis187@us.ibm.com>

	PR other/8947
	* doc/invoke.texi (-malign-double): Explain that the option breaks
	binary compatibility.

From-SVN: r61026
2003-01-08 01:12:29 +00:00
Andreas Schwab
e7edc5a07b config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld, should come from the generic *-*-linux* entry.
* config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
	should come from the generic *-*-linux* entry.

From-SVN: r61024
2003-01-07 23:34:24 +00:00
Jan Hubicka
9635cfadee cselib.c (cselib_current_insn_in_libcall): New static variable.
* cselib.c (cselib_current_insn_in_libcall): New static variable.
	(new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
	we are inside libcall.
	* cselib.h (elt_loc_list): Add in_libcall.
	* gcse.c (do_local_cprop): Do not copy propagate using insns
	in libcalls.

From-SVN: r61023
2003-01-07 22:14:43 +00:00
Christopher Faylor
b5038cfb82 * configure: Regenerate with proper autoconf 2.13.
From-SVN: r61022
2003-01-07 21:57:34 +00:00
David Edelsohn
3ee04299ad tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do not normally affect to issue rate.
* doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
	not normally affect to issue rate.

From-SVN: r61021
2003-01-07 16:22:18 -05:00
Nathanael Nerode
3f7617e42a * tree.c: Delete bogus #if 0 code.
From-SVN: r61020
2003-01-07 21:19:05 +00:00
Jan Hubicka
068f5deabf re PR target/8322 (SSE2 intrinsics broken?)
* genopinit.c (optabs): Add addc_optab.
	* ifcvt.c (noce_try_store_flag): Rename to ...
	(noce_try_addcc): ... this one; handle generic conditional increment.
	(noce_process_if_block): Update noce_try_addcc call.
	* optabs.c (emit_conditional_add): New.
	(init_obtabs): Initialize addc_optab.
	* optabs.h (optab_index): Add OTI_addcc.
	(addcc_optab): New macro.
	* md.texi: Document addMcc

	PR target/8322
	* i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
	* xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
	* xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.

	* reload1.c (delete_output_reload): Avoid repeated attempts
	to delete insn.

From-SVN: r61019
2003-01-07 21:09:21 +00:00
Andreas Schwab
eb70d86d7e configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
* configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
        Move --enable-initfini-array check ...
        * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
        HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
        Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
        * configure: Rebuild.

From-SVN: r61018
2003-01-07 13:03:24 -08:00
Richard Henderson
1afdf91c83 alias.c (find_base_value): Only use new_reg_base_value shortcut if the register is set once.
* alias.c (find_base_value): Only use new_reg_base_value shortcut
        if the register is set once.

From-SVN: r61017
2003-01-07 12:59:42 -08:00
Christopher Faylor
d02c69bed7 * configure.in: Add AC_PREREQ for consistency.
From-SVN: r61015
2003-01-07 20:40:40 +00:00
Sylvain Pion
3621050045 i386.c (ix86_init_mmx_sse_builtins): __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
* config/i386/i386.c (ix86_init_mmx_sse_builtins):
        __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
        * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.

From-SVN: r61013
2003-01-07 12:37:25 -08:00
Benjamin Kosnik
cb25b0ce8d re PR libstdc++/9076 (Call Frame Instructions are not handled correctly during unwind operation..)
2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
	    Sunil Davasam  <sunil.k.davasam@intel.com>

	PR libstdc++/9076
	* unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
	DW_CFA_same_value, read next and ignore.

Co-Authored-By: Sunil Davasam <sunil.k.davasam@intel.com>

From-SVN: r61008
2003-01-07 20:20:53 +00:00
Richard Henderson
94c040bd69 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
From-SVN: r61007
2003-01-07 12:14:51 -08:00
Tom Tromey
b47ffb8f08 class.c (add_assume_compiled): Don't adjust parent if we're already at the root of tree.
* class.c (add_assume_compiled): Don't adjust parent if we're
	already at the root of tree.

From-SVN: r61003
2003-01-07 17:20:50 +00:00
Daniel Berlin
f6cb56fa00 cfg.c: Include alloc-pool.h
2003-01-07  Daniel Berlin  <dberlin@dberlin.org>

	* cfg.c: Include alloc-pool.h
	(edge_pool): New pool.
	(bb_pool): New pool.
	(first_deleted_edge): Remove.
	(first_deleted_block): Remove.
	(init_flow): Alloc/free the pools.
	(free_edge): Use pools.
	(alloc_block): Ditto.
	(expunge_block): Ditto.
	(cached_make_edge): Ditto.

	* Makefile.in (cfg.o): Add alloc-pool.h dependency.

2003-01-07  Daniel Berlin  <dberlin@dberlin.org>

	* et-forest.c: Include alloc-pool.h.
	(struct et_forest): Add node_pool and occur_pool.
	(et_forest_create): Create the new pools.
	(et_forest_delete): Delete them.
	(et_forest_add_node): Allocate and free using pools.
	(et_forest_add_edge): Ditto.
	(et_forest_remove_node): Ditto.
	(et_forest_remove_edge): Ditto.

	* Makefile.in (et-forest.o): Add alloc-pool.h dependency.

From-SVN: r61001
2003-01-07 17:05:16 +00:00
Tom Tromey
6ec628973a posix.h (_Jv_platform_usleep): Wrap in ifdef JV_HASH_SYNCHRONIZATION.
* include/posix.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.
	* include/win32.h (_Jv_platform_usleep): Wrap in ifdef
	JV_HASH_SYNCHRONIZATION.

From-SVN: r60998
2003-01-07 16:50:08 +00:00
Benjamin Kosnik
0252d6041d re PR libstdc++/8707 (make distclean fails)
2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/8707
	* Makefile.am (distclean-multi): Fix.
	* Makefile.in: Regenerate.

From-SVN: r60996
2003-01-07 16:20:25 +00:00
Kazu Hirata
f9ac2f95ec h8300.c (output_logical_op): Simplify and optimize the handling of SImode.
* config/h8300/h8300.c (output_logical_op): Simplify and
	optimize the handling of SImode.
	* config/h8300/h8300.c (compute_logical_op_length): Update
	accordingly.
	* config/h8300/h8300.c (compute_logical_op_cc): Likewise.

From-SVN: r60995
2003-01-07 16:02:20 +00:00
Andreas Schwab
c93721124b class.c (layout_class_type): Don't use PCC_BITFIELD_TYPE_MATTERS if not defined.
* class.c (layout_class_type): Don't use
	PCC_BITFIELD_TYPE_MATTERS if not defined.

From-SVN: r60994
2003-01-07 15:41:30 +00:00
Alexandre Oliva
ce985125f5 test_summary (configflags): Compute correctly with both autoconfiscated and Cygnus-style top-level.
* test_summary (configflags): Compute correctly with both
autoconfiscated and Cygnus-style top-level.

From-SVN: r60991
2003-01-07 11:56:25 +00:00
Richard Sandiford
83282119ef mips.c (mips_va_arg): In the EABI code, apply the big-endian correction to indirect arguments too.
* config/mips/mips.c (mips_va_arg): In the EABI code, apply the
	big-endian correction to indirect arguments too.

From-SVN: r60990
2003-01-07 09:52:15 +00:00
Michael Koch
f2741d5fbb DatagramSocket.java: Added classpath license info.
2003-01-07  Michael Koch  <konqueror@gmx.de>

 	* java/net/DatagramSocket.java:
 	Added classpath license info.
 	(DatagramSocket): Merged description with classpath.
 	(close): Merged description with classpath.
 	(getChannel): Merged description with classpath.
 	(getInetAddress): Merged description with classpath.
 	(getPort): Merged description with classpath.
 	(getLocalAddress): Merged description with classpath.
 	(getLocalPort): Merged description with classpath.
 	(getSoTimeout): Merged description with classpath.
 	(setSoTimeout): Merged description with classpath.
 	(getSendBufferSize): Merged description with classpath.
 	(setSendBufferSize): Merged description with classpath.
 	(getReceiveBufferSize): Merged description with classpath.
 	(setReceiveBufferSize): Merged description with classpath.

From-SVN: r60989
2003-01-07 08:26:02 +00:00
GCC Administrator
fe50034d9c Daily bump.
From-SVN: r60988
2003-01-07 08:17:26 +00:00
Aldy Hernandez
59a4c851eb Segher Boessenkool <segher@koffie.nl>
2003-01-06  Aldy Hernandez  <aldyh@redhat.com>

	Segher Boessenkool  <segher@koffie.nl>

        * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
        (alt_reg_names): Ditto, fix formatting.
        * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.

From-SVN: r60980
2003-01-07 05:14:34 +00:00
Kazu Hirata
7798db9815 h8300.c (final_prescan_insn): Constify uid.
* config/h8300/h8300.c (final_prescan_insn): Constify uid.
	(output_logical_op): Constify intval and det.
	(compute_logical_length): Likewise.
	(compute_logical_cc): Likewise.
	(output_a_shift): Constify mask.
	(h8300_encode_label): Constify len.

From-SVN: r60979
2003-01-07 04:34:30 +00:00
Kazu Hirata
4705d10281 h8300.c (h8300_expand_prologue): Remove fsize.
* config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
	(h8300_expand_epilogue): Likewise.

From-SVN: r60978
2003-01-07 04:25:58 +00:00
Aldy Hernandez
98c9a8e89f Segher Boessenkool <segher@koffie.nl>
2003-01-06  Aldy Hernandez  <aldyh@redhat.com>

	Segher Boessenkool  <segher@koffie.nl>

        * config/rs6000/altivec.md: Remove spaces from assembler
        instruction argument lists.

From-SVN: r60973
2003-01-07 02:54:13 +00:00
Mark Mitchell
c10cdb3d75 re PR c++/9165 (false "defined but not used" warnings)
PR c++/9165
	* decl2.c (build_cleanup): Mark the object as used.

	PR c++/9165
	* g++.dg/warn/Wunused-3.C: New test.

From-SVN: r60972
2003-01-07 02:38:32 +00:00
Mark Mitchell
69f794a709 pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
* pt.c (retrieve_local_specialization): Revert 2003-01-05 change.
	(hash_local_specialization): New function.
	(register_local_specialization): Revert 2003-01-05 change.
	(instantiate_decl): Use hash_local_specialization when creating
	the local_specializations table.

From-SVN: r60971
2003-01-07 01:38:24 +00:00
Michael Hayes
86143814f6 c4x.c (c4x_naked_function_p): Rename from c4x_assembler_function_p.
* config/c4x/c4x.c (c4x_naked_function_p): Rename from
	c4x_assembler_function_p.
	(c4x_null_epilogue_p): Complement return value, all uses updated.
	(c4x_insert_attributes): Add naked.
	* config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
	* doc/extend.texi: Update C4x function attributes.

From-SVN: r60968
2003-01-07 01:37:15 +00:00
Mark Mitchell
4c4646b541 * decl2.c (mark_used): Do not synthesize thunks.
From-SVN: r60967
2003-01-07 01:34:37 +00:00
Mark Mitchell
63e5f5679c class.c (layout_class_type): Correct handling of unnamed bitfields wider than their types.
* class.c (layout_class_type): Correct handling of unnamed
	bitfields wider than their types.

	* testsuite/g++.dg/abi/bitfield9.C: New test.

From-SVN: r60966
2003-01-07 01:33:54 +00:00
Richard Henderson
52fd80fb25 alpha.c (alpha_encode_section_info): Adjust symbol_str properly when changing "local-ness".
* config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
        properly when changing "local-ness".
        * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.

	* gcc.dg/tls/alias-1.c: New.

From-SVN: r60961
2003-01-06 14:59:25 -08:00
Dale Johannesen
a16b43c5c5 darwin-protos.h: Add prototypes for new section functions.
2003-01-06  Dale Johannesen  <dalej@apple.com>

        * config/darwin-protos.h:  Add prototypes for new section functions.

From-SVN: r60960
2003-01-06 22:23:37 +00:00
Chris Demetriou
ef8dfae612 config.gcc (mipsisa32-*-elf*, [...]): Default ABI to EABI.
2003-01-06  Chris Demetriou  <cgd@broadcom.com>

        * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
        to EABI.

From-SVN: r60957
2003-01-06 13:35:22 -08:00
Mark Mitchell
8218bd3432 re PR c++/9189 ([New parser] Order of default argument processing and function body compilation)
PR c++/9189
	* parser.c (cp_parser): Remove default_arg_types.  Update
	documentation for unparsed_functions_queues.
	(cp_parser_late_parsing_default_args): Take a FUNCTION_DECL as the
	parameter.
	(cp_parser_new): Don't set parser->default_arg_types.
	(cp_parser_function_definition): Adjust usage of
	unparsed_funtions_queues.
	(cp_parser_class_specifier): Don't mess with
	parser->default_arg_types.  Handle default argument processing in
	a separate phase from function body processing.
	(cp_parser_template_declaration_after_export): Adjust usage of
	unparsed_functions_queues.
	(cp_parser_late_parsing_for_member): Do not handle default
	arguments.

	PR c++/9189
	* g++.dg/parse/defarg3.C: New test.

From-SVN: r60956
2003-01-06 21:32:17 +00:00
Benjamin Kosnik
1c26d8fd84 locale_facets.h (messages): Move ctor, dtor definitions to..
2003-01-06  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.h (messages): Move ctor, dtor
	definitions to..
	(__timepunct): Same.
	* config/locale/gnu/messages_members.h (messages): Add dtor, ctor
	definitions. Conditionalize for GNU systems.
	* config/locale/generic/messages_members.h (messages): Add dtor, ctor
	definitions.
	* config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
	definitions. Conditionalize for GNU systems.
	* config/locale/generic/time_members.h (messages): New. Add dtor, ctor
	definitions.
	* include/bits/localefwd.h (locale::facet::_S_c_name): Add.
	* src/locale.cc: Define.
	* src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
	Use it.
	* config/locale/gnu/time_members.h: Use it.
	* config/locale/gnu/messages_members.h: Use it.
	* config/linker-map.gnu: Add locale::facets details.
	* include/Makefile.am (target_headers_extra): Add time_members.h.
	* include/Makefile.in: Regenerate.
	* acinclude.m4: Export CTIME_H.
	* aclocal.m4: Regenerate.
	* configure: Regnerate.

From-SVN: r60952
2003-01-06 21:23:00 +00:00
Zack Weinberg
44f9a8e4bb hwint.h: If the current compiler has no 64-bit type at all, make HOST_WIDEST_INT 32 bits.
* hwint.h: If the current compiler has no 64-bit type at all,
	make HOST_WIDEST_INT 32 bits.

From-SVN: r60951
2003-01-06 20:31:16 +00:00