- 24 Feb, 2005 21 commits
-
-
PR middle-end/19953 * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New. (fold_builtin_1): Call them. * fold-const.c (fold_complex_mult_parts): Split out from ... (fold_complex_mult): ... here. Fix typo in both imaginary case. (fold_complex_div_parts, fold_complex_div): New. (fold): Use them. * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare. From-SVN: r95511
Richard Henderson committed -
* tree-ssa-ccp.c (visit_assignment): Verify that result of VIEW_CONVERT_EXPR is_gimple_min_invariant. From-SVN: r95510
Richard Kenner committed -
2005-02-24 Benjamin Kosnik <bkoz@redhat.com> * include/std/std_complex.h: _GLIBCXX_USE_C99_COMPLEX_MATH to _GLIBCXX_USE_C99_COMPLEX. * acinclude.m4: Same. * acconfig.h: Same. * configure: Regenerate. * config.h.in: Same. From-SVN: r95508
Benjamin Kosnik committed -
* print-tree.c (print_node_brief): Print LABEL_DECL_UID. (print_node): Likewise. Print TYPE_SIZES_GIMPLIFIED. From-SVN: r95507
Richard Kenner committed -
* module.c (find_true_name): Deal with NULL module. From-SVN: r95506
Tobias Schlüter committed -
("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input operands as commutative in constraints. From-SVN: r95505
Hans-Peter Nilsson committed -
2005-02-24 James A. Morrison <phython@gcc.gnu.org> PR other/19896 * execute/execute.exp: New file. * execute/funccall.tree, execute/funccall-2.tree, execute/initial.tree, execute/main.tree, execute/static.tree: New tests. From-SVN: r95504
James A. Morrison committed -
2005-02-24 James A. Morrison <phython@gcc.gnu.org> PR other/19896 * treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL, TREE_PUBLIC, and TREE_STATIC for var_decl to zero. Don't call rest_of_decl_compilation on static variables. (pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic variables. From-SVN: r95503
James A. Morrison committed -
2005-02-24 James A. Morrison <phython@gcc.gnu.org> PR other/19897 * compile/exit.tree, compile/extref.tree, compile/function-1.tree, compile/syntax-1.tree: New tests. From-SVN: r95502
James A. Morrison committed -
2005-02-24 James A. Morrison <phython@gcc.gnu.org> * parse.y: (function_prototype): Accept EXTERNAL_REFERENCE_STORAGE. Move function parameters check from ... (function): ...Here. Update call to tree_code_create_function_initial. (function_invocation): Use expressions_with_commas_opt instead of expressions_with_commas. (expressions_with_commas_opt): New rule. * treetree.c (tree_code_create_function_prototype): Create PARM_DECLs for function parameters. (tree_code_create_function_initial): Remove PARMS parameter. Don't create PARM_DECLs for function parameters. * treetree.h (tree_code_create_function_initial): Remove PARMS parameter. From-SVN: r95501
James A. Morrison committed -
2005-02-24 James A. Morrison <phython@gcc.gnu.org> * MAINTAINERS (Language Front Ends Maintainers): Add myself as treelang maintainer. (Write After Approval): Remove myself. From-SVN: r95500
James A. Morrison committed -
From-SVN: r95499
Diego Novillo committed -
2005-02-23 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> * gfortran.h (gfc_component, gfc_actual_arglist, ... ... argument. Copy string instead of pointing to it. From-SVN: r95496
Tobias Schlüter committed -
PR middle-end/18902 * c-opts.c (c_common_post_options): Set flag_complex_method to 2 for c99. * common.opt (fcx-limited-range): New. * opts.c (set_fast_math_flags): Set flag_cx_limited_range. * toplev.c (flag_complex_method): Initialize to 1. (process_options): Set flag_complex_method to 0 if flag_cx_limited_range. * doc/invoke.texi (-fcx-limited-range): New. From-SVN: r95493
Richard Henderson committed -
2005-02-24 Paolo Carlini <pcarlini@suse.de> * include/tr1/functional (mem_fn): Avoid _T, badname on Darwin. From-SVN: r95492
Paolo Carlini committed -
2005-02-24 David Gilbert <david.gilbert@object-refinery.com> * java/awt/font/TextAttribute.java: changed names to lower case; (readResolve): implemented. Added doc comments all over. From-SVN: r95491
David Gilbert committed -
PR c++/19878 * decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations with internal linkage. PR c++/19878 * g++.dg/init/const2.C: New test. From-SVN: r95490
Mark Mitchell committed -
cse.c (delete_trivially_dead_insns): Speed up by using NEXT_INSN and PREV_INSN directly instead of next_real_insn... * cse.c (delete_trivially_dead_insns): Speed up by using NEXT_INSN and PREV_INSN directly instead of next_real_insn and prev_real_insn. From-SVN: r95488
Kazu Hirata committed -
* config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf functions when -mid-shared-library is being used. From-SVN: r95487
Andrea Tarani committed -
From-SVN: r95486
Douglas Gregor committed -
From-SVN: r95481
GCC Administrator committed
-
- 23 Feb, 2005 19 commits
-
-
* doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove. (LINK_LIBGCC_SPECIAL_1): Don't mention it. * gcc.c: Don't check for LINK_LIBGCC_SPECIAL. * system.h: Poison LINK_LIBGCC_SPECIAL. From-SVN: r95476
Daniel Jacobowitz committed -
* Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link. From-SVN: r95475
James E Wilson committed -
re PR tree-optimization/20100 (LIM is pulling out a pure function even though there is something which can modify global memory) PR tree-optimization/20100 * gcc.c-torture/execute/pr20100-1.c: New test. From-SVN: r95474
Hans-Peter Nilsson committed -
* gengtype.c (note_insn_name): Make 1 element larger. From-SVN: r95473
James E Wilson committed -
* gfortran.h (gfc_component, gfc_actual_arglist, gfc_user_op): Make 'name' a 'const char *'. (gfc_symbol): Likewise, also for 'module'. (gfc_symtree): Make 'name' a 'const char *'. (gfc_intrinsic_sym): Likewise, also for 'lib_name'. (gfc_get_gsymbol, gfc_find_gsymbol): Add 'const' qualifier to 'char *' argument. (gfc_intrinsic_symbol): Use 'gfc_get_string' instead of 'strcpy' to initialize 'SYM->module'. * check.c (gfc_check_minloc_maxloc, check_reduction): Check for NULL pointer instead of empty string. * dump-parse-tree.c (gfc_show_actual_arglist): Likewise. * interface.c (gfc_compare_types): Adapt check to account for possible NULL pointer. (compare_actual_formal): Check for NULL pointer instead of empty string. * intrinsic.c (gfc_current_intrinsic, gfc_current_intrinsic_arg): Add 'const' qualifier. (conv_name): Return a heap allocated string. (find_conv): Add 'const' qualifier to 'target'. (add_sym): Use 'gfc_get_string' instead of 'strcpy'. (make_generic): Check for NULL pointer instead of emptystring. (make_alias): Use 'gfc_get_string' instead of 'strcpy'. (add_conv): No need to strcpy result from 'conv_name'. (sort_actual): Check for NULL pointer instead of emptystring. * intrinsic.h (gfc_current_intrinsic, gfc_current_intrinsic_arg): Adapt prototype. * module.c (compare_true_names): Compare pointers instead of strings for 'module' member. (find_true_name): Initialize string fields with gfc_get_string. (mio_pool_string): New function. (mio_internal_string): Adapt comment. (mio_component_ref, mio_component, mio_actual_arg): Use 'mio_pool_string' instead of 'mio_internal_string'. (mio_symbol_interface): Add 'const' qualifier to string arguments. Add level of indirection. Use 'mio_pool_string' instead of 'mio_internal_string'. (load_needed, read_module): Use 'gfc_get_string' instead of 'strcpy'. (write_common, write_symbol): Use 'mio_pool_string' instead of 'mio_internal_string'. (write_symbol0, write_symbol1): Likewise, also check for NULL pointer instead of empty string. (write_operator, write_generic): Pass correct type variable to 'mio_symbol_interface'. (write_symtree): Use 'mio_pool_string' instead of 'mio_internal_string'. * primary.c (match_keyword_arg): Adapt check to possible case of NULL pointer. Use 'gfc_get_string' instead of 'strcpy'. * symbol.c (gfc_add_component, gfc_new_symtree, delete_symtree, gfc_get_uop, gfc_new_symbol): Use 'gfc_get_string' instead of 'strcpy'. (ambiguous_symbol): Check for NULL pointer instead of empty string. (gfc_find_gsymbol, gfc_get_gsymbol): Add 'const' qualifier on string arguments. * trans-array.c (gfc_trans_auto_array_allocation): Check for NULL pointer instead of empty string. * trans-decl.c (gfc_sym_mangled_identifier, gfc_sym_mangled_function_id, gfc_finish_var_decl, gfc_get_symbol_decl, gfc_get_symbol_decl): Likewise. * trans-io.c (gfc_new_nml_name_expr): Add 'const' qualifier to argument. Copy string instead of pointing to it. From-SVN: r95472
Tobias Schlüter committed -
* gfortran.h (gfc_expr): Move 'operator', 'op1', 'op2', and 'uop' fields into new struct 'op' inside the 'value' union. * arith.c (eval_intrinsic): Adapt all users. * dependency.c (gfc_check_dependency): Likewise. * dump-parse-tree.c (gfc_show_expr): Likewise. * expr.c (gfc_get_expr): Don't clear removed fields. (free_expr0, gfc_copy_expr, gfc_type_convert_binary, gfc_is_constant_expr, simplify_intrinsic_op, check_init_expr, check_intrinsic_op): Adapt to new field names. * interface.c (gfc_extend_expr): Likewise. Also explicitly nullify 'esym' and 'isym' fields of new function call. * iresolve.c (gfc_resolve_dot_product, gfc_resolve_matmul): Adapt to renamed structure fields. * matchexp.c (build_node, match_level_1, match_expr): Likewise. * module.c (mio_expr): Likewise. * resolve.c (resolve_operator): Likewise. (gfc_find_forall_index): Likewise. Only look through operands if dealing with EXPR_OP * trans-array.c (gfc_walk_op_expr): Adapt to renamed fields. * trans-expr.c (gfc_conv_unary_op, gfc_conv_power_op, gfc_conv_concat_op, gfc_conv_expr_op): Likewise. From-SVN: r95471
Tobias Schlüter committed -
fortran/ * gfortran.h (symbol_attribute): New 'untyped' field, fix comment formatting. * symbol.c (gfc_set_default_type): Issue error only once, by setting and checking 'untyped' attribute. testsuite/ * gfortran.dg/deftype_1.f90: New test. From-SVN: r95469
Tobias Schlüter committed -
fortran/ * gfortran.h (gfc_get_namespace): Add second argument to prototype. * intrinsic.c (gfc_intrinsic_init_1): Pass second argument to gfc_get_namespace. * module.c (mio_namespace_ref, load_needed): Likewise. * parse.c (parse_interface, parse_contained): Likewise. Here the correct second argument matters. * symbol.c (gfc_get_namespace): Add parent_types argument, only copy parent's implicit types if this is set. (gfc_symbol_init_2): Pass second argument to gfc_get_namespace. * trans-common.c (build_common_decl): Likewise. testsuite/ * gfortran.dg/implicit_3.f90: New test. From-SVN: r95463
Tobias Schlüter committed -
gcc/cp/ChangeLog: * decl.c (grokvardecl): Don't exempt anonymous types from having linkage for variables that have linkage other than "C". gcc/testsuite/ChangeLog: * g++.dg/lookup/anon2.C: Don't let access checks make it look like the test passes. * g++.dg/other/anon3.C: Accept a warning. From-SVN: r95462
Alexandre Oliva committed -
PR target/20018 PR rtl-optimization/20097 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating BImode SUBREGs of SImode registers which confuse the ia64 backend. From-SVN: r95461
Roger Sayle committed -
* t-aix43 (SHLIB_INSTALL): Create directory for shared library. * t-aix52 (SHLIB_INSTALL): Same. From-SVN: r95460
David Edelsohn committed -
2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and JvVMOption. 2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * jni.cc (JNI_CreateJavaVM): Check JNI version. Cast args to JvVMInitArgs. Pass args to _Jv_CreateJavaVM and check return value. Move argument parsing code to prims.cc. * prims.cc (no_properties): Remove. (_Jv_Compiler_Properties): Initialize to NULL. (_Jv_Properties_Count): Initialize to 0. (parse_verbose_args): New function. (parse_init_args): New function. (_Jv_CreateJavaVM): Call parse_init_args. (_Jv_RunMain): Check return value of _Jv_CreateJavaVM. * gcj/cni.h (JvVMOption): New struct. (JvVMInitArgs): Likewise. (JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than void*. * libjava/gcj/javaprims.h (_Jv_VMOption): New struct. (_Jv_VMInitArgs): Likewise. * include/java-props.h (_Jv_Properties_Count): Declare. * java/lang/natRuntime.cc (insertSystemProperties): Use _Jv_Properties_Count in for loop exit condition. * testsuite/libjava.jni/jni.exp (gcj_invocation_compile_c_to_binary): New procedure. (gcj_invocation_test_one): Likewise. (gcj_jni_run): Run JNI invocation API tests. * testsuite/libjava.jni/invocation/PR16923.c, testsuite/libjava.jni/invocation/PR16923.java, testsuite/libjava.jni/invocation/PR16923.out: New test. From-SVN: r95459
Thomas Fitzsimmons committed -
2005-02-23 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits: Implement is_convertible. * testsuite/tr1/4_metaprogramming/relationships_between_types/ is_convertible/is_convertible.cc: New. * testsuite/tr1/4_metaprogramming/relationships_between_types/ is_convertible/typedefs.cc: Likewise. * testsuite/testsuite_tr1.h: Add class DerivedType. * include/tr1/type_traits (is_function): Don't mistake references to function types for function types. * testsuite/tr1/4_metaprogramming/primary_type_categories/ is_function/is_function.cc: Add testcase. From-SVN: r95458
Paolo Carlini committed -
gcc/ * genpreds.c: Update copyright. cp/ * cp-objcp-common.h, error.c: Update copyright. fortran/ * intrinsic.h, st.c: Update copyright. treelang/ * parse.y: Update copyright. From-SVN: r95457
Kazu Hirata committed -
From-SVN: r95456
Kazu Hirata committed -
2005-02-22 Andrew Haley <aph@redhat.com> PR libffi/20104 * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to odd-numbered register pairs for 64-bit integer types. From-SVN: r95455
Andrew Haley committed -
2005-02-23 Andreas Tobler <a.tobler@schweiz.ch> PR libffi/20104 * testsuite/libffi.call/return_ll1.c: New test case. From-SVN: r95454
Andreas Tobler committed -
PR target/20159 * config/sparc/t-elf (startup files): Assemble with CPP. From-SVN: r95450
Michael Beach committed -
2005-02-23 Bud Davis <bdavis@gfortran.org> * gfortran.dg/list_read_4.f90: Change to f90 comments. From-SVN: r95449
Bud Davis committed
-