Commit Graph

111006 Commits

Author SHA1 Message Date
Paulo J. Matos 1c7836f0e8 tm.texi.in (CLASS_MAX_NREGS): Fix typo.
gcc/
2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>

	* doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
	* doc/tm.texi: Regenerate.

From-SVN: r177619
2011-08-10 09:38:52 +00:00
Georg-Johann Lay 4ada410ba1 re PR target/29560 ([avr] Poor optimization for byte shifts)
PR target/29560
	* config/avr/avr.md (*ashlhiqi3): New insn-and-split.
	(*ashl<extend_prefix>qihiqi3): New insn-and-splits.
	(*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
	Add peephole2 to map ashlhi3 to ashlqi3 if high part of
	shift target is unused.

From-SVN: r177616
2011-08-10 08:58:03 +00:00
Richard Guenther d1f4e15f16 re PR tree-optimization/49937 (g++.dg/tree-ssa/fwprop-align.C)
2011-08-10  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/49937
	* tree-ssa-ccp.c (get_value_from_alignment): Re-implement
	using get_object_alignment_1.

From-SVN: r177615
2011-08-10 08:50:39 +00:00
Richard Guenther f3016c478e re PR bootstrap/49907 (lto-plugin -Wall in stage1)
2011-08-10  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/49907
	lto-plugin/
	* configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
	* Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
	* configure: Regenerate.
	* Makefile.in: Likewise.
	* aclocal.m4: Likewise.

From-SVN: r177614
2011-08-10 08:48:37 +00:00
Rainer Orth d62bab6a7c re PR libstdc++/1773 (__cplusplus defined to 1, should be 199711L)
2011-08-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
	    Marc Glisse  <marc.glisse@normalesup.org>

	PR libstdc++-v3/1773
	* inclhack.def (solaris_cxx_linkage, solaris_getc_strict_stdc)
	(solaris_longjmp_noreturn, solaris_pow_int_overload)
	(solaris_std___filbuf): New fixes.
	* tests/base/iso/math_iso.h, tests/base/iso/setjmp_iso.h,
	tests/base/iso/stdio_iso.h, tests/base/iso/stdlib_iso.h: New tests.
	* tests/base/stdio.h [SOLARIS_STD___FILBUF_CHECK]: New test.

Co-Authored-By: Marc Glisse <marc.glisse@normalesup.org>

From-SVN: r177613
2011-08-10 08:43:38 +00:00
Rainer Orth 693ed63381 jcf-dump.c (print_constant): Cast first frexp arg.
gcc/java:
	* jcf-dump.c (print_constant): Cast first frexp arg.

	libjava:
	* exception.cc (std::abort): Remove static.

From-SVN: r177612
2011-08-10 08:40:17 +00:00
Uros Bizjak dcfd875366 i386.md (lround<X87MODEF:mode><SWI248x:mode>2): Do not force operands[0] into a register.
* config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2): Do not
	force operands[0] into a register.

From-SVN: r177611
2011-08-10 09:22:52 +02:00
GCC Administrator 57fcac164e Daily bump.
From-SVN: r177610
2011-08-10 00:17:57 +00:00
Uros Bizjak 2813f1b15f i386.c (ix86_emit_i387_round): New function.
* config/i386/i386.c (ix86_emit_i387_round): New function.
	* config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
	* config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
	Use ix86_emit_i387_round to expand round function for i387 math.
	(lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
	Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.

From-SVN: r177605
2011-08-09 19:59:20 +02:00
Rainer Orth c6412d8676 sync.c: Move to ../libgcc.
gcc:
	* config/sync.c: Move to ../libgcc.
	* Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC,
	LIBGCC_SYNC_CFLAGS.
	* config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
	Remove.

	libgcc:
	* sync.c: New file.
	* config/mips/t-mips16: New file.
	* config.host (mips64*-*-linux*): Add mips/t-mips16 to tmake_file.
	(mips*-*-linux*): Likewise.
	(mips*-sde-elf*): Likewise.
	(mipsisa32-*-elf*): Join with mipsisa32r2-*-elf*,
	mipsisa64-*-elf*, mipsisa64r2-*-elf*.
	Add mips/t-mips16 to tmake_file.
	(mipsisa64sb1-*-elf*): Add mips/t-mips16 to tmake_file.
	(mips-*-elf*): Likewise.
	(mips64-*-elf*): Likewise.
	(mips64orion-*-elf*): Likewise.
	(mips*-*-rtems*): Likewise.
	(mipstx39-*-elf*): Likewise.
	* Makefile.in: Use SYNC instead of LIBGCC_SYNC.
	($(libgcc-sync-size-funcs-o)): Use SYNC_CFLAGS instead of
	LIBGCC_SYNC_CFLAGS.
	Use $(srcdir) to refer to sync.c.
	Use $<.
	($(libgcc-sync-funcs-o)): Likewise.
	($(libgcc-sync-size-funcs-s-o)): Likewise.
	($(libgcc-sync-funcs-s-o)): Likewise.

From-SVN: r177601
2011-08-09 15:40:30 +00:00
Anatoly Sokolov 6e9ee54ca6 mmix.h (REGISTER_MOVE_COST): Remove macro.
* config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
	* config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
	* config/mmix/mmix.c (mmix_register_move_cost): Make static.
	Change 'from' and 'to' arguments type to reg_class_t.
	(TARGET_REGISTER_MOVE_COST): Define.

From-SVN: r177600
2011-08-09 19:09:41 +04:00
Vladimir Makarov 394b15208d re PR rtl-optimization/50026 (Revision 177575 caused many test failures)
2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/50026
	Revert:
	PR rtl-optimization/49990
	* ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
	ignore classes which can not change mode.
	(find_costs_and_classes): Ditto.

From-SVN: r177599
2011-08-09 14:35:21 +00:00
Andreas Schwab 3cb6e5bd17 config.host (ia64*-*-linux*): Move ia64/t-glibc after t-libunwind.
* config.host (ia64*-*-linux*): Move ia64/t-glibc after
t-libunwind.

From-SVN: r177598
2011-08-09 14:26:41 +00:00
Richard Guenther 4001900fb3 tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise information for ranges with only negative values.
2011-08-09  Richard Guenther  <rguenther@suse.de>

	* tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
	information for ranges with only negative values.
	(extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
	BIT_AND_EXPR handling to handle ranges with negative values.

	* gcc.dg/tree-ssa/vrp57.c: Disable CCP.
	* gcc.dg/tree-ssa/vrp60.c: New testcase.
	* gcc.dg/tree-ssa/vrp61.c: Likewise.
	* gcc.dg/tree-ssa/vrp62.c: Likewise.

From-SVN: r177597
2011-08-09 14:03:10 +00:00
Ulrich Weigand cd81287375 * gfortran.dg/scratch_1.f90: Skip on spu-*-*.
From-SVN: r177595
2011-08-09 13:45:25 +00:00
Ulrich Weigand 6052261c0c * gcc.dg/pr49948.c: Require pthread effective target.
From-SVN: r177594
2011-08-09 13:41:30 +00:00
Ulrich Weigand b205f1f7fb * gcc.dg/lto/20110201-1_0.c: Provide dummy sqrt.
From-SVN: r177593
2011-08-09 13:29:29 +00:00
Uros Bizjak bbb20f2fb5 * ChangeLog: Fix fma entry.
From-SVN: r177590
2011-08-09 14:48:52 +02:00
Kirill Yukhin 6cf9eb278e i386.c: Remove traling spaces.
* config/i386/i386.c: Remove traling spaces.
       * config/i386/sse.md: Likewise.
       (*fma_fmadd_<mode>): Update.
       (*fma_fmsub_<mode>): Likewise.
       (*fma_fnmadd_<mode>): Likewise.
       (*fma_fnmsub_<mode>): Likewise.

From-SVN: r177588
2011-08-09 13:45:53 +02:00
Nick Clifton d6257cf078 * config/rx/rx.md: Disable extender peepholes at -O3.
From-SVN: r177585
2011-08-09 10:32:07 +00:00
Uros Bizjak a4894e5e7c sse-22a.c: New test.
* gcc.target/i386/sse-22a.c: New test.

From-SVN: r177584
2011-08-09 11:28:13 +02:00
Uros Bizjak 3968b0504c re PR target/49781 ([x32] Unnecessary lea in x32 mode)
PR target/49781
	* config/i386/i386.md (reload_noff_load): New.
	(reload_noff_store): Ditto.
	* config/i386/i386.c (ix86_secondary_reload): Use
	CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
	double-word moves from/to non-offsetable addresses instead of
	generating XMM temporary.

From-SVN: r177583
2011-08-09 09:38:02 +02:00
Anatoly Sokolov 2292df601d mmix.h (REG_OK_FOR_BASE_P, [...]): Remove.
* config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.

From-SVN: r177582
2011-08-09 11:25:29 +04:00
Ira Rosen 1684ca6b9b re PR tree-optimization/50014 (Assertion failed in vect_get_vec_def_for_stmt_copy)
PR tree-optimization/50014
        * tree-vect-loop.c (vectorizable_reduction): Get def type before
        calling vect_get_vec_def_for_stmt_copy ().

From-SVN: r177581
2011-08-09 06:02:00 +00:00
GCC Administrator 4869704e21 Daily bump.
From-SVN: r177579
2011-08-09 00:18:10 +00:00
Vladimir Makarov 4011806231 re PR middle-end/49990 (Regression: Bootstrap failure for x86_64-*-mingw32 in libfortran)
2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/49990
	* ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
	ignore classes which can not change mode.
	(find_costs_and_classes): Ditto.

From-SVN: r177575
2011-08-08 23:18:23 +00:00
Richard Henderson 8714c21f19 re PR middle-end/49990 (Regression: Bootstrap failure for x86_64-*-mingw32 in libfortran)
2011-08-08  Richard Henderson  <rth@redhat.com>

        PR middle-end/49990
        * config/i386/i386.c (ix86_expand_prologue): Call
        for SEH target gen_prologue_use instead of gen_blockage
        at prologue's end.

From-SVN: r177573
2011-08-08 20:19:17 +02:00
Martin Jambor 1ad663a82a re PR middle-end/49923 (__attribute__((packed)) on ARM is sometimes dropped)
2011-08-08  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/49923
	* tree-sra.c (access_precludes_ipa_sra_p): Also check access
	memory alignment.

	* testsuite/gcc.dg/tree-ssa/pr49923.c: New test.

From-SVN: r177572
2011-08-08 19:53:55 +02:00
Diego Novillo f0efc7aa77 rebase
From-SVN: r177571
2011-08-08 12:49:34 -04:00
H.J. Lu b7926cf905 Add a testcase for PR target/49781.
2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/49781
	* gcc.target/i386/pr49781-1.c: New.

From-SVN: r177569
2011-08-08 09:33:06 -07:00
Rainer Orth ddaad3c8b1 configure.ac (THREADS): Remove posix95.
boehm-gc:
	* configure.ac (THREADS): Remove posix95.
	* configure: Regenerate.

	gcc:
	* gthr-posix95.h: Remove.
	* gthr.h [_PTHREADS95]: Remove.
	* configure.ac (enable_threads): Remove posix95.
	* configure: Regenerate.
	* doc/install.texi (Configuration, --enable-threads): Remove
	posix95.

	libgomp:
	* config/posix95/lock.c, posix95/omp-lock.h: Remove.

	libjava:
	* configure.ac (THREADS): Remove posix95.
	* configure: Regenerate.

From-SVN: r177568
2011-08-08 15:39:35 +00:00
Jason Merrill 712c948a07 re PR c++/50020 ([C++0x] internal compiler error range for in templated class)
PR c++/50020
	* semantics.c (finish_call_expr): Don't look at 'this' if we
	had an explicit object argument.

From-SVN: r177567
2011-08-08 11:32:21 -04:00
Uros Bizjak 473b30ce95 re PR target/49781 ([x32] Unnecessary lea in x32 mode)
PR target/49781
	* config/i386/i386.c (ix86_decompose_address): Allow zero-extended
	SImode addresses.
	(ix86_print_operand_address): Handle zero-extended addresses.
	(memory_address_length): Add length of addr32 prefix for
	zero-extended addresses.
	(ix86_secondary_reload): Handle moves to/from double-word general
	registers from/to zero-extended addresses.
	* config/i386/predicates.md (lea_address_operand): Reject
	zero-extended operands.

From-SVN: r177566
2011-08-08 16:59:19 +02:00
Jason Merrill d7cfa3145f re PR c++/50011 ([C++0x] warning: narrowing conversion of 'i' from 'short unsigned int' to 'int' inside { } [-Wnarrowing])
PR c++/50011
	* typeck2.c (check_narrowing): Fix integer logic.

From-SVN: r177565
2011-08-08 10:36:22 -04:00
H.J. Lu cca2207a2d Fix Dwarf unwind library for UNITS_PER_WORD > sizeof (void *)
gcc/

2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	PR other/48007
	* config.gcc (libgcc_tm_file): Add i386/value-unwind.h for
	Linux/x86.

	* system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
	(ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.

	* unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
	(_Unwind_Context_Reg_Val): Likewise.
	(_Unwind_Get_Unwind_Word): Likewise.
	(_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
	(_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
	(_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
	for EXTENDED_CONTEXT_BIT.
	(__frame_state_for): Likewise.
	(uw_init_context_1): Likewise.
	(_Unwind_GetGR): Updated.
	(_Unwind_SetGR): Likewise.
	(_Unwind_GetGRPtr): Likewise.
	(_Unwind_SetGRPtr): Likewise.
	(_Unwind_SetGRValue): Likewise.
	(_Unwind_GRByValue): Likewise.
	(uw_install_context_1): Likewise.

	* doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
	ASSUME_EXTENDED_UNWIND_CONTEXT.
	* doc/tm.texi: Regenerated.

libgcc/

2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	PR other/48007
	* config/i386/value-unwind.h: New.

From-SVN: r177563
2011-08-08 06:26:06 -07:00
Rainer Orth b6ee5bef6e * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
From-SVN: r177562
2011-08-08 12:36:51 +00:00
Rainer Orth 56e6b4a277 New files from last commit.
From-SVN: r177561
2011-08-08 12:15:42 +00:00
Rainer Orth 46135ba7ad invoke.texi (DEC Alpha Options, -mcpu): native support isn't Linux/GNU-specific.
* doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
	Linux/GNU-specific.
	(DEC Alpha Options, -mtune): Likewise.
	(MIPS Options, -march): native is supported on IRIX.

From-SVN: r177560
2011-08-08 12:14:54 +00:00
Rainer Orth e3b3fa45a4 driver-sparc.c: New file.
gcc:
	* config/sparc/driver-sparc.c: New file.
	* config/sparc/x-sparc: New file.
	* config.host: Use driver-sparc.o, sparc/x-sparc on
	sparc*-*-solaris2*.
	* config/sparc/sparc.opt (native): New value for enum
	processor_type.
	* config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
	* config/sparc/sparc.c (sparc_option_override): Abort if
	PROCESSOR_NATIVE gets here.
	* config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
	(EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
	DRIVER_SELF_SPECS): Define.
	* doc/invoke.texi (SPARC Options, -mcpu): Document native.
	(SPARC Options, -mtune): Likewise.
	* configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
	Substitute result.
	* configure: Regenerate.
	* Makefile.in (EXTRA_GCC_LIBS): Set.
	(xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
	(cpp$(exeext)): Likewise.

	gcc/cp:
	* Make-lang.in (g++$(exeext)): Add $(EXTRA_GCC_LIBS).

	gcc/fortran:
	* Make-lang.in (gfortran$(exeext)): Add $(EXTRA_GCC_LIBS).

	gcc/go:
	* Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).

	gcc/java:
	* Make-lang.in ($(XGCJ)$(exeext)): Add $(EXTRA_GCC_LIBS).

From-SVN: r177559
2011-08-08 12:08:31 +00:00
Richard Guenther ce6bfa50fa tree-vrp.c (extract_range_from_unary_expr_1): New function, split out from ...
2011-08-08  Richard Guenther  <rguenther@suse.de>

	* tree-vrp.c (extract_range_from_unary_expr_1): New function,
	split out from ...
	(extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
	by composition.

From-SVN: r177558
2011-08-08 11:40:08 +00:00
Mikael Pettersson daae4650a9 re PR tree-optimization/50005 (ipa-inline-analysis.c:1876:41: error: comparison between signed an d unsigned integer expressions)
2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>

        PR tree-optimization/50005
        * ipa-inline-analysis (remap_predicate): Add cast to
        silence signed/unsigned comparison warning.

From-SVN: r177557
2011-08-08 09:59:02 +00:00
Richard Sandiford 3e762578c1 modulo-sched.c (get_sched_window): Use a table for the debug output.
gcc/
	* modulo-sched.c (get_sched_window): Use a table for the debug output.
	Print the current ii.
	(sms_schedule_by_order): Reduce whitespace in dump line.

From-SVN: r177556
2011-08-08 09:27:40 +00:00
Richard Sandiford fe43febc8c modulo-sched.c (get_sched_window): Use just one loop for predecessors and one loop for successors.
gcc/
	* modulo-sched.c (get_sched_window): Use just one loop for predecessors
	and one loop for successors.  Fix upper bound of memory range.

From-SVN: r177555
2011-08-08 09:26:54 +00:00
GCC Administrator d855a67e7d Daily bump.
From-SVN: r177554
2011-08-08 00:19:29 +00:00
Janus Weil 2240d1cfe8 re PR fortran/49638 ([OOP] length parameter is ignored when overriding type bound character functions with constant length.)
2011-08-07  Janus Weil  <janus@gcc.gnu.org>
	    Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/49638
	* dependency.c (are_identical_variables): For dummy arguments only
	check for equal names, not equal symbols.
	* interface.c (gfc_check_typebound_override): Add checking for rank
	and character length.

2011-08-07  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/49638
	* gfortran.dg/typebound_override_1.f90: New.

Co-Authored-By: Thomas Koenig <tkoenig@gcc.gnu.org>

From-SVN: r177550
2011-08-07 22:59:16 +02:00
Eric Botcazou 588c8f488f gigi.h (enumerate_modes): Fix formatting.
* gcc-interface/gigi.h (enumerate_modes): Fix formatting.

	* gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change.

From-SVN: r177548
2011-08-07 16:47:14 +00:00
Jonathan Wakely a5db4ced81 alloc_traits.h: Fix doxygen @headername.
2011-08-07  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/bits/alloc_traits.h: Fix doxygen @headername.

From-SVN: r177546
2011-08-07 13:25:48 +01:00
Janus Weil 99fc1b90cd re PR fortran/49638 ([OOP] length parameter is ignored when overriding type bound character functions with constant length.)
2011-08-07  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/49638
	* dependency.h (gfc_is_same_range,gfc_are_identical_variables): Remove
	two prototypes.
	* dependency.c (gfc_are_identical_variables,are_identical_variables):
	Renamed the former to the latter and made static.
	(gfc_dep_compare_expr): Renamed 'gfc_are_identical_variables', handle
	commutativity of multiplication.
	(gfc_is_same_range,is_same_range): Renamed the former to the latter,
	made static and removed argument 'def'.
	(check_section_vs_section): Renamed 'gfc_is_same_range'.
	* gfortran.h (gfc_check_typebound_override): New prototype.
	* interface.c (gfc_check_typebound_override): Moved here from ...
	* resolve.c (check_typebound_override): ... here (and renamed).
	(resolve_typebound_procedure): Renamed 'check_typebound_override'.

From-SVN: r177545
2011-08-07 12:12:09 +02:00
Eric Botcazou f446d60e81 * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change.
From-SVN: r177544
2011-08-07 08:44:06 +00:00
Kai Tietz cd6cf2c9a6 pr23455.c: Adjust testcases for LLP64 for x86_64 mingw target.
* gcc.dg/tree-ssa/pr23455.c: Adjust testcases for LLP64 for
	x86_64 mingw target.
	* gcc.dg/tree-ssa/loop-1.c: Likewise.
	* gcc.dg/tree-ssa/ssa-store-ccp-2.c: Likewise.
	* gcc.dg/tree-ssa/ssa-store-ccp-3.c: Likewise.
	* gcc.dg/tree-ssa/loop-33.c: Likewise.
	* gcc.dg/tree-ssa/ssa-store-ccp-4.c: Likewise.
	* gcc.dg/tree-ssa/loop-35.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-2.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-4.c: Likewise.
	* gcc.dg/tree-ssa/stdarg-5.c: Likewise.
	* gcc.dg/tree-ssa/gen-vect-11c.c: Likewise.

From-SVN: r177543
2011-08-07 09:45:57 +02:00