Commit Graph

121534 Commits

Author SHA1 Message Date
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
Kostya Serebryany
2660d12d0a libsanitizer merge from upstream r173241
From-SVN: r195404
2013-01-23 11:41:33 +00:00
Jakub Jelinek
b39968989d re PR fortran/56052 ([OOP] ICE in omp_add_variable, at gimplify.c:5606)
PR fortran/56052
	* trans-decl.c (gfc_get_symbol_decl): Set DECL_ARTIFICIAL
	and DECL_IGNORED_P on select_type_temporary and don't set
	DECL_BY_REFERENCE.

	* gfortran.dg/gomp/pr56052.f90: New test.

From-SVN: r195399
2013-01-23 09:43:50 +01:00
Jakub Jelinek
a70418fc91 re PR target/49069 (ICE in gen_cstoredi4, at config/arm/arm.md:7554)
PR target/49069
	* config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
	instead of cmpdi_operand for first comparison operand.
	Don't assert that comparison operands aren't both constants.

	* gcc.dg/pr49069.c: New test.

From-SVN: r195398
2013-01-23 09:37:16 +01:00
GCC Administrator
a4bfae44d4 Daily bump.
From-SVN: r195396
2013-01-23 00:18:41 +00:00
Paolo Carlini
723889fa82 re PR c++/55944 ([C++11] static local member with constexpr c'tor causes ICE)
/cp
2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55944
	* decl.c (check_initializer): Use TARGET_EXPR_DIRECT_INIT_P only
	on TARGET_EXPR nodes.

/testsuite
2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55944
	* g++.dg/cpp0x/constexpr-static10.C: New.

From-SVN: r195391
2013-01-22 23:38:34 +00:00
Uros Bizjak
c2a452151e * testsuite/ChangeLog: Move ChangeLog entries to 2013.
From-SVN: r195389
2013-01-22 23:20:37 +01:00
Jonathan Wakely
47876a2a26 install.texi (Downloading the Source): Update references to downloading separate components.
* doc/install.texi (Downloading the Source): Update references to
	downloading separate components.

From-SVN: r195388
2013-01-22 22:14:33 +00:00
Jonathan Wakely
4ebd56a55b * doc/extend.texi (__int128): Improve grammar.
From-SVN: r195387
2013-01-22 21:58:39 +00:00
Uros Bizjak
32fc5b8a4b re PR target/56028 (Splitting a 64-bit volatile store)
PR target/56028
	* config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
	alternative to (o,r).
	(*movdi_internal_rex64): Remove (!o,n) alternative.
	(DImode immediate->memory splitter): Remove.
	(DImode immediate->memory peephole2): Remove.
	(movtf): Enable for TARGET_64BIT || TARGET_SSE.
	(*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
	alternative to (!o,*r).
	(*movtf_internal_sse): New pattern.
	(*movxf_internal_rex64): New pattern.
	(*movxf_internal): Disable for TARGET_64BIT.
	(*movdf_internal_rex64): Remove (!o,F) alternative.

testsuite/ChangeLog:

2012-01-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/56028
	* gcc.target/i386/pr56028.c: New test.

From-SVN: r195386
2013-01-22 21:58:37 +01:00
Jakub Jelinek
0a18c815f9 explicit-hle.cc: Tightten scan-assembler-times regexps...
* testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
	Tightten scan-assembler-times regexps, add dg-additional-options for
	ia32, add -g0 -fno-exceptions -fno-asynchronous-unwind-tables to
	dg-options.

From-SVN: r195383
2013-01-22 18:15:47 +01:00
Jakub Jelinek
502498d5b3 re PR middle-end/56074 (ICE compiling gcc.dg/vect/pr49093.c)
PR middle-end/56074
	* dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
	isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
	* tree-vect-loop-manip.c (find_loop_location): Also ignore
	stmt locations where LOCATION_LOCUS of the stmt location is
	UNKNOWN_LOCATION or BUILTINS_LOCATION.

From-SVN: r195382
2013-01-22 18:03:33 +01:00