]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
10 years agoUse int64 on time and clock for x32
H.J. Lu [Fri, 6 Dec 2013 11:48:24 +0000 (11:48 +0000)] 
Use int64 on time and clock for x32

* sanitizer_common/sanitizer_platform_limits_posix.h
(__sanitizer_shmid_ds): Use u64 on time fields for x32.
(__sanitizer_clock_t): Use long long for x32.

From-SVN: r205737

10 years agoInclude <sys/stat.h> if __x86_64__ is defined
H.J. Lu [Fri, 6 Dec 2013 11:44:55 +0000 (11:44 +0000)] 
Include <sys/stat.h> if __x86_64__ is defined

* sanitizer_common/sanitizer_platform_limits_linux.cc: Include
<sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
(struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.

From-SVN: r205736

10 years agore PR target/59316 (gcc.dg/atomic/c11-atomic-exec-5.c FAILs on Solaris/SPARC)
Eric Botcazou [Fri, 6 Dec 2013 11:31:56 +0000 (11:31 +0000)] 
re PR target/59316 (gcc.dg/atomic/c11-atomic-exec-5.c FAILs on Solaris/SPARC)

PR target/59316
* config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
* config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
* config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
(TARGET_BUILTIN_DECL): Define.
(TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
(sparc32_initialize_trampoline): Adjust call to gen_flush.
(enum sparc_builtins): New enumeral type.
(sparc_builtins): New static array.
(sparc_builtins_icode): Likewise.
(def_builtin): Accept a separate icode and save the result.
(def_builtin_const): Likewise.
(sparc_fpu_init_builtins): New function.
(sparc_vis_init_builtins): Pass the builtin code.
(sparc_init_builtins): Call it if TARGET_FPU.
(sparc_builtin_decl): New function.
(sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
(sparc_handle_vis_mul8x16): Use the builtin code.
(sparc_fold_builtin): Likewise.  Deal with SPARC_BUILTIN_{LD,ST}FSR
and SPARC_BUILTIN_PDISTN.
(compound_expr): New helper function.
(sparc_atomic_assign_expand_fenv): New function.
* config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
and UNSPECV_STFSR.
(flush, flushdi): Merge into single pattern.
(ldfsr): New instruction.
(stfsr): Likewise.

From-SVN: r205735

10 years agoasan.c: Remove struct tags when referring to class varpool_node.
Oleg Endo [Fri, 6 Dec 2013 10:40:53 +0000 (10:40 +0000)] 
asan.c: Remove struct tags when referring to class varpool_node.

* asan.c: Remove struct tags when referring to class varpool_node.
* cgraph.h: Likewise.
* cgraphbuild.c: Likewise.
* cgraphunit.c: Likewise.
* dbxout.c: Likewise.
* dwarf2out.c: Likewise.
* gimple-fold.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-ref-inline.h: Likewise.
* ipa-ref.h: Likewise.
* ipa-reference.c: Likewise.
* ipa-utils.c: Likewise.
* ipa.c: Likewise.
* lto-cgraph.c: Likewise.
* lto-streamer-out.c: Likewise.
* lto-streamer.h: Likewise.
* passes.c: Likewise.
* toplev.c: Likewise.
* tree-eh.c: Likewise.
* tree-emutls.c: Likewise.
* tree-pass.h: Likewise.
* tree-ssa-structalias.c: Likewise.
* tree-vectorizer.c: Likewise.
* tree.c: Likewise.
* varasm.c: Likewise.
* varpool.c: Likewise.

* cp/decl2.c: Remove struct tags when referring to class varpool_node.

* lto/lto.c: Remove struct tags when referring to class varpool_node.
* lto/lto-partition.c: Likewise.
* lto/lto-symtab.c: Likewise.

From-SVN: r205733

10 years agocgraphunit.c: Remove struct tags when referring to class ipa_opt_pass_d or class...
Oleg Endo [Fri, 6 Dec 2013 10:27:20 +0000 (10:27 +0000)] 
cgraphunit.c: Remove struct tags when referring to class ipa_opt_pass_d or class opt_pass.

* cgraphunit.c: Remove struct tags when referring to class
ipa_opt_pass_d or class opt_pass.
* function.h: Likewise.
* lto-cgraph.c: Likewise.
* pass_manager.h: Likewise.
* passes.c: Likewise.
* tree-pass.h: Likewise.

From-SVN: r205732

10 years agoProvide _M_2_SQRTPI if missing.
Rainer Orth [Fri, 6 Dec 2013 10:04:05 +0000 (10:04 +0000)] 
Provide _M_2_SQRTPI if missing.

* intrinsics/erfc_scaled.c (_M_2_SQRTPI): Define if missing.

From-SVN: r205731

10 years agore PR tree-optimization/59058 (wrong code at -O3 on x86_64-linux-gnu (affecting gcc...
Richard Biener [Fri, 6 Dec 2013 09:23:07 +0000 (09:23 +0000)] 
re PR tree-optimization/59058 (wrong code at -O3 on x86_64-linux-gnu (affecting gcc 4.6 to trunk))

2013-12-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59058
* tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1
member.
(LOOP_VINFO_NITERSM1): New macro.
* tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
the vector loop entry test in terms of scalar latch executions.
(vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
* tree-vect-loop.c (vect_get_loop_niters): Also return the
number of latch executions.
(new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
(vect_analyze_loop_form): Likewise.
(vect_generate_tmps_on_preheader): Compute the number of
vectorized iterations differently.

* gcc.dg/torture/pr59058.c: New testcase.

From-SVN: r205730

10 years agoinclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h being not compatible with...
Richard Biener [Fri, 6 Dec 2013 08:28:35 +0000 (08:28 +0000)] 
inclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h being not compatible with C++.

2013-12-06  Richard Biener  <rguenther@suse.de>

* inclhack.def (suse_linux_vt_cxx): New fix for linux/vt.h
being not compatible with C++.
* tests/base/linux/vt.h: New test.

From-SVN: r205729

10 years agoscore.c (score_force_temporary): Delete function.
Jan-Benedict Glaw [Fri, 6 Dec 2013 04:34:34 +0000 (04:34 +0000)] 
score.c (score_force_temporary): Delete function.

2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/score/score.c (score_force_temporary): Delete function.
(score_split_symbol): Ditto.
* config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
parentheses to silence ambiguity warning and reindent.

From-SVN: r205727

10 years agoDaily bump.
GCC Administrator [Fri, 6 Dec 2013 00:16:53 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r205726

10 years agopr15774-1.C: Adjust expected message.
Paolo Carlini [Thu, 5 Dec 2013 23:17:57 +0000 (23:17 +0000)] 
pr15774-1.C: Adjust expected message.

2013-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/warn/pr15774-1.C: Adjust expected message.

From-SVN: r205722

10 years agoinvoke.texi: Document -fsanitize=signed-integer-overflow.
Marek Polacek [Thu, 5 Dec 2013 22:51:11 +0000 (22:51 +0000)] 
invoke.texi: Document -fsanitize=signed-integer-overflow.

2013-12-05  Marek Polacek  <polacek@redhat.com>

* doc/invoke.texi: Document -fsanitize=signed-integer-overflow.

From-SVN: r205721

10 years agore PR c++/59044 (Internal compiler error triggers when accessing a typedef in a speci...
Jason Merrill [Thu, 5 Dec 2013 22:46:36 +0000 (17:46 -0500)] 
re PR c++/59044 (Internal compiler error triggers when accessing a typedef in a specialized member class)

PR c++/59044
PR c++/59052
* pt.c (most_specialized_class): Use the partially instantiated
template for deduction.  Drop the TMPL parameter.

From-SVN: r205720

10 years agoAdd -march=ia to x86 backend
H.J. Lu [Thu, 5 Dec 2013 20:47:13 +0000 (20:47 +0000)] 
Add -march=ia to x86 backend

* config.gcc: Support --with-cpu=ia.

* config/i386/i386.c (cpu_names): Add "ia".
(processor_alias_table): Likewise.
(ix86_option_override_internal): Disallow -march=ia.
* config/i386/i386.h (target_cpu_default): Add
TARGET_CPU_DEFAULT_ia.

* doc/invoke.texi: Document -mtune=ia.

From-SVN: r205719

10 years agore PR rtl-optimization/59317 ([LRA,MIPS] ICE: in check_rtl, at lra.c (insn does not...
Vladimir Makarov [Thu, 5 Dec 2013 19:39:39 +0000 (19:39 +0000)] 
re PR rtl-optimization/59317 ([LRA,MIPS] ICE: in check_rtl, at lra.c (insn does not satisfy constraints))

2013-12-05  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59317
* lra-constraints.c (in_class_p): Don't ignore insn with constant
as a source.

2013-12-05  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59317
* testsuite/gcc.target/mips/pr59317.c: New.

From-SVN: r205718

10 years agoalloc.c (backtrace_vector_finish): Add error_callback and data parameters.
Ian Lance Taylor [Thu, 5 Dec 2013 18:32:02 +0000 (18:32 +0000)] 
alloc.c (backtrace_vector_finish): Add error_callback and data parameters.

* alloc.c (backtrace_vector_finish): Add error_callback and data
parameters.  Call backtrace_vector_release.  Return address base.
* mmap.c (backtrace_vector_finish): Add error_callback and data
parameters.  Return address base.
* dwarf.c (read_function_info): Get new address base from
backtrace_vector_finish.
* internal.h (backtrace_vector_finish): Update declaration.

From-SVN: r205716

10 years agore PR ipa/58253 (IPA-SRA creates calls with different arguments that the callee accepts)
Martin Jambor [Thu, 5 Dec 2013 18:07:08 +0000 (19:07 +0100)] 
re PR ipa/58253 (IPA-SRA creates calls with different arguments that the callee accepts)

2013-12-05  Martin Jambor  <mjambor@suse.cz>

PR ipa/58253
* ipa-prop.c (ipa_modify_formal_parameters): Create decls of
non-BLKmode in their naturally aligned type.

From-SVN: r205715

10 years agore PR sanitizer/59333 (ICE with long long and -m32 -fsanitize=undefined)
Marek Polacek [Thu, 5 Dec 2013 18:03:44 +0000 (18:03 +0000)] 
re PR sanitizer/59333 (ICE with long long and -m32 -fsanitize=undefined)

PR sanitizer/59333
PR sanitizer/59397
* ubsan.c: Include rtl.h and expr.h.
(ubsan_encode_value): Add new parameter.  If expanding, assign
a stack slot for DECL_RTL of the temporary and call expand_assignment.
Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
(ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
* ubsan.h (ubsan_encode_value): Adjust declaration.
* internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
ubsan_build_overflow_builtin above expand_normal call.  Surround this call
with push_temp_slots and pop_temp_slots.
(ubsan_expand_si_overflow_neg_check): Likewise.
(ubsan_expand_si_overflow_mul_check): Likewise.
testsuite/
* c-c++-common/ubsan/pr59333.c: New test.
* c-c++-common/ubsan/pr59397.c: New test.

From-SVN: r205714

10 years agogimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard the get_alternative...
Yufeng Zhang [Thu, 5 Dec 2013 17:28:08 +0000 (17:28 +0000)] 
gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard the get_alternative_base call with flag_expensive_optimizations.

gcc/

* gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
the get_alternative_base call with flag_expensive_optimizations.
(alloc_cand_and_find_basis): Likewise.

From-SVN: r205713

10 years agoEliminate redundant vec_select moves.
Tejas Belagod [Thu, 5 Dec 2013 17:24:52 +0000 (17:24 +0000)] 
Eliminate redundant vec_select moves.

gcc/
        * rtlanal.c (set_noop_p): Return nonzero in case of redundant vec_select for
        overlapping register lanes.

testsuite/
        * config/gcc.dg/vect/vect-nop-move.c: New.

From-SVN: r205712

10 years agoRevert this change; no longer required.
Ian Lance Taylor [Thu, 5 Dec 2013 16:39:53 +0000 (16:39 +0000)] 
Revert this change; no longer required.

2013-11-06  Ian Lance Taylor  <iant@google.com>

* go-lang.c (go_langhook_post_options): If
-fisolate-erroneous-paths was turned on by an optimization option,
turn it off.

From-SVN: r205711

10 years agoAdd -lm to link_sanitizer_common
H.J. Lu [Thu, 5 Dec 2013 14:41:38 +0000 (14:41 +0000)] 
Add -lm to link_sanitizer_common

* configure.ac (link_sanitizer_common): Add -lm.
* configure: Regenerated.

From-SVN: r205710

10 years agoi386.c (ix86_expand_builtin): Generate reg for readflags built-in when optimizing.
Kirill Yukhin [Thu, 5 Dec 2013 12:20:19 +0000 (12:20 +0000)] 
i386.c (ix86_expand_builtin): Generate reg for readflags built-in when optimizing.

        * config/i386/i386.c (ix86_expand_builtin): Generate
        reg for readflags built-in when optimizing.
        * config/i386/i386.md (*pushfl<mode>): Rename to ...
        (pushfl<mode>2): This. Fix iterator.
        (*popfl<mode>): Rename to ...
        (*popfl<mode>1): This. Fix iterator.

From-SVN: r205707

10 years agoc-common.c (c_sizeof_or_alignof_type): Move a declaration into [ADJUST_FIELD_ALIGN].
Marek Polacek [Thu, 5 Dec 2013 12:05:43 +0000 (12:05 +0000)] 
c-common.c (c_sizeof_or_alignof_type): Move a declaration into [ADJUST_FIELD_ALIGN].

2013-12-05  Marek Polacek  <polacek@redhat.com>

c-family/
* c-common.c (c_sizeof_or_alignof_type): Move a declaration into
[ADJUST_FIELD_ALIGN].

From-SVN: r205705

10 years agoatomic_stack.c: New test.
Max Ostapenko [Thu, 5 Dec 2013 11:35:09 +0000 (13:35 +0200)] 
atomic_stack.c: New test.

2013-12-05  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* c-c++-common/tsan/atomic_stack.c: New test.
* c-c++-common/tsan/fd_pipe_race.c: New test.
* c-c++-common/tsan/free_race.c: New test.
* c-c++-common/tsan/mutexset1.c: New test.
* c-c++-common/tsan/race_on_barrier.c: New test.
* c-c++-common/tsan/sleep_sync.c: New test.
* c-c++-common/tsan/thread_leak.c: New test.
* c-c++-common/tsan/thread_leak1.c: New test.
* c-c++-common/tsan/thread_leak2.c: New test.
* c-c++-common/tsan/tiny_race.c: New test.
* c-c++-common/tsan/tls_race.c: New test.
* c-c++-common/tsan/write_in_reader_lock.c: New test.
* lib/tsan-dg.exp: New file.
* gcc.dg/tsan/tsan.exp: New file.
* g++.dg/tsan/tsan.exp: New file.
* g++.dg/dg.exp: Prune tsan subdirectory.

From-SVN: r205704

10 years agoi386.c (IX86_BUILTIN_READ_FLAGS): New.
Kirill Yukhin [Thu, 5 Dec 2013 11:23:39 +0000 (11:23 +0000)] 
i386.c (IX86_BUILTIN_READ_FLAGS): New.

ChangeLog/
        * config/i386/i386.c(IX86_BUILTIN_READ_FLAGS): New.
(IX86_BUILTIN_WRITE_FLAGS): Ditto.
(ix86_init_mmx_sse_builtins): Define
__builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
__builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
(ix86_expand_builtin): Expand them.
* config/i386/ia32intrin.h (__readeflags): New.
(__writeeflags): Ditto.
* gcc/config/i386/i386.md (*pushfl<mode>): Ditto.
(*popfl<mode>1): Ditto.

testsuite/ChangeLog/
        * gcc.target/i386/readeflags-1.c: New.
        * gcc.target/i386/writeeflags-1.c: Ditto.

From-SVN: r205703

10 years agoAdd forgotten file.
Jakub Jelinek [Thu, 5 Dec 2013 11:06:10 +0000 (12:06 +0100)] 
Add forgotten file.

From-SVN: r205701

10 years agolibsanitizer merge from upstream r196489
Kostya Serebryany [Thu, 5 Dec 2013 10:28:59 +0000 (10:28 +0000)] 
libsanitizer merge from upstream r196489

From-SVN: r205700

10 years agore PR sanitizer/59369 (c-c++-common/asan/pr59063-[1,2].c fails on darwin)
Yury Gribov [Thu, 5 Dec 2013 10:00:47 +0000 (10:00 +0000)] 
re PR sanitizer/59369 (c-c++-common/asan/pr59063-[1,2].c fails on darwin)

2013-12-05  Yury Gribov  <y.gribov@samsung.com>

PR sanitizer/59369
* c-c++-common/asan/pr59063-1.c: Disable on non-Linux platforms.
* c-c++-common/asan/pr59063-2.c: Likewise.

From-SVN: r205699

10 years agore PR sanitizer/59368 (libsanitizer spec file installed in the wrong place)
Yury Gribov [Thu, 5 Dec 2013 09:56:03 +0000 (09:56 +0000)] 
re PR sanitizer/59368 (libsanitizer spec file installed in the wrong place)

2013-12-05  Yury Gribov  <y.gribov@samsung.com>

PR sanitizer/59368
* Makefile.am (gcc_version): Added gcc_version.
* Makefile.in: Regenerate.

From-SVN: r205698

10 years agodecl.c (duplicate_decls): Replace pairs of errors and permerrors with error + inform...
Paolo Carlini [Thu, 5 Dec 2013 09:51:11 +0000 (09:51 +0000)] 
decl.c (duplicate_decls): Replace pairs of errors and permerrors with error + inform (permerror + inform...

/cp
2013-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (duplicate_decls): Replace pairs of errors and permerrors
with error + inform (permerror + inform, respectively).

/testsuite
2013-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/constexpr-46336.C: Adjust expected messages.
* g++.dg/cpp0x/defaulted2.C: Likewise.
* g++.dg/cpp1y/auto-fn8.C: Likewise.
* g++.dg/gomp/udr-3.C: Likewise.
* g++.dg/lookup/extern-c-redecl5.C: Likewise.
* g++.dg/lookup/linkage1.C: Likewise.
* g++.dg/overload/new1.C: Likewise.
* g++.dg/parse/friend5.C: Likewise.
* g++.dg/parse/namespace-alias-1.C: Likewise.
* g++.dg/parse/namespace10.C: Likewise.
* g++.dg/parse/redef2.C: Likewise.
* g++.dg/template/friend44.C: Likewise.
* g++.old-deja/g++.brendan/crash42.C: Likewise.
* g++.old-deja/g++.brendan/crash52.C: Likewise.
* g++.old-deja/g++.brendan/crash55.C: Likewise.
* g++.old-deja/g++.jason/overload21.C: Likewise.
* g++.old-deja/g++.jason/overload5.C: Likewise.
* g++.old-deja/g++.jason/redecl1.C: Likewise.
* g++.old-deja/g++.law/arm8.C: Likewise.
* g++.old-deja/g++.other/main1.C: Likewise.

From-SVN: r205697

10 years agore PR tree-optimization/56787 (Vectorization fails because of CLOBBER statements)
Richard Biener [Thu, 5 Dec 2013 09:20:51 +0000 (09:20 +0000)] 
re PR tree-optimization/56787 (Vectorization fails because of CLOBBER statements)

2013-12-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/56787
* gcc.dg/vect/pr56787.c: Adjust to not require vector float
division.

From-SVN: r205696

10 years agolibsanitizer merge from upstream r196090
Kostya Serebryany [Thu, 5 Dec 2013 09:18:38 +0000 (09:18 +0000)] 
libsanitizer merge from upstream r196090

From-SVN: r205695

10 years agore PR tree-optimization/59374 (-ftree-slp-vectorize breaks unique_ptr's move constructor)
Richard Biener [Thu, 5 Dec 2013 09:12:29 +0000 (09:12 +0000)] 
re PR tree-optimization/59374 (-ftree-slp-vectorize breaks unique_ptr's move constructor)

2013-12-05  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59374
* tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
Commonize known and unknown dependence case fixing the allowed
read-write dependence case and dropping code that should not
matter.

* gcc.dg/torture/pr59374-1.c: New testcase.
* gcc.dg/torture/pr59374-2.c: Likewise.

From-SVN: r205694

10 years agoia64.md (prologue_allocate_stack): Block auto- generation of predicated version.
Kirill Yukhin [Thu, 5 Dec 2013 07:54:43 +0000 (07:54 +0000)] 
ia64.md (prologue_allocate_stack): Block auto- generation of predicated version.

ChangeLog/

        * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
        generation of predicated version.
        (epilogue_deallocate_stack): Ditto.
        (prologue_allocate_stack_pr): Add explicit predicated version.
        (epilogue_deallocate_stack_pr): Ditto.
        * config/ia64/ia64.c (ia64_single_set): Use explicit versions.

testsuite/ChangeLog/

        * gcc.target/ia64/pr52731.c: New.

From-SVN: r205692

10 years ago* configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
Alan Modra [Thu, 5 Dec 2013 07:11:17 +0000 (17:41 +1030)] 
* configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
build != host.
<recursive call for build != host>: Clear GMPINC.  Don't bother
saving CFLAGS.

From-SVN: r205690

10 years agocommon.opt: Split up -fisolate-erroneous-paths into -fisolate-erroneous-paths-derefer...
Jeff Law [Thu, 5 Dec 2013 03:18:18 +0000 (20:18 -0700)] 
common.opt: Split up -fisolate-erroneous-paths into -fisolate-erroneous-paths-dereference...

* common.opt: Split up -fisolate-erroneous-paths into
-fisolate-erroneous-paths-dereference and
-fisolate-erroneous-paths-attribute.
* invoke.texi: Corresponding changes.
* gimple.c (infer_nonnull_range):  Add and use new arguments
to control what kind of statements can be used to infer a
non-null range.
* gimple.h (infer_nonnull_range): Update prototype.
* tree-vrp.c (infer_value_range): Corresponding changes.
* opts.c (default_options_table): Update due to option split.
* gimple-ssa-isolate-paths.c: Fix trailing whitespace.
(find_implicit_erroneous_behaviour): Pass additional arguments
to infer_nonnull_range.
(find_explicit_erroneous_behaviour): Similarly.
(gate_isolate_erroneous_paths): Check both of the new
options.

testsuite/

* gcc.dg/pr38984.c: Use -fno-isolate-erroneous-paths-dereference.
* gcc.dg/tree-ssa/isolate-2.c: Explicitly turn on
-fisolate-erroneous-paths-attribute.
* gcc.dg/tree-ssa/isolate-4.c: Likewise.

From-SVN: r205689

10 years agoDaily bump.
GCC Administrator [Thu, 5 Dec 2013 00:17:06 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r205688

10 years agore PR c/52023 ([C11] _Alignof (double) yields wrong value on x86)
Joseph Myers [Wed, 4 Dec 2013 22:57:20 +0000 (22:57 +0000)] 
re PR c/52023 ([C11] _Alignof (double) yields wrong value on x86)

PR c/52023
c-family:
* c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
and check field alignment if set.
* c-common.h (c_sizeof_or_alignof_type): Update prototype.
(c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.

c:
* c-parser.c (c_parser_alignas_specifier): Use
c_sizeof_or_alignof_type instead of c_alignof.
(c_parser_alignof_expression): Likewise, with min_alignof
parameter depending on alignof spelling used.

cp:
* typeck.c (cxx_sizeof_or_alignof_type): Update call to
c_sizeof_or_alignof_type.

objc:
* objc-act.c (objc_synthesize_getter): Update calls to
c_sizeof_or_alignof_type.

testsuite:
* gcc.dg/c11-align-6.c: New test.

From-SVN: r205685

10 years agoImplement -fsanitize=signed-integer-overflow.
Marek Polacek [Wed, 4 Dec 2013 22:47:11 +0000 (22:47 +0000)] 
Implement -fsanitize=signed-integer-overflow.

From-SVN: r205684

10 years ago* expr.c (expand_assignment): Update comments.
Jeff Law [Wed, 4 Dec 2013 21:57:52 +0000 (14:57 -0700)] 
* expr.c (expand_assignment): Update comments.

From-SVN: r205683

10 years agore PR ada/59382 (gnatmake is not able to compile libraries)
Eric Botcazou [Wed, 4 Dec 2013 21:25:11 +0000 (21:25 +0000)] 
re PR ada/59382 (gnatmake is not able to compile libraries)

PR ada/59382
gnattools/
* configure.ac (target parameterization): Rewrite.
* configure: Regenerate.
gcc/ada/
* indepsw-darwin.adb: New file.

From-SVN: r205681

10 years agore PR c/54113 (-Wmissing-prototypes produces false alarms for C99 inline functions)
Marek Polacek [Wed, 4 Dec 2013 21:15:31 +0000 (21:15 +0000)] 
re PR c/54113 (-Wmissing-prototypes produces false alarms for C99 inline functions)

PR c/54113
c/
* c-decl.c (start_function): Don't warn for missing prototype for
inline functions.
testsuite/
* gcc.dg/pr54113.c: New test.

From-SVN: r205680

10 years agore PR debug/37132 (Debug: No DW_TAG_namelist emitted for NAMELISTS)
Tobias Burnus [Wed, 4 Dec 2013 19:59:42 +0000 (20:59 +0100)] 
re PR debug/37132 (Debug: No DW_TAG_namelist emitted for NAMELISTS)

gcc/
2013-12-04  Tobias Burnus  <burnus@net-b.de>

        PR debug/37132
        * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
        * tree.def (NAMELIST_DECL): Add.
        * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
        * tree.c (initialize_tree_contains_struct): Add asserts for it.
        * dwarf2out.c (gen_namelist_decl): New function.
        (gen_decl_die, dwarf2out_decl): Call it.
        (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
        * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
        (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
        call.
        * lto-streamer-out.c (lto_output_tree_ref): Handle
        * NAMELIST_DECL.

gcc/fortran
2013-12-04  Tobias Burnus  <burnus@net-b.de>

        PR debug/37132
        * trans-decl.c (generate_namelist_decl, create_module_nml_decl):
        New static functions.
        (gfc_generate_module_vars, generate_local_vars): Call them.
        (gfc_trans_use_stmts): Handle namelists for debug genertion.

From-SVN: r205679

10 years agoUpdate changed bit when constraint set changes
Xinliang David Li [Wed, 4 Dec 2013 19:46:36 +0000 (19:46 +0000)] 
Update changed bit when constraint set changes

From-SVN: r205677

10 years ago* ChangeLog: Fix whitespace.
Uros Bizjak [Wed, 4 Dec 2013 19:33:55 +0000 (20:33 +0100)] 
* ChangeLog: Fix whitespace.

From-SVN: r205676

10 years agore PR c++/59268 ([c++11] ICE with constexpr in a virtual function)
Jakub Jelinek [Wed, 4 Dec 2013 18:00:28 +0000 (19:00 +0100)] 
re PR c++/59268 ([c++11] ICE with constexpr in a virtual function)

PR c++/59268
* pt.c (tsubst_copy_and_build): Handle POINTER_PLUS_EXPR.

* g++.dg/cpp0x/constexpr-template6.C: New test.

From-SVN: r205674

10 years agoPut a breakpoint on __asan_report_error for ASAN
H.J. Lu [Wed, 4 Dec 2013 14:53:36 +0000 (14:53 +0000)] 
Put a breakpoint on __asan_report_error for ASAN

* configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
-fsanitize=address.
* configure: Regenerated.

* gdbasan.in: New file.

From-SVN: r205669

10 years agobpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for architectures that do not have...
Kugan Vivekanandarajah [Wed, 4 Dec 2013 11:34:39 +0000 (11:34 +0000)] 
bpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for architectures that do not have hardware divide instruction.

2013-12-04  Kugan Vivekanandarajah  <kuganv@linaro.org>

* config/arm/bpapi-lib.h (TARGET_HAS_NO_HW_DIVIDE): Define for
architectures that do not have hardware divide instruction.
i.e. architectures that do not define __ARM_ARCH_EXT_IDIV__.

From-SVN: r205666

10 years agodecl.c (components_to_record): Add specific handling for fields with zero size and...
Eric Botcazou [Wed, 4 Dec 2013 11:27:25 +0000 (11:27 +0000)] 
decl.c (components_to_record): Add specific handling for fields with zero size and no representation clause.

* gcc-interface/decl.c (components_to_record): Add specific handling
for fields with zero size and no representation clause.

From-SVN: r205665

10 years agore PR rtl-optimization/58726 (wrong code at -Os on x86_64-linux-gnu (affecting trunk...
Jakub Jelinek [Wed, 4 Dec 2013 11:25:06 +0000 (12:25 +0100)] 
re PR rtl-optimization/58726 (wrong code at -Os on x86_64-linux-gnu (affecting trunk/4.7/4.6, but not 4.8))

PR rtl-optimization/58726
* combine.c (force_to_mode): Fix comment typo.  Don't destructively
modify x for ROTATE, ROTATERT and IF_THEN_ELSE.

* gcc.c-torture/execute/pr58726.c: New test.

From-SVN: r205664

10 years agore PR target/59163 (program compiled with g++ -O3 segfaults)
Jakub Jelinek [Wed, 4 Dec 2013 11:12:04 +0000 (12:12 +0100)] 
re PR target/59163 (program compiled with g++ -O3 segfaults)

PR target/59163
* config/i386/i386.c (ix86_legitimate_combined_insn): If for
!TARGET_AVX there is misaligned MEM operand with vector mode
and get_attr_ssememalign is 0, return false.
(ix86_expand_special_args_builtin): Add get_pointer_alignment
computed alignment and for non-temporal loads/stores also
at least GET_MODE_ALIGNMENT as MEM_ALIGN.
* config/i386/sse.md
(<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
<sse>_storeu<ssemodesuffix><avxsizesuffix>,
<sse2_avx_avx512f>_loaddqu<mode><mask_name>,
<sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
*vec_interleave_highv2df, *vec_interleave_lowv2df,
*vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
* config/i386/i386.md (ssememalign): New define_attr.

* g++.dg/torture/pr59163.C: New test.

From-SVN: r205663

10 years agotrans.c (Case_Statement_to_gnu): Do not push a binding level for each branch if...
Eric Botcazou [Wed, 4 Dec 2013 11:11:56 +0000 (11:11 +0000)] 
trans.c (Case_Statement_to_gnu): Do not push a binding level for each branch if...

* gcc-interface/trans.c (Case_Statement_to_gnu): Do not push a binding
level for each branch if this is a case expression in Ada 2012.
(gnat_to_gnu) <case N_Expression_With_Actions>: Adjust comment.

From-SVN: r205662

10 years agore PR target/59163 (program compiled with g++ -O3 segfaults)
Jakub Jelinek [Wed, 4 Dec 2013 11:11:24 +0000 (12:11 +0100)] 
re PR target/59163 (program compiled with g++ -O3 segfaults)

PR target/59163
* config/i386/i386.c (ix86_legitimate_combined_insn): If for
!TARGET_AVX there is misaligned MEM operand with vector mode
and get_attr_ssememalign is 0, return false.
(ix86_expand_special_args_builtin): Add get_pointer_alignment
computed alignment and for non-temporal loads/stores also
at least GET_MODE_ALIGNMENT as MEM_ALIGN.
* config/i386/sse.md
(<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
<sse>_storeu<ssemodesuffix><avxsizesuffix>,
<sse2_avx_avx512f>_loaddqu<mode><mask_name>,
<sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
*vec_interleave_highv2df, *vec_interleave_lowv2df,
*vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
* config/i386/i386.md (ssememalign): New define_attr.

* g++.dg/torture/pr59163.C: New test.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r205661

10 years agolonglong.h: New file.
Richard Sandiford [Wed, 4 Dec 2013 10:49:14 +0000 (10:49 +0000)] 
longlong.h: New file.

include/
* longlong.h: New file.

libgcc/
* longlong.h: Delete (moved to include/).

libquadmath/
* Makefile.am (AM_CPPFLAGS): Define.
* Makefile.in: Regenerate.
* printf/gmp-impl.h: Remove path from longlong.h include.

From-SVN: r205659

10 years agore PR tree-optimization/59355 (ICE: SIGSEGV in hash_table::find_slot_with_hash()...
Jakub Jelinek [Wed, 4 Dec 2013 08:44:25 +0000 (09:44 +0100)] 
re PR tree-optimization/59355 (ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fno-devirtualize)

PR tree-optimization/59355
* ipa-devirt.c (gate_ipa_devirt): Return false if
!flag_devirtualize.
* opts.c (common_handle_option): Fix comment spelling.

* g++.dg/ipa/pr59355.C: New test.

From-SVN: r205656

10 years agogimple-ssa-strength-reduction.c: Include tree-affine.h.
Yufeng Zhang [Wed, 4 Dec 2013 08:06:16 +0000 (08:06 +0000)] 
gimple-ssa-strength-reduction.c: Include tree-affine.h.

gcc/

* gimple-ssa-strength-reduction.c: Include tree-affine.h.
(name_expansions): New static variable.
(alt_base_map): Ditto.
(get_alternative_base): New function.
(find_basis_for_candidate): For CAND_REF, optionally call
find_basis_for_base_expr with the returned value from
get_alternative_base.
(record_potential_basis): Add new parameter 'base' of type 'tree';
add an assertion of non-NULL base; use base to set node->base_expr.
(alloc_cand_and_find_basis): Update; call record_potential_basis
for CAND_REF with the returned value from get_alternative_base.
(replace_refs): Dump details on the replacing.
(execute_strength_reduction): Call pointer_map_create for
alt_base_map; call free_affine_expand_cache with &name_expansions.

gcc/testsuite/

* gcc.dg/tree-ssa/slsr-39.c: Update.
* gcc.dg/tree-ssa/slsr-41.c: New test.

From-SVN: r205655

10 years agoruntime: Use pthread_sigmask instead of sigprocmask.
Ian Lance Taylor [Wed, 4 Dec 2013 01:35:53 +0000 (01:35 +0000)] 
runtime: Use pthread_sigmask instead of sigprocmask.

From-SVN: r205652

10 years agoDaily bump.
GCC Administrator [Wed, 4 Dec 2013 00:17:15 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r205651

10 years agoAdd self as SLSR maintainer.
Bill Schmidt [Tue, 3 Dec 2013 19:58:59 +0000 (19:58 +0000)] 
Add self as SLSR maintainer.

From-SVN: r205646

10 years agoibm-ldouble.c (__gcc_qadd): Fix add of normal number and qNaN to not raise an inexact...
Adhemerval Zanella [Tue, 3 Dec 2013 18:57:37 +0000 (18:57 +0000)] 
ibm-ldouble.c (__gcc_qadd): Fix add of normal number and qNaN to not raise an inexact exception.

libgcc/ChangeLog:

2013-12-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>

* config/rs6000/ibm-ldouble.c (__gcc_qadd): Fix add
of normal number and qNaN to not raise an inexact exception.

gcc/testsuite/ChangeLog:

2013-12-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>

* gcc.target/powerpc/pr57363.c: New test.

From-SVN: r205645

10 years agore PR rtl-optimization/59020 (internal compiler error: in maybe_add_or_update_dep_1...
Wei Mi [Tue, 3 Dec 2013 18:35:24 +0000 (18:35 +0000)] 
re PR rtl-optimization/59020 (internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933)

2013-12-03  Wei Mi  <wmi@google.com>

PR rtl-optimization/59020
* sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
(sched_analyze_insn): Call try_group_insn.
(sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
* haifa-sched.c (try_group_insn): Moved to sched-deps.c.
(group_insns_for_macro_fusion): Removed.
(sched_init): Remove calling group_insns_for_macro_fusion.

2013-12-03  Wei Mi  <wmi@google.com>

PR rtl-optimization/59020
* testsuite/gcc.dg/pr59020.c: New.
* testsuite/gcc.dg/macro-fusion-1.c: New.
* testsuite/gcc.dg/macro-fusion-2.c: New.

From-SVN: r205644

10 years agohtmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix typo in macro name.
Peter Bergner [Tue, 3 Dec 2013 16:26:32 +0000 (10:26 -0600)] 
htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix typo in macro name.

* config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
typo in macro name.
(_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.

From-SVN: r205641

10 years agore PR sanitizer/59063 (ASAN: segfault in __interceptor_clock_gettime)
Yury Gribov [Tue, 3 Dec 2013 16:01:13 +0000 (16:01 +0000)] 
re PR sanitizer/59063 (ASAN: segfault in __interceptor_clock_gettime)

PR sanitizer/59063
* lib/asan-dg.exp: Don't add anything to flags if libsanitizer
has not been found.
* lib/ubsan-dg.exp: Likewise.  Append to flags also
-B${gccpath}/libsanitizer/.

From-SVN: r205639

10 years agocostmodel-slp-34.c: Skip for little endian.
Bill Schmidt [Tue, 3 Dec 2013 15:54:25 +0000 (15:54 +0000)] 
costmodel-slp-34.c: Skip for little endian.

2013-12-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/vect/costmodel/ppc/costmodel-slp-34.c: Skip for little
endian.

From-SVN: r205638

10 years agoaarch64.c (aarch64_frame_pointer_required): Check LR_REGNUM.
Vladimir Makarov [Tue, 3 Dec 2013 15:34:56 +0000 (15:34 +0000)] 
aarch64.c (aarch64_frame_pointer_required): Check LR_REGNUM.

2013-12-03  Vladimir Makarov  <vmakarov@redhat.com>

* config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
LR_REGNUM.
(aarch64_can_eliminate): Don't check elimination source when
frame_pointer_required is false.

From-SVN: r205637

10 years agoruntime: Fix prototype and one use of runtime_traceback.
Ian Lance Taylor [Tue, 3 Dec 2013 14:51:07 +0000 (14:51 +0000)] 
runtime: Fix prototype and one use of runtime_traceback.

From Richard Biener.

From-SVN: r205634

10 years agoavr.c (avr_option_override): Warn if asked to generate position independent code.
Senthil Kumar Selvaraj [Tue, 3 Dec 2013 14:02:35 +0000 (14:02 +0000)] 
avr.c (avr_option_override): Warn if asked to generate position independent code.

        * config/avr/avr.c (avr_option_override): Warn if asked to generate
        position independent code.
        * config/avr/avr.h: Modify LINK_SPEC to reject -shared.

From-SVN: r205633

10 years agofstream (basic_filebuf::open): Use preformatted text for table in Doxygen comment.
Jonathan Wakely [Tue, 3 Dec 2013 12:58:15 +0000 (12:58 +0000)] 
fstream (basic_filebuf::open): Use preformatted text for table in Doxygen comment.

* include/std/fstream (basic_filebuf::open): Use preformatted text
for table in Doxygen comment.

From-SVN: r205631

10 years agoAdjust destination address after gen_strset
H.J. Lu [Tue, 3 Dec 2013 12:56:32 +0000 (12:56 +0000)] 
Adjust destination address after gen_strset

gcc/

PR target/59363
* config/i386/i386.c (emit_memset): Adjust destination address
after gen_strset.
(expand_setmem_epilogue): Likewise.

gcc/testsuite/

PR target/59363
* gcc.target/i386/pr59363.c: New file.

From-SVN: r205630

10 years agore PR middle-end/56344 (ICE for program with very large structs returned by value)
Marek Polacek [Tue, 3 Dec 2013 12:11:36 +0000 (12:11 +0000)] 
re PR middle-end/56344 (ICE for program with very large structs returned by value)

PR middle-end/56344
* calls.c (expand_call): Disallow passing huge arguments
by value.

From-SVN: r205628

10 years agore PR c/59351 (ICE on empty compound literal with -pedantic)
Marek Polacek [Tue, 3 Dec 2013 11:57:31 +0000 (11:57 +0000)] 
re PR c/59351 (ICE on empty compound literal with -pedantic)

PR c/59351
c/
* c-decl.c (build_compound_literal): Allow compound literals with
empty initial value.
testsuite/
* gcc.dg/pr59351.c: New test.

From-SVN: r205627

10 years agoFix some testcases for nds32 target and provide new nds32 target specific tests.
Chung-Ju Wu [Tue, 3 Dec 2013 10:58:05 +0000 (10:58 +0000)] 
Fix some testcases for nds32 target and provide new nds32 target specific tests.

gcc/testsuite/
* gcc.dg/20020312-2.c: Add __nds32__ case.
* gcc.dg/builtin-apply2.c: Skip for nds32*-*-*.
* gcc.dg/sibcall-3.c: Expected fail for nds32*-*-*.
* gcc.dg/sibcall-4.c: Expected fail for nds32*-*-*.
* gcc.dg/stack-usage-1.c (SIZE): Define case for __nds32__.
* gcc.dg/torture/pr37868.c: Skip for nds32*-*-*.
* gcc.dg/torture/stackalign/builtin-apply-2.c: Skip for nds32*-*-*.
* gcc.dg/tree-ssa/20040204-1.c: Expected fail for nds32*-*-*.
* gcc.dg/tree-ssa/pr42585.c: Skip for nds32*-*-*.
* gcc.dg/tree-ssa/sra-12.c: Skip for nds32*-*-*.
* gcc.target/nds32: New nds32 specific directory and testcases.
* lib/target-supports.exp (check_profiling_available): Check for
nds32*-*-elf.

From-SVN: r205625

10 years agoregex_compiler.h: Add todo comment.
Tim Shen [Tue, 3 Dec 2013 10:04:32 +0000 (10:04 +0000)] 
regex_compiler.h: Add todo comment.

2013-12-03  Tim Shen  <timshen91@gmail.com>

* regex_compiler.h: Add todo comment.
* regex_executor.tcc: Likewise.

From-SVN: r205624

10 years agore PR tree-optimization/59362 (Abort in fini_object_sizes)
Jakub Jelinek [Tue, 3 Dec 2013 07:48:58 +0000 (08:48 +0100)] 
re PR tree-optimization/59362 (Abort in fini_object_sizes)

PR tree-optimization/59362
* tree-object-size.c (object_sizes): Change into array of
vec<unsigned HOST_WIDE_INT>.
(compute_builtin_object_size): Check computed bitmap for
non-NULL instead of object_sizes.  Call safe_grow on object_sizes
vector if new SSA_NAMEs appeared.
(init_object_sizes): Check computed bitmap for non-NULL.
Call safe_grow on object_sizes elements instead of initializing
it with XNEWVEC.
(fini_object_sizes): Call release on object_sizes elements, don't
set it to NULL.

* gcc.c-torture/compile/pr59362.c: New test.

From-SVN: r205623

10 years agore PR middle-end/59011 (ICE in make_decl_rtl, at varasm.c:1147)
Jakub Jelinek [Tue, 3 Dec 2013 07:44:37 +0000 (08:44 +0100)] 
re PR middle-end/59011 (ICE in make_decl_rtl, at varasm.c:1147)

PR middle-end/59011
* gimplify.c (nonlocal_vla_vars): New variable.
(gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
nonlocal_vla_vars chain.
(gimplify_body): Call declare_vars on nonlocal_vla_vars chain
if outer_bind has DECL_INITIAL (current_function_decl) block.

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

From-SVN: r205621

10 years agore PR target/58864 (ICE in connect_traces, at dwarf2cfi.c:NNNN)
Jakub Jelinek [Tue, 3 Dec 2013 07:29:20 +0000 (08:29 +0100)] 
re PR target/58864 (ICE in connect_traces, at dwarf2cfi.c:NNNN)

PR target/58864
* dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
New functions.
* expr.h (struct saved_pending_stack_adjust): New type.
(save_pending_stack_adjust, restore_pending_stack_adjust): New
prototypes.
* optabs.c (emit_conditional_move): Call save_pending_stack_adjust
and get_last_insn before do_pending_stack_adjust, call
restore_pending_stack_adjust after delete_insns_since.
* expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
before calling emit_conditional_move.
* expmed.c (expand_sdiv_pow2): Likewise.
* calls.c (expand_call): Use {save,restore}_pending_stack_adjust.

* g++.dg/opt/pr58864.C: New test.

From-SVN: r205618

10 years agore PR tree-optimization/59322 (ICE with segfault on valid code at -O1, -O2, and ...
Jeff Law [Tue, 3 Dec 2013 03:36:58 +0000 (20:36 -0700)] 
re PR tree-optimization/59322 (ICE with segfault on valid code at -O1, -O2, and -O3 on x86_64-linux-gnu)

PR tree-optimization/59322
* tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
Remove code which copied jump threading paths.

PR tree-optimization/59322
* gcc.c-torture/compile/pr59322.c: New test

From-SVN: r205617

10 years agoThis patch fixes PR 58944
Sriraman Tallam [Tue, 3 Dec 2013 03:14:09 +0000 (03:14 +0000)] 
This patch fixes PR 58944
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58944

ix86_valid_target_attribute_tree in config/i386/i386.c was
refactored to not depend on global_options structure and to be able to
use any gcc_options structure.  One clean way to fix this is by having
target_option_default_node save all the default target options which
can be restored to any gcc_options structure. The root cause of the
above bugs was that ix86_arch_string and ix86_tune_string was not
saved in target_option_deault_node.

This patch saves all the  target options used in i386.opt which are
either obtained from the command-line or set to some default.

Testing:
Patch tested for bootstrap on all default languages(also obj-c++ and ada)
on x86_64 and regression testsuite checked for parity with RUNTESTFLAGS -m32
and m64.

From-SVN: r205616

10 years agore PR c/58235 (Missing diagnostic on assignment to array in c89)
Joseph Myers [Tue, 3 Dec 2013 02:47:13 +0000 (02:47 +0000)] 
re PR c/58235 (Missing diagnostic on assignment to array in c89)

PR c/58235
c:
* c-typeck.c (build_modify_expr): Diagnose assignment to
expression with array type.

testsuite:
* gcc.dg/c90-array-lval-8.c: New test.

From-SVN: r205615

10 years agoDaily bump.
GCC Administrator [Tue, 3 Dec 2013 00:17:01 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r205612

10 years agoepiphany.h: Wrap rtl_opt_pass declarations in #ifndef IN_LIBGCC2 / #endif.
Joern Rennecke [Mon, 2 Dec 2013 23:22:57 +0000 (23:22 +0000)] 
epiphany.h: Wrap rtl_opt_pass declarations in #ifndef IN_LIBGCC2 / #endif.

        * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
        in #ifndef IN_LIBGCC2 / #endif.

From-SVN: r205609

10 years agore PR tree-optimization/59358 (Infinite loop generated with >=O2)
Jakub Jelinek [Mon, 2 Dec 2013 22:41:23 +0000 (23:41 +0100)] 
re PR tree-optimization/59358 (Infinite loop generated with >=O2)

PR tree-optimization/59358
* tree-vrp.c (union_ranges): To check for the partially
overlapping ranges or adjacent ranges, also compare *vr0max
with vr1max.

* gcc.c-torture/execute/pr59358.c: New test.

From-SVN: r205607

10 years agore PR lto/59326 (FAIL: gcc.dg/vect/vect-simd-clone-*.c)
Jakub Jelinek [Mon, 2 Dec 2013 22:39:12 +0000 (23:39 +0100)] 
re PR lto/59326 (FAIL: gcc.dg/vect/vect-simd-clone-*.c)

PR lto/59326
* gcc.target/i386/i386.exp (check_effective_target_avx2): Move to...
* lib/target-supports.exp (check_effective_target_avx2): ... here.
(check_effective_target_vect_simd_clones): New.
* gcc.dg/vect/vect-simd-clone-1.c: Add dg-require-effective-target
vect_simd_clones.
* gcc.dg/vect/vect-simd-clone-2.c: Likewise.
* gcc.dg/vect/vect-simd-clone-3.c: Likewise.
* gcc.dg/vect/vect-simd-clone-4.c: Likewise.
* gcc.dg/vect/vect-simd-clone-5.c: Likewise.
* gcc.dg/vect/vect-simd-clone-6.c: Likewise.
* gcc.dg/vect/vect-simd-clone-7.c: Likewise.
* gcc.dg/vect/vect-simd-clone-8.c: Likewise.
* gcc.dg/vect/vect-simd-clone-9.c: Likewise.
* gcc.dg/vect/vect-simd-clone-10.c: Likewise.
* gcc.dg/vect/vect-simd-clone-11.c: Likewise.
* gcc.dg/vect/vect-simd-clone-12.c: Likewise.

From-SVN: r205606

10 years agodwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when...
Sterling Augustine [Mon, 2 Dec 2013 22:10:44 +0000 (22:10 +0000)] 
dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset when...

2013-12-02 Sterling Augustine  <saugustine@google.com>

        * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
        when there isn't a skeleton die.

From-SVN: r205603

10 years agore PR sanitizer/59353 (-fsanitize=return is not documented)
Marek Polacek [Mon, 2 Dec 2013 20:39:25 +0000 (20:39 +0000)] 
re PR sanitizer/59353 (-fsanitize=return is not documented)

PR sanitizer/59353
* doc/invoke.texi: Document -fsanitize=return.

From-SVN: r205601

10 years agoupdate_web_docs_svn: Work around makeinfo generated file names and references with...
Gerald Pfeifer [Mon, 2 Dec 2013 20:07:14 +0000 (20:07 +0000)] 
update_web_docs_svn: Work around makeinfo generated file names and references with "_002d" instead...

* update_web_docs_svn: Work around makeinfo generated file names
and references with "_002d" instead of "-".

From-SVN: r205600

10 years agore PR middle-end/59257 (usan/*san: Dpcumentation oddness of -fsanitize= / -fsanitize...
Tobias Burnus [Mon, 2 Dec 2013 19:54:29 +0000 (20:54 +0100)] 
re PR middle-end/59257 (usan/*san: Dpcumentation oddness of -fsanitize= / -fsanitize=shift)

2013-12-02  Tobias Burnus  <burnus@net-b.de>
            Manuel López-Ibáñez  <manu@gcc.gnu.org>

        PR middle-end/59257
        * doc/invoke.texi: Add missing @opindex.
        (-fsanitize=): Use @gcctabopt instead of @itemize.

Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r205598

10 years agoFix C++0x memory model for unaligned fields in packed...
Bernd Edlinger [Mon, 2 Dec 2013 19:50:55 +0000 (19:50 +0000)] 
Fix C++0x memory model for unaligned fields in packed...

2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Fix C++0x memory model for unaligned fields in packed, aligned(4)
        structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
        targets like arm-none-eabi.
        * expr.c (expand_assignment): Handle normal fields like bit regions.

testsuite:
2013-12-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc.dg/pr56997-4.c: New testcase.

From-SVN: r205597

10 years agore PR target/58115 (testcase gcc.target/i386/intrinsics_4.c failure)
Bernd Edlinger [Mon, 2 Dec 2013 18:00:47 +0000 (18:00 +0000)] 
re PR target/58115 (testcase gcc.target/i386/intrinsics_4.c failure)

2013-11-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR target/58115
        * function.c (invoke_set_current_function_hook): Call
        targetm.set_current_function after setting this_fn_optabs.

From-SVN: r205593

10 years agovla-1.c: Split the tests into individual functions.
Marek Polacek [Mon, 2 Dec 2013 16:08:47 +0000 (16:08 +0000)] 
vla-1.c: Split the tests into individual functions.

2013-12-02  Marek Polacek  <polacek@redhat.com>

testsuite/
* c-c++-common/ubsan/vla-1.c: Split the tests into individual
functions.

From-SVN: r205590

10 years agore PR tree-optimization/59139 (internal compiler error: in get_val_for, at tree-ssa...
Richard Biener [Mon, 2 Dec 2013 15:43:01 +0000 (15:43 +0000)] 
re PR tree-optimization/59139 (internal compiler error: in get_val_for, at tree-ssa-loop-niter.c:2267)

2013-12-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59139
* tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
code in get_val_for.
(get_val_for): Use gcc_checking_asserts.

* gcc.dg/torture/pr59139.c: New testcase.

From-SVN: r205588

10 years agotree-ssa-operands.c (opf_implicit): Remove.
Richard Biener [Mon, 2 Dec 2013 15:13:52 +0000 (15:13 +0000)] 
tree-ssa-operands.c (opf_implicit): Remove.

2013-12-02  Richard Biener  <rguenther@suse.de>

* tree-ssa-operands.c (opf_implicit): Remove.
(opf_address_taken): New flag.
(get_expr_operands): Remove early out, pass down
opf_address_taken for ADDR_EXPRs, add a use operand only
for non-opf_address_taken bases.
(get_indirect_ref_operands): Rename to ...
(get_mem_ref_operands): ... this.
(get_asm_expr_operands): Rename to ...
(get_asm_stmt_operands): ... this.

From-SVN: r205587

10 years agoAdd missed pointer de-reference
Yuri Rumyantsev [Mon, 2 Dec 2013 14:39:28 +0000 (14:39 +0000)] 
Add missed pointer de-reference

2013-12-02  Yuri Rumyantsev  <ysrumyan@gmail.com>

* ipa-inline.c (check_callers): Add missed pointer de-reference.

From-SVN: r205586

10 years agore PR tree-optimization/59356 (ACATS C52102A and C52102C failures)
Eric Botcazou [Mon, 2 Dec 2013 11:20:14 +0000 (11:20 +0000)] 
re PR tree-optimization/59356 (ACATS C52102A and C52102C failures)

PR tree-optimization/59356
* tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
offset computation using the precision of the index type.

From-SVN: r205585

10 years agoChangeLog: Fix ChangeLog entry.
Yvan Roux [Mon, 2 Dec 2013 07:54:53 +0000 (07:54 +0000)] 
ChangeLog: Fix ChangeLog entry.

* gcc/ChangeLog: Fix ChangeLog entry.

From-SVN: r205582

10 years agoarm.c (arm_preferred_reload_class): Only return LO_REGS when rclass is GENERAL_REGS.
Yvan Roux [Mon, 2 Dec 2013 07:44:34 +0000 (07:44 +0000)] 
arm.c (arm_preferred_reload_class): Only return LO_REGS when rclass is GENERAL_REGS.

2013-12-02  Yvan Roux  <yvan.roux@linaro.org>

        * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
        when rclass is GENERAL_REGS.

From-SVN: r205581

10 years agoCheck TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor
Ganesh Gopalasubramanian [Mon, 2 Dec 2013 07:27:14 +0000 (07:27 +0000)] 
Check TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor

From-SVN: r205580

10 years agoDaily bump.
GCC Administrator [Mon, 2 Dec 2013 00:17:06 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r205578

10 years agore PR libfortran/59313 (gfortran.dg/erf_3.F90 FAILs on Solaris/SPARC)
Uros Bizjak [Sun, 1 Dec 2013 20:56:21 +0000 (21:56 +0100)] 
re PR libfortran/59313 (gfortran.dg/erf_3.F90 FAILs on Solaris/SPARC)

PR libfortran/59313
* intrinsics/erfc_scaled.c (erfc_scaled_r16): Also provide for
quadruple precision long double variant.

From-SVN: r205574