1. 19 Dec, 2010 2 commits
  2. 18 Dec, 2010 22 commits
  3. 17 Dec, 2010 16 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
    • titype-1.c: Enable TImode on __SPU__. · 78feaa1f
      	* gcc.dg/titype-1.c: Enable TImode on __SPU__.
      	* gcc.dg/torture/fp-int-convert.h: Likewise.
      	* gcc.dg/tree-ssa/ivopts-1.c: Likewise.
      	* gcc.dg/uninit-C.c: Likewise.
      	* gcc.dg/uninit-C-O0.c: Likewise.
      	* gcc.dg/format/unnamed-1.c: Likewise.
      	* gcc.dg/format/ms_unnamed-1.c: Likewise.
      
      From-SVN: r167995
      Ulrich Weigand committed
    • basic_string.h (operator+(basic_string<>&&, const basic_string<>&), [...]): Add. · ce99f498
      2010-12-17  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/basic_string.h (operator+(basic_string<>&&,
      	const basic_string<>&), operator+(const basic_string<>&,
      	basic_string<>&&), operator+(basic_string<>&&, basic_string<>&&),
      	operator+(const _CharT*, basic_string<>&&), operator+(_CharT,
      	basic_string<>&&), operator+(basic_string<>&&, const _CharT*),
      	operator+(basic_string<>&&, _CharT)): Add.
      	* testsuite/21_strings/basic_string/operators/char/3.cc: New.
      	* testsuite/21_strings/basic_string/operators/wchar_t/3.cc: Likewise.
      
      From-SVN: r167994
      Paolo Carlini committed
    • re PR c++/46670 (ICE in dependent_type_p, at cp/pt.c:17553) · 24de72db
      	PR c++/46670
      	* pt.c (value_dependent_expression_p) [ARRAY_REF]: Handle
      	properly.
      
      From-SVN: r167993
      Jason Merrill committed
    • interix.opt: New. · a6dd4377
      	* config/interix.opt: New.
      	* config/interix.h (LINK_SPEC): Don't handle -soname*.
      	* config.gcc (i[34567]86-*-interix3*): Use interix.opt.
      
      From-SVN: r167992
      Joseph Myers committed
    • arm.md (maddhisi4, *maddhidi4): Use the canonical operand order for plus. · cfd688ea
      2010-12-17  Andrew Stubbs  <ams@codesourcery.com>
      
      	gcc/
      	* config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
      	operand order for plus.
      	Drop redundant % from constraints.
      
      From-SVN: r167991
      Andrew Stubbs committed
    • t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and _floatunstisf. · eb67f090
      	* config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
      	_floatunstisf.
      	* config/spu/spu.md ("floattisf2"): New expander.
      	("floatunstisf2"): New insn pattern and splitter.
      	("cgt_ti_m1"): New insn pattern.
      
      From-SVN: r167984
      Ulrich Weigand committed
    • * ja.po: Update. · f63e0d54
      From-SVN: r167983
      Joseph Myers committed
    • * ja.po: Update. · 7949d862
      From-SVN: r167982
      Joseph Myers committed
    • arm.c (arm_select_cc_mode): Before calling arm_select_dominance_cc_mode for AND… · 4d5d6586
      arm.c (arm_select_cc_mode): Before calling arm_select_dominance_cc_mode for AND or IOR operations...
      
      gcc/
      	* config/arm/arm.c (arm_select_cc_mode): Before calling
      	arm_select_dominance_cc_mode for AND or IOR operations, ensure
      	that op is NE or EQ.
      
      gcc/testsuite/
      	* gcc.c-torture/compile/20101217-1.c: New test.
      
      From-SVN: r167981
      Bernd Schmidt committed
    • re PR middle-end/46761 (-fgraphite-identity produces wrong code for array… · 8b432c8b
      re PR middle-end/46761 (-fgraphite-identity produces wrong code for array initialization arr[i] = i)
      
      	PR middle-end/46761
      	* graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
      	to use unadjusted UB.
      
      testsuite:
      	* gcc.dg/graphite/pr46761.c: New.
      
      From-SVN: r167980
      Alexander Monakov committed