Commit Graph

121545 Commits

Author SHA1 Message Date
Amol Pise 25350308a5 For Amol Pise.
2013-01-27  Amol Pise  <amolpise15@gmail.com>

	* gcc.target/arm/neon-vfnms-1.c: New test.
	* gcc.target/arm/neon-vfnma-1.c: New test.

From-SVN: r195503
2013-01-28 10:45:41 +00:00
Naveen H.S 706b2314dd aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS): Undef to avoid warning.
2013-01-25   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>

	* config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
	Undef to avoid warning.

From-SVN: r195502
2013-01-28 05:15:52 +00:00
GCC Administrator 78a7cf51dd Daily bump.
From-SVN: r195500
2013-01-28 00:18:50 +00:00
Uros Bizjak 77dc529721 re PR target/56114 (x86_64-linux-gnu-gcc generate wrong asm instruction MOVABS for intel syntax)
PR target/56114
	* config/i386/i386.md (*movabs<mode>_1): Add square brackets around
	operand 0 in movabs insn template for -masm=intel asm alternative.
	(*movabs<mode>_2): Ditto for operand 1.

testsuite/ChangeLog:

	PR target/56114
	* gcc.target/i386/pr56114.c: New test.

From-SVN: r195494
2013-01-27 14:16:54 +01:00
Paul Thomas ca3227497d re PR fortran/55984 ([OOP] ICE: gfc_trans_code(): Bad statement code)
2013-01-27 Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55984
	* ChangeLog : Correct wrong PR number.

From-SVN: r195493
2013-01-27 07:18:22 +00:00
Paul Thomas aa27186087 [multiple changes]
2013-01-27 Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55789
	PR fortran/56047
	* gfortran.h : Add associate_var to symbol_attr.
	* resolve.c (resolve_assoc_var): Set associate_var attribute.
	If the target class_ok is set, set it for the associate
	variable.
	* check.c (allocatable_check): Associate variables should not
	have the allocatable attribute even if their symbols do.
	* class.c (gfc_build_class_symbol): Symbols with associate_var
	set will always have a good class container.

2013-01-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55789
	* gfortran.dg/associate_14.f90: New test.

	PR fortran/56047
	* gfortran.dg/associate_13.f90: New test.

From-SVN: r195492
2013-01-27 07:09:06 +00:00
GCC Administrator 170c0f31d1 Daily bump.
From-SVN: r195491
2013-01-27 00:18:21 +00:00
David Holsgrove fbf0cf904e gcc: PR target/54663
gcc:  PR target/54663
	* config.gcc (microblaze*-linux*): Add tmake_file to allow building
	of microblaze-c.o.
libgcc:
	* config.host(microblaze*-linux*): tmake_file: Remove 
	t-slibgcc-nolc-override, add t-slibgcc-libgcc.
	* config/microblaze/t-microblaze: Set LIB2FUNCS_EXCLUDE
	to exclude functions from being built with libgcc.c and use
	the microblaze assembly.

From-SVN: r195488
2013-01-26 16:53:45 +00:00
Edgar E. Iglesias 6f14eef2c5 gcc/config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update tm_file.
libgcc/config.host (microblaze*-*-*): Rename microblaze*-*-elf, update extra_parts.

From-SVN: r195487
2013-01-26 16:39:10 +00:00
Michael Haubenwallner 478f60f94c configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>

        * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
        * configure: Regenerate.

From-SVN: r195486
2013-01-25 23:07:08 -05:00
GCC Administrator d535053d38 Daily bump.
From-SVN: r195485
2013-01-26 00:18:48 +00:00
Ian Lance Taylor 0d4668c1d5 libgo: Add --enable-werror configure option.
From-SVN: r195482
2013-01-26 00:13:34 +00:00
Ian Lance Taylor acc6151f4a re PR other/56076 (Several 64-bit libgo tests FAIL in read_line_header)
PR other/56076
runtime: Support sparc64 in lfstack.

From-SVN: r195479
2013-01-25 23:43:23 +00:00
Jakub Jelinek 1e678aed6c re PR other/56076 (Several 64-bit libgo tests FAIL in read_line_header)
PR other/56076
	* dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
	attribute was not seen.

From-SVN: r195478
2013-01-25 22:36:11 +00:00
Jason Merrill 6da1b88f06 remove unnecessary bits from g++.dg/warn/pmf2.C
From-SVN: r195477
2013-01-25 15:27:54 -05:00
Jakub Jelinek d7fa6ee24e re PR middle-end/56098 (conditional write through volatile pointer produces unintended read)
PR tree-optimization/56098
	* tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
	for stmts with volatile ops.
	(cond_store_replacement): Don't optimize if assign has volatile ops.
	(cond_if_else_store_replacement_1): Don't optimize if either
	then_assign or else_assign have volatile ops.
	(hoist_adjacent_loads): Don't optimize if either def1 or def2 have
	volatile ops.

	* gcc.dg/pr56098-1.c: New test.
	* gcc.dg/pr56098-2.c: New test.

From-SVN: r195475
2013-01-25 21:03:54 +01:00
Jason Merrill d4a180188b re PR c++/56095 (Crash casting function pointer as non-type template argument)
PR c++/56095
	* pt.c (convert_nontype_argument_function): Handle invalid input.
	(convert_nontype_argument): Likewise.

From-SVN: r195474
2013-01-25 15:01:29 -05:00
Georg-Johann Lay f8fe87bd12 invoke.texi (AVR Built-in Macros): Document __XMEGA__.
* doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.

From-SVN: r195473
2013-01-25 18:57:49 +00:00
Georg-Johann Lay 28398d0d55 extend.texi (Example of asm with clobbered asm reg): Fix missing ':' in asm example.
* doc/extend.texi (Example of asm with clobbered asm reg): Fix
	missing ':' in asm example.

From-SVN: r195471
2013-01-25 18:11:53 +00:00
Jason Merrill e18724aa46 re PR c++/56104 (Wrong "dereferencing type-punned pointer" warning)
PR c++/56104
	* typeck.c (get_member_function_from_ptrfunc): Optimize if the
	dynamic type has no virtual functions.

From-SVN: r195470
2013-01-25 12:55:09 -05:00
Tejas Belagod b7d7d917bd aarch64-simd-builtins.def: Separate sq<r>dmulh_lane entries into lane and laneq entries.
2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>

        * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
        entries into lane and laneq entries.
        * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>): Remove
        AdvSIMD scalar modes.
        (aarch64_sq<r>dmulh_laneq<mode>): New. 
        (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
        modes.
        * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
        builtin implementations to relfect changes in RTL in aarch64-simd.md.
        * config/aarch64/iterators.md (VCOND): New. 
        (VCONQ): New.

From-SVN: r195467
2013-01-25 11:35:03 +00:00
Georg-Johann Lay 556f9906c5 re PR target/54222 ([avr] Implement fixed-point support)
gcc/
	PR target/54222
	* config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
	Add NULL LIBNAME argument to existing definitions.
	(ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
	* config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
	* config/avr/avr.c (DEF_BUILTIN): Same.
	(avr_init_builtins): Pass down LIBNAME to add_builtin_function.
	(avr_expand_builtin): Expand to a vanilla call if a libgcc
	implementation is available (DECL_ASSEMBLER_NAME is set).
	(avr_fold_absfx): New static function.
	(avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
	AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
	AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
	AVR_BUILTIN_ABSLLK.
	* config/avr/stdfix.h (abshr, absr, abslr, absllr)
	(abshk, absk, abslk, absllk): Provide as static inline functions.

gcc/testsuite/
	PR target/54222
	* gcc.target/avr/torture/builtins-3-absfx.c: New test.

From-SVN: r195464
2013-01-25 09:28:09 +00:00
Marek Polacek 1f546bbbc4 Fix PR56035.
From-SVN: r195462
2013-01-25 08:52:02 +00:00
Eric Botcazou aaf1e810c2 Remove conflict marker
From-SVN: r195461
2013-01-25 08:16:57 +00:00
Maxim Kuvyrkov 9058217d10 * MAINTAINERS: Update my email.
From-SVN: r195459
2013-01-25 04:00:31 +00:00
GCC Administrator 0d105c88b5 Daily bump.
From-SVN: r195451
2013-01-25 00:18:31 +00:00
Uros Bizjak 7e184bd74d i386.md (*movti_internal_rex64): Add (o,e) alternative.
* config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
	(*movtf_internal_rex64): Add (!o,C) alternative
	(*movxf_internal_rex64): Ditto.
	(*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.

From-SVN: r195446
2013-01-24 23:50:43 +01:00
Richard Sandiford 8eb03ce8dc bind_c_array_params_2.f90: Require -mno-relax-pic-calls for MIPS.
gcc/testsuite/
	* gfortran.dg/bind_c_array_params_2.f90: Require -mno-relax-pic-calls
	for MIPS.

From-SVN: r195443
2013-01-24 21:45:55 +00:00
Richard Sandiford 94ba344642 octeon-pipe-1.c: Add -ffat-lto-objects
gcc/testsuite/
	* gcc.target/mips/octeon-pipe-1.c: Add -ffat-lto-objects

From-SVN: r195441
2013-01-24 21:40:54 +00:00
Ian Lance Taylor f6b1e65ec3 re PR go/46986 (Go is not supported on Darwin)
PR go/46986
all: prepend #__USER_LABEL_PREFIX__ to mangled Go symbols
For old-fashioned Darwin.

From-SVN: r195438
2013-01-24 19:44:23 +00:00
Shenghou Ma f5ba49ac2e invoke.texi: fix typo.
* doc/invoke.texi: fix typo.
	* doc/objc.texi: fix typo.

From-SVN: r195437
2013-01-24 18:51:49 +00:00
Ian Lance Taylor 72d1cef254 re PR go/46986 (Go is not supported on Darwin)
PR go/46986
libgo/Makefile, libgo/go/os/stat_atimespec.go: fix typos

From-SVN: r195436
2013-01-24 18:12:23 +00:00
Richard Sandiford a6343728a2 mips.md (*and<mode>3_mips16): Use the "W" constraint for the first two alternatives.
gcc/
	* config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
	for the first two alternatives.

From-SVN: r195433
2013-01-24 17:46:41 +00:00
Jakub Jelinek 8824edffd6 re PR c/56078 (causes cc1 to crash)
PR c/56078
	* c-typeck.c (set_nonincremental_init_from_string): If
	constructor_max_index is NULL, treat it as if tree_int_cst_lt
	returned false.
	(process_init_element): Likewise.

	* gcc.dg/pr56078.c: New test.
	* gcc.c-torture/compile/20030305-1.c: Add dg-error lines.

From-SVN: r195432
2013-01-24 17:59:44 +01:00
Martin Jambor 1513a0d494 re PR tree-optimization/55927 (FAIL: g++.dg/ipa/devirt-10.C -std=gnu++11 scan-ipa-dump-times inline "Discovered a virtual call to a known target" 1)
2013-01-24  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/55927
	* g++.dg/ipa/devirt-10.C: Disable early inlining.

From-SVN: r195430
2013-01-24 17:18:26 +01:00
Diego Novillo cd030c079e Remove zone allocator.
This patch removes the GC zone allocator.  It is not used and it
produces several regressions in the testsuite.  Furthermore, it
complicates things for the plan to implement manual GC markers
(http://gcc.gnu.org/wiki/cxx-conversion/gc-alternatives#Do_GC_marking_manually).

Tested on x86_64 with standard checking, --enable-checking=gc and
--enable-checking=release.

From-SVN: r195426
2013-01-24 10:13:46 -05:00
Georg-Johann Lay a861ffa4f3 avr.c (avr_out_fract): Make register numbers that might be outside of source operand signed.
* config/avr/avr.c (avr_out_fract): Make register numbers that
	might be outside of source operand signed.

From-SVN: r195424
2013-01-24 13:27:11 +00:00
Uros Bizjak 593c0dddb7 constraints.md (Yf): New constraint.
* config/i386/constraints.md (Yf): New constraint.
	* config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
	of f constraint to conditionaly disable x87 register preferences.
	(*movdf_internal): Ditto.
	(*movsf_internal): Ditto.

testsuite/ChangeLog:

	* gcc.target/i386/movsd.c: New test.

From-SVN: r195423
2013-01-24 14:03:40 +01:00
Paolo Carlini 91f4a9e332 re PR libstdc++/56085 (Unsafe negation in C++03 pow(complex,int))
2013-01-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/56085
	* include/std/complex (pow(const complex<>&, int)): Avoid __n
	signed overflow.

From-SVN: r195421
2013-01-24 12:20:57 +00:00
Steven Bosscher e86c0101ae re PR inline-asm/55934 (LRA inline asm error recovery)
gcc/

	PR inline-asm/55934
	* lra-assigns.c (assign_by_spills): Throw away the pattern of asms
	that have operands with impossible constraints.
	Add a FIXME for a speed-up opportunity.
	* lra-constraints.c (process_alt_operands): Verify that a class
	selected from constraints on asms is valid for the operand mode.
	(curr_insn_transform): Remove incorrect comment.

testsuite/

	PR inline-asm/55934
	* gcc.target/i386/pr55934.c: New test.

From-SVN: r195420
2013-01-24 10:30:26 +00:00
GCC Administrator 0e128cdc67 Daily bump.
From-SVN: r195417
2013-01-24 00:19:41 +00:00
Shenghou Ma 600613d76e isl.m4: don't echo $CFLAGS for ISL_CHECK_VERSION.
* config/isl.m4: don't echo $CFLAGS for ISL_CHECK_VERSION.
	* configure: Re-generate.

From-SVN: r195414
2013-01-23 22:37:01 +00:00
Janne Blomqvist facb23dc4e Improve performance of byte-swapped I/O.
2013-01-23  Janne Blomqvist  <jb@gcc.gnu.org>

	* io/file_pos.c (unformatted_backspace): Use __builtin_bswapXX
	instead of reverse_memcpy.
	* io/io.h (reverse_memcpy): Remove prototype.
	* io/transfer.c (reverse_memcpy): Make static, move towards
	beginning of file.
	(bswap_array): New function.
	(unformatted_read): Use bswap_array to byte swap the data
	in-place.
	(unformatted_write): Use a larger temp buffer and bswap_array.
	(us_read): Use __builtin_bswapXX instead of reverse_memcpy.
	(write_us_marker): Likewise.

From-SVN: r195413
2013-01-23 23:56:54 +02:00
Janus Weil ad3e2ad2ff re PR fortran/56081 (Seg fault ICE on select with bad case)
2013-01-23  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56081
	* resolve.c (resolve_select): Add argument 'select_type', reject
	non-scalar expressions.
	(resolve_select_type,resolve_code): Pass new argument to
	'resolve_select'.


2013-01-23  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56081
	* gfortran.dg/select_8.f90: New.

From-SVN: r195412
2013-01-23 22:38:40 +01:00
Uros Bizjak 22938102bb * ChangeLog: Add missing entry.
From-SVN: r195411
2013-01-23 20:08:45 +01:00
Uros Bizjak be3a647f2a i386.md (*movdf_internal_rex64): Disparage alternatives involving stack registers slightly.
* config/i386/i386.md (*movdf_internal_rex64): Disparage alternatives
	involving stack registers slightly.

From-SVN: r195410
2013-01-23 20:03:35 +01:00
David Edelsohn f6fee35fb2 rs6000.c (rs6000_delegitimize_address): Check that TOC operand is a valid symbol ref in the constant pool.
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
        TOC operand is a valid symbol ref in the constant pool.

From-SVN: r195409
2013-01-23 11:24:54 -05:00
Edgar E. Iglesias c77291841c Add TARGET_OS_CPP_BUILTINS for microblaze*-linux
From-SVN: r195408
2013-01-23 15:24:52 +00:00
Georg-Johann Lay dc62d7d151 re PR target/54222 ([avr] Implement fixed-point support)
PR target/54222
	* config/avr/stdfix.h: New file.
	* t-avr (stdfix-gcc.h): New rule to build it.
	(EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.

From-SVN: r195407
2013-01-23 15:13:51 +00:00
David Holsgrove caa7068b90 Remove obsolete check for target_config_cflags, no longer set.
From-SVN: r195406
2013-01-23 15:12:03 +00:00