platform/upstream/linaro-gcc.git
9 years ago * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
ebotcazou [Mon, 16 Mar 2015 09:59:01 +0000 (09:59 +0000)]
* gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
of the expression ends up being composite.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221449 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoRevert 'Use actual_call_used_reg_set to find conflicting regs'
vries [Mon, 16 Mar 2015 09:42:21 +0000 (09:42 +0000)]
Revert 'Use actual_call_used_reg_set to find conflicting regs'

2015-03-16  Tom de Vries  <tom@codesourcery.com>

PR middle-end/65414
Revert:
2015-03-12  Tom de Vries  <tom@codesourcery.com>

PR rtl-optimization/64895
* lra-lives.c (check_pseudos_live_through_calls): Use
actual_call_used_reg_set instead of call_used_reg_set, if available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221448 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
ebotcazou [Mon, 16 Mar 2015 09:40:14 +0000 (09:40 +0000)]
* gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
parameter types to detect circularities in ASIS mode.
* gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221447 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
ebotcazou [Mon, 16 Mar 2015 09:18:38 +0000 (09:18 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
short-circuit the regular handling.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221446 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/63150
amodra [Mon, 16 Mar 2015 03:29:36 +0000 (03:29 +0000)]
PR target/63150
gcc/
* config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
Modify Z->r bswapdi splitter to use dest in place of scratch.
In r->Z and Z->r bswapdi splitter rename word_high, word_low
to word1, word2 and rearrange logic to suit.
(bswapdi2_64bit): Remove early clobber on Z->r alternative.
(bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
(bswapdi2_32bit): Remove early clobber on Z->r alternative.
Add one '?' on r->r.  Modify Z->r splitter to avoid need for
early clobber.
gcc/testsuite/
* gcc.target/powerpc/pr53199.c: Add extra functions.  Revert
2014-12-05 change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221445 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Mon, 16 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221444 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
danglin [Sun, 15 Mar 2015 23:49:02 +0000 (23:49 +0000)]
* gcc.dg/torture/pr65270-1.c: Add -fno-common to dg-options on
hppa*-*-hpux*.
* gcc.dg/torture/pr65270-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221441 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sun, 15 Mar 2015 00:16:21 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221439 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR fortran/61138
mikael [Sat, 14 Mar 2015 12:23:27 +0000 (12:23 +0000)]
PR fortran/61138
fortran/
* trans-expr.c (gfc_trans_pointer_assignment): Clear DESCRIPTOR_ONLY
field before reusing LSE.
testsuite/
gfortran.dg/pointer_remapping_9.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221436 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/65369
jakub [Sat, 14 Mar 2015 09:56:39 +0000 (09:56 +0000)]
PR tree-optimization/65369
* tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
(vs - 1) * TYPE_SIZE_UNIT (elem_type).

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221435 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/65418
jakub [Sat, 14 Mar 2015 09:55:41 +0000 (09:55 +0000)]
PR tree-optimization/65418
* tree-ssa-reassoc.c (extract_bit_test_mask): If there
are casts in the first PLUS_EXPR operand, ensure tbias and
*totallowp are in the inner type.

* gcc.c-torture/execute/pr65418-1.c: New test.
* gcc.c-torture/execute/pr65418-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221434 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR rtl-optimization/65401
jakub [Sat, 14 Mar 2015 08:54:08 +0000 (08:54 +0000)]
PR rtl-optimization/65401
* combine.c (rtx_equal_for_field_assignment_p): Add widen_x
argument.  If true, adjust_address_nv of x with big-endian
correction for the mode widening to GET_MODE (y).
(make_field_assignment): Don't do MEM mode widening here.
Use MEM_P instead of GET_CODE == MEM.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221433 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Sat, 14 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221432 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agocompiler: Permit label on fallthrough statement.
ian [Fri, 13 Mar 2015 20:48:15 +0000 (20:48 +0000)]
compiler: Permit label on fallthrough statement.

Test case: https://go-review.googlesource.com/7523 .

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221428 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibgo/README: Minor updates.
ian [Fri, 13 Mar 2015 18:53:13 +0000 (18:53 +0000)]
libgo/README: Minor updates.

In particular, mention that libgo should not be stripped.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221427 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * jit-recording.c (dump::write): Also check vasprintf return value.
uros [Fri, 13 Mar 2015 18:09:12 +0000 (18:09 +0000)]
* jit-recording.c (dump::write): Also check vasprintf return value.
(recording::context::add_error_va): Ditto.
(recording::string::from_printf): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221426 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agojit docs: Add "Packaging notes" section
dmalcolm [Fri, 13 Mar 2015 17:23:37 +0000 (17:23 +0000)]
jit docs: Add "Packaging notes" section

gcc/jit/ChangeLog:
* docs/internals/index.rst (Packaging notes): New section.
* docs/_build/texinfo/libgccjit.texi: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221425 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix typo.
charlet [Fri, 13 Mar 2015 13:48:21 +0000 (13:48 +0000)]
Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221423 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-13 Robert Dewar <dewar@adacore.com>
charlet [Fri, 13 Mar 2015 13:47:24 +0000 (13:47 +0000)]
2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
references.
(Actual_Ref): New function.
(AREC_String): Minor reformatting.
(Unnest_Subprogram): Use Actual_Ref.
* frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
before call to Instantiate_Bodies.

2015-03-13  Ed Schonberg  <schonberg@adacore.com>

* freeze.adb (Freeze_Profile): If the return type of a function
being frozen is an untagged limited view and the function is
abstract, mark the type as frozen because there is no later
point at which the profile of the subprogram will be elaborated.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
component to entities. Add new fields Field36-41 and Node36-41.

2015-03-13  Claire Dross  <dross@adacore.com>

* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_util.adb (Is_Volatile_Reference): Compile time known
value is never considered to be a volatile reference.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
cannot be volatile" for internally generated object (such as
FIRST and LAST constants).

2015-03-13  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
convention is specified for the formal parameter, verify that
the actual has the same convention.
* sem_prag.adb (Set_Convention_From_Pragma): Allow convention
pragma to be set on a generic formal type.
* sem_util.adb (Set_Convention): Ignore within an instance,
as it has already been verified in the generic unit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221422 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
iverbin [Fri, 13 Mar 2015 13:30:26 +0000 (13:30 +0000)]
gcc/
* varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
the external decls.
libgomp/
* testsuite/libgomp.fortran/declare-target-1.f90: New test.
* testsuite/libgomp.fortran/declare-target-2.f90: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221421 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-13 Claire Dross <dross@adacore.com>
charlet [Fri, 13 Mar 2015 13:28:15 +0000 (13:28 +0000)]
2015-03-13  Claire Dross  <dross@adacore.com>

* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
subprograms with unconstrained record parameters containing
Itype declarations.
* sinfo.ads Document GNATprove assumption that type should match
in the AST.
* sem_ch6.adb (Analyze_Subprogram_Body_Contract):
Do not check for Refined_Depends and Refined_Globals contracts
as they are optional.

2015-03-13  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Instantiate_Type): For a floating-point type,
capture dimension info if any, because the generated subtype
declaration does not come from source and will not process dimensions.
* sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
Do not analyze expressions with an initialization procedure
because aggregates will have been checked at the point of record
declaration.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
* einfo.ads, einfo.adb (Is_Unimplemented): New flag.
* sem_ch13.adb: Add dummy entry for aspect Unimplemented.
* snames.ads-tmpl: Add entry for Name_Unimplemented.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221420 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-13 Gary Dismukes <dismukes@adacore.com>
charlet [Fri, 13 Mar 2015 13:22:52 +0000 (13:22 +0000)]
2015-03-13  Gary Dismukes  <dismukes@adacore.com>

* style.adb (Missing_Overriding): Apply the
Comes_From_Source test to the Original_Node of the subprogram
node, to handle the case of a null procedure declaration that
has been rewritten as an empty procedure body.

2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_util.ads: Minor fix to comment.
* sem_ch3.adb (Constrain_Index): Correct pasto from previous
change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221419 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-13 Robert Dewar <dewar@adacore.com>
charlet [Fri, 13 Mar 2015 13:18:39 +0000 (13:18 +0000)]
2015-03-13  Robert Dewar  <dewar@adacore.com>

* exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
Is_Low/High_Bound params.
* sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
sequence to simplify generation of FIRST/LAST temps for bounds.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221418 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * include/experimental/system_error: Fix include guard.
redi [Fri, 13 Mar 2015 12:47:21 +0000 (12:47 +0000)]
* include/experimental/system_error: Fix include guard.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221417 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibgomp: Add RTEMS support
sh [Fri, 13 Mar 2015 10:57:07 +0000 (10:57 +0000)]
libgomp: Add RTEMS support

libgomp/ChangeLog

* configure.tgt (*-*-rtems*): Use local-exec TLS model.
* configure.ac (*-*-rtems*): Assume Pthread is supported.
(pthread.h): Check for this header file.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221415 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
redi [Fri, 13 Mar 2015 10:49:08 +0000 (10:49 +0000)]
* acinclude.m4: Make --enable-libstdcxx-time=auto work for dragonfly.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221414 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[ARM] PR target/64600 Fix another ICE with -mtune=xscale: properly sign-extend mask...
ktkachov [Fri, 13 Mar 2015 10:48:44 +0000 (10:48 +0000)]
[ARM] PR target/64600 Fix another ICE with -mtune=xscale: properly sign-extend mask during constant splitting

PR target/64600
* config/arm/arm.c (arm_gen_constant, AND case): Use
ARM_SIGN_EXTEND when constructing AND mask.

PR target/64600
* gcc.target/arm/pr64600_1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221413 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
thopre01 [Fri, 13 Mar 2015 09:45:48 +0000 (09:45 +0000)]
2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

   gcc/
    * graph.c (print_graph_cfg): Make function names visible and append
    parenthesis to it.  Also make groups of basic blocks belonging to the
    same function visible.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221412 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-12 Richard Biener <rguenther@suse.de>
rguenth [Fri, 13 Mar 2015 08:52:51 +0000 (08:52 +0000)]
2015-03-12  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
to avoid quadratic behavior with inline expansion splitting blocks.
* tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
with the successor if the predecessor will be merged with it.
* tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
entry block with its successor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221410 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-10 Richard Biener <rguenther@suse.de>
rguenth [Fri, 13 Mar 2015 08:47:14 +0000 (08:47 +0000)]
2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
(cleanup_tree_cfg_1): Do not call it.
(execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
(fixup_noreturn_call): Mark the stmt as control altering.
* tree-cfg.c (execute_fixup_cfg): Do not dump the function
here.
(pass_data_fixup_cfg): Produce a dump file.
* tree-ssa-dom.c: Include tree-cfgcleanup.h.
(need_noreturn_fixup): New global.
(pass_dominator::execute): Fixup queued noreturn calls.
(optimize_stmt): Queue calls that became noreturn for fixup.
* tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
* tree-ssa-pre.c: Include tree-cfgcleanup.h.
(el_to_fixup): New global.
(eliminate_dom_walker::before_dom_childre): Queue calls that
became noreturn for fixup.
(eliminate): Fixup queued noreturn calls.
* tree-ssa-propagate.c: Include tree-cfgcleanup.h.
(substitute_and_fold_dom_walker): New member stmts_to_fixup.
(substitute_and_fold_dom_walker::before_dom_children): Queue
alls that became noreturn for fixup.
(substitute_and_fold): Fixup queued noreturn calls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221409 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * ChangeLog: Fix whitespace.
uros [Fri, 13 Mar 2015 07:33:51 +0000 (07:33 +0000)]
* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221407 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
hubicka [Fri, 13 Mar 2015 06:30:04 +0000 (06:30 +0000)]
* ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
are building; for methods check ODR type of class they belong to if
they may lead to a polymorphic call.
(sem_function::compare_polymorphic_p): Be bit smarter about testing
when function may lead to a polymorphic call.
(sem_function::compare_type_list): Remove.
(sem_variable::equals): Update use of compatible_types_p.
(sem_variable::parse_tree_refs): Remove.
(sem_item_optimizer::filter_removed_items): Do not filter out CXX
cdtor.
* ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
matching here.
(func_checker::compatible_polymorphic_types_p): Break out from ...
(unc_checker::compatible_types_p): ... here.
* ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
Declare.
(unc_checker::compatible_types_p): Update.
* ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221406 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Fri, 13 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221405 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 12 Mar 2015 23:55:49 +0000 (23:55 +0000)]
2015-03-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65323
* decl.c (check_default_argument): Don't call
maybe_warn_zero_as_null_pointer_constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221402 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogo/build: cgo works on linux/arm64.
ian [Thu, 12 Mar 2015 17:05:22 +0000 (17:05 +0000)]
go/build: cgo works on linux/arm64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221398 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * Makefile.am (GOLINK): Add GOCFLAGS.
ian [Thu, 12 Mar 2015 16:44:36 +0000 (16:44 +0000)]
* Makefile.am (GOLINK): Add GOCFLAGS.
* Makefile.in: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221397 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR go/65404
ian [Thu, 12 Mar 2015 16:41:28 +0000 (16:41 +0000)]
PR go/65404
go/build: cgo works on linux/pcc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221396 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[PATCH]Remove xfail for wrapped target
renlin [Thu, 12 Mar 2015 15:00:28 +0000 (15:00 +0000)]
[PATCH]Remove xfail for wrapped target

libstdc++-v3/

2015-03-12  Renlin Li  <renlin.li@arm.com>

* testsuite/27_io/ios_base/sync_with_stdio/1.cc: Remove xfail for
wrapped target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221393 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoAdd missing bit to ChangeLog entry for the latest update
hainque [Thu, 12 Mar 2015 14:34:25 +0000 (14:34 +0000)]
Add missing bit to ChangeLog entry for the latest update
in gcc/ada/gcc-interface/trans.c.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221392 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-12 Olivier Hainque <hainque@adacore.com>
hainque [Thu, 12 Mar 2015 14:24:48 +0000 (14:24 +0000)]
2015-03-12  Olivier Hainque  <hainque@adacore.com>

* gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
On targets where a function symbol designates a function descriptor,
fetch the function code address from the descriptor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221391 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix ChangeLog entries from previous commit
ktkachov [Thu, 12 Mar 2015 13:41:50 +0000 (13:41 +0000)]
Fix ChangeLog entries from previous commit

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221388 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_selec...
ktkachov [Thu, 12 Mar 2015 13:40:50 +0000 (13:40 +0000)]
[simplify-rtx] PR 65235: Calculate element size correctly when simplifying (vec_select (vec_concat (const_int) (...)) [...])

PR rtl-optimization 65235
* simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
When first element of vec_concat is const_int, calculate its size
using second element.

PR rtl-optimization 65235
* gcc.target/aarch64/pr65235_1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221387 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-12 Richard Biener <rguenther@suse.de>
rguenth [Thu, 12 Mar 2015 13:02:42 +0000 (13:02 +0000)]
2015-03-12  Richard Biener  <rguenther@suse.de>

PR middle-end/65270
* fold-const.c (operand_equal_p): Fix ordering of resetting
OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221386 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoS/390: Hotpatching fixes.
krebbel [Thu, 12 Mar 2015 11:13:40 +0000 (11:13 +0000)]
S/390: Hotpatching fixes.

2015-03-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>

    * config/s390/s390.c (s390_reorg): Move code to output nops after label
    to s390_reorg ().
    (s390_asm_output_function_label): Likewise.
    * config/s390/s390.c (s390_asm_output_function_label):
    Fix function label alignment with -mhtopatch.
    * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
    UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
    ("nop_2_byte"): New define_insn.
    ("nop_4_byte"): Likewise.
    ("nop_6_byte"): Likewise.
    * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
    * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.

2015-03-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>

    * gcc.target/s390/hotpatch-21.c: New test for hotpatch alignment.
    * gcc.target/s390/hotpatch-22.c: Likewise.
    * gcc.target/s390/hotpatch-23.c: Likewise.
    * gcc.target/s390/hotpatch-24.c: Likewise.
    * gcc.target/s390/hotpatch-2.c: Also check hotpatch alignment.
    * gcc.target/s390/hotpatch-1.c: Update expected output.
    * gcc.target/s390/hotpatch-2.c: Likewise.
    * gcc.target/s390/hotpatch-3.c: Likewise.
    * gcc.target/s390/hotpatch-4.c: Likewise.
    * gcc.target/s390/hotpatch-5.c: Likewise.
    * gcc.target/s390/hotpatch-6.c: Likewise.
    * gcc.target/s390/hotpatch-7.c: Likewise.
    * gcc.target/s390/hotpatch-8.c: Likewise.
    * gcc.target/s390/hotpatch-9.c: Likewise.
    * gcc.target/s390/hotpatch-10.c: Likewise.
    * gcc.target/s390/hotpatch-11.c: Likewise.
    * gcc.target/s390/hotpatch-12.c: Likewise.
    * gcc.target/s390/hotpatch-13.c: Likewise.
    * gcc.target/s390/hotpatch-14.c: Likewise.
    * gcc.target/s390/hotpatch-15.c: Likewise.
    * gcc.target/s390/hotpatch-16.c: Likewise.
    * gcc.target/s390/hotpatch-17.c: Likewise.
    * gcc.target/s390/hotpatch-18.c: Likewise.
    * gcc.target/s390/hotpatch-19.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221381 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
ienkovich [Thu, 12 Mar 2015 09:53:36 +0000 (09:53 +0000)]
gcc/

PR target/65103
* config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
register.

gcc/testsuite/

PR target/65103
* gcc.target/i386/pr65103-1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221380 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
ienkovich [Thu, 12 Mar 2015 09:23:06 +0000 (09:23 +0000)]
gcc/

PR target/65044
* toplev.c (process_options): Restrict Pointer Bounds Checker
usage with Address Sanitizer.

gcc/testsuite/

PR target/65044
* gcc.target/i386/pr65044.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221379 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibmpx/
ienkovich [Thu, 12 Mar 2015 08:58:08 +0000 (08:58 +0000)]
libmpx/

       PR other/65384
       * configure.ac: Fix x32 test.
       * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221378 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-12 Richard Biener <rguenther@suse.de>
rguenth [Thu, 12 Mar 2015 08:48:32 +0000 (08:48 +0000)]
2015-03-12  Richard Biener  <rguenther@suse.de>

* tree-cfg.c (gimple_split_block): Remove loop finding stmt
to split on.
* omp-low.c (expand_omp_taskreg): Split block before removing
the stmt.
(expand_omp_target): Likewise.
* ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
* tree-parloops.c (create_call_for_reduction_1): Pass a proper
stmt to split_block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221377 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoRevert 'require nonpic target' for fuse-caller-save*.c
vries [Thu, 12 Mar 2015 08:01:24 +0000 (08:01 +0000)]
Revert 'require nonpic target' for fuse-caller-save*.c

2015-03-12  Tom de Vries  <tom@codesourcery.com>

PR rtl-optimization/64895
* gcc.target/i386/fuse-caller-save-rec.c: Revert require nonpic target.
* gcc.target/i386/fuse-caller-save-xmm.c: Ditto.
* gcc.target/i386/fuse-caller-save.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221374 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoAdd missing PR number
vries [Thu, 12 Mar 2015 07:08:12 +0000 (07:08 +0000)]
Add missing PR number

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221373 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoUse actual_call_used_reg_set to find conflicting regs
vries [Thu, 12 Mar 2015 06:59:34 +0000 (06:59 +0000)]
Use actual_call_used_reg_set to find conflicting regs

2015-03-12  Tom de Vries  <tom@codesourcery.com>

* lra-lives.c (check_pseudos_live_through_calls): Use
actual_call_used_reg_set instead of call_used_reg_set, if available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221372 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc.dg/ipa/pr63569.c: Fix template.
hubicka [Thu, 12 Mar 2015 03:48:59 +0000 (03:48 +0000)]
* gcc.dg/ipa/pr63569.c: Fix template.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221371 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
sandra [Thu, 12 Mar 2015 01:42:52 +0000 (01:42 +0000)]
2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* g++.dg/ipa/pr64146.C: Require fpic support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221370 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Thu, 12 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221369 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
hubicka [Thu, 12 Mar 2015 00:14:19 +0000 (00:14 +0000)]
* cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
(cgraph_node::remove): Likewise.
(cgraph_node::get_untransformed_body): Likewise.
* varpool.c (varpool_node::remove): Likewise.
(varpool_node::get_constructor): Add sanity check.
* lto.c (read_cgraph_and_symbols): Do not do merging
at ltrans stage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221366 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
sandra [Wed, 11 Mar 2015 23:11:19 +0000 (23:11 +0000)]
2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (-fgnu89-inline): Remove discussion about
old GCC versions.
(-fabi-compat-version): Likewise.
(-ffriend-injection): Likewise.
(-Wdeclaration-after-statement): Likewise.
(-fomit-frame-pointer): Likewise.
(-ftree-coalesce-inlined-vars): Likewise.
(-fvisibility=): Likewise.
* doc/extend.texi (Typeof): Likewise.
(Zero Length): Likewise.
(Escaped Newlines): Likewise.
(Compound Literals): Likewise.
(Function Attributes): Likewise.
(Label Attributes): Likewise.
(Type Attributes): Likewise.
(Function Names): Likewise.
(Other Builtins): Likewise.
(Function Specific Option Pragmas): Likewise.
(C++ Interface): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221364 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agolibgfortran LIBGFOR_MINIMAL enhancements.
tschwinge [Wed, 11 Mar 2015 21:42:56 +0000 (21:42 +0000)]
libgfortran LIBGFOR_MINIMAL enhancements.

Based on GCC trunk r220892, for nvptx-none:

                    === gfortran Summary ===

    # of expected passes            [-31320-]{+32117+}
    # of unexpected failures        [-7222-]{+6821+}
    # of expected failures          78
    # of unresolved testcases       [-6441-]{+6158+}
    # of untested testcases         [-432-]{+391+}
    # of unsupported tests          639

libgfortran/
* caf/single.c (caf_runtime_error): Revert 2014-11-28 changes.
* runtime/minimal.c (STRERR_MAXSZ): Don't define.
(runtime_error_at, sys_abort): Bring more in line with the
non-LIBGFOR_MINIMAL code.
(runtime_warning_at, internal_error): New functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221363 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoNo libstdc++ for nvptx.
tschwinge [Wed, 11 Mar 2015 21:42:50 +0000 (21:42 +0000)]
No libstdc++ for nvptx.

The C++ front end insists to link against libstdc++ -- which we don't build:

    $ < build-gcc/gcc/testsuite/g++/g++.log grep -o 'error opening [^[:cntrl:]]*' | sort | uniq -c
          2 error opening libasan.a
          2 error opening libssp.a
      12075 error opening libstdc++.a

Based on GCC trunk r220892:

                    === g++ Summary ===

    # of expected passes            [-63221-]{+68841+}
    # of unexpected failures        [-11751-]{+8764+}
    # of unexpected successes       6
    # of expected failures          [-246-]{+249+}
    # of unresolved testcases       [-5950-]{+3353+}
    # of unsupported tests          [-4160-]{+4143+}

gcc/
* config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221362 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoPR 65200 Handle EPERM in addition to EACCES.
jb [Wed, 11 Mar 2015 21:34:22 +0000 (21:34 +0000)]
PR 65200 Handle EPERM in addition to EACCES.

gcc/fortran ChangeLog:

2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/65200
* gfortran.texi: Document behavior when opening files without
explicit ACTION= specifier.

libgfortran ChangeLog:

2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/65200
* io/open.c (new_unit): Use gf_strerror rather than hardcoding
error messages for different errno values.
* io/unix.c (regular_file2): Handle EPERM in addition to EACCES.

gcc/testsuite ChangeLog:

2015-03-11  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/65200
* gfortran.dg/open_errors.f90: Update checks for iomsg string.
* gfortran.dg/open_new_segv.f90: Fix error message pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221361 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR tree-optimization/65388
mpolacek [Wed, 11 Mar 2015 20:36:56 +0000 (20:36 +0000)]
PR tree-optimization/65388
* tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221359 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
jakub [Wed, 11 Mar 2015 19:51:55 +0000 (19:51 +0000)]
* c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
argument.

* c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
on record_builtin_type argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221358 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * c-c++-common/asan/no-asan-check-glob.c: Add -ffat-lto-objects
jakub [Wed, 11 Mar 2015 19:49:56 +0000 (19:49 +0000)]
* c-c++-common/asan/no-asan-check-glob.c: Add -ffat-lto-objects
to dg-options, fix up dg-skip-if.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221357 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Wed, 11 Mar 2015 19:20:03 +0000 (19:20 +0000)]
2015-03-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
        upstream 224508 and 224755.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221356 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
gjl [Wed, 11 Mar 2015 18:51:09 +0000 (18:51 +0000)]
gcc/
PR target/65296
* configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
* configure: Regenerate.
* config.in: Regenerate.
* doc/invoke.texi (AVR Options) [-mrmw]: Document it.
[-mn-flash]: Document it.
[__AVR_ARCH__]: Document avrtiny.
* config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
(*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
(*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
gcc/testsuite/
PR target/65296
* gcc.target/avr/tiny-memx: Use -mmcu instead of -march.
* gcc.target/avr/tiny-caller-save.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221355 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoS/390: Doc: Add missing cpu values z196, zEC12.
krebbel [Wed, 11 Mar 2015 18:35:44 +0000 (18:35 +0000)]
S/390: Doc: Add missing cpu values z196, zEC12.

* doc/invoke.texi: Add missing cpu values (z196, zEC12).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221353 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[gcc]
meissner [Wed, 11 Mar 2015 16:57:41 +0000 (16:57 +0000)]
[gcc]
2015-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65242
* config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
allow reloads of PLUS in floating point/VSX registers.

[gcc/testsuite]
2015-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65242
* g++.dg/pr65242.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221350 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoAdd missing definition crypto_sha256_fast, crypto_sha256_slow
spop [Wed, 11 Mar 2015 16:53:07 +0000 (16:53 +0000)]
Add missing definition crypto_sha256_fast, crypto_sha256_slow

2015-03-11  Junmo Park  <junmoz.park@samsung.com>

* config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add crypto_sha256_fast.
(cortex_a57_crypto_complex): Add crypto_sha256_slow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221349 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-11 Richard Biener <rguenther@suse.de>
rguenth [Wed, 11 Mar 2015 15:09:51 +0000 (15:09 +0000)]
2015-03-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65310
* tree-sra.c (build_ref_for_offset): Also preserve larger
alignment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221348 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * cp-gimplify.c (simple_empty_class_p): New.
aldyh [Wed, 11 Mar 2015 15:01:37 +0000 (15:01 +0000)]
* cp-gimplify.c (simple_empty_class_p): New.
* cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR.  Abstract
the code for empty class copies into simple_empty_class_p, and
adapt it to handle COMPOUND_EXPRs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221347 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
mzakirov [Wed, 11 Mar 2015 07:39:20 +0000 (07:39 +0000)]
2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>

* asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
* c-c++-common/asan/no-asan-check-glob.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221345 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoDaily bump.
gccadmin [Wed, 11 Mar 2015 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221342 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago/cp
paolo [Tue, 10 Mar 2015 22:20:41 +0000 (22:20 +0000)]
/cp
2015-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65370
* decl.c (duplicate_decls): Call check_redeclaration_no_default_args
only if the location of newdecl doesn't match the location of olddecl.

/testsuite
2015-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65370
* g++.dg/other/default11.C: New.
* g++.dg/other/default12.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221337 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/65368
jakub [Tue, 10 Mar 2015 21:03:21 +0000 (21:03 +0000)]
PR target/65368
* config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
new define_expand.
(*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.

* gcc.target/i386/bmi2-bzhi-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221335 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-10 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 10 Mar 2015 19:39:05 +0000 (19:39 +0000)]
2015-03-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/65024
* trans-expr.c (gfc_conv_component_ref): If the component
backend declaration is missing and the derived type symbol is
available in the reference, call gfc_build_derived_type.

2015-03-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/65024
* gfortran.dg/unlimited_polymorphic_23.f90: New test

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221334 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR c++/65127
jakub [Tue, 10 Mar 2015 19:10:43 +0000 (19:10 +0000)]
PR c++/65127
* parser.c (parsing_nsdmi): Don't return true if current_class_ptr
is not a PARM_DECL.

* g++.dg/cpp0x/pr65127.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221332 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc.dg/ipa/PR64550.c: Update template.
hubicka [Tue, 10 Mar 2015 18:43:44 +0000 (18:43 +0000)]
* gcc.dg/ipa/PR64550.c: Update template.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221331 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR libstdc++/64441
timshen [Tue, 10 Mar 2015 18:41:46 +0000 (18:41 +0000)]
PR libstdc++/64441
* include/bits/regex.h (match_results<>::size,
match_results<>::position, match_results<>::str,
match_results<>::operator[], match_results<>::prefix,
match_results<>::suffix, match_results<>::end,
match_results<>::_M_resize, match_results<>::_M_unmatched_sub,
match_results<>::_M_prefix, match_results<>::_M_suffix): Remove
global __unmatched_sub. Add unmatched submatch as part of
match_results.
* include/bits/regex.tcc (__regex_algo_impl<>, regex_replace<>,
regex_iterator<>::operator++): Adjust to use match_results::_M_prefix.
* testsuite/28_regex/match_results/out_of_range_submatches.cc:
New testcases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221330 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-10 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com>
burnus [Tue, 10 Mar 2015 17:58:01 +0000 (17:58 +0000)]
2015-03-10  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
            Tobias Burnus  <burnus@net-b.de>

        * trans.h (caf_sync_memory): New function decl tree.
        * trans-decl.c (gfc_build_builtin_function_decls): Define it.
        (create_main_function): Don't call sync_synchronize and leave
        it to the CAF library.
        * trans-stmt.c (gfc_trans_stop): Ditto.
        (gfc_trans_sync): Ditto; add call library call for sync memory.

        * gfortran.dg/coarray_sync_memory.f90: New.

        * caf/libcaf.h (_gfortran_caf_sync_memory): New prototype.
        * caf/single.c (_gfortran_caf_sync_memory): Implement.
        (_gfortran_caf_sync_all, _gfortran_caf_sync_image): Add
        __asm__ __volatile___ ("":::"memory").

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221329 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR c++/65333
jason [Tue, 10 Mar 2015 17:44:48 +0000 (17:44 +0000)]
PR c++/65333
DR 1558
* pt.c (dependent_type_p_r): Check both class and alias template args.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221328 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * ipa-icf.c (sem_function::equals_wpa): Move here some checks
hubicka [Tue, 10 Mar 2015 17:21:34 +0000 (17:21 +0000)]
* ipa-icf.c (sem_function::equals_wpa): Move here some checks
from ...
(sem_function::equals_wpa): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221327 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR bootstrap/25672
aldyh [Tue, 10 Mar 2015 16:37:53 +0000 (16:37 +0000)]
PR bootstrap/25672
* configure.ac: Do not initialize CFLAGS_FOR_TARGET from CFLAGS if
cross-compiling.  Similarly for CXX_FOR_TARGET.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221326 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR sanitizer/65367
mpolacek [Tue, 10 Mar 2015 15:57:45 +0000 (15:57 +0000)]
PR sanitizer/65367
* ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
separately.

* c-c++-common/ubsan/pr65367.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221325 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/65286
jakub [Tue, 10 Mar 2015 13:43:44 +0000 (13:43 +0000)]
PR target/65286
* config/rs6000/t-linux: For powerpc64* target set
MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221322 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-09 Richard Biener <rguenther@suse.de>
rguenth [Tue, 10 Mar 2015 12:44:01 +0000 (12:44 +0000)]
2015-03-09  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
for redirect_all_calls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221321 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gdbinit.in (pcfun): Define and document.
mpolacek [Tue, 10 Mar 2015 12:32:09 +0000 (12:32 +0000)]
* gdbinit.in (pcfun): Define and document.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221320 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoFix search path in intelmic-mkoffload for empty COLLECT_GCC.
iverbin [Tue, 10 Mar 2015 12:23:27 +0000 (12:23 +0000)]
Fix search path in intelmic-mkoffload for empty COLLECT_GCC.

gcc/
* config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
of libgomp-plugin.h.
(find_target_compiler): Support a case when the path to gcc is specified
in the PATH env var, so COLLECT_GCC doesn't contain a path.
(generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
libgomp-plugin.h.
(main): Use GCC_INSTALL_NAME as target_driver_name.
* config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
define.
(mkoffload.o): Remove obsolete include path and defines.
(mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221319 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-10 Richard Biener <rguenther@suse.de>
rguenth [Tue, 10 Mar 2015 11:16:33 +0000 (11:16 +0000)]
2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/63155
* tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
* tree-ssa-coalesce.c: Include timevar.h.
(attempt_coalesce): Handle graph being NULL.
(coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
Split out abnormal coalescing to ...
(perform_abnormal_coalescing): ... this function.
(coalesce_ssa_name): Perform abnormal coalescing without computing
live/conflict.
(verify_ssa_coalescing_worker): New function.
(verify_ssa_coalescing): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221318 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agoTypo
gjl [Tue, 10 Mar 2015 09:56:07 +0000 (09:56 +0000)]
Typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221317 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago PR target/65296
gjl [Tue, 10 Mar 2015 09:50:41 +0000 (09:50 +0000)]
PR target/65296
* config.gcc (extra_options) [avr]: Remove.
(extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
(tm_file) [avr]: Add avr/specs.h after avr/avr.h.
(tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
* config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
(-mmcu=): Add Var and MissingArgError properties.
(-march=): Remove.
* config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
* config/avr/t-multilib: Regenerate.
* config/avr/specs.h: New file.
* config/avr/driver-avr.c: New file.
* config/avr/genopt.sh: Remove file.
* config/avr/avr-tables.opt: Remove file.
* config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
* config/avr/avr-c.c: Same.
* avr-arch.h: Same.
(avr_current_device): Remove proto.
* config/avr/avr.h (avr_current_arch): Rename to avr_arch.
(AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
(EXTRA_SPEC_FUNCTIONS): Define.
(avr_devicespecs_file): New specs function proto.
(DRIVER_SELF_SPECS): Use device-specs-file spec function.
* config/avr/avr.c (avr_current_arch): Rename to avr_arch.
(avr_current_device): Remove definition and usage.\a
(avr_set_core_architecture): New static function.
(avr_option_override): Use it.
* config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
(mcu_name): New static array.
(comparator, avr_archs_str, avr_mcus_str): New static functions.
(avr_inform_devices, avr_inform_core_architectures): New functions.
* config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
(avrlibc.h) [WITH_AVRLIBC]: Include.
(../rtems.h, rtems.h) [WITH_RTEMS]: Include.
(print_mcu): Rewrite from scratch.
* config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
Forward to avr-specific specs defined in device-specs file.
* config/avr/t-avr (driver-avr.o): New rule.
(avr-devices.o): Depend on avr-arch.h.
(avr-mcus): No more depend on avr-tables.opt.
(avr-tables.opt): Remove rule.
(install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221316 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * lib/mpx-dg.exp (mpx_link_flags): Set path to wrappers library.
ienkovich [Tue, 10 Mar 2015 09:48:51 +0000 (09:48 +0000)]
* lib/mpx-dg.exp (mpx_link_flags): Set path to wrappers library.
* gcc.target/i386/mpx/calloc-1-lbv.c: New.
* gcc.target/i386/mpx/calloc-1-ubv.c: New.
* gcc.target/i386/mpx/calloc-1-nov.c: New.
* gcc.target/i386/mpx/malloc-1-lbv.c: New.
* gcc.target/i386/mpx/malloc-1-nov.c: New.
* gcc.target/i386/mpx/malloc-1-ubv.c: New.
* gcc.target/i386/mpx/realloc-1-lbv.c: New.
* gcc.target/i386/mpx/realloc-1-nov.c: New.
* gcc.target/i386/mpx/realloc-1-ubv.c: New.
* gcc.target/i386/mpx/realloc-2-lbv.c: New.
* gcc.target/i386/mpx/realloc-2-nov.c: New.
* gcc.target/i386/mpx/realloc-2-ubv.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221315 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * c-family/c.opt (fchkp-use-wrappers): New.
ienkovich [Tue, 10 Mar 2015 09:46:11 +0000 (09:46 +0000)]
* c-family/c.opt (fchkp-use-wrappers): New.
* ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
(chkp_wrap_function): New.
(chkp_build_instrumented_fndecl): Support wrapped
functions.
* doc/invoke.texi (-fcheck-pointer-bounds): New.
(-fchkp-check-incomplete-type): New.
(-fchkp-first-field-has-own-bounds): New.
(-fchkp-narrow-bounds): New.
(-fchkp-narrow-to-innermost-array): New.
(-fchkp-optimize): New.
(-fchkp-use-fast-string-functions): New.
(-fchkp-use-nochk-string-functions): New.
(-fchkp-use-static-bounds): New.
(-fchkp-use-static-const-bounds): New.
(-fchkp-treat-zero-dynamic-size-as-infinite): New.
(-fchkp-check-read): New.
(-fchkp-check-write): New.
(-fchkp-store-bounds): New.
(-fchkp-instrument-calls): New.
(-fchkp-instrument-marked-only): New.
(-fchkp-use-wrappers): New.
(-static-libmpx): New.
(-static-libmpxwrappers): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221314 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/
ienkovich [Tue, 10 Mar 2015 09:43:24 +0000 (09:43 +0000)]
gcc/

* config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
(CHKP_SPEC): Add wrappers library.
* c-family/c.opt (static-libmpxwrappers): New.

libmpx/

* Makefile.am (SUBDIRS): Add mpxwrap when used
AS supports MPX.
(MAKEOVERRIDES): New.
* Makefile.in: Regenerate.
* configure.ac: Check AS supports MPX.  Add
mpxintr/Makefile to config files.
* configure: Regenerate.
* mpxwrap/Makefile.am: New.
* mpxwrap/Makefile.in: New.
* mpxwrap/libtool-version: New.
* mpxwrap/mpx_wrappers.cc: New.
* mpxwrap/libmpxwrappers.map: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221313 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/testsuites/
ienkovich [Tue, 10 Mar 2015 09:39:59 +0000 (09:39 +0000)]
gcc/testsuites/

* gcc/testsuite/lib/mpx-dg.exp (mpx_link_flags): New.
(mpx_init): New.
(mpx_finish): New.
* gcc.target/i386/mpx/alloca-1-lbv.c: New.
* gcc.target/i386/mpx/alloca-1-nov.c: New.
* gcc.target/i386/mpx/alloca-1-ubv.c: New.
* gcc.target/i386/mpx/arg-addr-1-lbv.c: New.
* gcc.target/i386/mpx/arg-addr-1-nov.c: New.
* gcc.target/i386/mpx/arg-addr-1-ubv.c: New.
* gcc.target/i386/mpx/bitfields-1-lbv.c: New.
* gcc.target/i386/mpx/bitfields-1-nov.c: New.
* gcc.target/i386/mpx/bitfields-1-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-bounds-1-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-bounds-1-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-bounds-1-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-bounds-2.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-lbounds-1-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-lbounds-1-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-lbounds-2.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-ubounds-1-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-ubounds-1-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-chk-ptr-ubounds-2.c: New.
* gcc.target/i386/mpx/builtin-bnd-copy-ptr-bounds-1.c: New.
* gcc.target/i386/mpx/builtin-bnd-copy-ptr-bounds-2-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-copy-ptr-bounds-2-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-copy-ptr-bounds-2-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-copy-ptr-bounds-3.c: New.
* gcc.target/i386/mpx/builtin-bnd-get-ptr-lbound-1.c: New.
* gcc.target/i386/mpx/builtin-bnd-get-ptr-lbound-2.c: New.
* gcc.target/i386/mpx/builtin-bnd-get-ptr-ubound-1.c: New.
* gcc.target/i386/mpx/builtin-bnd-get-ptr-ubound-2.c: New.
* gcc.target/i386/mpx/builtin-bnd-init-ptr-bounds-1.c: New.
* gcc.target/i386/mpx/builtin-bnd-init-ptr-bounds-2-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-init-ptr-bounds-3.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-1.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-2-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-3-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-3-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-3-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-narrow-ptr-bounds-4.c: New.
* gcc.target/i386/mpx/builtin-bnd-null-ptr-bounds-1-bbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-set-ptr-bounds-1.c: New.
* gcc.target/i386/mpx/builtin-bnd-set-ptr-bounds-2-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-set-ptr-bounds-2-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-set-ptr-bounds-2-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-set-ptr-bounds-3.c: New.
* gcc.target/i386/mpx/builtin-bnd-store-ptr-bounds-1-lbv.c: New.
* gcc.target/i386/mpx/builtin-bnd-store-ptr-bounds-1-nov.c: New.
* gcc.target/i386/mpx/builtin-bnd-store-ptr-bounds-1-ubv.c: New.
* gcc.target/i386/mpx/builtin-bnd-store-ptr-bounds-2.c: New.
* gcc.target/i386/mpx/fastcall-1-lbv.c: New.
* gcc.target/i386/mpx/fastcall-1-nov.c: New.
* gcc.target/i386/mpx/fastcall-1-ubv.c: New.
* gcc.target/i386/mpx/fastcall-2-lbv.c: New.
* gcc.target/i386/mpx/fastcall-2-nov.c: New.
* gcc.target/i386/mpx/fastcall-2-ubv.c: New.
* gcc.target/i386/mpx/field-addr-1-lbv.c: New.
* gcc.target/i386/mpx/field-addr-1-nov.c: New.
* gcc.target/i386/mpx/field-addr-1-ubv.c: New.
* gcc.target/i386/mpx/field-addr-10-lbv.c: New.
* gcc.target/i386/mpx/field-addr-10-nov.c: New.
* gcc.target/i386/mpx/field-addr-10-ubv.c: New.
* gcc.target/i386/mpx/field-addr-2-lbv.c: New.
* gcc.target/i386/mpx/field-addr-2-nov.c: New.
* gcc.target/i386/mpx/field-addr-2-ubv.c: New.
* gcc.target/i386/mpx/field-addr-3-lbv.c: New.
* gcc.target/i386/mpx/field-addr-3-nov.c: New.
* gcc.target/i386/mpx/field-addr-3-ubv.c: New.
* gcc.target/i386/mpx/field-addr-4-lbv.c: New.
* gcc.target/i386/mpx/field-addr-4-nov.c: New.
* gcc.target/i386/mpx/field-addr-4-ubv.c: New.
* gcc.target/i386/mpx/field-addr-5-lbv.c: New.
* gcc.target/i386/mpx/field-addr-5-nov.c: New.
* gcc.target/i386/mpx/field-addr-5-ubv.c: New.
* gcc.target/i386/mpx/field-addr-6-lbv.c: New.
* gcc.target/i386/mpx/field-addr-6-nov.c: New.
* gcc.target/i386/mpx/field-addr-6-ubv.c: New.
* gcc.target/i386/mpx/field-addr-7-lbv.c: New.
* gcc.target/i386/mpx/field-addr-7-nov.c: New.
* gcc.target/i386/mpx/field-addr-7-ubv.c: New.
* gcc.target/i386/mpx/field-addr-8-lbv.c: New.
* gcc.target/i386/mpx/field-addr-8-nov.c: New.
* gcc.target/i386/mpx/field-addr-8-ubv.c: New.
* gcc.target/i386/mpx/field-addr-9-lbv.c: New.
* gcc.target/i386/mpx/field-addr-9-nov.c: New.
* gcc.target/i386/mpx/field-addr-9-ubv.c: New.
* gcc.target/i386/mpx/frame-address-1-nov.c: New.
* gcc.target/i386/mpx/hard-reg-1-nov.c: New.
* gcc.target/i386/mpx/if-stmt-1-lbv.c: New.
* gcc.target/i386/mpx/if-stmt-1-nov.c: New.
* gcc.target/i386/mpx/if-stmt-1-ubv.c: New.
* gcc.target/i386/mpx/if-stmt-2-lbv.c: New.
* gcc.target/i386/mpx/if-stmt-2-nov.c: New.
* gcc.target/i386/mpx/if-stmt-2-ubv.c: New.
* gcc.target/i386/mpx/label-address-1.c: New.
* gcc.target/i386/mpx/legacy-1-nov.c: New.
* gcc.target/i386/mpx/macro.c: New.
* gcc.target/i386/mpx/mpx-check.h: New.
* gcc.target/i386/mpx/mpx.exp: New.
* gcc.target/i386/mpx/nested-function-1-lbv.c: New.
* gcc.target/i386/mpx/nested-function-1-nov.c: New.
* gcc.target/i386/mpx/nested-function-1-ubv.c: New.
* gcc.target/i386/mpx/pointer-arg-1-lbv.c: New.
* gcc.target/i386/mpx/pointer-arg-1-nov.c: New.
* gcc.target/i386/mpx/pointer-arg-1-ubv.c: New.
* gcc.target/i386/mpx/pointer-arg-2-lbv.c: New.
* gcc.target/i386/mpx/pointer-arg-2-nov.c: New.
* gcc.target/i386/mpx/pointer-arg-2-ubv.c: New.
* gcc.target/i386/mpx/pointer-arg-3-lbv.c: New.
* gcc.target/i386/mpx/pointer-arg-3-nov.c: New.
* gcc.target/i386/mpx/pointer-arg-3-ubv.c: New.
* gcc.target/i386/mpx/pointer-arg-4-lbv.c: New.
* gcc.target/i386/mpx/pointer-arg-4-nov.c: New.
* gcc.target/i386/mpx/pointer-arg-4-ubv.c: New.
* gcc.target/i386/mpx/pointer-arg-5-lbv.c: New.
* gcc.target/i386/mpx/pointer-arg-5-nov.c: New.
* gcc.target/i386/mpx/pointer-arg-5-ubv.c: New.
* gcc.target/i386/mpx/pointer-store-1-lbv.c: New.
* gcc.target/i386/mpx/pointer-store-1-nov.c: New.
* gcc.target/i386/mpx/pointer-store-1-ubv.c: New.
* gcc.target/i386/mpx/reference-1-lbv.c: New.
* gcc.target/i386/mpx/reference-1-nov.c: New.
* gcc.target/i386/mpx/reference-1-ubv.c: New.
* gcc.target/i386/mpx/reference-2-lbv.c: New.
* gcc.target/i386/mpx/reference-2-nov.c: New.
* gcc.target/i386/mpx/reference-2-ubv.c: New.
* gcc.target/i386/mpx/reference-3-lbv.c: New.
* gcc.target/i386/mpx/reference-3-nov.c: New.
* gcc.target/i386/mpx/reference-3-ubv.c: New.
* gcc.target/i386/mpx/reference-4-lbv.c: New.
* gcc.target/i386/mpx/reference-4-nov.c: New.
* gcc.target/i386/mpx/reference-4-ubv.c: New.
* gcc.target/i386/mpx/return-pointer-1-lbv.c: New.
* gcc.target/i386/mpx/return-pointer-1-nov.c: New.
* gcc.target/i386/mpx/return-pointer-1-ubv.c: New.
* gcc.target/i386/mpx/return-struct-1-lbv.c: New.
* gcc.target/i386/mpx/return-struct-1-nov.c: New.
* gcc.target/i386/mpx/return-struct-1-ubv.c: New.
* gcc.target/i386/mpx/return-struct-2-lbv.c: New.
* gcc.target/i386/mpx/return-struct-2-nov.c: New.
* gcc.target/i386/mpx/return-struct-2-ubv.c: New.
* gcc.target/i386/mpx/return-struct-3-lbv.c: New.
* gcc.target/i386/mpx/return-struct-3-nov.c: New.
* gcc.target/i386/mpx/return-struct-3-ubv.c: New.
* gcc.target/i386/mpx/return-struct-4-lbv.c: New.
* gcc.target/i386/mpx/return-struct-4-nov.c: New.
* gcc.target/i386/mpx/return-struct-4-ubv.c: New.
* gcc.target/i386/mpx/return-struct-5-lbv.c: New.
* gcc.target/i386/mpx/return-struct-5-nov.c: New.
* gcc.target/i386/mpx/return-struct-5-ubv.c: New.
* gcc.target/i386/mpx/return-struct-6-lbv.c: New.
* gcc.target/i386/mpx/return-struct-6-nov.c: New.
* gcc.target/i386/mpx/return-struct-6-ubv.c: New.
* gcc.target/i386/mpx/sincos-1-nov.c: New.
* gcc.target/i386/mpx/static-array-1-lbv.c: New.
* gcc.target/i386/mpx/static-array-1-nov.c: New.
* gcc.target/i386/mpx/static-array-1-ubv.c: New.
* gcc.target/i386/mpx/static-init-1-lbv.c: New.
* gcc.target/i386/mpx/static-init-1-nov.c: New.
* gcc.target/i386/mpx/static-init-1-ubv.c: New.
* gcc.target/i386/mpx/static-init-2-lbv.c: New.
* gcc.target/i386/mpx/static-init-2-nov.c: New.
* gcc.target/i386/mpx/static-init-2-ubv.c: New.
* gcc.target/i386/mpx/static-init-3-lbv.c: New.
* gcc.target/i386/mpx/static-init-3-nov.c: New.
* gcc.target/i386/mpx/static-init-3-ubv.c: New.
* gcc.target/i386/mpx/static-init-4-lbv.c: New.
* gcc.target/i386/mpx/static-init-4-nov.c: New.
* gcc.target/i386/mpx/static-init-4-ubv.c: New.
* gcc.target/i386/mpx/static-init-5-lbv.c: New.
* gcc.target/i386/mpx/static-init-5-nov.c: New.
* gcc.target/i386/mpx/static-init-5-ubv.c: New.
* gcc.target/i386/mpx/static-init-6-lbv.c: New.
* gcc.target/i386/mpx/static-init-6-nov.c: New.
* gcc.target/i386/mpx/static-init-6-ubv.c: New.
* gcc.target/i386/mpx/static-string-1-lbv.c: New.
* gcc.target/i386/mpx/static-string-1-nov.c: New.
* gcc.target/i386/mpx/static-string-1-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-1-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-1-nov.c: New.
* gcc.target/i386/mpx/struct-arg-1-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-10-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-10-nov.c: New.
* gcc.target/i386/mpx/struct-arg-10-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-2-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-2-nov.c: New.
* gcc.target/i386/mpx/struct-arg-2-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-3-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-3-nov.c: New.
* gcc.target/i386/mpx/struct-arg-3-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-4-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-4-nov.c: New.
* gcc.target/i386/mpx/struct-arg-4-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-5-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-5-nov.c: New.
* gcc.target/i386/mpx/struct-arg-5-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-6-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-6-nov.c: New.
* gcc.target/i386/mpx/struct-arg-6-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-7-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-7-nov.c: New.
* gcc.target/i386/mpx/struct-arg-7-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-8-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-8-nov.c: New.
* gcc.target/i386/mpx/struct-arg-8-ubv.c: New.
* gcc.target/i386/mpx/struct-arg-9-lbv.c: New.
* gcc.target/i386/mpx/struct-arg-9-nov.c: New.
* gcc.target/i386/mpx/struct-arg-9-ubv.c: New.
* gcc.target/i386/mpx/struct-copy-1-lbv.c: New.
* gcc.target/i386/mpx/struct-copy-1-nov.c: New.
* gcc.target/i386/mpx/struct-copy-1-ubv.c: New.
* gcc.target/i386/mpx/struct-copy-2-lbv.c: New.
* gcc.target/i386/mpx/struct-copy-2-nov.c: New.
* gcc.target/i386/mpx/struct-copy-2-ubv.c: New.
* gcc.target/i386/mpx/thread-local-var-1-lbv.c: New.
* gcc.target/i386/mpx/thread-local-var-1-nov.c: New.
* gcc.target/i386/mpx/thread-local-var-1-ubv.c: New.
* gcc.target/i386/mpx/union-arg-1-lbv.c: New.
* gcc.target/i386/mpx/union-arg-1-nov.c: New.
* gcc.target/i386/mpx/union-arg-1-ubv.c: New.
* gcc.target/i386/mpx/va-arg-pack-1-lbv.c: New.
* gcc.target/i386/mpx/va-arg-pack-1-nov.c: New.
* gcc.target/i386/mpx/va-arg-pack-1-ubv.c: New.
* gcc.target/i386/mpx/va-arg-pack-2-lbv.c: New.
* gcc.target/i386/mpx/va-arg-pack-2-nov.c: New.
* gcc.target/i386/mpx/va-arg-pack-2-ubv.c: New.
* gcc.target/i386/mpx/vararg-1-lbv.c: New.
* gcc.target/i386/mpx/vararg-1-nov.c: New.
* gcc.target/i386/mpx/vararg-1-ubv.c: New.
* gcc.target/i386/mpx/vararg-2-lbv.c: New.
* gcc.target/i386/mpx/vararg-2-nov.c: New.
* gcc.target/i386/mpx/vararg-2-ubv.c: New.
* gcc.target/i386/mpx/vararg-3-lbv.c: New.
* gcc.target/i386/mpx/vararg-3-nov.c: New.
* gcc.target/i386/mpx/vararg-3-ubv.c: New.
* gcc.target/i386/mpx/vararg-4-lbv.c: New.
* gcc.target/i386/mpx/vararg-4-nov.c: New.
* gcc.target/i386/mpx/vararg-4-ubv.c: New.
* gcc.target/i386/mpx/vararg-5-lbv.c: New.
* gcc.target/i386/mpx/vararg-5-nov.c: New.
* gcc.target/i386/mpx/vararg-5-ubv.c: New.
* gcc.target/i386/mpx/vararg-6-lbv.c: New.
* gcc.target/i386/mpx/vararg-6-nov.c: New.
* gcc.target/i386/mpx/vararg-6-ubv.c: New.
* gcc.target/i386/mpx/vararg-7-lbv.c: New.
* gcc.target/i386/mpx/vararg-7-nov.c: New.
* gcc.target/i386/mpx/vararg-7-ubv.c: New.
* gcc.target/i386/mpx/vararg-8-lbv.c: New.
* gcc.target/i386/mpx/vararg-8-nov.c: New.
* gcc.target/i386/mpx/vararg-8-ubv.c: New.
* gcc.target/i386/mpx/vla-1-lbv.c: New.
* gcc.target/i386/mpx/vla-1-nov.c: New.
* gcc.target/i386/mpx/vla-1-ubv.c: New.
* gcc.target/i386/mpx/vla-2-lbv.c: New.
* gcc.target/i386/mpx/vla-2-nov.c: New.
* gcc.target/i386/mpx/vla-2-ubv.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221312 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * Makefile.def: Add libmpx.
ienkovich [Tue, 10 Mar 2015 09:37:41 +0000 (09:37 +0000)]
* Makefile.def: Add libmpx.
* configure.ac: Add libmpx.
* Makefile.in: Regenerate.
* configure: Regenerate.

gcc/

* config/i386/linux-common.h (LIBMPX_LIBS): New.
(LIBMPX_SPEC): New.
(CHKP_SPEC): New.
* gcc.c (CHKP_SPEC): New.
(LINK_COMMAND_SPEC): Add CHKP_SPEC.
* c-family/c.opt (static-libmpx): New.

libmpx/

Initial commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221311 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[Patch testsuite] Further reduce the alignment in gcc.dg/vect/pr65310.c
jgreenhalgh [Tue, 10 Mar 2015 09:29:04 +0000 (09:29 +0000)]
[Patch testsuite] Further reduce the alignment in gcc.dg/vect/pr65310.c

gcc/testsuite/

* gcc.dg/vect/pr65310.c (c): Reduce alignment to 4-bytes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221310 138bc75d-0d04-0410-961f-82ee72b054a4

9 years agogcc/testsuite:
olegendo [Tue, 10 Mar 2015 08:53:05 +0000 (08:53 +0000)]
gcc/testsuite:
* gcc.target/sh/pr54680.c: Add -fno-ipa-icf option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221309 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-10 Richard Biener <rguenther@suse.de>
rguenth [Tue, 10 Mar 2015 08:25:31 +0000 (08:25 +0000)]
2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/44563
* cgraph.h (struct cgraph_edge_hasher): Add hash overload
for compare_type.
* cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
(cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
(cgraph_add_edge_to_call_site_hash): Likewise.
(cgraph_node::get_edge): Likewise.
(cgraph_edge::set_call_stmt): Likewise.
(cgraph_edge::remove_caller): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221308 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago[NDS32] Rename some variables so that we can clearly identify they represent general...
jasonwucj [Tue, 10 Mar 2015 08:16:57 +0000 (08:16 +0000)]
[NDS32] Rename some variables so that we can clearly identify they represent general purpose registers.

gcc/
* config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
(callee_saved_gpr_regs_size): ... this.
(callee_saved_regs_first_regno): Rename to ...
(callee_saved_first_gpr_regno): ... this.
(callee_saved_regs_last_regno) Rename to ...
(callee_saved_last_gpr_regno): ... this.
* config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
variables.
(nds32_initial_elimination_offset): Likewise.
(nds32_expand_prologue): Likewise.
(nds32_expand_epilogue): Likewise.
(nds32_expand_prologue_v3push): Likewise.
(nds32_expand_epilogue_v3pop): Likewise.
* config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
Adjust renamed variables.
(nds32_output_stack_pop): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221306 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago * gcc.dg/ipa/ipa-icf-36.c (dg-final): Cleanup icf ipa dump.
uros [Tue, 10 Mar 2015 07:47:43 +0000 (07:47 +0000)]
* gcc.dg/ipa/ipa-icf-36.c (dg-final): Cleanup icf ipa dump.
* gcc.dg/ipa/ipa-icf-37.c (dg-final): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221304 138bc75d-0d04-0410-961f-82ee72b054a4

9 years ago2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
thopre01 [Tue, 10 Mar 2015 07:35:09 +0000 (07:35 +0000)]
2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
    code in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221303 138bc75d-0d04-0410-961f-82ee72b054a4