1. 13 Sep, 2004 5 commits
  2. 12 Sep, 2004 21 commits
  3. 11 Sep, 2004 14 commits
    • re PR middle-end/17411 (ICE in immed_double_const) · ec76a0e0
      
      	PR middle-end/17411
      	* tree-sra.c (generate_element_zero): Revert recent build_int_cst
      	change. elt->type may be a floating point type, so use fold_convert.
      
      	* g++.dg/opt/pr17411-1.C: New test case.
      
      From-SVN: r87377
      Roger Sayle committed
    • c-tree.h (enum c_storage_class): New. · d6a1dfd9
      	* c-tree.h (enum c_storage_class): New.
      	(struct c_declspecs): Add storage_class, inline_p and thread_p.
      	* c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
      	declarations and "auto" or "register" in file scope empty
      	declarations.  Give more specific warnings for other cases of
      	storage class specifiers in empty declarations.
      	(grokdeclarator): Update for new structures.  Don't check for
      	multiple storage classes.  Diagnose file-scope "register" if
      	pedantic.
      	(build_null_declspecs): Update.
      	(declspecs_add_scspec): Update.  Diagnose multiple storage class
      	specifiers and invalid uses of "__thread".
      
      testsuite:
      	* gcc.dg/declspec-4.c, gcc.dg/declspec-5.c, gcc.dg/declspec-6.c,
      	gcc.dg/tls/diag-2.c: Update expected messages.
      	* gcc.dg/991209-1.c: Specify compilation options.  Update expected
      	messages.
      	* gcc.dg/pr14289-2.c, gcc.dg/pr14289-3.c: Remove.
      	* gcc.dg/declspec-7.c, gcc.dg/declspec-8.c, gcc.dg/declspec-9.c,
      	gcc.dg/declspec-10.c, gcc.dg/declspec-11.c, gcc.dg/tls/diag-4.c,
      	gcc.dg/tls/diag-5.c: New tests.
      
      From-SVN: r87376
      Joseph Myers committed
    • darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark the thing referenced as… · ca472546
      darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark the thing referenced as used, not the stub itself.
      
      	* config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
      	the thing referenced as used, not the stub itself.
      
      From-SVN: r87375
      Geoffrey Keating committed
    • c-tree.h (enum c_storage_class): New. · 9a26d6ee
      	* c-tree.h (enum c_storage_class): New.
      	(struct c_declspecs): Add storage_class, inline_p and thread_p.
      	* c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
      	declarations and "auto" or "register" in file scope empty
      	declarations.  Give more specific warnings for other cases of
      	storage class specifiers in empty declarations.
      	(grokdeclarator): Update for new structures.  Don't check for
      	multiple storage classes.  Diagnose file-scope "register" if
      	pedantic.
      	(build_null_declspecs): Update.
      	(declspecs_add_scspec): Update.  Diagnose multiple storage class
      	specifiers and invalid uses of "__thread".
      
      testsuite:
      	* gcc.dg/declspec-4.c, gcc.dg/declspec-5.c, gcc.dg/declspec-6.c,
      	gcc.dg/tls/diag-2.c: Update expected messages.
      	* gcc.dg/991209-1.c: Specify compilation options.  Update expected
      	messages.
      	* gcc.dg/pr14289-2.c, gcc.dg/pr14289-3.c: Remove.
      	* gcc.dg/declspec-7.c, gcc.dg/declspec-8.c, gcc.dg/declspec-9.c,
      	gcc.dg/declspec-10.c, gcc.dg/declspec-11.c, gcc.dg/tls/diag-4.c,
      	gcc.dg/tls/diag-5.c: New tests.
      
      From-SVN: r87374
      Joseph Myers committed
    • * gcc.dg/20040910-1.c: Correct dg-error regexp. · e6858057
      From-SVN: r87373
      Zack Weinberg committed
    • tree.c (tree_code_size): New function, bulk of code from tree_size. · a38b644b
      	* 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
      Zack Weinberg committed
    • Make-lang.in (java/ggc-none.c): Change dependency for ggc.h into $(GGC_H). · 68a97276
      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
      Andrew Pinski committed
    • tree-cfg.c (set_bb_for_stmt): Use PHI_BB. · 30d396e3
      	* 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
      Zdenek Dvorak committed
    • re PR middle-end/17416 (stack variable merging doesn't work) · f4a6d54e
              PR middle-end/17416
              * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
              in conflict loop.
      
      From-SVN: r87366
      Richard Henderson committed
    • i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment. · 1d1df0df
      	* 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
      Jan Hubicka committed
    • profile.c (BB_TO_GCOV_INDEX): move more to the front. · f43329a5
      	* 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
      Jan Hubicka committed
    • re PR c++/17412 (tree check failure in fold-const) · 05cf561d
      	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
      Steven Bosscher committed
    • re PR libgcj/14751 ([win32] thread creation leaks system handle resources) · a0be84dd
      	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
      Mohan Embar committed
    • natThread.cc (finalize_native): Destroy join conditional variable and mutex if... · bdbf6060
      	* java/lang/natThread.cc (finalize_native): Destroy
      	join conditional variable and mutex if these destroy
      	operations are supported.
      
      From-SVN: r87361
      Mohan Embar committed