platform/upstream/gcc.git
10 years agore PR target/60076 (gcc.dg/vect/pr60012.c FAILs on Solaris/SPARC)
Richard Biener [Wed, 5 Feb 2014 15:14:56 +0000 (15:14 +0000)]
re PR target/60076 (gcc.dg/vect/pr60012.c FAILs on Solaris/SPARC)

2014-02-05  Richard Biener  <rguenther@suse.de>

PR testsuite/60076
* gcc.dg/vect/pr60012.c: Require vect_extract_even_odd and
avoid using unsigned long long.

From-SVN: r207509

10 years agoconfig.host: Include t-floattodi also for s390x.
Andreas Krebbel [Wed, 5 Feb 2014 15:02:50 +0000 (15:02 +0000)]
config.host: Include t-floattodi also for s390x.

2014-02-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config.host: Include t-floattodi also for s390x.
* config/s390/32/_fixdfdi.c: Omit in 64 bit mode.
* config/s390/32/_fixsfdi.c: Likewise.
* config/s390/32/_fixtfdi.c: Likewise.
* config/s390/32/_fixunsdfdi.c: Likewise.
* config/s390/32/_fixunssfdi.c: Likewise.
* config/s390/32/_fixunstfdi.c: Likewise.

From-SVN: r207507

10 years agore PR middle-end/57499 (ICE when noreturn destructor returns after throw with -O)
Jakub Jelinek [Wed, 5 Feb 2014 14:34:30 +0000 (15:34 +0100)]
re PR middle-end/57499 (ICE when noreturn destructor returns after throw with -O)

PR middle-end/57499
* tree-eh.c (cleanup_empty_eh): Bail out on totally empty
bb with no successors.

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

From-SVN: r207504

10 years ago[ARM Documentation] Clarify -mcpu, -mtune, -march
James Greenhalgh [Wed, 5 Feb 2014 11:42:50 +0000 (11:42 +0000)]
[ARM Documentation] Clarify -mcpu, -mtune, -march

gcc/

PR target/59718
* doc/invoke.texi (-march=): Clarify documentation for ARM.
(-mtune=): Likewise.
(-mcpu=): Likewise.

From-SVN: r207501

10 years agotree-vect-loop.c (vect_analyze_loop_2): Be more informative when not vectorizing...
Richard Biener [Wed, 5 Feb 2014 10:28:26 +0000 (10:28 +0000)]
tree-vect-loop.c (vect_analyze_loop_2): Be more informative when not vectorizing because of too many alias checks.

2014-02-05  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_analyze_loop_2): Be more informative
when not vectorizing because of too many alias checks.
* tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.

From-SVN: r207499

10 years agomn10300.c (mn10300_hard_regno_mode_ok): Do not accept extended registers in any mode...
Nick Clifton [Wed, 5 Feb 2014 09:47:59 +0000 (09:47 +0000)]
mn10300.c (mn10300_hard_regno_mode_ok): Do not accept extended registers in any mode when compiling for the MN10300.

* config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
accept extended registers in any mode when compiling for the
MN10300.

From-SVN: r207498

10 years agore PR sanitizer/59600 (no_sanitize_address mishandled when function is inlined)
Yury Gribov [Wed, 5 Feb 2014 05:22:29 +0000 (05:22 +0000)]
re PR sanitizer/59600 (no_sanitize_address mishandled when function is inlined)

PR sanitizer/59600

gcc/
* cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
* ipa-inline.c (report_inline_failed_reason): Handle mismatched
sanitization attributes.
(can_inline_edge_p): Likewise.
(sanitize_attrs_match_for_inline_p): New function.

gcc/testsuite/
* gcc.dg/asan/nosanitize-and-inline.c: : New test.

From-SVN: r207497

10 years agoipa-prop.c (detect_type_change): Shor circuit testing of type changes on THIS pointer.
Jan Hubicka [Wed, 5 Feb 2014 00:52:53 +0000 (01:52 +0100)]
ipa-prop.c (detect_type_change): Shor circuit testing of type changes on THIS pointer.

* ipa-prop.c (detect_type_change): Shor circuit testing of
type changes on THIS pointer.

* g++.dg/ipa/devirrt-22.C: Fix template.

From-SVN: r207495

10 years agore PR target/59777 (Incorrect expansion of TLS arguments in a call)
John David Anglin [Wed, 5 Feb 2014 00:43:56 +0000 (00:43 +0000)]
re PR target/59777 (Incorrect expansion of TLS arguments in a call)

PR target/59777
* config/pa/pa.c (legitimize_tls_address): Return original address
if not passed a SYMBOL_REF rtx.
(hppa_legitimize_address): Call legitimize_tls_address for all TLS
addresses.
(pa_emit_move_sequence): Simplify TLS source operands.
(pa_legitimate_constant_p): Reject all TLS constants.
* config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
(CONSTANT_ADDRESS_P): Reject TLS CONST addresses.

From-SVN: r207493

10 years agoDaily bump.
GCC Administrator [Wed, 5 Feb 2014 00:17:03 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r207492

10 years agoipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY groups when we...
Jan Hubicka [Tue, 4 Feb 2014 23:26:36 +0000 (00:26 +0100)]
ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY groups when we know they are controlled by LTO.

* ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
groups when we know they are controlled by LTO.
* varasm.c (default_binds_local_p_1): If object is in other partition,
it will be resolved locally.

* lto-partition.c (get_symbol_class): Only unforced DECL_ONE_ONLY
needs duplicating, not generic COMDAT.

From-SVN: r207489

10 years agohost-linux.c (linux_gt_pch_use_address): Don't use SSIZE_MAX because it is not always...
Bernd Edlinger [Tue, 4 Feb 2014 21:08:29 +0000 (21:08 +0000)]
host-linux.c (linux_gt_pch_use_address): Don't use SSIZE_MAX because it is not always defined.

2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc/config/host-linux.c (linux_gt_pch_use_address): Don't
        use SSIZE_MAX because it is not always defined.

From-SVN: r207488

10 years agore PR bootstrap/59913 ([4.9 Regresion] bootstrap failure on arm-linux-gnueabihf)
Vladimir Makarov [Tue, 4 Feb 2014 18:56:59 +0000 (18:56 +0000)]
re PR bootstrap/59913 ([4.9 Regresion] bootstrap failure on arm-linux-gnueabihf)

2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>

PR bootstrap/59913
* lra-constraints.c (need_for_split_p): Use more 3 reloads as
threshold for pseudo splitting.
(update_ebb_live_info): Process call argument hard registers and
hard registers from insn definition too.
(max_small_class_regs_num): New constant.
(inherit_in_ebb): Update live hard regs through EBBs.  Update
reloads_num only for small register classes.  Don't split for
outputs of jumps.

From-SVN: r207485

10 years agore PR c/60036 (Spurious signedness conversion warning with relational operator)
Marek Polacek [Tue, 4 Feb 2014 18:05:29 +0000 (18:05 +0000)]
re PR c/60036 (Spurious signedness conversion warning with relational operator)

PR c/60036
c-family/
* c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
SAVE_EXPR.
testsuite/
* gcc.dg/pr60036.c: New test.

From-SVN: r207481

10 years agore PR ipa/60058 (internal compiler error: Segmentation fault)
Markus Trippelsdorf [Tue, 4 Feb 2014 17:25:38 +0000 (17:25 +0000)]
re PR ipa/60058 (internal compiler error: Segmentation fault)

PR ipa/60058
* ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
is non-null.
* g++.dg/torture/pr60058.C: New testcase.

From-SVN: r207478

10 years ago* gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe.
Jan Hubicka [Tue, 4 Feb 2014 17:16:09 +0000 (17:16 +0000)]
* gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe.

From-SVN: r207477

10 years ago* gdbinit.in (pel): Define.
Marek Polacek [Tue, 4 Feb 2014 15:34:24 +0000 (15:34 +0000)]
* gdbinit.in (pel): Define.

From-SVN: r207474

10 years agoinvoke.texi (fstrict-volatile-bitfields): Clarify current behavior.
Bernd Edlinger [Tue, 4 Feb 2014 15:18:34 +0000 (15:18 +0000)]
invoke.texi (fstrict-volatile-bitfields): Clarify current behavior.

2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
        behavior.

From-SVN: r207473

10 years ago* g++.dg/tsan/default_options.C: Invert check.
Max Ostapenko [Tue, 4 Feb 2014 15:03:41 +0000 (17:03 +0200)]
* g++.dg/tsan/default_options.C: Invert check.

From-SVN: r207472

10 years agore PR lto/59723 (ICE: in lto_output_tree, at lto-streamer-out.c:1390 when compiling...
Richard Biener [Tue, 4 Feb 2014 14:53:24 +0000 (14:53 +0000)]
re PR lto/59723 (ICE: in lto_output_tree, at lto-streamer-out.c:1390 when compiling some Fortran tests with -flto)

2014-02-04  Richard Biener  <rguenther@suse.de>

PR lto/59723
* lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
in function context local.
(lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
* lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
similar to LTO_imported_decl_ref.

lto/
* lto.c (mentions_vars_p): Handle NAMELIST_DECL.
(lto_fixup_prevailing_decls): Handle fixing up CONSTRUCTOR values.

From-SVN: r207471

10 years agoexp_ch5.adb, [...]: Minor reformatting.
Robert Dewar [Tue, 4 Feb 2014 14:52:05 +0000 (14:52 +0000)]
exp_ch5.adb, [...]: Minor reformatting.

2014-02-04  Robert Dewar  <dewar@adacore.com>

* exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.

From-SVN: r207470

10 years ago[multiple changes]
Arnaud Charlet [Tue, 4 Feb 2014 14:49:39 +0000 (15:49 +0100)]
[multiple changes]

2014-02-04  Gary Dismukes  <dismukes@adacore.com>

* sem_aggr.adb: Change "runtime" to "run time" in warning message,
for consistency with other messages.

2014-02-04  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
iterator, indicate that the element is a constant if the container
type does not have a variable indexing aspect.
* sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
marked as constant, do not reset its Ekind, to ensure that
container elements in an element loop are not modified if the
container (e.g. a hashed set) only has a constant indexing aspect.

2014-02-04  Arnaud Charlet  <charlet@adacore.com>

* g-souinf.ads: Subprograms in this unit are actually not pure.
* freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
* einfo.ads (Is_Pure): Update doc to match implementation.

From-SVN: r207469

10 years ago[multiple changes]
Arnaud Charlet [Tue, 4 Feb 2014 14:32:37 +0000 (15:32 +0100)]
[multiple changes]

2014-02-04  Gary Dismukes  <dismukes@adacore.com>

* exp_ch13.adb: Minor spelling fix.

2014-02-04  Robert Dewar  <dewar@adacore.com>

* opt.ads: Minor comment update.

2014-02-04  Robert Dewar  <dewar@adacore.com>

* exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
instead of Replace.

2014-02-04  Ed Schonberg  <schonberg@adacore.com>

* sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
on null expressions if component type is non-null, when the
corresponding association covers an empty range of index values.

From-SVN: r207468

10 years ago[multiple changes]
Arnaud Charlet [Tue, 4 Feb 2014 14:28:24 +0000 (15:28 +0100)]
[multiple changes]

2014-02-04  Robert Dewar  <dewar@adacore.com>

* sinfo.ads: Further comments on N_Expression_With_Actions node.

2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
variables Out_Items and Ref_Global. Remove local constant
Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
and D8. Remove the useless collection of global items as this
was a leftover from an earlier version of the routine. Move
several routines out to avoid deep nesting and indentation.
(Inputs_Match): Add formal parameter Dep_Clause. Rename formal
parameter Do_Checks to Post_Errors. Update the comment on usage.
(Is_Matching_Input): Renamed to Input_Match. Add formal parameters
Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
to Post_Errors. Update the comment on usage. Account for the
case where a self referential state may have a null input_list.
(Is_Self_Referential): New routine.

2014-02-04  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
entity renames an expression, as in the case of an object of
an unconstrained type initialized by a function call, defer the
rewriting of the expression to the expander.
* exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
'Alignment): If the entity renames an expression, introduce
temporary to capture value, and rewrite original declaration to
use temporary.

From-SVN: r207467

10 years ago[multiple changes]
Arnaud Charlet [Tue, 4 Feb 2014 14:25:46 +0000 (15:25 +0100)]
[multiple changes]

2014-02-04  Gary Dismukes  <dismukes@adacore.com>

* g-comlin.adb: Minor typo fix.

2014-02-04  Ed Schonberg  <schonberg@adacore.com>

* freeze.adb (Freeze_All): Types derived from a formal
access_to_classwide type do not have a finalization master.

2014-02-04  Robert Dewar  <dewar@adacore.com>

* sprint.adb: Minor reformatting.

2014-02-04  Robert Dewar  <dewar@adacore.com>

* exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
cases where Actions is a null list.
* sinfo.ads (N_Expression_With_Actions): Actions can be
temporarily empty during semantic analysis, but must be non-empty
in the final expanded tree.

From-SVN: r207466

10 years agore PR tree-optimization/60002 (ICE: SIGSEGV in skip_artificial_parms_for() with ...
Jakub Jelinek [Tue, 4 Feb 2014 13:38:13 +0000 (14:38 +0100)]
re PR tree-optimization/60002 (ICE: SIGSEGV in skip_artificial_parms_for() with -O2 -fcompare-debug -fdeclone-ctor-dtor -fipa-cp-clone)

PR tree-optimization/60002
* cgraphclones.c (build_function_decl_skip_args): Clear
DECL_LANG_SPECIFIC.

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

From-SVN: r207465

10 years agore PR tree-optimization/60023 (ICE: verify_gimple failed: dead STMT in EH table with...
Jakub Jelinek [Tue, 4 Feb 2014 13:08:00 +0000 (14:08 +0100)]
re PR tree-optimization/60023 (ICE: verify_gimple failed: dead STMT in EH table with -O3 -fnon-call-exceptions -mavx2)

PR tree-optimization/60023
* tree-if-conv.c (predicate_mem_writes): Pass true instead of
false to gsi_replace.
* tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
has been in some EH region and vec_stmt could throw, add
vec_stmt into the same EH region.
* tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
has no lhs, ignore it.
* internal-fn.c (expand_MASK_LOAD): Likewise.

* g++.dg/vect/pr60023.cc: New test.

From-SVN: r207464

10 years agore PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux...
Jakub Jelinek [Tue, 4 Feb 2014 13:04:37 +0000 (14:04 +0100)]
re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux-gnu)

PR ipa/60026
* tree-inline.c (copy_forbidden): Fail for
__attribute__((optimize (0))) functions.

* c-c++-common/torture/pr60026.c: New test.

From-SVN: r207463

10 years agore PR other/58712 (issues found by --enable-checking=valgrind)
Jakub Jelinek [Tue, 4 Feb 2014 12:31:30 +0000 (13:31 +0100)]
re PR other/58712 (issues found by --enable-checking=valgrind)

PR other/58712
* omp-low.c (simd_clone_struct_copy): If from->inbranch
is set, copy one less argument.
(expand_simd_clones): Don't subtract clone_info->inbranch
from simd_clone_struct_alloc argument.

From-SVN: r207462

10 years agore PR other/58712 (issues found by --enable-checking=valgrind)
Jakub Jelinek [Tue, 4 Feb 2014 12:19:32 +0000 (13:19 +0100)]
re PR other/58712 (issues found by --enable-checking=valgrind)

PR other/58712
* omp-low.c (simd_clone_struct_copy): If from->inbranch
is set, copy one less argument.

From-SVN: r207461

10 years agore PR rtl-optimization/57915 (ICE in set_address_disp, at rtlanal.c:5537)
Jakub Jelinek [Tue, 4 Feb 2014 12:14:52 +0000 (13:14 +0100)]
re PR rtl-optimization/57915 (ICE in set_address_disp, at rtlanal.c:5537)

PR rtl-optimization/57915
* recog.c (simplify_while_replacing): If all unary/binary/relational
operation arguments are constant, attempt to simplify those.

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

From-SVN: r207460

10 years agore PR sanitizer/60055 (Invalid binding of __tsan_default_options)
Jakub Jelinek [Tue, 4 Feb 2014 10:46:22 +0000 (11:46 +0100)]
re PR sanitizer/60055 (Invalid binding of __tsan_default_options)

PR sanitizer/60055
* tsan/tsan_flags.cc (__tsan_default_options): Add
SANITIZER_INTERFACE_ATTRIBUTE.  Backport from upstream r200747.
* tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.

From-SVN: r207459

10 years agoFix g++.dg/init/dso_handle2.C on Solaris
Rainer Orth [Tue, 4 Feb 2014 10:22:23 +0000 (10:22 +0000)]
Fix g++.dg/init/dso_handle2.C on Solaris

* g++.dg/init/dso_handle2.C: Compile with -fuse-cxa-atexit.

From-SVN: r207458

10 years ago* gcc.target/arm/ftest-armv7a-thumb.c: Change aramv7-a to armv7-a.
Renlin Li [Tue, 4 Feb 2014 10:05:30 +0000 (10:05 +0000)]
* gcc.target/arm/ftest-armv7a-thumb.c: Change aramv7-a to armv7-a.

From-SVN: r207457

10 years agore PR middle-end/59261 (FAIL: gcc.dg/vect/bb-slp-26.c -flto -ffat-lto-objects (intern...
Jakub Jelinek [Tue, 4 Feb 2014 09:36:18 +0000 (10:36 +0100)]
re PR middle-end/59261 (FAIL: gcc.dg/vect/bb-slp-26.c -flto -ffat-lto-objects (internal compiler error))

PR middle-end/59261
* expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.

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

From-SVN: r207456

10 years agore PR tree-optimization/60012 (Vectorizer generates unnecessary loop versioning for...
Richard Biener [Tue, 4 Feb 2014 09:34:58 +0000 (09:34 +0000)]
re PR tree-optimization/60012 (Vectorizer generates unnecessary loop versioning for alias)

2014-02-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60012
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
TBAA disambiguation to all DDRs.

* gcc.dg/vect/pr60012.c: New testcase.

From-SVN: r207455

10 years agoEnsure libgcc_s unwinder is always used on 64-bit Solaris 10+/x86 (PR target/59788)
Rainer Orth [Tue, 4 Feb 2014 09:31:38 +0000 (09:31 +0000)]
Ensure libgcc_s unwinder is always used on 64-bit Solaris 10+/x86 (PR target/59788)

gcc:
PR target/59788
* config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
(LINK_SPEC): Use it for -shared, -shared-libgcc.

libgcc:
PR target/59788
* config/t-slibgcc-sld (libgcc-unwind.map): New target.
(install-libgcc-unwind-map-forbuild): New target.
(all): Depend on install-libgcc-unwind-map-forbuild.
(install-libgcc-unwind-map): New target.
(install): Depend on install-libgcc-unwind-map.

gcc/testsuite:
PR target/59788
* g++.dg/eh/unwind-direct.C: New test.

toplevel:
PR target/59788
* ltmain.sh (opt_duplicate_compiler_generated_deps): Enable on
*solaris2*.

From-SVN: r207454

10 years agotsan-dg.exp (tsan_init): Set trivial testcase timeout value to 20s.
Uros Bizjak [Tue, 4 Feb 2014 09:08:38 +0000 (10:08 +0100)]
tsan-dg.exp (tsan_init): Set trivial testcase timeout value to 20s.

* lib/tsan-dg.exp (tsan_init): Set trivial testcase
timeout value to 20s.

From-SVN: r207453

10 years agore PR sanitizer/60038 (AddressSanitizer CHECK failed ... "((*tls_addr + *tls_size...
Jakub Jelinek [Tue, 4 Feb 2014 07:37:44 +0000 (08:37 +0100)]
re PR sanitizer/60038 (AddressSanitizer CHECK failed ... "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" on CentOS 5.10)

PR sanitizer/60038
* sanitizer_common/sanitizer_linux_libcdep.cc: Include
sanitizer_atomic.h and unistd.h.
(kThreadDescriptorSize): Made static, remove initializer and const,
change type to atomic_uintptr_t.
(ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
query glibc version, compute kThreadDescriptorSize depending on
glibc version minor number.
(GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
kThreadDescriptorSize directly.

From-SVN: r207452

10 years agore PR ipa/59882 (internal compiler error: Segmentation fault)
Jan Hubicka [Tue, 4 Feb 2014 06:28:22 +0000 (07:28 +0100)]
re PR ipa/59882 (internal compiler error: Segmentation fault)

PR ipa/59882
* tree.c (get_binfo_at_offset): Do not get confused by empty classes;
* g++.dg/torture/pr59882.C: New testcase

From-SVN: r207451

10 years agogimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
Jan Hubicka [Tue, 4 Feb 2014 06:04:32 +0000 (07:04 +0100)]
gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.

* gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
* gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.

From-SVN: r207450

10 years agore PR ipa/59469 (LLVM build failure with gcc LTO)
Jan Hubicka [Tue, 4 Feb 2014 05:50:18 +0000 (06:50 +0100)]
re PR ipa/59469 (LLVM build failure with gcc LTO)

PR ipa/59469
* lto-symtab.c (lto_cgraph_replace_node, lto_varpool_replace_node):
merge force_output and forced_by_abi flags.

From-SVN: r207449

10 years agoipa-cp.c (ipa_get_indirect_edge_target_1): Do direct lookup via vtable pointer...
Jan Hubicka [Tue, 4 Feb 2014 05:40:21 +0000 (06:40 +0100)]
ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct lookup via vtable pointer...

* ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
lookup via vtable pointer; check for type consistency
and turn inconsitent facts into UNREACHABLE.
* ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
* gimple-fold.c (gimple_get_virt_method_for_vtable):
Do not ICE on type inconsistent querries; return UNREACHABLE
instead.

* testsuite/g++.dg/ipa/devirt-25.C: New testcase.

From-SVN: r207448

10 years agoipa-cp.c (ipa_get_indirect_edge_target_1): Do direct lookup via vtable pointer...
Jan Hubicka [Tue, 4 Feb 2014 03:42:37 +0000 (04:42 +0100)]
ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct lookup via vtable pointer...

* ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
lookup via vtable pointer; check for type consistency
and turn inconsitent facts into UNREACHABLE.
* ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
* gimple-fold.c (gimple_get_virt_method_for_vtable):
Do not ICE on type inconsistent querries; return UNREACHABLE
instead.

* g++.dg/ipa/devirt-25.C: New testcase.

From-SVN: r207447

10 years agore PR tree-optimization/59924 (uninit memory hog)
Jakub Jelinek [Tue, 4 Feb 2014 00:46:42 +0000 (01:46 +0100)]
re PR tree-optimization/59924 (uninit memory hog)

PR tree-optimization/59924
* gcc.dg/pr59924.c: New test.

From-SVN: r207446

10 years agoDaily bump.
GCC Administrator [Tue, 4 Feb 2014 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r207445

10 years agore PR tree-optimization/59924 (uninit memory hog)
Richard Henderson [Mon, 3 Feb 2014 23:13:08 +0000 (15:13 -0800)]
re PR tree-optimization/59924 (uninit memory hog)

PR tree-opt/59924

        * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
        already processed this node.
        (normalize_one_pred_1): Pass along mark_set.
        (normalize_one_pred): Create and destroy a pointer_set_t.
        (normalize_one_pred_chain): Likewise.

From-SVN: r207442

10 years agore PR gcov-profile/58602 (.gcno files not truncated at gcov_close)
Laurent Alfonsi [Mon, 3 Feb 2014 21:55:36 +0000 (14:55 -0700)]
re PR gcov-profile/58602 (.gcno files not truncated at gcov_close)

PR gcov-profile/58602
        * gcc/gcov-io.c (gcov_open): Open with truncation when mode<0

From-SVN: r207441

10 years agore PR ipa/59831 (ice in cgraph_speculative_call_info with -O3)
Jan Hubicka [Mon, 3 Feb 2014 20:41:30 +0000 (21:41 +0100)]
re PR ipa/59831 (ice in cgraph_speculative_call_info with -O3)

PR ipa/59831
* g++.dg/ipa/devirt-24.C: New testcase.

* ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on -fno-devirtualize;
Try to devirtualize by the knowledge of virtual table pointer given by
aggregate propagation.
* ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
ipa_print_node_jump_functions): Dump also offset that
is relevant for polymorphic calls.
(determine_known_aggregate_parts): Add arg_type parameter; use it
instead of determining the type from pointer type.
(ipa_compute_jump_functions_for_edge): Update call of
determine_known_aggregate_parts.
* gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
(gimple_get_virt_method_for_binfo): ... here; simplify using
vtable_pointer_value_to_vtable.
* gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
* ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
to unsigned HOST_WIDE_INT; Use vtable_pointer_value_to_vtable.
(vtable_pointer_value_to_vtable): Break out from ...; handle also
POINTER_PLUS_EXPR.
(vtable_pointer_value_to_binfo): ... here.
* ipa-utils.h (vtable_pointer_value_to_vtable): Declare.

From-SVN: r207439

10 years agotree-vect-slp.c (vect_supported_load_permutation_p): Avoid redef of outer loop index...
Teresa Johnson [Mon, 3 Feb 2014 19:12:58 +0000 (19:12 +0000)]
tree-vect-slp.c (vect_supported_load_permutation_p): Avoid redef of outer loop index variable.

2014-02-03  Teresa Johnson  <tejohnson@google.com>

* tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
redef of outer loop index variable.

From-SVN: r207437

10 years agore PR c++/53017 (Integer constant expression not constant enough for vector_size)
Marc Glisse [Mon, 3 Feb 2014 19:07:55 +0000 (20:07 +0100)]
re PR c++/53017 (Integer constant expression not constant enough for vector_size)

2014-02-03  Marc Glisse  <marc.glisse@inria.fr>

PR c++/53017
PR c++/59211
gcc/c-family/
* c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
handle_vector_size_attribute, handle_nonnull_attribute): Call
default_conversion on the attribute argument.
(handle_nonnull_attribute): Increment the argument number.
gcc/cp/
* tree.c (handle_init_priority_attribute): Call default_conversion on
the attribute argument.
gcc/
* doc/extend.texi (Function Attributes): Typo.
gcc/testsuite/
* c-c++-common/attributes-1.c: New testcase.
* g++.dg/cpp0x/constexpr-attribute2.C: Likewise.

From-SVN: r207436

10 years agore PR c++/58871 ([c++11] ICE with defaulted copy constructor in broken template class...
Paolo Carlini [Mon, 3 Feb 2014 18:22:46 +0000 (18:22 +0000)]
re PR c++/58871 ([c++11] ICE with defaulted copy constructor in broken template class hierarchy)

/cp
2014-02-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58871
* method.c (synthesized_method_walk): If vbases is non-null but
is_empty is true, likewise don't worry about the virtual bases.

/testsuite
2014-02-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58871
* g++.dg/cpp0x/pr58871.C: New.

From-SVN: r207434

10 years agore PR tree-optimization/60000 (GCC trunk build failure caused by the vectorizer)
Cong Hou [Mon, 3 Feb 2014 18:15:56 +0000 (13:15 -0500)]
re PR tree-optimization/60000 (GCC trunk build failure caused by the vectorizer)

2014-02-03  Cong Hou  <congh@google.com>

PR tree-optimization/60000
* tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
if the vectorized statement is a store.  A store statement can only
appear at the end of pattern statements.

2014-02-03  Cong Hou  <congh@google.com>

PR tree-optimization/60000
* g++.dg/vect/pr60000.cc: New test.

From-SVN: r207433

10 years agoltmain.sh: Patch for Solaris.
Ian Lance Taylor [Mon, 3 Feb 2014 17:39:44 +0000 (17:39 +0000)]
ltmain.sh: Patch for Solaris.

From Rainer Orth.

From-SVN: r207432

10 years ago* gcc_update (files_and_dependencies): Add aarch64-tune.md.
Brooks Moses [Mon, 3 Feb 2014 17:21:33 +0000 (09:21 -0800)]
* gcc_update (files_and_dependencies): Add aarch64-tune.md.

From-SVN: r207429

10 years agoAdd -mlong-double-128 and make it default for 64-bit Bionic
H.J. Lu [Mon, 3 Feb 2014 15:18:44 +0000 (15:18 +0000)]
Add -mlong-double-128 and make it default for 64-bit Bionic

gcc/

* config/i386/i386.c (flag_opts): Add -mlong-double-128.
(ix86_option_override_internal): Default long double to 64-bit for
32-bit Bionic and to 128-bit for 64-bit Bionic.

* config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
TARGET_LONG_DOUBLE_128 is true.
(LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.

* config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
(mlong-double-64): Negate -mlong-double-128.
(mlong-double-128): New option.

* config/i386/i386-c.c (ix86_target_macros): Define
__LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.

* doc/invoke.texi: Document -mlong-double-128.

gcc/testsuite/

* gcc.target/i386/long-double-64-1.c: Verify __multf3 isn't used.
* gcc.target/i386/long-double-64-4.c: Likewise.
* gcc.target/i386/long-double-80-1.c: Likewise.
* gcc.target/i386/long-double-80-2.c: Likewise.
* gcc.target/i386/long-double-80-3.c: Likewise.
* gcc.target/i386/long-double-80-4.c: Likewise.
* gcc.target/i386/long-double-80-5.c: Likewise.
* gcc.target/i386/long-double-64-2.c: Limit to ia32.  Verify
__multf3 isn't used.
* gcc.target/i386/long-double-64-3.c: Likewise.
* gcc.target/i386/long-double-128-1.c: New test.
* gcc.target/i386/long-double-128-2.c: Likewise.
* gcc.target/i386/long-double-128-3.c: Likewise.
* gcc.target/i386/long-double-128-4.c: Likewise.
* gcc.target/i386/long-double-128-5.c: Likewise.
* gcc.target/i386/long-double-128-6.c: Likewise.
* gcc.target/i386/long-double-128-7.c: Likewise.
* gcc.target/i386/long-double-128-8.c: Likewise.
* gcc.target/i386/long-double-128-9.c: Likewise.
* gcc.target/i386/long-double-64-5.c: Likewise.
* gcc.target/i386/long-double-64-6.c: Likewise.
* gcc.target/i386/long-double-64-7.c: Likewise.
* gcc.target/i386/long-double-64-8.c: Likewise.
* gcc.target/i386/long-double-64-9.c: Likewise.
* gcc.target/i386/long-double-80-10.c: Likewise.
* gcc.target/i386/long-double-80-8.c: Likewise.
* gcc.target/i386/long-double-80-9.c: Likewise.

From-SVN: r207428

10 years agoCheck if mode is OK first
H.J. Lu [Mon, 3 Feb 2014 15:06:31 +0000 (15:06 +0000)]
Check if mode is OK first

PR rtl-optimization/60024
* sel-sched.c (init_regs_for_mode): Check if mode is OK first.

From-SVN: r207427

10 years agoinvoke.texi: (fprofile-reorder-functions): Fix typo.
Markus Trippelsdorf [Mon, 3 Feb 2014 13:01:56 +0000 (13:01 +0000)]
invoke.texi: (fprofile-reorder-functions): Fix typo.

2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>

* doc/invoke.texi: (fprofile-reorder-functions): Fix typo.

From-SVN: r207423

10 years agoActually add the test case from the previous commit.
Andrey Belevantsev [Mon, 3 Feb 2014 12:04:33 +0000 (16:04 +0400)]
Actually add the test case from the previous commit.

From-SVN: r207422

10 years agore PR rtl-optimization/57662 (ICE: SIGSEGV in code_motion_process_successors with...
Andrey Belevantsev [Mon, 3 Feb 2014 12:00:23 +0000 (16:00 +0400)]
re PR rtl-optimization/57662 (ICE: SIGSEGV in code_motion_process_successors with -fschedule-insns2 -fselective-scheduling2)

gcc/
PR rtl-optimization/57662
* sel-sched.c (code_motion_path_driver): Do not mark already not
existing blocks in the visiting bitmap.

testsuite/
PR rtl-optimization/57662
* g++.dg/pr57662.C: New test.

From-SVN: r207421

10 years agosel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P on the insn being...
Andrey Belevantsev [Mon, 3 Feb 2014 11:56:56 +0000 (15:56 +0400)]
sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P on the insn being emitted.

        * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
        on the insn being emitted.

From-SVN: r207420

10 years ago[Documentation] Remove documentation of gimple_asm_clear_volatile
James Greenhalgh [Mon, 3 Feb 2014 11:51:40 +0000 (11:51 +0000)]
[Documentation] Remove documentation of gimple_asm_clear_volatile

2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
    Will Deacon  <will.deacon@arm.com>

* doc/gimple.texi (gimple_asm_clear_volatile): Remove.

Co-Authored-By: Will Deacon <will.deacon@arm.com>
From-SVN: r207419

10 years ago* config/arm/arm-tables.opt: Regenerate.
Kyrylo Tkachov [Mon, 3 Feb 2014 11:30:36 +0000 (11:30 +0000)]
* config/arm/arm-tables.opt: Regenerate.

From-SVN: r207418

10 years agors6000.c (altivec_expand_vec_perm_le): Generalize for vector types other than V16QImode.
Bill Schmidt [Mon, 3 Feb 2014 01:26:34 +0000 (01:26 +0000)]
rs6000.c (altivec_expand_vec_perm_le): Generalize for vector types other than V16QImode.

gcc:

2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
for vector types other than V16QImode.
* config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
define_expand, and call altivec_expand_vec_perm_le when producing
code with little endian element order.
(*altivec_vperm_<mode>_internal): New insn having previous
behavior of altivec_vperm_<mode>.
(altivec_vperm_<mode>_uns): Change to a define_expand, and call
altivec_expand_vec_perm_le when producing code with little endian
element order.
(*altivec_vperm_<mode>_uns_internal): New insn having previous
behavior of altivec_vperm_<mode>_uns.

gcc/testsuite:

2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/vmx/3b-15.c: Remove special handling for little endian.
* gcc.dg/vmx/perm.c: New.
* gcc.dg/vmx/perm-be-order.c: New.

From-SVN: r207415

10 years agoaltivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
Bill Schmidt [Mon, 3 Feb 2014 01:24:31 +0000 (01:24 +0000)]
altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.

gcc:

2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
(altivec_vsumsws): Add handling for -maltivec=be with a little
endian target.
(altivec_vsumsws_direct): New.
(reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
gen_altivec_vsumsws.

gcc/testsuite:

2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/vmx/vsums.c: New.
* gcc.dg/vmx/vsums-be-order.c: New.

From-SVN: r207414

10 years agoipa-devirt.c (subbinfo_with_vtable_at_offset, [...]): New functions.
Jan Hubicka [Mon, 3 Feb 2014 00:24:52 +0000 (00:24 +0000)]
ipa-devirt.c (subbinfo_with_vtable_at_offset, [...]): New functions.

* ipa-devirt.c (subbinfo_with_vtable_at_offset,
vtable_pointer_value_to_binfo): New functions.
* ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
* ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
* g++.dg/ipa/devirt-23.C: New testcase.
* g++.dg/ipa/devirt-20.C: Fix template.

From-SVN: r207413

10 years agoDaily bump.
GCC Administrator [Mon, 3 Feb 2014 00:17:12 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r207412

10 years agonios2.md (load_got_register): Initialize GOT pointer from _gp_got instead of _GLOBAL_...
Sandra Loosemore [Sun, 2 Feb 2014 22:12:17 +0000 (17:12 -0500)]
nios2.md (load_got_register): Initialize GOT pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.

2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2.md (load_got_register): Initialize GOT
pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
* config/nios2/nios2.c (nios2_function_profiler): Likewise.

libgcc/
* config/nios2/crti.S (_init): Initialize GOT pointer from
_gp_got instead of _GLOBAL_OFFSET_TABLE_.

From-SVN: r207409

10 years agore PR c++/37140 (type inherited from base class not recognized)
Fabien Chêne [Sun, 2 Feb 2014 20:02:37 +0000 (21:02 +0100)]
re PR c++/37140 (type inherited from base class not recognized)

2014-02-02  Fabien Chene  <fabien@gcc.gnu.org>
        PR c++/37140
        * parser.c (cp_parser_nonclass_name): Call strip_using_decl and
move the code handling dependent USING_DECLs...
        * name-lookup.c (strip_using_decl): ...Here.

2014-02-02  Fabien Chene  <fabien@gcc.gnu.org>

        PR c++/37140
        * g++.dg/template/using27.C: New.
* g++.dg/template/using28.C: New.
* g++.dg/template/using29.C: New.

From-SVN: r207408

10 years agore PR c++/37140 (type inherited from base class not recognized)
Fabien Chêne [Sun, 2 Feb 2014 19:58:06 +0000 (20:58 +0100)]
re PR c++/37140 (type inherited from base class not recognized)

2014-02-02  Fabien Chene  <fabien@gcc.gnu.org>
        PR c++/37140
        * parser.c (cp_parser_nonclass_name): Call strip_using_decl and
move the code handling dependent USING_DECLs...
        * name-lookup.c (strip_using_decl): ...Here.

2014-02-02  Fabien Chene  <fabien@gcc.gnu.org>

        PR c++/37140
        * g++.dg/template/using27.C: New.
* g++.dg/template/using28.C: New.
* g++.dg/template/using29.C: New.

From-SVN: r207407

10 years agoipa-prop.c (update_jump_functions_after_inlining): When type is not preserverd by...
Jan Hubicka [Sun, 2 Feb 2014 18:56:33 +0000 (19:56 +0100)]
ipa-prop.c (update_jump_functions_after_inlining): When type is not preserverd by passthrough, do not propagate the type.

* ipa-prop.c (update_jump_functions_after_inlining): When type is not
preserverd by passthrough, do not propagate the type.
* g++.dg/ipa/devirt-23.C: New testcase.

From-SVN: r207405

10 years agogcc.pot: Regenerate.
Joseph Myers [Sun, 2 Feb 2014 17:40:13 +0000 (17:40 +0000)]
gcc.pot: Regenerate.

gcc/po:
* gcc.pot: Regenerate.

libcpp/po:
* cpplib.pot: Regenerate.

From-SVN: r207404

10 years agoconfigure.ac: Check __mips64 when setting host_address.
Richard Sandiford [Sun, 2 Feb 2014 16:17:15 +0000 (16:17 +0000)]
configure.ac: Check __mips64 when setting host_address.

libgcc/
* configure.ac: Check __mips64 when setting host_address.
* configure: Regenerate.
* config.host (mips*-*-*): Add t-softfp-sfdf, mips/t-softfp-tf,
mips/t-mips64 and t-softfp.
(mips*-*-linux*): Don't add mips/t-tpbit.
* config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS, FPBIT, FPBIT_CFLAGS)
(DPBIT, DPBIT_CFLAGS): Delete.
* config/mips/sfp-machine.h: New file.
* config/mips/t-mips64: Likewise.
* config/mips/t-softfp-tf: Likewise.
* config/mips/t-tpbit: Delete.

From-SVN: r207403

10 years agomips.c (MIPS_GET_FCSR, [...]): New macros.
Richard Sandiford [Sun, 2 Feb 2014 16:10:12 +0000 (16:10 +0000)]
mips.c (MIPS_GET_FCSR, [...]): New macros.

gcc/
* config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
(mips_atomic_assign_expand_fenv): New function.
(TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.

From-SVN: r207402

10 years agoextend.texi (__builtin_mips_get_fcsr): Document.
Richard Sandiford [Sun, 2 Feb 2014 16:05:09 +0000 (16:05 +0000)]
extend.texi (__builtin_mips_get_fcsr): Document.

gcc/
* doc/extend.texi (__builtin_mips_get_fcsr): Document.
(__builtin_mips_set_fcsr): Likewise.
* config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
MIPS_USI_FTYPE_VOID.
* config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
(mips16_expand_set_fcsr): Likewise.
* config/mips/mips.c (mips16_get_fcsr_stub): New variable.
(mips16_set_fcsr_stub): Likewise.
(mips16_get_fcsr_one_only_stub): New class.
(mips16_set_fcsr_one_only_stub): Likewise.
(mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
(mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
(BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
(hard_float): New availability predicate.
(mips_builtins): Add get_fcsr and set_fcsr.
(mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
* config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
(GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
(mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
(mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
patterns.

gcc/testsuite/
* gcc.target/mips/get-fcsr-1.c, gcc.target/mips/get-fcsr-2.c,
gcc.target/mips/set-fcsr-1.c, gcc.target/mips/set-fcsr-2.c: New tests.

From-SVN: r207401

10 years agomips.c (mips_one_only_stub): New class.
Richard Sandiford [Sun, 2 Feb 2014 15:58:38 +0000 (15:58 +0000)]
mips.c (mips_one_only_stub): New class.

gcc/
* config/mips/mips.c (mips_one_only_stub): New class.
(mips_need_mips16_rdhwr_p): Replace with...
(mips16_rdhwr_stub): ...this new variable.
(mips16_stub_call_address): New function.
(mips16_rdhwr_one_only_stub): New class.
(mips_expand_thread_pointer): Use mips16_stub_call_address.
(mips_output_mips16_rdhwr): Delete.
(mips_finish_stub): New function.
(mips_code_end): Use it to handle rdhwr stubs.

From-SVN: r207400

10 years agore PR target/60017 (Struct not returned correctly)
Uros Bizjak [Sun, 2 Feb 2014 15:35:53 +0000 (16:35 +0100)]
re PR target/60017 (Struct not returned correctly)

PR target/60017
* config/i386/i386.c (classify_argument): Fix handling of bit_offset
when calculating size of integer atomic types.

testsuite/ChangeLog:

PR target/60017
* gcc.c-torture/execute/pr60017.c: New test.

From-SVN: r207399

10 years agoFix a typo in comments
H.J. Lu [Sun, 2 Feb 2014 14:09:36 +0000 (14:09 +0000)]
Fix a typo in comments

* ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.

From-SVN: r207398

10 years agoChangeLog: Fix whitespace.
Uros Bizjak [Sun, 2 Feb 2014 13:59:39 +0000 (14:59 +0100)]
ChangeLog: Fix whitespace.

* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

From-SVN: r207397

10 years agore PR fortran/57033 (ICE on extended derived type and default initialization)
Mikael Morin [Sun, 2 Feb 2014 11:50:28 +0000 (11:50 +0000)]
re PR fortran/57033 (ICE on extended derived type and default initialization)

fortran/
        PR fortran/57033
        * primary.c (gfc_convert_to_structure_constructor): Avoid null pointer
        dereference.

testsuite/
        PR fortran/57033
        * gfortran.dg/default_initialization_7.f90: New test.

From-SVN: r207396

10 years agoDaily bump.
GCC Administrator [Sun, 2 Feb 2014 00:16:55 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r207393

10 years agore PR fortran/59906 (error: size of variable '<anonymous>' is too large)
Paul Thomas [Sat, 1 Feb 2014 18:50:41 +0000 (18:50 +0000)]
re PR fortran/59906 (error: size of variable '<anonymous>' is too large)

2014-02-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59906
* trans-stmt.c (gfc_add_loop_ss_code): In the case of character
SS_REFERENCE, use gfc_conv_string_parameter to ensure that a
pointer to the string is stored.
* trans-expr.c (gfc_conv_expr_reference): Likewise, use
gfc_conv_string_parameter to ensure that a pointer to is passed
to the elemental function.

2014-02-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59906
* gfortran.dg/elemental_subroutine_9.f90 : New test

From-SVN: r207389

10 years agore PR other/56653 (Warning when verifying checksums from MD5SUMS file in tarballs)
Dmitry Gorbachev [Sat, 1 Feb 2014 12:01:56 +0000 (12:01 +0000)]
re PR other/56653 (Warning when verifying checksums from MD5SUMS file in tarballs)

PR other/56653
* gcc_release: Avoid printing empty line to generated MD5SUMS files.
Bump copyright year.

From-SVN: r207387

10 years agossa-dom-thread-4.c: Adjust expected MIPS output.
Richard Sandiford [Sat, 1 Feb 2014 11:50:38 +0000 (11:50 +0000)]
ssa-dom-thread-4.c: Adjust expected MIPS output.

gcc/testsuite/
* gcc.dg/tree-ssa/ssa-dom-thread-4.c: Adjust expected MIPS output.

From-SVN: r207386

10 years agopr49718.C: Use -mno-relax-pic-calls for MIPS.
Richard Sandiford [Sat, 1 Feb 2014 10:41:37 +0000 (10:41 +0000)]
pr49718.C: Use -mno-relax-pic-calls for MIPS.

gcc/testsuite/
* g++.dg/pr49718.C: Use -mno-relax-pic-calls for MIPS.

From-SVN: r207385

10 years agovector26.C: Restrict scan-assembler test to ! c++98.
Richard Sandiford [Sat, 1 Feb 2014 10:33:36 +0000 (10:33 +0000)]
vector26.C: Restrict scan-assembler test to ! c++98.

gcc/testsuite/
* g++.dg/ext/vector26.C: Restrict scan-assembler test to ! c++98.

From-SVN: r207384

10 years agore PR c++/51219 (ICE with empty bit-fields)
Paolo Carlini [Sat, 1 Feb 2014 09:24:42 +0000 (09:24 +0000)]
re PR c++/51219 (ICE with empty bit-fields)

/cp
2014-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51219
* typeck2.c (process_init_constructor_record): Just skip unnamed
bit-fields.

/testsuite
2014-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51219
* g++.dg/init/bitfield5.C: New.

From-SVN: r207383

10 years agore PR tree-optimization/60003 (wrong code with __builtin_setjmp/__builtin_longjmp...
Jakub Jelinek [Sat, 1 Feb 2014 08:40:31 +0000 (09:40 +0100)]
re PR tree-optimization/60003 (wrong code with __builtin_setjmp/__builtin_longjmp and inlining)

PR tree-optimization/60003
* gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
* profile.c (branch_prob): Use gimple_call_builtin_p
to check for BUILT_IN_SETJMP_RECEIVER.
* tree-inline.c (copy_bb): Call notice_special_calls.

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

From-SVN: r207382

10 years agoDaily bump.
GCC Administrator [Sat, 1 Feb 2014 00:17:04 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r207378

10 years agore PR bootstrap/59985 (stage2/3 compare error on lto-streamer-in.o)
Vladimir Makarov [Fri, 31 Jan 2014 23:56:46 +0000 (23:56 +0000)]
re PR bootstrap/59985 (stage2/3 compare error on lto-streamer-in.o)

2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>

PR bootstrap/59985
* lra-constraints.c (process_alt_operands): Update reload_sum only
on the first pass.

2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>

PR bootstrap/59985
* gcc.target/arm/pr59985.C: New.

From-SVN: r207375

10 years agore PR sanitizer/59410 (tsan tests fail with address randomization disabled)
Jakub Jelinek [Fri, 31 Jan 2014 21:25:23 +0000 (22:25 +0100)]
re PR sanitizer/59410 (tsan tests fail with address randomization disabled)

PR sanitizer/59410
* lib/tsan-dg.exp (tsan_init): Instead of not running any
tsan tests if trivial testcase doesn't run, set dg-do-what-default
to compile.
(tsan_finish): Restore dg-do-what-default.
* g++.dg/tsan/atomic_free.C: Remove dg-do line.
* g++.dg/tsan/fd_close_norace2.C: Likewise.
* g++.dg/tsan/default_options.C: Likewise.
* g++.dg/tsan/aligned_vs_unaligned_race.C: Likewise.
* g++.dg/tsan/atomic_free2.C: Likewise.
* g++.dg/tsan/cond_race.C: Likewise.
* g++.dg/tsan/fd_close_norace.C: Likewise.
* g++.dg/tsan/benign_race.C: Likewise.
* c-c++-common/tsan/fd_pipe_race.c: Likewise.
* c-c++-common/tsan/simple_race.c: Likewise.
* c-c++-common/tsan/mutexset1.c: Likewise.
* c-c++-common/tsan/thread_leak2.c: Likewise.
* c-c++-common/tsan/tls_race.c: Likewise.
* c-c++-common/tsan/write_in_reader_lock.c: Likewise.
* c-c++-common/tsan/race_on_barrier2.c: Likewise.
* c-c++-common/tsan/free_race2.c: Likewise.
* c-c++-common/tsan/thread_leak.c: Likewise.
* c-c++-common/tsan/thread_leak1.c: Likewise.
* c-c++-common/tsan/race_on_barrier.c: Likewise.
* c-c++-common/tsan/free_race.c: Likewise.
* c-c++-common/tsan/sleep_sync.c: Likewise.
* c-c++-common/tsan/tiny_race.c: Likewise.
* c-c++-common/tsan/race_on_mutex2.c: Likewise.
* c-c++-common/tsan/atomic_stack.c: Likewise.
* c-c++-common/tsan/race_on_mutex.c: Likewise.  Adjust line numbers
in dg-output regexps.
* c-c++-common/tsan/simple_stack.c: Likewise.

From-SVN: r207371

10 years agore PR middle-end/60004 (Conditional return within transaction causes ICE)
Richard Henderson [Fri, 31 Jan 2014 19:35:31 +0000 (11:35 -0800)]
re PR middle-end/60004 (Conditional return within transaction causes ICE)

PR middle-end/60004

        * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
        until after else_eh is processed.

* g++.dg/tm/pr60004.C: New.

From-SVN: r207367

10 years agore PR ipa/59469 (LLVM build failure with gcc LTO)
Jason Merrill [Fri, 31 Jan 2014 18:35:53 +0000 (13:35 -0500)]
re PR ipa/59469 (LLVM build failure with gcc LTO)

PR c++/59469
* pt.c (mark_decl_instantiated): Call mark_needed.

From-SVN: r207366

10 years ago* g++.dg/tls/thread_local8.C: Require tls.
Jason Merrill [Fri, 31 Jan 2014 17:30:09 +0000 (12:30 -0500)]
* g++.dg/tls/thread_local8.C: Require tls.

From-SVN: r207364

10 years agore PR c++/58672 ([c++11] ICE with thread_local and variable of broken class)
Jason Merrill [Fri, 31 Jan 2014 17:30:03 +0000 (12:30 -0500)]
re PR c++/58672 ([c++11] ICE with thread_local and variable of broken class)

PR c++/58672
* decl2.c (handle_tls_init): Handle null init fn.

From-SVN: r207363

10 years agore PR c++/55800 (Link failure with thread_local in unnamed namespace)
Jason Merrill [Fri, 31 Jan 2014 16:25:55 +0000 (11:25 -0500)]
re PR c++/55800 (Link failure with thread_local in unnamed namespace)

PR c++/55800
* decl2.c (get_tls_init_fn): Copy DECL_EXTERNAL from the variable.

From-SVN: r207360

10 years agore PR c++/59082 (ICE with duplicate (virtual) base)
Paolo Carlini [Fri, 31 Jan 2014 16:22:53 +0000 (16:22 +0000)]
re PR c++/59082 (ICE with duplicate (virtual) base)

/cp
2014-01-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59082
* class.c (build_vfield_ref): Early return error_mark_node if
TYPE_VFIELD (type) is null.
(build_base_path): Check return value of build_vfield_ref.

/testsuite
2014-01-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59082
* g++.dg/inherit/crash4.C: New.

From-SVN: r207359

10 years ago[multiple changes]
Arnaud Charlet [Fri, 31 Jan 2014 16:03:54 +0000 (17:03 +0100)]
[multiple changes]

2014-01-31  Robert Dewar  <dewar@adacore.com>

* exp_ch9.adb: Minor reformatting.

2014-01-31  Emmanuel Briot  <briot@adacore.com>

* g-comlin.adb (Set_Command_Line): Take the switches
configuration from the Command_Line_Config.

2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
refinement clause.

2014-01-31  Vincent Celier  <celier@adacore.com>

* projects.texi: Add more documentation about others used as an
index in indexed attributes.

From-SVN: r207358

10 years ago[multiple changes]
Arnaud Charlet [Fri, 31 Jan 2014 15:59:59 +0000 (16:59 +0100)]
[multiple changes]

2014-01-31  Robert Dewar  <dewar@adacore.com>

* gnat_ugn.texi: Minor update.
* gnat_rm.texi: Add example to Restriction_Warnings documentation.
* exp_util.adb: Minor reformatting.

2014-01-31  Ed Schonberg  <schonberg@adacore.com>

* exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
depends on data that is not private to the protected object,
and potentially modifiable in unsynchronized fashion.

From-SVN: r207357

10 years ago[multiple changes]
Arnaud Charlet [Fri, 31 Jan 2014 15:56:44 +0000 (16:56 +0100)]
[multiple changes]

2014-01-31  Yannick Moy  <moy@adacore.com>

* erroutc.adb (Validate_Specific_Warnings): Remove special case for
GNATprove_Mode.

2014-01-31  Robert Dewar  <dewar@adacore.com>

* prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
for Unknown_Package.
* sem_ch6.adb, sem_attr.adb: Minor comment addition.

2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
the logic that generates a runtime check to determine the
controlled status of the object about to be allocated or
deallocated. Class-wide types now always use a runtime check
even if they appear as generic actuals.
(Find_Object): Detect
a special case that involves interface class-wide types because
the object appears as a complex expression.

From-SVN: r207356