platform/upstream/linaro-gcc.git
11 years ago2013-07-15 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 15 Jul 2013 08:25:48 +0000 (08:25 +0000)]
2013-07-15  Tobias Burnus  <burnus@net-b.de>

        * trans-array.h (gfc_deallocate_alloc_comp_no_caf,
        gfc_reassign_alloc_comp_caf): New prototype.
        * trans-array.c (enum): Add DEALLOCATE_ALLOC_COMP_NO_CAF
        and COPY_ALLOC_COMP_CAF.
        (structure_alloc_comps): Handle it.
        (gfc_reassign_alloc_comp_caf,
        gfc_deallocate_alloc_comp_no_caf): New function.
        (gfc_alloc_allocatable_for_assignment): Call it.
        * trans-expr.c (gfc_trans_scalar_assign,
        gfc_trans_arrayfunc_assign, gfc_trans_assignment_1): Ditto.
        * parse.c (parse_derived): Correctly set coarray_comp.
        * resolve.c (resolve_symbol): Improve error wording.

2013-07-15  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_lib_realloc_1.f90: New.
        * gfortran.dg/coarray/lib_realloc_1.f90: New.
        * gfortran.dg/coarray_6.f90: Add dg-error.

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

11 years ago2013-07-15 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 15 Jul 2013 08:17:24 +0000 (08:17 +0000)]
2013-07-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/37336
        * trans.c (gfc_add_comp_finalizer_call): New function.
        * trans.h (gfc_add_comp_finalizer_call): New prototype.
        * trans-array.c (structure_alloc_comps): Call it.

2013-07-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/37336
        * gfortran.dg/finalize_18.f90: New.

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

11 years agoDaily bump.
gccadmin [Mon, 15 Jul 2013 00:16:48 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago2013-07-14 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 14 Jul 2013 19:16:56 +0000 (19:16 +0000)]
2013-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Tobias Burnus  <burnus@gcc.gnu.org>

PR fortran/52669
* trans-decl.c (gfc_finish_var_decl):  Move setting of
PRIVATE for a module variable if the module has a private
default or -fmodule-private is given to...
(gfc_create_module_variable): here. Optionally
warn about private module variable which is not used.

2013-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/52669
* fortran.dg/module_variable_1.f90:  New test.
* fortran.dg/module_variable_2.f90:  New test.

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

11 years agoExtract lambda functions from semantics.c.
jason [Sun, 14 Jul 2013 17:29:55 +0000 (17:29 +0000)]
Extract lambda functions from semantics.c.

* gcc/cp/semantics.c (build_lambda_expr),
(build_lambda_object), (begin_lambda_type), (lambda_return_type),
(lambda_function), (lambda_capture_field_type), (is_capture_proxy),
(is_normal_capture_proxy), (insert_capture_proxy),
(insert_pending_capture_proxies), (lambda_proxy_type),
(build_capture_proxy), (vla_capture_type),
(register_capture_members), (add_default_capture),
(lambda_expr_this_capture), (maybe_resolve_dummy),
(nonlambda_method_basetype), (maybe_add_lambda_conv_op) and
(is_lambda_ignored_entity): Moved definitions into ...
* gcc/cp/lambda.c: ... this new file.

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

11 years ago2013-07-14 Marc Glisse <marc.glisse@inria.fr>
glisse [Sun, 14 Jul 2013 08:36:47 +0000 (08:36 +0000)]
2013-07-14  Marc Glisse  <marc.glisse@inria.fr>

gcc/cp/
* call.c (build_conditional_expr_1): Handle the case with 1 vector
and 2 scalars. Call save_expr before building a vector.
* typeck.c (cp_build_binary_op): Check complain before complaining.

gcc/testsuite/
* g++.dg/ext/vector19.C: Adapt.
* g++.dg/ext/vector23.C: New testcase.

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

11 years agographite: Do not depend on 2D + 1 form in parallelism check
grosser [Sun, 14 Jul 2013 06:45:08 +0000 (06:45 +0000)]
graphite: Do not depend on 2D + 1 form in parallelism check

    PR tree-optimization/54094
    * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
      scheduling dimension for the parallelism check from the polyhedral
      information in the AST.
    * graphite-dependences.c (carries_deps): Do not assume the schedule is
      in 2D + 1 form.

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

11 years agoDaily bump.
gccadmin [Sun, 14 Jul 2013 00:16:24 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago PR c++/55203
jason [Sat, 13 Jul 2013 23:16:18 +0000 (23:16 +0000)]
PR c++/55203
c-family/
* c-common.c (c_common_attribute_table): Add warn_unused.
(handle_warn_unused_attribute): New.
cp/
* init.c (build_aggr_init): Check for warn_unused attribute.
* decl.c (poplevel): Likewise.

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

11 years ago * print-tree.c (debug_vec_tree): Use debug_raw.
jason [Sat, 13 Jul 2013 23:10:29 +0000 (23:10 +0000)]
* print-tree.c (debug_vec_tree): Use debug_raw.
(debug_raw (vec<tree, va_gc> &)): New.
(debug_raw (vec<tree, va_gc> *)): New.
* tree.h: Declare them.

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

11 years ago PR c++/57402
jason [Sat, 13 Jul 2013 23:10:24 +0000 (23:10 +0000)]
PR c++/57402
* init.c (build_vec_init): Use {} for arrays of class type.
(build_vec_delete): Don't take the address of the array.

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

11 years ago PR c++/57793
jason [Sat, 13 Jul 2013 23:10:17 +0000 (23:10 +0000)]
PR c++/57793
c/
* c-decl.c (finish_struct): Check for too-large class.
cp/
* class.c (layout_class_type): Check for too-large class.

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

11 years ago * call.c (can_convert): Allow user-defined conversions.
jason [Sat, 13 Jul 2013 23:10:12 +0000 (23:10 +0000)]
* call.c (can_convert): Allow user-defined conversions.
(can_convert_standard): New.
* cp-tree.h: Declare it.
* cvt.c (convert_to_reference): Use it.
* pt.c (convert_nontype_argument): Likewise.
* search.c (check_final_overrider): Likewise.
Don't worry about user-defined conversions.

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

11 years ago * ifcvt.c (ifcvt_after_combine): New static variable.
amker [Sat, 13 Jul 2013 08:51:18 +0000 (08:51 +0000)]
* ifcvt.c (ifcvt_after_combine): New static variable.
(cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
for size.
(if_convert): New parameter after_combine.  Set ifcvt_after_combine.
(rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
rest_of_handle_if_after_reload): Pass new argument for if_convert.

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

11 years agoDaily bump.
gccadmin [Sat, 13 Jul 2013 00:16:49 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago * config/mips/mips.c (mips_expand_call): Remove empty statement.
macro [Fri, 12 Jul 2013 21:06:42 +0000 (21:06 +0000)]
* config/mips/mips.c (mips_expand_call): Remove empty statement.

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

11 years ago PR middle-end/55771
matz [Fri, 12 Jul 2013 15:41:49 +0000 (15:41 +0000)]
PR middle-end/55771
* convert.c (convert_to_real): Reject non-float inner types.

testsuite/
* c-c++-common/pr55771.c: New test.

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

11 years ago2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
belagod [Fri, 12 Jul 2013 12:50:23 +0000 (12:50 +0000)]
2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>

gcc/
* config/aarch64/aarch64-protos.h
(aarch64_simd_immediate_valid_for_move): Remove.
* config/aarch64/aarch64.c (simd_immediate_info): New member.
(aarch64_simd_valid_immediate): Recognize idioms for shifting ones
cases.
(aarch64_output_simd_mov_immediate): Print the correct shift specifier.

testsuite/

* gcc.target/aarch64/vect-movi.c: New.

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

11 years agoconfig/rl78/constraints.md (U): New constraint.
kaushikp [Fri, 12 Jul 2013 08:38:24 +0000 (08:38 +0000)]
config/rl78/constraints.md (U): New constraint.

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

11 years agoDaily bump.
gccadmin [Fri, 12 Jul 2013 00:16:24 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago2013-07-11 Steve Ellcey <sellcey@mips.com>
sje [Thu, 11 Jul 2013 22:25:44 +0000 (22:25 +0000)]
2013-07-11  Steve Ellcey  <sellcey@mips.com>

* config/mips/mips.c (mips_conditional_register_usage): Do not
use t[0-7] registers in MIPS16 mode when optimizing for size.

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

11 years agoPR 57362
tmsriram [Thu, 11 Jul 2013 22:09:55 +0000 (22:09 +0000)]
PR 57362

PR target/57362
* config/i386/i386.c (dispatch_function_versions): Fix array
indexing of function_version_info to match actual_versions.

PR target/57362
* g++.dg/ext/pr57362.C: New.

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

11 years ago * fi.po: Update.
jsm28 [Thu, 11 Jul 2013 21:47:04 +0000 (21:47 +0000)]
* fi.po: Update.

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

11 years agoThis patch adds a call to ggc_free from va_gc::release, which is
tejohnson [Thu, 11 Jul 2013 21:32:14 +0000 (21:32 +0000)]
This patch adds a call to ggc_free from va_gc::release, which is
called by vec_free. This restores the functionality of the old VEC_free
and reduces the memory footprint during compilation.

2013-07-11  Teresa Johnson  <tejohnson@google.com>

* vec.h (struct va_gc): Move release out-of-line.
(va_gc::release): Call ggc_free on released vec.

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

11 years ago * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
uweigand [Thu, 11 Jul 2013 16:36:09 +0000 (16:36 +0000)]
* config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
Require GOT register as additional operand in UNSPEC.
("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.

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

11 years agogcc/
gjl [Thu, 11 Jul 2013 08:41:13 +0000 (08:41 +0000)]
gcc/
PR target/57631
* config/avr/avr.c (avr_set_current_function): Sanity-check signal
name seen by assembler/linker rather if available.

gcc/testsuite/
PR target/57631
* gcc.target/avr/torture/pr57631.c: New test.

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

11 years agoDefine _REENTRANT with -pthread on aarch64-linux
schwab [Thu, 11 Jul 2013 07:03:26 +0000 (07:03 +0000)]
Define _REENTRANT with -pthread on aarch64-linux

* config/aarch64/aarch64-linux.h (CPP_SPEC): Define.

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

11 years ago2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 11 Jul 2013 02:12:00 +0000 (02:12 +0000)]
2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>

* lra-constraints.c (curr_insn_transform): Switch off optional
reloads.

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

11 years agoDaily bump.
gccadmin [Thu, 11 Jul 2013 00:16:16 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago * doc/tm.texi.in: Move hook documentation to ....
jsm28 [Wed, 10 Jul 2013 23:24:24 +0000 (23:24 +0000)]
* doc/tm.texi.in: Move hook documentation to ....
* target.def: ... here.

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

11 years ago2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 10 Jul 2013 23:16:38 +0000 (23:16 +0000)]
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57827
* g++.dg/cpp0x/constexpr-ice7.C: New.

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

11 years ago * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
jsm28 [Wed, 10 Jul 2013 21:36:12 +0000 (21:36 +0000)]
* doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
text on @hook line.
* doc/tm.texi: Regenerate.

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

11 years ago2013-07-10 Jack Howarth <howarth@bromo.med.uc.edu>
mrs [Wed, 10 Jul 2013 21:22:34 +0000 (21:22 +0000)]
2013-07-10  Jack Howarth  <howarth@bromo.med.uc.edu>

PR target/57792
* configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later.
* configure: Regenerated.

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

11 years ago * gcc.target/powerpc/20020118-1.c: Force 128-bit stack alignment
janis [Wed, 10 Jul 2013 21:02:17 +0000 (21:02 +0000)]
* gcc.target/powerpc/20020118-1.c: Force 128-bit stack alignment
for EABI targets.
* gcc.c-torture/execute/nest-align-1.x: New.

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

11 years ago2013-07-10 Jack Howarth <howarth@bromo.med.uc.edu>
mrs [Wed, 10 Jul 2013 20:52:45 +0000 (20:52 +0000)]
2013-07-10  Jack Howarth  <howarth@bromo.med.uc.edu>

    PR target/57792
    * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later.
    * configure: Regenerated.

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

11 years ago * Corrected missinge blank line in gcc/ChangeLog Entries
grahams [Wed, 10 Jul 2013 18:17:56 +0000 (18:17 +0000)]
* Corrected missinge blank line in gcc/ChangeLog Entries
and move one entry to c-family/ChangeLog

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

11 years ago2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 10 Jul 2013 17:45:43 +0000 (17:45 +0000)]
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57874
* g++.dg/cpp0x/sfinae48.C: New.

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

11 years ago PR preprocessor/57824
jakub [Wed, 10 Jul 2013 16:52:19 +0000 (16:52 +0000)]
PR preprocessor/57824
* lex.c (lex_raw_string): Allow reading new-lines if
in_deferred_pragma or if parsing_args and there is still
data in the current buffer.

* c-c++-common/raw-string-17.c: New test.
* c-c++-common/gomp/pr57824.c: New test.

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

11 years ago * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
jakub [Wed, 10 Jul 2013 16:49:24 +0000 (16:49 +0000)]
* c-ppoutput.c (scan_translation_unit): Call account_for_newlines
for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.

* include/cpplib.h (cpp_token_val_index): Change parameter type to
const cpp_token *.
* lex.c (cpp_token_val_index): Likewise.

* c-c++-common/raw-string-18.c: New test.
* c-c++-common/raw-string-19.c: New test.

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

11 years ago/c-family
paolo [Wed, 10 Jul 2013 16:45:25 +0000 (16:45 +0000)]
/c-family
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57869
* c.opt: Add Wconditionally-supported.

/cp
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57869
* typeck.c (build_reinterpret_cast_1): With -Wconditionally-supported
warn about casting between pointer-to-function and pointer-to-object.

/gcc
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57869
* doc/invoke.texi: Document -Wconditionally-supported.

/testsuite
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57869
* g++.dg/cpp0x/reinterpret_cast1.C: New.
* g++.dg/warn/Wconditionally-supported-1.C: Likewise.
* g++.dg/conversion/dr195.C: Update.
* g++.dg/expr/cast2.C: Likewise.

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

11 years ago PR preprocessor/57757
jakub [Wed, 10 Jul 2013 16:40:49 +0000 (16:40 +0000)]
PR preprocessor/57757
* lex.c (cpp_avoid_paste): Avoid pasting CPP_{,W,UTF8}STRING
or CPP_STRING{16,32} with CPP_NAME or SPELL_LITERAL token that
starts if a-zA-Z_.

* g++.dg/cpp/paste1.C: New test.
* g++.dg/cpp/paste2.C: New test.

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

11 years ago PR target/57844
gjl [Wed, 10 Jul 2013 12:39:18 +0000 (12:39 +0000)]
PR target/57844
* config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
of my_fp.

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

11 years ago PR target/57506
gjl [Wed, 10 Jul 2013 12:32:05 +0000 (12:32 +0000)]
PR target/57506
* config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
(atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
(atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
Remove duplicate devices.
* config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
* config/avr/t-multilib: Regenerate.
* config/avr/avr-tables.opt: Regenerate.
* doc/avr-mmcu.texi: Regenerate.

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

11 years ago PR target/56987
gjl [Wed, 10 Jul 2013 11:21:41 +0000 (11:21 +0000)]
PR target/56987
* config/avr/avr.opt (Waddr-space-convert): Fix typo.

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

11 years ago * config/mips/mips.c (mips_rtx_costs): Very slightly increase
grahams [Wed, 10 Jul 2013 09:26:13 +0000 (09:26 +0000)]
* config/mips/mips.c (mips_rtx_costs): Very slightly increase
the cost of MULT when optimizing for size.

* gcc.target/mips/mulsize-1.c: New.
* gcc.target/mips/mulsize-2.c: New.
* gcc.target/mips/mulsize-3.c: New.
* gcc.target/mips/mulsize-4.c: New.

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

11 years ago2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
jbglaw [Wed, 10 Jul 2013 08:08:07 +0000 (08:08 +0000)]
2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

gcc/
* config/cr16/cr16-protos.h: Don't include target.h.

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

11 years ago PR c++/57402
jason [Wed, 10 Jul 2013 00:37:49 +0000 (00:37 +0000)]
PR c++/57402
* init.c (build_vec_init): Don't take shortcuts when initializing
a VLA.

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

11 years agoDaily bump.
gccadmin [Wed, 10 Jul 2013 00:16:39 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
jsm28 [Tue, 9 Jul 2013 22:35:46 +0000 (22:35 +0000)]
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
adjust register size for TDmode and TFmode for VSX registers.

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

11 years ago PR c++/57471
jason [Tue, 9 Jul 2013 21:52:40 +0000 (21:52 +0000)]
PR c++/57471
* parser.c (cp_parser_sizeof_pack): Clear parser scopes.

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

11 years ago * config.host (powerpc-*-eabispe*): Add t-fdpbit to tmake_file.
janis [Tue, 9 Jul 2013 21:31:09 +0000 (21:31 +0000)]
* config.host (powerpc-*-eabispe*): Add t-fdpbit to tmake_file.

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

11 years ago PR c++/57658
jason [Tue, 9 Jul 2013 18:50:28 +0000 (18:50 +0000)]
PR c++/57658
* semantics.c (finish_id_expression): Return the id for an
unevaluated outer variable.

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

11 years ago PR c++/57526
jason [Tue, 9 Jul 2013 17:56:43 +0000 (17:56 +0000)]
PR c++/57526
* semantics.c (lambda_capture_field_type): Build a DECLTYPE_TYPE
if the variable type uses 'auto'.

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

11 years ago PR c++/57437
jason [Tue, 9 Jul 2013 17:56:32 +0000 (17:56 +0000)]
PR c++/57437
* typeck.c (check_return_expr): Lambda proxies aren't eligible
for nrv or return by move.

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

11 years ago PR c++/57532
jason [Tue, 9 Jul 2013 17:56:14 +0000 (17:56 +0000)]
PR c++/57532
* parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
a ref-qualifier in C++98 mode.

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

11 years ago PR c++/57545
jason [Tue, 9 Jul 2013 17:56:03 +0000 (17:56 +0000)]
PR c++/57545
* pt.c (convert_nontype_argument) [INTEGER_CST]: Force the
argument to have the exact type of the parameter.

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

11 years ago PR c++/57551
jason [Tue, 9 Jul 2013 17:55:43 +0000 (17:55 +0000)]
PR c++/57551
* semantics.c (cxx_eval_indirect_ref): Don't try to look through
a POINTER_PLUS_EXPR for type punning diagnostic.

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

11 years ago PR c++/57831
jason [Tue, 9 Jul 2013 17:55:24 +0000 (17:55 +0000)]
PR c++/57831
* pt.c (tsubst_copy): Handle USING_DECL.

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

11 years ago2013-07-09 Marc Glisse <marc.glisse@inria.fr>
glisse [Tue, 9 Jul 2013 15:58:36 +0000 (15:58 +0000)]
2013-07-09  Marc Glisse  <marc.glisse@inria.fr>

PR c++/53094
gcc/cp/
* semantics.c (cxx_eval_bit_field_ref): Handle VECTOR_CST.

gcc/testsuite/
* g++.dg/cpp0x/constexpr-53094-1.C: Adjust.
* g++.dg/ext/vector24.C: New testcase.

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

11 years ago2013-07-09 Marc Glisse <marc.glisse@inria.fr>
glisse [Tue, 9 Jul 2013 15:55:49 +0000 (15:55 +0000)]
2013-07-09  Marc Glisse  <marc.glisse@inria.fr>

PR c++/53000
gcc/cp/
* call.c (build_conditional_expr_1): Preserve xvalues.

gcc/testsuite/
* g++.dg/cpp0x/decltype17.C: Adjust.

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

11 years ago2013-07-09 Tim Shen <timshen91@gmail.com>
emsr [Tue, 9 Jul 2013 13:41:10 +0000 (13:41 +0000)]
2013-07-09  Tim Shen  <timshen91@gmail.com>

Implement class regex_traits.
* include/bits/regex.h: Implement lookup_classname and
lookup_collatename; modify isctype; partially implement
transform_primary.
* testsuite/28_regex/traits/char/isctype.cc: Add more test cases.
* testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
* testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
* testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
* testsuite/28_regex/traits/wchar_t/isctype.cc: New.
* testsuite/28_regex/traits/wchar_t/lookup_classname.cc: New.
* testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: New.
* testsuite/28_regex/traits/wchar_t/transform_primary.cc: New.

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

11 years ago * configure.ac: Add AC_CONFIG_AUX_DIR.
simonb [Tue, 9 Jul 2013 10:24:39 +0000 (10:24 +0000)]
* configure.ac: Add AC_CONFIG_AUX_DIR.
* configure: Regenerated.

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

11 years ago/cp
paolo [Tue, 9 Jul 2013 09:28:09 +0000 (09:28 +0000)]
/cp
2013-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51786
* parser.c (cp_parser_simple_declaration): Before calling shadow_tag
also check declares_class_or_enum.

/testsuite
2013-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51786
* g++.dg/cpp0x/pr51786.C: New.

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

11 years ago2013-07-09 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 9 Jul 2013 07:43:35 +0000 (07:43 +0000)]
2013-07-09  Tristan Gingold  <gingold@adacore.com>

* makefile.vms (OBJS): Add dwarfnames.obj

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

11 years ago PR c++/57550
jason [Tue, 9 Jul 2013 03:19:36 +0000 (03:19 +0000)]
PR c++/57550
* pt.c (fn_type_unification): Only defer during substitution.
(type_unification_real): Defer during defarg substitution,
add checks parm to pass back deferred checks.
(unify, do_auto_deduction): Adjust.
* semantics.c (reopen_deferring_access_checks): New.
* cp-tree.h: Declare it.

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

11 years agoDaily bump.
gccadmin [Tue, 9 Jul 2013 00:16:22 +0000 (00:16 +0000)]
Daily bump.

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

11 years ago * gcc.target/powerpc/tfmode_off.c: Skip for EABI targets.
janis [Mon, 8 Jul 2013 20:19:35 +0000 (20:19 +0000)]
* gcc.target/powerpc/tfmode_off.c: Skip for EABI targets.

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

11 years ago * gcc.target/powerpc/ppc-spe64-1.c: Update expected error message.
janis [Mon, 8 Jul 2013 19:34:39 +0000 (19:34 +0000)]
* gcc.target/powerpc/ppc-spe64-1.c: Update expected error message.

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

11 years ago * gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok.
janis [Mon, 8 Jul 2013 19:33:52 +0000 (19:33 +0000)]
* gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok.

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

11 years ago * gcc.target/powerpc/sd-vsx.c: Require dfp.
janis [Mon, 8 Jul 2013 19:33:10 +0000 (19:33 +0000)]
* gcc.target/powerpc/sd-vsx.c: Require dfp.
* gcc.target/powerpc/sd-pwr6.c: Likewise.

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

11 years ago2013-07-08 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 8 Jul 2013 19:05:16 +0000 (19:05 +0000)]
2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57834
        * check.c (is_c_interoperable): Add special case for
        * c_f_pointer.
        (explicit-size, gfc_check_c_f_pointer, gfc_check_c_loc): Update
        call.

2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57834
        * gfortran.dg/c_f_pointer_tests_8.f90: New.

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

11 years ago PR target/56892
ktietz [Mon, 8 Jul 2013 17:54:55 +0000 (17:54 +0000)]
PR target/56892
* config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
hook_bool_const_tree_true.

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

11 years ago2013-07-08 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 8 Jul 2013 16:13:57 +0000 (16:13 +0000)]
2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50554
        * io.c (match_inquire_element): Add missing do-var check.

2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50554
        * gfortran.dg/do_check_9.f90: New.

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

11 years ago2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 8 Jul 2013 14:20:33 +0000 (14:20 +0000)]
2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
* config/s390/s390.h: Remove F*_REGNUM macro definitions.
* config/s390/s390.md: Define FPR*_REGNUM constants.
Fix FPR2_REGNUM constant (18 -> 17).
("*trunc<BFP:mode><DFP_ALL:mode>2")
("*trunc<DFP_ALL:mode><BFP:mode>2")
("trunc<BFP:mode><DFP_ALL:mode>2")
("trunc<DFP_ALL:mode><BFP:mode>2")
("*extend<BFP:mode><DFP_ALL:mode>2")
("*extend<DFP_ALL:mode><BFP:mode>2")
("extend<BFP:mode><DFP_ALL:mode>2")
("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
FPR4_REGNUM.

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

11 years ago2013-07-08 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 8 Jul 2013 13:48:19 +0000 (13:48 +0000)]
2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57785
        * simplify.c (compute_dot_product): Complex conjugate for
        dot_product.
        (gfc_simplify_dot_product, gfc_simplify_matmul): Update call.

2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57785
        * gfortran.dg/dot_product_2.f90: New.

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

11 years ago2013-07-08 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 8 Jul 2013 12:15:11 +0000 (12:15 +0000)]
2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57469
        * trans-decl.c (generate_local_decl): Don't warn that
        a dummy is unused, when it is in a namelist.

2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57469
        * gfortran.dg/warn_unused_dummy_argument_4.f90: New.

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

11 years ago2013-07-08 Manfred Schwarb <manfred99@gmx.ch>
burnus [Mon, 8 Jul 2013 12:09:13 +0000 (12:09 +0000)]
2013-07-08  Manfred Schwarb  <manfred99@gmx.ch>

        * gfortran.dg/defined_assignment_7.f90: Fix dg-do.
        * gfortran.dg/finalize_10.f90: Fix dg-final.

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

11 years ago * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
grahams [Mon, 8 Jul 2013 11:14:02 +0000 (11:14 +0000)]
* Makefile.in: (c-family-warn): Define to $(STRICT_WARN)

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

11 years ago * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
grahams [Mon, 8 Jul 2013 10:41:13 +0000 (10:41 +0000)]
* c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
unused variables l_length and l_node.

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

11 years ago2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 8 Jul 2013 09:18:50 +0000 (09:18 +0000)]
2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
and cfun_fpr_bit_p to cfun_fpr_save_p.
(s390_frame_area, s390_register_info, s390_frame_info)
(s390_emit_prologue, s390_emit_epilogue)
(s390_conditional_register_usage): Use the *_REGNUM macros for FPR
register numbers.
* config/s390/s390.h: Define *_REGNUM macros for floating point
register numbers.

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

11 years ago * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
ebotcazou [Mon, 8 Jul 2013 09:13:54 +0000 (09:13 +0000)]
* Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).

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

11 years ago PR rtl-optimization/57786
ebotcazou [Mon, 8 Jul 2013 09:05:38 +0000 (09:05 +0000)]
PR rtl-optimization/57786
* combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
and break out of the loop when it is set to false.

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

11 years ago PR target/57819
jakub [Mon, 8 Jul 2013 08:48:40 +0000 (08:48 +0000)]
PR target/57819
* simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
(const_int 63)) 0)).
* combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
using simplify_gen_unary instead of gen_rtx_*_EXTEND.
* config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.

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

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

11 years ago2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 8 Jul 2013 08:19:20 +0000 (08:19 +0000)]
2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* einfo.adb (Get_Pragma): Handle the retrieval of delayed
pragmas stored in N_Contract nodes.
* einfo.ads (Get_Pragma): Update the comment on usage.
* sem_prag.adb (Check_Precondition_Postcondition): Retain a copy
of the pragma when it applies to a body that acts as a spec. The
copy is preanalyzed and chained on the contract of the body.

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 08:17:14 +0000 (08:17 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* rtsfind.adb: Minor comment fix.

2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement
of a Ghost function call when the enclosing context is being
preanalyzed.

2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the
expression in a return statement is a numeric literal, qualify
it with the return type for proper resolution.

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 08:15:25 +0000 (08:15 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* sem.ads: Minor comment updates.
* s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb:
Minor reformatting.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
for Restriction_Set.
* gnat_rm.texi: Add missing menu entry for Attribute Ref Add
documentation for attribute Restriction_Set.
* lib-writ.adb (Write_With_Lines): Generate special W lines
for Restriction_Set.
* lib-writ.ads: Document special use of W lines for
Restriction_Set.
* lib.ads (Restriction_Set_Dependences): New table.
* par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to
list (Scan_Name_Extension_Apostrophe): Remove kludge test for
Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence
for Restricton_Set.
* restrict.adb (Check_SPARK_Restriction): Put in Alfa order
(OK_No_Dependence_Unit_Name): New function.
* restrict.ads (OK_No_Dependence_Unit_Name): New function.
* rtsfind.adb: Minor reformatting Minor code reorganization.
* sem_attr.adb (Analyze_Attribute): Add processing for
Restriction_Set.
* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
Remove Check_Unit_Name and use new function
OK_No_Dependence_Unit_Name instead.
* sinfo.ads: Minor comment updates.
* snames.ads-tmpl: Add entry for Restriction_Set attribute.

2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch4.adb (Apply_Accessibility_Check): Remove local constant
Pool_Id and local variable Free_Stmt. Do not deallocate the faulty
object as "free" is not available on all targets/profiles.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* sem_ch13.adb (Analyze_Aspect_Specifications): Handle
Storage_Size aspect for task type in case discriminant is
referenced.
(Analyze_Attribute_Definition_Clause): Do not flag Storage_Size
attribute definition clause as obsolescent if from aspect.

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 08:11:50 +0000 (08:11 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Add documentation for Img returning a function.
* par-prag.adb: Minor reformatting.
* restrict.adb: Minor reformatting and code reorganization.

2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb: add guard to ASIS transform.

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

11 years ago PR rtl-optimization/57829
jakub [Mon, 8 Jul 2013 08:11:08 +0000 (08:11 +0000)]
PR rtl-optimization/57829
* simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
mask bits outside of mode are just sign-extension from mode to HWI.

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

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

11 years ago2013-07-08 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 8 Jul 2013 08:10:20 +0000 (08:10 +0000)]
2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger
of the asynchronous select is a dispatching call, transform the
abortable part into a procedure, to avoid duplication of local
loop variables that may appear within.

2013-07-08  Vincent Celier  <celier@adacore.com>

* projects.texi: Update the documentation of suffixes in package
Naming.

2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm
types are type conformant if the designated type of one is
protected and the other is not. Convention only matters when
checking subtype conformance.

2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
back the fully resolved operands to the original function call
so that all semantic information remains available to ASIS.

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

11 years ago2013-07-08 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 8 Jul 2013 08:08:00 +0000 (08:08 +0000)]
2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb: minor reformatting (remove obsolete comment).
* sem_ch9.adb: improve error message on illegal trigger.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb: Minor reformatting.

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 08:05:45 +0000 (08:05 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* gnatcmd.adb: Minor reformatting.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* targparm.adb (Get_Target_Parameters): Recognize pragma
Partition_Elaboration_Policy.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* gnat_ugn.texi: Minor update to mention partition elaboration policy.

2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Comple_Object_Operation): Revert previous change.
(Analyze_Indexed_Component_Form): In ASIS mode, if node has been
transformed but not rewritten as a function call (as is the case
in a generic), analyze it as such.

2013-07-08  Thomas Quinot  <quinot@adacore.com>

* gnat_rm.texi: Minor rewording: add missing word "operators"
in documentation for restriction No_Direct_Boolean_Operator.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg,
Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere
now).
* errout.ads: Insertions ! and !! no longer have to be at the
end of the message, they can be anywhere in the message.
* erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg):
Replaces Test_Style_Warning_Serious_Msg
* erroutc.ads (Has_Double_Exclam): New flag New comments for
existing flags (Test_Style_Warning_Serious_Unconditional_Msg):
Replaces Test_Style_Warning_Serious_Msg
* errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg):
Replaces Test_Style_Warning_Serious_Msg

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 08:03:04 +0000 (08:03 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
Recognize SPARK_05 as synonym for SPARK in restrictions pragma.
* restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only
referenced there.
* scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb,
sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK.
* snames.ads-tmpl (Name_No_Obsolescent_Features): New entry.

2013-07-08  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (Check_Files): Use a response file for gnatls
when possible.

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

11 years ago2013-07-08 Gary Dismukes <dismukes@adacore.com>
charlet [Mon, 8 Jul 2013 07:59:55 +0000 (07:59 +0000)]
2013-07-08  Gary Dismukes  <dismukes@adacore.com>

* freeze.adb: Minor typo fixes.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document
obsolete recognition of SPARK Document all other obsolete synonyms
for old restrictions.
* restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces
SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym
for SPARK_05.
* restrict.ads: Restriction SPARK_05 replaces SPARK.
* s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK
as synonym for SPARK_05.
* sem_prag.adb: Minor reformatting.
* snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05.

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 07:57:16 +0000 (07:57 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* sem_dim.adb: Minor error message change.
* freeze.adb (Freeze_Entity, array type case): Extend handling
of Implicit_Packing to handle multi-dimensional array case.
* gnat_rm.texi: Update doc on Implicit_Packing.

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

11 years ago2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 07:55:24 +0000 (07:55 +0000)]
2013-07-08  Robert Dewar  <dewar@adacore.com>

* exp_ch4.adb: Minor reformatting.

2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Complete_Object_Operation): In ASIS mode, if
the parent node is a selected component and the analysis as a
call is successful, set the type of the selector in the parent
node for subsequent checks, because the rewriting of the node
does not take place during pre-analysis.

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

11 years ago 2013-07-08 Robert Dewar <dewar@adacore.com>
charlet [Mon, 8 Jul 2013 07:54:29 +0000 (07:54 +0000)]
 2013-07-08  Robert Dewar  <dewar@adacore.com>

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

2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch4.adb (Expand_N_Op_Eq): When comparing two
Bounded_Strings, use the predefined equality function of the
root Super_String type.

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

11 years ago2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 8 Jul 2013 07:52:49 +0000 (07:52 +0000)]
2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch4.adb (Create_Alternative): Removed.
(Expand_N_If_Expression): Remove constant
In_Case_Or_If_Expression. Add local variable
Ptr_Typ. Inspect the "then" and "else" action lists
for transient controlled objects and generate code to
finalize them. (Is_Controlled_Function_Call): Removed.
(Process_Action): Update the comment on usage. Update the call
to Process_Transient_Object. There is no need to continue the
traversal of the object itself.
(Process_Actions): New routine.
(Process_Transient_Object): Moved to the top level of Exp_Ch4. Add
a new formal and update the related comment on usage.
* exp_util.adb (Within_Case_Or_If_Expression): Start the search
from the parent of the node.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* a-cusyqu.ads, a-cbprqu.ads, s-interr.ads, a-cuprqu.ads,
a-cbsyqu.ads: Minor reformatting (proper formatting of overriding).

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

11 years ago2013-07-08 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 8 Jul 2013 07:50:46 +0000 (07:50 +0000)]
2013-07-08  Ed Schonberg  <schonberg@adacore.com>

* sem_ch8.adb (Attribute_Renaming): Treat 'Img as an attribute
that can be renamed as a function.

2013-07-08  Thomas Quinot  <quinot@adacore.com>

* g-socket.ads: Document target dependency: FIONBIO may or may not
be inherited from listening socket by accepted socket.

2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch4.adb (Apply_Accessibility_Check): Do not deallocate the object
on targets that can't deallocate.

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

11 years ago2013-07-08 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 8 Jul 2013 07:48:51 +0000 (07:48 +0000)]
2013-07-08  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch3.adb (Freeze_Type): Generate a
subpools-related accessibility check only on profiles that
include the corresponding library unit.

2013-07-08  Gary Dismukes  <dismukes@adacore.com>

* sem_ch8.adb: Minor typo fixes.

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

11 years ago2013-07-08 Javier Miranda <miranda@adacore.com>
charlet [Mon, 8 Jul 2013 07:47:39 +0000 (07:47 +0000)]
2013-07-08  Javier Miranda  <miranda@adacore.com>

* sem_ch8.adb (Save_Scope_Stack): Adding documentation.
(Restore_Scope_Stack): Remove the elements of the list when the
visibility of each entity is restored.

2013-07-08  Robert Dewar  <dewar@adacore.com>

* exp_ch9.adb, sem.ads, sem_util.adb: Minor reformatting.

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