Commit Graph

48510 Commits

Author SHA1 Message Date
Nick Clifton 6f8c9bd153 (FIXED_REGISTERS): Add Maverick registers.
(CALL_USED_REGISTERS): Likewise.
(FIRST_PSEUDO_REGISTER): Update comment	describing how this value is calculated.

From-SVN: r64243
2003-03-12 12:38:35 +00:00
Hans-Peter Nilsson cb49b9adf8 Actually regenerate (using autoheader) this time.
From-SVN: r64242
2003-03-12 12:28:34 +00:00
Hans-Peter Nilsson b2522d2b72 configure.in (rlim_t): Define to long if no valid definition found in sys/resource.h.
* configure.in (rlim_t): Define to long if no valid definition
	found in sys/resource.h.
	* config.in, configure: Regenerate.

From-SVN: r64241
2003-03-12 12:19:25 +00:00
Neil Booth f7248b51e3 /home/neil/diffs/mcore.log
From-SVN: r64240
2003-03-12 11:46:56 +00:00
Eric Botcazou 8a7d6cb3d8 re PR c/9928 (ICE on duplicate enum declaration)
PR c/9928
	* c-decl.c (duplicate_decls): Discard the initializer of the new decl
	only if it is a VAR_DECL.

From-SVN: r64235
2003-03-12 09:54:38 +00:00
Eric Botcazou db1077d307 re PR rtl-optimization/9888 (-mcpu=k6 -Os produces out of range loop instructions)
PR optimization/9888
	* config/i386/i386.md (jcc_1): Fix range.
	(jcc_2): Likewise.
	(jump): LIkewise.
	(doloop_end_internal): Likewise.

From-SVN: r64230
2003-03-12 09:21:47 +00:00
Danny Smith 6ca23bff71 winnt.c (DLL_IMPORT_PREFIX): New define.
* config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
	Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
	(DLL_EXPORT_PREFIX): New define. Use throughout instead of
	DLL_IMPORT_EXPORT_PREFIX and "i."
	(i386_pe_dllexport_name_p): Here.
	(i386_pe_dllimport_name_p): Here.
        (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
	not 9 chars when getting identifier name.
	(i386_pe_mark_dllimport): Here.
	(i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
	not 9 chars when getting identifier name. Correct comment.
	(i386_pe_strip_name_encoding): Here. Add comments for different
	cases.
	(gen_fastcall_suffix): Break down xmalloc() argument to
	components.
	(gen_stdcall_suffix): Likewise.
	Update copyright year.

From-SVN: r64227
2003-03-12 08:59:29 +00:00
Eric Botcazou 9b73c90a3b re PR rtl-optimization/9888 (-mcpu=k6 -Os produces out of range loop instructions)
PR optimization/9888
	* config/i386/i386.md (movsi_1): Remove special alternatives
	for %eax register.
	(movsi_1_nointernunit): Likewise.
	(movhi_1): Likewise.
	* config/i386/i386.c (memory_address_length): Do not use
	short displacement when there is no base.
	(ix86_attr_length_address_default): Handle LEA instructions.

From-SVN: r64225
2003-03-12 08:53:27 +00:00
Andreas Jaeger 57f989ce5d * Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
From-SVN: r64222
2003-03-12 09:05:52 +01:00
Mark Mitchell e1145e7f7d Fix PR number in log message.
From-SVN: r64221
2003-03-12 07:29:31 +00:00
Mark Mitchell 2601a4ee73 re PR c++/9336 (ICE in cp_line_of, at cp/error.c:2191)
PR c++/9336
	* g++.dg/parse/namespace8.C: New test.

	PR c++/9336
	* decl2.c (do_nonmember_using_decl): Do not call duplicate decls
	to merge old and new declarations.

From-SVN: r64216
2003-03-12 07:23:15 +00:00
Neil Booth 21282b1e92 * c-cppbuiltin.c (builtin_define_std): Make non-static.
From-SVN: r64215
2003-03-12 06:58:38 +00:00
Alexandre Oliva 2bfe542b56 g++.1: Remove.
* g++.1: Remove.
* Make-lang.in (c++.generated-manpages): Build cp/g++.1.
(cp/g++.1): Build it from scratch in the build tree.
(c++.install-man): Depend on it.  Install it from the build tree.
(c++.mostlyclean): Clean it.

From-SVN: r64214
2003-03-12 04:18:34 +00:00
Loren J. Rittle 7358f10d14 freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
* config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
	(FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
	(FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
	* config/freebsd.h (CPP_PREDEFINES): Remove.
	(TARGET_OS_CPP_BUILTINS): New.
	* config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
	instead of TARGET_OS_CPP_BUILTINS.
	* config/sparc/freebsd.h (CPP_PREDEFINES): Remove.

From-SVN: r64212
2003-03-12 02:29:08 +00:00
Geoffrey Keating d00bc0a2a6 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
From-SVN: r64211
2003-03-12 01:51:28 +00:00
Aldy Hernandez 9b7b447f8f rs6000.c (rs6000_stack_info): Remove insn_chain_scanned.
2003-03-11  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_stack_info): Remove
        insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.

        * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.

From-SVN: r64210
2003-03-12 01:30:56 +00:00
Alexandre Oliva 18a47d21ba toplev.c (independent_decode_option): Return success for --help, --target-help and --version.
* toplev.c (independent_decode_option): Return success for --help,
--target-help and --version.

From-SVN: r64209
2003-03-12 00:19:37 +00:00
GCC Administrator b97dbcff50 Daily bump.
From-SVN: r64208
2003-03-12 00:17:05 +00:00
Alexandre Oliva c0a579df90 linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
* config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
specified.
(SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
DRIVER_SELF_SPECS.
(LINK_SPEC): Let endian options affect the linker emulation name.

From-SVN: r64201
2003-03-11 23:31:01 +00:00
Mark Mitchell 0c33daffa3 re PR c++/9924 (Multiple using statements for builtin functions not allowed)
PR c++/9924
	* g++.dg/overload/builtin2.C: New test.

2003-03-11  Mark Mitchell  <mark@codesourcery.com>

	PR c++/9924
	* decl2.c (do_nonmember_using_decl): Ignore anticipated builtins.

From-SVN: r64197
2003-03-11 23:07:45 +00:00
Jason Merrill cf237c199c re PR c++/9820 (ice in build_baselink (templates))
PR c++/9820
        * search.c (lookup_member): Fix handling of functions in a class
        being defined.

From-SVN: r64193
2003-03-11 17:43:44 -05:00
J"orn Rennecke ea45c4b0b3 * sh.md (reload_inqi): Fix mode for source in second set.
From-SVN: r64192
2003-03-11 22:37:41 +00:00
Jan Hubicka 7101fb18f3 cselib.c (cselib_invalidate_mem_1): Move too ...
* cselib.c (cselib_invalidate_mem_1): Move too ...
	(cselib_invalidate_mem): ... here; use new list
	(dummy_val, first_containing_mem): New static variables.
	(clear_table): Initialize first_containing_mem.
	(discard_useless_values):  Compact the containing_mem list.
	(add_mem_for_addr): Add to the list.
	* cselib.h (cselib_val): Add next_containing_mem.

From-SVN: r64191
2003-03-11 21:52:42 +00:00
Neil Booth e24c3d715a * Makefile.in: Fix typo.
From-SVN: r64190
2003-03-11 21:33:34 +00:00
Jonathan Wakely 4959aa5e61 index.html: Update text about location of headers.
2003-03-11  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/faq/index.html: Update text about location of headers.
	* docs/html/faq/index.txt: Regenerate.

From-SVN: r64189
2003-03-11 21:33:30 +00:00
Aldy Hernandez b50442834d rs6000.c (rs6000_override_options): Disable string instructions for e500.
2003-03-11  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_override_options): Disable string
        instructions for e500.

From-SVN: r64188
2003-03-11 21:26:12 +00:00
Neil Booth cd6a500707 Makefile.in: Update.
* Makefile.in: Update.
	* c-cppbuiltin.c: Include tm_p.h.

From-SVN: r64187
2003-03-11 21:03:58 +00:00
Aldy Hernandez 41f3a9307a tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
2003-03-11  Aldy Hernandez  <aldyh@redhat.com>

        * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.

        * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
        (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
        (_Unwind_SetGR): Same.
        (_Unwind_GetGRPtr): New.
        (_Unwind_SetGRPtr): New.
        (uw_update_context_1): Use accesor functions instead of accessing
        context->reg[] directly.
        (uw_install_context_1): Same.
        (execute_cfa_program): Same.
        (__frame_state_for): Same.

        * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
        the synthetic register offset.

        * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.

From-SVN: r64186
2003-03-11 20:40:54 +00:00
Tom Tromey 8b8e6c64af parse.y (resolve_field_access): Initialize class if field is found in another static field.
* parse.y (resolve_field_access): Initialize class if field is
	found in another static field.
	* expr.c (build_class_init): Don't optimize out initialization of
	implemented interface.

From-SVN: r64185
2003-03-11 20:37:02 +00:00
Tom Tromey 218d1401af initfield.java: New file.
* libjava.lang/initfield.java: New file.
	* libjava.lang/initfield.out: New file.

From-SVN: r64184
2003-03-11 20:36:34 +00:00
Steven Bosscher 54098126af return-type-3.c: New test.
2003-03-11  Steven Bosscher  <s.bosscher@student.tudelft.nl>

        * gcc.dg/return-type-3.c: New test.

From-SVN: r64181
2003-03-11 20:00:39 +00:00
Carlo Wood 8fe857758f cplus-dem.c (demangle_integral_value): Correction to reflect patch of 2002-01-10 in order to also make negative...
* cplus-dem.c (demangle_integral_value): Correction to reflect
patch of 2002-01-10 in order to also make negative multi-digits
without leading underscore work.

From-SVN: r64179
2003-03-11 14:55:46 -05:00
Hans-Peter Nilsson d2f55c5c66 cris.md: Remove lingering EGCS reference.
* config/cris/cris.md: Remove lingering EGCS reference.
	("*extopqihi_side_biap"): For HI operation, match
	cris_additive_operand_extend_operator, not
	cris_operand_extend_operator.  Adjust condition.
	("*extopqihi_side", "*extopqihi"): Ditto.
	("*extopqisi_side_biap"): Correct operand numbers in condition.
	("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
	("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
	("*extophisi_swap"): Ditto.
	("*extopqihi_swap_side_biap"): For HI operation, match a simple
	PLUS, not cris_operand_extend_operator.  Adjust condition and
	output template.
	("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
	* config/cris/cris.h (PREDICATE_CODES): Add
	cris_additive_operand_extend_operator.
	* config/cris/cris.c (cris_additive_operand_extend_operator):
	New predicate.

From-SVN: r64174
2003-03-11 15:43:25 +00:00
Mark Mitchell 436f8a4ce0 re PR c++/8700 (unhelpful error message for binding temp to reference)
PR c++/8700
	* call.c (convert_class_to_reference): Adjust usage of
	splice_viable.
	(any_viable): Remove.
	(splice_viable): Combine with any_viable.
	(print_z_candidates): Avoid printing duplicates.
	(build_user_type_conversion_1): Adjust usage of splice_viable.
	(build_new_function_call): Likewise.
	(build_operator_new_call): Likewise.
	(build_object_call): Likewise.
	(build_conditional_expr): Likewise.
	(build_new_op): Likewise.
	(build_new_method_call): Likewise.
	(joust): Remove spurious comment.
	* cp-tree.h (DECL_FRIENDLIST): Correct documentation.
	* decl2.c (arg_assoc_class): Simplify.
	* friend.c (add_friend): Likewise.

From-SVN: r64173
2003-03-11 15:43:14 +00:00
Carlo Wood 1be4def3c6 demangle.h: Prepend accessors of class qualifier with 'get_' in order to fix warnings when...
2003-03-11  Carlo Wood  <carlo@alinoe.com>

	* include/bits/demangle.h: Prepend accessors of
	class qualifier with 'get_' in order to fix warnings
	when compiling with -Wshadow.

From-SVN: r64172
2003-03-11 13:48:16 +00:00
D.Venkatasubramanian bff6a7c25d bprob.exp: Disable test cases for h8300-*-* as profiling options are not supported.
* gcc.misc-tests/bprob.exp: Disable test cases for h8300-*-* as
	profiling options are not supported.

From-SVN: r64171
2003-03-11 12:32:26 +00:00
Andrew Haley 3d874dea12 jcf-io.c (caching_stat): Initialize origsep to remove compiler warning.
2003-03-11  Andrew Haley  <aph@redhat.com>

        * jcf-io.c (caching_stat): Initialize origsep to remove compiler
        warning.

From-SVN: r64169
2003-03-11 11:10:05 +00:00
Jason Merrill 220dd8ca34 re PR c++/8660 (template overloading ICE in tsubst_expr, at cp/pt.c:7644)
PR c++/8660
        * decl2.c (check_classfn): A member template only matches a
        member template.

[[Split portion of a mixed commit.]]

From-SVN: r64167.2
2003-03-11 05:34:45 -05:00
Jason Merrill 5b8e011cf6 re PR c++/8660 (template overloading ICE in tsubst_expr, at cp/pt.c:7644)
PR c++/8660
        * decl2.c (check_classfn): A member template only matches a
        member template.

From-SVN: r64166
2003-03-11 05:33:28 -05:00
Michael Koch b772d2f592 2003-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java
	(putInt): Use limit() instead of limit.
	* gnu/java/nio/CharBufferImpl.java
	(slice): Fixed implementation.
	(subSequence): Better bounds checking.
	* gnu/java/nio/MappedByteFileBuffer.java:
	Import all needed classes directly.
	* java/nio/ByteBuffer.java
	(hashCode): New dummy method.
	* java/nio/CharBuffer.java
	(array_offset): New member variable.
	(hasArray): Fixed documentation.
	(arrayOffset): Return array_offset.

From-SVN: r64165
2003-03-11 10:30:52 +00:00
Hartmut Penner 37bd08f8df df.c (read_modify_subreg_p): Change from static to global.
* df.c (read_modify_subreg_p): Change from static to global.
        * df.h (read_modify_subreg_p): Add prototype.
        * sched-deps.c (sched_analyze_1): Generate true dependency for
        strict_low_part, certain subregs and zero/sign_extract.

From-SVN: r64164
2003-03-11 09:17:38 +00:00
Loren J. Rittle b0649028b4 ctype_inline.h: Support _M_table when so installed.
* config/os/bsd/freebsd/ctype_inline.h:  Support _M_table
	when so installed.
	* testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.

From-SVN: r64163
2003-03-11 07:07:25 +00:00
Neil Booth cb60f38d5b Makefile.in: Update.
* Makefile.in: Update.
	* c-common.c: Don't include real.h or except.h.
	(REGISTER_PREFIX): Remove.
	(builtin_define_std, builtin_define_with_value,
	builtin_define_with_int_value, builtin_define_with_hex_fp_value,
	builtin_define_type_max, builtin_define_type_precision,
	builtin_define_float_constants): Move to c-cppbuiltin.c.
	(c_stddef_cpp_builtins): New.
	* c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
	* c-cppbuiltin.c: New, extracted from c-common.c.
	(define__GNUC__): New.
	* cppspec.c (lang_specific_driver): Remove support of -no-gcc.
	* gcc.c: Remove support of %v1, %v2 and %v3 specs.
	(cpp_unique_options): Don't support no-gcc.
	(do_spec_1): Remove support of version specs.
	* doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
	* doc/passes.texi: Update.
	* doc/tm.texi: Update.
cp:
	* Make-lang.in (CXX_C_OBJS): Update.
	* lang-specs.h: Don't define __GNUG__ here.

From-SVN: r64162
2003-03-11 06:42:21 +00:00
Loren J. Rittle 5858cd26b2 testsuite_hooks.h (run_tests_wrapped_env): Do not report lack of setenv().
* testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
	report lack of setenv().

From-SVN: r64161
2003-03-11 05:32:56 +00:00
Mark Mitchell 125e65945c 16077.C: Adjust warnings.
* g++.old-deja/g++.benjamin/16077.C: Adjust warnings.
	* g++.old-deja/g++.warn/impint2.C: Likewise.

	* call.c (perform_overload_resolution): New function.
	(build_new_function_call): Use it.
	(build_operator_new_call): Likewise.
	(add_candidates): Add explicit_targs and template_only parameters.
	(build_new_op): Adjust accordingly.
	* cp-tree.h (build_operator_new_call): New function.
	(build_function_call_real): Remove.
	(build_function_call_maybe): Likewise.
	* init.c (build_new_1): Use build_operator_new_call.
	* typeck.c (build_function_call_real): Rename to ...
	(build_function_call): ... this.

From-SVN: r64159
2003-03-11 02:37:17 +00:00
Aldy Hernandez 31ca36354c * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
From-SVN: r64158
2003-03-11 02:01:41 +00:00
Andrew Pinski ab82a49f4e darwin.c (machopic_function_base_name): If dynamic-no-pic is on should not get here.
2003-03-10  Andrew Pinski  <apinski@apple.com>

	* config/darwin.c (machopic_function_base_name): If dynamic-no-pic
	is on should not get here.
	(machopic_indirect_data_reference): If dynamic-no-pic is on just
	generate high/low parts of the address.
	(machopic_legitimize_pic_address): Change MACHOPIC_PURE to
	MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
	symbol and labels with a new reg.  Dynamic-no-pic does not have a
	pic_offset_table_rtx.
	(machopic_select_section): Change references of flag_pic to
	MACHOPIC_INDIRECT.
	(machopic_asm_out_destructor): Likewise.
	* config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
	reference of flag_pic to MACHOPIC_INDIRECT.
	(MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
	(MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
	(MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
	(MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
	* config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
	0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
	* config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
	(TARGET_DYNAMIC_NO_PIC): Define.
	(SUBTARGET_SWITCHES): Define, have sub-target switches for
	dynamic-no-pic.
	(SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
	rs6000_override_options to here. Dynamic-no-pic overrides
	pic.
	(CC1_SPEC): Change from not static then pic to not static and not
	dynamic-no-pic then pic.
	* config/rs6000/rs6000.c (rs6000_override_options): Move the
	check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
	(rs6000_legitimize_reload_address): Add case for loading floating in
	dynamic-no-pic.
	(rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
	of flag_pic to MACHOPIC_INDIRECT.
	(secondary_reload_class): Conditional change the reference of
	flag_pic to MACHOPIC_INDIRECT.
	(rs6000_output_mi_thunk): Change reference of flag_pic to
	MACHOPIC_INDIRECT.
	(output_profile_hook): Likewise.
	(machopic_output_stub):	Non-pure (dynamic-no-pic) is now supported.
	* config/rs6000/rs6000.md (movdf_low): Add the case for
	MACHO_DYNAMIC_NO_PIC_P.
	(call): Change references for flag_pic in TARGET_MACHO to
	MACHOPIC_INDIRECT.
	(SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
	-mdynamic-no-pic is on.	 Also move case for -fpic from rs6000.c.
	* doc/invoke.texi (-mdynamic-no-pic): Document.

From-SVN: r64157
2003-03-11 01:41:11 +00:00
Devang Patel 8c12473040 Remove extra bits I included, by mistake, in my previous check-in
for PR/9394 fix.

From-SVN: r64156
2003-03-10 17:25:12 -08:00
GCC Administrator 3c6a9be30f Daily bump.
From-SVN: r64153
2003-03-11 00:17:05 +00:00
Devang Patel 87d7d780ea gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
PR/9394
        * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
        (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
        * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
        (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
        * cppspec.c (DEFAULT_SWTICH_TAKES_ARG): Remove.
        (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.

cp
        * g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWITCH_TAKES_ARG.

testsuite

        * g++.dg/cpp/c++_cmd_1.C: New test.
        * g++.dg/cpp/c++_cmd_1.h: New file.

From-SVN: r64144
2003-03-10 15:41:42 -08:00