Commit Graph

48529 Commits

Author SHA1 Message Date
Jonathan Wakely
408e31a2dd index.html: Explain memory "leaks" due to allocators.
2003-03-12  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/faq/index.html: Explain memory "leaks" due to allocators.
	* docs/html/faq/index.txt: Regenerate.
	* docs/html/debug.html: Add a bit to allocator text and fix XHTML.

From-SVN: r64273
2003-03-13 00:15:59 +00:00
Steve Ellcey
03d0dce160 ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
* config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
	(ASM_OUTPUT_XDATA_SHORT): Remove.
	(ASM_OUTPUT_XDATA_INT): Remove.
	(ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
	(ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
	(ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
	(CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.

From-SVN: r64271
2003-03-12 23:05:40 +00:00
Andrew Lewycky
847311f457 re PR c++/7050 (g++ segfaults on: (i ? get_string() : throw))
PR c++/7050
        * expr.c (store_expr): Don't attempt to store void-typed trees,
        just evaluate them for side effects.
        * cp/expr.c (cxx_expand_expr): Return const0_rtx for throw
        expressions.

From-SVN: r64268
2003-03-12 17:24:48 -05:00
Andreas Schwab
ff8b9ca85f configure.in: Avoid trailing /.
2003-03-10  Andreas Schwab  <schwab@suse.de>

boehm-gc:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

libf2c:
	* aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
	glibcpp_toolexeclibdir.
	* configure: Rebuilt.

libffi:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

libjava:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

libobjc:
	* aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
	glibcpp_toolexeclibdir.
	* configure: Rebuilt.

libstdc++-v3:
	* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
	glibcpp_toolexeclibdir.
	* aclocal.m4, configure: Rebuilt.

zlib:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

From-SVN: r64267
2003-03-12 21:34:31 +00:00
Neil Booth
c19b12cb00 cppfiles.c (cpp_rename_file, [...]): New.
* cppfiles.c (cpp_rename_file, cpp_push_include): New.
	* cppinit.c (push_include): Move with changes to cppfiles.c.
	(cpp_read_main_file): Mark named operators here...
	(cpp_finish_options): ...not here.  Update.
	(_cpp_maybe_push_include_file): Update.
	* cpplib.h (cpp_push_include, cpp_rename_file): New.

From-SVN: r64266
2003-03-12 21:31:51 +00:00
Nathanael Nerode
ad9c4d9f7b aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE, _gcc_COMPUTE_GAS_VERSION.
* aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
        _gcc_COMPUTE_GAS_VERSION.
        * configure.in: Use them.
        * configure: Regenerate.

From-SVN: r64263
2003-03-12 20:56:05 +00:00
Bob Wilson
8d49831d20 xtensa.md (adddi3): Don't clobber source operand used to detect carry.
* config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
        to detect carry.
        (subdi3): Reorder emitted instructions.

From-SVN: r64262
2003-03-12 20:50:24 +00:00
Andreas Jaeger
bfa2615fe1 netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to NETBSD_OS_CPP_BUILTINS_LP64.
* config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
	NETBSD_OS_CPP_BUILTINS_LP64.

From-SVN: r64261
2003-03-12 21:43:52 +01:00
Nathanael Nerode
73458fb759 Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up.
(toplev)
	* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up.  Delete unused
	Make macro.
	* Makefile.in: Regenerate.
	* configure.in: Clean up gxx_include_dir logic.
	* configure: Regenerate.

(gcc)
	* Makefile.in: Eliminate all.indirect.  Update and clean up comments.
	Rearrange.  Reorganize.
	* configure.in: Rearrange.
	* configure: Regenerate.

From-SVN: r64260
2003-03-12 20:41:00 +00:00
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