- 01 Sep, 2004 40 commits
-
-
* gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long', not Windows 'DWORD'. (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo. (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise. (__gthr_win32_recursive_mutex_init_function): Add prototype for __GTHREAD_HIDE_WIN32API case.. (__gthr_win32_recursive_mutex_lock): Likewise. (__gthr_win32_recursive_mutex_trylock): Likewise. (__gthr_win32_recursive_mutex_unlock): Likewise. (__gthread_recursive_mutex_init_function); Add definition for __GTHREAD_HIDE_WIN32API case. (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement. * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement. Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net> From-SVN: r86939
Wu Yongwei committed -
* tree-tailcall.c (find_tail_calls): Also fail is statement has volatile operands. From-SVN: r86938
Richard Kenner committed -
From-SVN: r86937
Richard Henderson committed -
2004-09-01 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/16614 * include/ext/mt_allocator.h (__mt_base): Not type dependent, split into.. (__pool): New, specialize. (__common_pool): New, static bits here. (__per_type_pool): New, and here. (__mt_alloc_base): New. (__mt_alloc): Add template parameter, inherit from it. * src/allocator.cc: Split this... * src/allocator-inst.cc: And this... * src/pool_allocator.cc: ...into this. * src/mt_allocator.cc: ... and this. Add definitions for __mt_base. * src/Makefile.am (sources): Split allocator.cc to pool_allocator.cc and mt_allocator.cc. * src/Makefile.in: Regenerate. * config/linker-map.gnu: Add symbols. * docs/html/ext/mt_allocator.html: Document new design. * testsuite/ext/mt_allocator/tune-1.cc: New. * testsuite/ext/mt_allocator/tune-2.cc: New. * testsuite/ext/mt_allocator/tune-3.cc: New. * testsuite/ext/mt_allocator/tune-4.cc: New. * testsuite/testsuite_allocator.h (__gnu_test::check_new): New. * testsuite/ext/allocators.cc: Use check_new, split into... * testsuite/ext/mt_allocator/check_new.cc: this. * testsuite/ext/pool_allocator/check_new.cc: this. * testsuite/ext/malloc_allocator/check_new.cc: this. * testsuite/ext/debug_allocator/check_new.cc: this. * testsuite/ext/mt_allocator/instantiate.cc: this. * testsuite/ext/pool_allocator/instantiate.cc: this. * testsuite/ext/malloc_allocator/instantiate.cc: this. * testsuite/ext/debug_allocator/instantiate.cc: this. From-SVN: r86936
Benjamin Kosnik committed -
From-SVN: r86934
Richard Kenner committed -
* doc/c-tree.texi: Document new operands for ARRAY_REF and COMPONENT_REF. From-SVN: r86932
Richard Kenner committed -
fortran/ PR fortran/16400 PR fortran/16404 (port from g95) * resolve.c (resolve_transfer): New function. (resolve_code): Call resolve_transfer in case of EXEC_TRANSFER. testsuite/ PR fortran/16404 * gfortran.dg/der_io_1.f90: XFAIL illegal testcase. From-SVN: r86931
Tobias Schlüter committed -
* Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency. * common.opt (fspeculative-prefetching): New. * flags.h (flag_speculative_prefetching_set): Declare. * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative values. * opts.c (flag_sepculative_prefetching_set): New variable. (common_handle_option): Handle -fspeculative-prefetching. * passes.c (rest_of_compilation): Ditto. * profile.c (instrument_values, compute_value_histograms, branch_prob): Use vectors instead of arrays. * toplev.c (process_options): Handle -fspeculative-prefetching. * rtl-profile.c: Include ggc.h. (rtl_gen_interval_profiler, rtl_gen_pow2_profiler, rtl_gen_one_value_profiler_no_edge_manipulation, rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of argument changed. * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler, tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of argument changed. * value-prof.c: Include ggc.h. (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New macros. (insn_prefetch_values_to_profile, find_mem_reference_1, find_mem_reference_2, find_mem_reference, gen_speculative_prefetch, speculative_prefetching_transform): New. (value_profile_transformations): Call speculative_prefetching_transform. (insn_values_to_profile): Call insn_prefetch_values_to_profile. (insn_divmod_values_to_profile, rtl_find_values_to_profile, tree_find_values_to_profile, find_values to profile): Use vectors instead of arrays. (free_profiled_values): Removed. * value-prof.h (struct histogram_value): Renamed to struct histogram_value_t. (histogram_value, histogram_values): New types. (find_values_to_profile): Declaration changed. (free_profiled_values): Removed. (struct profile_hooks): Type of argument of the hooks changed to histogram_value. * doc/invoke.texi (-fspeculative-prefetching): Document. From-SVN: r86930
Zdenek Dvorak committed -
PR rtl-optimization/16408 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes. From-SVN: r86928
Zdenek Dvorak committed -
PR c/15224 * gcc.c-torture/compile/20040901-1.c: New test, from PR. From-SVN: r86927
Richard Kenner committed -
PR c/15224 * c-common.c (handle_mode_attribute): Handle ENUMERAL_TYPE. * c-decl.c (finish_enum): Check for user-specified precision too small. From-SVN: r86926
Richard Kenner committed -
* config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove. (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline. From-SVN: r86922
Richard Henderson committed -
From-SVN: r86921
Jakub Jelinek committed -
* mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. * mk-srk-inc.sh: Likewise. From-SVN: r86919
Eric Botcazou committed -
* config/darwin.c (machopic_symbol_defined_p): In addition to being SYMBOL_REF_LOCAL_P, a symbol must also be ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally defined in this output file, or translation unit in the case of IMA not being used. (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols never need .indirect_symbol when indirecting. From-SVN: r86915
Mike Stump committed -
From-SVN: r86914
Mark Mitchell committed -
From-SVN: r86913
Jakub Jelinek committed -
* fold-const.c (operand_equal_p): Require equal sign also for FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR. * gcc.c-torture/execute/20040831-1.c: New test. From-SVN: r86906
Jakub Jelinek committed -
* config.gcc (--with-cpu on ARM): Preserve the canonical cpu name for use in configargs.h. Put the cname in a separate variable. Use that to set target_cpu_default2. From-SVN: r86903
Richard Earnshaw committed -
* Makefile.in: Move BOOT_CFLAGS above host makefile fragment include. * configure.in: add test for powerpc-*-darwin* to specify makefile frag * configure: regenerate * config/mh-ppc-darwin: create file, override BOOT_CFLAGS for -mdynamic-no-pic From-SVN: r86902
Robert Bowdidge committed -
From-SVN: r86887
Arnaud Charlet committed -
12 bytes of instructions, 4 byte for the constant, 2 byte for aligning the constant. Co-Authored-By: Nick Clifton <nickc@redhat.com> From-SVN: r86886
J"orn Rennecke committed -
* arm/arm-cores.def (ARM_CORE): Add new field for the real name of the CPU. (arm7tdmi-s): New CPU name. * arm/arm.c (ARM_CORE): Update for new format. * arm/arm.h (ARM_CORE): Likewise. * arm/gentune.sh: Update for extra field. * config.gcc: Likewise. * arm/arm-tune.md: Regenerate. * doc/invoke.texi: Document the real processor names for ARM cpus. From-SVN: r86884
Richard Earnshaw committed -
2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM. * trans.c (struct stmt_group): Delete field GLOBAL. (gnat_init_stmt_group): Do not initialize it. (call_to_gnu): Use save_expr, not protect_multiple_eval. (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise. (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group. (start_stmt_group): Likewise. (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs. * utils2.c (ggc.h): Include. (build_call_raise): Call build_int_cst, not build_int_2. * utils.c (gnat_init_decl_processing): Fix arg to build_common_tree_nodes. (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST. (gnat_define_builtin): Set built_in_decls. (init_gigi_decls): Call build_int_cst, not build_int_2. * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree. (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros. (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise. (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE, SET_TYPE_MODULE): Use them. (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise. (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise. (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE, SET_TYPE_ADA_SIZE): Likewise. (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise. (DECL_CONST_CORRESPONDING_VAR, SET_DECL_CONST_CORRESPONDING_VAR): Likewise. (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise. (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted. (TYPE_RM_SIZE_NUM): New macro. (TYPE_RM_SIZE): Modified to use above. * cuintp.c: (build_cst_from_int): New function. (UI_To_gnu): Use it. * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM. (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type. (gnat_substitute_in_type, case ARRAY_TYPE): If old had a MIN_EXPR for the size, copy it into new. 2004-08-31 Robert Dewar <dewar@gnat.com> * exp_ch6.adb (Expand_Call): Properly handle validity checks for packed indexed component where array is an IN OUT formal. This generated garbage code previously. * gnat_ugn.texi: Document -fverbose-asm * gnat-style.texi: Minor updates (note that boolean constants and variables are joined with AND/OR rather than short circuit forms). 2004-08-31 Ed Schonberg <schonberg@gnat.com> * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if it is an upward conversion of an untagged type with no representation change. 2004-08-31 Thomas Quinot <quinot@act-europe.fr> * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to System.Partition_Interface. * checks.adb (Apply_Access_Checks): Do not generate checks when expander is not active (but check for unset reference to prefix of dereference). * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite pragma Debug as an if statement with a constant condition, for consistent treatment of entity references contained within the enclosed procedure call. 2004-08-31 Vincent Celier <celier@gnat.com> * bindgen.adb: (Set_EA_Last): New procedure (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure Set_EA_Last. (Gen_Adafinal_Ada): If no finalization, adafinal does nothing (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be linked without errors. (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays ST and EA. (Gen_Exception_Table_C): Correct same bugs * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty, on Windows, make sure that the drive letter is in upper case. * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on Windows, when the drive letter is added and Case_Sensitive is True, the drive letter is forced to upper case. * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options to Options_2 for the call to MLib.Utl.Gcc. * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as directory separator when defining BASE_DIR. 2004-08-19 Pascal Obry <obry@gnat.com> * gprcmd.adb (Extend): Do not output trailing directory separator. This is not needed and it confuses Windows GNU/make which does not report directory terminated by a slash as a directory. (gprcmd): Idem for "pwd" internal command. * Makefile.generic: Use __GPRCOLON__ instead of pipe character in target names rewrite to fix regressions with recent version of GNU/make. Starting with GNU/make 3.80 the pipe character was not handled properly anymore. From-SVN: r86883
Arnaud Charlet committed -
(floatdidf): New functions. * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf) (floatdisf): New functions. * t-arm-elf: Use them. From-SVN: r86882
Richard Earnshaw committed -
* Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change. * raise.c [!IN_RTS]: Undef abort. From-SVN: r86880
Andreas Schwab committed -
[gcc/ChangeLog] 2004-09-01 Ziemowit Laski <zlaski@apple.com> * c-common.h (lookup_interface): Remove prototype. (is_class_name): Rename to objc_is_class_name. (lookup_objc_ivar): Rename to objc_lookup_ivar. (get_current_scope): Rename to objc_get_current_scope. * c-decl.c (get_current_scope): Rename to objc_get_current_scope. * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable. (yylexname): Call objc_is_class_name() instead of is_class_name(). * c-typeck.c (build_external_ref): Call objc_lookup_ivar() instead of lookup_objc_ivar(). * stub-objc.c (lookup_interface): Remove stub. (is_class_name): Rename to objc_is_class_name. (lookup_objc_ivar): Rename to objc_lookup_ivar. [gcc/objc/ChangeLog] 2004-09-01 Ziemowit Laski <zlaski@apple.com> * objc-act.c (lookup_interface): Make function 'static' and add a local prototype. (objc_check_decl, get_class_reference, objc_declare_alias, objc_declare_class, objc_is_object_ptr): Call objc_is_class_name() instead of is_class_name(). (get_super_receiver, objc_clear_super_receiver): Call objc_get_current_scope() instead of get_current_scope(). (is_class_name): Rename to objc_is_class_name. (lookup_objc_ivar): Rename to objc_lookup_ivar. From-SVN: r86879
Ziemowit Laski committed -
2004-09-01 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (sorry): Remove. (clean-stage[+id+], clean-stage[+id+]-module): New targets. (cleanstrap targets): Depend on distclean, not distclean-stage1. (do-clean): Clean per-stage directories too. (do-distclean): Run distclean-stage1 too. (.NOTPARALLEL): Enable during toplevel bootstrap. (stage[+id+]-bubble): Enable parallel execution during the recursive invocation. * Makefile.in: Regenerate. Fix previous checkin: * Makefile.tpl: Move BOOT_CFLAGS above host makefile fragment include. * configure.in: Fix indentation. * configure: Regenerate. From-SVN: r86878
Paolo Bonzini committed -
2004-09-01 David Billinghurst <David.Billinghurst@riotinto.com> PR fortran/16579 * gfortran.dg/g77/20010610.f: Now passes. Copy from g77.f-torture/execute. Add dg-run directive. * gfortran.dg/g77/README: Update From-SVN: r86876
David Billinghurst committed -
* config.gcc (arm*-*-symbianelf*): Do not include t-bpabi. * config/arm/lib1funcs.asm: Do not include supplemental .S files when compiling for Symbian. * config/arm/symbian.h (RENAME_LIBRARY): New macro. (TARGET_OS_CPP_BUILTINS): Likewise. * config/arm/t-symbian (LIB1ASMFUNCS): Define. From-SVN: r86875
Mark Mitchell committed -
* config.gcc (arm*-*-symbianelf*): Do not include t-bpabi. * config/arm/lib1funcs.asm: Do not include supplemental .S files when compiling for Symbian. * config/arm/symbian.h (RENAME_LIBRARY): New macro. (TARGET_OS_CPP_BUILTINS): Likewise. * config/arm/t-symbian (LIB1ASMFUNCS): Define. [[Split portion of a mixed commit.]] From-SVN: r86874.2
Mark Mitchell committed -
From-SVN: r86872
Stan Shebs committed -
2004-08-31 Andrew Pinski <pinskia@physics.uc.edu> * gcc.dg/rs6000-power2-1.c (t1, t2, t3, t4): Add volatile. * gcc.dg/rs6000-power2-2.c: Fix the scan-assembly for the store. (t1, t2, t3, t4): Add volatile. From-SVN: r86871
Andrew Pinski committed -
From-SVN: r86869
Mark Mitchell committed -
From-SVN: r86868
Mark Mitchell committed -
* target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA. * target.h (cxx): Add export_class_data. * config/arm/arm.c (arm_cxx_export_class_data): New function. (TARGET_CXX_EXPORT_CLASS_DATA): Use it. * testsuite/g++.dg/ext/visibility/arm1.C: New test. * cp-tree.h (DECL_CONSTRUCTION_VTABLE_P): New macro. * class.c (build_ctor_vtbl_group): Set DECL_CONSTRUCTION_VTABLE_P. * decl2.c (determine_visibility): Honor TARGET_CXX_EXPORT_CLASS_DATA. * g++.dg/ext/visibility/arm1.C: New test. From-SVN: r86867
Mark Mitchell committed -
* Makefile.in: Move BOOT_CFLAGS above host makefile fragment include. * configure.in: add test for powerpc-*-darwin* to specify makefile frag * configure: regenerate * config/mh-ppc-darwin: create file, override BOOT_CFLAGS for -mdynamic-no-pic From-SVN: r86866
Robert Bowdidge committed -
* gcc.dg/funcdef-storage-1.c: Add dg-options to suppress -pedantic-errors. From-SVN: r86862
Geoffrey Keating committed -
From-SVN: r86860
R. Kelley Cook committed -
* config/sh/sh.c (output_branch): Check the insn length possibly in the delayed slot. From-SVN: r86858
Kaz Kojima committed
-