platform/upstream/linaro-gcc.git
12 years ago2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 10 Mar 2012 03:53:35 +0000 (03:53 +0000)]
2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
and related program names.

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

12 years ago2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 10 Mar 2012 01:57:28 +0000 (01:57 +0000)]
2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".

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

12 years agoDaily bump.
gccadmin [Sat, 10 Mar 2012 00:19:39 +0000 (00:19 +0000)]
Daily bump.

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

12 years ago * Make-lang.in (convert.o): Depend on convert.h.
steven [Fri, 9 Mar 2012 22:52:33 +0000 (22:52 +0000)]
* Make-lang.in (convert.o): Depend on convert.h.
* convert.c: Header and comment cleanups.
(gfc_thruthvalue_conversion): Rename static function
to truthvalue_conversion.  Do not use 'internal_error' from here,
use 'gcc_unreachable' instead.
(convert): Do not use 'error' for conversions to void, use
'gcc_unreachable' instead.  Likewise for conversions to non-scalar
types.  Do not hanlde ENUMERAL_TYPE, the front end never creates them.
Clean up #if 0 code.

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

12 years ago * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
dje [Fri, 9 Mar 2012 19:51:54 +0000 (19:51 +0000)]
    * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
        change to return value of ffi_closure_helper_DARWIN and load type
        from return type.

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

12 years ago* config/locale/gnu/monetary_members.cc
schwab [Fri, 9 Mar 2012 19:48:55 +0000 (19:48 +0000)]
* config/locale/gnu/monetary_members.cc
(moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
exception again.
(moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
* testsuite/22_locale/locale/cons/12352.cc: Also test en_US
locale.

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

12 years ago PR target/52530
uros [Fri, 9 Mar 2012 18:01:47 +0000 (18:01 +0000)]
PR target/52530
* config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
(ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
to set code to 'q'.
* config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
(*movdi_internal_rex64): Use %E operand modifier for lea.
(*movsi_internal): Ditto.
(*lea_1): Ditto.
(*lea<mode>_2): Ditto.
(*lea_{3,4,5,6}_zext): Ditto.
(*tls_global_dynamic_32_gnu): Ditto.
(*tls_global_dynamic_64): Ditto.
(*tls_dynamic_gnu2_lea_32): Ditto.
(*tls_dynamic_gnu2_lea_64): Ditto.
(pro_epilogue_adjust_stack_<mode>_add): Ditto.

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

12 years ago2012-03-08 Michael Meissner <meissner@the-meissners.org>
meissner [Fri, 9 Mar 2012 16:56:25 +0000 (16:56 +0000)]
2012-03-08  Michael Meissner  <meissner@the-meissners.org>

* config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
redefine to be NULL if the current bit-size is different from the
configured bit-size.

* config/rs6000/rs6000.c (rs6000_option_override_internal): If the
cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
set the default tuning.  Add asserts to make sure the cpu and tune
indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
test whether the index is set, instead of > 0.
(rs6000_file_start): Do not reset the default cpu if the current
bit-size is different from the configured bit-size.

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

12 years ago2012-03-09 Robert Dewar <dewar@adacore.com>
charlet [Fri, 9 Mar 2012 14:57:35 +0000 (14:57 +0000)]
2012-03-09  Robert Dewar  <dewar@adacore.com>

* a-direct.adb, comperr.adb, freeze.adb: Minor reformatting.

2012-03-09  Arnaud Charlet  <charlet@adacore.com>

* s-taskin.adb (Initialize_ATCB): Set Task_Image_Len to
0 so that we never access this field uninitialized (e.g. in
Task_Primitives.Operations.Enter_Task for the environment task).

2012-03-09  Vincent Pucci  <pucci@adacore.com>

* exp_ch5.adb (Expand_Iterator_Loop):
Call to Expand_Iterator_Loop_Over_Array added.
(Expand_Iterator_Loop_Over_Array): New routine. Expansion of
"of" iterator loop over arrays. Multidimensional array case added.

2012-03-09  Eric Botcazou  <ebotcazou@adacore.com>

* uintp.ads: Fix minor pasto in comment.

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

12 years ago2012-03-09 Vasiliy Fofanov <fofanov@adacore.com>
charlet [Fri, 9 Mar 2012 14:54:58 +0000 (14:54 +0000)]
2012-03-09  Vasiliy Fofanov  <fofanov@adacore.com>

* a-direct.adb: Do not strip the trailing directory separator
from path, as this is already done inside Normalize_Pathname;
doing it again produces the wrong result on Windows for the
drive's root dir (i.e. "X:\" becomes "X:").

2012-03-09  Thomas Quinot  <quinot@adacore.com>

* exp_attr.adb, freeze.adb, sem_attr.adb, aspects.adb, aspects.ads,
sem_ch13.adb, snames.ads-tmpl (Exp_Attr.Expand_N_Attribute_Reference):
Add Attribute_Scalar_Storage_Order.
(Sem_Attr.Analyze_Attribute, Eval_Attribute): Ditto.
(Aspects): Add Aspect_Scalar_Storage_Order (Snames): Add
Name_Scalar_Storage_Order and Attribute_Scalar_Storage_Order.
(Sem_Ch13.Analyze_Attribute_Definition_Clause): Add processing
for Scalar_Storage_Order.
(Freeze): If Scalar_Storage_Order is specified, check that it
is compatible with Bit_Order.

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

12 years ago2012-03-09 Robert Dewar <dewar@adacore.com>
charlet [Fri, 9 Mar 2012 14:50:48 +0000 (14:50 +0000)]
2012-03-09  Robert Dewar  <dewar@adacore.com>

* s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb,
a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb,
a-stzsup.ads: Minor reformatting.

2012-03-09  Thomas Quinot  <quinot@adacore.com>

* s-ransee-vms.adb: Minor reformatting.

2012-03-09  Arnaud Charlet  <charlet@adacore.com>

* comperr.adb (Delete_SCIL_Files): Fix handling of
N_Package_Renaming_Declaration and N_Generic_Package_Declaration.

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

12 years ago2012-03-09 Javier Miranda <miranda@adacore.com>
charlet [Fri, 9 Mar 2012 14:48:24 +0000 (14:48 +0000)]
2012-03-09  Javier Miranda  <miranda@adacore.com>

* sem_ch6.adb (Check_Body_To_Inline): In AAMP and VM targets
use frontend inlining at all optimization levels.
* sem_util.adb (Must_Inline): In AAMP and VM targets, given that
there is no inlining support in the backend, use also frontend
inlining when compiling with optimizations enabled.
* exp_ch6.adb (Expand_Call): Minor code reorganization.

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

12 years ago2012-03-09 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 9 Mar 2012 14:08:02 +0000 (14:08 +0000)]
2012-03-09  Tristan Gingold  <gingold@adacore.com>

* config/vms/vms-crtlmap.map: Add comments.
Add entries needed to build Ada RTS.

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

12 years ago2012-03-09 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 9 Mar 2012 13:03:58 +0000 (13:03 +0000)]
2012-03-09  Tristan Gingold  <gingold@adacore.com>

* ginclude/stddef.h: Do not define __size_t on VMS.

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

12 years ago2012-03-09 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 9 Mar 2012 11:49:50 +0000 (11:49 +0000)]
2012-03-09  Tristan Gingold  <gingold@adacore.com>

        * c-tree.h (c_default_pointer_mode): New variable.
        * c-decl.c (c_default_pointer_mode): New variable.
        (c_build_pointer_type): New function.
        (grokdeclarator): Call c_build_pointer_type instead
        of build_pointer_type.

        * config/vms/vms-c.c: Include c-tree.h
        (saved_pointer_mode): New variable.
        (handle_pragma_pointer_size): New function.
        (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
        (vms_c_register_pragma): Register __pointer_size and
        __required_pointer_size pragmas.

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

12 years ago2012-03-09 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 9 Mar 2012 10:37:34 +0000 (10:37 +0000)]
2012-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

* include/debug/formatter.h (enum _Debug_msg_id): Add
__msg_self_move_assign.
* include/debug/macros.h (__glibcxx_check_self_move_assign): Add.
* src/c++11/debug.cc (_S_debug_messages): Update.
* include/debug/safe_iterator.h (_Safe_iterator<>::operator=
(_Safe_iterator&&)): Add check for self move assignment.
* include/debug/set.h: Likewise.
* include/debug/unordered_map: Likewise.
* include/debug/multiset.h: Likewise.
* include/debug/forward_list: Likewise.
* include/debug/unordered_set: Likewise.
* include/debug/vector: Likewise.
* include/debug/map.h: Likewise.
* include/debug/deque: Likewise.
* include/debug/string: Likewise.
* include/debug/list: Likewise.
* include/debug/multimap.h: Likewise.
* testsuite/21_strings/debug/self_move_assign_neg.cc: New.
* testsuite/21_strings/debug/iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/unordered_map/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/unordered_map/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/multimap/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/multimap/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/set/debug/self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/set/debug/iterator_self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/unordered_multimap/debug/
self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/unordered_multimap/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/forward_list/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/forward_list/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/unordered_set/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/unordered_set/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/vector/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/vector/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/deque/debug/self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/deque/debug/iterator_self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/multiset/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/multiset/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/list/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/list/debug/iterator_self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/unordered_multiset/debug/
self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/unordered_multiset/debug/
iterator_self_move_assign_neg.cc: Likewise.
* testsuite/23_containers/map/debug/self_move_assign_neg.cc:
Likewise.
* testsuite/23_containers/map/debug/iterator_self_move_assign_neg.cc:
Likewise.

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

12 years ago2012-03-09 Tristan Gingold <gingold@adacore.com>
gingold [Fri, 9 Mar 2012 10:13:35 +0000 (10:13 +0000)]
2012-03-09  Tristan Gingold  <gingold@adacore.com>

* config/vms/vms-c.c (vms_construct_include_filename): New function.
(vms_c_register_includes): Reference it.

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

12 years ago * gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around.
ebotcazou [Fri, 9 Mar 2012 09:28:02 +0000 (09:28 +0000)]
* gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around.
(TYPE_UNCONSTRAINED_ARRAY): Adjust comment.
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Tidy
up.  Add comment and use canonical predicate for thin pointers.
(gnat_to_gnu) <N_Free_Statement>: Tidy up and reorder.  Add comment
and use canonical predicate for thin pointers.
* gcc-interface/utils.c (convert_to_fat_pointer): Remove superfluous
'else' and use standard name.
(convert_to_thin_pointer): Delete.
(convert) <POINTER_TYPE>: Do the difference in sizetype directly and
change obsolete idioms.  Do not call above function.
(unchecked_convert): Fix formatting.
* gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: In the thin
pointer case, use byte_position to get the field position.

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

12 years ago2012-03-09 Andrew Pinski <apinski@cavium.com>
pinskia [Fri, 9 Mar 2012 09:27:29 +0000 (09:27 +0000)]
2012-03-09  Andrew Pinski  <apinski@cavium.com>

PR middle-end/51988
* tree-ssa-phiopt.c: Include tree-pretty-print.h for
print_generic_expr.
(tree_ssa_phiopt_worker): Go through all the PHIs for
value_replacement instead of just the singleton one.
(value_replacement): Change return type to int.  Return 0 instead of
false.
Allow the middle basic block to contain more than just the definings
tatement.
Handle non empty middle basic blocks.
* Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.

2012-03-09  Andrew Pinski  <apinski@cavium.com>

PR middle-end/51988
* gcc.dg/tree-ssa/phi-opt-8.c: New testcase.
* gcc.dg/tree-ssa/phi-opt-9.c: New testcase.

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

12 years ago2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
liujiangning [Fri, 9 Mar 2012 08:45:14 +0000 (08:45 +0000)]
2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>

* tree-scalar-evolution (interpret_rhs_expr): generate chrec for
array reference and component reference.
(analyze_scalar_evolution_for_address_of): New.

2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>

* gcc.dg/tree-ssa/scev-3.c: New.
* gcc.dg/tree-ssa/scev-4.c: New.

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

12 years agocompiler: Be more careful to follow GENERIC type rules.
ian [Fri, 9 Mar 2012 08:25:05 +0000 (08:25 +0000)]
compiler: Be more careful to follow GENERIC type rules.

* go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
to the lhs type if necessary.

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

12 years agocompiler: Correct handling of sink receiver.
ian [Fri, 9 Mar 2012 06:37:27 +0000 (06:37 +0000)]
compiler: Correct handling of sink receiver.

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

12 years agodebug/dwarf: Support DWARF versions 3 and 4.
ian [Fri, 9 Mar 2012 06:35:00 +0000 (06:35 +0000)]
debug/dwarf: Support DWARF versions 3 and 4.

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

12 years ago PR target/49862
jiez [Fri, 9 Mar 2012 05:54:25 +0000 (05:54 +0000)]
PR target/49862
* config/bfin/bfin.c (hwloop_optimize): Fix unused variable
warnings.
(hwloop_pattern_reg): Fix set but not used warning.
(bfin_reorg_loops): Remove unused parameter.
(bfin_reorg): Update use of bfin_reorg_loops.

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

12 years agodebug/elf: Don't crash if line numbers are not available.
ian [Fri, 9 Mar 2012 05:33:10 +0000 (05:33 +0000)]
debug/elf: Don't crash if line numbers are not available.

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

12 years agoUse word_mode to push/pop register for x86
hjl [Fri, 9 Mar 2012 04:17:02 +0000 (04:17 +0000)]
Use word_mode to push/pop register for x86

2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
with integer parameters in registers.
(gen_push): Push register in word_mode instead of Pmode.
(ix86_emit_save_regs): Likewise.
(ix86_emit_save_regs_using_mov): Save integer registers in
word_mode.
(gen_pop): Pop register in word_mode instead of Pmode.
(ix86_emit_restore_regs_using_pop): Likewise.
(ix86_expand_prologue): Replace Pmode with word_mode for push
immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
restore RAX and R10 in word_mode.
(ix86_emit_restore_regs_using_mov): Restore integer registers
in word_mode.
(ix86_expand_split_stack_prologue): Save R10_REG and restore in
word_mode.
(ix86_split_to_parts): Use word_mode with PUT_MODE for push.
(ix86_split_long_move): Likewise.

* config/i386/i386.md (W): New.
(*push<mode>2_prologue): Replace :P with :W.
(*pop<mode>1): Likewise.
(*pop<mode>1_epilogue): Likewise.
(push/pop peephole2): Use word_mode scratch registers.

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

12 years agoDaily bump.
gccadmin [Fri, 9 Mar 2012 00:19:39 +0000 (00:19 +0000)]
Daily bump.

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

12 years agocompiler: Don't initialize zero sized variables.
ian [Thu, 8 Mar 2012 23:33:04 +0000 (23:33 +0000)]
compiler: Don't initialize zero sized variables.
* go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
zero-sized variable.
(go_non_zero_struct): New global variable.
(Gcc_backend::non_zero_size_type): New function.
(Gcc_backend::global_variable): Don't build an assignment for a
zero-sized value.
* go-c.h (go_non_zero_struct): Declare.
* config-lang.in (gtfiles): Add go-c.h.

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

12 years ago * config/i386/predicates.md (indirect_branch_operand): Simplify.
uros [Thu, 8 Mar 2012 20:50:21 +0000 (20:50 +0000)]
* config/i386/predicates.md (indirect_branch_operand): Simplify.

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

12 years ago2012-03-08 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 8 Mar 2012 19:36:43 +0000 (19:36 +0000)]
2012-03-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52469
        * trans-types.c (gfc_get_function_type): Handle backend_decl
        of a procedure pointer.

2012-03-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52469
        * gfortran.dg/proc_ptr_34.f90

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

12 years ago2012-03-08 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 8 Mar 2012 17:44:45 +0000 (17:44 +0000)]
2012-03-08  Paolo Carlini  <paolo.carlini@oracle.com>

* typeck.c (build_array_ref, cp_build_addr_expr_1, convert_ptrmem,
build_ptrmemfunc): Consistently forward the tsubst_flags_t
parameter.
* call.c (resolve_args): Likewise.

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

12 years ago * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
gjl [Thu, 8 Mar 2012 16:36:49 +0000 (16:36 +0000)]
* config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
for constants in [-63,63].

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

12 years ago PR target/52530
uros [Thu, 8 Mar 2012 15:19:32 +0000 (15:19 +0000)]
PR target/52530
Revert:
2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (ix86_print_operand_address): Only handle
zero-extended DImode addresses.

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

12 years agoFix R_386_TLS_LDM_PLT detection
ro [Thu, 8 Mar 2012 13:50:20 +0000 (13:50 +0000)]
Fix R_386_TLS_LDM_PLT detection

* configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
* configure: Regenerate.

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

12 years ago PR target/52496
gjl [Thu, 8 Mar 2012 11:14:05 +0000 (11:14 +0000)]
PR target/52496
* config/avr/avr.c (avr_mem_clobber): New static function.
(avr_expand_delay_cycles): Add memory clobber operand to
delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
* config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
(enable_interrupt, disable_interrupt): New expander.
(nopv, sleep, wdr): New expanders.
(delay_cycles_1): Add memory clobber.
(delay_cycles_2): Add memory clobber.
(delay_cycles_3): Add memory clobber.
(delay_cycles_4): Add memory clobber.
(cli_sei): New insn from former "enable_interrupt",
"disable_interrupt" with memory clobber.
(*wdt): New insn from former "wdt" with memory clobber.
(*nopv): Similar, but for "nopv".
(*sleep): Similar, but for "sleep".

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

12 years ago2012-03-08 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 8 Mar 2012 05:20:52 +0000 (05:20 +0000)]
2012-03-08  Benjamin Kosnik  <bkoz@redhat.com>

    * doc/doxygen/user.cfg.in: Update to Doxygen 1.8.0.
    * include/bits/locale_facets.h: Adjust markup to avoid warnings.
    * include/ext/pb_ds/assoc_container.hpp: Same.
    * include/ext/pb_ds/priority_queue.hpp: Same.
    * include/std/fstream: Same.
    * include/std/ratio: Same.
    * testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Adjust line
    numbers.
    * testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Same.

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

12 years agocompiler: Don't crash on array assignment.
ian [Thu, 8 Mar 2012 01:38:55 +0000 (01:38 +0000)]
compiler: Don't crash on array assignment.

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

12 years ago PR libstdc++/52433
redi [Thu, 8 Mar 2012 01:05:01 +0000 (01:05 +0000)]
PR libstdc++/52433
* include/debug/safe_iterator.h (_Safe_iterator): Add debug checks
to move constructor and move assignment operator.

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

12 years agoDaily bump.
gccadmin [Thu, 8 Mar 2012 00:19:19 +0000 (00:19 +0000)]
Daily bump.

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

12 years ago * cp-demangle.c (cplus_demangle_operators): Add li.
jason [Wed, 7 Mar 2012 23:19:06 +0000 (23:19 +0000)]
* cp-demangle.c (cplus_demangle_operators): Add li.
(d_unqualified_name): Handle it specially.

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

12 years ago PR target/52503
kkojima [Wed, 7 Mar 2012 22:06:25 +0000 (22:06 +0000)]
PR target/52503
* config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
* config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
(SUBTARGET_OVERRIDE_OPTIONS): Define.

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

12 years agocompiler: Don't crash if writing type functions too late due to error.
ian [Wed, 7 Mar 2012 21:53:34 +0000 (21:53 +0000)]
compiler: Don't crash if writing type functions too late due to error.

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

12 years ago PR c++/52521
jason [Wed, 7 Mar 2012 20:20:00 +0000 (20:20 +0000)]
PR c++/52521
* mangle.c (write_literal_operator_name): The length comes after the
operator prefix.

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

12 years ago * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set flags on the
ebotcazou [Wed, 7 Mar 2012 20:13:41 +0000 (20:13 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not set flags on the
DECL node built for a type which has a non-trivial equivalent type.

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

12 years ago * gcc-interface/gigi.h (rest_of_type_decl_compilation): Delete.
ebotcazou [Wed, 7 Mar 2012 20:08:17 +0000 (20:08 +0000)]
* gcc-interface/gigi.h (rest_of_type_decl_compilation): Delete.
* gcc-interface/decl.c (defer_finalize_level): Likewise.
(defer_finalize_list): Likewise.
(gnat_to_gnu_entity): Delete references to above variables and do not
call rest_of_type_decl_compilation.
(rest_of_type_decl_compilation): Delete.
(rest_of_type_decl_compilation_no_defer): Likewise.
* gcc-interface/utils.c (rest_of_record_type_compilation): Do not call
rest_of_type_decl_compilation.
(create_type_decl): Likewise.
(update_pointer_to): Likewise.

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

12 years agoRename some internal atomic macros to have a less generic prefix.
walt [Wed, 7 Mar 2012 20:05:52 +0000 (20:05 +0000)]
Rename some internal atomic macros to have a less generic prefix.

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

12 years ago * config/i386/predicates.md (x86_64_zext_general_operand): New.
uros [Wed, 7 Mar 2012 19:44:37 +0000 (19:44 +0000)]
* config/i386/predicates.md (x86_64_zext_general_operand): New.
* config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
predicate to x86_64_zext_general_operand.  Accept "Z" constraint.

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

12 years ago * gcc-interface/trans.c (Identifier_to_gnu): Don't unshare initializer.
ebotcazou [Wed, 7 Mar 2012 18:55:59 +0000 (18:55 +0000)]
* gcc-interface/trans.c (Identifier_to_gnu): Don't unshare initializer.
(add_decl_expr): Mark external DECLs as used.
* gcc-interface/utils.c (convert) <CONSTRUCTOR>: Copy the vector.

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

12 years agoFix an unwinding bug for functions with dynamic stack frames.
walt [Wed, 7 Mar 2012 17:58:52 +0000 (17:58 +0000)]
Fix an unwinding bug for functions with dynamic stack frames.

* config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
REG_CFA_* notes for the stack pointer.
(tilegx_expand_epilogue): Restore stack pointer by adjusting it by
EH_RETURN_STACKADJ_RTX.
* config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
generate REG_CFA_* notes for the stack pointer.
(tilepro_expand_epilogue): Restore stack pointer by adjusting it
by EH_RETURN_STACKADJ_RTX.

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

12 years ago2012-03-07 Tristan Gingold <gingold@adacore.com>
charlet [Wed, 7 Mar 2012 17:10:10 +0000 (17:10 +0000)]
2012-03-07  Tristan Gingold  <gingold@adacore.com>

* s-ransee-vms.adb: New file.
* gcc-interface/Makefile.in: Use s-ransee-vms.adb on VMS.
* gcc-interface/Make-lang.in: Update dependencies.

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

12 years ago2012-03-07 Bob Duff <duff@adacore.com>
charlet [Wed, 7 Mar 2012 17:07:55 +0000 (17:07 +0000)]
2012-03-07  Bob Duff  <duff@adacore.com>

* rtsfind.ads: Add support for finding Super_String types.
* sem_util.ads, sem_util.adb (Is_Bounded_String): New function
to determine whether a given type is a bounded string type.
(Is_Fully_Initialized_Type): Return True for bounded
string types, to suppress bogus warnings.
* exp_ch4.adb (Expand_Composite_Equality): Special case for bounded
strings: equality composes. This allows us to remove default values in
super strings.
* a-strsup.ads, a-stwisu.ads, a-stzsup.ads: Update comments.
* exp_ch3.adb (Expand_Freeze_Record_Type): Comment.

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

12 years ago2012-03-07 Robert Dewar <dewar@adacore.com>
charlet [Wed, 7 Mar 2012 17:05:06 +0000 (17:05 +0000)]
2012-03-07  Robert Dewar  <dewar@adacore.com>

* sem_util.adb, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb: Minor
reformatting.

2012-03-07  Sergey Rybin  <rybin@adacore.com frybin>

* gnat_ugn.texi: gnatpp: fix paragraph about sources with
preprocessor directives.

2012-03-07  Arnaud Charlet  <charlet@adacore.com>

* s-osinte-linux.ads, s-taprop-linux.adb (prctl): New function.
(Enter_Task): Call prctl when relevant.

2012-03-07  Tristan Gingold  <gingold@adacore.com>

* s-osinte-vms.ads: pthread_mutex_setname_np: new function.

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

12 years agocompiler: Fix struct inheriting interface with varargs method.
ian [Wed, 7 Mar 2012 16:06:10 +0000 (16:06 +0000)]
compiler: Fix struct inheriting interface with varargs method.

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

12 years ago * doc/invoke.texi (AVR Built-in Macros): Correct condition for
gjl [Wed, 7 Mar 2012 15:53:12 +0000 (15:53 +0000)]
* doc/invoke.texi (AVR Built-in Macros): Correct condition for
when __AVR_3_BYTE_PC__ is defined.

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

12 years ago * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
uros [Wed, 7 Mar 2012 15:44:52 +0000 (15:44 +0000)]
* config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
(ix86_print_operand): Handle '^'.
* config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
using P mode iterator.  Add %^ to asm template to conditionally emit
addr32 prefix.
(*rep_movdi_rex64): Ditto.
(*strsetdi_rex_1): Ditto.
(*rep_stosdi_rex64): Ditto.
(*strmov{si,hi,qi}_1): Add %^ to asm template to
conditionally emit addr32 prefix.
(*rep_mov{si,qi}): Ditto.
(*strset{si,hi,qi}): Ditto.
(*rep_stos{si,qi}): Ditto.
(*cmpstrnqi_nz_1): Ditto.
(*cmpstrnqi_1): Ditto.
(*strlenqi_1): Ditto.

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

12 years agoPass pointers in word_mode instead of Pmode
hjl [Wed, 7 Mar 2012 15:03:12 +0000 (15:03 +0000)]
Pass pointers in word_mode instead of Pmode

2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (function_value_64): Return pointers in
word_mode instead of Pmode.
(ix86_promote_function_mode): Likewise.

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

12 years ago2012-03-07 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 7 Mar 2012 14:58:43 +0000 (14:58 +0000)]
2012-03-07  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Process_Formals): a generic subprogram with
a formal incomplete type does not require a freeze node.

2012-03-07  Bob Duff  <duff@adacore.com>

* sem_util.ads: Minor reformatting.

2012-03-07  Geert Bosch  <bosch@adacore.com>

* targparm.ads: New target parameter Atomic_Sync_Default,
defaulting to True.
* targparm.adb (Get_Target_Parameters): Add processing for
Atomic_Sync_Default.
* gnat1drv.adb (Adjust_Global_Switches): Adjust Supress_Options
based on ASD.

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

12 years ago2012-03-07 Javier Miranda <miranda@adacore.com>
charlet [Wed, 7 Mar 2012 14:56:40 +0000 (14:56 +0000)]
2012-03-07  Javier Miranda  <miranda@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): If the object
declaration has an init expression then stop the analysis of the
object declaration if the expression which initializes the object
is a call to an inlined function which returns an unconstrained
and has been expanded into a procedure call.
* sem_ch5.adb (Has_Call_Using_Secondary_Stack): Add missing
support to handle selected components.
* sem_ch6.ads (Cannot_Inline): Adding parameter Is_Serious plus
documentation.
* sem_ch6.adb (Check_And_Build_Body_To_Inline): New
subprogram which implements the checks required by the
new rules for frontend inlining and builds the body to inline.
(Analyze_Subprogram_Body_Helper): Move code that
checks inlining of subprogram that has nested subprogram
to Check_And_Build_Body_To_Inline.  Replace call to
Build_Body_To_Inline by call to the new subprogram
Check_And_Build_Body_To_Inline.
(Cannot_Inline): New implementation.
* sem_ch12.adb (Analyze_Package_Instantiation.Must_Inline_Subp):
New subprogram.
* sem_util.ad[sb] (Must_Inline): New subprogram.
(Returns_Unconstrained_Type): New subprogram.
* sem_res.adb (Resolve_Call): Do not create a transient scope
for inlined calls.
* inline.ads (Analyzing_Inlined_Bodies): Remove unreferenced variable.
* inline.adb (Analyze_Inlined_Bodies, Initialize): Remove setting
to false the variable Analyzing_Inlined_Bodies.  Fix comments.
* exp_ch4.adb (Expand_N_Allocator): Fix handling of finalization master.
* exp_ch6.ads (List_Inlining_Info): New subprogram.
* exp_ch6.adb (Expand_Call.Do_Inline): New subprogram.
(Expand_Call.Do_Inline_Always): New subprogram.
(In_Unfrozen_Instance): Move the declaration of this subprogram.
(Expand_Inlined_Call.Reset_Dispatching_Calls): New subprogram.
(Expand_Inlined_Call): Adding new support for inlining functions
that return unconstrained types.
(List_Inlining_Info): New subprogram.
* debug.adb Document flags -gnatd.j and -gnatd.k
* gnat1drv.adb Add call to generate the new listing of inlined
calls and calls passed to the backend.

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

12 years ago2012-03-07 Robert Dewar <dewar@adacore.com>
charlet [Wed, 7 Mar 2012 14:53:39 +0000 (14:53 +0000)]
2012-03-07  Robert Dewar  <dewar@adacore.com>

* sem_ch5.adb, s-vaflop.adb, s-taprop-vms.adb, exp_ch6.adb,
s-gearop.adb, sem_ch6.adb, s-bbthre.adb, g-trasym.adb: Minor
reformatting.

2012-03-07  Javier Miranda  <miranda@adacore.com>

* a-ngrear.ads: Add documentation.

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

12 years ago2012-03-07 Tristan Gingold <gingold@adacore.com>
charlet [Wed, 7 Mar 2012 14:51:44 +0000 (14:51 +0000)]
2012-03-07  Tristan Gingold  <gingold@adacore.com>

* s-taprop-vms.adb (Create_Task): set thread name.
* s-osinte-vms.ads (pthread_attr_setname_np): Declare.

2012-03-07  Arnaud Charlet  <charlet@adacore.com>

* g-trasym.adb: Minor reformatting.

2012-03-07  Robert Dewar  <dewar@adacore.com>

* a-ngrear.ads: Minor addition of ??? comment.

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

12 years ago2012-03-07 Gary Dismukes <dismukes@adacore.com>
charlet [Wed, 7 Mar 2012 14:45:51 +0000 (14:45 +0000)]
2012-03-07  Gary Dismukes  <dismukes@adacore.com>

* exp_ch4.adb (Apply_Accessibility_Check): Call
Remove_Side_Effects in the build-in-place case, to ensure that
we capture the call and don't end up with two calls.

2012-03-07  Javier Miranda  <miranda@adacore.com>

* exp_ch6.adb (Expand_Inlined_Call): Skip inlining of functions
that return unconstrained types using an extended return statement
since the support for inlining these functions has not been yet
added to the frontend.
* s-vaflop.adb, s-vaflop-vms-alpha.adb: Code reorganization.
* a-ngrear.ads: Replace all the Inline_Always pragmas by pragma
Inline.
* a-ngrear.adb (Eigenvalues, Transpose): Restructured to use
extended return statement.
* a-strsup.adb, a-stzsup.adb, a-stwisu.adb (Concat, Super_Slice,
Super_To_String): Restructured to use extended return statement.
* a-chahan.adb (To_Basic, To_Lower, To_Upper): Restructured to
use extended return statement.
* s-gearop.adb (Diagonal, Matrix_Elementwise_Operation,
Vector_Elementwise_Operation, Matrix_Elementwise_Operation,
Matrix_Matrix_Scalar_Elementwise_Operation,
Vector_Vector_Elementwise_Operation,
Vector_Vector_Scalar_Elementwise_Operation,
Matrix_Scalar_Elementwise_Operation,
Vector_Scalar_Elementwise_Operation,
Scalar_Matrix_Elementwise_Operation,
Scalar_Vector_Elementwise_Operation, Matrix_Matrix_Product,
Matrix_Vector_Product, Outer_Product, Unit_Matrix, Unit_Vector,
Vector_Matrix_Product): Restructured to use extended return
statement.

2012-03-07  Vincent Pucci  <pucci@adacore.com>

* sem_ch5.adb (One_Bound): Minor reformatting.

2012-03-07  Tristan Gingold  <gingold@adacore.com>

* s-osinte-vms-ia64.adb, s-osinte-vms-ia64.ads, s-osinte-vms.adb,
s-osinte-vms.ads, gcc-interface/Makefile.in: Merge s-osinte-vms and
s-osinte-vms-ia64.

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

12 years ago2012-03-07 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 7 Mar 2012 14:41:01 +0000 (14:41 +0000)]
2012-03-07  Ed Schonberg  <schonberg@adacore.com>

* checks.adb (Apply_Predicate_Check): Do not generate a predicate
check is the context is an internally generated type-specific
function.
* sem_ch6.adb (Process_PPCs); the formals of internally generated
type-specific functions do not get assertion checks.

2012-03-07  Yannick Moy  <moy@adacore.com>

* gnat_rm.texi: Minor renaming of title.
* gnat_ugn.texi: Minor correction.

2012-03-07  Vincent Pucci  <pucci@adacore.com>

* exp_ch4.adb (Expand_N_Quantified_Expression): Minor
reformating.
* sem_ch4.adb (Analyze_Quantified_Expression): Creation and
analysis of the iteration scheme added in all cases.
* sem_ch5.adb (Analyze_Iteration_Scheme): Minor reformating.
(Analyze_Iterator_Specification): Minor reformating.
* sem_res.adb (Resolve_Quantified_Expression): Resolution of
the condition added in all cases.

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

12 years ago2012-03-07 Thomas Quinot <quinot@adacore.com>
charlet [Wed, 7 Mar 2012 14:37:26 +0000 (14:37 +0000)]
2012-03-07  Thomas Quinot  <quinot@adacore.com>

* einfo.adb, einfo.ads: Add flag Reverse_Storage_Order.

2012-03-07  Yannick Moy  <moy@adacore.com>

* gnat_rm.texi, gnat_ugn.texi: Rewording of GNAT UG and GNAT RM to
account for Ada 2012 assertions, and their pragma counterparts in GNAT.

2012-03-07  Thomas Quinot  <quinot@adacore.com>

* exp_attr.adb, sem_attr.adb: Minor reformatting.

2012-03-07  Bob Duff  <duff@adacore.com>

* hostparm.ads (Max_Instantiations): Increase parameter.

2012-03-07  Bob Duff  <duff@adacore.com>

* par-prag.adb: Minor code rearrangement.

2012-03-07  Bob Duff  <duff@adacore.com>

* a-strsup.ads, a-stwisu.ads, a-stzsup.ads (Super_String):
Remove default initial value for Data. It is no longer needed
because "=" now composes properly for untagged records. This
default has caused efficiency problems.

2012-03-07  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb (Resolve_Actuals): If the actual is a selected
component of an anonymous access type, whose prefix is a variable,
treat the variable as if it may be modified by the call, to
suppress spurious warnings that a variable might be declared as
a constant.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 14:31:40 +0000 (14:31 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* coverage.c (get_gcov_type): Use type_for_mode.
(get_gcov_unsigned_t): Likewise.
* expr.c (store_constructor): Use type_for_mode.
(try_casesi): Likewise.
* tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size):
Remove.
(add_standard_iv_candidates): Use standard type trees.
* dojump.c (do_jump): Remove dead code.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 14:30:38 +0000 (14:30 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* c-typeck.c (pointer_diff): Use c_common_type_for_size.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 14:30:01 +0000 (14:30 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* convert.c (strip_float_extensions): Move ...
* tree.c (strip_float_extensions): ... here.

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

12 years ago2012-03-07 Thomas Quinot <quinot@adacore.com>
charlet [Wed, 7 Mar 2012 14:18:23 +0000 (14:18 +0000)]
2012-03-07  Thomas Quinot  <quinot@adacore.com>

* einfo.adb, einfo.ads: Remove unused entity flags.

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

12 years ago2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
charlet [Wed, 7 Mar 2012 14:15:16 +0000 (14:15 +0000)]
2012-03-07  Eric Botcazou  <ebotcazou@adacore.com>

* gnat_ugn.texi (Inline Assembler): Fix swapping of Input and
Output operands throughout.

2012-03-07  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch12.adb (Earlier): When two nodes come from the same
generic instantiation, compare their locations. Otherwise always
use the top level locations of the nodes.

2012-03-07  Thomas Quinot  <quinot@adacore.com>

* einfo.ads, sem_prag.adb: Minor reformatting.

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

12 years ago PR target/52484
gjl [Wed, 7 Mar 2012 13:52:30 +0000 (13:52 +0000)]
PR target/52484
* config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 13:31:15 +0000 (13:31 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* omp-low.c (extract_omp_for_data): Use signed_type_for.
(expand_omp_for_generic): Likewise.
(expand_omp_for_static_nochunk): Likewise.
(expand_omp_for_static_chunk): Likewise.
* tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
* tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
Use unsigned_type_for.
(vect_create_cond_for_align_checks): Use signed_type_for.

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

12 years ago PR rtl-optimization/52203
abel [Wed, 7 Mar 2012 12:00:37 +0000 (12:00 +0000)]
    PR rtl-optimization/52203
        * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
        all callers to pass NULL except ...
        (reset_sched_cycles_in_current_ebb): ... here, save the value
        in new variable 'empty'.  Increase issue_rate only for
        non-empty insns.

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

12 years ago2012-03-05 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Wed, 7 Mar 2012 11:39:25 +0000 (11:39 +0000)]
2012-03-05  Ralf Corsépius  <ralf.corsepius@rtems.org>

PR target/51417
* Makefile.in: Let install-gcc-ar depend on installdirs, gcc-ar$(exeext),
gcc-nm$(exeext), gcc-ranlib$(exeext).
Don't double canonicalize if cross-compiling.

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

12 years ago PR target/52507
gjl [Wed, 7 Mar 2012 10:39:42 +0000 (10:39 +0000)]
PR target/52507
* config/avr/lib1funcs.S (__movmemx_hi): Fix loop label in RAM-part.

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

12 years ago PR target/52506
gjl [Wed, 7 Mar 2012 10:38:25 +0000 (10:38 +0000)]
PR target/52506
* gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
to: RAMPZ, RAMPY, RAMPX, RAMPD.
(expand_prologue): Only clear RAMPZ if it has effect on RAM-read.

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

12 years agolibgcc/
gjl [Wed, 7 Mar 2012 10:36:30 +0000 (10:36 +0000)]
libgcc/
PR target/52505
* config/avr/lib1funcs.S (__xload_1): Don't read unintentionally
from RAM.

gcc/
PR target/52505
* config/avr/avr.c (avr_out_xload): Don't read unintentionally
from RAM.
* config/avr/avr.md (xload_8): Adjust insn length.

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

12 years agolibgcc/
gjl [Wed, 7 Mar 2012 10:33:19 +0000 (10:33 +0000)]
libgcc/
PR target/52461
PR target/52508
* config/avr/lib1funcs.S (__do_copy_data): Clear RAMPZ after usage
if RAMPZ affects reading from RAM.
(__tablejump_elpm__): Ditto.
(.xload): Ditto.
(__movmemx_hi): Ditto.
(__do_global_ctors): Right condition for RAMPZ usage is "have ELPM".
(__do_global_dtors): Ditto.
(__xload_1, __xload_2, __xload_3, __xload_4): Ditto.
(__movmemx_hi): Ditto.
gcc/
PR target/52461
* gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
if RAMPZ affects reading from RAM.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 09:55:26 +0000 (09:55 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

PR pch/52518
PR pch/38987
* doc/invoke.texi (Precompiled Headers): Remove sentence that
suggests you can include PCHs from inside another header.

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

12 years agogcc/
rsandifo [Wed, 7 Mar 2012 09:50:36 +0000 (09:50 +0000)]
gcc/
PR middle-end/52515
* rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.

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

12 years ago * doc/invoke.texi (fwritable-relocated-rdata): Document
ktietz [Wed, 7 Mar 2012 09:35:15 +0000 (09:35 +0000)]
    * doc/invoke.texi (fwritable-relocated-rdata): Document
        new Cygwin/MinGW target option.
        * config/i386/winnt.c (i386_pe_unique_section): Ignore
        reloc if flag -fwritable-relocated-rdata is not set.
        (i386_pe_section_type_flags): Likewise.
        * config/i386/cygming.opt (fwritable-relocated-rdata):
        Add new flag variable flag_writable_rel_rdata.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 09:24:40 +0000 (09:24 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
precision against gimple constraints.

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

12 years agolibgo: Implement and use runtime.Caller, runtime.Func.FileLine.
ian [Wed, 7 Mar 2012 01:16:20 +0000 (01:16 +0000)]
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.

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

12 years agoDaily bump.
gccadmin [Wed, 7 Mar 2012 00:19:41 +0000 (00:19 +0000)]
Daily bump.

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

12 years ago * gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check.
pthaugen [Tue, 6 Mar 2012 21:54:51 +0000 (21:54 +0000)]
    * gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check.

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

12 years ago * f95-lang.c (yyerror, yylex): Remove.
steven [Tue, 6 Mar 2012 19:51:42 +0000 (19:51 +0000)]
* f95-lang.c (yyerror, yylex): Remove.
(clear_binding_stack): Remove, fold into its only user.
(LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define.
(ridpointers): Remove.
(gfc_eh_initialized_p): Make static.
(gfc_truthvalue_conversion): Move to convert.c.
(gfc_be_parse_file): Clear binding level stack when done.
(gfc_print_identifier): Remove.
(pushlevel): Remove ignored 'ignore' argument.  Update all callers.
(poplevel): Remove unused 'reverse' argument.  Update all callers.
(ggc_p): Remove.
(gfc_builtin_function): Make static. Do not attempt to make RTL for
builtin functions.
* convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c,
and made static.
* trans.h (pushlevel, poplevel): Adjust prototypes.
(gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes.
* trans-openmp.c: Update calls to pushlevel and poplevel.
* trans.c: Likewise.
* trans-decl.c: Likewise.

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

12 years agogcc/
rsandifo [Tue, 6 Mar 2012 19:22:10 +0000 (19:22 +0000)]
gcc/
PR middle-end/52372
* rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
variables.
(GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
* emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
variables.
(init_emit_regs): Move associated initialization to...
(init_emit_once): ...here.

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

12 years agom68k: Limit TAS to 68000 and CF ISA_B.
rth [Tue, 6 Mar 2012 18:20:34 +0000 (18:20 +0000)]
m68k: Limit TAS to 68000 and CF ISA_B.

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

12 years agolibgo: Update to weekly.2012-03-04 release.
ian [Tue, 6 Mar 2012 17:57:23 +0000 (17:57 +0000)]
libgo: Update to weekly.2012-03-04 release.

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

12 years ago2012-03-05 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Tue, 6 Mar 2012 17:15:43 +0000 (17:15 +0000)]
2012-03-05  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/50310
* config/rs6000/vector.md (vector_uneq<mode>): Add support for
UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
(vector_ltgt<mode>): Likewise.
(vector_ordered<mode>): Likewise.
(vector_unordered<mode>): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner):
Likewise.

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

12 years ago * trans-mem.c: New typedef for tm_region_p.
aldyh [Tue, 6 Mar 2012 16:27:37 +0000 (16:27 +0000)]
    * trans-mem.c: New typedef for tm_region_p.
        Define vector types for tm_region_p.
        (tm_region_init): Replace region_worklist to a vector called
        bb_regions.

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

12 years agorecreated trunk :-(
amacleod [Tue, 6 Mar 2012 15:51:48 +0000 (15:51 +0000)]
recreated trunk :-(

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

12 years agoMove myself to loop optimizer reviewer, remove non-algorithmic maintainer section
dberlin [Tue, 6 Mar 2012 14:04:01 +0000 (14:04 +0000)]
Move myself to loop optimizer reviewer, remove non-algorithmic maintainer section

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

12 years ago2012-03-06 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 6 Mar 2012 13:16:50 +0000 (13:16 +0000)]
2012-03-06  Richard Guenther  <rguenther@suse.de>

* fold-const.c (build_fold_addr_expr_with_type_loc): Fold
MEM_REF with constant pointer operand.

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

12 years ago2012-03-06 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 6 Mar 2012 13:13:14 +0000 (13:13 +0000)]
2012-03-06  Richard Guenther  <rguenther@suse.de>

PR middle-end/52493
* tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.

* gcc.dg/torture/pr52493.c: New testcase.

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

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 6 Mar 2012 10:46:32 +0000 (10:46 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
octaword.
(external_model_kind): Improve documentation.
(vms_pragma_extern_model): Handle relaxed_redef.
(vms_c_register_pragma): Allow expansion for nomember_alignment.

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

12 years ago * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
gjl [Tue, 6 Mar 2012 10:36:21 +0000 (10:36 +0000)]
* doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
Some more notes on EIND usage and reorder EIND subsection.

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

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 6 Mar 2012 10:26:24 +0000 (10:26 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
* config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.

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

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 6 Mar 2012 10:10:58 +0000 (10:10 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* config/vms/t-vmsnative (version): Define.
* config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.

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

12 years ago2012-03-06 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 6 Mar 2012 09:54:06 +0000 (09:54 +0000)]
2012-03-06  Richard Guenther  <rguenther@suse.de>

PR lto/52097
* lto.c (uniquify_nodes): Merge TYPE_FIELDS of variant types.

* gcc.dg/lto/pr52097_0.c: New testcase.

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

12 years ago PR rtl-optimization/52250
abel [Tue, 6 Mar 2012 07:31:43 +0000 (07:31 +0000)]
    PR rtl-optimization/52250
        * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
        to put note list into.  Unconditionally call move_bb_info.
        (move_bb_info): Do not assert the blocks being in the same region,
        just drop the note list if they are not.

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

12 years agoDaily bump.
gccadmin [Tue, 6 Mar 2012 00:19:31 +0000 (00:19 +0000)]
Daily bump.

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