1. 22 Nov, 2011 28 commits
  2. 21 Nov, 2011 12 commits
    • PR47747: Fix error messages for calls to unsafe virtual functions. · cd6baa16
      	gcc/
      	* trans-mem.c (diagnose_tm_1): Print an expression instead of a
      	declaration in error messages for indirect calls.
      
      	testsuite/
      	g++.dg/tm/pr47747.C: New test.
      
      From-SVN: r181602
      Torvald Riegel committed
    • Fix instantiation of transaction expressions. · 1e159409
      	gcc/cp/
      	* pt.c (tsubst_copy_and_build): Handle TRANSACTION_EXPR.
      
      	gcc/testsuite/
      	* g++.dg/tm/template-2.C: New test.
      
      From-SVN: r181601
      Torvald Riegel committed
    • Fix crtstuff merge error with transactional-memory branch. · b0dc7e4c
              * crtstuff.c (USE_TM_CLONE_REGISTRY): Default to 1 on ELF.
              (__TMC_LIST__, __TMC_END__): New.
              (__do_global_dtors_aux): Call _ITM_deregisterTMCloneTable.
              (__do_global_dtors): Likewise.
              (frame_dummy): Call _ITM_registerTMCloneTable.
              (__do_global_ctors_1): Likewise.
      
      From-SVN: r181600
      Richard Henderson committed
    • Correct sparc's REGMODE_NATURAL_SIZE and MODES_TIEABLE_P wrt. vector modes. · 98ccb32d
      	* config/sparc/sparc.c (sparc_regmode_natural_size): New function
      	implementing REGMODE_NATURAL_SIZE taking into consideration vector
      	modes.
      	(sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
      	* config/sparc/sparc-protos.h (sparc_regmode_natural_size,
      	sparc_modes_tieable_p): Declare.
      	* gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
      	MODES_TIEABLE_P): Use new helper functions.
      
      From-SVN: r181599
      David S. Miller committed
    • Revert regression causing changes to store_bit_field_1. · e57a3447
      	Revert
      	2011-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	PR middle-end/50325
      	* expmed.c (store_bit_field_1): Use extract_bit_field on big
      	endian targets if the source cannot be exactly covered by word
      	mode chunks.
      
      From-SVN: r181598
      David S. Miller committed
    • re PR debug/50827 (ICE: RTL check: expected elt 0 type 'e' or 'u', have '0' (rtx… · 7fefb1d1
      re PR debug/50827 (ICE: RTL check: expected elt 0 type 'e' or 'u', have '0' (rtx entry_value) in loc_cmp, at var-tracking.c:3011)
      
      	PR debug/50827
      	* var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
      	macro instead of XEXP.
      
      	* gcc.dg/pr50827.c: New test.
      
      From-SVN: r181597
      Jakub Jelinek committed
    • re PR c++/50958 ([C++0x] raw literal operator provides incorrect string for integer literal '0') · 7e74ce3f
      	PR c++/50958
      gcc/cp/
      	* parser.c (lookup_literal_operator): New.
      	(cp_parser_userdef_char_literal): Use it.
      	(cp_parser_userdef_numeric_literal): Use it.
      	(cp_parser_userdef_string_literal): Use lookup_name.
      libcpp/
      	* expr.c (cpp_userdef_char_remove_type): Fix typo.
      
      From-SVN: r181595
      Ed Smith-Rowland committed
    • tweak comment in perform_member_init · f3fae478
      From-SVN: r181594
      Jason Merrill committed
    • Additional fixes for FreeBSD-10 build: · c6084f68
      /:			* libtool.m4: Additional FreeBSD 10 fixes.
      
      boehm-gc/:		* configure: Regenerate.
      gcc/:			* configure: Regenerate.
      libffi/:		* configure: Regenerate.
      libgfortran/:		* configure: Regenerate.
      libgomp/:		* configure: Regenerate.
      libitm/:		* configure: Regenerate.
      libjava/:		* configure.ac: Fix some more FreeBSD 10 issues..
      			* configure: Regenerate.
      libjava/libltdl/:	* acinclude.m4: Additional FreeBSD 10 fixes.
      			* configure: Regenerate.
      libmudflap/:		* configure: Regenerate.
      libobjc/:		* configure: Regenerate.
      libquadmath/:		* configure: Regenerate.
      libssp/:		* configure: Regenerate.
      libstdc++-v3/:		* configure: Regenerate.
      lto-plugin/:		* configure: Regenerate.
      zlib/:			* configure: Regenerate.
      
      From-SVN: r181593
      Andreas Tobler committed
    • avr.c (output_reload_in_const): Loading a byte with 0 must not affect cc0. · 648a7cdc
      	* config/avr/avr.c (output_reload_in_const): Loading a byte with 0
      	must not affect cc0.
      	* config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
      	register does not change cc0. Same for any constant to ld-register.
      
      From-SVN: r181592
      Georg-Johann Lay committed
    • mmx.md (unspec): Move from config/i386/i386.md (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto. · dc9945a4
      	* config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
      	UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
      	Move from config/i386/i386.md
      	(unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
      	* config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
      	UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
      	UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
      	UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
      	UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
      	UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
      	UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
      	UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
      	UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
      	UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
      	UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
      	UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
      	(unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
      	UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
      	Ditto.
      	* config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
      	UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
      	(unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
      	UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
      	(sse2_lfence): Move from config/i386/sse.md.
      	(*sse2_lfence): Ditto.
      	(sse_sfence): Ditto.
      	(*sse_sfence): Ditto.
      	(sse2_mfence): Ditto.
      	(mfence_sse2): Ditto.  Rename from *sse2_mfence.  Enable also
      	for TARGET_64BIT.
      	(mem_thread_fence): Use mfence_sse2.
      
      From-SVN: r181590
      Uros Bizjak committed