1. 17 Oct, 2010 9 commits
    • In gcc/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> · 5b8b526e
      In gcc/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * doc/objc.texi (GNU Objective-C runtime API): New section.
              (Modern GNU Objective-C runtime API): New section.
              (Traditional GNU Objective-C runtime API): New section.
              (Executing code before main): Mention that this section is
              specific to the GNU Objective-C runtime.
              (Garbage Collection): Same.
      
      In gcc/testsuite/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * obj-c++.dg/gnu-api-2-class.mm: New.
              * obj-c++.dg/gnu-api-2-ivar.mm: New.
              * obj-c++.dg/gnu-api-2-method.mm: New.
              * obj-c++.dg/gnu-api-2-objc.mm: New.
              * obj-c++.dg/gnu-api-2-object.mm: New.
              * obj-c++.dg/gnu-api-2-property.mm: New.
              * obj-c++.dg/gnu-api-2-protocol.mm: New.
              * obj-c++.dg/gnu-api-2-sel.mm: New.
      
      
      In libobjc/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc/message.h: Moved initial includes outside of extern "C".
              * objc/runtime.h: Add extern "C" for Objective-C++.
      
      From-SVN: r165595
      Nicola Pero committed
    • c-parser.c (c_parser_for_statement): Move initialization of cond and incr before if. · 91b90ead
      	* c-parser.c (c_parser_for_statement): Move initialization of
      	cond and incr before if.
      
      From-SVN: r165592
      Uros Bizjak committed
    • forward_list.h (forward_list<>::erase_after): Return an iterator. · efb7b456
      2010-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/forward_list.h (forward_list<>::erase_after): Return
      	an iterator.
      	(_M_erase_after): Return _Fwd_list_node_base*.
      	* include/bits/forward_list.tcc: Likewise.
      	* include/debug/forward_list: Likewise.
      	* testsuite/23_containers/forward_list/modifiers/3.cc: Update
      	and extend.
      	* testsuite/util/exception/safety.h (erase_base<forward_list<>>):
      	Adjust.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	assign_neg.cc: Adjust dg-error line number.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      
      From-SVN: r165590
      Paolo Carlini committed
    • target.def (preferred_output_reload_class): New hook. · abd26bfb
      	* target.def (preferred_output_reload_class): New hook.
      	* doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
      	* doc/tm.texi: Regenerate.
      	* targhooks.c (default_preferred_output_reload_class): New function.
      	* targhooks.h (default_preferred_output_reload_class): Declare.
      	* reload.c (find_dummy_reload): Change rclass argument type from 
      	enum reg_class to reg_class_t. Change this_alternative array type
      	from enum reg_class to reg_class_t.
      	Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
      	(push_reload): Change preferred_class variable type to reg_class_t.
      	Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
      	* recog.c (reg_fits_class_p): Change result type to bool. Change cl
      	argument type from enum reg_class to reg_class_t. Use
      	HARD_REGISTER_NUM_P predicate.
      	* recog.h (reg_fits_class_p): Update prototype.
      
      	* config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
      	* config/i386/i386-protos.h (ix86_preferred_output_reload_class): Remove.
      	* config/i386/i386.c (ix86_preferred_output_reload_class): Make
      	static. Change regclass argument and result types from enum reg_class
      	to reg_class_t.
      	(TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
      
      From-SVN: r165588
      Anatoly Sokolov committed
    • re PR libstdc++/43554 (profile-mode version of forward_list missing) · 88c87359
      2010-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/43554
      	* include/profile/forward_list: New file.
      	* include/std/forward_list: Include <profile/forward_list>.
      	* include/Makefile.am: Add.
      	* testsuite/23_containers/forward_list/capacity/1.cc: Adjust.
      	* include/Makefile.in: Regenerate.
      
      From-SVN: r165587
      Paolo Carlini committed
    • add parse support for @package to ObjC* · c37d8c30
      gcc/c-family:
      	
      	* c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
      	* c-common.h (enum rid): Add RID_AT_PACKAGE.
      	(objc_ivar_visibility_kind): New enum.
      	(objc_set_visibility): Adjust prototype to use visibility enum.
      	* stub-objc.c (objc_set_visibility): Adjust stub to use 
      	visibility enum.
      
      gcc/objc:
      
      	* objc-act.c: Rename 'objc_public_flag' to  objc_ivar_visibility and
      	make its type 'objc_ivar_visibility_kind'.  
      	(objc_start_class_interface): Update to use visibility enum.
      	(objc_start_class_implementation): Likewise.
      	(objc_set_visibility): Update to use visibility enum, warn that 
      	@package is handle as per @public.
      	(add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE.
      	* objc-act.h: Rename 'objc_public_flag' to  objc_ivar_visibility and
      	make its type 'objc_ivar_visibility_kind'.
      
      gcc/cp:
      
      	* parser.c (cp_parser_objc_visibility_spec): Update to use visibility 
      	enum, and handle @package.
      
      gcc:
      
      	* c-parser.c (c_parser_objc_class_instance_variables): Update to use 
      	visibility enum, and handle @package.
      
      gcc/testsuite:
      
      	* objc.dg/fsf-package-0.m: New.
      	* obj-c++.dg/fsf-package-0.m: New.
      
      From-SVN: r165585
      Iain Sandoe committed
    • In libobjc/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> · 1501d094
      In libobjc/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * init.c (objc_send_load): Do not wait for NXConstantString to be
              registered before executing +load.  There is no point if
              -fconstant-string-class=xxx is used when compiling all modules,
              as is the case for almost all users.
              * linking.m (__objc_linking): Do not try to forcefully link in
              NXConstantString.
      
      In gcc/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * doc/objc.texi (What you can and what you cannot do in +load):
              Document that sending messages to constant string objects in +load
              is not guaranteed to work.
      
      From-SVN: r165583
      Nicola Pero committed
    • In gcc/testsuite/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> · 368be4c7
      In gcc/testsuite/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/18255
              * objc.dg/pr18255.m: New.
      
      From-SVN: r165579
      Nicola Pero committed
    • Daily bump. · b7824523
      From-SVN: r165573
      GCC Administrator committed
  2. 16 Oct, 2010 15 commits
    • re PR middle-end/44206 (ICE: Inline clone with address taken) · bb853349
      	PR middle-end/44206
      	* g++.dg/torture/pr44206.C: New.
      	* ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
      	existence of refrences before removing the function.
      
      From-SVN: r165569
      Jan Hubicka committed
    • In testsuite/: 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> · ad620927
      In testsuite/:
      2010-10-16  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/gnu-api-2-class.m: New.
              * objc.dg/gnu-api-2-objc.m: New.
      
      From-SVN: r165564
      Nicola Pero committed
    • In libobjc/: 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> · 6c5c7efd
      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… · d4d9b0a6
      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… · 844db5d0
      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
    • re PR tree-optimization/20165 (Pointer does not really escape with write) · 6eb6875d
      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): If the type is to be ignored for debug info purposes... · 08d78391
      	* 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> · 5b7cd330
      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
    • class.c (class_getSuperclass): Call __objc_resolve_class_links if the class is not resolved yet. · 1cde73d7
      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
    • avr.h (PREFERRED_RELOAD_CLASS): Remove. · 4b0b4ab0
      	* 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, [...]): Make static. · 7bb3487f
      	* 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
    • arm.c (arm_option_optimization): Set flag_section_anchors to 1 not 2. · 0a587f65
      	* 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
    • configure.ac: Make sure inhibit_libc remains false for mingw targets as cross. · e1dbd4c8
      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
    • Daily bump. · e744db7f
      From-SVN: r165537
      GCC Administrator committed
    • In libobjc/: 2010-10-16 Nicola Pero <nicola.pero@meta-innovation.com> · 3c44c190
      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
  3. 15 Oct, 2010 16 commits