1. 19 Dec, 2010 12 commits
    • re PR target/46729 (32-bit 30_threads execution tests fail on Solaris 10/SPARC with Sun as) · a6fed83f
      	PR target/46729
      	* config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
      	(PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
      	* config/sparc/sparc.c (pic_helper_needed): Delete.
      	(global_offset_table): Likewise.
      	(pic_helper_symbol): Rename to...
      	(got_helper_rtx): ...this.
      	(global_offset_table_rtx): New global variable.
      	(sparc_got_symbol): Likewise.
      	(sparc_got): New static function.
      	(check_pic): Use local variable and call sparc_got.
      	(sparc_tls_symbol): Initialize to NULL_RTX.
      	(sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
      	and 32-bit ABI and copy the GOT symbol to a new register otherwise.
      	(get_pc_thunk_name): Rename local variable.
      	(gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
      	(load_pic_register): Rename to...
      	(load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
      	(sparc_expand_prologue): Do not test flag_pic.
      	(sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
      	(sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
      	Rename local variable and do not call get_pc_thunk_name again.
      	* config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
      
      From-SVN: r168049
      Eric Botcazou committed
    • 4.cc: New. · 2f8bed16
      2010-12-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/21_strings/basic_string/operators/char/4.cc: New.
      	* testsuite/21_strings/basic_string/operators/wchar_t/4.cc: Likewise.
      	* testsuite/ext/vstring/operators/2.cc: Likewise.
      
      From-SVN: r168048
      Paolo Carlini committed
    • re PR middle-end/46674 (Weak alias is mistakenly optimized away) · b48feb9d
      	PR middle-end/46674
      	PR middle-end/46221
      	* varasm.c (symbol_alias_set_t): New typedef for derived pointer_set
      	wrapper class.
      	(symbol_alias_set_create): New wrapper function.
      	(symbol_alias_set_destroy): Likewise.
      	(symbol_alias_set_contains): Likewise.
      	(symbol_alias_set_insert): Likewise.
      	(compute_visible_aliases): Use the above and return symbol_alias_set_t,
      	not a pointer_set.
      	(remove_unreachable_alias_pairs): Adjust likewise to match.
      	(finish_aliases_1): Likewise.
      
      From-SVN: r168047
      Dave Korn committed
    • *: Use headername alias to associate private includes to public includes. · f910786b
      2010-11-18  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* config/*/*: Use headername alias to associate private includes
      	to public includes.
      	* include/*/*: Same.
      
      	* scripts/run_doxygen: Update for doxygen 1.7.2.
      	* doc/doxygen/user.cfg.in: Same.
      	* doc/doxygen/TODO: Remove.
      
      	* testsuite/*/std_c++0x_neg.cc: Adjust line number.
      
      From-SVN: r168046
      Benjamin Kosnik committed
    • arm.c (arm_legitimate_index_p): Add VFP load/store index range case. · f3fb6590
      2010-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
      
      	gcc/
      	* config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
      	index range case. Change to SF/DFmode tests to avoid capturing HFmode.
      	(thumb2_legitimate_index_p): Same.
      
      	gcc/testsuite/
      	* gcc.target/arm/vfp-1.c (test_ldst): New test for VFP
      	load/store immediate indexes.
      
      From-SVN: r168045
      Chung-Lin Tang committed
    • In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> · 120d5f8e
      In libobjc/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* init.c: Updated comments.
      	* objc/objc-api.h: Updated comments.
      	* objc/runtime.h (_objc_load_callback): Declare.
      
      From-SVN: r168044
      Nicola Pero committed
    • In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> · c34fc988
      In libobjc/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc/Object.h: Include deprecated/typedstream.h and
      	deprecated/hash.h instead of typedstream.h.  Updated comments.
      
      From-SVN: r168043
      Nicola Pero committed
    • In gcc/testsuite/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> · 5ec582f9
      In gcc/testsuite/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/gnu-api-2-resolve-method.m: Include objc/message.h.
      	* obj-c++.dg/gnu-api-2-resolve-method.m: Include objc/message.h.
      
      In libobjc/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* Makefile.in (OBJC_DEPRECATED_H): Added objc_msg_sendv.h.
      	* objc/deprecated/objc_msg_sendv.h: New.
      	* objc/message.h: Do not define retval_t, apply_t, arglist,
      	arglist_t, objc_msg_sendv, now in
      	objc/deprecated/objc_msg_sendv.h.
      	* objc/objc.h: Do not include message.h; include
      	objc/deprecated/objc_msg_sendv.h instead.  Tidied up comments.
      	* sendmsg.c: Include objc/message.h.
      	* thr.c: Include objc/message.h.
      
      From-SVN: r168042
      Nicola Pero committed
    • In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> · 805a07f1
      In libobjc/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc/objc-exception.h: Include objc-decls.h.  Mark all
      	functions with objc_EXPORT.
      	* objc/objc-sync.h: Same change.
      
      From-SVN: r168041
      Nicola Pero committed
    • In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> · c06a8664
      In libobjc/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* Protocol.m: Moved all methods, with the exception of -isEqual:,
      	into the 'Deprecated' category.
      	* objc/Protocol.h: Removed all methods, moved to
      	objc/deprecated/Protocol.h.  Include objc/deprecated/Protocol.h.
      	* objc/deprecated/Protocol.h: New.
      	* Makefile.in (OBJC_DEPRECATED_H): Added Protocol.h.
      
      From-SVN: r168040
      Nicola Pero committed
    • In libobjc/: 2010-12-19 Nicola Pero <nicola.pero@meta-innovation.com> · 1af5b8f5
      In libobjc/:
      2010-12-19  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* init.c: Include objc-private/selector.h.  Do not declare
      	__sel_register_typed_name.
      	* objc-private/selector.h (__sel_register_typed_name): Declare.
      	* selector.c: Include objc-private/selector.h.
      
      From-SVN: r168039
      Nicola Pero committed
    • Daily bump. · 006d303e
      From-SVN: r168038
      GCC Administrator committed
  2. 18 Dec, 2010 22 commits
  3. 17 Dec, 2010 6 commits
    • In gcc/testsuite/: 2010-12-17 Nicola Pero <nicola.pero@meta-innovation.com> · ea89bcac
      In gcc/testsuite/:
      2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/exceptions-4.m: Adjust for change in error message.
      
      From-SVN: r168003
      Nicola Pero committed
    • init.c: Include objc/runtime.h and objc-private/module-abi-8.h instead of objc/objc-api.h. · fed2b101
      2010-12-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* init.c: Include objc/runtime.h and objc-private/module-abi-8.h
      	instead of objc/objc-api.h.
      	(init_check_module_version): Take a 'struct objc_module *'
      	argument instead of 'Module_t'.  Use 'struct objc_module *'
      	instead of 'Module_t'.
      	(__objc_created_classes_tree): Take a 'struct objc_module *'
      	argument instead of 'Module_t'; use 'struct objc_symtab *' instead
      	of 'Symtab_t'.
      	(__objc_call_callback): Take a 'struct objc_module *' argument
      	instead of 'Module_t'; use 'struct objc_symtab *' instead of
      	'Symtab_t' and 'struct objc_category *' instead of 'Category_t'.
      	(_objc_load_callback): Take a 'struct objc_category *' argument
      	instead of 'Category *'.
      	(class_superclass_of_class): Use objc_getClass() instead of
      	objc_lookup_class().
      	(create_tree_of_subclasses_inherited_from): Same change (also, use
      	an explicit 'if' instead of '?').
      	(objc_init_statics): Same change.
      	(objc_send_load): Same change.
      	(__objc_init_protocol): same change.
      	(__objc_send_message_in_list): Take a 'struct objc_method_list *'
      	argument instead of 'MethodList_t'.  Use 'struct objc_method *'
      	instead of 'Method_t'.
      	(__objc_send_load): Use 'struct objc_method_list *' instead of
      	'MethodList_t'.  Use sel_registerName() instead of
      	sel_register_name().
      	(__objc_exec_class): Take a 'struct objc_module *' argument
      	instead of 'Module_t'.  Use 'struct objc_symtab *' instead of
      	'Symtab_t'.  Use objc_getClass() instead of objc_lookup_class().
      	Use 'struct objc_category *' instead of 'Category_t'.
      
      From-SVN: r168000
      Nicola Pero committed
    • re PR c/20385 (Lame parse error message for undefined type) · 29ce73cb
      gcc:
      2010-12-17  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR c/20385
      	* function.c (used_types_insert): Handle ERROR_MARK.
      	* c-decl.c (grokdeclarator): Handle ERROR_MARK.
      	(declspecs_add_type): Leave error_mark_node in specs->type.
      	(finish_declspecs): Change it to integer_type_node here.
      	* c-parser.c (c_parser_peek_2nd_token): Move earlier.
      	(enum c_lookahead_kind): New.
      	(c_parser_next_token_starts_typename): New name of
      	c_parser_next_tokens_start_typename.  Accept lookahead enum
      	and handle it here instead of...
      	(c_parser_next_tokens_start_declaration): ... here.  Call it.
      	(c_parser_declspecs): Accept another argument.  Do not exit
      	on C_ID_ID if it is guessed to be an unknown typename.
      	(c_parser_parms_declarator): Use 2nd token to distinguish a K&R
      	declaration from an ANSI declaration starting with an unknown
      	typename.
      	(c_parser_struct_declaration, c_parser_objc_type_name,
      	c_parser_typeof_specifier, c_parser_declarator,
      	c_parser_direct_declarator_inner): Adjust calls.
      	(c_parser_parameter_declaration): Likewise.
      	(c_parser_type_name): Pass back an error_mark_node to the caller.
      	(c_parser_postfix_expression): Do error recovery when 
      	c_parser_type_name returns NULL.
      
      testsuite:
      2010-12-17  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR c/20385
      	* objc.dg/tls/init-2.m: Adjust.
      	* gcc.dg/noncompile/920923-1.c: Adjust.
      	* gcc.dg/noncompile/pr44517.c: Adjust.
      	* gcc.dg/declspec-18.c: New test.
      
      From-SVN: r167999
      Paolo Bonzini committed
    • netware.h (ASM_SPEC, [...]): Define. · 7f260570
      	* config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
      	Define.
      	* config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define.
      	(DBX_REGISTER_NUMBER): Undefine.
      	* config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
      	* config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
      	Define.
      	* config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
      	i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
      	i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
      	x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
      	i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*,
      	i[34567]86-*-solaris2*,
      	i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h.
      
      From-SVN: r167998
      Joseph Myers committed
    • Replace "BB [%i]" with "[bb %i]" in vzeroupper RTL dump. · 0d54d6ca
      2010-12-17  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.c (move_or_delete_vzeroupper_2): Replace
      	"BB [%i]" with "[bb %i]" in dump.
      	(move_or_delete_vzeroupper_1): Likewise.
      	(rescan_move_or_delete_vzeroupper): Likewise.  Always dump
      	upper 128bit state at exit.
      
      From-SVN: r167996
      H.J. Lu committed