1. 09 Jun, 2004 4 commits
  2. 08 Jun, 2004 23 commits
  3. 07 Jun, 2004 13 commits
    • 2004-06-07 Dhruv Matani <dhruvbird@gmx.net> · 345b912f
      	    Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/testsuite_performance.h
      	(resource_counter::allocated_memory): Make it return the right
      	number of bytes requested by the allocators/application. This is
      	the sbrk+mmaped memory.
      
      Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
      
      From-SVN: r82725
      Dhruv Matani committed
    • re PR target/15783 (ICE with union assignment in 64-bit mode) · 85bbb21f
      	PR target/15783
      	* config/sparc/sparc.c (function_arg_union_value): Add 'mode'
      	parameter.  Enumerate the registers inside the PARALLEL.
      	(function_arg): Adjust call to function_arg_union_value.
      	(function_value): Likewise.
      
      From-SVN: r82722
      Eric Botcazou committed
    • real.c (real_copysign): New function to implement libm's copysign. · 67057c53
      
      	* real.c (real_copysign): New function to implement libm's copysign.
      	* real.h (real_copysign): Prototype here.
      	* fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
      	and sqrtl can be negative, as sqrt(-0.0) = -0.0.  Correct whitespace.
      	* builtins.c (fold_builtin_isascii, fold_builtin_toascii,
      	fold_builtin_isdigit): Add function prototypes.
      	(fold_builtin_copysign): New function to fold copysign, copysignf
      	and copysignl.  Optimize copysign(x,x) as x.  Evaluate copysign of
      	constant arguments at compile-time using real_copysign.  Fold
      	copysign(X,Y) as fabs(X) if Y is always non-negative.
      	(fold_builtin_1): Correct minor whitespace/style issues.  Call
      	fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
      
      	* gcc.dg/builtins-41.c: New test case.
      	* gcc.dg/builtins-42.c: New test case.
      
      From-SVN: r82721
      Roger Sayle committed
    • * tree.c (iterative_hash_expr): Use real_hash. · f29b9db9
      From-SVN: r82720
      J"orn Rennecke committed
    • altivec-1.C: XFAIL powerpc-ibm-aix*. · 2435e036
              * g++.dg/ext/altivec-1.C: XFAIL powerpc-ibm-aix*.
              * g++.dg/ext/altivec-10.C: Same.
              * g++.dg/ext/altivec-2.C: Same.
              * g++.dg/ext/altivec-3.C: Same.
              * g++.dg/ext/altivec-4.C: Same.
              * g++.dg/ext/altivec-5.C: Same.
              * g++.dg/ext/altivec-6.C: Same.
              * g++.dg/ext/altivec-7.C: Same.
              * g++.dg/ext/altivec-8.C: Same.
              * g++.dg/ext/altivec-9.C: Same.
              * g++.old-deja/g++.abi/cxa_vec.C: Same.
              * g++.old-deja/g++.brendan/new3.C: Same.
              * gcc.c-torture/execute/eeprof-1.x: Same.
      
      From-SVN: r82718
      David Edelsohn committed
    • ada-tree.def (TRANSFORM_EXPR, [...]): Deleted. · 821e1ea1
      	* ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
      	(GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
      	(BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
      	(ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
      	(STMT_STMT, USE_STMT): New statement codes.
      	(LOOP_STMT, EXIT_STMT): Make slight semantic changes.
      	* ada-tree.h: Reflect above changes.
       	(struct tree_loop_id): Deleted.
      	(union lang_tree_node, struct lang_decl, struct lang_type):
      	Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
      	and DECL_LANGUAGE_SPECIFIC to reflect these changes.
      	(DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
      	(IS_ADA_STMT): New macro.
      	* decl.c (annotate_decl_with_node): New function.
      	(gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
      	(gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
      	Call add_stmt_with_node to do needed assignments.
      	Add call to update setjmp buffer directly, not via EXPR_STMT.
      	(maybe_variable): Argment GNAT_NODE deleted.
      	* gigi.h (maybe_variable): Likewise.
      	(make_transform, add_stmt_with_node, set_block_for_group): New.
      	(gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
      	(set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
      	(discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
      	(set_lineno, set_lineno_from_sloc): Likewise.
      	(record_code_position, insert_code_for): Likewise.
      	(gnat_poplevel): Now returns void.
      	(end_subprog_body): Now takes argument.
      	* misc.c (cgraph.h, tree-inline.h): New includes.
      	(gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
      	(gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
      	(LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
      	(LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
      	(gnat_parse_file): Don't set immediate_size_expand.
      	Call cgraph functions.
      	(gnat_expand_expr): Remove most cases.
      	(record_code_position, insert_code_for): Remove from here.
      	* trans.c (toplev.h, tree-gimple.h): Now included.
      	(discard_file_names): Deleted.
      	(gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
      	(first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
      	(struct stmt_group, current_stmt_group, stmt_group_free_list): New.
      	(gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
      	(add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
      	(gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
      	(gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
      	(set_block_for_group, add_stmt_list): Likewise.
      	(start_stmt_group): Renamed from start_block_stmt.
      	(end_stmt_group): Likewise, from end_block_stmt.
      	(build_stmt_group): Likewise, from build_block_stmt, also add arg.
      	(gigi): Don't set discard_file_names or call set_lineno.
      	Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
      	(tree_transform): Deleted, now renamed to be gnat_to_gnu.
      	Numerous changes throughout to reflect new names and complete
      	function-at-a-time implementation.
      	(gnat_expand_stmt): Delete or comment out all cases.
      	(process_inlined_subprograms): Use add_stmt.
      	(process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
      	call set_lineno; also remove unneeded block handling.
      	(process_type): Remove unneeded block handling.
      	(build_unit_elab): Remove calls to deleted functions.
      	* utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
      	(tree-dump.h): Likewise.
      	(struct ada_binding_level): Add field jmpbuf_decl.
      	(gnat_define_builtin, gnat_install_builtins): New.
      	(gnat_gimplify_function, gnat_finalize): Likewise.
      	(gnat_poplevel): No longer return BLOCK, set it instead.
      	Remove code dealing with nested functions.
      	(gnat_init_decl_processing): Also set size_type_node.
      	Call gnat_install_builtins.
      	(create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
      	(create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
      	Remove special-case for "main".
      	(end_subprog_body): Add arg and rework for tree-ssa.
      	(convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
      	Add case for BOOLEAN_TYPE.
      	* utils2.c (rtl.h): Now include.
      	(build_call_raise): Test Debug_Flag_NN directly.
      	(build_call_alloc_dealloc): Don't use local stack allocation for now.
      	(gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
      	(gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
      
      From-SVN: r82714
      Richard Kenner committed
    • re PR c/14765 (ice-on-invalid-code, ICE while compiling ({}) expression) · 45b0c94c
      	PR c/14765
      	* c-parse.in (compstmt_primary_start): Set last_expr_type to
      	NULL_TREE.
      
      testsuite:
      	* gcc.dg/pr14765-1.c: New test.
      
      From-SVN: r82713
      Joseph Myers committed
    • re PR c++/15815 (Update #pragma interface and #pragma implementation documentation.) · 3743236e
      	PR c++/15815
      	* lex.c (handle_pragma_interface): Deprecate.
      	(handle_pragma_implementation): Likewise.
      
      	PR c++/15815
      	* doc/extend.texi: Deprecate #pragma interface and #pragma
      	implementation.
      
      From-SVN: r82712
      Mark Mitchell committed
    • re PR middle-end/15666 ([unit-at-a-time] Gcc abort on valid code) · 0b395e19
      PR middle-end/15666
      * c-decl.c (finish_decl): Use change_decl_assembler_name for the
      builtin decl as well.
      
      From-SVN: r82706
      Alexandre Oliva committed
    • re PR c/14649 (atan(1.0) should not be a constant expression) · bf730f15
      
      	PR c/14649
      	* c-typeck.c (require_constant_value, require_constant_elements):
      	Move declarations to the top of the file.
      	(build_function_call): If we require a constant value, fold with
      	fold_initializer.  If the result is a constant, and the function
      	wasn't called using __builtin_foo, issue a pedantic warning.
      	(build_unary_op): If we require a constant value, fold tree with
      	fold_initializer.
      	(build_binary_op): Use require_constant_value to determine whether
      	to call fold or fold_initializer.
      
      	* gcc.dg/pr14649-1.c: New test case.
      
      From-SVN: r82705
      Roger Sayle committed
    • configure.ac: Add x86_64-*-freebsd* support. · cb623172
      2004-06-06  Sean McNeil  <sean@mcneil.com>
      
      	* configure.ac: Add x86_64-*-freebsd* support.
      	* configure: Regenerate.
      
      From-SVN: r82703
      Sean McNeil committed
    • gimple-low.c (struct lower_data): Add the_return_label and one_return_stmt. · f5a76aea
              * gimple-low.c (struct lower_data): Add the_return_label and
              one_return_stmt.
              (lower_function_body): Initialize and use them.
              (lower_return_expr): New.
              (lower_stmt): Call it.
              * gimplify.c (gimplify_return_expr): Force the argument to be either
              null or a result_decl.
              * tree-gimple.c: Update gimple grammer to match.
              * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
              coalescing of result_decls.
      testsuite/
              * gcc.dg/tree-ssa/20030728-1.c: Fixup return value to not match
              if temporaries.
      
      From-SVN: r82701
      Richard Henderson committed
    • * g++.dg/eh/elide1.C: Remove XFAIL. · 8cd0b81e
      From-SVN: r82700
      David Edelsohn committed