platform/upstream/linaro-gcc.git
10 years agoruntime: Use a better heap location on arm64 systems.
ian [Fri, 21 Feb 2014 03:24:03 +0000 (03:24 +0000)]
runtime: Use a better heap location on arm64 systems.

Before this, the heap location used on a 64-bit system was not
available to user-space on arm64, so the "32-bit" strategy ended up
being used.  So use somewhere that is available, and for bonus points
is far away from where the kernel allocates address space by default.

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

10 years agoDaily bump.
gccadmin [Fri, 21 Feb 2014 00:16:45 +0000 (00:16 +0000)]
Daily bump.

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

10 years agoPR c++/60272
rth [Fri, 21 Feb 2014 00:11:43 +0000 (00:11 +0000)]
PR c++/60272

        * builtins.c (expand_builtin_atomic_compare_exchange): Always make
        a new pseudo for OLDVAL.

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

10 years ago PR target/57896
jakub [Thu, 20 Feb 2014 20:39:46 +0000 (20:39 +0000)]
PR target/57896
* config/i386/i386.c (expand_vec_perm_interleave2): Don't call
gen_reg_rtx if d->testing_p.
(expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
if d->testing_p and we will certainly return true.
(expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
if d->testing_p.

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

10 years ago * emit-rtl.c (gen_reg_rtx): Assert that
uros [Thu, 20 Feb 2014 20:21:42 +0000 (20:21 +0000)]
* emit-rtl.c (gen_reg_rtx): Assert that
crtl->emit.regno_pointer_align_length is non-zero.

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

10 years ago * lto-partition.c (add_symbol_to_partition_1,
hubicka [Thu, 20 Feb 2014 19:40:14 +0000 (19:40 +0000)]
* lto-partition.c (add_symbol_to_partition_1,
undo_partition, lto_balanced_map): Aliases have no
defined size.
(lto_balanced_map): Do not follow refering variables
if they can be optimized out.

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

10 years agoPR c++/60272
rth [Thu, 20 Feb 2014 17:43:53 +0000 (17:43 +0000)]
PR c++/60272

gcc/
* builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
on failure the store back into EXPECT.
libatomic/
* cas_n.c (libat_compare_exchange): Conditionalize on failure
the store back to EPTR.

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

10 years ago2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
cltang [Thu, 20 Feb 2014 16:35:10 +0000 (16:35 +0000)]
2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
* config/nios2/nios2.c (nios2_function_profiler):
Add -fPIC (flag_pic == 2) support.
(nios2_handle_custom_fpu_cfg): Fix warning parameter.
(nios2_large_offset_p): New function.
(nios2_unspec_reloc_p): Move up position, update to use
nios2_large_offset_p.
(nios2_unspec_address): Remove function.
(nios2_unspec_offset): New function.
(nios2_large_got_address): New function.
(nios2_got_address): Add large offset support.
(nios2_legitimize_tls_address): Update usage of removed and new
functions.
(nios2_symbol_binds_local_p): New function.
(nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
(nios2_legitimize_address): Update to use nios2_large_offset_p.
(nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
(nios2_print_operand): Merge H/L processing, add hiadj/lo
processing for (const (unspec ...)).
(nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.

gcc/testsuite/
* gcc.target/nios2/biggot-1.c: New.
* gcc.target/nios2/biggot-2.c: New.

libgcc/
* config/nios2/t-nios2 (CRTSTUFF_T_CFLAGS): Add -mno-gpopt.
* config/nios2/crti.S: Remove .file directive.
* config/nios2/crtn.S: Likewise.

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

10 years ago2014-02-20 Ed Smith-Rowland <3dw4rd@verizon.net>
emsr [Thu, 20 Feb 2014 16:06:40 +0000 (16:06 +0000)]
2014-02-20  Ed Smith-Rowland  <3dw4rd@verizon.net>

Rename shared_mutex to shared_timed_mutex per C++14 acceptance of N3891.
* include/std/shared_mutex: Rename shared_mutex to shared_timed_mutex.
* testsuite/30_threads/shared_lock/locking/2.cc: Ditto.
* testsuite/30_threads/shared_lock/locking/4.cc: Ditto.
* testsuite/30_threads/shared_lock/locking/1.cc: Ditto.
* testsuite/30_threads/shared_lock/locking/3.cc: Ditto.
* testsuite/30_threads/shared_lock/requirements/
explicit_instantiation.cc: Ditto.
* testsuite/30_threads/shared_lock/requirements/typedefs.cc: Ditto.
* testsuite/30_threads/shared_lock/cons/2.cc: Ditto.
* testsuite/30_threads/shared_lock/cons/4.cc: Ditto.
* testsuite/30_threads/shared_lock/cons/1.cc: Ditto.
* testsuite/30_threads/shared_lock/cons/6.cc: Ditto.
* testsuite/30_threads/shared_lock/cons/3.cc: Ditto.
* testsuite/30_threads/shared_lock/cons/5.cc: Ditto.
* testsuite/30_threads/shared_lock/modifiers/2.cc: Ditto.
* testsuite/30_threads/shared_lock/modifiers/1.cc: Ditto.
* testsuite/30_threads/shared_mutex/requirements/
standard_layout.cc: Ditto.
* testsuite/30_threads/shared_mutex/cons/copy_neg.cc: Ditto.
* testsuite/30_threads/shared_mutex/cons/1.cc: Ditto.
* testsuite/30_threads/shared_mutex/cons/assign_neg.cc: Ditto.
* testsuite/30_threads/shared_mutex/try_lock/2.cc: Ditto.
* testsuite/30_threads/shared_mutex/try_lock/1.cc: Ditto.

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

10 years ago PR c++/58873
ktietz [Thu, 20 Feb 2014 16:02:24 +0000 (16:02 +0000)]
PR c++/58873
* parser.c (cp_parser_functional_cast): Treat NULL_TREE
valued type argument as error_mark_node.

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

10 years ago PR go/60288
ian [Thu, 20 Feb 2014 15:20:26 +0000 (15:20 +0000)]
PR go/60288
compiler: Avoid crash, give error for *&x when x is not addressable.

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

10 years ago2014-02-20 Richard Biener <rguenther@suse.de>
rguenth [Thu, 20 Feb 2014 14:56:27 +0000 (14:56 +0000)]
2014-02-20  Richard Biener  <rguenther@suse.de>

* tree-cfg.c (replace_uses_by): Mark altered BBs before
doing the substitution.
(verify_gimple_assign_single): Also verify bare MEM_REFs
on the lhs.

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

10 years ago PR c++/58835
ktietz [Thu, 20 Feb 2014 14:28:16 +0000 (14:28 +0000)]
PR c++/58835
* semantics.c (finish_fname): Handle error_mark_node.

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

10 years ago2014-02-20 Sergey Rybin <rybin@adacore.com frybin>
charlet [Thu, 20 Feb 2014 14:21:35 +0000 (14:21 +0000)]
2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
project-specific options.

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

* a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
not Constraint_Error.
* a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
* sem_ch5.adb: Code clean up.

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

10 years ago2014-02-20 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Thu, 20 Feb 2014 14:19:23 +0000 (14:19 +0000)]
2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Usage_Error): Remove local
constant Typ. Remove the specialized diagnostics for unconstrained
or tagged items as those are not part of the explicit input set
of the related subprogram and should not be flagged.

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

* sem_attr.adb: Add guard to preserve all errors.

2014-02-20  Vincent Celier  <celier@adacore.com>

* switch-m.adb (Normalize_Compiler_Switches): Take into account
switches that are recorded in ALI files: -gnateA, -gnateE,
-gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.

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

* sem_ch5.adb (Analyze_Iterator_Specification): Check legality
of an element iterator form over a formal container with an
Iterable aspect.
* exp_ch5.adb (Build_Formal_Container_Iteration): Utility
to create declaration and loop statements for both forms of
container iterators.
(Expand_Formal_Container_Element_Iterator): New procedure
to handle loops of the form  "for E of C" when C is a formal
container.
(Expand_Formal_Container_Iterator): Code cleanup.

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

10 years ago2014-02-20 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Thu, 20 Feb 2014 14:08:31 +0000 (14:08 +0000)]
2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
(Analyze_Contract_Case): Remove the use of
"may". Replace "aspect Contract_Cases" to avoid categorization
of aspect vs pragma.
(Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
(Analyze_Global_Item): Remove
the use of "formal", specify the subprogram.  Split the
error message about a state with visible refinement into
two. Remove the use of "global" from "volatile global item".
(Analyze_Initialization_Item): Ensure that the SPARK RM reference
is on one line.
(Analyze_Input_Output): Update the call to
Check_Mode. Specify the duplicated item. Reword the error
message concerning an input of a null output list. Use "\"
for error message continuation.
(Analyze_Part_Of): Remove
the use of "may". Use "\" for error message continuation.
(Analyze_Refined_Depends_In_Decl_Part): Update the error
message concerning a useless refinement to match the format
of Refined_Global.
(Analyze_Refined_Global_In_Decl_Part): Reword the error message
concerning a useless refinement.
(Analyze_Refinement_Clause): Use "\" for error message continuation.
(Check_Constituent_Usage): Use "\" for error message continuation.
(Check_Dependency_Clause): Use "\" for error message continuation.
(Check_Matching_Constituent): Use "\" for error message continuation.
(Check_Missing_Part_Of): Use "\" for error message continuation.
(Check_Mode): Renamed to
Check_Role. Update the comment on usage. Redo the error reporting
to use Role_Error.
(Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
message continuation.
(Find_Mode): Renamed to Find_Role. Update the parameter profile along
with comment on usage. Update all occurrences of Is_Input and Is_Output.
(Inconsistent_Mode_Error): Use "\" for error message continuation.
(Input_Match): Use "\" for error message continuation.
(Role_Error): New routine.
(Set_Convention_From_Pragma): Use "\" for error message continuation.
(Usage_Error): Add local variable Error_Msg. Build specialized error
message showcasing the offending item kind. Redo the diagnostics for
unconstrained types.

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

* exp_util.adb (Is_Iterated_Container): Use high-level primitives
to determine whether a type is a container type, rather than
examining only its type declaration, so that subtypes and derived
types are handled properly.

2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi: gnatmetric: add description of project-specific
options.

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

* sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
all choices in an association for a record type have the same
type, as is done for record aggregates.

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

10 years agoXFAIL sourcelocation (PR libgcj/55637)
ro [Thu, 20 Feb 2014 14:04:53 +0000 (14:04 +0000)]
XFAIL sourcelocation (PR libgcj/55637)

PR libgcj/55637
* testsuite/libjava.lang/sourcelocation.xfail: New file.

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

10 years ago2014-02-20 Robert Dewar <dewar@adacore.com>
charlet [Thu, 20 Feb 2014 14:04:38 +0000 (14:04 +0000)]
2014-02-20  Robert Dewar  <dewar@adacore.com>

* a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
Unmodified rather than Warnings (Off). Make comments
uniform in the four affected units.

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

* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
Object_Size): For non-scalar types allow any value that is a
multiple of 8.
* gnat_rm.texi: Document Object_Size for composites more clearly.

2014-02-20  Yannick Moy  <moy@adacore.com>

* sem_util.ads, sem_util.adb (Default_Initialization): Remove function.

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

* stand.ads: Raise_Type: new predefined entity, used as the type
of a Raise_Expression prior to resolution.
* cstand.adb: Build entity for Raise_Type.
* sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
initial type of the node.
* sem_type.adb (Covers): Raise_Type is compatible with all
other types.
* sem_res.adb (Resolve): Remove special handling of Any_Type on
Raise_Expression nodes.
(Resolve_Raise_Expression): Signal ambiguity if the type of the
context is still Raise_Type.

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

10 years ago2014-02-20 Robert Dewar <dewar@adacore.com>
charlet [Thu, 20 Feb 2014 14:02:27 +0000 (14:02 +0000)]
2014-02-20  Robert Dewar  <dewar@adacore.com>

* sem_ch12.adb (Validate_Access_Type_Instance): Add message if
mismatching predicates.
* sem_ch6.adb (Check_Conformance): Give better messages on
predicate mismatch.
* sem_eval.adb (Predicates_Match): Move to spec.
* sem_eval.ads (Predicates_Match): Moved here from body.

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

* a-cbmutr.adb: Use default value in Insert_Child.

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

10 years ago2014-02-20 Vincent Celier <celier@adacore.com>
charlet [Thu, 20 Feb 2014 13:54:18 +0000 (13:54 +0000)]
2014-02-20  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
Stringt.Initialize in all project aware tools.

2014-02-20  Doug Rupp  <rupp@adacore.com>

* gnat_ugn.texi: Document gnatbind -X option.
* vms_data.ads: Minor warnings documentation reformatting.

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

* exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
procedure for a base type.

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

* sem_ch4.adb (Analyze_Case_Expression): Get type from first
expression with type info.
* sem_ch13.adb: Minor reformatting.
* sem_eval.adb (Subtypes_Statically_Match): Make sure we return
False if predicates do not match on the two types.

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

* sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
In Relaxed_RM_Semantics mode, allow any static integer value,
for compatibility with other compilers.

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

10 years ago2014-02-20 Vincent Celier <celier@adacore.com>
charlet [Thu, 20 Feb 2014 13:52:08 +0000 (13:52 +0000)]
2014-02-20  Vincent Celier  <celier@adacore.com>

* errutil.adb (Initialize): Properly initialize entry in table
Warnings when warnings are suppressed.

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

* s-os_lib.ads: Add warning about non-portability of Rename_File.
* sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
* sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
* gnat_ugn.texi: Document no warnings on junk variable names.
* layout.adb: Minor code reorganization (use Ekind_In).
* stringt.adb: Move initialization of Null_String_Id to Initialize
routine.

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

* sem_ch13.adb: Initialize optional Element_Id.

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

10 years ago2014-02-20 Robert Dewar <dewar@adacore.com>
charlet [Thu, 20 Feb 2014 13:48:32 +0000 (13:48 +0000)]
2014-02-20  Robert Dewar  <dewar@adacore.com>

* s-os_lib.ads (Rename_File): Minor commment addition.

2014-02-20  Thomas Quinot  <quinot@adacore.com>

* einfo.ads: Minor reformatting.

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

* aspects.adb (Exchange_Aspects): New routine.
* aspects.ads (Exchange_Aspects): New routine.
* atree.adb (Rewrite): Do not check whether the save node has
aspects as it never will, instead check the node about to be clobbered.
* einfo.adb (Write_Field25_Name): Abstract_States can appear in
entities of generic packages.
* sem_ch6.adb (Analyze_Expression_Function): Fix the parent
pointer of an aspect specification list after rewriting takes place.
* sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
specifications of the generic template and the copy used for analysis.
* sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
the aspect specifications of the generic template and the
copy used for analysis.
(Analyze_Package_Instantiation): Propagate the aspect specifications
from the generic template to the instantiation.
(Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
specifications from the generic template to the instantiation.
* sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
Abstract_State, Initializes and Initial_Condition when they
apply to a package instantiation.

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

* stringt.adb: Add call to Initialize in package initialization.

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

10 years ago2014-02-20 Robert Dewar <dewar@adacore.com>
charlet [Thu, 20 Feb 2014 13:46:15 +0000 (13:46 +0000)]
2014-02-20  Robert Dewar  <dewar@adacore.com>

* a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
reformatting.

2014-02-20  Bob Duff  <duff@adacore.com>

* s-os_lib.ads: Minor: Remove incorrect comment.

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

* sem_elab.adb (Check_Elab_Assign): Clearer warning message.

2014-02-20  Vincent Celier  <celier@adacore.com>

* gnat_rm.texi: Minor syntax error fix.

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

* a-cborma.adb (Assign): When creating a node without a specified
element, insert an uninitialized element in the map, because
the instance may provide an element type with a default
initialization, e.g a scalar with a Default_Value aspect.
* a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
(Insert): In the version without explicit element, provide an
uninitialized element, as above.
* a-cbdlli.adb (Append): In the version without explicit element,
provide an uninitalized element, as above.
(Allocate): Remove unused version.

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

10 years ago2014-02-20 Robert Dewar <dewar@adacore.com>
charlet [Thu, 20 Feb 2014 13:44:20 +0000 (13:44 +0000)]
2014-02-20  Robert Dewar  <dewar@adacore.com>

* sem_elab.adb: Minor code reorganization (use Nkind_In).
* stringt.adb: Remove temporary pragma Warnings (Off).
* stringt.ads: Add pragma Elaborate_Body to ensure initialization
of Null_String_Id.

2014-02-20  Matthew Heaney  <heaney@adacore.com>

* a-chtgbk.adb (Replace): Use correct offset when calculating bucket
index.

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

10 years ago2014-02-20 Ed Schonberg <schonberg@adacore.com>
charlet [Thu, 20 Feb 2014 13:42:58 +0000 (13:42 +0000)]
2014-02-20  Ed Schonberg  <schonberg@adacore.com>

* sem_ch5.adb (Analyze_Iterator_Specification): Initialize
properly the cursor type for subsequent volatile testing in SPARK
mode, when domain is a formal container with an Iterabe aspect.

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

* errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
(Set_Specific_Warning_Off): Add Reason argument.
* errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
(Set_Specific_Warning_Off): Add Reason argument.
* erroutc.adb (Warnings_Entry): Add Reason field
(Specific_Warning_Entry): Add Reason field.
(Warnings_Suppressed): return String_Id for Reason.
(Warning_Specifically_Suppressed): return String_Id for Reason.
* erroutc.ads (Warnings_Entry): Add Reason field.
(Specific_Warning_Entry): Add Reason field.
(Set_Specific_Warning_Off): Add Reason argument.
(Set_Warnings_Mode_Off): Add Reason argument.
(Warnings_Suppressed): return String_Id for Reason.
(Warning_Specifically_Suppressed): return String_Id for Reason.
* errutil.adb (Warnings_Suppressed): returns String_Id for Reason
(Warning_Specifically_Suppressed): returns String_Id for Reason
* gnat_rm.texi: Document that Warning parameter is string literal
or a concatenation of string literals.
* par-prag.adb: New handling for Reason argument.
* sem_prag.adb (Analyze_Pragma, case Warning): New handling
for Reason argument.
* sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
* sem_warn.ads (Warnings_Off_Entry): Add reason field.
* stringt.adb: Set Null_String_Id.
* stringt.ads (Null_String_Id): New constant.

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

10 years ago2014-02-20 Robert Dewar <dewar@adacore.com>
charlet [Thu, 20 Feb 2014 13:38:06 +0000 (13:38 +0000)]
2014-02-20  Robert Dewar  <dewar@adacore.com>

* einfo.ads: Minor comment addition: Etype of package is
Standard_Void_Type.
* checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
Replace all calls with calls to New_Occurrence_Of.

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

* par-util.adb (Ignore, case of right paren): Make this a
serious error.

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

10 years ago2014-02-20 Martin Jambor <mjambor@suse.cz>
jamborm [Thu, 20 Feb 2014 13:28:34 +0000 (13:28 +0000)]
2014-02-20  Martin Jambor  <mjambor@suse.cz>

PR ipa/55260
* ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
info when checking whether lattices are bottom.

testsuite/
* gcc.dg/ipa/pr55260.c: New test.

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

10 years ago * gcc.dg/tree-prof/crossmodule-indircall-1.c: Return 0
amker [Thu, 20 Feb 2014 10:41:03 +0000 (10:41 +0000)]
* gcc.dg/tree-prof/crossmodule-indircall-1.c: Return 0
for execution test case.

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

10 years ago2014-02-20 Richard Biener <rguenther@suse.de>
rguenth [Thu, 20 Feb 2014 09:00:23 +0000 (09:00 +0000)]
2014-02-20  Richard Biener  <rguenther@suse.de>

PR middle-end/60221
* tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
regions at -O0.

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

10 years ago2014-02-20 Richard Biener <rguenther@suse.de>
rguenth [Thu, 20 Feb 2014 08:43:04 +0000 (08:43 +0000)]
2014-02-20  Richard Biener  <rguenther@suse.de>

PR libjava/60261
* configure.ac (dbexecdir): Remove redundant multilib addition.
* Makefile.am (gcc_version): Export.
* configure: Regenerate.
* Makefile.in: Likewise.

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

10 years ago PR ipa/58555
hubicka [Thu, 20 Feb 2014 06:40:07 +0000 (06:40 +0000)]
PR ipa/58555
* ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale parameter
specifying the scaling.
(inline_call): Update.
(want_inline_recursively): Guard division by zero.
(recursive_inlining): Update.
* ipa-inline.h (clone_inlined_nodes): Update.
* testsuite/g++.dg/torture/pr58555.C: New testcase.

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

10 years agogcc/
kyukhin [Thu, 20 Feb 2014 06:32:21 +0000 (06:32 +0000)]
gcc/
PR target/60204
* config/i386/i386.c (classify_argument): Pass structures of size
64 bytes or less in register.

tessuite/gcc/
PR target/60204
* gcc.target/x86_64/abi/avx512f/test_passing_structs.c: Update to
reflect abi fix.
* gcc.target/x86_64/abi/avx512f/test_passing_unions.c: Ditto.

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

10 years agogcc/
kyukhin [Thu, 20 Feb 2014 06:26:38 +0000 (06:26 +0000)]
gcc/
* config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
(_mm_rcp28_round_ss): Ditto.
(_mm_rsqrt28_round_sd): Ditto.
(_mm_rsqrt28_round_ss): Ditto.
* config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
(_mm_rcp14_round_ss): Ditto.
(_mm_rsqrt14_round_sd): Ditto.
(_mm_rsqrt14_round_ss): Ditto.
* config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
the first input operand, get rid of match_dup.
(avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
attribute to sse.
(<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
Ditto.
(avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
operand as the first input operand, set type attribute.
(<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
Set type attribute.
(avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
operand as the first input operand, set type attribute.

testsuite/gcc/
* gcc.target/i386/avx512er-vrcp28sd-2.c: Distinguish src1 and src2.
* gcc.target/i386/avx512er-vrcp28ss-2.c: Call correct intrinsic.
* gcc.target/i386/avx512er-vrsqrt28sd-2.c: Distinguish src1 and src2.
* gcc.target/i386/avx512er-vrsqrt28ss-2.c: Ditto.
* gcc.target/i386/avx512f-vrcp14sd-2.c: Fix reference calculation.
* gcc.target/i386/avx512f-vrcp14ss-2.c: Fix reference calculation.

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

10 years agoDaily bump.
gccadmin [Thu, 20 Feb 2014 00:17:08 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago PR c/37743
jakub [Wed, 19 Feb 2014 22:27:40 +0000 (22:27 +0000)]
PR c/37743
* c-common.c (c_common_nodes_and_builtins): When initializing
c_uint{16,32,64}_type_node, also set corresponding
uint{16,32,64}_type_node to the same value.

* g++.dg/ext/builtin-bswap1.C: New test.
* c-c++-common/pr37743.c: New test.

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

10 years ago2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Wed, 19 Feb 2014 19:43:13 +0000 (19:43 +0000)]
2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (vspltis_constant): Fix most significant
bit of zero.

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

10 years ago PR c++/60046
jason [Wed, 19 Feb 2014 19:03:19 +0000 (19:03 +0000)]
PR c++/60046
* pt.c (maybe_instantiate_noexcept): Don't instantiate exception
spec from template context.

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

10 years ago * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
mpolacek [Wed, 19 Feb 2014 18:51:57 +0000 (18:51 +0000)]
* c-parser.c (c_parser_declspecs): Replace call to error by error_at.
(c_parser_parameter_declaration): Likewise.

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

10 years ago PR debug/56563
jakub [Wed, 19 Feb 2014 18:12:31 +0000 (18:12 +0000)]
PR debug/56563
* cp-objcp-common.c (cp_function_decl_explicit_p): Remove
FUNCTION_FIRST_USER_PARMTYPE (decl) != void_list_node check.

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

10 years ago PR c++/60267
jakub [Wed, 19 Feb 2014 18:11:54 +0000 (18:11 +0000)]
PR c++/60267
* pt.c (tsubst_expr): Handle ANNOTATE_EXPR.

* g++.dg/ext/ivdep-1.C: New test.

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

10 years agoRemove TFmode check for X86_64_INTEGER_CLASS
hjl [Wed, 19 Feb 2014 18:10:04 +0000 (18:10 +0000)]
Remove TFmode check for X86_64_INTEGER_CLASS

PR target/60207
* config/i386/i386.c (construct_container): Remove TFmode check
for X86_64_INTEGER_CLASS.

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

10 years ago PR c++/60267
jakub [Wed, 19 Feb 2014 16:45:21 +0000 (16:45 +0000)]
PR c++/60267
* c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
for PRAGMA_IVDEP if flag_preprocess_only.

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

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

10 years ago PR target/59794
uros [Wed, 19 Feb 2014 15:53:59 +0000 (15:53 +0000)]
PR target/59794
* config/i386/i386.c (type_natural_mode): Warn for ABI changes
only when -Wpsabi is enabled.

testsuite/ChangeLog:

PR target/59794
* gcc.target/i386/pr39162.c: Add dg-prune-output.
(dg-options): Remove -Wno-psabi.
* gcc.target/i386/59794-2.c: Ditto.
* gcc.target/i386/60205-1.c: Ditto.
* gcc.target/i386/sse-5.c: Ditto.

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

10 years ago * gcc.dg/graphite/pr46966.c: Only run on 32-bit+ targets.
nickc [Wed, 19 Feb 2014 15:44:11 +0000 (15:44 +0000)]
* gcc.dg/graphite/pr46966.c: Only run on 32-bit+ targets.
* gcc.dg/pr23623.c: Likewise.
* gcc.dg/pr48784-1.c: Likewise.
* gcc.dg/pr48784-2.c: Likewise.
* gcc.dg/pr56997-2.c: Likewise.
* gcc.dg/sms-6.c: Likewise.
* gcc.dg/torture/pr60183.c: Likewise.
* gcc.dg/torture/vec-cvt-1.c: Likewise.
* gcc.c-torture/execute/20061220-1.x: New.
* gcc.c-torture/execute/pr43220.x: New.
* gcc.c-torture/execute/pr51581-1.x: New.
* gcc.c-torture/execute/pr51581-2.x: New.
* gcc.c-torture/execute/pr58570.x: New.
* gcc.c-torture/unsorted/DFcmp.x: New.
* gcc.c-torture/unsorted/SFset.x: New.

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

10 years ago2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
yroux [Wed, 19 Feb 2014 15:32:54 +0000 (15:32 +0000)]
2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>

 PR target/59799
* config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
passing arrays in registers are the same as for structs, so remove the
special case for them.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 15:05:43 +0000 (15:05 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
* debug.adb: Remove -gnatd.X switch, no longer used.
* styleg.adb (Check_Then): Remove check of -gnatd.X, check is
now always made.

2014-02-19  Bob Duff  <duff@adacore.com>

* g-socket.ads: Minor: Correct some comments.

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

10 years ago2014-02-19 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 19 Feb 2014 15:04:08 +0000 (15:04 +0000)]
2014-02-19  Ed Schonberg  <schonberg@adacore.com>

* sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.

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

* sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
an error on out of range priorities if Relaxed_RM_Semantics.
* sem_prag.adb (Analyze_Pragma): Ditto.

2014-02-19  Bob Duff  <duff@adacore.com>

* sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
where F denotes the renaming of an enumeration literal, and
issue a specialized error message.

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

10 years ago2014-02-19 Matthew Heaney <heaney@adacore.com>
charlet [Wed, 19 Feb 2014 14:59:32 +0000 (14:59 +0000)]
2014-02-19  Matthew Heaney  <heaney@adacore.com>

* a-chtgop.ads (Checked_Index): New operation.
(Next): Changed mode of hash table.
* a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
(Generic_Read, Reserve_Capacity): Ditto.
(Generic_Equal): Detect tampering.
(Next): Changed mode of hash table, detect tampering.
* a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
operation.
(Find): Changed mode of hash table.
* a-chtgke.adb (Checked_Equivalent_Keys): New operation
(Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
tampering.
(Find): Changed mode of hash table, check for tampering.
(Generic_Replace_Element): Check for tampering.
* a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
* a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
Detect tampering.
(Find, Generic_Replace_Element): Check for tampering.
* a-chtgbo.ads (Checked_Index): New operation.
* a-chtgbo.adb (Checked_Index): New operation
(Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
(Generic_Read, Next): Ditto.
* a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
table (Difference, Intersection): Use variable view of
source, detect tampering (Find, Is_Subset, Overlap): Use
variable view of container (Symmetric_Difference, Union):
Detect tampering (Vet): Use Checked_Index to detect tampering
(Constant_Reference, Element, Find): Use variable view of
container.
(Update_Element_Preserving_Key): Detect tampering.
* a-cbhase.adb (Difference, Find, Is_In): Use variable view
of container.
(Is_Subset): Ditto.
(Equivalent_Sets, Overlap): Use Node's Next component.
(Vet): Use Checked_Index to detect tampering.
(Constant_Reference, Element, Find): Use variable view of container.
(Update_Element_Preserving_Key): Detect tampering.
* a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
Element, Find): Use variable view of container.
(Reference): Rename hash table component.
(Vet): Use Checked_Index to detect tampering.

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

* adabkend.adb (Scan_Compiler_Arguments): Add missing handling
of -nostdinc.

2014-02-19  Thomas Quinot  <quinot@adacore.com>

* tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
against calls without Def_Id.

2014-02-19  Claire Dross  <dross@adacore.com>

* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
a-cofove.ads: Add global annotations to subprograms.

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

* sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
Initial_Condition no longer requires the presence of pragma
Initialized. Do not try to diagnose whether all variables mentioned in
pragma Initializes also appear in Initial_Condition.
(Collect_Variables): Removed.
(Match_Variable): Removed.
(Match_Variables): Removed.
(Report_Unused_Variables): Removed.

2014-02-19  Thomas Quinot  <quinot@adacore.com>

* gnat_rm.texi (pragma Stream_Convert): Minor rewording.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 14:48:32 +0000 (14:48 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
reformatting.

2014-02-19  Vincent Celier  <celier@adacore.com>

* prj-part.adb (Parse_Single_Project): Use the fully resolved
project path, with all symbolic links resolved, to check if the
same project is imported with a different unresolved path.
* prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
changed to Resolved_Path to reflect that all symbolic links
are resolved.

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

10 years ago2014-02-19 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 19 Feb 2014 14:46:15 +0000 (14:46 +0000)]
2014-02-19  Ed Schonberg  <schonberg@adacore.com>

* sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
from sem_ch13, for use elsewhere.
* sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
* sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
cursor type on the loop variable when the iteration is over o
formal container.

2014-02-19  Vincent Celier  <celier@adacore.com>

* prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
for an empty Target (Check_Target): Never fail when an empty
target is declared in the configuration project.

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

* sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
the pragma comes fron a predicate aspect and the context is a
record declaration within the scope that declares the type.

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

* gnat_rm.texi: Minor clarifications.
* expander.adb, sem_aggr.adb: Add comments.

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

10 years ago * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
ebotcazou [Wed, 19 Feb 2014 14:45:16 +0000 (14:45 +0000)]
* expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
destination type, extract only the valid bits if the source type is not
integral and has a different mode.

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

10 years ago2014-02-19 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 19 Feb 2014 14:42:55 +0000 (14:42 +0000)]
2014-02-19  Ed Schonberg  <schonberg@adacore.com>

* sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
applies to a subprogram body, the name is the current scope,
rather than being declared in the current scope.
(Analyze_Pragma, case No_Return): Handle properly a No_Return
aspect applied to a subprogram body.

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

* sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
of overloaded subprograms, and fix bug in handling of primitive
operation Element.

2014-02-19  Pascal Obry  <obry@adacore.com>

* s-os_lib.adb: Minor reformatting.

2014-02-19  Yannick Moy  <moy@adacore.com>

* expander.adb (Expand): Do nothing inside generics.
* sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
generics.

2014-02-19  Yannick Moy  <moy@adacore.com>

* exp_ch2.adb: Remove useless 'with' of unit Uintp.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 14:40:26 +0000 (14:40 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
* a-sequio.adb: Remove useless pragma Extensions_Allowed (no
longer needed).

2014-02-19  Claire Dross  <dross@adacore.com>

* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.

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

10 years ago2014-02-19 Richard Biener <rguenther@suse.de>
rguenth [Wed, 19 Feb 2014 14:25:47 +0000 (14:25 +0000)]
2014-02-19  Richard Biener  <rguenther@suse.de>

PR ipa/60243
* tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
for all calls.

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

10 years agoXFAIL gcc.dg/torture/pr60092.c execution on Solaris 11
ro [Wed, 19 Feb 2014 12:28:15 +0000 (12:28 +0000)]
XFAIL gcc.dg/torture/pr60092.c execution on Solaris 11

* gcc.dg/torture/pr60092.c: xfail execution on *-*-solaris2.11* at -O0.

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

10 years ago2014-02-19 Janus Weil <janus@gcc.gnu.org>
janus [Wed, 19 Feb 2014 11:52:39 +0000 (11:52 +0000)]
2014-02-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/60232
* expr.c (gfc_get_variable_expr): Don't add REF_ARRAY for dimensionful
functions, which are used as procedure pointer target.

2014-02-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/60232
* gfortran.dg/typebound_proc_33.f90: New.

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

10 years ago2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Wed, 19 Feb 2014 11:18:32 +0000 (11:18 +0000)]
2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch3.adb (Analyze_Declarations): Analyze
a package contract at the end of the private declarations (if
applicable), otherwise analyze it and the end of the visible
declarations.

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

* style.adb (Missing_Overriding): If subprogram is an
instantiation, place warning on the instance node itself,
without mention of the original generic. Do not emit message
if explicit Ada version is older than the introduction of the
overriding indicator.

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

10 years ago2014-02-19 Yannick Moy <moy@adacore.com>
charlet [Wed, 19 Feb 2014 11:17:15 +0000 (11:17 +0000)]
2014-02-19  Yannick Moy  <moy@adacore.com>

* gnat_rm.texi: Doc clarifications.

2014-02-19  Yannick Moy  <moy@adacore.com>

* exp_util.adb (Remove_Side_Effects): Do not remove side-effects
inside a generic.

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

* sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
specified First primitive, rather than by name.
(Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
and extend error checking for missing primitives and incorrect
signatures.

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

* sem_ch3.adb (Check_Pragma_Implemented): Detect additional
errors when a Synchronization aspect on an overriding protected
operation does not match the given aspect on the overridden
operation of an ancestor interface.

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

* sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
(Check_Loop_Pragma_Placement): Update
comment on usage. Remove local variables Orig_Stmt and
Within_Same_Sequence. Check that the current Loop_Invariant or
Loop_Variant pragma is grouped together with other such pragmas.
(Is_Loop_Pragma): New routine.
(Prev_In_Loop): Removed.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 11:12:05 +0000 (11:12 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* par-ch6.adb (P_Return): For extended return, end column lines
up with RETURN.
* par.adb: Minor documentation clarification.

2014-02-19  Yannick Moy  <moy@adacore.com>

* sem_prag.adb (Check_Loop_Pragma_Placement): Add check
that Loop_Invariant and Loop_Variant appear consecutively.
* gnat_rm.texi Update documentation of Loop_Invariant and
Loop_Variant pragmas.

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

* debug.adb: Document -gnatd.X.
* par-ch5.adb (P_If_Statement): Always check THEN, even if not
first token
(Check_Then_Column): Ditto.
* styleg.adb (Check_Then): Allow THEN on line after IF.
(Check_Then): Check THEN placement under control of -gnatd.X
* styleg.ads (Check_Then): Now called even if THEN is not first
token on line.
* stylesw.ads (Style_Check_If_Then_Layout): Document new
relaxed rules.
* gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.

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

* a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
vms_conv.adb: Fix bad layout of IF statements

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 11:07:31 +0000 (11:07 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 11:05:35 +0000 (11:05 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* exp_util.adb: Update comments.

2014-02-19  Doug Rupp  <rupp@adacore.com>

* bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
* init.c (__gl_float_format): [VMS] New global.
(__gnat_set_features): Call FP_CONTROL to set FPSR for the float
representation in effect.

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

* exp_ch6.adb Add with and use clause for Exp_Prag.
(Expand_Contract_Cases): Relocated to Exp_Prag.
* exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
* exp_prag.adb Add with and use clauses for Checks and Validsw.
(Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
structure of the expanded code to showcase the evaluation of
attribute 'Old prefixes. Add local variable Old_Evals. Expand
any attribute 'Old references found within a consequence. Add
circuitry to evaluate the prefixes of attribute 'Old that
belong to a selected consequence.
(Expand_Old_In_Consequence): New routine.
* exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
* sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
potentially unevaluated prefix is always evaluated.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 11:02:48 +0000 (11:02 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
(Expand_Min_Max_Attribute): Use Matching_Standard_Type.
* exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
handling for the case of Modify_Tree_For_C, this approach did
not work.
* exp_util.adb (Matching_Standard_Type): New function
(Side_Effect_Free): New top level functions (from
Remove_Side_Effects).
* exp_util.ads (Side_Effect_Free): New top level functions
(moved from body).
* sinfo.ads: Minor comment updates.

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

* exp_ch6.adb (Expand_Simple_Function_Return): If return
type is unconstrained and uses the secondary stack, mark the
enclosing function accordingly, to ensure that the value is not
prematurely removed.

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

* par.adb Alphabetize the routines in Par.Sync.
(Resync_Past_Malformed_Aspect): New routine.
* par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
variables. Code and comment reformatting. Detect missing
parentheses on aspects [Refined_]Global and [Refined_]Depends
with a non-null definition.
* par-sync.adb: Alphabetize all routines in this separate unit.
(Resync_Past_Malformed_Aspect): New routine.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 11:01:01 +0000 (11:01 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
if Esize values do not match.

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

10 years ago2014-02-19 Yannick Moy <moy@adacore.com>
charlet [Wed, 19 Feb 2014 10:59:25 +0000 (10:59 +0000)]
2014-02-19  Yannick Moy  <moy@adacore.com>

* sinfo.ads: Minor comment update.

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

* atree.ads: Minor reformatting (change Entity_Info to Einfo).

2014-02-19  Thomas Quinot  <quinot@adacore.com>

* exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
that has the No_Ctrl_Actions flag is a suitable node to be
wrapped if the assigned expression has no finalization actions.
* sem_eval.adb (Eval_Entity_Name): For a compile time known
boolean value, mark the corresponding condition SCO as constant.

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

* exp_util.adb: Minor reformatting.
* exp_util.ads (Matching_Standard_Type): New function.
* exp_ch7.adb: Minor reformatting.

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

* sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
to find declaration for Cursor, to handle properly the case of
a discriminated iterable type.

2014-02-19  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (GNATCmd): Always replace the object dirs of
imported library projects with the library ALI dirs, when setting
the object paths.
* prj-env.ads (Ada_Objects_Path): Correct comments about
argument Including_Libraries.

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

10 years ago2014-02-19 Gary Dismukes <dismukes@adacore.com>
charlet [Wed, 19 Feb 2014 10:55:33 +0000 (10:55 +0000)]
2014-02-19  Gary Dismukes  <dismukes@adacore.com>

* gnat_rm.texi: Minor spelling fixes.

2014-02-19  Doug Rupp  <rupp@adacore.com>

* init.c: Remove unneeded code.
* fe.h (Float_Format): New macro
* gcc-interface/trans.c (gigi): On VMS, set vms_float_format.

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

10 years ago2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Wed, 19 Feb 2014 10:51:26 +0000 (10:51 +0000)]
2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Check_Refined_Global_Item):
A state or variable acts as a constituent only it is part of an
encapsulating state and the state has visible refinement.

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

* sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
postcondition for a function when the expression does not mention
'Result but the function has in-out parameters.

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

* gnat_rm.texi: Add documentation on Value_Size forcing biased
representation.

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

10 years ago2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Wed, 19 Feb 2014 10:48:06 +0000 (10:48 +0000)]
2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>

* lib-xref.ads Remove the small table of letter and symbol usage as we
already have one.

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

* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
messages depending on the offending misplaced aspect specifications.
(Diagnose_Misplaced_Aspect_Specifications): New routine.

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

* sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
for iterable aspect primitives.
(Resolve_Iterable_Operation): Use expected signature of iterable
aspect to resolve primitive when overloading is present.
(Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
(Check_Signature): Removed.

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

10 years ago2014-02-19 Yannick Moy <moy@adacore.com>
charlet [Wed, 19 Feb 2014 10:44:33 +0000 (10:44 +0000)]
2014-02-19  Yannick Moy  <moy@adacore.com>

* sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
subunit in GNATprove_Mode.
* sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.

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

* lib-xref.ads Alphabetize the contents of table
Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
for E_Abstract_State. List all letters and symbols in use.
* sem_prag.adb (Analyze_Abstract_State): Update all calls
to Create_Abstract_State to reflect the new signature.
(Create_Abstract_State): Change subprogram profile and update
the comment on usage. Use the proper location of the state
declaration when creating a new abstract state entity. Do not
generate an external name, but simply reuse the name coming from
the state declaration.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 10:42:16 +0000 (10:42 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
declarations get properly inserted in Modify_Tree_For_C mode.
* sinfo.ads: Minor comment addition.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 10:32:17 +0000 (10:32 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.

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

10 years ago2014-02-19 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 19 Feb 2014 10:30:33 +0000 (10:30 +0000)]
2014-02-19  Ed Schonberg  <schonberg@adacore.com>

* style.adb (Missing_Overriding): Warning does not apply in
language versions prior to Ada 2005.
* snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
* sem_attr.adb: Add Attribute_Iterable where needed.
* exp_attr.adb: ditto.
* exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
handle loops and quantified expressions over types that have an
iterable aspect.  Called from Expand_Iterator_Loop.
* sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
with Iterable aspect.
* sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
subprograms specified in the Iterable aspect have the proper
signature involving container and cursor.
(Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
* sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
* sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
New procedure to retrieve one of the primitives First, Last,
or Has_Element, from the value of the iterable aspect of a
formal container.
(Is_Container_Element): Predicate to recognize expressions
that denote an element of one of the predefined containers,
for possible optimization.  This subprogram is not currently
used, pending ARG discussions on the legality of the proposed
optimization. Worth preserving for eventual use.
(Is_Iterator): Recognize formal container types.
* aspects.ads, aspects.adb: Add Aspect_Iterable where needed.

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

10 years ago2014-02-19 Robert Dewar <dewar@adacore.com>
charlet [Wed, 19 Feb 2014 10:25:53 +0000 (10:25 +0000)]
2014-02-19  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb (Expand_Min_Max_Attribute): New procedure
(Expand_N_Attribute_Reference): Use this procedure for Min and Max.
* exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
declarations from list of actions.
* output.ads, output.adb (Delete_Last_Char): New procedure.
* sinfo.ads: Document handling of Mod and expression with actions
in Modify_Tree_For_C mode.

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

* par-ch9.adb (P_Task): Add a null statement to produce a
well-formed task body when due to a previous syntax error the
statement list is empty.

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

* sem_prag.adb (Check_Dependency_Clause): Account
for the case where a state with a non-null refinement matches a
null output list. Comment reformatting.
(Inputs_Match): Copy a solitary input to avoid an assertion failure
when trying to match the same input in multiple clauses.

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

* sem_attr.adb: Minor typo fix.

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

10 years ago2014-02-19 Richard Biener <rguenther@suse.de>
rguenth [Wed, 19 Feb 2014 09:29:34 +0000 (09:29 +0000)]
2014-02-19  Richard Biener  <rguenther@suse.de>

PR ipa/60243
* ipa-prop.c: Include stringpool.h and tree-ssanames.h.
(ipa_modify_call_arguments): Emit an argument load explicitely and
preserve virtual SSA form there and for the replacement call.
Do not update SSA form nor free dominance info.

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

10 years ago * ipa.c (function_and_variable_visibility): Also clear WEAK
hubicka [Wed, 19 Feb 2014 07:45:00 +0000 (07:45 +0000)]
* ipa.c (function_and_variable_visibility): Also clear WEAK
flag when disolving COMDAT_GROUP.

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

10 years ago * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
hubicka [Wed, 19 Feb 2014 07:42:06 +0000 (07:42 +0000)]
* ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
* ipa-prop.c (ipa_set_jf_known_type): Return early when
not devirtualizing.
(ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
do more sanity checks.
(detect_type_change): Return true when giving up early.
(compute_complex_assign_jump_func): Fix type parameter of
ipa_set_ancestor_jf.
(compute_complex_ancestor_jump_func): Likewise.
(update_jump_functions_after_inlining): Fix updating of
ancestor function.
* ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type
to be NULL.

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

10 years ago * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
hubicka [Wed, 19 Feb 2014 07:33:45 +0000 (07:33 +0000)]
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
inline clones when edge disappears.

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

10 years ago PR c/60195
mpolacek [Wed, 19 Feb 2014 06:29:49 +0000 (06:29 +0000)]
PR c/60195
c/
* c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
Call mark_exp_read on exp.value.
(build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
TREE_ADDRESSABLE on old instead of val.
(emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
testsuite/
* gcc.dg/pr60195.c: New test.

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

10 years ago2014-02-19 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Wed, 19 Feb 2014 06:21:42 +0000 (06:21 +0000)]
2014-02-19  Paul Pluzhnikov  <ppluzhnikov@google.com>

* gcc.dg/vect/no-vfa-vect-depend-2.c (main1): Fix buffer
overflow.

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

10 years ago PR preprocessor/58844
jakub [Wed, 19 Feb 2014 06:05:55 +0000 (06:05 +0000)]
PR preprocessor/58844
* macro.c (enter_macro_context): Only push
macro_real_token_count (macro) tokens rather than
macro->count tokens, regardless of
CPP_OPTION (pfile, track-macro-expansion).

* c-c++-common/cpp/pr58844-1.c: New test.
* c-c++-common/cpp/pr58844-2.c: New test.

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

10 years ago2014-02-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
bviyer [Wed, 19 Feb 2014 03:43:21 +0000 (03:43 +0000)]
2014-02-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+ * include/cilk/common.h (__CILKRTS_ABI_VERSION): Set the ABI version
+ to 1 instead of 0.
+ * runtime/cilk-abi-cilk-for.cpp (cilk_for_recursive): Added a fix to
+ initialize stack frame correctly.
+

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

10 years ago2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Wed, 19 Feb 2014 02:14:17 +0000 (02:14 +0000)]
2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/60203
* config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
Split 64-bit moves into 2 patterns.  Do not allow the use of
direct move for TDmode in little endian, since the decimal value
has little endian bytes within a word, but the 64-bit pieces are
ordered in a big endian fashion, and normal subreg's of TDmode are
not allowed.
(mov<mode>_64bit_dm): Likewise.
(movtd_64bit_nodm): Likewise.

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

10 years agoDaily bump.
gccadmin [Wed, 19 Feb 2014 00:16:52 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago PR tree-optimization/60174
ebotcazou [Tue, 18 Feb 2014 23:15:27 +0000 (23:15 +0000)]
PR tree-optimization/60174
* tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
statement of an SSA_NAME that occurs in an abnormal PHI node.

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

10 years ago/cp
paolo [Tue, 18 Feb 2014 23:11:26 +0000 (23:11 +0000)]
/cp
2014-02-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60225
* semantics.c (ensure_literal_type_for_constexpr_object): Use
strip_array_types.

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

PR c++/60225
* g++.dg/cpp0x/constexpr-ice10.C: New.

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

PR c++/60215
* semantics.c (cxx_eval_constant_expression, [COMPONENT_REF]):
During error recovery allow_non_constant may be false.

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

PR c++/60215
* g++.dg/cpp0x/pr60215.C: New.

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

10 years agoFix PR c++/60064.
abutcher [Tue, 18 Feb 2014 22:29:56 +0000 (22:29 +0000)]
Fix PR c++/60064.

    PR c++/60064
    * parser.c (cp_parser_member_declaration): Pop fully implicit template
    scope for generic friend declarations as well as for non-friends.

    PR c++/60064
    * g++.dg/cpp1y/pr60064.C: New testcase.

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

10 years agoReally add the new testsuite files missing from commit r207854
burnus [Tue, 18 Feb 2014 22:29:00 +0000 (22:29 +0000)]
Really add the new testsuite files missing from commit r207854

2014-02-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/49397
        * gfortran.dg/proc_ptr_45.f90: New.
        * gfortran.dg/proc_ptr_46.f90: New.

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

10 years ago2014-02-18 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 18 Feb 2014 22:09:39 +0000 (22:09 +0000)]
2014-02-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/49397
        * expr.c (gfc_check_pointer_assign): Add check for
        F2008Cor2, C729.
        * trans-decl.c (gfc_get_symbol_decl): Correctly generate
        * external
        decl in a corner case.

2014-02-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/49397
        * gfortran.dg/proc_ptr_45.f90: New.
        * gfortran.dg/proc_ptr_46.f90: New.

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

10 years ago PR sanitizer/60142
jakub [Tue, 18 Feb 2014 21:16:21 +0000 (21:16 +0000)]
PR sanitizer/60142
* final.c (SEEN_BB): Remove.
(SEEN_NOTE, SEEN_EMITTED): Renumber.
(final_scan_insn): Don't force_source_line on second
NOTE_INSN_BASIC_BLOCK.

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

10 years agoFix PR c++/60190.
abutcher [Tue, 18 Feb 2014 21:07:48 +0000 (21:07 +0000)]
Fix PR c++/60190.

PR c++/60190
* parser.c (cp_parser_lambda_declarator_opt): Pop template parameter
scope whenever a template parameter list has been started, independent
of whether the function call operator was well-formed or not.

PR c++/60190
* g++.dg/cpp1y/pr60190.C: New testcase.

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

10 years ago PR target/60205
uros [Tue, 18 Feb 2014 18:55:35 +0000 (18:55 +0000)]
PR target/60205
* config/i386/i386.h (struct ix86_args): Add warn_avx512f.
* config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
(type_natural_mode): Warn ABI change when %zmm register is not
available for AVX512F vector value passing.

testsuite/ChangeLog:

PR target/60205
* gcc.target/i386/pr60205-1.c: New test.
* gcc.target/i386/pr60205-2.c: Ditto.

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

10 years ago2014-02-18 Kai Tietz <ktietz@redhat.com>
ktietz [Tue, 18 Feb 2014 17:02:54 +0000 (17:02 +0000)]
2014-02-18  Kai Tietz  <ktietz@redhat.com>
Jonathan Schleifer  <js@webkeks.org>

PR objc/56870
* unwind-seh.c (_GCC_specific_handler): Pass proper
value to unwind-handler.

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

10 years ago2014-02-18 Kai Tietz <ktietz@redhat.com>
ktietz [Tue, 18 Feb 2014 12:49:15 +0000 (12:49 +0000)]
2014-02-18  Kai Tietz  <ktietz@redhat.com>

PR target/60193
* config/i386/i386.c (ix86_expand_prologue): Use
rax register as displacement for restoring %r10, %rax.
Additional fix wrong offset for restoring both-registers.

2014-02-18  Kai Tietz  <ktietz@redhat.com>

PR target/60193
* gcc.target/i386/nest-1.c: New testcase.

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

10 years ago2014-02-18 Robert Dewar <dewar@adacore.com>
charlet [Tue, 18 Feb 2014 11:56:35 +0000 (11:56 +0000)]
2014-02-18  Robert Dewar  <dewar@adacore.com>

* cstand.adb (Build_Signed_Integer_Type): Minor change of formal
from Int to Nat (Build_Unsigned_Integer_Type): New procedure
(Create_Standard): Create new unsigned types.
* exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
mode (Expand_N_Reference): Removed, problematic and not needed
for now.
* exp_ch4.ads (Expand_N_Reference): Removed, problematic and
not needed for now.
* exp_util.ads, exp_util.adb (Power_Of_Two): New function.
* expander.adb: Remove call to Expand_N_Reference (problematic,
and not needed now).
* sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
* stand.adb: Read and write unsigned type entities.
* stand.ads: Add new unsigned types.

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

* sem_ch4.adb (Analyze_Call): Do not mark a function call
as being inside an assertion expression as the flag is now removed.
(Check_Ghost_Subprogram_Call): Do not query the
In_Assertion_Expression flag as it is now removed, instead use
a predicate function.
* sem_elab.adb (Check_Internal_Call_Continue): Do not query the
In_Assertion_Expression flag as it is now removed, instead use
a predicate function.
* sem_prag.ads: Add new table Assertion_Expression_Pragma.
* sem_util.adb Add with and use clause for Sem_Prag.
(In_Assertion_Expression_Pragma): New routine.
* sem_util.ads (In_Assertion_Expression_Pragma): New routine.
* sinfo.adb (In_Assertion_Expression): Removed.
(Set_In_Assertion_Expression): Removed.
* sinfo.ads Remove flag In_Assertion_Expression along with its
use in nodes.
(In_Assertion_Expression): Removed along with
pragma Inline. (Set_In_Assertion_Expression): Removed along
with pragma Inline.

2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
used together with '-r', '-rf' or '-rnb' options.

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

* sem_attr.adb (Analyze_Attribute): Comment
and code reformatting. Use separate routines to check the
legality of attribute 'Old in certain pragmas. Verify
the use of 'Old, 'Result and locally declared entities
within the prefix of 'Old.
(Check_References_In_Prefix): New routine.
(Check_Use_In_Contract_Cases): New routine.
(Check_Use_In_Test_Case): New routine.

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

10 years ago2014-02-18 Vincent Celier <celier@adacore.com>
charlet [Tue, 18 Feb 2014 11:54:13 +0000 (11:54 +0000)]
2014-02-18  Vincent Celier  <celier@adacore.com>

* sem_aux.adb (Is_By_Reference_Type): For each components of
a record type, check also if the component is volatile as it
may have an aspect that makes it volatile. If it is, then the
record type is a by reference type.

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

10 years ago2014-02-18 Robert Dewar <dewar@adacore.com>
charlet [Tue, 18 Feb 2014 11:52:58 +0000 (11:52 +0000)]
2014-02-18  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb: Minor reformatting.
* exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
* exp_util.adb (Remove_Side_Effects): Add conditional expressions
as another case where we don't generate N_Reference nodes for
primitive types.
* expander.adb (Expand): Add call to Expand_N_Reference.

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

10 years ago * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
ebotcazou [Tue, 18 Feb 2014 11:07:34 +0000 (11:07 +0000)]
* ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
assertion with conditional return.

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

10 years ago2014-02-18 Janus Weil <janus@gcc.gnu.org>
janus [Tue, 18 Feb 2014 07:45:39 +0000 (07:45 +0000)]
2014-02-18  Janus Weil  <janus@gcc.gnu.org>

PR fortran/60231
* resolve.c (check_generic_tbp_ambiguity): Check for presence of dummy
arguments to prevent ICE.

2014-02-18  Janus Weil  <janus@gcc.gnu.org>

PR fortran/60231
* gfortran.dg/typebound_generic_15.f90: New.

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

10 years ago PR driver/60233
jakub [Tue, 18 Feb 2014 07:19:46 +0000 (07:19 +0000)]
PR driver/60233
* config/i386/driver-i386.c (host_detect_local_cpu): If
YMM state is not saved by the OS, also clear has_f16c.  Move
CPUID 0x80000001 handling before YMM state saving checking.

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

10 years ago PR rtl-optimization/58960
abel [Tue, 18 Feb 2014 05:41:29 +0000 (05:41 +0000)]
    PR rtl-optimization/58960
        * haifa-sched.c (alloc_global_sched_pressure_data): New,
        factored out from ...
        (sched_init): ... here.
        (free_global_sched_pressure_data): New, factored out from ...
        (sched_finish): ... here.
        * sched-int.h (free_global_sched_pressure_data): Declare.
        * sched-rgn.c (nr_regions_initial): New static global.
        (haifa_find_rgns): Initialize it.
        (schedule_region): Disable sched-pressure for the newly
        generated regions.

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

10 years agoDaily bump.
gccadmin [Tue, 18 Feb 2014 00:16:54 +0000 (00:16 +0000)]
Daily bump.

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