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

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

From-SVN: r171802

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

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

From-SVN: r171801

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

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

From-SVN: r171800

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

From-SVN: r171799

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

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

From-SVN: r171797

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

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

From-SVN: r171796

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

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

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

From-SVN: r171795

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

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

From-SVN: r171794

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

From-SVN: r171793

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

From-SVN: r171792

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

From-SVN: r171791

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

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

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

From-SVN: r171790

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

* builtins.c (build_va_arg_indirect_ref): Use
build_simple_mem_ref_loc.

From-SVN: r171789

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

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

From-SVN: r171788

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

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

From-SVN: r171787

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

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

From-SVN: r171784

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

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

* dwarf2.h (dwarf_line_number_hp_sfc_ops): New enum.

From-SVN: r171781

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

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

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

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

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

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

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

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

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

From-SVN: r171780

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

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

From-SVN: r171779

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

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

From-SVN: r171777

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

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

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

From-SVN: r171776

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

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

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

From-SVN: r171775

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

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

From-SVN: r171773

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

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

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

From-SVN: r171770

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

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

From-SVN: r171769

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

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

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

From-SVN: r171767

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

From-SVN: r171766

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

From-SVN: r171761

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

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

From-SVN: r171759

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

From-SVN: r171758

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

From-SVN: r171757

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

From-SVN: r171753

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

From-SVN: r171752

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

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

From-SVN: r171751

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

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

From-SVN: r171750

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

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

From-SVN: r171748

13 years agore PR c++/48369 ([C++0x] ICE in potential_constant_expression_1, at cp/semantics...
Jason Merrill [Wed, 30 Mar 2011 19:51:32 +0000 (15:51 -0400)]
re PR c++/48369 ([C++0x] ICE  in potential_constant_expression_1, at cp/semantics.c:7746)

PR c++/48369
* semantics.c (potential_constant_expression_1): Handle
UNORDERED_EXPR and ORDERED_EXPR.

From-SVN: r171747

13 years agooptions.texi (NegativeAlias): Document.
Joseph Myers [Wed, 30 Mar 2011 19:42:51 +0000 (20:42 +0100)]
options.texi (NegativeAlias): Document.

* 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.

From-SVN: r171745

13 years agoIntroduce -fno-debug-types-section flag.
Mark Wielaard [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.

From-SVN: r171742

13 years agore PR c++/48281 ([C++0x] internal compiler error: in record_reference, at cgraphbuild...
Jason Merrill [Wed, 30 Mar 2011 18:07:09 +0000 (14:07 -0400)]
re PR c++/48281 ([C++0x] internal compiler error: in record_reference, at cgraphbuild.c:60)

PR c++/48281
* semantics.c (finish_compound_literal): Do put static/constant
arrays in static variables.

From-SVN: r171741

13 years agocall.c (convert_like_real): Build up the initializer_list object directly.
Jason Merrill [Wed, 30 Mar 2011 18:07:01 +0000 (14:07 -0400)]
call.c (convert_like_real): Build up the initializer_list object directly.

* call.c (convert_like_real) [ck_list]: Build up the
initializer_list object directly.
* decl.c (build_init_list_var_init): Adjust.

From-SVN: r171740

13 years agocall.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.
Jason Merrill [Wed, 30 Mar 2011 18:06:52 +0000 (14:06 -0400)]
call.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.

* call.c (convert_like_real): Correct TREE_CONSTANT on CONSTRUCTOR.
* decl.c (reshape_init_array_1): Likewise.

From-SVN: r171739

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

From-SVN: r171737

13 years agore PR fortran/47516 (testsuite failure: realloc_on_assign_2.f03 (with --disable-boots...
Michael Matz [Wed, 30 Mar 2011 17:31:54 +0000 (17:31 +0000)]
re PR fortran/47516 (testsuite failure: realloc_on_assign_2.f03 (with --disable-bootstrap))

        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.

From-SVN: r171736

13 years agoira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
Vladimir Makarov [Wed, 30 Mar 2011 16:09:33 +0000 (16:09 +0000)]
ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.

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

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

From-SVN: r171735

13 years agotree-dfa.c (renumber_gimple_stmt_uids): Also number PHIs.
Richard Biener [Wed, 30 Mar 2011 15:43:59 +0000 (15:43 +0000)]
tree-dfa.c (renumber_gimple_stmt_uids): Also number PHIs.

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.

From-SVN: r171734

13 years agore PR bootstrap/48332 (optabs changes (PR48263 fix) broke m68k-linux bootstrap)
Richard Sandiford [Wed, 30 Mar 2011 15:36:45 +0000 (15:36 +0000)]
re PR bootstrap/48332 (optabs changes (PR48263 fix) broke m68k-linux bootstrap)

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.

From-SVN: r171733

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

From-SVN: r171732

13 years agoreload.h (reg_equiv_constant): Move into new structure reg_equivs, define accessor...
Jeff Law [Wed, 30 Mar 2011 15:18:30 +0000 (09:18 -0600)]
reload.h (reg_equiv_constant): Move into new structure reg_equivs, define accessor macro.

* 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.

From-SVN: r171731

13 years agore PR target/47551 (ICE when reloading neon registers from out-of-range offsets)
Richard Sandiford [Wed, 30 Mar 2011 15:00:44 +0000 (15:00 +0000)]
re PR target/47551 (ICE when reloading neon registers from out-of-range offsets)

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.

From-SVN: r171730

13 years agore PR target/43590 (ICE in spill_failure, at reload1.c:2158)
Richard Sandiford [Wed, 30 Mar 2011 14:52:38 +0000 (14:52 +0000)]
re PR target/43590 (ICE in spill_failure, at reload1.c:2158)

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.

Co-Authored-By: Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
From-SVN: r171729

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

From-SVN: r171728

13 years agoPR/driver 48208
Christian Schüler [Wed, 30 Mar 2011 14:45:49 +0000 (14:45 +0000)]
PR/driver 48208

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.

From-SVN: r171727

13 years agorx.md: Add peepholes and patterns to combine extending loads and simple arithmetic...
Nick Clifton [Wed, 30 Mar 2011 14:09:09 +0000 (14:09 +0000)]
rx.md: Add peepholes and patterns to combine extending loads and simple arithmetic...

* 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.

From-SVN: r171724

13 years agore PR c/48305 (ice at -O0: verify_gimple failed)
Jakub Jelinek [Wed, 30 Mar 2011 12:36:18 +0000 (14:36 +0200)]
re PR c/48305 (ice at -O0: verify_gimple failed)

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.

From-SVN: r171723

13 years agocfglayout.c (insn_locators_alloc): Initialize curr_location and last_location to...
Eric Botcazou [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.

* cfglayout.c (insn_locators_alloc): Initialize curr_location and
last_location to UNKNOWN_LOCATION.

From-SVN: r171722

13 years agoFix a typo in FLOAT_SSE_REGS.
H.J. Lu [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.

From-SVN: r171718

13 years agore PR bootstrap/48337 (options.c doesn't compile on SPARC)
Joseph Myers [Wed, 30 Mar 2011 10:01:13 +0000 (11:01 +0100)]
re PR bootstrap/48337 (options.c doesn't compile on SPARC)

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.

Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
From-SVN: r171717

13 years agore PR c++/48265 ([C++0x] ICE: SIGSEGV (recursion in value_dependent_expression_p...
Jason Merrill [Wed, 30 Mar 2011 02:16:22 +0000 (22:16 -0400)]
re PR c++/48265 ([C++0x] ICE: SIGSEGV (recursion in value_dependent_expression_p) when variable is used uninitialised)

PR c++/48265
* pt.c (value_dependent_expression_p) [VAR_DECL]: Make sure
the variable is constant before looking at its initializer.

From-SVN: r171714

13 years agore PR target/48336 (Error in generation of ARM ldrd instruction)
Vladimir Makarov [Wed, 30 Mar 2011 02:11:04 +0000 (02:11 +0000)]
re PR target/48336 (Error in generation of ARM ldrd instruction)

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.

From-SVN: r171713

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

From-SVN: r171712

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

From-SVN: r171707

13 years agore PR bootstrap/48327 (Bootstrap comparison failure with ada since r171622)
Jeff Law [Tue, 29 Mar 2011 22:49:00 +0000 (16:49 -0600)]
re PR bootstrap/48327 (Bootstrap comparison failure with ada since r171622)

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.

From-SVN: r171703

13 years agolto-opts.c (register_user_option_p, [...]): Make type argument unsigned.
Joseph Myers [Tue, 29 Mar 2011 21:59:34 +0000 (22:59 +0100)]
lto-opts.c (register_user_option_p, [...]): Make type argument unsigned.

* 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.

From-SVN: r171701

13 years agore PR rtl-optimization/48331 (gcc.c-torture/execute/built-in-setjmp.c FAILs with...
Vladimir Makarov [Tue, 29 Mar 2011 20:51:14 +0000 (20:51 +0000)]
re PR rtl-optimization/48331 (gcc.c-torture/execute/built-in-setjmp.c FAILs with -O -fira-algorithm=priority -fPIC)

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.

From-SVN: r171699

13 years agopr47917.c: Use -std=gnu99 on HP-UX.
Steve Ellcey [Tue, 29 Mar 2011 20:41:13 +0000 (20:41 +0000)]
pr47917.c: Use -std=gnu99 on HP-UX.

2011-03-29  Steve Ellcey  <sje@cup.hp.com>

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

From-SVN: r171698

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

From-SVN: r171696

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

From-SVN: r171695

13 years agogo-test.exp: Handle the test lines used in several new tests.
Ian Lance Taylor [Tue, 29 Mar 2011 20:28:07 +0000 (20:28 +0000)]
go-test.exp: Handle the test lines used in several new tests.

* 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.

From-SVN: r171694

13 years agore PR preprocessor/48248 (Wrong error message location when compiling preprocessed...
Jakub Jelinek [Tue, 29 Mar 2011 20:25:27 +0000 (22:25 +0200)]
re PR preprocessor/48248 (Wrong error message location when compiling preprocessed code)

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.

From-SVN: r171693

13 years agostack-usage-1.c (SIZE): Provide proper values for __ppc64__ and __APPLE__ && __PPC__...
Peter Bergner [Tue, 29 Mar 2011 20:16:49 +0000 (15:16 -0500)]
stack-usage-1.c (SIZE): Provide proper values for __ppc64__ and __APPLE__ && __PPC__ && __ALTIVEC__.

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__.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>
From-SVN: r171692

13 years agoFix select setting a map expression.
Ian Lance Taylor [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.

From-SVN: r171690

13 years agore PR c++/48319 ([C++0x] Segmentation fault in instantiation of std::is_constructible...
Jason Merrill [Tue, 29 Mar 2011 18:47:56 +0000 (14:47 -0400)]
re PR c++/48319 ([C++0x] Segmentation fault in instantiation of std::is_constructible<int>)

PR c++/48319
* pt.c (value_dependent_expression_p): Handle TEMPLATE_ID_EXPR.

From-SVN: r171689

13 years agore PR c++/48089 ([C++0x] ICE on in(?)valid in constexpr constructors)
Jason Merrill [Tue, 29 Mar 2011 18:47:43 +0000 (14:47 -0400)]
re PR c++/48089 ([C++0x] ICE on in(?)valid in constexpr constructors)

PR c++/48089
* semantics.c (potential_constant_expression_1): Change error about
use of *this in constructor into sorry.

From-SVN: r171687

13 years agoira-conflicts.c (build_object_conflicts): Add unused attribute to parent_max.
Vladimir Makarov [Tue, 29 Mar 2011 16:44:19 +0000 (16:44 +0000)]
ira-conflicts.c (build_object_conflicts): Add unused attribute to parent_max.

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

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

From-SVN: r171683

13 years agoalpha.c (alpha_sr_alias_set): Don't define.
Uros Bizjak [Tue, 29 Mar 2011 16:36:54 +0000 (18:36 +0200)]
alpha.c (alpha_sr_alias_set): Don't define.

* 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.

From-SVN: r171682

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

From-SVN: r171677

13 years agore PR c++/48296 ([C++0x] constexpr member function cannot use the class type it belon...
Jason Merrill [Tue, 29 Mar 2011 13:27:25 +0000 (09:27 -0400)]
re PR c++/48296 ([C++0x] constexpr member function cannot use the class type it belongs as parameter type or return type)

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.

From-SVN: r171661

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

From-SVN: r171660

13 years agore PR tree-optimization/48290 (FAIL: gcc.dg/vect/pr38529.c, ICE in vect_get_vec_def_f...
Ira Rosen [Tue, 29 Mar 2011 10:26:25 +0000 (10:26 +0000)]
re PR tree-optimization/48290 (FAIL: gcc.dg/vect/pr38529.c, ICE in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1072)

        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.

From-SVN: r171657

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

From-SVN: r171656

13 years agodwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
Richard Sandiford [Tue, 29 Mar 2011 10:07:09 +0000 (10:07 +0000)]
dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.

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.

From-SVN: r171655

13 years agore PR fortran/48095 ([OOP] Invalid assignment to procedure pointer component not...
Janus Weil [Tue, 29 Mar 2011 09:39:10 +0000 (11:39 +0200)]
re PR fortran/48095 ([OOP] Invalid assignment to procedure pointer component not rejected)

2011-03-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48095
* decl.c (match_procedure_decl,match_ppc_decl): Set flavor of interface.
* module.c (MOD_VERSION): Bump.
(mio_typespec): Read/write 'interface' field.
* primary.c (match_string_constant,match_logical_constant): Remove
unneeded code.
(match_complex_constant): Make sure to clear the typespec.

2011-03-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/48095
* gfortran.dg/module_md5_1.f90: Modified MD5 sum.
* gfortran.dg/proc_ptr_comp_32.f90: New.

From-SVN: r171654

13 years agofunction_optimize_1.f90: Add -Warray-temporaries, check for corresponding warning.
Thomas Koenig [Tue, 29 Mar 2011 07:58:54 +0000 (07:58 +0000)]
function_optimize_1.f90: Add -Warray-temporaries, check for corresponding warning.

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

* gfortran.dg/function_optimize_1.f90:  Add -Warray-temporaries,
check for corresponding warning.

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

* frontend-passes.c (create_var):  Warn about creating an
array temporary if requested.

From-SVN: r171653

13 years agolibdecnumber: start a gitignore
Mike Frysinger [Tue, 29 Mar 2011 01:58:42 +0000 (01:58 +0000)]
libdecnumber: start a gitignore

From-SVN: r171650

13 years ago[multiple changes]
Vladimir Makarov [Tue, 29 Mar 2011 01:02:05 +0000 (01:02 +0000)]
[multiple changes]

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

* ira-color.c (update_left_conflict_sizes_p): Don't assume that
conflict object hard regset nodes have intersecting hard reg sets.

* regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
after regstat_init_n_sets_and_refs.

* ira.c: Add more comments at the top.
(setup_stack_reg_pressure_class, setup_pressure_classes):
Add comments how we compute the register pressure classes.
(setup_allocno_and_important_classes): Add more comments.
(setup_class_translate_array, reorder_important_classes)
(setup_reg_class_relations): Add comments.

* ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
start of the file.

* ira-color.c: Add 2011 to the Copyright line.
(assign_hard_reg):  Add more comments.
(improve_allocation): Ditto.

* ira-costs.c: Add 2011 to the Copyright line.
(setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
comments.
(setup_regno_cost_classes_by_mode): Ditto.

Initial patches from ira-improv branch:

2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>

* ira-build.c: (ira_create_object): Remove initialization of
OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
(ira_create_allocno): Remove initialization of
ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
Initialize ALLOCNO_ADD_DATA.
(copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
ALLOCNO_REG.
(ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.

* ira.c (ira_reallocate): Remove.
(setup_pressure_classes): Call
ira_init_register_move_cost_if_necessary.  Use
ira_register_move_cost instead of ira_get_register_move_cost.
(setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
(ira): Call ira_initiate_emit_data and ira_finish_emit_data.

* ira-color.c: Use ALLOCNO_COLOR_DATA instead of
ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
Fix formatting.
(object_hard_regs_t, object_hard_regs_node_t): Move from
ira-int.h.
(struct object_hard_regs, struct object_hard_regs_node): Ditto.
(struct allocno_color_data): New.
(allocno_color_data_t): New typedef.
(allocno_color_data): New definition.
(ALLOCNO_COLOR_DATA): New macro.
(struct object_color_data): New.
(object_color_data_t): New typedef.
(object_color_data): New definition.
(OBJECT_COLOR_DATA): New macro.
(update_copy_costs, calculate_allocno_spill_cost): Call
ira_init_register_move_cost_if_necessary.  Use
ira_register_move_cost instead of ira_get_register_move_cost.
(move_spill_restore, update_curr_costs): Ditto.
(allocno_spill_priority): Make it inline.
(color_pass): Allocate and free allocno_color_dat and
object_color_data.
(struct coalesce_data, coalesce_data_t): New.
(allocno_coalesce_data): New definition.
(ALLOCNO_COALESCE_DATA): New macro.
(merge_allocnos, coalesced_allocno_conflict_p): Use
ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
(coalesce_allocnos): Ditto.
(setup_coalesced_allocno_costs_and_nums): Ditto.
(collect_spilled_coalesced_allocnos): Ditto.
(slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
(setup_slot_coalesced_allocno_live_ranges): Ditto.
(coalesce_spill_slots): Ditto.
(ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
free allocno_coalesce_data.

* ira-conflicts.c: Fix formatting.
(process_regs_for_copy): Call
ira_init_register_move_cost_if_necessary.  Use
ira_register_move_cost instead of ira_get_register_move_cost.
(build_object_conflicts): Optimize.

* ira-costs.c (record_reg_classes): Optimize.  Call
ira_init_register_move_cost_if_necessary.  Use
ira_register_move_cost, ira_may_move_in_cost, and
ira_may_move_out_cost instead of ira_get_register_move_cost and
ira_get_may_move_cost.
(record_address_regs): Ditto.
(scan_one_insn): Optimize.
(find_costs_and_classes): Optimize.
(process_bb_node_for_hard_reg_moves): Call
ira_init_register_move_cost_if_necessary.  Use
ira_register_move_cost instead of ira_get_register_move_cost.

* ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
(ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
definitions.
(ira_initiate_emit_data, ira_finish_emit_data)
(create_new_allocno): New functions.
(modify_move_list): Call create_new_alloc instead of
ira_create_allocno.
(emit_move_list): Call ira_init_register_move_cost_if_necessary.
Use ira_register_move_cost instead of ira_get_register_move_cost.

* ira-int.h: Fix some comments.
(object_hard_regs_t, object_hard_regs_node_t): Move
to ira-color.c.
(struct object_hard_regs, struct object_hard_regs_node):
Ditto.
(struct ira_object): Remove profitable_hard_regs, hard_regs_node,
hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
add_data.
(struct ira_allocno): Make mode and aclass a bitfield.  Move other
bitfield after mode.  Make hard_regno a short int.  Make
hard_regno short.  Remove first_coalesced_allocno and
next_coalesced_allocno.  Move mem_optimized_dest_p,
somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
available_regs_num, next_bucket_allocno, prev_bucket_allocno,
temp, colorable_p.  Add new member add_data.
(ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
(ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
(ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
(ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
(ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
(ALLOCNO_ADD_DATA): New macro.
(ira_emit_data_t): New typedef.
(struct ira_emit_data): New.  Move mem_optimized_dest_p,
somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
from struct ira_allocno.
(ALLOCNO_EMIT_DATA): New macro.
(ira_allocno_emit_data, allocno_emit_reg): New.
(ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
(OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM):
Remove.
(OBJECT_ADD_DATA): New macro.
(ira_reallocate): Remove.
(ira_initiate_emit_data, ira_finish_emit_data): New.
(ira_get_register_move_cost, ira_get_may_move_cost): Remove.
(ira_init_register_move_cost_if_necessary): New.
(ira_object_conflict_iter_next): Merge into
ira_object_conflict_iter_cond.
(FOR_EACH_OBJECT_CONFLICT): Don't use
ira_object_conflict_iter_next.

* ira-live.c: (process_single_reg_class_operands): Call
ira_init_register_move_cost_if_necessary.  Use
ira_register_move_cost instead of ira_get_register_move_cost.

2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>

* ira-int.h (struct target_ira_int): Remove x_cost_classes.

* ira-costs.c: Fix formatting.
(cost_classes, cost_classes_num): Remove.
(struct cost_classes, cost_classes_t, const_cost_classes_t): New.
(regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
(cost_classes_del, cost_classes_htab): New.
(cost_classes_aclass_cache, cost_classes_mode_cache): New.
(initiate_regno_cost_classes, setup_cost_classes): New.
(setup_regno_cost_classes_by_aclass): New.
(setup_regno_cost_classes_by_mode, finish_regno_cost_classes):
New.
(record_reg_classes): Use regno_cost_classes instead of
cost_classes.  Move checking opposite operand up.
(record_address_regs): Use regno_cost_classes
instead of cost_classes.
(scan_one_insn): Ditto.  Use always general register.
(print_allocno_costs): Use regno_cost_classes instead of
cost_classes.
(print_pseudo_costs): Ditto.  Use Reg_N_REFS.
(find_costs_and_classes): Set up cost classes for each registers.
Use also their mode for this.  Use regno_cost_classes instead of
cost_classes.
(setup_allocno_class_and_costs): Use regno_cost_classes instead of
cost_classes.
(free_ira_costs, ira_init_costs): Don't use cost_classes.
(ira_costs, ira_set_pseudo_classes): Call
initiate_regno_cost_classes and finish_regno_cost_classes.

2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>

* target-def.h (TARGET_IRA_COVER_CLASSES): Remove.

* target.def (ira_cover_classes): Remove.

* doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and
IRA_COVER_CLASSES.

* doc/tm.texi.in: Ditto.

* ira-conflicts.c: Remove mentioning cover classes from the file.
Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix
formatting.

* targhooks.c (default_ira_cover_classes): Remove.

* targhooks.h (default_ira_cover_classes): Ditto.

* haifa-sched.c: Remove mentioning cover classes from the file.
Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
ira_pressure_classes and ira_pressure_classes_num instead of
ira_reg_class_cover_size and ira_reg_class_cover.  Use
sched_regno_pressure_class instead of sched_regno_cover_class.
(mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
ira_reg_class_max_nregs instead of ira_reg_class_nregs.

* ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
classes from the file.
(object_hard_regs_t, object_hard_regs_node_t): New typedefs.
(struct object_hard_regs, struct object_hard_regs_node): New.
(struct ira_object): New members profitable_hard_regs,
hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
(struct ira_allocno): Rename cover_class to aclass.  Rename
cover_class_cost and updated_cover_class_cost to class_cost and
updated_class_cost.  Remove splay_removed_p and
left_conflict_size.  Add new members colorable_p.
(ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
(ALLOCNO_COLORABLE_P): New macro.
(ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
(ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
(OBJECT_...): Rename parameter C to O.
(OBJECT_PROFITABLE_HARD_REGS): New macro.
(OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
(OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
(struct target_ira_int): New members x_ira_max_memory_move_cost,
x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
x_ira_reg_pressure_class_p, x_ira_important_class_nums,
x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
x_ira_reg_class_subunion.
(ira_max_memory_move_cost, ira_max_register_move_cost)
(ira_max_may_move_in_cost, ira_max_may_move_out_cost)
(ira_reg_allocno_class_p, ira_reg_pressure_class_p)
(ira_important_class_nums, ira_reg_class_superunion): New macros.
(prohibited_class_mode_regs): Rename to
ira_prohibited_class_mode_regs.
(ira_reg_class_union): Rename to ira_reg_class_subunion.
(ira_debug_class_cover): Rename to ira_debug_allocno_classes.
(ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
(ira_tune_allocno_costs_and_cover_classes): Rename to
ira_tune_allocno_costs.
(ira_debug_hard_regs_forest): New.
(ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
(ira_object_conflict_iter_next): Fix comments.
(ira_hard_reg_set_intersection_p, hard_reg_set_size): New
functions.
(ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
cover_class to aclass.
(ira_allocate_and_accumulate_costs): Ditto.
(ira_allocate_and_set_or_copy_costs): Ditto.

* opts.c (decode_options): Remove ira_cover_class check.

* ira-color.c: Remove mentioning cover classes from the file.  Use
ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
(splay-tree.h): Remove include.
(allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
before copy_freq_compare_func.
(allocnos_for_spilling, removed_splay_allocno_vec): Remove.
(object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
New definitions.
(hard_regs_roots, hard_regs_node_vec): Ditto.
(object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
(insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
(finish_object_hard_regs, object_hard_regs_compare): Ditto.
(create_new_object_hard_regs_node): Ditto.
(add_new_object_hard_regs_node_to_forest): Ditto.
(add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
Ditto.
(setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
Ditto.
(print_hard_reg_set, print_hard_regs_subforest): Ditto.
(print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
(remove_unused_object_hard_regs_nodes): Ditto.
(enumerate_object_hard_regs_nodes): Ditto.
(object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
(object_hard_regs_subnode_t): Ditto.
(struct object_hard_regs_subnode): Ditto.
(object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
(setup_object_hard_regs_subnode_index): Ditto.
(get_object_hard_regs_subnodes_num): Ditto.
(form_object_hard_regs_nodes_forest): Ditto.
(finish_object_hard_regs_nodes_tree): Ditto.
(finish_object_hard_regs_nodes_forest): Ditto.
(allocnos_have_intersected_live_ranges_p): Rename to
allocnos_conflict_by_live_ranges_p.  Move before
copy_freq_compare_func.
(pseudos_have_intersected_live_ranges_p): Rename to
conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
(setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
(empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
(update_copy_costs): Remove assert.  Skip cost update if the hard
reg does not belong the class.
(assign_hard_reg): Process only profitable hard regs.
(uncolorable_allocnos_num): Make it scalar.
(allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
and ira_reg_class_max_nregs.
(bucket_allocno_compare_func): Check frequency first.
(sort_bucket): Add compare function as a parameter.
(add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
(uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
(push_allocno_to_stack): Rewrite for checking new allocno
colorability.
(remove_allocno_from_bucket_and_push): Print cost too.  Remove
assert.
(push_only_colorable): Pass new parameter to sort_bucket.
(push_allocno_to_spill): Remove.
(allocno_spill_priority_compare): Make it inline and rewrite.
(splay_tree_allocate, splay_tree_free): Remove.
(allocno_spill_sort_compare): New function.
(push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
build and use splay tree.  Choose first allocno in uncolorable
allocno bucket to spill.  Remove setting spill cost.
(all_conflicting_hard_regs): Remove.
(setup_allocno_available_regs_num): Check only profitable hard
regs.  Print info about hard regs nodes.
(setup_allocno_left_conflicts_size): Remove.
(put_allocno_into_bucket): Don't call
setup_allocno_left_conflicts_size.  Use
setup_left_conflict_sizes_p.
(improve_allocation): New.
(color_allocnos): Call setup_profitable_hard_regs,
form_object_hard_regs_nodes_forest, improve_allocation,
finish_object_hard_regs_nodes_forest.  Setup spill cost.
(print_loop_title): Use pressure classes.
(color_allocnso): Ditto.
(do_coloring): Remove allocation and freeing splay_tree_node_pool
and allocnos_for_spilling.
(ira_sort_regnos_for_alter_reg): Don't setup members
{first,next}_coalesced_allocno.
(color): Remove allocating and freeing removed_splay_allocno_vec.
(fast_allocation): Use ira_prohibited_class_mode_regs instead of
prohibited_class_mode_regs.

* ira-lives.c: Remove mentioning cover classes from the file.  Fix
formatting.
(update_allocno_pressure_excess_length): Use pressure classes.
(inc_register_pressure, dec_register_pressure): Check for pressure
class.
(mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
pressure class.  Use ira_reg_class_nregs instead of
ira_reg_class_max_nregs.
(mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
(mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
(single_reg_class): Use ira_reg_class_nregs instead of
ira_reg_class_max_nregs.
(process_bb_node_lives): Use pressure classes.

* ira-emit.c: Remove mentioning cover classes from the file.  Use
ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
(change_loop): Use pressure classes.
(modify_move_list): Call ira_set_allocno_class instead of
ira_set_allocno_cover_class.

* ira-build.c: Remove mentioning cover classes from the file.  Use
ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
ALLOCNO_UPDATED_CLASS_COST instead of
ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
(ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
(ira_create_allocno): Remove initialization of
ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
ALLOCNO_COLORABLE_P.
(ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
Update conflict regs for the objects.
(create_cap_allocno): Remove assert.  Don't propagate
ALLOCNO_AVAILABLE_REGS_NUM.
(ira_free_allocno_costs): New function.
(finish_allocno): Change a part of code into call of
ira_free_allocno_costs.
(low_pressure_loop_node_p): Use pressure classes.
(object_range_compare_func): Don't compare classes.
(setup_min_max_conflict_allocno_ids): Ditto.

* loop-invariant.c: Remove mentioning cover classes from the file.
Use ira_pressure_classes and ira_pressure_classes_num instead of
ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
(get_cover_class_and_nregs): Rename to
get_cover_pressure_and_nregs.  Use ira_reg_class_max_nregs instead
of ira_reg_class_nregs.  Use reg_allocno_class instead of
reg_cover_class.
(get_inv_cost): Use instead ira_stack_reg_pressure_class of
STACK_REG_COVER_CLASS.
(get_regno_cover_class): Rename to get_regno_pressure_class.
(move_loop_invariants): Initialize and finalize regstat.

* ira.c: Remove mentioning cover classes from the file.  Add
comments about coloring without cover classes.  Use ALLOCNO_CLASS
instead of ALLOCNO_COVER_CLASS.  Fix formatting.
(alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
setup_class_subset_and_memory_move_costs.
(setup_stack_reg_pressure_class, setup_pressure_classes): New.
(setup_cover_and_important_classes): Rename to
setup_allocno_and_important_classes.
(setup_class_translate_array): New.
(setup_class_translate): Call it for allocno and pressure classes.
(cover_class_order): Rename to allocno_class_order.
(comp_reg_classes_func): Use ira_allocno_class_translate instead
of ira_class_translate.
(reorder_important_classes): Set up ira_important_class_nums.
(setup_reg_class_relations): Set up ira_reg_class_superunion.
(print_class_cover): Rename to print_classes.  Add parameter.
(ira_debug_class_cover): Rename to ira_debug_allocno_classes.
Print pressure classes too.
(find_reg_class_closure): Rename to find_reg_classes.  Don't call
setup_reg_subclasses.
(ira_hard_regno_cover_class): Rename to
ira_hard_regno_allocno_class.
(ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
(setup_prohibited_class_mode_regs): Use
ira_prohibited_class_mode_regs instead of
prohibited_class_mode_regs.
(clarify_prohibited_class_mode_regs): New function.
(ira_init_register_move_cost): Set up ira_max_register_move_cost,
ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
(ira_init_once): Initialize them.
(free_register_move_costs): Process them.
(ira_init): Move calls of find_reg_classes and
setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
Call clarify_prohibited_class_mode_regs.
(ira_no_alloc_reg): Remove.
(too_high_register_pressure_p): Use pressure classes.

* sched-deps.c: Remove mentioning cover classes from the file.
Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
ira_pressure_classes and ira_pressure_classes_num instead of
ira_reg_class_cover_size and ira_reg_class_cover.
(mark_insn_hard_regno_birth, mark_hard_regno_death): Use
sched_regno_pressure_class instead of sched_regno_cover_class.
(mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
ira_reg_class_max_nregs instead of ira_reg_class_nregs.

* ira.h: Add 2010 to Copyright.
(ira_no_alloc_reg): Remove external.
(struct target_ira): Rename x_ira_hard_regno_cover_class,
x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
x_ira_class_translate to x_ira_hard_regno_allocno_class,
x_ira_allocno_classes_num, x_ira_allocno_classes, and
x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
x_ira_pressure_classes, x_ira_pressure_class_translate, and
x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
x_ira_no_alloc_regs.
(ira_hard_regno_cover_class): Rename to
ira_hard_regno_allocno_class.
(ira_reg_class_cover_size, ira_reg_class_cover): Rename to
ira_allocno_classes_num and ira_allocno_classes.
(ira_class_translate): Rename to ira_allocno_class_translate.
(ira_pressure_classes_num, ira_pressure_classes): New definitions.
(ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
(ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
(ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
(ira_no_alloc_regs): New.

* ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
classes from the file.  Use ALLOCNO_CLASS instead of
ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
ALLOCNO_COVER_CLASS_COST.
(regno_cover_class): Rename to regno_aclass.
(record_reg_classes): Use ira_reg_class_subunion instead of
ira_reg_class_union.
(record_address_regs): Check overflow.
(scan_one_insn): Ditto.
(print_allocno_costs): Print total mem cost fore regional
allocation.
(print_pseudo_costs): Use REG_N_REFS.
(find_costs_and_classes): Use classes intersected with them on the
1st pass. Check overflow.  Use ira_reg_class_subunion instead of
ira_reg_class_union.  Use ira_allocno_class_translate and
regno_aclass instead of ira_class_translate and regno_cover_class.
Modify code for finding regno_aclass.  Setup preferred classes for
the next pass.
(setup_allocno_cover_class_and_costs): Rename to
setup_allocno_class_and_costs.  Use regno_aclass instead of
regno_cover_class.  Use ira_set_allocno_class instead of
ira_set_allocno_cover_class.
(init_costs, finish_costs): Use regno_aclass instead of
regno_cover_class.
(ira_costs): Use setup_allocno_class_and_costs instead of
setup_allocno_cover_class_and_costs.
(ira_tune_allocno_costs_and_cover_classes): Rename to
ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
by processing objects.  Use ira_reg_class_max_nregs instead of
ira_reg_class_nregs.

* rtl.h (reg_cover_class): Rename to reg_allocno_class.

* sched-int.h: Remove mentioning cover classes from the file.
(sched_regno_cover_class): Rename to sched_regno_pressure_class.

* reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
classes from the file.
(struct reg_pref): Rename coverclass into allocnoclass.
(reg_cover_class): Rename to reg_allocno_class.

* Makefile.in (ira-color.o): Remove SPLAY_TREE_H from
dependencies.

* config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.

* config/arm/arm.h (IRA_COVER_CLASSES): Ditto.

* config/avr/avr.h (IRA_COVER_CLASSES): Ditto.

* config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.

* config/cris/cris.h (IRA_COVER_CLASSES): Ditto.

* config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.

* config/frv/frv.h (IRA_COVER_CLASSES): Ditto.

* config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.

* config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.

* config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
(i386_ira_cover_classes): Ditto.

* config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.

* config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.

* config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.

* config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.

* config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.

* config/mep/mep.h (IRA_COVER_CLASSES): Ditto.

* config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
(mips_ira_cover_classes): Ditto.

* config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.

* config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.

* config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.

* config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.

* config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.

* config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
(IRA_COVER_CLASSES_VSX): Ditto.

* config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
(rs6000_ira_cover_classes): Ditto.

* config/rx/rx.h (IRA_COVER_CLASSES): Ditto.

* config/s390/s390.h (IRA_COVER_CLASSES): Ditto.

* config/score/score.h (IRA_COVER_CLASSES): Ditto.

* config/sh/sh.h (IRA_COVER_CLASSES): Ditto.

* config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.

* config/spu/spu.h (IRA_COVER_CLASSES): Ditto.

* config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.

* config/v850/v850.h (IRA_COVER_CLASSES): Ditto.

* config/vax/vax.h (IRA_COVER_CLASSES): Ditto.

* config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.

From-SVN: r171649

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

From-SVN: r171648

13 years agore PR c++/48313 ([C++0x] std::bind with template function)
Jason Merrill [Tue, 29 Mar 2011 00:04:54 +0000 (20:04 -0400)]
re PR c++/48313 ([C++0x] std::bind with template function)

PR c++/48313
* pt.c (maybe_adjust_types_for_deduction): Handle T&& deduction
from overloaded function.

From-SVN: r171643

13 years agore PR debug/48253 (Further .debug_aranges issues)
Jakub Jelinek [Mon, 28 Mar 2011 23:55:47 +0000 (01:55 +0200)]
re PR debug/48253 (Further .debug_aranges issues)

PR debug/48253
* dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
dw_fde_unlikely_section_end_label, cold_in_std_section,
dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
fields.
(output_fde): Use dw_fde_second_{begin,end} if second is
true, otherwise dw_fde_{begin,end}.
(output_call_frame_info): Test dw_fde_second_begin != NULL
instead of dw_fde_switched_sections.
(dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
fields, initialize new fields.  Initialize in_std_section
unconditionally from the first partition.
(dwarf2out_end_epilogue): Don't override dw_fde_end when
dw_fde_second_begin is non-NULL.
(dwarf2out_switch_text_section): Stop initializing removed
dw_fde_struct fields, initialize new fields, initialize
also dw_fde_end here.  Set dw_fde_switch_cfi even when
dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
(struct var_loc_list_def): Add last_before_switch field.
(arange_table, arange_table_allocated, arange_table_in_use,
ARANGE_TABLE_INCREMENT, add_arange): Removed.
(size_of_aranges): Count !in_std_section and !second_in_std_section
hunks in fdes, instead of looking at arange_table_in_use.
(output_aranges): Add aranges_length argument, don't call
size_of_aranges here.  Instead of using aranges_table*
emit ranges for fdes when !in_std_section resp.
!second_in_std_section.
(dw_loc_list): Break ranges crossing section switch.
(convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
use dw_fde_second_end instead of dw_fde_end as end of last
range.
(gen_subprogram_die): Don't call add_arange.  Use
dw_fde_{begin,end} for first partition and if switched
section dw_fde_second_{begin,end} for the second.
(var_location_switch_text_section_1,
var_location_switch_text_section): New functions.
(dwarf2out_begin_function): Initialize cold_text_section even
when function_section () isn't text_section.
(prune_unused_types): Don't walk arange_table.
(dwarf2out_finish): Don't needlessly test
flag_reorder_blocks_and_partition when testing cold_text_section_used.
If info_section_emitted, call size_of_aranges and if it indicates
non-empty .debug_aranges, call output_aranges with the computed
size.  Stop using removed dw_fde_struct fields, use
dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
for second.

From-SVN: r171642

13 years agoPermit copying hidden fields when passing method receiver.
Ian Lance Taylor [Mon, 28 Mar 2011 23:54:33 +0000 (23:54 +0000)]
Permit copying hidden fields when passing method receiver.

From-SVN: r171641

13 years agore PR debug/48203 (ICE in dwarf2out.c while building eglibc.)
Jakub Jelinek [Mon, 28 Mar 2011 23:53:46 +0000 (01:53 +0200)]
re PR debug/48203 (ICE in dwarf2out.c while building eglibc.)

PR debug/48203
* cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
create ENTRY_VALUE if incoming or address of incoming's MEM
is a hard REG.
* dwarf2out.c (mem_loc_descriptor): Don't emit
DW_OP_GNU_entry_value of DW_OP_fbreg.
* var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
on ENTRY_VALUE is able to find the canonical parameter VALUE.
* cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
ENTRY_VALUE_EXPs.
(cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
is a REG_P or MEM_P with REG_P address, compute hash directly
instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
(preserve_only_constants): Don't clear VALUES forwaring
ENTRY_VALUE to some other VALUE.

* gcc.dg/pr48203.c: New test.

From-SVN: r171640

13 years agoBetter error message for invalid variable name in switch statement.
Ian Lance Taylor [Mon, 28 Mar 2011 23:13:04 +0000 (23:13 +0000)]
Better error message for invalid variable name in switch statement.

From-SVN: r171639

13 years agoBetter error message for missing condition in if statement.
Ian Lance Taylor [Mon, 28 Mar 2011 22:58:49 +0000 (22:58 +0000)]
Better error message for missing condition in if statement.

From-SVN: r171638

13 years agoBetter error message for old syntax of send expression as value.
Ian Lance Taylor [Mon, 28 Mar 2011 22:49:09 +0000 (22:49 +0000)]
Better error message for old syntax of send expression as value.

From-SVN: r171637

13 years agoBetter error messages for missing channel element type.
Ian Lance Taylor [Mon, 28 Mar 2011 21:50:53 +0000 (21:50 +0000)]
Better error messages for missing channel element type.

From-SVN: r171634

13 years agoDo not permit method expressions with pointers to interface types.
Ian Lance Taylor [Mon, 28 Mar 2011 21:35:46 +0000 (21:35 +0000)]
Do not permit method expressions with pointers to interface types.

From-SVN: r171633

13 years agobuiltins.c (expand_builtin_memset_args): Use gen_int_mode instead of GEN_INT.
Richard Sandiford [Mon, 28 Mar 2011 21:22:58 +0000 (21:22 +0000)]
builtins.c (expand_builtin_memset_args): Use gen_int_mode instead of GEN_INT.

gcc/
2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>

* builtins.c (expand_builtin_memset_args): Use gen_int_mode
instead of GEN_INT.

From-SVN: r171632

13 years agoSupport method expressions for interface types.
Ian Lance Taylor [Mon, 28 Mar 2011 21:22:08 +0000 (21:22 +0000)]
Support method expressions for interface types.

From-SVN: r171631

13 years agoDon't bother to check for duplicate interface/named methods.
Ian Lance Taylor [Mon, 28 Mar 2011 21:20:10 +0000 (21:20 +0000)]
Don't bother to check for duplicate interface/named methods.

A named interface type can't have named methods anyhow.

From-SVN: r171630

13 years agocfgexpand.c (expand_gimple_cond): Always set the source location and block before...
Eric Botcazou [Mon, 28 Mar 2011 21:19:23 +0000 (21:19 +0000)]
cfgexpand.c (expand_gimple_cond): Always set the source location and block before expanding the statement.

* cfgexpand.c (expand_gimple_cond): Always set the source location and
block before expanding the statement.
(expand_gimple_stmt_1): Likewise.  Set them here...
(expand_gimple_stmt): ...and not here.  Tidy.
* cfglayout.c (curr_insn_locator): Return 0 if the current location is
unknown.

From-SVN: r171629