gcc.git
13 years ago* combine.c (try_combine): Remove useless local variable.
Eric Botcazou [Sun, 3 Apr 2011 09:19:26 +0000 (09:19 +0000)]
* combine.c (try_combine): Remove useless local variable.

From-SVN: r171901

13 years agotree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all non-variable...
Richard Guenther [Sun, 3 Apr 2011 08:30:53 +0000 (08:30 +0000)]
tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all non-variable offsets and compare the remaining bases of the two...

* tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
non-variable offsets and compare the remaining bases of the two
accesses instead of looking for exact same data-ref.

Co-Authored-By: Ira Rosen <ira.rosen@linaro.org>
From-SVN: r171900

13 years agoDaily bump.
GCC Administrator [Sun, 3 Apr 2011 00:17:58 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r171899

13 years agore PR libstdc++/48398 ([C++0x] std::unique_ptr<T, D> is broken when D::pointer is...
Jonathan Wakely [Sat, 2 Apr 2011 19:32:15 +0000 (20:32 +0100)]
re PR libstdc++/48398 ([C++0x] std::unique_ptr<T, D> is broken when D::pointer is not T*)

2011-04-02  Jonathan Wakely  <redi@gcc.gnu.org>

PR libstdc++/48398
* include/bits/unique_ptr.h (__tuple_type): Store pointer type.
* testsuite/20_util/unique_ptr/modifiers/48398.cc: New.
* testsuite/20_util/unique_ptr/requirements/pointer_type.cc: Remove
unused parameter name.

From-SVN: r171894

13 years agoAdd missing change log for r171531
Jonathan Wakely [Sat, 2 Apr 2011 19:31:04 +0000 (20:31 +0100)]
Add missing change log for r171531

From-SVN: r171893

13 years agore PR target/48416 (Revision 171890 failed to build)
Kai Tietz [Sat, 2 Apr 2011 18:41:49 +0000 (20:41 +0200)]
re PR target/48416 (Revision 171890 failed to build)

2011-04-02  Kai Tietz  <ktietz@redhat.com>

        PR target/48416
        * i386.c (ix86_function_arg_boundary): Fix printf formatter.

From-SVN: r171892

13 years agoRestore old state for accidentially escaped local change.
Kai Tietz [Sat, 2 Apr 2011 18:37:54 +0000 (20:37 +0200)]
Restore old state for accidentially escaped local change.

From-SVN: r171891

13 years agoi386.c (ix86_is_msabi_thiscall): New helper function.
Kai Tietz [Sat, 2 Apr 2011 17:08:33 +0000 (19:08 +0200)]
i386.c (ix86_is_msabi_thiscall): New helper function.

2011-04-02  Kai Tietz  <ktietz@redhat.com>

* i386.c (ix86_is_msabi_thiscall): New helper function.
(ix86_is_type_thiscall): New helper function.
(ix86_comp_type_attributes): Handle thiscall for method-functions
special.
(init_cumulative_args): Likewise.
(find_drap_reg): Likewise.
(ix86_static_chain): Likewise.
(x86_this_parameter): Likewise.
(x86_output_mi_thunk): Likewise.

From-SVN: r171890

13 years agoutils2.c (build_allocator): In the unconstrained array type case...
Eric Botcazou [Sat, 2 Apr 2011 09:38:22 +0000 (09:38 +0000)]
utils2.c (build_allocator): In the unconstrained array type case...

* gcc-interface/utils2.c (build_allocator): In the unconstrained array
type case, do not strip a padding type around the array type.

From-SVN: r171888

13 years agoutils.c (update_pointer_to): Finalize named pointer types.
Eric Botcazou [Sat, 2 Apr 2011 09:20:38 +0000 (09:20 +0000)]
utils.c (update_pointer_to): Finalize named pointer types.

* gcc-interface/utils.c (update_pointer_to): Finalize named pointer
types.

From-SVN: r171887

13 years agolang.opt (feliminate-unused-debug-types): Delete.
Eric Botcazou [Sat, 2 Apr 2011 09:08:37 +0000 (09:08 +0000)]
lang.opt (feliminate-unused-debug-types): Delete.

* gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
* gcc-interface/misc.c (gnat_handle_option): Remove special handling
code for -feliminate-unused-debug-types
(gnat_post_options): Likewise.

From-SVN: r171886

13 years agoutils.c (gnat_pushdecl): If this is a non-artificial declaration of a pointer type...
Eric Botcazou [Sat, 2 Apr 2011 08:59:45 +0000 (08:59 +0000)]
utils.c (gnat_pushdecl): If this is a non-artificial declaration of a pointer type...

* gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
distinct copy.

From-SVN: r171885

13 years agodecl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration...
Eric Botcazou [Sat, 2 Apr 2011 08:54:18 +0000 (08:54 +0000)]
decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration types.

* gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
DECL_ARTIFICIAL flag on enumeration types.

From-SVN: r171884

13 years agodecl.c (gnat_to_gnu_entity): Do not make fat pointer types artificial unconditionally.
Eric Botcazou [Sat, 2 Apr 2011 08:50:32 +0000 (08:50 +0000)]
decl.c (gnat_to_gnu_entity): Do not make fat pointer types artificial unconditionally.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
fat pointer types artificial unconditionally.
<E_Array_Subtype>: Attach the base array type as a parallel type if it
isn't artificial.

From-SVN: r171883

13 years agogigi.h (get_dummy_type): Declare.
Eric Botcazou [Sat, 2 Apr 2011 08:44:43 +0000 (08:44 +0000)]
gigi.h (get_dummy_type): Declare.

* gcc-interface/gigi.h (get_dummy_type): Declare.
(build_dummy_unc_pointer_types): Likewise.
(finish_fat_pointer_type): Likewise.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
fat pointer type has been built, complete it in place.
<E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
and thin pointers.  Remove useless variable.
(finish_fat_pointer_type): Make global and move to...
* gcc-interface/utils.c (finish_fat_pointer_type): ...here.
(get_dummy_type): New function.
(build_dummy_unc_pointer_types): Likewise.
(gnat_pushdecl): Propage the name to the anonymous variants only.
(update_pointer_to): Only adjust the pointer types in the unconstrained
array case.

From-SVN: r171882

13 years agoada-tree.h (DECL_TAFT_TYPE_P): New flag.
Eric Botcazou [Sat, 2 Apr 2011 08:36:32 +0000 (08:36 +0000)]
ada-tree.h (DECL_TAFT_TYPE_P): New flag.

* gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
if this is a Taft amendment type and the full declaration is available.
* gcc-interface/trans.c (process_type): Likewise.
If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
(process_freeze_entity): Likewise.
* gcc-interface/utils.c (dummy_global): New static variable.
(gnat_write_global_declarations): If there are types declared as used
at the global level, insert them in the global hash table.

From-SVN: r171881

13 years agogigi.h (record_builtin_type): Add ARTIFICIAL_P param.
Eric Botcazou [Sat, 2 Apr 2011 08:28:21 +0000 (08:28 +0000)]
gigi.h (record_builtin_type): Add ARTIFICIAL_P param.

* gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
* gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
copy.
(record_builtin_type): Add ARTIFICIAL_P parameter.  Set DECL_ARTIFICIAL
flag of the type accordingly.
* gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.

From-SVN: r171880

13 years agodecl.c (gnat_to_gnu_entity): Defer finalizing types when updating the pointers to...
Eric Botcazou [Sat, 2 Apr 2011 08:16:29 +0000 (08:16 +0000)]
decl.c (gnat_to_gnu_entity): Defer finalizing types when updating the pointers to the designated type.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
finalizing types when updating the pointers to the designated type.
<all>: Finalize the deferred types even if we didn't defer processing
of incomplete types in this invocation.

From-SVN: r171879

13 years agolibgo: Sort test output in libgo.sum and libgo.log.
Ian Lance Taylor [Sat, 2 Apr 2011 00:29:49 +0000 (00:29 +0000)]
libgo: Sort test output in libgo.sum and libgo.log.

From-SVN: r171868

13 years agoDaily bump.
GCC Administrator [Sat, 2 Apr 2011 00:18:10 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171867

13 years agodwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
Olivier Hainque [Fri, 1 Apr 2011 23:38:57 +0000 (23:38 +0000)]
dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.

* dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
(add_gnat_descriptive_type_attribute): New function.
(gen_array_type_die): Call it.
(gen_enumeration_type_die): Likewise.
(gen_struct_or_union_type_die): Likewise.
(modified_type_die): Likewise.
* langhooks.h (lang_hooks_for_types): New descriptive_type hook.
* langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
ada/
* gcc-interface/misc.c (gnat_descriptive_type): New function.
(LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
Co-Authored-By: Nicolas Setton <setton@adacore.com>
From-SVN: r171862

13 years ago* go.test/go-test.exp (go-set-goarch): Recognize alpha*-*-*.
Uros Bizjak [Fri, 1 Apr 2011 23:03:54 +0000 (01:03 +0200)]
* go.test/go-test.exp (go-set-goarch): Recognize alpha*-*-*.

From-SVN: r171861

13 years agolibgo: Support for alpha.
Ian Lance Taylor [Fri, 1 Apr 2011 23:02:16 +0000 (23:02 +0000)]
libgo: Support for alpha.

From Uros Bizjak.

From-SVN: r171860

13 years agolibgo: Try to guess the right type for select bits in mksysinfo.
Ian Lance Taylor [Fri, 1 Apr 2011 22:53:54 +0000 (22:53 +0000)]
libgo: Try to guess the right type for select bits in mksysinfo.

From-SVN: r171858

13 years agore PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)
Jakub Jelinek [Fri, 1 Apr 2011 21:14:36 +0000 (23:14 +0200)]
re PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)

PR bootstrap/48148
* dwarf2out.c (resolve_addr): Don't call force_decl_die
if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.

Revert:
2011-03-17  Richard Guenther  <rguenther@suse.de>

PR bootstrap/48148
* lto-cgraph.c (input_overwrite_node): Clear the abstract
origin for decls in other ltrans units.
(input_varpool_node): Likewise.

From-SVN: r171856

13 years agore PR middle-end/48335 (ICE in convert_move)
Jakub Jelinek [Fri, 1 Apr 2011 21:13:29 +0000 (23:13 +0200)]
re PR middle-end/48335 (ICE in convert_move)

PR middle-end/48335
* expr.c (expand_assignment): Handle all possibilities
if TO_RTX is CONCAT.
* expmed.c (store_bit_field_1): Avoid trying to create
invalid SUBREGs.
(store_split_bit_field): If SUBREG_REG (op0) or
op0 itself has smaller mode than word, return it
for offset 0 and const0_rtx for out-of-bounds stores.
If word is const0_rtx, skip it.

* gcc.c-torture/compile/pr48335-1.c: New test.
* gcc.dg/pr48335-1.c: New test.
* gcc.dg/pr48335-2.c: New test.
* gcc.dg/pr48335-3.c: New test.
* gcc.dg/pr48335-4.c: New test.
* gcc.dg/pr48335-5.c: New test.
* gcc.dg/pr48335-6.c: New test.
* gcc.dg/pr48335-7.c: New test.
* gcc.dg/pr48335-8.c: New test.
* gcc.target/i386/pr48335-1.c: New test.

From-SVN: r171855

13 years agoh8300.c (print_operand_address): Rename to...
Naveen H.S [Fri, 1 Apr 2011 20:47:28 +0000 (20:47 +0000)]
h8300.c (print_operand_address): Rename to...

* config/h8300/h8300.c (print_operand_address): Rename to...
(h8300_print_operand_address): ...this. Make static. Adjust comments.
Call h8300_print_operand and h8300_print_operand_address instead of
print_operand and print_operand_address. Declare.
(print_operand): Renake to...
(h8300_print_operand): ...this. Make static. Adjust comments.
Call h8300_print_operand instead of print_operand. Declare.
(h8300_print_operand_punct_valid_p): Moved from h8300.h file.
(h8300_register_move_cost): Likewise.
(TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
* config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
* config/h8300/h8300-protos.h (print_operand): Delete.
(print_operand_address): Delete.

From-SVN: r171853

13 years agore PR bootstrap/48400 (powerpc-apple-darwin9 fails to bootstrap at revision 171824)
Richard Henderson [Fri, 1 Apr 2011 20:23:00 +0000 (13:23 -0700)]
re PR bootstrap/48400 (powerpc-apple-darwin9 fails to bootstrap at revision 171824)

PR 48400
* dwarf2out.c (dwarf2out_source_line): Disable discriminators
in strict mode before dwarf4.  Re-order tests to early out
before switching sections.

From-SVN: r171852

13 years agoconstraints.md: New file.
Nathan Froyd [Fri, 1 Apr 2011 20:08:22 +0000 (20:08 +0000)]
constraints.md: New file.

* config/h8300/constraints.md: New file.
* config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
(*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
* config/h8300/predicates.md (bit_operand): Likewise.
(incdec_operand): Use satisfies_constraint_M and
satisfies_constraint_O.  Don't use C code block.
* config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
* config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
(compute_mov_length): Use satisfies_constraint_G.
(fix_bit_operand): Use satisfies_constraint_U.
* config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
(CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
(CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
(CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
(CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
(CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
(CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
(OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
(OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
(OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
(EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
(EXTRA_MEMORY_CONSTRAINT): Delete.

From-SVN: r171851

13 years ago2011-04-01 Vincent Lefevre <vincent+gcc@vinc17.org>
Vincent Lefevre [Fri, 1 Apr 2011 19:36:23 +0000 (21:36 +0200)]
2011-04-01  Vincent Lefevre  <vincent+gcc@vinc17.org>

PR c/36299
* gcc.dg/Waddress.c: New test.

From-SVN: r171850

13 years agore PR fortran/48352 (segfault in fortran/frontend-passes.c)
Thomas Koenig [Fri, 1 Apr 2011 19:31:23 +0000 (19:31 +0000)]
re PR fortran/48352 (segfault in fortran/frontend-passes.c)

2011-04-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/48352
* frontend-passes (cfe_register_funcs):  Don't
register functions if they appear as iterators in DO loops.

2011-04-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/48352
* gfortran.dg/function_optimize_3.f90:  New test.

From-SVN: r171849

13 years agoconfigure.ac (avr-*-*): Add comment about why libssp is disabled.
Joseph Myers [Fri, 1 Apr 2011 19:14:48 +0000 (20:14 +0100)]
configure.ac (avr-*-*): Add comment about why libssp is disabled.

* configure.ac (avr-*-*): Add comment about why libssp is disabled.
(microblaze*): Don't disable libssp.
* configure: Regenerate.

From-SVN: r171848

13 years agoFix 48262
Andrew Pinski [Fri, 1 Apr 2011 18:36:17 +0000 (11:36 -0700)]
Fix 48262

Co-Authored-By: Michael Meissner <meissner@linux.vnet.ibm.com>
From-SVN: r171847

13 years agoDon't add DW_AT_low_pc if the CU has no associated code.
Mark Wielaard [Fri, 1 Apr 2011 18:24:52 +0000 (18:24 +0000)]
Don't add DW_AT_low_pc if the CU has no associated code.

        * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
        high_pc attribute if the CU has no associated code. Only output
        DW_AT_entry_pc for CU if not generating strict dwarf and
        dwarf_version < 4.

From-SVN: r171846

13 years agohaifa-sched.c (prune_ready_list): New function, broken out of schedule_block.
Bernd Schmidt [Fri, 1 Apr 2011 17:48:35 +0000 (17:48 +0000)]
haifa-sched.c (prune_ready_list): New function, broken out of schedule_block.

* haifa-sched.c (prune_ready_list): New function, broken out of
schedule_block.
(schedule_block): Use it.

From-SVN: r171845

13 years ago20091002-1_0.C: Use "dg-require-effective-target fpic".
Bernd Schmidt [Fri, 1 Apr 2011 17:47:12 +0000 (17:47 +0000)]
20091002-1_0.C: Use "dg-require-effective-target fpic".

* g++.dg/lto/20091002-1_0.C: Use "dg-require-effective-target fpic".
* g++.dg/lto/20091002-2_0.C: Likewise.
* g++.dg/lto/20090303_0.c: Likewise.
* g++.dg/lto/20091004-1_0.C: Likewise.
* g++.dg/lto/20091002-3_0.C: Likewise.
* g++.dg/lto/20091004-2_0.C: Likewise.
* g++.dg/lto/20081123_0.C: Likewise.
* g++.dg/lto/20090313_0.C: Likewise.
* g++.dg/lto/20081109-1_0.C: Likewise.
* g++.dg/lto/20081219_0.C: Likewise.
* g++.dg/lto/20081204-1_0.C: Likewise.
* g++.dg/lto/20090302_0.C: Likewise.
* g++.dg/lto/20081119-1_0.C: Likewise.
* g++.dg/lto/20081118_0.C: Likewise.
* gcc.dg/lto/20091020-2_0.c: Likewise.
* gcc.dg/lto/20090210_0.c: Likewise.
* gcc.dg/lto/20081204-1_0.c: Likewise.
* gcc.dg/lto/20081224_0.c: Likewise.
* gcc.dg/lto/20090219_0.c: Likewise.
* gcc.dg/lto/20091014-1_0.c: Likewise.
* gcc.dg/lto/20091016-1_0.c: Likewise.
* gcc.dg/lto/20090206-2_0.c: Likewise.
* gcc.dg/lto/20090116_0.c: Likewise.
* gcc.dg/lto/20091013-1_0.c: Likewise.
* gcc.dg/lto/20091015-1_0.c: Likewise.
* gcc.dg/lto/20090126-2_0.c: Likewise.

From-SVN: r171844

13 years agosched-ebb.c (begin_schedule_ready): Remove second argument.
Bernd Schmidt [Fri, 1 Apr 2011 17:46:17 +0000 (17:46 +0000)]
sched-ebb.c (begin_schedule_ready): Remove second argument.

* sched-ebb.c (begin_schedule_ready): Remove second argument.
Split most of the code into...
(begin_move_insn): ... here.  New function.
(ebb_sched_info): Add a pointer to it.
* haifa-sched.c (scheduled_insns): New static variable.
(sched_extend_ready_list): Allocate it.
(schedule_block): Use it to record the order of scheduled insns.
Perform RTL changes to move insns only after all scheduling
decisions have been made.
* modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
begin_move_insn field.
* sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
* sched-int.h (struct haifa_sched_info): Remove second argument
from begin_schedule_ready hook.  Add new member begin_move_insn.
* sched-rgn.c (begin_schedule_ready): Remove second argument.
(rgn_const_sched_info): Add NULL entry for the begin_move_insn field.

From-SVN: r171843

13 years ago* sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
Bernd Schmidt [Fri, 1 Apr 2011 17:42:35 +0000 (17:42 +0000)]
* sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.

From-SVN: r171842

13 years agohaifa-sched.c (queue_insn): New arg REASON.
Bernd Schmidt [Fri, 1 Apr 2011 17:41:18 +0000 (17:41 +0000)]
haifa-sched.c (queue_insn): New arg REASON.

* haifa-sched.c (queue_insn): New arg REASON.  All callers
changed.  Print it in debugging output.

From-SVN: r171841

13 years agoifcvt.c (cond_exec_process_insns): Disallow converting a block that contains the...
Bernd Schmidt [Fri, 1 Apr 2011 17:40:27 +0000 (17:40 +0000)]
ifcvt.c (cond_exec_process_insns): Disallow converting a block that contains the prologue.

* ifcvt.c (cond_exec_process_insns): Disallow converting a block
that contains the prologue.

* gcc.c-torture/compile/20110401-1.c: New test.

From-SVN: r171840

13 years agodwarf2out.h (dwarf2out_frame_debug_init): Declare.
Bernd Schmidt [Fri, 1 Apr 2011 17:35:13 +0000 (17:35 +0000)]
dwarf2out.h (dwarf2out_frame_debug_init): Declare.

* dwarf2out.h (dwarf2out_frame_debug_init): Declare.
* dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
out of ...
(dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
* final.c (final_start_function): Call the new function rather
than using a NULL argument for dwarf2out_frame_debug.

From-SVN: r171839

13 years ago* config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
Ulrich Weigand [Fri, 1 Apr 2011 17:16:47 +0000 (17:16 +0000)]
* config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.

From-SVN: r171837

13 years agoAnd last the ChangeLog
Kai Tietz [Fri, 1 Apr 2011 16:02:30 +0000 (18:02 +0200)]
And last the ChangeLog

From-SVN: r171836

13 years agoMissing new files from previous patch.
Kai Tietz [Fri, 1 Apr 2011 14:59:25 +0000 (16:59 +0200)]
Missing new files from previous patch.

From-SVN: r171834

13 years agoconfig.gcc (*-*-mingw*): Allow as option the posix threading model.
Kai Tietz [Fri, 1 Apr 2011 14:43:22 +0000 (16:43 +0200)]
config.gcc (*-*-mingw*): Allow as option the posix threading model.

2011-04-01  Kai Tietz  <ktietz@redhat.com>

* config.gcc (*-*-mingw*): Allow as option the
posix threading model.
* config/i386/mingw32.h ( SPEC_PTHREAD1,  SPEC_PTHREAD2):
New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
definition.
(CPP_SPEC): Add pthread/no-pthread handling.
(LIB_SPEC): Likewise.
* config/i386/mingw-w64.h (CPP_SPEC):Likewise.
(LIB_SPEC): Likewise.
* config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
flag to pass -pthread option for shared libgcc build.
(SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
for shared libgcc build.
* config/i386/t-mingw-pthread: New file.
* config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
New define to enable use of library pthread by default.
* config/i386/mingw.opt (pthread): New driver option.
(no-pthread): New driver option.
* config/i386/cygming.opt: Make sure trailing empty line
is retained.
* config/i386/mingw-w64.opt: Likewise.

From-SVN: r171833

13 years agoc-decl.c (grokdeclarator): Fix formatting.
Gary Funck [Fri, 1 Apr 2011 14:07:52 +0000 (14:07 +0000)]
c-decl.c (grokdeclarator): Fix formatting.

2011-04-01  Gary Funck <gary@intrepid.com>

* c-decl.c (grokdeclarator): Fix formatting.

From-SVN: r171831

13 years agoconfigure.ac: Remove code setting CONFIG_SHELL, config_shell and moveifchange.
Joseph Myers [Fri, 1 Apr 2011 13:43:39 +0000 (14:43 +0100)]
configure.ac: Remove code setting CONFIG_SHELL, config_shell and moveifchange.

* configure.ac: Remove code setting CONFIG_SHELL, config_shell and
moveifchange.
* configure: Regenerate.
* Makefile.tpl: Use @SHELL@ not @config_shell@.
* Makefile.in: Regenerate.

From-SVN: r171830

13 years agoconfigure.ac (*-*-sysv4*): Don't enable libgomp.
Joseph Myers [Fri, 1 Apr 2011 13:40:46 +0000 (14:40 +0100)]
configure.ac (*-*-sysv4*): Don't enable libgomp.

* configure.ac (*-*-sysv4*): Don't enable libgomp.
(alpha*-*-*vms*, i[[34567]]86-*-sco3.2v5*, mn10300-*-*,
powerpc-*-chorusos*, powerpc*-*-eabi*, powerpc*-*-sysv*,
powerpc*-*-kaos*, s390x-ibm-tpf*, sparc64-*-elf*, v850*-*-*,
xtensa*-*-elf*, *-*-beos*, *-*-elf*, *-*-netware*, *-*-rtems*,
*-*-sysv[[45]]*, *-*-vxworks*, *-wrs-windiss): Remove
md_exec_prefix cases.
* configure: Regenerate.

From-SVN: r171829

13 years agoconfigure.ac: Separate cases disabling target-libssp...
Joseph Myers [Fri, 1 Apr 2011 11:59:22 +0000 (12:59 +0100)]
configure.ac: Separate cases disabling target-libssp...

* configure.ac: Separate cases disabling target-libssp,
target-libiberty, target-libstdc++-v3 and Fortran from general
case over targets.
* configure: Regenerate.

From-SVN: r171827

13 years agoconfigure.ac (*-*-chorusos): Don't disable libgcj.
Joseph Myers [Fri, 1 Apr 2011 11:57:09 +0000 (12:57 +0100)]
configure.ac (*-*-chorusos): Don't disable libgcj.

* configure.ac (*-*-chorusos): Don't disable libgcj.
(*-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*):
Remove case.
(*-*-kaos*): Don't disable GCC libraries, zlib or fastjar.
(arm-*-coff): Don't disable libgcj.
(arm*-*-linux-gnueabi): Remove useless assignment.
(arm-*-riscix*): Don't disable libgcj.
(bfin-*-*): Don't enable target-bsp and target-cygmon depending on
configuration.
(c4x-*-* | tic4x-*-*): Don't disable GCC libraries.
(c54x*-*-*): Remove case.
(tic54x-*-*): Don't disable GCC or GCC libraries.
(cris-*-* | crisv32-*-*): Don't handle *-*-aout.  Change *-*-elf
to *.
(d10v-*-*): Don't disable GCC libraries.
(d30v-*-*): Don't disable libgcj.
(h8500-*-*): Don't disable GCC libraries.
(i960-*-*): Don't disable libgcj.
(i[[3456789]]86-*-linux*): Don't handle *-*-*libc1*.
(i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
i[[3456789]]86-*-sysv4*, i[[3456789]]86-*-beos*): Don't disable
libgcj.
(m68k-*-coff*): Remove case.
(mmix-*-*): Don't disable libgloss on host.
(mn10200-*-*, mn10300-*-*): Remove cases.
(powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*,
powerpc-*-beos*, m68k-apollo-*, mips*-*-irix5*, mips*-*-bsd*):
Don't disable libgcj.
(romp-*-*): Remove case.
(sparclite-*-*, sparc-*-sunos4*): Don't disable libgcj.
(sparc-*-solaris2.[[0-6]] | sparc-*-solaris2.[[0-6]].*): Remove
case.
(v810-*-*): Don't disable GCC libraries.
(v850*-*-*, vax-*-vms, xtensa*-*-*): Remove cases.
(ip2k-*-*): Don't disable GCC libraries.
* configure: Regenerate.

From-SVN: r171826

13 years agoexpr.c (emit_block_move_via_movmem): Use n_generator_args instead of n_operands.
Richard Sandiford [Fri, 1 Apr 2011 08:19:13 +0000 (08:19 +0000)]
expr.c (emit_block_move_via_movmem): Use n_generator_args instead of n_operands.

gcc/
* expr.c (emit_block_move_via_movmem): Use n_generator_args
instead of n_operands.
(set_storage_via_setmem): Likewise.
* optabs.c (maybe_gen_insn): Likewise.
* config/arm/arm.c (arm_init_neon_builtins): Likewise.
* config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
(mips_expand_builtin_direct): Likewise.
* config/spu/spu.c (expand_builtin_args): Likewise.

From-SVN: r171823

13 years agorecog.h (insn_data_d): Add n_generator_args.
Richard Sandiford [Fri, 1 Apr 2011 08:16:47 +0000 (08:16 +0000)]
recog.h (insn_data_d): Add n_generator_args.

gcc/
* recog.h (insn_data_d): Add n_generator_args.
* genoutput.c (data): Likewise.
(output_insn_data): Print it.
(max_opno, num_dups): Delete.
(scan_operands): Just fill in "d->operand[...]".
(gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.

From-SVN: r171822

13 years agogensupport.h (pattern_stats): New structure.
Richard Sandiford [Fri, 1 Apr 2011 08:15:08 +0000 (08:15 +0000)]
gensupport.h (pattern_stats): New structure.

gcc/
* gensupport.h (pattern_stats): New structure.
* gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
* genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
(max_operand_1, max_operand_vec): Delete.
(gen_insn, gen_expand, gen_split): Use get_pattern_stats.

From-SVN: r171821

13 years agolibgo: Support Solaris 8/9.
Ian Lance Taylor [Fri, 1 Apr 2011 05:11:23 +0000 (05:11 +0000)]
libgo: Support Solaris 8/9.

From Rainer Orth.

From-SVN: r171818

13 years agoemit-rtl.c (emit_pattern_after_setloc): New function.
Nathan Froyd [Fri, 1 Apr 2011 03:05:36 +0000 (03:05 +0000)]
emit-rtl.c (emit_pattern_after_setloc): New function.

* emit-rtl.c (emit_pattern_after_setloc): New function.
(emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
(emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
(emit_pattern_after): New function.
(emit_insn_after, emit_jump_insn_after): Call it.
(emit_call_insn_after, emit_debug_insn_after): Likewise.
(emit_pattern_before_setloc): New function.
(emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
(emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
Likewise.
(emit_pattern_before): New function.
(emit_insn_before, emit_jump_insn_before): Call it.
(emit_call_insn_before, emit_debug_insn_before): Likewise.

From-SVN: r171817

13 years agodwarf2out.c (dw_separate_line_info_ref): Remove.
Richard Henderson [Fri, 1 Apr 2011 02:41:12 +0000 (19:41 -0700)]
dwarf2out.c (dw_separate_line_info_ref): Remove.

        * dwarf2out.c (dw_separate_line_info_ref): Remove.
        (dw_separate_line_info_entry): Remove.
        (enum dw_line_info_opcode): New.
        (dw_line_info_entry): Use it.
        (dw_line_info_table, dw_line_info_table_p): New.
        (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
        (line_info_table, line_info_label_num): Remove.
        (line_info_table_in_use): Remove.
        (separate_line_info_table): Remove.
        (separate_line_info_table_allocated): Remove.
        (separate_line_info_table_in_use): Remove.
        (LINE_INFO_TABLE_INCREMENT): Remove.
        (line_info_label_num): New.
        (cur_line_info_table): New.
        (text_section_line_info, cold_text_section_line_info): New.
        (separate_line_info): New.
        (SEPARATE_LINE_CODE_LABEL): Remove.
        (print_dwarf_line_table): Remove.
        (debug_dwarf): Don't dump it.
        (output_one_line_info_table): New.
        (output_line_info): Use it.
        (new_line_info_table): New.
        (set_cur_line_info_table): New.
        (dwarf2out_switch_text_section): Use it.
        (dwarf2out_begin_function): Likewise.
        (push_dw_line_info_entry): New.
        (dwarf2out_source_line): Rewrite for new line info tables.
        (dwarf2out_init): Remove dead initailizations.

From-SVN: r171816

13 years ago* go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.
Ian Lance Taylor [Fri, 1 Apr 2011 00:27:59 +0000 (00:27 +0000)]
* go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.

From-SVN: r171814

13 years agoDaily bump.
GCC Administrator [Fri, 1 Apr 2011 00:19:02 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r171813

13 years agolibgo: Recognize MIPS ABIs.
Ian Lance Taylor [Fri, 1 Apr 2011 00:17:10 +0000 (00:17 +0000)]
libgo: Recognize MIPS ABIs.

From-SVN: r171809

13 years agoexception_ptr.h needs the forward declaration because it's included from...
Jeffrey Yasskin [Thu, 31 Mar 2011 23:56:01 +0000 (23:56 +0000)]
exception_ptr.h needs the forward declaration because it's included from...

exception_ptr.h needs the forward declaration because it's
included from <typeinfo> before <typeinfo> defines std::type_info.

Tested:
  bootstrap + make check-c++ on x86_64.

libstdc++-v3/ChangeLog:

2011-03-31  Jeffrey Yasskin  <jyasskin@google.com>

* libsupc++/exception_ptr.h: Forward-declare std::type_info.
* libsupc++/nested_exception.h (__throw_with_nested): Remove a
redundant default argument from std::__throw_with_nested.

From-SVN: r171807

13 years agore PR go/47515 (Issues porting libgo to IRIX 6.5)
Ian Lance Taylor [Thu, 31 Mar 2011 23:55:21 +0000 (23:55 +0000)]
re PR go/47515 (Issues porting libgo to IRIX 6.5)

PR go/47515
libgo: Add Irix support.

From Rainer Orth.

From-SVN: r171806

13 years agolibgo: Set name of test when using DejaGNU tests.
Ian Lance Taylor [Thu, 31 Mar 2011 23:03:20 +0000 (23:03 +0000)]
libgo: Set name of test when using DejaGNU tests.

From-SVN: r171805

13 years agoopts.h (cl_option): Add comments to fields.
Joseph Myers [Thu, 31 Mar 2011 22:37:14 +0000 (23:37 +0100)]
opts.h (cl_option): Add comments to fields.

* opts.h (cl_option): Add comments to fields.  Add bit-fields for
various flags.
(CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
(CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
* opt-functions.awk (flag_init, switch_bit_fields): New.
(switch_flags): Don't handle flags moved to bit-fields.  Don't
generate CL_MISSING_OK or CL_SAVE.
* optc-gen.awk: Update to generate bit-field output as well as
flags field.
* gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
bit-field instead of CL_REJECT_DRIVER flag.
* opts-common.c (generate_canonical_option,
decode_cmdline_option): Use bit-fields instead of CL_* flags.
* opts.c (maybe_default_option): Use cl_reject_negative bit-field
instead of CL_REJECT_NEGATIVE flag.
* toplev.c (print_switch_values): Use cl_report bit-field instead
of CL_REPORT flag.

From-SVN: r171804

13 years agore PR go/48242 (gotest needs timeout mechanism)
Ian Lance Taylor [Thu, 31 Mar 2011 22:36:10 +0000 (22:36 +0000)]
re PR go/48242 (gotest needs timeout mechanism)

PR go/48242
libgo: Add timeout for tests.

From-SVN: r171803

13 years agolibgo: Remove unnecessary EINTR checks.
Ian Lance Taylor [Thu, 31 Mar 2011 22:19:54 +0000 (22:19 +0000)]
libgo: Remove unnecessary EINTR checks.

We always use SA_RESTART with signals, so
read/write/etc. should never return EINTR.

From-SVN: r171802

13 years agore PR c++/48277 (ICE for g++.dg/ext/altivec-cell-1.C on powerpc*-*-*)
Jason Merrill [Thu, 31 Mar 2011 22:03:50 +0000 (18:03 -0400)]
re PR c++/48277 (ICE for g++.dg/ext/altivec-cell-1.C on powerpc*-*-*)

PR c++/48277
* semantics.c (finish_call_expr): Remove assert.

From-SVN: r171801

13 years agotree-ssa-pre.c (create_component_ref_by_pieces_1): Drop a zero minimum index only...
Eric Botcazou [Thu, 31 Mar 2011 20:52:41 +0000 (20:52 +0000)]
tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop a zero minimum index only if it is redundant.

* tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
a zero minimum index only if it is redundant.

From-SVN: r171800

13 years agolibgo/syscalls: Use _C_long as the type of the select bits array.
Ian Lance Taylor [Thu, 31 Mar 2011 20:37:31 +0000 (20:37 +0000)]
libgo/syscalls: Use _C_long as the type of the select bits array.

From-SVN: r171799

13 years agore PR c++/48280 ([C++0x] ICE: tree check: expected var_decl or function_decl, have...
Jason Merrill [Thu, 31 Mar 2011 20:29:49 +0000 (16:29 -0400)]
re PR c++/48280 ([C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695)

PR c++/48280
* method.c (defaultable_fn_check): Templates are not defaultable.

From-SVN: r171797

13 years agoparser.c (cp_parser_init_declarator): Avoid redundant cp_finish_decl for member decla...
Jason Merrill [Thu, 31 Mar 2011 20:28:31 +0000 (16:28 -0400)]
parser.c (cp_parser_init_declarator): Avoid redundant cp_finish_decl for member declarations.

* parser.c (cp_parser_init_declarator): Avoid redundant
cp_finish_decl for member declarations.

From-SVN: r171796

13 years agore PR rtl-optimization/48381 (internal compiler error: in check_allocation, at ira...
Vladimir Makarov [Thu, 31 Mar 2011 19:54:02 +0000 (19:54 +0000)]
re PR rtl-optimization/48381 (internal compiler error: in check_allocation, at ira.c:2094)

2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/48381
* ira-color.c (assign_hard_reg): Use hard reg set intersection
instead of ira_class_hard_reg_index for calculating conflicting
hard registers.

From-SVN: r171795

13 years agocprop.c: Clean up hash table building.
Steven Bosscher [Thu, 31 Mar 2011 19:48:11 +0000 (19:48 +0000)]
cprop.c: Clean up hash table building.

* cprop.c: Clean up hash table building.
(reg_avail_info): Remove.
(oprs_available_p): Remove.
(record_last_reg_set_info): Remove.
(record_last_set_info): Remove.
(reg_available_p): New function.
(gcse_constant_p): Do not treat unfolded conditions as constants.
(make_set_regs_unavailable): New function.
(hash_scan_set): Simplify with new reg_available_p.
(compute_hash_table_work): Traverse insns stream only once.
Do not compute reg_avail_info. Traverse insns in reverse order.
Record implicit sets after recording explicit sets from the block.

From-SVN: r171794

13 years agolibgo Makefile: Fix typo in test case name.
Ian Lance Taylor [Thu, 31 Mar 2011 16:49:36 +0000 (16:49 +0000)]
libgo Makefile: Fix typo in test case name.

From-SVN: r171793

13 years agoTaking a slice of an array requires moving the array to the heap.
Ian Lance Taylor [Thu, 31 Mar 2011 16:47:17 +0000 (16:47 +0000)]
Taking a slice of an array requires moving the array to the heap.

From-SVN: r171792

13 years agolibgo: Generate DejaGNU like .sum and .log files for "make check".
Ian Lance Taylor [Thu, 31 Mar 2011 16:11:56 +0000 (16:11 +0000)]
libgo: Generate DejaGNU like .sum and .log files for "make check".

From-SVN: r171791

13 years agore PR libstdc++/48382 (ctype_noninline.h should not be installed)
Paolo Carlini [Thu, 31 Mar 2011 16:06:12 +0000 (16:06 +0000)]
re PR libstdc++/48382 (ctype_noninline.h should not be installed)

2011-03-31  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/48382
* src/ctype.cc: Do not include <bits/ctype_noninline.h>.
* src/Makefile.am: Add ctype_configure_char.cc to host_sources.
* src/Makefile.in: Regenerate.
* include/Makefile.am: Remove ctype_noninline.h from host_headers.
* include/Makefile.in: Regenerate.
* doc/xml/manual/internals.xml: Update.
* config/os/newlib/ctype_noninline.h: Fixup and rename to...
* config/os/newlib/ctype_configure_char.cc: ... this.
* config/os/aix/ctype_noninline.h: Likewise.
* config/os/aix/ctype_configure_char.cc: Likewise.
* config/os/vxworks/ctype_noninline.h: Likewise.
* config/os/vxworks/ctype_configure_char.cc
* config/os/hpux/ctype_noninline.h: Likewise.
* config/os/hpux/ctype_configure_char.cc: Likewise.
* config/os/gnu-linux/ctype_noninline.h: Likewise.
* config/os/gnu-linux/ctype_configure_char.cc: Likewise.
* config/os/mingw32/ctype_noninline.h: Likewise.
* config/os/mingw32/ctype_configure_char.cc: Likewise.
* config/os/tpf/ctype_noninline.h: Likewise.
* config/os/tpf/ctype_configure_char.cc: Likewise.
* config/os/uclibc/ctype_noninline.h: Likewise.
* config/os/uclibc/ctype_configure_char.cc: Likewise.
* config/os/bionic/ctype_noninline.h: Likewise.
* config/os/bionic/ctype_configure_char.cc: Likewise.
* config/os/djgpp/ctype_noninline.h: Likewise.
* config/os/djgpp/ctype_configure_char.cc: Likewise.
* config/os/qnx/qnx6.1/ctype_noninline.h: Likewise.
* config/os/qnx/qnx6.1/ctype_configure_char.cc: Likewise.
* config/os/bsd/netbsd/ctype_noninline.h: Likewise.
* config/os/bsd/netbsd/ctype_configure_char.cc: Likewise.
* config/os/bsd/darwin/ctype_noninline.h: Likewise.
* config/os/bsd/darwin/ctype_configure_char.cc: Likewise.
* config/os/bsd/freebsd/ctype_noninline.h: Likewise.
* config/os/bsd/freebsd/ctype_configure_char.cc: Likewise.
* config/os/irix/irix6.5/ctype_noninline.h: Likewise.
* config/os/irix/irix6.5/ctype_configure_char.cc: Likewise.
* config/os/generic/ctype_noninline.h: Likewise.
* config/os/generic/ctype_configure_char.cc: Likewise.
* config/os/solaris/solaris2.7/ctype_noninline.h: Likewise.
* config/os/solaris/solaris2.7/ctype_configure_char.cc: Likewise.

From-SVN: r171790

13 years agobuiltins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
Michael Matz [Thu, 31 Mar 2011 15:59:10 +0000 (15:59 +0000)]
builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.

* builtins.c (build_va_arg_indirect_ref): Use
build_simple_mem_ref_loc.

From-SVN: r171789

13 years agoreload1.c (elimination_effects): Fix typo in recent change.
Jeff Law [Thu, 31 Mar 2011 15:55:19 +0000 (09:55 -0600)]
reload1.c (elimination_effects): Fix typo in recent change.

* reload1.c (elimination_effects): Fix typo in recent change.

From-SVN: r171788

13 years agoh8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
Anatoly Sokolov [Thu, 31 Mar 2011 15:22:32 +0000 (19:22 +0400)]
h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.

* config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
* config/h8300/h8300-protos.h (h8300_get_index): Remove.
* config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
(h8300_mode_dependent_address_p): New function.
(h8300_get_index): Make static.

From-SVN: r171787

13 years agore PR target/16292 (Test power.f90 fails on irix6.5 for complex**real)
Rainer Orth [Thu, 31 Mar 2011 15:02:33 +0000 (15:02 +0000)]
re PR target/16292 (Test power.f90 fails on irix6.5 for complex**real)

PR target/16292
* gfortran.dg/g77/cabs.f: Only xfail execution on mips-sgi-irix6*
with -O0.

From-SVN: r171784

13 years agodwarf2.h (dwarf_line_number_hp_sfc_ops): New enum.
Tristan Gingold [Thu, 31 Mar 2011 14:02:39 +0000 (14:02 +0000)]
dwarf2.h (dwarf_line_number_hp_sfc_ops): New enum.

2011-03-31  Tristan Gingold  <gingold@adacore.com>

* dwarf2.h (dwarf_line_number_hp_sfc_ops): New enum.

From-SVN: r171781

13 years agotree-ssa-forwprop.c (forward_propagate_into_cond): Avoid typo potentially leading...
Jeff Law [Thu, 31 Mar 2011 13:28:29 +0000 (07:28 -0600)]
tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid typo potentially leading to null pointer dereference.

* tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
typo potentially leading to null pointer dereference.

* caller-save.c (new_saved_hard_reg): Eliminate return value.
(setup_save_areas): Corresponding changes to avoid useless
assignments.

* jump.c (reversed_comparison_code_parts): Avoid successive return
statements when REVERSE_CONDITION is defined.

* expr.c (expand_assignment): Avoid useless assignments.
(expand_expr_real_1): Likewise.
(expand_expr_real_2): Avoid useless statements.

* tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.

* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.

* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
statements.

* stmt.c (expand_expr_stmt): Avoid useless assignment.

From-SVN: r171780

13 years agore PR target/47109 (m68k-netbsdelf: collect2 build fails with undefined reference...
Joseph Myers [Thu, 31 Mar 2011 12:13:13 +0000 (13:13 +0100)]
re PR target/47109 (m68k-netbsdelf: collect2 build fails with undefined reference to m68k_cpu_flags)

PR target/47109
* doc/tm.texi.in (TARGET_VERSION): Remove.
* doc/tm.texi: Regenerate.
* system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
* collect2.c (main): Don't use TARGET_VERSION.
* mips-tdump.c (main): Don't use TARGET_VERSION.
* mips-tfile.c (main): Don't use TARGET_VERSION.
* config.gcc (powerpc-wrs-vxworksae): Don't use
rs6000/vxworksae.h.
* config/rs6000/vxworksae.h: Remove.
* config/alpha/alpha.h (TARGET_VERSION): Remove.
* config/alpha/freebsd.h (TARGET_VERSION): Remove.
* config/alpha/linux-elf.h (TARGET_VERSION): Remove.
* config/alpha/netbsd.h (TARGET_VERSION): Remove.
* config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
* config/arm/arm.h (TARGET_VERSION): Remove.
* config/arm/coff.h (TARGET_VERSION): Remove.
* config/arm/ecos-elf.h (TARGET_VERSION): Remove.
* config/arm/elf.h (TARGET_VERSION): Remove.
* config/arm/freebsd.h (TARGET_VERSION): Remove.
* config/arm/linux-elf.h (TARGET_VERSION): Remove.
* config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
* config/arm/pe.h (TARGET_VERSION): Remove.
* config/arm/rtems-elf.h (TARGET_VERSION): Remove.
* config/arm/semi.h (TARGET_VERSION): Remove.
* config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
* config/arm/unknown-elf.h (TARGET_VERSION): Remove.
* config/arm/vxworks.h (TARGET_VERSION): Remove.
* config/avr/avr.h (TARGET_VERSION): Remove.
* config/bfin/bfin.h (TARGET_VERSION): Remove.
* config/fr30/fr30.h (TARGET_VERSION): Remove.
* config/frv/frv.h (TARGET_VERSION): Remove.
* config/h8300/h8300.h (TARGET_VERSION): Remove.
* config/i386/cygwin.h (TARGET_VERSION): Remove.
* config/i386/darwin.h (TARGET_VERSION): Remove.
* config/i386/darwin64.h (TARGET_VERSION): Remove.
* config/i386/djgpp.h (TARGET_VERSION): Remove.
* config/i386/freebsd.h (TARGET_VERSION): Remove.
* config/i386/freebsd64.h (TARGET_VERSION): Remove.
* config/i386/gnu.h (TARGET_VERSION): Remove.
* config/i386/i386-interix.h (TARGET_VERSION): Remove.
* config/i386/i386elf.h (TARGET_VERSION): Remove.
* config/i386/linux.h (TARGET_VERSION): Remove.
* config/i386/linux64.h (TARGET_VERSION): Remove.
* config/i386/lynx.h (TARGET_VERSION): Remove.
* config/i386/mingw32.h (TARGET_VERSION): Remove.
* config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
* config/i386/netbsd64.h (TARGET_VERSION): Remove.
* config/i386/netware.h (TARGET_VERSION): Remove.
* config/i386/nto.h (TARGET_VERSION): Remove.
* config/i386/openbsd.h (TARGET_VERSION): Remove.
* config/i386/vxworks.h (TARGET_VERSION): Remove.
* config/ia64/elf.h (TARGET_VERSION): Remove.
* config/ia64/freebsd.h (TARGET_VERSION): Remove.
* config/ia64/hpux.h (TARGET_VERSION): Remove.
* config/ia64/linux.h (TARGET_VERSION): Remove.
* config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
* config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
* config/lm32/lm32.h (TARGET_VERSION): Remove.
* config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
* config/m32c/m32c.h (TARGET_VERSION): Remove.
* config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
* config/m32r/m32r.h (TARGET_VERSION): Remove.
* config/m68k/linux.h (TARGET_VERSION): Remove.
* config/m68k/m68k.h (TARGET_VERSION): Remove.
* config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
* config/m68k/uclinux.h (TARGET_VERSION): Remove.
* config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
* config/mep/mep.h (TARGET_VERSION): Remove.
* config/microblaze/microblaze.h (MICROBLAZE_VERSION,
MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
* config/mips/iris6.h (MACHINE_TYPE): Remove.
* config/mips/linux.h (TARGET_VERSION): Remove.
* config/mips/netbsd.h (MACHINE_TYPE): Remove.
* config/mips/vxworks.h (TARGET_VERSION): Remove.
* config/mmix/mmix.h (TARGET_VERSION): Remove.
* config/mn10300/linux.h (TARGET_VERSION): Remove.
* config/mn10300/mn10300.h (TARGET_VERSION): Remove.
* config/pa/pa.h (TARGET_VERSION): Remove.
* config/pdp11/pdp11.h (TARGET_VERSION): Remove.
* config/picochip/picochip.h (TARGET_VERSION): Remove.
* config/rs6000/aix.h (TARGET_VERSION): Remove.
* config/rs6000/darwin.h (TARGET_VERSION): Remove.
* config/rs6000/darwin64.h (TARGET_VERSION): Remove.
* config/rs6000/eabi.h (TARGET_VERSION): Remove.
* config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
* config/rs6000/eabisim.h (TARGET_VERSION): Remove.
* config/rs6000/eabispe.h (TARGET_VERSION): Remove.
* config/rs6000/freebsd.h (TARGET_VERSION): Remove.
* config/rs6000/linux.h (TARGET_VERSION): Remove.
* config/rs6000/linux64.h (TARGET_VERSION): Remove.
* config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
* config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
* config/rs6000/lynx.h (TARGET_VERSION): Remove.
* config/rs6000/netbsd.h (TARGET_VERSION): Remove.
* config/rs6000/sysv4.h (TARGET_VERSION): Remove.
* config/rs6000/vxworks.h (TARGET_VERSION): Remove.
* config/s390/linux.h (TARGET_VERSION): Remove.
* config/s390/s390.h (TARGET_VERSION): Remove.
* config/s390/tpf.h (TARGET_VERSION): Remove.
* config/score/score.h (TARGET_VERSION): Remove.
* config/sh/linux.h (TARGET_VERSION): Remove.
* config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
TARGET_VERSION_CPU, TARGET_VERSION): Remove.
* config/sh/sh.h (TARGET_VERSION): Remove.
* config/sh/sh64.h (TARGET_VERSION): Remove.
* config/sh/superh.h (TARGET_VERSION): Remove.
* config/sh/vxworks.h (TARGET_VERSION): Remove.
* config/sparc/freebsd.h (TARGET_VERSION): Remove.
* config/sparc/linux.h (TARGET_VERSION): Remove.
* config/sparc/linux64.h (TARGET_VERSION): Remove.
* config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
TARGET_NAME32, TARGET_NAME): Remove.
* config/sparc/openbsd64.h (TARGET_VERSION): Remove.
* config/sparc/sp-elf.h (TARGET_VERSION): Remove.
* config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
* config/sparc/sysv4.h (TARGET_VERSION): Remove.
* config/sparc/vxworks.h (TARGET_VERSION): Remove.
* config/spu/spu.h (TARGET_VERSION): Remove.
* config/stormy16/stormy16.h (TARGET_VERSION): Remove.
* config/v850/v850.h (TARGET_VERSION): Remove.
* config/vax/linux.h (TARGET_VERSION): Remove.
* config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
* config/xtensa/elf.h (TARGET_VERSION): Remove.
* config/xtensa/linux.h (TARGET_VERSION): Remove.

From-SVN: r171779

13 years agore PR target/48142 (miscompilation with -Os -mpreferred-stack-boundary=5 -fstack...
Eric Botcazou [Thu, 31 Mar 2011 11:10:59 +0000 (11:10 +0000)]
re PR target/48142 (miscompilation with -Os -mpreferred-stack-boundary=5 -fstack-check)

PR target/48142
* config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
frame-related from frame-unrelated adjustments to the stack pointer.

From-SVN: r171777

13 years agomakefile.vms (OBJS): Add filename_cmp.obj
Tristan Gingold [Thu, 31 Mar 2011 11:09:09 +0000 (11:09 +0000)]
makefile.vms (OBJS): Add filename_cmp.obj

2011-03-31  Tristan Gingold  <gingold@adacore.com>

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

From-SVN: r171776

13 years agore PR lto/48246 (ICE in lto_wpa_write_files)
Richard Guenther [Thu, 31 Mar 2011 10:02:00 +0000 (10:02 +0000)]
re PR lto/48246 (ICE in lto_wpa_write_files)

2011-03-31  Richard Guenther  <rguenther@suse.de>

PR lto/48246
* lto.c (lto_wpa_write_files): Disable assert for non-empty
partitions when checking is not enabled.

From-SVN: r171775

13 years agocommon.opt (fdebug-types-section): Move earlier.
Jakub Jelinek [Thu, 31 Mar 2011 08:50:03 +0000 (10:50 +0200)]
common.opt (fdebug-types-section): Move earlier.

* common.opt (fdebug-types-section): Move earlier.
* doc/invoke.texi: Fix up -fno-debug-types-section documentation.

From-SVN: r171773

13 years agors6000.c (rs6000_handle_option): Remove unused isel var.
Andreas Tobler [Thu, 31 Mar 2011 06:50:23 +0000 (08:50 +0200)]
rs6000.c (rs6000_handle_option): Remove unused isel var.

2011-03-31  Andreas Tobler  <andreast@fgznet.ch>

* config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
var.

From-SVN: r171770

13 years agotree.h (CASE_CHAIN): Define.
Nathan Froyd [Thu, 31 Mar 2011 02:26:18 +0000 (02:26 +0000)]
tree.h (CASE_CHAIN): Define.

* tree.h (CASE_CHAIN): Define.
* tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
(gimple_redirect_edge_and_branch): Likewise.

From-SVN: r171769

13 years agore PR middle-end/48367 (200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled)
Vladimir Makarov [Thu, 31 Mar 2011 01:04:43 +0000 (01:04 +0000)]
re PR middle-end/48367 (200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled)

2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>

PR middle-end/48367
* ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
calculation.

From-SVN: r171767

13 years agoDaily bump.
GCC Administrator [Thu, 31 Mar 2011 00:18:42 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171766

13 years agoAdd PR marker
Jeff Law [Thu, 31 Mar 2011 00:05:28 +0000 (18:05 -0600)]
Add PR marker

From-SVN: r171761

13 years agoreload1.c (reload): Fix botch in last change.
Jeff Law [Thu, 31 Mar 2011 00:01:53 +0000 (18:01 -0600)]
reload1.c (reload): Fix botch in last change.

* reload1.c (reload): Fix botch in last change.
* reload.h (struct reload): Fix typo introduced in last change.

From-SVN: r171759

13 years agolibgo: Use waitpid on systems which do not have wait4.
Ian Lance Taylor [Wed, 30 Mar 2011 23:05:04 +0000 (23:05 +0000)]
libgo: Use waitpid on systems which do not have wait4.

From-SVN: r171758

13 years agolibgo: Support systems which do not have strerror_r.
Ian Lance Taylor [Wed, 30 Mar 2011 22:34:55 +0000 (22:34 +0000)]
libgo: Support systems which do not have strerror_r.

From-SVN: r171757

13 years agolibgo: Use the right files on Solaris variants.
Ian Lance Taylor [Wed, 30 Mar 2011 21:45:57 +0000 (21:45 +0000)]
libgo: Use the right files on Solaris variants.

From-SVN: r171753

13 years agoCopy env.go from master Go testsuite.
Ian Lance Taylor [Wed, 30 Mar 2011 21:27:37 +0000 (21:27 +0000)]
Copy env.go from master Go testsuite.

From-SVN: r171752

13 years agogo-test.exp (go-set-goarch): Use sparc64 for 64-bit SPARC.
Rainer Orth [Wed, 30 Mar 2011 21:14:04 +0000 (21:14 +0000)]
go-test.exp (go-set-goarch): Use sparc64 for 64-bit SPARC.

* go.test/go-test.exp (go-set-goarch): Use sparc64 for 64-bit
SPARC.

From-SVN: r171751

13 years agoarm.opt (mhard-float, [...]): Mark Undocumented.
Joseph Myers [Wed, 30 Mar 2011 21:12:33 +0000 (22:12 +0100)]
arm.opt (mhard-float, [...]): Mark Undocumented.

* config/arm/arm.opt (mhard-float, msoft-float): Mark
Undocumented.  Remove help text.
* doc/invoke.texi (ARM Options): Don't document -msoft-float and
-mhard-float.

From-SVN: r171750

13 years agore PR c++/48212 ([C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on inval...
Jason Merrill [Wed, 30 Mar 2011 20:29:13 +0000 (16:29 -0400)]
re PR c++/48212 ([C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code)

PR c++/48212
* semantics.c (non_const_var_error): Just return if DECL_INITIAL
is error_mark_node.

From-SVN: r171748