Commit Graph

61584 Commits

Author SHA1 Message Date
Richard Henderson
f4a6d54edd re PR middle-end/17416 (stack variable merging doesn't work)
PR middle-end/17416
        * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
        in conflict loop.

From-SVN: r87366
2004-09-11 13:07:11 -07:00
Jan Hubicka
1d1df0df43 i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
* i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
	(EMIT_MODE_SET): UNINITIALIZED mode needs no set.
	* i386.md (i387_cw): Add 'uninitialized' mode.

From-SVN: r87365
2004-09-11 19:54:21 +00:00
Jan Hubicka
f43329a5ae profile.c (BB_TO_GCOV_INDEX): move more to the front.
* profile.c (BB_TO_GCOV_INDEX): move more to the front.
	(output_location): Break out from ....
	(branch_prob): ... here; handle gcov output on trees.
	* toplev.c (process_options): No longer be sorry about coverage for
	trees.

From-SVN: r87364
2004-09-11 19:50:21 +00:00
Steven Bosscher
05cf561db4 re PR c++/17412 (tree check failure in fold-const)
PR c++/17412
	* fold-const.c (fold): Do not try to fold the operand of a
	CLEANUP_POINT_EXPR if that operand does itself not have any
	operands.
testsuite/
	* g++.dg/parse/break-in-for.C: New test.

	PR middle-end/17417
	* langhooks.c (lhd_decl_printable_name): Make sure that this
	function is called with is a decl node that has an identifier.
	* tree-pretty-print.c (dump_function_name): New function to
	wrap PRINT_FUNCTION_NAME and dump_decl_name.
	(print_call_name): Use it.

From-SVN: r87363
2004-09-11 19:48:58 +00:00
Mohan Embar
a0be84dd8c re PR libgcj/14751 ([win32] thread creation leaks system handle resources)
PR libgcj/14751
	* win32-threads.cc (_Jv_ThreadInitData): Zero out thread
	handle in newly-allocated _Jv_Thread_t.
	(_Jv_ThreadDestroyData): Close thread handle.
	(_Jv_ThreadStart): Remove obsolete comment.
	Store handle of newly-created thread in _Jv_Thread_t.
	* include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
	before including <windows.h>
	#define _Jv_HaveCondDestroy

From-SVN: r87362
2004-09-11 19:13:51 +00:00
Mohan Embar
bdbf6060ea natThread.cc (finalize_native): Destroy join conditional variable and mutex if...
* java/lang/natThread.cc (finalize_native): Destroy
	join conditional variable and mutex if these destroy
	operations are supported.

From-SVN: r87361
2004-09-11 19:10:44 +00:00
Mohan Embar
af8f35b88f Make-lang.in (java/win32-host.o): Add dependency on coretypes.h.
* Make-lang.in (java/win32-host.o): Add dependency on
	coretypes.h.
	* win32-host.c: Add includes for coretypes.h, jcf.h

From-SVN: r87360
2004-09-11 19:08:05 +00:00
Mohan Embar
55545aed66 Make-lang.in (GCJH_OBJS): Change dependency from ggc-none.o to java/ggc-none.o
* Make-lang.in (GCJH_OBJS): Change dependency from
	ggc-none.o to java/ggc-none.o
	(JCFDUMP_OBJS): Likewise.
	(java/ggc-none.o): New target.

From-SVN: r87359
2004-09-11 19:05:32 +00:00
Mohan Embar
547d057d11 ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE, "config.h" if not.
* ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
	"config.h" if not.

From-SVN: r87358
2004-09-11 19:03:23 +00:00
Jakub Jelinek
a17ea89bb1 tree-ssa-alias.c (collect_points_to_info_r): Handle pointing to PTR + OFFSET as PTR...
* tree-ssa-alias.c (collect_points_to_info_r): Handle
	pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
	to OFFSET.

	* gcc.dg/tree-ssa/20040911-1.c: New test.

From-SVN: r87357
2004-09-11 20:57:06 +02:00
Gerald Pfeifer
ac26513211 * crontab: Rename GCC 3.5 snapshots to GCC 4.0 snapshots.
From-SVN: r87356
2004-09-11 18:53:55 +00:00
Richard Henderson
70bb498ad4 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
(expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
        operand of the ADDR_EXPR.
        (expand_expr_real_1): Update to match.

From-SVN: r87355
2004-09-11 10:48:22 -07:00
David Edelsohn
d1909f7b3a Add PR target/17277 to ChangeLog entry.
From-SVN: r87354
2004-09-11 13:11:02 -04:00
David Edelsohn
0c94cda4d1 aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to choose 64-bit version.
* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
        choose 64-bit version.

From-SVN: r87352
2004-09-11 13:06:16 -04:00
Richard Henderson
5e55f99dcf re PR c/17396 (ICE in tree-int-cst at -O0)
PR c/17396
        * c-typeck.c (build_unary_op): Add legacy offsetof hack.

From-SVN: r87351
2004-09-11 10:02:58 -07:00
Andreas Jaeger
c535fc9f33 re PR tree-optimization/16437 (New c-torture failures after bitfield patch)
* gcc.c-torture/execute/991118-1.x: Delete, PR 16437 is fixed.
	* gcc.c-torture/execute/bf64-1.x: Remove XFAIL on x86-64.

From-SVN: r87350
2004-09-11 13:10:46 +02:00
Kazu Hirata
431ae0bf8f cfg.texi, [...]: Insert @: after i.e.
* doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
	doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
	Insert @: after i.e. or e.g.

From-SVN: r87346
2004-09-11 08:34:26 +00:00
Richard Sandiford
2495e8793f * gcc.target/frv: New directory of FR-V-specific tests.
From-SVN: r87345
2004-09-11 06:45:44 +00:00
Geoffrey Keating
70601cc243 tree-pretty-print.c (dump_decl_name): Print unnamed decls as D.xxx rather than <Dxxx>.
* tree-pretty-print.c (dump_decl_name): Print unnamed decls as
	D.xxx rather than <Dxxx>.

From-SVN: r87344
2004-09-11 05:03:14 +00:00
Adam Nemet
8a45d680ae configure.ac (AC_MSG_CHECKING(what linker to use)): in_tree_ld_is_elf should be true for LynxOS.
* configure.ac (AC_MSG_CHECKING(what linker to use)):
	in_tree_ld_is_elf should be true for LynxOS.
	* configure: Regenerate.

From-SVN: r87343
2004-09-11 04:26:36 +00:00
Adam Nemet
ecc50d72cb * Makefile.in (all.cross): Add srcextra.
From-SVN: r87342
2004-09-11 04:22:14 +00:00
James E Wilson
1c8c309bab Fix typos.
* Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
(stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.

From-SVN: r87341
2004-09-10 20:52:22 -07:00
James E Wilson
273d67e73b Fix excess errors problem for invalid vector testcase.
* convert.c (convert_to_vector): Replace recursive call with
error_mark_node.
* gcc.dg/convert-vec-1.c: New test.

From-SVN: r87340
2004-09-10 20:29:07 -07:00
Roger Sayle
3ae472c234 re PR middle-end/17024 (ICE in fold_cond_expr_with_comparison, at fold-const.c:4324)
PR middle-end/17024
	* fold-const.c (fold_cond_expr_with_comparison): Handle unordered
	floating point comparison operators.  Change aborts to gcc_asserts.

	* gcc.dg/pr17024-1.c: New test case.

From-SVN: r87339
2004-09-11 03:21:22 +00:00
Geoffrey Keating
dc9d0b14b7 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
From-SVN: r87338
2004-09-11 01:54:14 +00:00
James E Wilson
a73b091d78 Add CONST1_RTX (vector mode) support.
* emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
Add integer argument named constant.  Use const_tiny_rtx instead of
CONST0_RTX.
(gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
and CONST1_RTX.
(init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
vector types.
* expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
of gen_rtx_raw_CONST_VECTOR.

From-SVN: r87337
2004-09-10 18:49:40 -07:00
Geoffrey Keating
769da81848 gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless temporary variables.
* gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
	temporary variables.

From-SVN: r87335
2004-09-11 00:25:00 +00:00
GCC Administrator
ca024c876e Daily bump.
From-SVN: r87333
2004-09-11 00:16:17 +00:00
Eric Christopher
110fce119d re PR c/16046 (ICE tree check: expected tree_list, have identifier_node in decl_attributes, at attribs.c:151)
2004-09-10  Eric Christopher  <echristo@redhat.com>

	PR c/16046
	* c-parse.in (attribute): Add NULL_TREE for error case
	for error recovery.

2004-09-10  Eric Christopher  <echristo@redhat.com>

	* gcc.dg/20040910-1.c: New test.

From-SVN: r87330
2004-09-11 00:00:31 +00:00
Zack Weinberg
5d709b0013 c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
* c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
	(extract_interface_info): Delete prototype.
	* c-decl.c (extract_interface_info): Delete stub.
	* c-lex.c (get_fileinfo): Initialize file_info_tree here, if
	it's not already been done ...
	(init_c_lex): ... not here.
	(fe_file_change): Don't call extract_interface_info.
cp:
	* cp-tree.h (interface_only, interface_unknown): Delete declarations;
	comment explaining them moved to c-common.h.
	* lex.c (interface_only, interface_unknown, extract_interface_info):
	Delete definitions.
	(cxx_finish): Don't reset interface_unknown.
	(handle_pragma_interface): Don't set interface_only and
	interface_unknown; just the like-named fields in finfo.
	(handle_pragma_implementation): Adjust comment.
	* decl2.c (cp_finish_file): Don't reset interface_only and
	interface_unknown.
	* method.c (synthesize_method): Don't reset interface_unknown or
	call extract_interface_info.
	* pt.c (pop_tinst_level): Don't call extract_interface_info.
	* decl.c (start_cleanup_fn): Don't save or restore interface_only
	and interface_unknown.
	(make_rtl_for_nonlocal_decl): Call get_fileinfo on input_filename
	and use the result instead of the interface_only/interface_unknown
	globals.
	(start_preparsed_function): Likewise.
	* lex.c (cxx_make_type): Likewise.
	* semantics.c (begin_class_definition): Likewise.
	(expand_body): Don't call extract_interface_info.

From-SVN: r87329
2004-09-10 23:56:31 +00:00
Joseph Myers
616aeba2bb c-tree.h (struct c_declspecs): Remove typedef_decl.
* c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
	typedef_p and typedef_signed_p.
	* c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
	(grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
	Check typedef_p and typedef_signed_p, not typedef_decl.
	(grokfield): Check typedef_p, not typedef_decl.
	(build_null_declspecs): Initialize typedef_p and typedef_signed_p,
	not typedef_decl.
	(declspecs_add_type): Set typedef_p and typedef_signed_p, not
	typedef_decl.

testsuite:
	* gcc.dg/bitfld-9.c: New test.

From-SVN: r87326
2004-09-11 00:10:05 +01:00
Kazu Hirata
a8508d5144 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
From-SVN: r87324
2004-09-10 22:16:40 +00:00
Ziemowit Laski
f749f3c20d decl.c (objc_mark_locals_volatile): Make description of routine more descriptive...
[gcc/cp/ChangeLog]
2004-09-10  Ziemowit Laski  <zlaski@apple.com>

        * decl.c (objc_mark_locals_volatile): Make description of
        routine more descriptive; only mark VAR_DECLs at each
        binding level.

From-SVN: r87323
2004-09-10 22:11:48 +00:00
Richard Henderson
981c353ef5 re PR c++/17386 (libstdc++ iostreams miscompilation)
PR c++/17386
        * call.c (build_vfield_ref): Move...
        * class.c (build_vfield_ref): ... here.  Convert datum to the
        primary base containing the vptr.
        (make_new_vtable): Simplify build_primary_vtable arguments.
        (finish_struct_1): Do not duplicate TYPE_VFIELD.
        * typeck.c (build_class_member_access_expr): Don't warn for
        null object access to base fields.

From-SVN: r87322
2004-09-10 14:42:00 -07:00
Ziemowit Laski
80aa8340eb decl.c (objc_get_current_scope, [...]): New functions, to be called from ObjC++.
[gcc/cp/ChangeLog]
2004-09-10  Ziemowit Laski  <zlaski@apple.com>

        * decl.c (objc_get_current_scope, objc_mark_locals_volatile):
        New functions, to be called from ObjC++.

From-SVN: r87321
2004-09-10 20:47:34 +00:00
Geoffrey Keating
375d2edc9f dbxout.c (dbxout_block): Update for current_function_func_begin_label a string.
* dbxout.c (dbxout_block): Update for
	current_function_func_begin_label a string.
	* dwarf2out.c (dwarf2out_begin_prologue): Likewise.
	* except.c (dw2_output_call_site_table): Likewise.
	* toplev.c (current_function_func_begin_label): Likewise.
	* tree.h (current_function_func_begin_label): Likewise.
	* config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.

From-SVN: r87317
2004-09-10 19:03:13 +00:00
Geoffrey Keating
c383c15f29 final.c (output_asm_insn): Use strtoul instead of atoi, save a loop.
* final.c (output_asm_insn): Use strtoul instead of atoi, save a
	loop.

From-SVN: r87316
2004-09-10 19:01:04 +00:00
Geoffrey Keating
1adaa11772 darwin.c: Include target.h.
* config/darwin.c: Include target.h.
	(struct machopic_indirection): Make ptr_name a string.
	(machopic_indirection_hash): Update for ptr_name a string.
	(machopic_indirection_eq): Likewise.
	(machopic_indirection_name): Likewise.
	(machopic_output_indirection): Likewise.
	(machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
	string.  Don't expect stub names to be in the identifier hash table.
	Do call strip_name_encoding before looking up entry in ID hash table.
	* config/t-darwin (darwin.o): Add target.h to dependencies.

From-SVN: r87315
2004-09-10 18:57:43 +00:00
Geoffrey Keating
fb5c67a7be rs6000.c (print_operand): Use fputs instead of fprintf for register names.
* gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
	of fprintf for register names.

From-SVN: r87314
2004-09-10 18:56:10 +00:00
Geoffrey Keating
5f11bc8b45 output.h (unlikely_section_label): Delete declaration.
* output.h (unlikely_section_label): Delete declaration.
	(unlikely_text_section_name): Likewise.
	* varasm.c (unlikely_section_label_printed): Make static.
	(unlikely_section_label): Likewise.
	(unlikely_text_section_name): Likewise.

From-SVN: r87313
2004-09-10 18:54:31 +00:00
Geoffrey Keating
18b3a02a1c * rtl.def (REG): Add comment to describe third field.
From-SVN: r87312
2004-09-10 18:52:41 +00:00
DJ Delorie
5b14d144b8 FIx whitespace typo.
From-SVN: r87310
2004-09-10 13:49:49 -04:00
Andrew Pinski
76f60aa59c darwin.c (machopic_mcount_stub_name): Call machopic_indirection_name instead of making the string ourselves.
2004-09-10  Andrew Pinski  <apinski@apple.com>

        * config/darwin.c (machopic_mcount_stub_name): Call
        machopic_indirection_name instead of making the string
        ourselves.

From-SVN: r87309
2004-09-10 10:26:54 -07:00
Diego Novillo
e30b0ae2fa Revert
2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>

	    * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
	    memory tag is call clobbered, so are its aliases.
	    (group_aliases): When two memory tags being grouped, if one is
	    call clobbered, so are the other and its aliases.
	    (add_may_alias): Remove call-clobbering stuff.
	    (replace_may_alias): Likewise.
	    (merge_pointed_to_info): Merge pt_global_mem

From-SVN: r87306
2004-09-10 12:52:45 -04:00
Kazu Hirata
89dbed81f4 bb-reorder.c, [...]: Fix comment typos.
* bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
	genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
	passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
	tree-scalar-evolution.c, tree-ssa-copyrename.c,
	tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.

From-SVN: r87302
2004-09-10 15:09:39 +00:00
Richard Sandiford
094e84faf0 frv.md (UNSPEC_MASACCS, [...]): New constants.
* config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
	(maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
	pair.  Remove match_dup from inputs.  Remove masaccs handling.
	(mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
	(masaccs, mdasaccs): Turn into define_insns.

From-SVN: r87299
2004-09-10 14:14:30 +00:00
Adam Nemet
d635c70797 inclhack.def (lynx_void_int): Remove.
* inclhack.def (lynx_void_int): Remove.
	(lynxos_fcntl_proto): Remove.
	(lynxos_no_warning_in_sys_time_h): New fix.
	(lynxos_missing_putenv): New fix.
	* fixincl.x: Regenerate.
	* tests/base/fcntl.h: Remove.
	* tests/base/sys/time.h: Update from test area.
	* tests/base/curses.h: Likewise.
	* tests/base/stdlib.h: Likewise.

From-SVN: r87298
2004-09-10 13:56:50 +00:00
Richard Sandiford
85d6252029 tree-tailcall.c (process_assignment): Only do accumulator transforms for floating-point types if...
* tree-tailcall.c (process_assignment): Only do accumulator transforms
	for floating-point types if flag_unsafe_math_optimizations.

From-SVN: r87297
2004-09-10 12:00:33 +00:00
Nathan Sidwell
315fcf9741 * MAINTAINERS: Add self as c++ and type-safe vector maintainer.
From-SVN: r87296
2004-09-10 11:58:00 +00:00
Kazu Hirata
c112cf2bca darwin.c, [...]: Fix comment typos.
* config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
	config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
	config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
	config/h8300/h8300.md, config/i386/gmm_malloc.h,
	config/ia64/ia64.md, config/ip2k/libgcc.S,
	config/mips/mips-ps-3d.md, config/mips/mips.c,
	config/rs6000/rs6000.c, config/s390/s390.c,
	config/sh/symbian.c: Fix comment typos.

From-SVN: r87295
2004-09-10 11:55:21 +00:00