Commit Graph

48520 Commits

Author SHA1 Message Date
Andreas Jaeger 00530a212b c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for LP64 targets.
* c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
        LP64 targets.

        * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
        _LP64.

        * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
        _LP64 macros here.
        * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.

        * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
        NETBSD_OS_CPP_BUILTINS_LP64.
        * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
        * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.

        * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.

From-SVN: r64259
2003-03-12 21:30:06 +01:00
Jan Hubicka 5474eed5c6 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
From-SVN: r64256
2003-03-12 18:06:29 +00:00
Daniel Jacobowitz 8c35a61a90 Fix date in last log entry
From-SVN: r64252
2003-03-12 16:48:50 +00:00
Daniel Jacobowitz 09ebf088fb * gcc.c-torture/execute/20030224-2.c: New test.
From-SVN: r64251
2003-03-12 16:47:07 +00:00
Daniel Jacobowitz 59a7f9bf40 Fix PR target/9797 and PR c/9853.
* stmt.c (expand_decl_init): Call push_temp_slots () and
	pop_temp_slots ().

From-SVN: r64250
2003-03-12 16:45:25 +00:00
Jan Hubicka cd22e4af59 * hashtab.c (htab_expand): Fix warning.
From-SVN: r64249
2003-03-12 16:43:21 +00:00
J"orn Rennecke 1aa03f3810 sh.c: Include basic-block.h.
* sh.c: Include basic-block.h.
	(sh_output_mi_thunk, emit_load_ptr): New functions.
	(TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.

From-SVN: r64248
2003-03-12 16:33:20 +00:00
Andrew Haley 68566610af gjavah.c (is_first_data_member): New global variable.
2003-03-04  Andrew Haley  <aph@redhat.com>

        * gjavah.c (is_first_data_member): New global variable.
        (print_c_decl): If it's the first data member, align it as the
        superclass.
        (process_file): Set is_first_data_member.

From-SVN: r64247
2003-03-12 16:14:01 +00:00
Jan Hubicka 0a8e3de3c8 hashtab.c (htab_expand): Compute the size of hashtable based on the number of elements actually used.
* hashtab.c (htab_expand): Compute the size of hashtable based
	on the number of elements actually used.
	(htab_traverse):  Call htab_expand when table is too empty.

From-SVN: r64246
2003-03-12 14:15:09 +00:00
Ansgar Esztermann 32cf27e58e * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r64245
2003-03-12 13:58:36 +01:00
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