platform/upstream/linaro-gcc.git
10 years ago[AArch64_BE 4/4] Big-Endian lane numbering fix
ktkachov [Thu, 23 Jan 2014 14:59:20 +0000 (14:59 +0000)]
[AArch64_BE 4/4] Big-Endian lane numbering fix

2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
    Alex Velenko  <Alex.Velenko@arm.com>

* config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
(vaddv_s16): Likewise.
(vaddv_s32): Likewise.
(vaddv_u8): Likewise.
(vaddv_u16): Likewise.
(vaddv_u32): Likewise.
(vaddvq_s8): Likewise.
(vaddvq_s16): Likewise.
(vaddvq_s32): Likewise.
(vaddvq_s64): Likewise.
(vaddvq_u8): Likewise.
(vaddvq_u16): Likewise.
(vaddvq_u32): Likewise.
(vaddvq_u64): Likewise.
(vaddv_f32): Likewise.
(vaddvq_f32): Likewise.
(vaddvq_f64): Likewise.
(vmaxv_f32): Likewise.
(vmaxv_s8): Likewise.
(vmaxv_s16): Likewise.
(vmaxv_s32): Likewise.
(vmaxv_u8): Likewise.
(vmaxv_u16): Likewise.
(vmaxv_u32): Likewise.
(vmaxvq_f32): Likewise.
(vmaxvq_f64): Likewise.
(vmaxvq_s8): Likewise.
(vmaxvq_s16): Likewise.
(vmaxvq_s32): Likewise.
(vmaxvq_u8): Likewise.
(vmaxvq_u16): Likewise.
(vmaxvq_u32): Likewise.
(vmaxnmv_f32): Likewise.
(vmaxnmvq_f32): Likewise.
(vmaxnmvq_f64): Likewise.
(vminv_f32): Likewise.
(vminv_s8): Likewise.
(vminv_s16): Likewise.
(vminv_s32): Likewise.
(vminv_u8): Likewise.
(vminv_u16): Likewise.
(vminv_u32): Likewise.
(vminvq_f32): Likewise.
(vminvq_f64): Likewise.
(vminvq_s8): Likewise.
(vminvq_s16): Likewise.
(vminvq_s32): Likewise.
(vminvq_u8): Likewise.
(vminvq_u16): Likewise.
(vminvq_u32): Likewise.
(vminnmv_f32): Likewise.
(vminnmvq_f32): Likewise.
(vminnmvq_f64): Likewise.

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

10 years ago[AArch64_BE 3/4] Big-Endian lane numbering fix
ktkachov [Thu, 23 Jan 2014 14:56:50 +0000 (14:56 +0000)]
[AArch64_BE 3/4] Big-Endian lane numbering fix

2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>

* config/aarch64/aarch64-simd.md
(aarch64_dup_lane<mode>): Correct lane number on big-endian.
(aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
(*aarch64_mul3_elt<mode>): Likewise.
(*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
(*aarch64_mul3_elt_to_64v2df): Likewise.
(*aarch64_mla_elt<mode>): Likewise.
(*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
(*aarch64_mls_elt<mode>): Likewise.
(*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
(*aarch64_fma4_elt<mode>): Likewise.
(*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
(*aarch64_fma4_elt_to_64v2df): Likewise.
(*aarch64_fnma4_elt<mode>): Likewise.
(*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
(*aarch64_fnma4_elt_to_64v2df): Likewise.
(aarch64_sq<r>dmulh_lane<mode>): Likewise.
(aarch64_sq<r>dmulh_laneq<mode>): Likewise.
(aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
(aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
(aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
(aarch64_sqdmull_lane<mode>_internal): Likewise.
(aarch64_sqdmull2_lane<mode>_internal): Likewise.

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

10 years ago[AArch64_BE 2/4] Big-Endian lane numbering fix
ktkachov [Thu, 23 Jan 2014 14:48:40 +0000 (14:48 +0000)]
[AArch64_BE 2/4] Big-Endian lane numbering fix

2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>

* config/aarch64/aarch64-simd.md
(aarch64_be_checked_get_lane<mode>): New define_expand.
* config/aarch64/aarch64-simd-builtins.def
(BUILTIN_VALL (GETLANE, be_checked_get_lane, 0):
New builtin definition.
* config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
Use new safe be builtin.

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

10 years ago[AArch64_BE 1/4] Big-Endian lane numbering fix
ktkachov [Thu, 23 Jan 2014 14:46:31 +0000 (14:46 +0000)]
[AArch64_BE 1/4] Big-Endian lane numbering fix

[gcc/]
2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>

* config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
New define_insn.
(aarch64_be_st1<mode>): Likewise.
(aarch_ld1<VALL:mode>): Define_expand modified.
(aarch_st1<VALL:mode>): Likewise.
* config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
(UNSPEC_ST1): Likewise.

[gcc/testsuite/]
2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>

* gcc.target/aarch64/vld1-vst1_1.c: New test_case.

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

10 years ago2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
eager [Thu, 23 Jan 2014 14:37:44 +0000 (14:37 +0000)]
2014-01-23  David Holsgrove <david.holsgrove@xilinx.com>

* config/microblaze/microblaze.md: Add trap insn and attribute

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

10 years ago2014-01-23 Yury Gribov <y.gribov@samsung.com>
ygribov [Thu, 23 Jan 2014 14:32:05 +0000 (14:32 +0000)]
2014-01-23  Yury Gribov  <y.gribov@samsung.com>
    Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/57316
* configure.ac: Check for missing syscalls.
* Makefile.am: Likewise.
* configure: Regenerate.
* Makefile.in: Regenerate.

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

10 years ago PR middle-end/58809
jakub [Thu, 23 Jan 2014 13:32:19 +0000 (13:32 +0000)]
PR middle-end/58809
* c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.

* semantics.c (finish_omp_reduction_clause): Reject
BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.

* c-c++-common/gomp/pr58809.c: New test.

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

10 years ago2014-01-23 Dominique Dhumieres <dominiq@lps.ens.fr>
chefmax [Thu, 23 Jan 2014 12:48:25 +0000 (12:48 +0000)]
2014-01-23  Dominique Dhumieres  <dominiq@lps.ens.fr>

        PR sanitizer/59897
        * c-c++-common/asan/use-after-return-1.c: Fixed
        to pass on darwin.

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

10 years ago * doc/xml/faq.xml (a-how_to_set_paths): Expand FAQ answer.
redi [Thu, 23 Jan 2014 12:29:40 +0000 (12:29 +0000)]
* doc/xml/faq.xml (a-how_to_set_paths): Expand FAQ answer.
* doc/xml/manual/abi.xml (abi.versioning.history): Correct symver.

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

10 years agogcc/
kyukhin [Thu, 23 Jan 2014 09:25:11 +0000 (09:25 +0000)]
gcc/
* config/i386/avx512fintrin.h (_mm512_kmov): New.
* config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
(__builtin_ia32_kmov16): Ditto.
* config/i386/i386.md (UNSPEC_KMOV): New.
(kmovw): Ditto.

testsuite/gcc/
* gcc.target/i386/avx512f-kmovw-1.c: New.

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

10 years agoPR preprocessor/58580 - preprocessor goes OOM with warning for zero literals
dodji [Thu, 23 Jan 2014 09:13:08 +0000 (09:13 +0000)]
PR preprocessor/58580 - preprocessor goes OOM with warning for zero literals

In this problem report, the compiler is fed a (bogus) translation unit
in which some literals contain bytes whose value is zero.  The
preprocessor detects that and proceeds to emit diagnostics for that
king of bogus literals.  But then when the diagnostics machinery
re-reads the input file again to display the bogus literals with a
caret, it attempts to calculate the length of each of the lines it got
using fgets.  The line length calculation is done using strlen.  But
that doesn't work well when the content of the line can have several
zero bytes.  The result is that the read_line never sees the end of
the line because strlen repeatedly reports that the line ends before
the end-of-line character; so read_line thinks its buffer for reading
the line is too small; it thus increases the buffer, leading to a huge
memory consumption and disaster.

Here is what this patch does.

location_get_source_line is modified to return the length of a source
line that can now contain bytes with zero value.
diagnostic_show_locus() is then modified to consider that a line can
have characters of value zero, and so just shows a white space when
instructed to display one of these characters.

Additionally location_get_source_line is modified to avoid re-reading
each and every line from the beginning of the file until it reaches
the line number N that it is instructed to get; this was leading to
annoying quadratic behaviour when reading adjacent lines near the end
of (big) files.  So a cache is now associated to the file opened in
text mode.  When the content of the file is read, that content is
stashed in the file cache.  That file cache is searched for line
delimiters.  A number of line positions are saved in the cache and a
number of file caches are kept in memory.  That way when
location_get_source_line is asked to read line N + 1, it just has to
start reading from line N that it has already read.

libcpp/ChangeLog:

* include/line-map.h (linemap_get_file_highest_location): Declare
new function.
* line-map.c (linemap_get_file_highest_location): Define it.

gcc/ChangeLog:

* input.h (location_get_source_line): Take an additional line_size
parameter.
(void diagnostics_file_cache_fini): Declare new function.
* input.c (struct fcache): New type.
(fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
New static constants.
(diagnostic_file_cache_init, total_lines_num)
(lookup_file_in_cache_tab, evicted_cache_tab_entry)
(add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
(needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
(get_next_line, read_next_line, goto_next_line, read_line_num):
New static function definitions.
(diagnostic_file_cache_fini): New function.
(location_get_source_line): Take an additional output line_len
parameter.  Re-write using lookup_or_add_file_to_cache_tab and
read_line_num.
* diagnostic.c (diagnostic_finish): Call
diagnostic_file_cache_fini.
(adjust_line): Take an additional input parameter for the length
of the line, rather than calculating it with strlen.
(diagnostic_show_locus): Adjust the use of
location_get_source_line and adjust_line with respect to their new
signature.  While displaying a line now, do not stop at the first
null byte.  Rather, display the zero byte as a space and keep
going until we reach the size of the line.
* Makefile.in: Add vec.o to OBJS-libcommon

gcc/testsuite/ChangeLog:

* c-c++-common/cpp/warning-zero-in-literals-1.c: New test file.

Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206957 138bc75d-0d04-0410-961f-82ee72b054a4

10 years agogcc/
kyukhin [Thu, 23 Jan 2014 09:11:09 +0000 (09:11 +0000)]
gcc/
        * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
        (_mm512_storeu_si512): Ditto.

testsuite/gcc/
        * gcc.target/i386/avx512f-vmovdqu32-1.c: Fix intrinsic name.
        * gcc.target/i386/avx512f-vmovdqu32-2.c: Ditto.
        * gcc.target/i386/avx512f-vpcmpd-2.c: Ditto.
        * gcc.target/i386/avx512f-vpcmpq-2.c: Ditto.
        * gcc.target/i386/avx512f-vpcmpud-2.c: Ditto.
        * gcc.target/i386/avx512f-vpcmpuq-2.c: Ditto.

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

10 years agogcc/
rsandifo [Thu, 23 Jan 2014 08:24:38 +0000 (08:24 +0000)]
gcc/
PR target/52125
* rtl.h (get_referenced_operands): Declare.
* recog.c (get_referenced_operands): New function.
* config/mips/mips.c (mips_reorg_process_insns): Check which asm
operands have been referenced when recording LO_SUM references.

gcc/testsuite/
PR target/52125
* gcc.dg/pr48774.c: Remove skip for mips_rel.
* gcc.target/mips/pr52125.c: New test.

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

10 years ago2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
eager [Thu, 23 Jan 2014 01:29:15 +0000 (01:29 +0000)]
2014-01-22  David Holsgrove <david.holsgrove@xilinx.com>

* config/microblaze/microblaze.md: Correct bswaphi2 insn.

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

10 years agoDaily bump.
gccadmin [Thu, 23 Jan 2014 00:16:31 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
hubicka [Thu, 23 Jan 2014 00:12:56 +0000 (00:12 +0000)]
* config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
Enable for generic and recent AMD targets.

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

10 years ago PR libstdc++/58764 (again)
redi [Wed, 22 Jan 2014 23:50:58 +0000 (23:50 +0000)]
PR libstdc++/58764 (again)
* include/bits/stl_list.h (list): Make default constructor's exception
specification conditional.
* include/bits/stl_vector.h (vector): Likewise.
* testsuite/util/testsuite_allocator.h (SimpleAllocator): Add noexcept
to default constructor.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.

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

10 years ago PR c/59891
mpolacek [Wed, 22 Jan 2014 22:15:12 +0000 (22:15 +0000)]
PR c/59891
c/
* c-typeck.c (build_conditional_expr): Call c_fully_fold instead
of remove_c_maybe_const_expr on op1 and op2.
testsuite/
* gcc.dg/torture/pr59891.c: New test.

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

10 years ago * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
hubicka [Wed, 22 Jan 2014 22:05:23 +0000 (22:05 +0000)]
* combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
ARG_SIZE note when adjustment was eliminated.

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

10 years ago PR tree-optimization/59597
law [Wed, 22 Jan 2014 21:27:38 +0000 (21:27 +0000)]
PR tree-optimization/59597
* tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
in file.  Accept new argument REGISTERING and use it to modify
dump output appropriately.
(register_jump_thread): Corresponding changes.
(mark_threaded_blocks): Reinstate code to cancel unprofitable
thread paths involving joiner blocks.  Add code to dump cancelled
jump threading paths.

PR tree-optimization/59597
* gcc.dg/tree-ssa/pr59597.c: New test.

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

10 years ago PR libstdc++/58764
redi [Wed, 22 Jan 2014 19:46:44 +0000 (19:46 +0000)]
PR libstdc++/58764
* include/bits/stl_deque.h (deque::deque(const allocator_type&):
Split into separate default constructor and constructor taking
allocator.
* include/bits/stl_list.h (list::list(const allocator_type&): Likewise.
* include/bits/stl_vector.h (vector::vector(const allocator_type&):
Likewise.
* include/debug/deque (deque::deque(const allocator_type&)): Likewise.
* include/debug/list (list::list(const _Allocator&)): Likewise.
* include/debug/map.h (map::map(const _Compare&, const _Allocator&)):
Likewise.
* include/debug/multimap.h
(multimap::multimap(const _Compare&, const _Allocator&)): Likewise.
* include/debug/set.h (set::set(const _Compare&, const _Allocator&)):
Likewise.
* include/debug/multiset.h
(multiset::multiset(const _Compare&, const _Allocator&)): Likewise.
* include/debug/vector (vector::vector(const allocator_type&)):
Likewise.
* include/profile/deque (deque::deque(const _Allocator&)): Likewise.
* include/profile/list (list::list(const _Allocator&)): Likewise.
* include/profile/map.h
(map::map(const _Compare&, const _Allocator&)): Likewise.
* include/profile/multimap.h
(multimap::multimap(const _Compare&, const _Allocator&)): Likewise.
* include/profile/set.h
(set::set(const _Compare&, const _Allocator&)): Likewise.
* include/profile/multiset.h
(multiset::multiset(const _Compare&, const _Allocator&)): Likewise.
* include/profile/vector (vector::vector(const _Allocator&)):
Likewise.
* testsuite/23_containers/deque/58764.cc: New.
* testsuite/23_containers/list/58764.cc: New.
* testsuite/23_containers/map/58764.cc: New.
* testsuite/23_containers/multimap/58764.cc: New.
* testsuite/23_containers/set/58764.cc: New.
* testsuite/23_containers/multiset/58764.cc: New.
* testsuite/23_containers/vector/58764.cc: New.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
Adjust dg-error line number.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc:
Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
Likewise.

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

10 years ago2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Wed, 22 Jan 2014 19:38:47 +0000 (19:38 +0000)]
2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59477
* lra-constraints.c (inherit_in_ebb): Process call for living hard
regs.  Update reloads_num and potential_reload_hard_regs for all
insns.

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

PR rtl-optimization/59477
* g++.dg/pr59477.C: New.

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

10 years agolibgo/configure: Test for gold with gccgo -Wl,--help, not ld --help.
ian [Wed, 22 Jan 2014 19:10:47 +0000 (19:10 +0000)]
libgo/configure: Test for gold with gccgo -Wl,--help, not ld --help.

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

10 years agogcc/testsuite/
rsandifo [Wed, 22 Jan 2014 18:45:05 +0000 (18:45 +0000)]
gcc/testsuite/
* gcc.dg/pr44194-1.c: Match "insn " and "insn:", but not "insn/f".

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

10 years ago/cp
paolo [Wed, 22 Jan 2014 18:08:01 +0000 (18:08 +0000)]
/cp
2014-01-22  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR c++/59482
* parser.c (cp_parser_class_head): Push the class before parsing
the base-clause, pop after it.

/testsuite
2014-01-22  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR c++/59482
* g++.dg/pr59482.C: New.

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

10 years ago * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
tromey [Wed, 22 Jan 2014 17:10:10 +0000 (17:10 +0000)]
* config/i386/i386-interix.h (i386_pe_unique_section): Don't use
PARAMS.
* config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.

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

10 years ago2014-01-22 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 22 Jan 2014 17:04:57 +0000 (17:04 +0000)]
2014-01-22  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
body generated for an expression function within a protected body
needs a set of renaming declarations if the expression function
comes from source.

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

* lib-xref.adb (Get_Type_Reference): In semantics-only mode,
list interface progenitor of a tagged concurrent type, for better
source navigation.

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

* lib.adb (In_Extended_Main_Code_Unit): Return False for
Standard_Location.
(In_Extended_Main_Source_Unit): Return False for Standard_Location.
* lib.ads (In_Extended_Main_Code_Unit): Add documentation on
treatment of Slocs No_Location and Standard_Location.
* restrict.adb (Check_Restriction_No_Dependence): Explicitly
check for entity with Standard_Location Sloc, rather than relying
on Lib routines to do that.
* sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
that a call cannot occur before a later occuring body within
the same unit.

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

10 years ago2014-01-22 Thomas Quinot <quinot@adacore.com>
charlet [Wed, 22 Jan 2014 16:53:24 +0000 (16:53 +0000)]
2014-01-22  Thomas Quinot  <quinot@adacore.com>

* rtsfind.adb: Update comment.

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

* sem_aux.ads, sem_aux.adb (Is_Body): New routine.
* sem_ch3.adb (Analyze_Declarations): Add local variable
Body_Seen. Generate the spec of a late controlled
primitive body that is about to freeze its related type.
(Handle_Late_Controlled_Primitive): New routine.

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

* a-stream.adb: Minor reformatting.

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

* sem_ch8.adb (From_Actual_Package): Introduce a recursive
sub-procedure Declared_In_Actual to handle properly the visibility
of actuals in actual packages, that are themselves actuals to a
actual package of the current instance. This mimics properly the
visibility of formals of formal packages declared with a box,
within the corresponding generic unit.

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

* checks.adb: Do not assume that a volatile variable is valid.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* g-catiio.ads (Image, Value): Clarify that these functions
operate in the local time zone.  Minor documentation update.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* csets.adb, csets.ads, opt.ads: Minor documentation fixes.

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

10 years ago2014-01-22 Robert Dewar <dewar@adacore.com>
charlet [Wed, 22 Jan 2014 16:47:20 +0000 (16:47 +0000)]
2014-01-22  Robert Dewar  <dewar@adacore.com>

* sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
Moved to sem_aux.adb.

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

* vms_data.ads: Minor reformatting.

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

* debug.adb: Document messages affected by -gnatd.E including
the new ones that relate to late definition of equality.
* sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
debug flag -gnatd.E is set, then generate warnings rather than
errors.
(Check_Untagged_Equality): In earlier versions of Ada,
generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.

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

* sem_prag.adb (Usage_Error): Output additional messages for
unconstrained OUT parameters lacking an input dependency.

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

* sem_ch4.adb: Minor reformatting.

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

* restrict.ads: Minor reformatting.
* sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
forbids a call from within a subprogram to the same subprogram.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
stream attributes for Stream_Element_Array.
* a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
* rtsfind.adb (Check_CRT): Do not reject a reference to an entity
defined in the current scope.

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

10 years ago2014-01-22 Robert Dewar <dewar@adacore.com>
charlet [Wed, 22 Jan 2014 16:42:55 +0000 (16:42 +0000)]
2014-01-22  Robert Dewar  <dewar@adacore.com>

* debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): For a constant
declaration initialized with a function call, whose type
has variable size, need to remove side effects so that the
initialization expression becomes a dereference of a temporary
reference to the function result.

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

10 years ago2014-01-22 Yannick Moy <moy@adacore.com>
charlet [Wed, 22 Jan 2014 16:40:30 +0000 (16:40 +0000)]
2014-01-22  Yannick Moy  <moy@adacore.com>

* errout.adb (Initialize): Remove trick to add dummy entry
in Warnings table.
* erroutc.adb (Set_Warnings_Mode_Off,
Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
command line switch.
* opt.ads (Warning_Mode): Document behavior
wrt pragma Warnings, in normal mode and in GNATprove_Mode.

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

10 years ago2014-01-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Wed, 22 Jan 2014 16:10:07 +0000 (16:10 +0000)]
2014-01-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/vmx/insert-vsx-be-order.c: New.
* gcc.dg/vmx/extract-vsx.c: New.
* gcc.dg/vmx/extract-vsx-be-order.c: New.
* gcc.dg/vmx/insert-vsx.c: New.

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

10 years ago2014-01-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Wed, 22 Jan 2014 16:08:55 +0000 (16:08 +0000)]
2014-01-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.dg/vmx/insert-vsx-be-order.c: New.
* gcc.dg/vmx/extract-vsx.c: New.
* gcc.dg/vmx/extract-vsx-be-order.c: New.
* gcc.dg/vmx/insert-vsx.c: New.

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

10 years ago * include/bits/stl_deque.h (_Deque_impl): Move comment.
redi [Wed, 22 Jan 2014 14:34:39 +0000 (14:34 +0000)]
* include/bits/stl_deque.h (_Deque_impl): Move comment.

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

10 years ago2014-01-22 Robert Dewar <dewar@adacore.com>
charlet [Wed, 22 Jan 2014 14:24:03 +0000 (14:24 +0000)]
2014-01-22  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.

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

* sem_ch13.adb (Check_Pool_Size_Clash): New procedure
(Analyze_Attribute_Definition_Clause, case Storage_Pool): call
Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
case Storage_Size): call Check_Pool_Size_Clash.

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

10 years ago2014-01-22 Robert Dewar <dewar@adacore.com>
charlet [Wed, 22 Jan 2014 14:06:41 +0000 (14:06 +0000)]
2014-01-22  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
sem_eval.ads: Minor reformatting.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* sem_eval.adb (Compile_Time_Known_Bounds): Return False for
Any_Composite to prevent cascaded errors.

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

* errout.adb (Initialize): Do not insert special entry in Warnings
table in GNATprove_Mode.
* erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
GNATprove_Mode.
* gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
warnings anymore.

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

10 years ago2014-01-22 Robert Dewar <dewar@adacore.com>
charlet [Wed, 22 Jan 2014 14:02:27 +0000 (14:02 +0000)]
2014-01-22  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
initializes case.

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

* snames.ads-tmpl: Update header.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* exp_util.adb (Insert_Actions): When inserting actions on a
short circuit operator that has already been analyzed, do not park
actions in node; instead introduce an N_Expression_With_Actions
and insert actions immediately.
Add guard for unexpected case of climbing up through statement
in Actions list of an N_Expression_With_Actions.
* sem_elab.adb (Insert_Elab_Check): Remove complex
specialized circuitry for the case where the context is already
analyzed, as it is not needed and introduces irregularities in
finalization. Instead rely on the above change to Insert_Actions
to ensure that late insertion on short circuit operators works
as expected.

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

* sem_ch4.adb (Operator_Check): Improve error message when an
operand of concatenation is an access type.

2014-01-22  Thomas Quinot  <quinot@adacore.com>

* sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
cascaded error.

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

* sem_ch8.adb (Find_Selected_Component): Handle properly the case
of an expanded name in a proper body, whose prefix is a package
in the context of the proper body, when there is a homonym of
the package declared in the parent unit.

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

10 years ago2014-01-22 Robert Dewar <dewar@adacore.com>
charlet [Wed, 22 Jan 2014 11:18:34 +0000 (11:18 +0000)]
2014-01-22  Robert Dewar  <dewar@adacore.com>

* sem_warn.adb (Check_Use_Clause): Don't give no entities used
msg if errors found.
(Check_One_Unit): Same change.

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

* ug_words: Add missing/wrong entries for VMS warning switches.
* sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.

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

10 years ago2014-01-22 Jerome Guitton <guitton@adacore.com>
charlet [Wed, 22 Jan 2014 11:17:01 +0000 (11:17 +0000)]
2014-01-22  Jerome Guitton  <guitton@adacore.com>

* mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
arm.

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

* gnat_rm.texi, gnat_ugn.texi: Document passive task optimization

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

10 years ago * gcc-interface/Makefile.in: Minor fixes.
ebotcazou [Wed, 22 Jan 2014 09:15:03 +0000 (09:15 +0000)]
* gcc-interface/Makefile.in: Minor fixes.

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

10 years agoDaily bump.
gccadmin [Wed, 22 Jan 2014 00:17:09 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago * MAINTAINERS: Update my email address.
danglin [Tue, 21 Jan 2014 23:33:07 +0000 (23:33 +0000)]
* MAINTAINERS: Update my email address.

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

10 years ago2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 21 Jan 2014 21:26:33 +0000 (21:26 +0000)]
2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59896
* lra-constraints.c (process_alt_operands): Check unused note for
matched operands of insn with no output reloads.

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

PR rtl-optimization/59896
* gcc.target/arm/pr59896.c: New.

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

10 years agogcc/
rsandifo [Tue, 21 Jan 2014 20:49:17 +0000 (20:49 +0000)]
gcc/
* config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
(mips_move_from_gpr_cost): Likewise.

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

10 years ago2014-01-21 Tim Shen <timshen91@gmail.com>
timshen [Tue, 21 Jan 2014 19:54:03 +0000 (19:54 +0000)]
2014-01-21  Tim Shen  <timshen91@gmail.com>

* include/bits/regex.tcc: Remove incorrect `nosubs` handling.
* include/bits/regex_scanner.tcc: Handle `nosubs` correctly.
* testsuite/28_regex/constants/syntax_option_type.cc: Add a test case.

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

10 years ago PR libstdc++/56267
redi [Tue, 21 Jan 2014 19:38:35 +0000 (19:38 +0000)]
PR libstdc++/56267
* include/bits/hashtable.h (__cache_default): Do not depend on
whether the hash function is DefaultConstructible or CopyAssignable.
(_Hashtable): Adjust static assertions.
* doc/xml/manual/containers.xml (containers.unordered.cache): Update.
* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
dg-error line number.
* testsuite/23_containers/unordered_set/
not_default_constructible_hash_neg.cc: Remove.

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

10 years agoFix typo.
sterling [Tue, 21 Jan 2014 19:30:08 +0000 (19:30 +0000)]
Fix typo.

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

10 years ago2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 21 Jan 2014 19:15:40 +0000 (19:15 +0000)]
2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/59858
* lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
ira_class_hard_regs_num.
(process_alt_operands): Increase reject for dying matched operand.

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

PR rtl-optimization/59858
* gcc.target/arm/pr59858.c: New.

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

10 years ago PR target/59003
jakub [Tue, 21 Jan 2014 19:12:06 +0000 (19:12 +0000)]
PR target/59003
* config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
smaller than size, perform several stores or loads and stores
at dst + count - size to store or copy all of size bytes, rather
than just last modesize bytes.

* gcc.dg/tree-prof/pr59003.c: New test.

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

10 years agolibgcc/
sterling [Tue, 21 Jan 2014 19:06:32 +0000 (19:06 +0000)]
libgcc/
* config.host (tmake_file): add t-slibgcc-libgcc for xtensa*-*-linux*.

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

10 years agoFix ChangeLog entry, moving it from top-level ChangeLog to
ian [Tue, 21 Jan 2014 17:04:12 +0000 (17:04 +0000)]
Fix ChangeLog entry, moving it from top-level ChangeLog to
gcc/ChangeLog.

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 16:33:09 +0000 (16:33 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
* par-ch5.adb (P_Condition): New version with expression prescanned.
* par.adb (P_Condition): New version with expression prescanned.

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

* gnat_rm.texi: Document that Allow_Integer_Address is ignored
if Address is not a private type.
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
Ignore pragma if System.Address is not a private type.

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* namet.ads (Name_Len): Initialize to 0 to avoid accessing an
uninitialized value.

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

10 years ago2014-01-21 Thomas Quinot <quinot@adacore.com>
charlet [Tue, 21 Jan 2014 16:31:21 +0000 (16:31 +0000)]
2014-01-21  Thomas Quinot  <quinot@adacore.com>

* gnat_rm.texi (Scalar_Storage_Order): Update documentation.

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

* sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
the value of Assertions_Enabled flag when compiling an instance of
an internal unit. This facilitates the use of pre/postconditions
in generic internal units, such as the new elementary function
libraries.

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

* exp_aggr.adb: Minor reformatting.
* sem_attr.adb: Minor reformatting.
* sem_res.adb: Minor comment addition.
* einfo.adb: Minor comment updates.
* freeze.adb: Minor reformatting and code reorganization.

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

* par-ch4.adb (P_If_Expression): Handle more gracefully an
elsif clause that does not have an else part.

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 16:29:08 +0000 (16:29 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.

2014-01-21  Pascal Obry  <obry@adacore.com>

* projects.texi: Minor typo fix.

2014-01-21  Thomas Quinot  <quinot@adacore.com>

* freeze.adb (Check_Component_Storage_Order): If a record type
has an explicit Scalar_Storage_Order attribute definition clause,
reject any component that itself is of a composite type and does
not have one.

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

* sem_ch10.adb (Generate_Parent_Reference): Make public so it
can be used to generate proper cross-reference information for
the parent units of proper bodies.

2014-01-21  Thomas Quinot  <quinot@adacore.com>

* gcc-interface/decl.c (gnat_to_gnu_entity): For a modular
type that represents a bit packed array type, propagate the
reverse storage order flag to the generated wrapper record.
* exp_pakd.adb (Expand_Packed_Element_Set,
Expand_Packed_Element_Reference): No byte swapping required in
the front-end for the case of a reverse storage order array,
as this is now handled uniformly in the back-end.  However we
still need to swap back an extracted element if it is itself a
nested composite with reverse storage order.

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

10 years ago2014-01-21 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Tue, 21 Jan 2014 16:24:37 +0000 (16:24 +0000)]
2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_External_Property): Add processing for "others".
(Analyze_Pragma): Update the grammar of pragma Abstract_State to
include "others".

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* gnat_ugn.texi: Minor updates.

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

10 years ago2014-01-21 Thomas Quinot <quinot@adacore.com>
charlet [Tue, 21 Jan 2014 16:22:17 +0000 (16:22 +0000)]
2014-01-21  Thomas Quinot  <quinot@adacore.com>

* exp_pakd.adb: Update comment, minor reformatting.

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

* sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
object check when SPARK_Mode is on.
* sem_ch6.adb (Process_Formals): Trigger the volatile object
check when SPARK_Mode is on.
* sem_ch12.adb (Instantiate_Object): Trigger the volatile object
check when SPARK_Mode is on.
* sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
corresponding pragma of aspect SPARK_Mode in the visible
declarations of a package declaration.
* sem_prag.adb (Analyze_Pragma): Trigger the volatile object
check when SPARK_Mode is on.
* sem_res.adb (Resolve_Actuals): Trigger the volatile object
check when SPARK_Mode is on.
(Resolve_Entity_Name): Trigger
the volatile object check when SPARK_Mode is on.

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

* a-except-2005.adb: Minor reformatting

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 16:20:24 +0000 (16:20 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
sem_ch6.adb, a-except-2005.adb: Minor reformatting.

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

* exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
object is declared, it is rewritten as a renaming of an dynamic
expression that wraps the initial value.  The renaming declaration
is first given an internal name, to prevent collisions with the
entity already declared, and then the name is modified to reflect
the original one. the modification of the name must preserve
the source location of the original, to prevent spurious errors
when compiling with style checks if the declaration involves
more than one entity.

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

10 years ago2014-01-21 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Tue, 21 Jan 2014 16:16:43 +0000 (16:16 +0000)]
2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>

* aspects.adb Add entries for Async_Readers, Async_Writers,
Effective_Reads and Effective_Writes in table Canonical_Aspect.
* aspects.ads Add entries for Async_Readers, Async_Writers,
Effective_Reads and Effective_Writes in tables Aspect_Id,
Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
* atree.adb (Ekind_In): New version with 8 parameters.
(Node34): New routine.
(Set_Node34): New routine.
* atree.ads (Ekind_In): New version with 8 parameters.
(Node34): New routine.
(Set_Node34): New routine.
* einfo.adb Contract is now Node34.
(Contract): Update the assertion and node usage.
(Get_Pragma): Include pragmas Async_Readers, Async_Writers,
Effective_Reads and Effective_Writes.
(Set_Contract): Update the assertion and node usage.
(Write_Field24_Name): Remove the output for a contract.
(Write_Field34_Name): Add output for a contract.
* einfo.ads Contract is now Node34. Update the comment on
attribute usage and related node structures.
(Get_Pragma): Update the comment on usage.
* par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
Effective_Reads and Effective_Writes do not require special
processing by the parser.
* sem_ch3.adb (Analyze_Variable_Contract): New routine.
(Analyze_Declarations): Analyze the contract of a variable at
the end of the declarative region.
(Analyze_Object_Declaration): Create a contract for a variable.
* sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
of classification pragmas.
(Process_Formals): Detect an illegal
use of a volatile object as a formal in a function.
* sem_ch12.adb (Instantiate_Object): Detect an illegal use of
a volatile object as an actual in generic instantiation.
* sem_prag.adb Add entries for Async_Readers, Async_Writers,
Effective_Reads and Effective_Writes in table Sig_Flags.
(Analyze_External_State_In_Decl_Part): New routine.
(Analyze_Global_Item): Detect an illegal use of a volatile object
as a global item of a function.
(Analyze_Pragma): Reimplement
pragma Abstract_State. Add support for pragmas Async_Readers,
Async_Writers, Effective_Reads and Effective_Writes.
(Check_External_Properties): New routine.
* sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
(Check_External_Properties): New routine.
* sem_res.adb (Resolve_Actuals): Detect an illegal use of a
volatile object as an actual in a call.
(Resolve_Entity_Name):
Add local variables Par, Prev and Usage_OK. Detect illegal
contexts of volatile objects.
* sem_util.adb (Add_Contract_Item): Add support for
pragmas associated with the contract of a variable.
(Async_Readers_Enabled): New routine.
(Async_Writers_Enabled): New routine.
(Effective_Reads_Enabled): New routine.
(Effective_Writes_Enabled): New routine.
(Has_Enabled_Property):
New routine.
(Is_Unchecked_Conversion_Instance): New routine.
(Is_Volatile_Object): Add support for entities that may denote
a volatile object.
* sem_util.ads (Add_Contract_Item): Update the
comment on usage.
(Async_Readers_Enabled): New routine.
(Async_Writers_Enabled): New routine.
(Effective_Reads_Enabled): New routine.
(Effective_Writes_Enabled): New routine.
(Is_Unchecked_Conversion_Instance): New routine.
* sinfo.ads Update the comment on the structure of N_Contract.
* snames.ads-tmpl Add predefined names for Async_Readers,
Async_Writers, Effective_Reads and Effective_Writes. Add
pragma ids for Async_Readers, Async_Writers, Effective_Reads
and Effective_Writes.

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

* exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
* sem_eval.adb (Compile_Time_Known_Value): Remove special
handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
(Test_Foldable): Add CRT_Safe parameter
* sem_eval.ads (Compile_Time_Known_Value): Remove special
handling of CRT mode.
(CRT_Safe_Compile_Time_Known_Value): New function.

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 16:13:56 +0000 (16:13 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
with pragma or aspect that applies to package spec or subprogram
spec.

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

10 years agoinclude
tromey [Tue, 21 Jan 2014 15:09:10 +0000 (15:09 +0000)]
include
* ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS)
(VPARAMS, VA_START, VA_OPEN, VA_CLOSE, VA_FIXEDARG, CONST)
(VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID, AND, DOTS)
(NOARGS): Don't define.
* libiberty.h (expandargv, writeargv): Don't use PARAMS.
libiberty
* _doprint.c (checkit): Use stdarg, not VA_* macros.
* asprintf.c (asprintf): Use stdarg, not VA_* macros.
* concat.c (concat_length, concat_copy, concat_copy2, concat)
(reconcat): Use stdarg, not VA_* macros.
* snprintf.c (snprintf): Use stdarg, not VA_* macros.
* vasprintf.c (checkit): Use stdarg, not VA_* macros.
* vsnprintf.c (checkit): Use stdarg, not VA_* macros.

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 12:02:54 +0000 (12:02 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* exp_aggr.adb: Minor reformatting.

2014-01-21  Johannes Kanig  <kanig@adacore.com>

* gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.

2014-01-21  Bob Duff  <duff@adacore.com>

* gnat_ugn.texi: Document the "checks" attribute in gnat2xml.

2014-01-21  Steve Baird  <baird@adacore.com>

* gnat_rm.texi: Improve description of SPARK_Mode pragma.

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

* prj-part.adb (Parse_Single_Project): Accept to extend a project
if it has only be imported by an project being extended. When a
project that has only been imported by a project being extended
is imported by another project that is not being extended,
reset the previous indication, so that it will be an error if
this project is extended later.
* prj-tree.adb (Create_Project): Include component From_Extended
in table Projects_HT
* prj-tree.ads (Project_Name_And_Node): New Boolean component
From_Extended

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

* atree.ads, atree.adb: Add Node33 and Set_Node33.
* einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
New field (SPARK_Pragma_Inherited): New flag
(SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
Removed.
* lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
* opt.ads (SPARK_Mode_Pragma): New global variable.
* sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
* sem_ch3.adb: Use new SPARK_Mode data structures.
* sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
* sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
* sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
(Pop_Scope): Restore SPARK_Mode_Pragma.
* sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
new data structures.

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* back_end.adb: Undo previous change, not needed. Minor reformatting.

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

10 years ago2014-01-21 Thomas Quinot <quinot@adacore.com>
charlet [Tue, 21 Jan 2014 11:58:20 +0000 (11:58 +0000)]
2014-01-21  Thomas Quinot  <quinot@adacore.com>

* exp_ch5.adb: Fix comment.
* switch-c.adb: Minor comment update.
* exp_ch3.adb: Minor reformatting.

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* back_end.adb (Scan_Compiler_Arguments): Do not store object
filename in gnatprove mode.

2014-01-21  Thomas Quinot  <quinot@adacore.com>

* sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
suppresses usage of primitive _assign for tagged types).
* exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
No_Ctrl_Actions for a tagged type that does not require
finalization, as we want to disable usage of _assign (which
may cause undesirable discriminant checks on an uninitialized,
invalid target).

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

* sem_prag.adb: Reject invariant'class on completion.

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

10 years ago * mklog: Avoid adding falsely changed functions to ChangeLog.
tudalova [Tue, 21 Jan 2014 10:07:22 +0000 (10:07 +0000)]
    * mklog: Avoid adding falsely changed functions to ChangeLog.

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

10 years ago2014-01-21 Javier Miranda <miranda@adacore.com>
charlet [Tue, 21 Jan 2014 08:01:05 +0000 (08:01 +0000)]
2014-01-21  Javier Miranda  <miranda@adacore.com>

* exp_ch3.adb (Build_Init_Procedure): For
derivations of interfaces, do not move the the initialization
of the _parent field since such assignment is not generated.

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

* sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
with the operator it renames if we are within an expression of
a pre/postcondition, because the expression will be reanalyzed
at a later point, and the analysis of the renaming may affect
the visibility of the operator when in an instance.

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

* sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
Add this flag to type conversion nodes and assignment nodes.
* treepr.adb: Deal properly with Flag 1,2,3.
* treeprs.adt: Minor comment update.

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

* sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
parameter.
* sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
parameter, completely rewrite spec.

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

* sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
instance that is inlined, it may have been rewritten as a wrapper
package. In that case the unit that must be made visible is the
related instance of the package.

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
previous change in codepeer mode.

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

10 years ago2014-01-21 Arnaud Charlet <charlet@adacore.com>
charlet [Tue, 21 Jan 2014 07:57:53 +0000 (07:57 +0000)]
2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
call to Abort_Undefer, as expected by the runtime.
* s-tasren.adb (Local_Complete_Rendezvous): Replace
Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
deferred at this point. Update comments.

2014-01-21  Thomas Quinot  <quinot@adacore.com>

* exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
remove from doc.

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 07:54:56 +0000 (07:54 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.

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

10 years ago2014-01-21 Thomas Quinot <quinot@adacore.com>
charlet [Tue, 21 Jan 2014 07:52:22 +0000 (07:52 +0000)]
2014-01-21  Thomas Quinot  <quinot@adacore.com>

* atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
this is value is used in Node_Id arithmetic operations.
(Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
instead of hard-coded unrolled code.

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

* gnat1drv.adb: Minor code cleanup, removing useless code.

2014-01-21  Arnaud Charlet  <charlet@adacore.com>

* opt.ads (SPARK_Switches_File_Name): New.
* switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
* usage.adb (Usage): Document -gnates, in gnatprove mode only.
* gnat_ugn.texi: Document -gnates.

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

* errout.adb (Special_Msg_Delete): Update comment. Remove
special case for GNATprove which should not ignore mismatch
in sizes for representation clauses.
* sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
which should not ignore pragma Pack.

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

* sem_ch4.adb: Code clean up.

2014-01-21  Steve Baird  <baird@adacore.com>

* gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.

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

10 years ago2014-01-21 Robert Dewar <dewar@adacore.com>
charlet [Tue, 21 Jan 2014 07:47:43 +0000 (07:47 +0000)]
2014-01-21  Robert Dewar  <dewar@adacore.com>

* gcc-interface/gigi.h: Get Flags array address.
* gcc-interface/trans.c: Acquire Flags array address.
* atree.adb: Add support for Flags array and Flag0,1,2,3.
* atree.ads: Add support for Flags array and Flag0,1,2,3.
* atree.h: Add support for Flags array and Flag0,1,2,3.
* back_end.adb: Pass Flags array address to gigi.

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

* sem_ch8.adb (Attribute_Renaming): Transfer original attribute
reference to generated body so that legality checks on stream
attributes are properly applied. If type is tagged and already
frozen, insert generated body at the point of the renaming
declaration.

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

* sem_ch12.adb: Code clean up.
* sem_ch8.adb: Minor reformatting

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

10 years ago PR middle-end/59860
jakub [Tue, 21 Jan 2014 07:28:10 +0000 (07:28 +0000)]
PR middle-end/59860
* gcc.dg/strlenopt-4.c: Expect the same counts on s390*-* as on all
other targets.

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

10 years ago* config/rl78/rl78.c (rl78_propogate_register_origins): Verify
dj [Tue, 21 Jan 2014 04:30:45 +0000 (04:30 +0000)]
* config/rl78/rl78.c (rl78_propogate_register_origins): Verify
that CLOBBERs are REGs before propogating their values.

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

10 years ago2014-01-20 Dominique d'Humieres <dominiq@lps.ens.fr>
jvdelisle [Tue, 21 Jan 2014 02:44:13 +0000 (02:44 +0000)]
2014-01-20  Dominique d'Humieres  <dominiq@lps.ens.fr>

* gfortran.dg/round_3.f08: Add more cases.

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

10 years ago2014-01-20 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Tue, 21 Jan 2014 02:39:53 +0000 (02:39 +0000)]
2014-01-20  Jerry DeLisle  <jvdelisle@gcc.gnu>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

* io/write_float.def (output_float): Remove inadvertent test
code from previous patch.

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

10 years agoDaily bump.
gccadmin [Tue, 21 Jan 2014 00:16:52 +0000 (00:16 +0000)]
Daily bump.

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

10 years agogcc/testsuite/
rsandifo [Mon, 20 Jan 2014 21:21:53 +0000 (21:21 +0000)]
gcc/testsuite/
* lib/target-supports.exp (force_conventional_output_for): New
procedure.
* lib/scanasm.exp (scan-assembler_required_options)
(scan-assembler-not_required_options)
(scan-assembler-times_required_options): Replace with
force_conventional_output_fors.
* lib/scanrtl.exp: Force conventional output for all rtl dump scans.
* gcc.target/mips/octeon-pipe-1.c: Remove -ffat-lto-objects.

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

10 years ago2014-01-20 François Dumont <fdumont@gcc.gnu.org>
fdumont [Mon, 20 Jan 2014 21:15:13 +0000 (21:15 +0000)]
2014-01-20  François Dumont  <fdumont@gcc.gnu.org>

* scripts/create_testsuite_files: Add testsuite/experimental in
the list of folders to search for tests.
* include/experimental/string_view
(basic_string_view<>::operator[]): Comment _GLIBCXX_DEBUG_ASSERT,
incompatible with constexpr qualifier.
(basic_string_view<>::front()): Likewise.
(basic_string_view<>::back()): Likewise.
* testsuite/experimental/string_view/element_access/wchar_t/2.cc:
Merge dg-options directives into one.
* testsuite/experimental/string_view/element_access/char/2.cc:
Likewise. Remove invalid experimental namespace scope on
string_view_type.

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

10 years agoAdd type to DEFCIFCODE to describe the inline failure
hjl [Mon, 20 Jan 2014 21:08:26 +0000 (21:08 +0000)]
Add type to DEFCIFCODE to describe the inline failure

Report inline error during early inlining if the inline failure is
CIF_FINAL_ERROR.

gcc/

PR middle-end/59789
* cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
(cgraph_inline_failed_type): New function.
* cgraph.h (DEFCIFCODE): Add type.
(cgraph_inline_failed_type_t): New enum.
(cgraph_inline_failed_type): New prototype.
* cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
OPTIMIZATION_MISMATCH.
* tree-inline.c (expand_call_inline): Emit errors during
early_inlining if cgraph_inline_failed_type returns
CIF_FINAL_ERROR.

gcc/testsuite/

PR middle-end/59789
* gcc.target/i386/pr59789.c: New testcase.

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

10 years ago PR target/59685
uros [Mon, 20 Jan 2014 20:45:35 +0000 (20:45 +0000)]
PR target/59685
* config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
mode attribute in insn output.

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

10 years ago * output.h (output_constant): Delete.
ebotcazou [Mon, 20 Jan 2014 20:13:10 +0000 (20:13 +0000)]
* output.h (output_constant): Delete.
* varasm.c (output_constant): Make private.

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

10 years agogcc/testsuite
yufeng [Mon, 20 Jan 2014 18:42:50 +0000 (18:42 +0000)]
gcc/testsuite

* g++.dg/debug/ra1.C (struct tree_base): Change the width of
the 'code' bitfield from 16 to 8.

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

10 years agoFixing ChangeLog entry for earlier commit.
mshawcroft [Mon, 20 Jan 2014 18:38:09 +0000 (18:38 +0000)]
Fixing ChangeLog entry for earlier commit.

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

10 years ago[AArch64] Disable vec_perm patterns for aarch64_be.
mshawcroft [Mon, 20 Jan 2014 18:35:36 +0000 (18:35 +0000)]
[AArch64] Disable vec_perm patterns for aarch64_be.

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

10 years ago[AArch64] vneg floating point testcase BE fixed.
mshawcroft [Mon, 20 Jan 2014 18:30:32 +0000 (18:30 +0000)]
[AArch64] vneg floating point testcase BE fixed.

2013-01-20  Alex Velenko  <Alex.Velenko@arm.com>

* gcc.target/aarch64/vneg_f.c (STORE_INST): New macro.
(RUN_TEST): Use new macro.
(INDEX64_32): Delete.
(INDEX64_64): Likewise.
(INDEX128_32): Likewise.
(INDEX128_64): Likewise.
(INDEX): Likewise.
(test_vneg_f32): Use fixed RUN_TEST.

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

10 years ago PR middle-end/59860
jakub [Mon, 20 Jan 2014 18:18:21 +0000 (18:18 +0000)]
PR middle-end/59860
* tree.h (fold_builtin_strcat): New prototype.
* builtins.c (fold_builtin_strcat): No longer static.  Add len
argument, if non-NULL, don't call c_strlen.  Optimize
directly into __builtin_memcpy instead of __builtin_strcpy.
(fold_builtin_2): Adjust fold_builtin_strcat caller.
* gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.

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

10 years ago * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
uros [Mon, 20 Jan 2014 17:59:14 +0000 (17:59 +0000)]
* config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
for SImode_address_operand operands, having only a REG argument.

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

10 years agoFix for PR other/58996.
bviyer [Mon, 20 Jan 2014 17:49:22 +0000 (17:49 +0000)]
Fix for PR other/58996.
+2014-01-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR other/58996
+       * configure.ac: Added a check for pthread affinity support.
+       * runtime/os-unix.c: Likewise.
+       * configure: Regenerate.
+

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

10 years ago[AArch64] Define BE loader name.
mshawcroft [Mon, 20 Jan 2014 17:41:54 +0000 (17:41 +0000)]
[AArch64] Define BE loader name.

2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>

    * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
    loader name using mbig-endian.
    (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.

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

10 years ago2014-01-20 Robert Dewar <dewar@adacore.com>
charlet [Mon, 20 Jan 2014 16:10:53 +0000 (16:10 +0000)]
2014-01-20  Robert Dewar  <dewar@adacore.com>

* checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* opt.adb (SPARK_Mode_Config): Handled like other config flags
* opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
New flag (Config_Switches_Type): Add SPARK_Mode field
* sem.adb: Minor code reorganization (remove unnecessary with)
* sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
* sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
from spec if needed
* sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
from spec if needed
* sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
Restore SPARK_Mode
* sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
(Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
of Get_SPARK_Mode_Id
* sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
* sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
converting warnings on inevitable exceptions to errors.
* types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
SPARK_Mode_Type

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

* sem_ch13.adb: Add semantic information to rewritten type
reference.

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

* exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
are of a type with unknown discriminants, convert both to the
underlying view of the type, so that the proper constraint check
can be applied to the right-hand side.

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

* atree.adb (Copy_Node): Fix failure to copy last component
(Exchange_Entities): Fix failure to exchange last entity

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

* sem_ch12.adb: Code clean up.

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

10 years ago2014-01-20 Robert Dewar <dewar@adacore.com>
charlet [Mon, 20 Jan 2014 16:08:09 +0000 (16:08 +0000)]
2014-01-20  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi, sem_ch4.adb: Minor reformatting.

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

10 years ago2014-01-20 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 20 Jan 2014 16:02:58 +0000 (16:02 +0000)]
2014-01-20  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Analyze_Quantified_Expression): If after
pre-analysis  the loop parameter specification has been
rewritten as a iterator specification, propagate the change to
the quantified expression, for ASIS navigtion needs.

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

* par-ch10.adb: Minor error message change: escape [ and ].

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

10 years ago2014-01-20 Robert Dewar <dewar@adacore.com>
charlet [Mon, 20 Jan 2014 16:01:22 +0000 (16:01 +0000)]
2014-01-20  Robert Dewar  <dewar@adacore.com>

* checks.adb: Make warnings on exceptions into errors in GNATprove mode.
* errout.adb: Implement [ and ] insertion characters.
* errout.ads: Document new [ and ] insertion characters.
* sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
addition of ??? comment.
* lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
* exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
Make warnings on exceptions into errors in GNATprove mode.
* sem_dim.adb: Minor reformatting throughout Quote [ and ]
in error messages.

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

* sem_ch13.adb: Code clean up.

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

10 years ago[AArch64 Documentation] Clarify meaning of -mcpu, -mtune, -march
jgreenhalgh [Mon, 20 Jan 2014 15:57:50 +0000 (15:57 +0000)]
[AArch64 Documentation] Clarify meaning of -mcpu, -mtune, -march

gcc/

* doc/invoke.texi (-march): Clarify documentation for AArch64.
(-mtune): Likewise.
(-mcpu): Likewise.

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

10 years ago2014-01-20 Robert Dewar <dewar@adacore.com>
charlet [Mon, 20 Jan 2014 15:57:15 +0000 (15:57 +0000)]
2014-01-20  Robert Dewar  <dewar@adacore.com>

* errout.ads, errout.adb: Implement >? >x? >X? sequences in error
messages.
* sem_ch6.adb (Check_Statement_Sequence): Missing return is an
error in GNATprove mode.

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

* par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
reference 'Old takes no parameters, and thus can appear as a
prefix of a slice.

2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>

* exp_aggr.adb: Fix minor typos.

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

10 years ago2014-01-20 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 20 Jan 2014 15:55:52 +0000 (15:55 +0000)]
2014-01-20  Ed Schonberg  <schonberg@adacore.com>

* sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
instance the attribute is legal, and its value is determined
statically if the type has no discriminants. This choice is
more useful than rechecking the legality rule in the instance,
is consistent with older usage, and is also consistent with all
existing tests.

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

* sem_cat.adb (Validate_Static_Object_Name): Change error into
warning in Relaxed_Semantic_Mode.

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

10 years ago2014-01-20 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 20 Jan 2014 15:54:38 +0000 (15:54 +0000)]
2014-01-20  Ed Schonberg  <schonberg@adacore.com>

* sem_attr.adb: Code and comments cleanup.

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

* debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
* errout.adb (Compilation_Errors): Remove special handling in
GNATprove mode.
* gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
removed debug flags.
* gnat_rm.texi: Initial documentation for Abstract_State, Depends,
Global, Initial_Condition, Initializes and Refined_State pragmas and
aspects.
* opt.ads (Frame_Condition_Mode, Formal_Extensions,
SPARK_Strict_Mode): Remove global flags.
* sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
always performed now, on packages declaring a null state.
(Signed_Integer_Type_Declaration): Remove ill-designed attempt
at providing pedantic mode for bounds of integer types.
* sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
"some" quantified expression now issued under control of -gnatw.t,
like the other warning on unused bound variable.
* sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
on removed flag.
(Analyze_Pragma): Remove tests for SPARK 2014
pragmas, not officially allowed by GNAT.

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

10 years ago2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 20 Jan 2014 15:51:54 +0000 (15:51 +0000)]
2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Analyze_Pragma): Ensure that
the sole argument of pragmas Abstract_State, Contract_Cases,
Depends, Global and Initializes in in aggregate form.
(Analyze_Refined_Pragma): Ensure that the sole argument of
pragmas Refined_Depends, Refined_Global and Refined_State is in
aggregate form.
(Ensure_Aggregate_Form): New routine.

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

* sem_attr.adb (Analyze_Attribute): case
Attribute_Constrained => treat all prefixes as legal for Declib
compatibility.

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

10 years ago2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 20 Jan 2014 15:50:09 +0000 (15:50 +0000)]
2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_prag.adb (Check_Mode): Reimplement the routine.
(Find_Mode): New routine.

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

* sem_ch4.adb (Operator_Check): Handle additional
Allow_Integer_Address cases.

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

10 years ago PR libstdc++/56267
redi [Mon, 20 Jan 2014 15:49:39 +0000 (15:49 +0000)]
PR libstdc++/56267
* include/bits/hashtable_policy.h (_Hash_code_base<... false>): Grant
friendship to _Local_iterator_base<..., false>.
(_Local_iterator_base): Give protected access to all existing members.
(_Local_iterator_base::_M_curr()): New public accessor.
(_Local_iterator_base::_M_get_bucket()): New public accessor.
(_Local_iterator_base<..., false>::_M_init()): New function to manage
the lifetime of the _Hash_code_base explicitly.
(_Local_iterator_base<..., false>::_M_destroy()): Likewise.
(_Local_iterator_base<..., false>): Define copy constructor and copy
assignment operator that use new functions to manage _Hash_code_base.
(operator==(const _Local_iterator_base&, const _Local_iterator_base&),
operator==(const _Local_iterator_base&, const _Local_iterator_base&)):
Use public API for _Local_iterator_base.
* include/debug/safe_local_iterator.h (_Safe_local_iterator): Likewise.
* include/debug/unordered_map (__debug::unordered_map::erase(),
__debug::unordered_multimap::erase()): Likewise.
* include/debug/unordered_set (__debug::unordered_set::erase(),
__debug::unordered_multiset::erase()): Likewise.
* testsuite/23_containers/unordered_set/56267-2.cc: New test.

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

10 years ago2014-01-20 Robert Dewar <dewar@adacore.com>
charlet [Mon, 20 Jan 2014 15:49:09 +0000 (15:49 +0000)]
2014-01-20  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi (Allow_Integer_Address): Remove note about not
allowed if address is non-private, no longer true.
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
Remove check for address being private, causes difficulty when
pragma used in gnat.adc file and is not needed, since we guard
this in Address_Integer_Convert_OK.
* exp_ch7.adb: Minor reformatting.
* sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.

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

* checks.adb (Apply_Range_Check): Remove gnatprove special
casing of exponentiation.
* sem_res.adb (Resolve_Op_Expon): Apply range check to right
operand for integer case to check range against Natural.

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

10 years ago2014-01-20 Robert Dewar <dewar@adacore.com>
charlet [Mon, 20 Jan 2014 15:47:03 +0000 (15:47 +0000)]
2014-01-20  Robert Dewar  <dewar@adacore.com>

* s-tataat.adb: Minor reformatting.

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

* einfo.adb (Is_Descendent_Of_Address): Now applies to all
entities, and also fix documentation to remove mention of visible
integer type, since this is not what the implementation does.
* einfo.ads (Is_Descendent_Of_Address): Now applies to all
entities, and also fix documentation to remove mention of visible
integer type, since this is not what the implementation does.
* gnat_rm.texi: Minor clarification of Allow_Integer_Address
function.
* sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
case for parameter type check.
* sem_res.adb (Resolve): Use new function
Address_Integer_Convert_OK.
* sem_type.adb: Minor code reorganization (use Ekind_In) Minor
reformatting throughout.
* sem_util.adb (Address_Integer_Convert_OK): New function.
* sem_util.ads: Minor reformatting (put specs in alpha order)
(Address_Integer_Convert_OK): New function.

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

* exp_ch7.adb (Wrap_Transient_Expression):
Insertion extra conditional expression only if
Opt.Suppress_Control_Flow_Optimizations is set.

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

10 years ago2014-01-20 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 20 Jan 2014 15:45:51 +0000 (15:45 +0000)]
2014-01-20  Arnaud Charlet  <charlet@adacore.com>

* s-tataat.adb (Initialize_Attributes): Abort might already be
deferred in Create_Task.

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

* checks.adb (Apply_Scalar_Range_Check): Flag
the exponent as requiring a range check when the expression is
an exponentiation.

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