aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-09-11tree.c (tree_code_size): New function, bulk of code from tree_size.Zack Weinberg4-36/+56
* tree.c (tree_code_size): New function, bulk of code from tree_size. (tree_size, make_node): Use it. * tree-ssa-pre.c (init_pre): Use it. * tree.h: Prototype it. From-SVN: r87371
2004-09-11Make-lang.in (java/ggc-none.c): Change dependency for ggc.h into $(GGC_H).Andrew Pinski2-1/+6
2004-09-11 Andrew Pinski <apinski@apple.com> * Make-lang.in (java/ggc-none.c): Change dependency for ggc.h into $(GGC_H). From-SVN: r87370
2004-09-11tree-cfg.c (set_bb_for_stmt): Use PHI_BB.Zdenek Dvorak8-51/+129
* tree-cfg.c (set_bb_for_stmt): Use PHI_BB. * tree-dfa.c (compute_immediate_uses, add_immediate_use, redirect_immediate_use): Use PHI_DF. * tree-flow-inline.h (stmt_ann): Abort on phi nodes. (bb_for_stmt): Use PHI_BB. (get_immediate_uses): Use PHI_DF. * tree-ssa-dse.c (max_stmt_uid): New variable. (get_stmt_uid): New function. (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi node annotations. * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations. (max_uid): Renamed to max_stmt_uid. (get_stmt_uid): New function. (maybe_queue_var, single_reachable_address, determine_lsm): Do not use phi node annotations. * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations. * tree.h (PHI_BB, PHI_DF): New accessor functions. (struct tree_phi_node): Add bb and df fields. From-SVN: r87369
2004-09-11re PR middle-end/17416 (stack variable merging doesn't work)Richard Henderson2-6/+8
PR middle-end/17416 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug in conflict loop. From-SVN: r87366
2004-09-11i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.Jan Hubicka3-4/+13
* 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-11profile.c (BB_TO_GCOV_INDEX): move more to the front.Jan Hubicka3-59/+151
* 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-11re PR c++/17412 (tree check failure in fold-const)Steven Bosscher6-10/+53
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-11re PR libgcj/14751 ([win32] thread creation leaks system handle resources)Mohan Embar3-2/+17
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-11natThread.cc (finalize_native): Destroy join conditional variable and mutex ↵Mohan Embar2-0/+12
if... * java/lang/natThread.cc (finalize_native): Destroy join conditional variable and mutex if these destroy operations are supported. From-SVN: r87361
2004-09-11Make-lang.in (java/win32-host.o): Add dependency on coretypes.h.Mohan Embar3-1/+9
* 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-11Make-lang.in (GCJH_OBJS): Change dependency from ggc-none.o to java/ggc-none.oMohan Embar2-2/+14
* 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-11ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE, "config.h" if not.Mohan Embar2-3/+13
* ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE, "config.h" if not. From-SVN: r87358
2004-09-11tree-ssa-alias.c (collect_points_to_info_r): Handle pointing to PTR + OFFSET ↵Jakub Jelinek4-4/+39
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* crontab: Rename GCC 3.5 snapshots to GCC 4.0 snapshots.Gerald Pfeifer2-1/+5
From-SVN: r87356
2004-09-11* expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.Richard Henderson2-7/+40
(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-11Add PR target/17277 to ChangeLog entry.David Edelsohn1-0/+1
From-SVN: r87354
2004-09-11aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to choose 64-bit version.David Edelsohn2-1/+6
* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to choose 64-bit version. From-SVN: r87352
2004-09-11re PR c/17396 (ICE in tree-int-cst at -O0)Richard Henderson2-0/+13
PR c/17396 * c-typeck.c (build_unary_op): Add legacy offsetof hack. From-SVN: r87351
2004-09-11re PR tree-optimization/16437 (New c-torture failures after bitfield patch)Andreas Jaeger3-27/+5
* 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-11cfg.texi, [...]: Insert @: after i.e.Kazu Hirata8-24/+30
* 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* gcc.target/frv: New directory of FR-V-specific tests.Richard Sandiford23-0/+700
From-SVN: r87345
2004-09-11tree-pretty-print.c (dump_decl_name): Print unnamed decls as D.xxx rather ↵Geoffrey Keating2-2/+7
than <Dxxx>. * tree-pretty-print.c (dump_decl_name): Print unnamed decls as D.xxx rather than <Dxxx>. From-SVN: r87344
2004-09-11configure.ac (AC_MSG_CHECKING(what linker to use)): in_tree_ld_is_elf should ↵Adam Nemet3-2/+10
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* Makefile.in (all.cross): Add srcextra.Adam Nemet2-1/+5
From-SVN: r87342
2004-09-10Fix typos.James E Wilson2-2/+5
* 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-10Fix excess errors problem for invalid vector testcase.James E Wilson4-1/+11
* 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-11re PR middle-end/17024 (ICE in fold_cond_expr_with_comparison, at ↵Roger Sayle4-13/+59
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* final.c (output_asm_insn): Correct problem with -fverbose-asm.Geoffrey Keating2-2/+6
From-SVN: r87338
2004-09-10Add CONST1_RTX (vector mode) support.James E Wilson3-15/+49
* 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-11gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless temporary ↵Geoffrey Keating2-1/+5
variables. * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless temporary variables. From-SVN: r87335
2004-09-11Daily bump.GCC Administrator2-2/+2
From-SVN: r87333
2004-09-11re PR c/16046 (ICE tree check: expected tree_list, have identifier_node in ↵Eric Christopher4-9/+21
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-10c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.Zack Weinberg12-88/+77
* 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-11c-tree.h (struct c_declspecs): Remove typedef_decl.Joseph Myers5-15/+152
* 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-10* doc/tm.texi, doc/tree-ssa.texi: Fix typos.Kazu Hirata3-2/+6
From-SVN: r87324
2004-09-10decl.c (objc_mark_locals_volatile): Make description of routine more ↵Ziemowit Laski2-3/+14
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-10re PR c++/17386 (libstdc++ iostreams miscompilation)Richard Henderson4-42/+50
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-10decl.c (objc_get_current_scope, [...]): New functions, to be called from ObjC++.Ziemowit Laski2-0/+37
[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-10dbxout.c (dbxout_block): Update for current_function_func_begin_label a string.Geoffrey Keating7-17/+28
* 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-10final.c (output_asm_insn): Use strtoul instead of atoi, save a loop.Geoffrey Keating2-27/+35
* final.c (output_asm_insn): Use strtoul instead of atoi, save a loop. From-SVN: r87316
2004-09-10darwin.c: Include target.h.Geoffrey Keating3-37/+51
* 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-10rs6000.c (print_operand): Use fputs instead of fprintf for register names.Geoffrey Keating2-4/+7
* gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead of fprintf for register names. From-SVN: r87314
2004-09-10output.h (unlikely_section_label): Delete declaration.Geoffrey Keating3-19/+12
* 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* rtl.def (REG): Add comment to describe third field.Geoffrey Keating2-1/+7
From-SVN: r87312
2004-09-10FIx whitespace typo.DJ Delorie1-0/+1
From-SVN: r87310
2004-09-10darwin.c (machopic_mcount_stub_name): Call machopic_indirection_name instead ↵Andrew Pinski2-1/+8
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-10RevertDiego Novillo2-27/+34
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-10bb-reorder.c, [...]: Fix comment typos.Kazu Hirata17-24/+32
* 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-10frv.md (UNSPEC_MASACCS, [...]): New constants.Richard Sandiford2-69/+63
* 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-10inclhack.def (lynx_void_int): Remove.Adam Nemet7-75/+93
* 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