- 16 Oct, 2010 13 commits
-
-
In libobjc/: 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h: Updated comments. (class_addMethod): New. (class_addIvar): New. (class_replaceMethod): New. (objc_allocateClassPair): New. (objc_registerClassPair): New. (objc_disposeClassPair): New. * class.c (objc_allocateClassPair): New. (objc_registerClassPair): New. (objc_disposeClassPair): New. (class_getSuperclass): Return Nil if a class is in construction. * init.c (__objc_exec_class): Call __objc_init_class. (__objc_init_class): New. * ivars.c (class_copyIvarList): Return NULL if class is in construction. Do not lock the runtime mutex. (class_getInstanceVariable): Return NULL if class is in construction. Do not lock the runtime mutex. (class_addIvar): New. * sendmsg.c (class_addMethod): New. (class_replaceMethod): New. * objc-private/module-abi-8.h (__CLS_SETNOTINFO): New. (_CLS_IN_CONSTRUCTION): New. (CLS_IS_IN_CONSTRUCTION): New. (CLS_SET_IN_CONSTRUCTION): New. (CLS_SET_NOT_IN_CONSTRUCTION): New. * objc-private/runtime.h (__objc_init_class): New. From-SVN: r165563
Nicola Pero committed -
trans-io.c (gfc_build_io_library_fndecls): Array descriptor arguments to transfer_array can be dereferenced recursively. 2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org> * trans-io.c (gfc_build_io_library_fndecls): Array descriptor arguments to transfer_array can be dereferenced recursively. From-SVN: r165561
Thomas Koenig committed -
cgraph.c (dump_cgraph_node): Dump same_comdat_group, only_called_at_startup and only_called_at_exit. * cgraph.c (dump_cgraph_node): Dump same_comdat_group, only_called_at_startup and only_called_at_exit. (cgraph_propagate_frequency): Compute only_called_at_startup and only_called_at_exit. * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and only_called_at_exit. * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new flags. * predict.c (compute_function_frequency): Initialize the new flags. From-SVN: r165560
Jan Hubicka committed -
2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/20165 PR fortran/31593 PR fortran/43665 * gfortran.map: Add _gfortran_transfer_array_write, _gfortran_transfer_array_write, _gfortran_transfer_character_write, _gfortran_transfer_character_wide_write, _gfortran_transfer_complex_write, _gfortran_transfer_integer_write, _gfortran_transfer_logical_write and _gfortran_transfer_real_write. * io/transfer.c (transfer_integer_write): Add prototype and function body as call to the original function, without the _write. (transfer_real_write): Likewise. (transfer_logical_write): Likewise. (transfer_character_write): Likewise. (transfer_character_wide_write): Likewise. (transfer_complex_write): Likewise. (transfer_array_write): Likewise. 2010-10-16 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/20165 PR fortran/31593 PR fortran/43665 * trans-io.c (enum iocall): Add IOCALL_X_INTEGER_WRITE, IOCALL_X_LOGICAL_WRITE, IOCALL_X_CHARACTER_WRITE, IOCALL_X_CHARACTER_WIDE_WRIE, IOCALL_X_REAL_WRITE, IOCALL_X_COMPLEX_WRITE and IOCALL_X_ARRAY_WRITE. (gfc_build_io_library_fndecls): Add corresponding function decls. (transfer_expr): If the current transfer is a READ, use the iocall with the original version, otherwise the version with _WRITE. (transfer_array_desc): Likewise. From-SVN: r165559
Thomas Koenig committed -
* gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be ignored for debug info purposes, do not clear the DECL_IGNORED_P flag on the bounds of its domain. * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically. From-SVN: r165544
Eric Botcazou committed -
In gcc/testsuite/: 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-ivar.m: New. From-SVN: r165543
Nicola Pero committed -
2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> * class.c (class_getSuperclass): Call __objc_resolve_class_links if the class is not resolved yet. * ivars.c (class_getInstanceVariable): Use class_getSuperclass. From-SVN: r165542
Nicola Pero committed -
* config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove. * config/avr/avr-protos.h (preferred_reload_class): Remove. * config/avr/avr.c (preferred_reload_class): Remove. * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove. * config/pa/pa.c (emit_move_sequence): Update comment * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove. * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove. * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove. * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove. * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove. * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove. * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove. * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove. * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove. * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove. * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove. * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove. * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove. From-SVN: r165541
Anatoly Sokolov committed -
* opts.c (set_fast_math_flags, set_unsafe_math_optimizations_flags): Make static. * toplev.h (set_fast_math_flags, set_unsafe_math_optimizations_flags): Remove prototypes. From-SVN: r165540
Joseph Myers committed -
* config/arm/arm.c (arm_option_optimization): Set flag_section_anchors to 1 not 2. * config/i386/i386.c (ix86_option_override_internal): Check global_options_set.x_flag_zee and global_options_set.x_flag_omit_frame_pointer. (ix86_option_optimization): Don't set flag_omit_frame_pointer and flag_zee to 2. * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check global_options_set.x_flag_omit_frame_pointer. * config/rs6000/rs6000.c (rs6000_option_init_struct): Set opts->x_flag_section_anchors to 1 not 2. * config/sh/sh.c (sh_option_optimization): Don't set flag_schedule_insns to 2. (sh_option_override): Check global_options_set.x_flag_schedule_insns. * opts.c (finish_options): Check opts_set->x_flag_section_anchors. From-SVN: r165539
Joseph Myers committed -
2010-10-16 Kai Tietz <kai.tietz@onevision.com> * configure.ac: Make sure inhibit_libc remains false for mingw targets as cross. * configure: Regenerated. From-SVN: r165538
Kai Tietz committed -
From-SVN: r165537
GCC Administrator committed -
In libobjc/: 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h (class_getIvarLayout): New. (class_getWeakIvarLayout): New. (class_setIvarLayout): New. (class_setWeakIvarLayout): New. * ivars.c (class_getIvarLayout): New. (class_getWeakIvarLayout): New. (class_setIvarLayout): New. (class_setWeakIvarLayout): New. From-SVN: r165533
Nicola Pero committed
-
- 15 Oct, 2010 27 commits
-
-
In gcc/testsuite/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-property.m: New. From-SVN: r165532
Nicola Pero committed -
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc/runtime.h (class_copyPropertyList): New. (class_getProperty): New. (property_getAttributes): New. (property_getName): New. * ivars.c (class_copyPropertyList): New. (class_getProperty): New. (property_getAttributes): New. (property_getName): New. From-SVN: r165531
Nicola Pero committed -
From-SVN: r165530
Xinliang David Li committed -
In gcc/testsuite/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-object.m: New. From-SVN: r165529
Nicola Pero committed -
In gcc/testsuite/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-method.m: New. From-SVN: r165526
Nicola Pero committed -
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/runtime.h (__objc_update_classes_with_methods): New. * class.c (__objc_update_classes_with_methods): New. (objc_getClassList): Do not lock the class lock. * methods.c (method_exchangeImplementations): New. (method_setImplementation): New. * objc/runtime.h (method_setImplementation): New. (method_exchangeImplementations): New. From-SVN: r165525
Nicola Pero committed -
PR c++/45983 * tree.c (cp_build_qualified_type_real): Don't reuse a variant with a different typedef variant of the element type. From-SVN: r165521
Jason Merrill committed -
* config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute. (*movdfcc_1): ditto. From-SVN: r165520
Uros Bizjak committed -
* target.def (target_option.init_struct): New hook. * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook. * doc/tm.texi: Regenerate. * hooks.c (hook_void_gcc_optionsp): New. * hooks.h (hook_void_gcc_optionsp): Declare. * langhooks-def.h (lhd_init_options_struct): Remove. (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp. * langhooks.c (lhd_init_options_struct): Remove. * opts.c (init_options_struct): Also call targetm.target_option.init_struct. * config/i386/i386.c (ix86_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (ix86_option_optimization): Move some settings to ix86_option_init_struct. * config/pdp11/pdp11.c (pdp11_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (pdp11_option_optimization): Move some settings to pdp11_option_init_struct. * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by rs6000_option_init_struct. Use options structure pointer. (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT. * config/s390/s390.c (s390_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (s390_option_optimization): Don't set flag_asynchronous_unwind_tables here. * config/sh/sh.c (sh_option_init_struct, TARGET_OPTION_INIT_STRUCT): New. (sh_option_optimization): Don't set flag_finite_math_only here. * config/spu/spu.c (spu_option_optimization): Replace by spu_option_optimization. Use options structure pointer. (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT. From-SVN: r165519
Joseph Myers committed -
In libobjc/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * Protocol.m: Include objc/runtime.h and objc-private/module-abi-8.h instead of objc/objc-api.h. Do not repeat Protocol's instance variables. (struct objc_method_description_list): Do not define here. ([-conformsTo:]): Reimplemented on top of protocol_conformsTo(). ([descriptionForInstanceMethod:]): Use sel_isEqual() to compare selectors directly instead of getting names and then using strcmp. ([descriptionForClassMethod:]): Same change. ([-isEqual:]): Reimplemented on top of protocol_isEqual(). * protocols.c (protocol_getMethodDescription): Use sel_isEqual() to compare selectors directly instead of getting names and then using strcmp. * objc/Protocol.h: Updated comments. From-SVN: r165517
Nicola Pero committed -
From-SVN: r165516
Michael Meissner committed -
From-SVN: r165515
Michael Meissner committed -
2010-10-15 Paolo Carlini <paolo.carlini@oracle.com> * include/std/functional (function<>::operator==, operator!=): Remove, per LWG 1240. * testsuite/20_util/function/cmp/cmp_neg.cc: Adjust dg-* directives. From-SVN: r165514
Paolo Carlini committed -
* lto-streamer-out.c (write_symbol): Use pointer set of seen objects instead of bitmap. (produce_symtab): Likewise; output defined symbols first. From-SVN: r165513
Jan Hubicka committed -
* doc/invoke.texi: Add -fstrict-volatile-bitfields to Option Summary and Index. From-SVN: r165512
Jie Zhang committed -
2010-10-15 Richard Guenther <rguenther@suse.de> * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL for automatic variables again. * g++.dg/lto/20101015-1_0.C: New testcase. From-SVN: r165511
Richard Guenther committed -
* doc/extend.texi (Variable Length): Don't refer to VLAs not conforming to C99. From-SVN: r165509
Joseph Myers committed -
* config/rx/rx.c (rx_option_optimization): Change to rx_override_options_after_change. Don't change flag_lto_compression_level. Don't check for changes to whether FPU instructions can be used. Check and set only flag_finite_math_only, not other fast-math flags. (rx_option_override): Call rx_override_options_after_change. (TARGET_OPTION_OPTIMIZATION): Remove. (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define. From-SVN: r165508
Joseph Myers committed -
2010-10-15 Tobias Burnus <burnus@net-b.de> PR fortran/45186 * trans.h (gfc_add_modify_loc, gfc_evaluate_now_loc): New * prototypes. (gfc_trans_runtime_error_vararg): Remove prototype. * trans.c (gfc_add_modify_loc, gfc_evaluate_now_loc): New * functions. (gfc_add_modify, gfc_evaluate_now): Use them. (trans_runtime_error_vararg): Renamed from gfc_trans_runtime_error_vararg, made static and use locus. (gfc_trans_runtime_error): Use it. (gfc_trans_runtime_check): Ditto and make use of locus. * trans-stmt.c (gfc_trans_if_1, gfc_trans_simple_do, gfc_trans_do, gfc_trans_do_while): Improve line number associated with generated expressions. From-SVN: r165507
Tobias Burnus committed -
* config/rs6000/rs6000.c (rs6000_option_optimization): Don't disable section anchors for lang_hooks.name[4] != 'O'. From-SVN: r165506
Joseph Myers committed -
* config/frv/frv.c (frv_option_optimization, TARGET_OPTION_OPTIMIZATION): Remove. * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove. From-SVN: r165505
Joseph Myers committed -
From-SVN: r165504
Michael Matz committed -
2010-10-15 Richard Guenther <rguenther@suse.de> PR testsuite/46021 * gcc.dg/tree-ssa/20031106-3.c: Remove XFAIL. * gcc.dg/tree-ssa/fre-vce-1.c: Likewise. From-SVN: r165503
Richard Guenther committed -
2010-10-15 Richard Guenther <rguenther@suse.de> PR lto/45957 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars. * g++.dg/lto/20101014-1_0.C: New testcase. From-SVN: r165502
Richard Guenther committed -
From-SVN: r165501
Nicola Pero committed -
In gcc/testsuite/: 2010-10-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/gnu-api-2-protocol.m: New. * objc.dg/gnu-api-2-sel.m: New. From-SVN: r165500
Nicola Pero committed -
In libobjc/: 2010-10-14 Nicola Pero <nicola.pero@meta-innovation.com> * init.c (__objc_init_protocol): New function which fixes up a protocol's class pointer, registers it with the runtime, register all protocol selectors and registers associated protocols too. (objc_init_statics): Detect if we are initializing protocols, and if so, use __objc_init_protocol instead of only fixing up the class pointer. (__objc_init_protocls): Use __objc_init_protocol. * objc-private/module-abi-8.h: Updated comments. * objc-private/runtime.h (__objc_register_selectors_from_description_list): New. * selector.c (__objc_register_selectors_from_description_list): New. (struct objc_method_description_list): Declare. * Protocol.m ([-descriptionForInstanceMethod:]): Use sel_get_name when accessing the name of a method, which is now correctly a SEL. ([-descriptionForClassMethod:]): Same change. * protocols.c (protocol_getMethodDescription): Same change. * objc/runtime.h: Updated comments. (sel_registerTypedName): Fixed typo in function name. From-SVN: r165499
Nicola Pero committed
-