platform/upstream/linaro-gcc.git
13 years ago * configure.ac: Remove code setting CONFIG_SHELL, config_shell and
jsm28 [Fri, 1 Apr 2011 13:43:39 +0000 (13:43 +0000)]
* configure.ac: Remove code setting CONFIG_SHELL, config_shell and
moveifchange.
* configure: Regenerate.
* Makefile.tpl: Use @SHELL@ not @config_shell@.
* Makefile.in: Regenerate.

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

13 years ago * configure.ac (*-*-sysv4*): Don't enable libgomp.
jsm28 [Fri, 1 Apr 2011 13:40:46 +0000 (13:40 +0000)]
* 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.

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

13 years ago * configure.ac: Separate cases disabling target-libssp,
jsm28 [Fri, 1 Apr 2011 11:59:22 +0000 (11:59 +0000)]
* configure.ac: Separate cases disabling target-libssp,
target-libiberty, target-libstdc++-v3 and Fortran from general
case over targets.
* configure: Regenerate.

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

13 years ago * configure.ac (*-*-chorusos): Don't disable libgcj.
jsm28 [Fri, 1 Apr 2011 11:57:09 +0000 (11:57 +0000)]
* 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.

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

13 years agogcc/
rsandifo [Fri, 1 Apr 2011 08:19:13 +0000 (08:19 +0000)]
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.

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

13 years agogcc/
rsandifo [Fri, 1 Apr 2011 08:16:47 +0000 (08:16 +0000)]
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.

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

13 years agogcc/
rsandifo [Fri, 1 Apr 2011 08:15:08 +0000 (08:15 +0000)]
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.

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

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

From Rainer Orth.

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

13 years ago * emit-rtl.c (emit_pattern_after_setloc): New function.
froydnj [Fri, 1 Apr 2011 03:05:36 +0000 (03:05 +0000)]
* 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.

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

13 years ago * dwarf2out.c (dw_separate_line_info_ref): Remove.
rth [Fri, 1 Apr 2011 02:41:12 +0000 (02:41 +0000)]
    * 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.

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

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

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

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

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

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

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

13 years agoexception_ptr.h needs the forward declaration because it's
jyasskin [Thu, 31 Mar 2011 23:56:01 +0000 (23:56 +0000)]
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.

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

13 years ago PR go/47515
ian [Thu, 31 Mar 2011 23:55:21 +0000 (23:55 +0000)]
PR go/47515
libgo: Add Irix support.

From Rainer Orth.

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

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

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

13 years ago * opts.h (cl_option): Add comments to fields. Add bit-fields for
jsm28 [Thu, 31 Mar 2011 22:37:14 +0000 (22:37 +0000)]
* 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.

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

13 years ago PR go/48242
ian [Thu, 31 Mar 2011 22:36:10 +0000 (22:36 +0000)]
PR go/48242
libgo: Add timeout for tests.

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

13 years agolibgo: Remove unnecessary EINTR checks.
ian [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.

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

13 years ago PR c++/48277
jason [Thu, 31 Mar 2011 22:03:50 +0000 (22:03 +0000)]
PR c++/48277
* semantics.c (finish_call_expr): Remove assert.

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

13 years ago * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
ebotcazou [Thu, 31 Mar 2011 20:52:41 +0000 (20:52 +0000)]
* tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
a zero minimum index only if it is redundant.

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

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

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

13 years ago PR c++/48280
jason [Thu, 31 Mar 2011 20:29:49 +0000 (20:29 +0000)]
PR c++/48280
* method.c (defaultable_fn_check): Templates are not defaultable.

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

13 years ago * parser.c (cp_parser_init_declarator): Avoid redundant
jason [Thu, 31 Mar 2011 20:28:31 +0000 (20:28 +0000)]
* parser.c (cp_parser_init_declarator): Avoid redundant
cp_finish_decl for member declarations.

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

13 years ago2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 31 Mar 2011 19:54:02 +0000 (19:54 +0000)]
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.

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

13 years ago * cprop.c: Clean up hash table building.
steven [Thu, 31 Mar 2011 19:48:11 +0000 (19:48 +0000)]
* 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.

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

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

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

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

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

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

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

13 years ago2011-03-31 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 31 Mar 2011 16:06:12 +0000 (16:06 +0000)]
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.

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

13 years ago * builtins.c (build_va_arg_indirect_ref): Use
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.

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

13 years ago * reload1.c (elimination_effects): Fix typo in recent change.
law [Thu, 31 Mar 2011 15:55:19 +0000 (15:55 +0000)]
* reload1.c (elimination_effects): Fix typo in recent change.

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

13 years ago * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
aesok [Thu, 31 Mar 2011 15:22:32 +0000 (15:22 +0000)]
* 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.

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

13 years ago PR target/16292
ro [Thu, 31 Mar 2011 15:02:33 +0000 (15:02 +0000)]
PR target/16292
* gfortran.dg/g77/cabs.f: Only xfail execution on mips-sgi-irix6*
with -O0.

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

13 years ago2011-03-31 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 31 Mar 2011 14:02:39 +0000 (14:02 +0000)]
2011-03-31  Tristan Gingold  <gingold@adacore.com>

* dwarf2.h (dwarf_line_number_hp_sfc_ops): New enum.

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

13 years ago * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
law [Thu, 31 Mar 2011 13:28:29 +0000 (13:28 +0000)]
* 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.

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

13 years ago PR target/47109
jsm28 [Thu, 31 Mar 2011 12:13:13 +0000 (12:13 +0000)]
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.

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

13 years ago PR target/48142
ebotcazou [Thu, 31 Mar 2011 11:10:59 +0000 (11:10 +0000)]
PR target/48142
* config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
frame-related from frame-unrelated adjustments to the stack pointer.

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

13 years ago2011-03-31 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 31 Mar 2011 11:09:09 +0000 (11:09 +0000)]
2011-03-31  Tristan Gingold  <gingold@adacore.com>

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

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

13 years ago2011-03-31 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 31 Mar 2011 10:02:00 +0000 (10:02 +0000)]
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.

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

13 years ago * common.opt (fdebug-types-section): Move earlier.
jakub [Thu, 31 Mar 2011 08:50:03 +0000 (08:50 +0000)]
* common.opt (fdebug-types-section): Move earlier.
* doc/invoke.texi: Fix up -fno-debug-types-section documentation.

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

13 years ago2011-03-31 Andreas Tobler <andreast@fgznet.ch>
andreast [Thu, 31 Mar 2011 06:50:23 +0000 (06:50 +0000)]
2011-03-31  Andreas Tobler  <andreast@fgznet.ch>

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

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

13 years ago * tree.h (CASE_CHAIN): Define.
froydnj [Thu, 31 Mar 2011 02:26:18 +0000 (02:26 +0000)]
* tree.h (CASE_CHAIN): Define.
* tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
(gimple_redirect_edge_and_branch): Likewise.

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

13 years ago2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 31 Mar 2011 01:04:43 +0000 (01:04 +0000)]
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.

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

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

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

13 years agoAdd PR marker
law [Thu, 31 Mar 2011 00:05:28 +0000 (00:05 +0000)]
Add PR marker

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

13 years ago * reload1.c (reload): Fix botch in last change.
law [Thu, 31 Mar 2011 00:01:53 +0000 (00:01 +0000)]
* reload1.c (reload): Fix botch in last change.
* reload.h (struct reload): Fix typo introduced in last change.

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

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

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

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

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

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

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

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

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

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

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

13 years ago * config/arm/arm.opt (mhard-float, msoft-float): Mark
jsm28 [Wed, 30 Mar 2011 21:12:33 +0000 (21:12 +0000)]
* 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.

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

13 years ago PR c++/48212
jason [Wed, 30 Mar 2011 20:29:13 +0000 (20:29 +0000)]
PR c++/48212
* semantics.c (non_const_var_error): Just return if DECL_INITIAL
is error_mark_node.

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

13 years ago PR c++/48369
jason [Wed, 30 Mar 2011 19:51:32 +0000 (19:51 +0000)]
PR c++/48369
* semantics.c (potential_constant_expression_1): Handle
UNORDERED_EXPR and ORDERED_EXPR.

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

13 years ago * doc/options.texi (NegativeAlias): Document.
jsm28 [Wed, 30 Mar 2011 19:42:51 +0000 (19:42 +0000)]
* doc/options.texi (NegativeAlias): Document.
(Alias): Mention NegativeAlias.
* opt-functions.awk: Handle NegativeAlias.
* optc-gen.awk: Disallow NegativeAlias with multiple Alias
arguments.
* opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
* opts.h (CL_NEGATIVE_ALIAS): Define.
* config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
(rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
OPT_mspe_.
* config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
Alias entries.
* config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
mno-spe and mno-isel instead of mspe=no and -misel=no.

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

13 years agoIntroduce -fno-debug-types-section flag.
mark [Wed, 30 Mar 2011 18:21:25 +0000 (18:21 +0000)]
Introduce -fno-debug-types-section flag.

        * common.opt (fdebug-types-section): New flag.
        * doc/invoke.texi: Document new -fno-debug-types-section flag.
        * dwarf2out.c (use_debug_types): New define.
        (struct die_struct): Mark die_id with GTY desc use_debug_types.
        (print_die): Guard output of type unit signatures using
        use_debug_types.
        (build_abbrev_table): Replace assert of dwarf_version >= 4
        with assert on use_debug_types.
        (size_of_die): Likewise.
        (unmark_dies): Likewise.
        (value_format): Decide AT_ref_external form on use_debug_types.
        (output_die): Replace dwarf_version version check guard with
        use_debug_types where appropriate.
        (modified_type_die): Likewise.
        (gen_reference_type_die): Likewise.
        (dwarf2out_start_source_file): Likewise.
        (dwarf2out_end_source_file): Likewise.
        (prune_unused_types_walk_attribs): Likewise.
        (dwarf2out_finish): Likewise.

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

13 years ago PR c++/48281
jason [Wed, 30 Mar 2011 18:07:09 +0000 (18:07 +0000)]
PR c++/48281
* semantics.c (finish_compound_literal): Do put static/constant
arrays in static variables.

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

13 years ago * call.c (convert_like_real) [ck_list]: Build up the
jason [Wed, 30 Mar 2011 18:07:01 +0000 (18:07 +0000)]
* call.c (convert_like_real) [ck_list]: Build up the
initializer_list object directly.
* decl.c (build_init_list_var_init): Adjust.

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

13 years ago * call.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.
jason [Wed, 30 Mar 2011 18:06:52 +0000 (18:06 +0000)]
* call.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.
* decl.c (reshape_init_array_1): Likewise.

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

13 years agolibgo/Makefile.am: Add missing dependencies for net/net.lo.
ian [Wed, 30 Mar 2011 17:37:58 +0000 (17:37 +0000)]
libgo/Makefile.am: Add missing dependencies for net/net.lo.

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

13 years ago PR fortran/47516
matz [Wed, 30 Mar 2011 17:31:54 +0000 (17:31 +0000)]
    PR fortran/47516
* trans-expr.c (realloc_lhs_loop_for_fcn_call): Take loop as parameter,
don't use local variable.
(gfc_trans_arrayfunc_assign): Adjust caller.

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

13 years ago2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Wed, 30 Mar 2011 16:09:33 +0000 (16:09 +0000)]
2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>

* ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.

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

13 years ago2011-03-30 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 30 Mar 2011 15:43:59 +0000 (15:43 +0000)]
2011-03-30  Richard Guenther  <rguenther@suse.de>

* tree-dfa.c (renumber_gimple_stmt_uids): Also number PHIs.
* lto-streamer-out.c (output_function): Do not use
renumber_gimple_stmt_uids.
* lto-streamer-in.c (input_function): Likewise.

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

13 years agogcc/
rsandifo [Wed, 30 Mar 2011 15:36:45 +0000 (15:36 +0000)]
gcc/
PR rtl-optimization/48332
* optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
mode of input operand N and modeN to its actual mode.

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

13 years agoUpdate to current Go library.
ian [Wed, 30 Mar 2011 15:33:16 +0000 (15:33 +0000)]
Update to current Go library.

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

13 years ago * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
law [Wed, 30 Mar 2011 15:18:30 +0000 (15:18 +0000)]
* reload.h (reg_equiv_constant): Move into new structure reg_equivs,
define accessor macro.
(reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
(reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
(reg_equiv_init): Likewise.
(reg_equivs_size): New variable.
(reg_equiv_init_size): Remove.
(allocate_initial_values): Move prototype to here from....
* integrate.h (allocate_initial_values): Remove prototype.
* integrate.c: Include reload.h.
(allocate_initial_values): Corresponding changes.
* ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
(fix_reg_equiv_init, no_equiv): Corresponding changes.
(update_equiv_regs): Corresponding changes.
(ira): Corresponding changes.
* reload.c (push_reg_equiv_alt_mem): Corresponding changes.
(push_secondary_reload): Corresponding changes.
(push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
(make_memloc, find_reloads_address): Corresponding changes.
(subst_reg_equivs, subst_indexed_address): Corresponding changes.
(find_reloads_address_1): Corresponding changes.
(find_reloads_subreg_address, subst_reloads): Corresponding changes.
(refers_to_regno_for_reload_p): Corresponding changes.
(reg_overlap_mentioned_for_reload_p): Corresponding changes.
(refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
* reload1.c: Include ggc.h.
(grow_reg_equivs): New function.
(replace_pseudos_in, reload): Corresponding changes.
(calculate_needs_all_insns, alter_regs): Corresponding changes.
(eliminate_regs_1, elimination_effects): Corresponding changes.
(emit_input_reload_insns, emit_output_reload_insns): Likewise.
(delete_output_reload): Likewise.
* caller-save.c (mark_referenced_regs): Corresponding changes.
* alpha/alpha.c (resolve_reload_operand): Corresponding changes.
* frv/predicates.md (frv_load_operand): Corresponding changes.
* microblaze/microblaze.c (double_memory_operand): Corresponding
changes.
* avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
* xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
* mn10300/mn10300.c (mn10300_secondary_reload): Corresponding
changes.
* m68k/m68k.c (emit_move_sequence): Corresponding changes.
* arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
changes.
* pa/pa.c (emit_move_sequence): Corresponding changes.
* vax/vax.c (nonindexed_address_p): Corresponding changes.

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

13 years agogcc/
rsandifo [Wed, 30 Mar 2011 15:00:44 +0000 (15:00 +0000)]
gcc/
PR target/47551
* config/arm/arm.c (coproc_secondary_reload_class): Handle
structure modes.  Don't check neon_vector_mem_operand for
vector or structure modes.

gcc/testsuite/
PR target/47551
* gcc.target/arm/neon-modes-2.c: New test.

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

13 years agogcc/
rsandifo [Wed, 30 Mar 2011 14:52:38 +0000 (14:52 +0000)]
gcc/
2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
    Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

PR target/43590
* config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
operand 1 and reshuffle the operands to match.
(neon_vld3<mode>, neon_vld4<mode>): Update accordingly.

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

13 years agoFixup PR references.
mrs [Wed, 30 Mar 2011 14:48:20 +0000 (14:48 +0000)]
Fixup PR references.

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

13 years ago2011-03-30 Christian Schüler <cschueler@gmx.de>
mrs [Wed, 30 Mar 2011 14:45:49 +0000 (14:45 +0000)]
2011-03-30  Christian Schüler  <cschueler@gmx.de>

PR/driver 48208
* config/c.opt (F): Added 'Driver' to -F option.
PR/driver 48260
* config/darwin-driver.c (darwin_driver_init): Add '-arch' to
  handler function.
* config/darwin.opt: Added '-arch' option.

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

13 years ago * config/rx/rx.md: Add peepholes and patterns to combine
nickc [Wed, 30 Mar 2011 14:09:09 +0000 (14:09 +0000)]
* config/rx/rx.md: Add peepholes and patterns to combine
extending loads and simple arithmetic instructions.
* config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
        * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
        * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
modes to use pre-decrement and post-increment addressing.
        (rx_is_restricted_memory_address): Add range checking of REG+INT
addresses.
        (rx_print_operand): Add support for %Q.
        Fix handling of %Q.
        (rx_memory_move_cost): Adjust cost of stores.
        (rx_adjust_insn_length): New function.

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

13 years ago PR c/48305
jakub [Wed, 30 Mar 2011 12:36:18 +0000 (12:36 +0000)]
PR c/48305
* fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
matching arg00/arg01 types.

* gcc.c-torture/compile/pr48305.c: New test.

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

13 years ago * cfglayout.c (insn_locators_alloc): Initialize curr_location and
ebotcazou [Wed, 30 Mar 2011 12:32:12 +0000 (12:32 +0000)]
* cfglayout.c (insn_locators_alloc): Initialize curr_location and
last_location to UNKNOWN_LOCATION.

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

13 years agoFix a typo in FLOAT_SSE_REGS.
hjl [Wed, 30 Mar 2011 10:42:20 +0000 (10:42 +0000)]
Fix a typo in FLOAT_SSE_REGS.

2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>

PR target/48349
* config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
FLOAT_SSE_REGS.

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

13 years ago2011-03-30 Joseph Myers <joseph@codesourcery.com>
ro [Wed, 30 Mar 2011 10:01:13 +0000 (10:01 +0000)]
2011-03-30  Joseph Myers  <joseph@codesourcery.com>
    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR bootstrap/48337
* config/sparc/sparc.opt (sparc_cpu_and_features): Add
Init(PROCESSOR_V7).
(sparc_cpu): Likewise.
* config/sparc/sparc.c (sparc_option_override): Replace 0 by
PROCESSOR_V7.

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

13 years ago PR c++/48265
jason [Wed, 30 Mar 2011 02:16:22 +0000 (02:16 +0000)]
PR c++/48265
* pt.c (value_dependent_expression_p) [VAR_DECL]: Make sure
the variable is constant before looking at its initializer.

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

13 years ago2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Wed, 30 Mar 2011 02:11:04 +0000 (02:11 +0000)]
2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>

PR target/48336
PR middle-end/48342
PR rtl-optimization/48345
* ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
hard regs for given mode from profitable regs when doing secondary
allocation.

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

13 years agoDaily bump.
gccadmin [Wed, 30 Mar 2011 00:19:05 +0000 (00:19 +0000)]
Daily bump.

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

13 years agoMerge up to 171704
meissner [Tue, 29 Mar 2011 23:35:40 +0000 (23:35 +0000)]
Merge up to 171704

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

13 years ago PR bootstrap/48327
law [Tue, 29 Mar 2011 22:49:00 +0000 (22:49 +0000)]
PR bootstrap/48327
* tree-ssa-threadupdate.c (struct redirection_data): Remove
do_not_duplicate field.
(lookup_redirection_data): Corresponding changes.
(create_duplicates): Always create a template block.
(redirect_edges): Remove code which reused the original block
when it was going to become unreachable code.
(thread_block): Don't set do_not_duplicate field.

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

13 years ago * lto-opts.c (register_user_option_p, lto_register_user_option):
jsm28 [Tue, 29 Mar 2011 21:59:34 +0000 (21:59 +0000)]
* lto-opts.c (register_user_option_p, lto_register_user_option):
Make type argument unsigned.
* lto-streamer.h (lto_register_user_option): Make type argument
unsigned.
* opth-gen.awk: Make CL_* macros unsigned.
* opts-common.c (find_opt): Make lang_mask argument unsigned.
* opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
(find_opt): Make lang_mask argument unsigned.

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

13 years ago2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 29 Mar 2011 20:51:14 +0000 (20:51 +0000)]
2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/48331
PR rtl-optimization/48334
* ira-color.c (color_allocnos): Call setup_profitable_hard_regs
for any used algorithm.

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

13 years ago2011-03-29 Steve Ellcey <sje@cup.hp.com>
sje [Tue, 29 Mar 2011 20:41:13 +0000 (20:41 +0000)]
2011-03-29  Steve Ellcey  <sje@cup.hp.com>

* gcc.dg/torture/pr47917.c: Use -std=gnu99 on HP-UX.

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

13 years agoMove ChangeLog entry.
jakub [Tue, 29 Mar 2011 20:29:30 +0000 (20:29 +0000)]
Move ChangeLog entry.

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

13 years agoUpdate to current master Go testsuite.
ian [Tue, 29 Mar 2011 20:29:24 +0000 (20:29 +0000)]
Update to current master Go testsuite.

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

13 years ago * go.test/go-test.exp: Handle the test lines used in several new
ian [Tue, 29 Mar 2011 20:28:07 +0000 (20:28 +0000)]
* go.test/go-test.exp: Handle the test lines used in several new
tests.
(errchk): Add opts parameter.  Change all callers.  Handle parens
in regexps.

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

13 years ago PR preprocessor/48248
jakub [Tue, 29 Mar 2011 20:25:27 +0000 (20:25 +0000)]
PR preprocessor/48248
* c-ppoutput.c (print): Add src_file field.
(init_pp_output): Initialize it.
(maybe_print_line): Don't optimize by adding up to 8 newlines
if map->to_file and print.src_file are different file.
(print_line): Update print.src_file.

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

13 years ago2011-03-29 Peter Bergner <bergner@vnet.ibm.com>
mrs [Tue, 29 Mar 2011 20:16:49 +0000 (20:16 +0000)]
2011-03-29  Peter Bergner <bergner@vnet.ibm.com>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

* gcc.dg/stack-usage-1.c (SIZE): Provide proper values for __ppc64__
and __APPLE__ && __PPC__ && __ALTIVEC__.

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

13 years agoFix select setting a map expression.
ian [Tue, 29 Mar 2011 18:54:27 +0000 (18:54 +0000)]
Fix select setting a map expression.

Also fix select parsing when declaring a variable with no
statements.

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

13 years ago PR c++/48319
jason [Tue, 29 Mar 2011 18:47:56 +0000 (18:47 +0000)]
PR c++/48319
* pt.c (value_dependent_expression_p): Handle TEMPLATE_ID_EXPR.

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

13 years ago PR c++/48089
jason [Tue, 29 Mar 2011 18:47:43 +0000 (18:47 +0000)]
PR c++/48089
* semantics.c (potential_constant_expression_1): Change error about
use of *this in constructor into sorry.

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

13 years ago2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 29 Mar 2011 16:44:19 +0000 (16:44 +0000)]
2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>

* ira-conflicts.c (build_object_conflicts): Add unused attribute
to parent_max.

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

13 years ago * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
uros [Tue, 29 Mar 2011 16:36:54 +0000 (16:36 +0000)]
* config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
(alpha_option_override): Don't set alpha_sr_alias_set.
(emit_frame_store_1): Use gen_frame_mem rather than calling
set_mem_alias_set.
(alpha_expand_epilogue): Ditto.

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

13 years agoTidy
ebotcazou [Tue, 29 Mar 2011 15:30:28 +0000 (15:30 +0000)]
Tidy

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

13 years ago PR c++/48296
jason [Tue, 29 Mar 2011 13:27:25 +0000 (13:27 +0000)]
PR c++/48296
* decl.c (cp_finish_decl): Defer validation of constexpr member
functions.
* class.c (finalize_literal_type_property): Validate them here.
* semantics.c (is_valid_constexpr_fn): Don't check completeness.

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

13 years ago * semantics.c (is_valid_constexpr_fn): Specify input location.
jason [Tue, 29 Mar 2011 13:27:13 +0000 (13:27 +0000)]
* semantics.c (is_valid_constexpr_fn): Specify input location.

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

13 years ago PR tree-optimization/48290
irar [Tue, 29 Mar 2011 10:26:25 +0000 (10:26 +0000)]
    PR tree-optimization/48290
        * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
        vectorization, check that relevant phis in the basic block after
        the inner loop are really inner loop's exit phis.

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

13 years agoAdd PR number to last commit.
rsandifo [Tue, 29 Mar 2011 10:08:08 +0000 (10:08 +0000)]
Add PR number to last commit.

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

13 years agogcc/
rsandifo [Tue, 29 Mar 2011 10:07:09 +0000 (10:07 +0000)]
gcc/
* dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
(cached_dw_loc_list_def): New structure.
(cached_dw_loc_list): New typedef.
(cached_dw_loc_list_table): New variable.
(cached_dw_loc_list_table_hash): New function.
(cached_dw_loc_list_table_eq): Likewise.
(add_location_or_const_value_attribute): Take a bool cache_p.
Cache the list when the parameter is true.
(gen_formal_parameter_die): Update caller.
(gen_variable_die): Likewise.
(dwarf2out_finish): Likewise.
(dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
while generating debug info for the decl.
(dwarf2out_function_decl): Clear cached_dw_loc_list_table.
(dwarf2out_init): Initialize cached_dw_loc_list_table.
(resolve_addr): Cache the result of resolving a chain of
location lists.

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