gcc.git
13 years agogcse.c (modify_mem_list): Convert to an array of VECs.
Nathan Froyd [Tue, 5 Apr 2011 17:20:44 +0000 (17:20 +0000)]
gcse.c (modify_mem_list): Convert to an array of VECs.

* gcse.c (modify_mem_list): Convert to an array of VECs.
(canon_modify_mem_list, compute_transp): Tweak formatting.
(alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
(load_killed_in_block_p): Likewise.
(record_last_mem_set_info): Likewise.
(clear_modify_mem_tables): Likewise.

From-SVN: r171992

13 years agore PR middle-end/48461 (function.c:5268:1: error: emit_use_return_register_into_block...
Tom de Vries [Tue, 5 Apr 2011 15:54:13 +0000 (15:54 +0000)]
re PR middle-end/48461 (function.c:5268:1: error: emit_use_return_register_into_block defined but not used)

2011-04-05  Tom de Vries  <tom@codesourcery.com>

PR middle-end/48461
* function.c (emit_use_return_register_into_block): Only define if
HAVE_return.

From-SVN: r171990

13 years ago* stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
Eric Botcazou [Tue, 5 Apr 2011 14:34:28 +0000 (14:34 +0000)]
* stor-layout.c (self_referential_size): Fix 2010-07-13 commit.

From-SVN: r171988

13 years agotrans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Use build_function_type_list...
Nathan Froyd [Tue, 5 Apr 2011 14:25:32 +0000 (14:25 +0000)]
trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Use build_function_type_list instead of build_function_type.

* trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Use
build_function_type_list instead of build_function_type.  Correct
argument order for func_frexp and func_scalbn.

From-SVN: r171987

13 years agore PR target/43920 (Choosing conditional execution over conditional branches for...
Tom de Vries [Tue, 5 Apr 2011 13:01:50 +0000 (13:01 +0000)]
re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)

2011-04-05  Tom de Vries  <tom@codesourcery.com>

PR target/43920
* gcc.target/arm/pr43920-1.c: New test.

From-SVN: r171986

13 years agorx-opts.h: New.
Joseph Myers [Tue, 5 Apr 2011 12:28:41 +0000 (13:28 +0100)]
rx-opts.h: New.

* config/rx/rx-opts.h: New.
* config/rx/rx.c (rx_cpu_type): Remove.
(rx_handle_option): Don't assert that global structures are in
use.  Access variables via opts pointer.  Defer most handling of
OPT_mint_register_.  Use error_at.
(rx_option_override): Handle deferred OPT_mint_register_ here.
* config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
* config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
(mcpu=): Use Enum and specifiy rx_cpu_type with Var.
(rx_cpu_types): New Enum and EnumValue entries.
(mint-register=): Use Defer and use Var accordingly.

From-SVN: r171984

13 years agore PR lto/48431 (patch to fix a compile error in lto-plugin.c when using older C...
Richard Guenther [Tue, 5 Apr 2011 12:11:08 +0000 (12:11 +0000)]
re PR lto/48431 (patch to fix a compile error in lto-plugin.c when using older C compilers)

2011-04-05  Richard Guenther  <rguenther@suse.de>

PR bootstrap/48431
* lto-plugin.c (claim_file_handler): Do not declare vars in code.

From-SVN: r171982

13 years agodebug.h (debug_flush_symbol_queue, [...]): Delete.
Nathan Froyd [Tue, 5 Apr 2011 12:02:55 +0000 (12:02 +0000)]
debug.h (debug_flush_symbol_queue, [...]): Delete.

* debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
(debug_free_queue, debug_nesting, symbol_queue_index): Delete.
* final.c (debug_flush_symbol_queue, debug_queue_symbol):
Move these...
(debug_free_queue, debug_nesting, symbol_queue_index):
...and these...
* dbxout.c: ...to here.  Make static.

From-SVN: r171981

13 years agogcse.c (modify_pair): Define.
Nathan Froyd [Tue, 5 Apr 2011 11:40:10 +0000 (11:40 +0000)]
gcse.c (modify_pair): Define.

* gcse.c (modify_pair): Define.  Define a VEC of it.
(canon_modify_mem_list): Convert to an array of VECs.
(free_insn_expr_list_list): Delete.
(clear_modify_mem_tables): Call VEC_free instead.
(record_last_mem_set_info): Don't modify canon_modify_mem_list.
(alloc_gcse_mem): Adjust for canon_modify_mem_list change.
(canon_list_insert, compute_transp): Likewise.

From-SVN: r171980

13 years agore PR target/43920 (Choosing conditional execution over conditional branches for...
Tom de Vries [Tue, 5 Apr 2011 10:33:13 +0000 (10:33 +0000)]
re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)

2011-04-05  Tom de Vries  <tom@codesourcery.com>

PR target/43920
* config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
for size.

From-SVN: r171978

13 years agore PR target/43920 (Choosing conditional execution over conditional branches for...
Tom de Vries [Tue, 5 Apr 2011 10:12:14 +0000 (10:12 +0000)]
re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)

2011-04-05  Tom de Vries  <tom@codesourcery.com>

PR target/43920
* function.c (emit_use_return_register_into_block): New function.
(thread_prologue_and_epilogue_insns): Use
emit_use_return_register_into_block.

From-SVN: r171977

13 years agore PR target/43920 (Choosing conditional execution over conditional branches for...
Tom de Vries [Tue, 5 Apr 2011 10:04:44 +0000 (10:04 +0000)]
re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)

2011-04-05  Tom de Vries  <tom@codesourcery.com>

PR target/43920
* cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
insn.

From-SVN: r171976

13 years agocfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
Tom de Vries [Tue, 5 Apr 2011 09:43:12 +0000 (09:43 +0000)]
cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.

2011-04-05  Tom de Vries  <tom@codesourcery.com>

* cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.

From-SVN: r171975

13 years agoMinor tweaks
Eric Botcazou [Tue, 5 Apr 2011 08:41:58 +0000 (08:41 +0000)]
Minor tweaks

From-SVN: r171974

13 years agoFor Yufeng Zhang.
Yufeng Zhang [Tue, 5 Apr 2011 08:35:31 +0000 (08:35 +0000)]
For Yufeng Zhang.

2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>

        * config/arm/arm.md (define_constants for unspec): Replace with
        define_c_enum.
        (define_constants for unspecv): Replace with define_c_enum.
        * config/arm/neon.md (define_constants for unspec): Replace with
        define_c_enum.

From-SVN: r171973

13 years agoThe parameters for functions from the frexp family were the wrong way round.
Duncan Sands [Tue, 5 Apr 2011 07:40:27 +0000 (09:40 +0200)]
The parameters for functions from the frexp family were the wrong way round.

The parameters for functions from the frexp family were the wrong way
round.  Swap them.

From-SVN: r171971

13 years agoUse backend interface for labels and goto statements.
Ian Lance Taylor [Tue, 5 Apr 2011 05:57:39 +0000 (05:57 +0000)]
Use backend interface for labels and goto statements.

* go-gcc.c (class Blabel): Define.
(Gcc_backend::make_expression): New function.
(get_identifier_from_string): New function.
(Gcc_backend::label): New function.
(Gcc_backend::label_definition_statement): New function.
(Gcc_backend::goto_statement): New function.
(Gcc_backend::label_address): New function.
(expression_to_tree): New function.
* Make-lang.in (go/expressions.o): Depend on
go/gofrontend/backend.h.
(go/gogo.o): Likewise.

From-SVN: r171968

13 years agoDaily bump.
GCC Administrator [Tue, 5 Apr 2011 00:18:31 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r171966

13 years agolibgo: Use MAP_FIXED if necessary to grab arena.
Ian Lance Taylor [Tue, 5 Apr 2011 00:02:15 +0000 (00:02 +0000)]
libgo: Use MAP_FIXED if necessary to grab arena.

From Rainer Orth.

PR go/48240
* configure.ac: Check for mincore.
* configure: Regenerate.
* config.h.in: Regenerate.
* runtime/mem.c: Include unistd.h.
(addrspace_free): New function.
(runtime_SysMap): Retry 64-bit runtime_mmap with MAP_FIXED.

From-SVN: r171961

13 years agolibgo: Always initialize semaphores.
Rainer Orth [Mon, 4 Apr 2011 23:43:59 +0000 (23:43 +0000)]
libgo: Always initialize semaphores.

2011-04-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR go/48222
* runtime/malloc.goc (runtime_mallocinit): Call
runtime_Mprof_Init, runtime_initfintab.
* runtime/cpuprof.c (runtime_cpuprofinit): New function.
* runtime/runtime.h (runtime_cpuprofinit): Declare it.
* runtime/go-main.c (main): Use it.

From-SVN: r171960

13 years agoUse backend interface for return statements.
Ian Lance Taylor [Mon, 4 Apr 2011 23:19:09 +0000 (23:19 +0000)]
Use backend interface for return statements.

* go-gcc.cc: #include "tree-iterator.h", "gimple.h", and "gogo.h".
(class Bfunction): Define.
(Gcc_backend::assignment_statement): Rename from assignment.
Check for errors.
(Gcc_backend::return_statement): New function.
(tree_to_function): New function.
* Make-lang.in (go/go-gcc.o): Depend on tree-iterator.h,
$(GIMPLE_H), and $(GO_GOGO_H).

From-SVN: r171959

13 years agoFor Yufeng Zhang - Fix typos and errors in testcase.
Yufeng Zhang [Mon, 4 Apr 2011 23:15:55 +0000 (23:15 +0000)]
For Yufeng Zhang - Fix typos and errors in testcase.

From-SVN: r171958

13 years ago* es.po: Update.
Joseph Myers [Mon, 4 Apr 2011 22:20:07 +0000 (23:20 +0100)]
* es.po: Update.

From-SVN: r171956

13 years agore PR bootstrap/48400 (powerpc-apple-darwin9 fails to bootstrap at revision 171824)
Richard Henderson [Mon, 4 Apr 2011 22:13:54 +0000 (15:13 -0700)]
re PR bootstrap/48400 (powerpc-apple-darwin9 fails to bootstrap at revision 171824)

PR 48400
* dwarf2out.c (output_line_info): Always emit line info from
at least one section.
(dwarf2out_init): Create text_section_line_info here ...
(set_cur_line_info_table): ... not here.

From-SVN: r171955

13 years agofrontend-passes: (optimize_lexical_comparison): New function.
Thomas Koenig [Mon, 4 Apr 2011 21:02:24 +0000 (21:02 +0000)]
frontend-passes: (optimize_lexical_comparison): New function.

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

* frontend-passes: (optimize_lexical_comparison): New function.
(optimize_expr): Call it.
(optimize_comparison): Also handle lexical comparison functions.
Return false instad of -2 for unequal comparison.

From-SVN: r171954

13 years agofrontend-passes: (optimize_lexical_comparison): New function.
Thomas Koenig [Mon, 4 Apr 2011 20:55:02 +0000 (20:55 +0000)]
frontend-passes: (optimize_lexical_comparison): New function.

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

* frontend-passes: (optimize_lexical_comparison): New function.
(optimize_expr): Call it.
(optimize_comparison): Also handle lexical comparison functions.
Return false instad of -2 for unequal comparison.

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

* gfortran.dg/character_comparison_8.f90:  New test.

From-SVN: r171953

13 years agore PR fortran/48412 (CP2K miscompiled due to some Fortran frontend pass)
Thomas Koenig [Mon, 4 Apr 2011 20:22:21 +0000 (20:22 +0000)]
re PR fortran/48412 (CP2K miscompiled due to some Fortran frontend pass)

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

PR fortran/48412
* frontend-passes (cfe_expr_0):  Reverse the order of going
through the loops.

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

PR fortran/48412
* function_optimize_4.f90:  New test.

From-SVN: r171952

13 years agore PR target/48380 (ICE in postreload.c while building trunk)
Vladimir Makarov [Mon, 4 Apr 2011 20:19:45 +0000 (20:19 +0000)]
re PR target/48380 (ICE in postreload.c while building trunk)

2011-04-01  Vladimir Makarov  <vmakarov@redhat.com>

PR target/48380
* ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
          not called.

* ira-emit.c (emit_move_list): Update reg equiv init insn list.

From-SVN: r171951

13 years agore PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
Tobias Burnus [Mon, 4 Apr 2011 18:35:13 +0000 (20:35 +0200)]
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])

2011-04-04  Tobias Burnus  <burnus@net-b.de>
            Mikael Morin  <mikael.morin@sfr.fr>

        PR fortran/18918
        * check.c (is_coarray): Update - because of DIMEN_THIS_IMAGE.
        * expr.c (gfc_is_coindexed): Ditto.
        * gfortran.h (gfc_array_ref_dimen_type): Add DIMEN_THIS_IMAGE.
        * interface.c (compare_parameter): Use gfc_expr_attr and
        gfc_is_coindexed.
        * resolve.c (check_dimension, compare_spec_to_ref,
        resolve_allocate_expr, check_data_variable): Update for
        DIMEN_THIS_IMAGE.
        * simplify.c (gfc_simplify_lcobound, gfc_simplify_this_image,
        gfc_simplify_ucobound): Allow non-constant bounds.
        * trans-array.c (gfc_set_loop_bounds_from_array_spec,
        gfc_trans_create_temp_array, gfc_trans_constant_array_constructor,
        gfc_set_vector_loop_bounds, gfc_conv_array_index_offset,
        gfc_start_scalarized_body, gfc_trans_scalarizing_loops,
        gfc_trans_scalarized_loop_boundary, gfc_conv_section_startstride,
        gfc_conv_ss_startstride, gfc_conv_loop_setup,
        gfc_trans_array_bounds, gfc_conv_expr_descriptor,
        gfc_walk_variable_expr): Handle codimen.
        * trans-decl.c (gfc_build_qualified_array): Save cobounds.
        * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use arg2.
        (conv_intrinsic_cobound): New function.
        (gfc_conv_intrinsic_function): Call it.
        (gfc_walk_intrinsic_function, gfc_add_intrinsic_ss_code): Handle
        ucobound, lcobound, this_image.
        * fortran/trans-types.c (gfc_build_array_type): Save cobounds.
        (gfc_get_dtype): Honour corank.
        (gfc_get_nodesc_array_type): Save corank and codimensions.
        (gfc_get_array_type_bounds): Save cobound.
        * fortran/trans.h (gfc_ss_info,gfc_loopinfo): Add codimen item.
        (gfc_array_kind): Add corank item.
        (GFC_TYPE_ARRAY_CORANK): New macro.

2011-04-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * gfortran.dg/coarray_10.f90: Add coarray descriptor diagnostic
        check.
        * gfortran.dg/coarray_13.f90: Add checks for run-time cobounds.
        * gfortran.dg/coarray_15.f90: New.

Co-Authored-By: Mikael Morin <mikael.morin@sfr.fr>
From-SVN: r171949

13 years agocprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
Steven Bosscher [Mon, 4 Apr 2011 18:27:17 +0000 (18:27 +0000)]
cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.

* cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
(expr_equiv_p): Remove.
(insert_set_in_table): Look at <dest, src> pair instead of expr.
(hash_scan_set): Update call to insert_set_in_table.
(dump_hash_table): Dump <dest, src> pair.
(lookup_set): Simplify.  Lookup <dest, src> pair.
(compute_transp): Remove, fold heavily simplified code into...
(compute_local_properties): ...here.  Expect COMP and TRANSP
unconditionally.
(find_avail_set): Take set directly from struct expr.
(find_bypass-set): Likewise.
(bypass_block): Likewise.
(cprop_insn): Likewise.  Remove redundant INSN_P test.

From-SVN: r171947

13 years agocprop.c (implicit_set_cond_p): Assume nothing about COND...
Steven Bosscher [Mon, 4 Apr 2011 18:24:50 +0000 (18:24 +0000)]
cprop.c (implicit_set_cond_p): Assume nothing about COND...

* cprop.c (implicit_set_cond_p): Assume nothing about COND, move
checks on form of COND from find_implicit_sets to here.
(find_implicit_sets): Cleanup control flow. Split critical edges
if it exposes implicit sets.  Allocate/resize implicit_sets as
necessary.
(one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
changed something.  Run df_analyze after find_implicit_sets if any
edges were split.  Do not allocate implicit_sets here.

From-SVN: r171946

13 years agocprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
Steven Bosscher [Mon, 4 Apr 2011 18:24:05 +0000 (18:24 +0000)]
cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.

* cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
(gcse_obstack): Renamed to cprop_obstack.
(GNEW, GNEWVEC, GNEWVAR): Remove.
(gmalloc): Remove.
(alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
(GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
(gcse_alloc): Likewise, and rename to cprop_alloc.
(alloc_gcse_men, free_gcse_mem): Remove.
(gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
(compute_hash_table_work): Allocate and free reg_set_bitmap here.
(one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.

From-SVN: r171945

13 years agocprop.c (oprs_not_set_p): Remove.
Steven Bosscher [Mon, 4 Apr 2011 18:23:27 +0000 (18:23 +0000)]
cprop.c (oprs_not_set_p): Remove.

* cprop.c (oprs_not_set_p): Remove.
(mark_set, mark_clobber): Remove.
(mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
(reg_not_set_p): New function.
(find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
(cprop_insn): Likewise.
(cprop_jump): Use FOR_EACH_EDGE.

From-SVN: r171944

13 years agore PR ada/47163 (Failure building target-libada for MingW64)
Eric Botcazou [Mon, 4 Apr 2011 18:06:55 +0000 (18:06 +0000)]
re PR ada/47163 (Failure building target-libada for MingW64)

PR ada/47163
* s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.

From-SVN: r171943

13 years agore PR bootstrap/48403 (bootstrap comparison failure)
Bernd Schmidt [Mon, 4 Apr 2011 16:53:51 +0000 (16:53 +0000)]
re PR bootstrap/48403 (bootstrap comparison failure)

Fix PR bootstrap/48403.

2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>

PR bootstrap/48403
* haifa-sched.c (nonscheduled_insns_begin): New static variable.
(rank_for_schedule): Use scheduled_insns vector instead of
last_scheduled_insn.
(ok_for_early_queue_removal): Likewise.
(queue_to_ready): Search forward in nonscheduled_insns_begin if
we have a dbg_cnt.
(choose_ready): Likewise.
(commit_schedule): Use VEC_iterate.
(schedule_block): Initialize nonscheduled_insns_begin.  If we have
a dbg_cnt, use it and ensure the first insn is in the ready list.
(haifa_sched_init): Allocate scheduled_insns.
(sched_extend_ready_list): Don't allocate it; reserve space.
(haifa_sched_finish): Free it.

From-SVN: r171942

13 years agoconfigure.ac: Redirect $JAR -cf@ output to /dev/null.
Rainer Orth [Mon, 4 Apr 2011 16:01:54 +0000 (16:01 +0000)]
configure.ac: Redirect $JAR -cf@ output to /dev/null.

* configure.ac: Redirect $JAR -cf@ output to /dev/null.
* configure: Regenerate.

From-SVN: r171941

13 years agobessel_6.f90: Use dg-add-options ieee.
Rainer Orth [Mon, 4 Apr 2011 15:53:46 +0000 (15:53 +0000)]
bessel_6.f90: Use dg-add-options ieee.

* gfortran.dg/bessel_6.f90: Use dg-add-options ieee.
* gfortran.dg/bessel_7.f90: Likewise.

From-SVN: r171939

13 years agooptc-gen.awk: Always remove type from Variable entry before recording in var_seen.
Joseph Myers [Mon, 4 Apr 2011 14:18:31 +0000 (15:18 +0100)]
optc-gen.awk: Always remove type from Variable entry before recording in var_seen.

* optc-gen.awk: Always remove type from Variable entry before
recording in var_seen.

From-SVN: r171938

13 years agocfghooks.c (tidy_fallthru_edges): Add ??? comment.
Eric Botcazou [Mon, 4 Apr 2011 12:34:29 +0000 (12:34 +0000)]
cfghooks.c (tidy_fallthru_edges): Add ??? comment.

* cfghooks.c (tidy_fallthru_edges): Add ??? comment.
* tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
call to tidy_fallthru_edges.

From-SVN: r171936

13 years agooptions.texi (ToLower): Document.
Joseph Myers [Mon, 4 Apr 2011 10:17:11 +0000 (11:17 +0100)]
options.texi (ToLower): Document.

* doc/options.texi (ToLower): Document.
* opt-functions.awk (switch_bit_fields): Initialize cl_tolower
field.
* opts-common.c (decode_cmdline_option): Handle cl_tolower.
* opts.h (cl_option): Add cl_tolower field.
* config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
arguments with lowercase strings.
* config/rx/rx.opt (mcpu=): Add ToLower.
* config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
argument.

From-SVN: r171932

13 years agore PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt...
Jakub Jelinek [Mon, 4 Apr 2011 09:48:45 +0000 (11:48 +0200)]
re PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt 2 in expand_gimple_basic_block, at cfgexpand.c:3585)

PR debug/48401
* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.

From-SVN: r171930

13 years agopdp11.h (IRA_COVER_CLASSES): Delete.
Richard Sandiford [Mon, 4 Apr 2011 08:11:37 +0000 (08:11 +0000)]
pdp11.h (IRA_COVER_CLASSES): Delete.

gcc/
* config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.

From-SVN: r171929

13 years agovax.c: Include reload.h.
Richard Sandiford [Mon, 4 Apr 2011 08:09:34 +0000 (08:09 +0000)]
vax.c: Include reload.h.

gcc/
* config/vax/vax.c: Include reload.h.

From-SVN: r171928

13 years ago* gcc/ChangeLog: Fix formatting.
Uros Bizjak [Mon, 4 Apr 2011 07:37:46 +0000 (09:37 +0200)]
* gcc/ChangeLog: Fix formatting.

From-SVN: r171927

13 years agore PR ada/47163 (Failure building target-libada for MingW64)
Kai Tietz [Mon, 4 Apr 2011 07:31:11 +0000 (09:31 +0200)]
re PR ada/47163 (Failure building target-libada for MingW64)

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

        PR ada/47163
        * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows
        targets to flag value.

From-SVN: r171926

13 years agosparc.h (PREFERRED_RELOAD_CLASS): Remove.
Anatoly Sokolov [Mon, 4 Apr 2011 07:11:51 +0000 (11:11 +0400)]
sparc.h (PREFERRED_RELOAD_CLASS): Remove.

* config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
* config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
(sparc_preferred_reload_class): New function.

From-SVN: r171925

13 years agore PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt...
Jakub Jelinek [Mon, 4 Apr 2011 07:02:50 +0000 (09:02 +0200)]
re PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt 2 in expand_gimple_basic_block, at cfgexpand.c:3585)

PR debug/48404
* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.

From-SVN: r171924

13 years agotree.h (struct tree_const_decl): Inherit from tree_decl_common.
Nathan Froyd [Mon, 4 Apr 2011 01:40:17 +0000 (01:40 +0000)]
tree.h (struct tree_const_decl): Inherit from tree_decl_common.

* tree.h (struct tree_const_decl): Inherit from tree_decl_common.
* tree.c (initialize_tree_contains_struct): Adjust accordingly.

From-SVN: r171923

13 years agoDaily bump.
GCC Administrator [Mon, 4 Apr 2011 00:17:50 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r171922

13 years agoStart using backend interface separate from gofrontend.
Ian Lance Taylor [Sun, 3 Apr 2011 22:44:18 +0000 (22:44 +0000)]
Start using backend interface separate from gofrontend.

* go-gcc.cc: New file.
* Make-lang.in (GO_OBJS): Add go/go-gcc.o.
(go/go-gcc.o): New target.
(go/go.o): Depend on go/gofrontend/backend.h.
(go/statements.o): Likewise.

From-SVN: r171917

13 years agore PR middle-end/48422 (bootstrap failure for i686-*-* targets by ICE)
Kai Tietz [Sun, 3 Apr 2011 20:09:46 +0000 (22:09 +0200)]
re PR middle-end/48422 (bootstrap failure for i686-*-* targets by ICE)

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

        PR middle-end/48422
        * Make-lang.in (f95-lang.o): Add some missing dependencies.

From-SVN: r171916

13 years agoavr.h (ASM_OUTPUT_BSS): Remove.
Anatoly Sokolov [Sun, 3 Apr 2011 19:43:49 +0000 (23:43 +0400)]
avr.h (ASM_OUTPUT_BSS): Remove.

* config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
(ASM_OUTPUT_ALIGNED_BSS): Define.

From-SVN: r171915

13 years agore PR fortran/48311 ([Quadmath] Documentation - typo, order)
Tobias Burnus [Sun, 3 Apr 2011 18:45:16 +0000 (20:45 +0200)]
re PR fortran/48311 ([Quadmath] Documentation - typo, order)

2011-04-03  Tobias Burnus  <burnus@net-b.de>

       PR fortran/48311
       * libquadmath.texi (strtoflt128): Fix typo.
       (quadmath_snprintf): Move note up, make @item.

From-SVN: r171914

13 years agoMark as executable in SVN.
Ian Lance Taylor [Sun, 3 Apr 2011 16:14:19 +0000 (16:14 +0000)]
Mark as executable in SVN.

From-SVN: r171913

13 years agobessel_6.f90: Reduce mymax for Tru64.
Tobias Burnus [Sun, 3 Apr 2011 16:04:25 +0000 (18:04 +0200)]
bessel_6.f90: Reduce mymax for Tru64.

2011-04-03  Tobias Burnus  <burnus@net-b.de>

       * gfortran.dg/bessel_6.f90: Reduce mymax for Tru64.

From-SVN: r171912

13 years agounix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
Tobias Burnus [Sun, 3 Apr 2011 15:44:02 +0000 (17:44 +0200)]
unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.

2011-04-04  Tobias Burnus  <burnus@net-b.de>

        * unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
        (fallback_access, open_internal4, compare_file_filename,
        find_file, file_size, inquire_sequential, inquire_direct,
        inquire_formatted): Use "struct stat" instead of gfstat_t.

From-SVN: r171911

13 years agobe.po, [...]: Update.
Joseph Myers [Sun, 3 Apr 2011 11:33:31 +0000 (12:33 +0100)]
be.po, [...]: Update.

* be.po, ca.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po,
ja.po, nl.po, ru.po, sv.po, tr.po, uk,po, vi.po, zh_CN.po,
zh_TW.po: Update.

From-SVN: r171909

13 years agobe.po, [...]: Update.
Joseph Myers [Sun, 3 Apr 2011 11:30:18 +0000 (12:30 +0100)]
be.po, [...]: Update.

* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
Update.

From-SVN: r171907

13 years agolto-streamer.h (struct lto_streamer_cache_d): Remove offsets and next_slot members.
Michael Matz [Sun, 3 Apr 2011 11:21:06 +0000 (11:21 +0000)]
lto-streamer.h (struct lto_streamer_cache_d): Remove offsets and next_slot members.

* lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
and next_slot members.
(lto_streamer_cache_insert, lto_streamer_cache_insert_at,
lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
(lto_streamer_cache_append): Declare.
* lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
unsigned index, remove offset parameter, ensure that we append
or update existing entries.
(lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
parameter, update next_slot for append.
(lto_streamer_cache_insert): Use unsigned index, remove offset_p
parameter.
(lto_streamer_cache_insert_at): Likewise.
(lto_streamer_cache_append): New function.
(lto_streamer_cache_lookup): Use unsigned index.
(lto_streamer_cache_get): Likewise.
(lto_record_common_node): Don't test tree_node_can_be_shared.
(preload_common_node): Adjust call to lto_streamer_cache_insert.
(lto_streamer_cache_delete): Don't free offsets member.
* lto-streamer-out.c (eq_string_slot_node): Use memcmp.
(lto_output_string_with_length): Use lto_output_data_stream.
(lto_output_tree_header): Remove ix parameter, don't write it.
(lto_output_builtin_tree): Likewise.
(lto_write_tree): Adjust callers to above, don't track and write
offset, write unsigned index.
(output_unreferenced_globals): Don't emit all global vars.
(write_global_references): Use unsigned indices.
(lto_output_decl_state_refs): Likewise.
(write_symbol): Likewise.
* lto-streamer-in.c (lto_input_chain): Move earlier.
(input_function): Use unsigned index.
(input_alias_pairs): Don't read and then ignore all global vars.
(lto_materialize_tree): Remove ix_p parameter, don't read index,
don't pass it back, use lto_streamer_cache_append.
(lto_register_var_decl_in_symtab): Use unsigned index.
(lto_register_function_decl_in_symtab): Likewise.
(lto_get_pickled_tree): Don't read in or handle offset, read unsigned
index.
(lto_get_builtin_tree): Don't read index, use
lto_streamer_cache_append.
(lto_read_tree): Adjust call to lto_materialize_tree.

* ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
don't use function calls in arguments to MIN.

* varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
twice.

* gimple.c (gimple_type_leader_entry): Mark deletable.

lto/
* lto.c (lto_materialize_function): Don't read and then discard
sections in WPA mode.
(lto_read_in_decl_state): Adjust call to lto_streamer_cache_get.

* lto-lang.c (registered_builtin_fndecls): Remove.
(lto_getdecls): Return NULL_TREE.
(lto_builtin_function): Don't remember in registered_builtin_fndecls.

From-SVN: r171906

13 years agodwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
Alan Modra [Sun, 3 Apr 2011 11:16:20 +0000 (20:46 +0930)]
dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.

* dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.

From-SVN: r171905

13 years agotree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not an integer.
Michael Matz [Sun, 3 Apr 2011 11:14:14 +0000 (11:14 +0000)]
tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not an integer.

* tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
an integer.
* tree.h (tree_decl_non_common.vindex): Adjust comment.

From-SVN: r171904

13 years agocgraphbuild.c (record_reference): Canonicalize constructor values.
Michael Matz [Sun, 3 Apr 2011 11:13:09 +0000 (11:13 +0000)]
cgraphbuild.c (record_reference): Canonicalize constructor values.

* cgraphbuild.c (record_reference): Canonicalize constructor
values.
* gimple-fold.c (canonicalize_constructor_val): Accept being called
without function context.
* cgraphunit.c (cgraph_finalize_compilation_unit): Clear
current_function_decl and cfun.

From-SVN: r171903

13 years agotree.c (decl_init_priority_insert): Don't create entry for default priority.
Michael Matz [Sun, 3 Apr 2011 11:11:25 +0000 (11:11 +0000)]
tree.c (decl_init_priority_insert): Don't create entry for default priority.

* tree.c (decl_init_priority_insert): Don't create entry for
default priority.
(decl_fini_priority_insert): Ditto.
(fields_compatible_p, find_compatible_field): Remove.
* tree.h (fields_compatible_p, find_compatible_field): Remove.
* gimple.c (gimple_compare_field_offset): Adjust block comment.

From-SVN: r171902

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