platform/upstream/gcc.git
15 years agoDaily bump.
GCC Administrator [Mon, 17 Aug 2009 00:16:39 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150820

15 years agotrans-expr.c (gfc_trans_scalar_assign): Replace hack with more proper hack.
Richard Guenther [Sun, 16 Aug 2009 22:36:13 +0000 (22:36 +0000)]
trans-expr.c (gfc_trans_scalar_assign): Replace hack with more proper hack.

2009-08-17  Richard Guenther  <rguenther@suse.de>

* trans-expr.c (gfc_trans_scalar_assign): Replace hack with
more proper hack.

From-SVN: r150817

15 years agoAdding the missing ".c".
H.J. Lu [Sun, 16 Aug 2009 20:07:14 +0000 (13:07 -0700)]
Adding the missing ".c".

From-SVN: r150811

15 years agoIdentical options to Alpha/VMS. Committed as obvious.
Douglas B Rupp [Sun, 16 Aug 2009 19:23:44 +0000 (19:23 +0000)]
Identical options to Alpha/VMS. Committed as obvious.

* doc/invoke.texi (Target options):
Add new option list for IA-64/VMS.
(menu): Add IA-64/VMS Options.
(IA-64/VMS Options): Likewise.

From-SVN: r150808

15 years agoMake TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL...
Jason Merrill [Sun, 16 Aug 2009 17:42:56 +0000 (13:42 -0400)]
Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL...

Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL
and VAR_DECL, so mark_used only has effect the first time.
* decl2.c (mark_used): Just return if TREE_USED is already set.
Don't set TREE_USED if cp_unevaluated_operand is set.
(tree_used_ok): New fn.
* init.c (build_offset_ref): Check it instead of TREE_USED.
* call.c (build_call_a): Likewise.
* cp-tree.h: Declare it.
(DECL_NO_LINKAGE_CHECKED): No longer needed.
(struct lang_decl_base): Remove no_linkage_checked bitfield.

From-SVN: r150807

15 years ago* decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
Jason Merrill [Sun, 16 Aug 2009 17:42:48 +0000 (13:42 -0400)]
* decl2.c (finish_static_data_member_decl): Don't set TREE_USED.

From-SVN: r150806

15 years ago* decl2.c (mark_used): It's ok to synthesize for default args now.
Jason Merrill [Sun, 16 Aug 2009 17:42:41 +0000 (13:42 -0400)]
* decl2.c (mark_used): It's ok to synthesize for default args now.

From-SVN: r150805

15 years agore PR target/38599 (There should be a Pmode == DImode version of the MIPS lwxs pattern)
Richard Sandiford [Sun, 16 Aug 2009 17:30:45 +0000 (17:30 +0000)]
re PR target/38599 (There should be a Pmode == DImode version of the MIPS lwxs pattern)

gcc/
PR target/38599
* config/mips/mips.md (*lwxs): Use :P for pointer values.

gcc/testsuite/
PR target/38599
* gcc.target/mips/smartmips-lwxs.c: Remove -mlong32.

From-SVN: r150804

15 years agomips-protos.h (mips_push_asm_switch): New function.
Richard Sandiford [Sun, 16 Aug 2009 17:25:23 +0000 (17:25 +0000)]
mips-protos.h (mips_push_asm_switch): New function.

gcc/
* config/mips/mips-protos.h (mips_push_asm_switch): New function.
(mips_pop_asm_switch): Likewise.
* config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
with...
(mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
(mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
(mips_push_asm_switch, mips_pop_asm_switch): Likewise.
(mips_print_operand_punctuation): Use them.  Check mips_noreorder
instead of set_noreorder.
(mips_output_function_prologue): Use the new functions.
(mips_output_function_epilogue): Likewise.
(mips_need_noat_wrapper_p): New function, split out from...
(mips_final_prescan_insn, mips_final_postscan_insn): ...here.
Use mips_push_asm_switch and mips_pop_asm_switch.
* config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
and mips_pop_asm_switch.
(ASM_OUTPUT_REG_POP): Likewise.
(DBR_OUTPUT_SEQEND): Remove boilerplate comment.
Use mips_pop_asm_switch.
(mips_asm_switch): New structure.
(set_noreorder, set_nomacro): Replace with...
(mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
* config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
instead of set_nomacro.
(fix_truncsfsi2_macro): Likewise.
(cprestore): Likewise.
(hazard): Use mips_noreorder instead of set_noreorder.
* config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.

From-SVN: r150803

15 years agoalpha.c (alpha_and_function): Handle NULL_RTX returned from prev_active_insn.
Uros Bizjak [Sun, 16 Aug 2009 17:00:30 +0000 (19:00 +0200)]
alpha.c (alpha_and_function): Handle NULL_RTX returned from prev_active_insn.

* config/alpha/alpha.c (alpha_and_function): Handle NULL_RTX returned
from prev_active_insn.

From-SVN: r150802

15 years agoavr.h (AVR_HAVE_8BIT_SP): New macros.
Anatoly Sokolov [Sun, 16 Aug 2009 16:22:59 +0000 (20:22 +0400)]
avr.h (AVR_HAVE_8BIT_SP): New macros.

* config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
* config/avr/avr.c (avr_override_options): Initialize
avr_current_arch variable.
(avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
__AVR_HAVE_16BIT_SP__ according to the device type.
(expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
TARGET_TINY_STACK.
(expand_epilogue): Use correct QI mode frame pointer for tiny stack.
Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.

From-SVN: r150801

15 years agoSync toplevel from src and merge.
Ralf Wildenhues [Sun, 16 Aug 2009 15:09:13 +0000 (15:09 +0000)]
Sync toplevel from src and merge.

/:
Sync from src, merge:

2009-07-02  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Do not exclude gas for i386-*-darwin.
Add a case for x86_64-*-darwin.
* configure: Regenerate.

From-SVN: r150800

15 years agoSync config/ChangeLog from src.
Ralf Wildenhues [Sun, 16 Aug 2009 12:47:57 +0000 (12:47 +0000)]
Sync config/ChangeLog from src.

From-SVN: r150799

15 years agoMention PR number in my previous commit
Dodji Seketeli [Sun, 16 Aug 2009 09:12:21 +0000 (11:12 +0200)]
Mention PR number in my previous commit

From-SVN: r150798

15 years agore PR debug/37801 (DWARF output for inlined functions doesn't always use DW_TAG_inlin...
Dodji Seketeli [Sun, 16 Aug 2009 09:02:25 +0000 (09:02 +0000)]
re PR debug/37801 (DWARF output for inlined functions doesn't always use DW_TAG_inlined_subroutine)

Fix for PR debug/37801

gcc/ChangeLog:
* gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
generating inlined subroutine die only. We shouldn't be
called for anything else.
(gen_block_die): Don't generate inline subroutine debug info for
abstract blocks.

gcc/testsuite/ChangeLog:
* gcc/testsuite/gcc.dg/debug/20020224-1.c: Adjust the comment.
Make sure to trigger inlining optimizations.
* gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c: New test.

From-SVN: r150796

15 years agoDaily bump.
GCC Administrator [Sun, 16 Aug 2009 00:16:54 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150795

15 years agore PR fortran/41080 (gfortran -dumpversion does not behave like gcc or g++)
Tobias Burnus [Sat, 15 Aug 2009 20:51:55 +0000 (22:51 +0200)]
re PR fortran/41080 (gfortran -dumpversion does not behave like gcc or g++)

2009-08-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41080
        * gfortranspec.c (lookup_option): Remove gfortran-specific
        version of -dumpversion.

From-SVN: r150792

15 years agoPrint PBB index.
Sebastian Pop [Sat, 15 Aug 2009 07:12:08 +0000 (07:12 +0000)]
Print PBB index.

2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-poly.c (print_pbb): Print PBB index.

From-SVN: r150790

15 years agoCorrect the use of ppl_Pointset_Powerset_C_Polyhedron_maximize.
Sebastian Pop [Sat, 15 Aug 2009 07:10:20 +0000 (07:10 +0000)]
Correct the use of ppl_Pointset_Powerset_C_Polyhedron_maximize.

2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>

PR middle-end/40981
* graphite-interchange.c (ppl_max_for_le): Moved...
* graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
* graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
ppl_Pointset_Powerset_C_Polyhedron_maximize.
* graphite-ppl.h (ppl_max_for_le): Declared.

From-SVN: r150789

15 years agoconfigure.ac: Move guarded checks for CC and CXX ...
Ralf Wildenhues [Sat, 15 Aug 2009 07:02:33 +0000 (07:02 +0000)]
configure.ac: Move guarded checks for CC and CXX ...

libstdc++-v3/
* configure.ac: Move guarded checks for CC and CXX ...
* acinclude.m4 (GLIBCXX_CONFIGURE): ... from here.
* configure: Regenerate.

From-SVN: r150788

15 years agoDaily bump.
GCC Administrator [Sat, 15 Aug 2009 00:16:46 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r150786

15 years agore PR libstdc++/41061 (Compile of program using std random fails.)
Edward Smith-Rowland [Fri, 14 Aug 2009 23:33:27 +0000 (23:33 +0000)]
re PR libstdc++/41061 (Compile of program using std random fails.)

2009-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/41061
* include/bits/random.h (operator<<(std::basic_ostream<>&,
const std::lognormal_distribution<>&),
operator>>(std::basic_istream<>&, std::lognormal_distribution<>&),
operator<<(std::basic_ostream<>&, const std::gamma_distribution<>&),
operator>>(std::basic_istream<>&, std::gamma_distribution<>&),
operator<<(std::basic_ostream<>&,
const std::chi_squared_distribution<>&),
operator>>(std::basic_istream<>&, std::chi_squared_distribution<>&),
operator<<(std::basic_ostream<>&,
const std::fisher_f_distribution<>&),
operator>>(std::basic_istream<>&, std::fisher_f_distribution<>&),
operator<<(std::basic_ostream<>&,
const std::student_t_distribution<>&),
operator>>(std::basic_istream<>&, std::student_t_distribution<>&),
operator<<(std::basic_ostream<>&,
const std::negative_binomial_distribution<>&)): Declare friend.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
serialize.cc: New.
* testsuite/26_numerics/random/piecewise_constant_distribution/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/chi_squared_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/normal_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/uniform_int_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/poisson_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/bernoulli_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/discrete_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/weibull_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/negative_binomial_distribution/
operators/serialize.cc: Likewise.
* testsuite/26_numerics/random/cauchy_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/gamma_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/fisher_f_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/exponential_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/lognormal_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/binomial_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/extreme_value_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/piecewise_linear_distribution/
operators/serialize.cc
* testsuite/26_numerics/random/student_t_distribution/operators/
serialize.cc: Likewise.
* testsuite/26_numerics/random/geometric_distribution/operators/
serialize.cc: Likewise.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r150783

15 years agore PR fortran/41070 (Error: Components of structure constructor '' at (1) are PRIVATE)
Janus Weil [Fri, 14 Aug 2009 22:02:45 +0000 (00:02 +0200)]
re PR fortran/41070 (Error: Components of structure constructor '' at (1) are PRIVATE)

2009-08-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41070
* resolve.c (resolve_structure_cons): Make sure that ts.u.derived is
only used if type is BT_DERIVED.

2009-08-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41070
* gfortran.dg/structure_constructor_10.f90: New.

From-SVN: r150781

15 years agoextend.texi (Symbol-Renaming Pragmas): redefine_extname is supported on all platforms.
Olatunji Ruwase [Fri, 14 Aug 2009 21:25:48 +0000 (17:25 -0400)]
extend.texi (Symbol-Renaming Pragmas): redefine_extname is supported on all platforms.

2009-08-14  Olatunji Ruwase <tjruwase@google.com>

        * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
        supported on all platforms.
        * target.h (struct gcc_target): Remove
        handle_pragma_redefine_extname.
        * c-cppbuiltin.c: Remove use of
        targetm.handle_pragma_redefine_extname.
        * c-pragma.c: Likewise.
        * target-def.h (TARGET_INITIALIZER): Remove
        TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
        * config/sol2.h: Remove use of
        TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.

2009-08-14  Olatunji Ruwase <tjruwase@google.com>

        * gcc.dg/pragma-re-1.c: Supported on all platforms.
        * gcc.dg/pragma-re-2.c: Likewise.
        * gcc.dg/pragma-re-3.c: Likewise.
        * gcc.dg/pragma-re-4.c: Likewise.
        * g++.dg/other/pragma-re-1.C: Likewise.
        * g++.dg/other/pragma-re-2.C: Likewise.

From-SVN: r150780

15 years agore PR libfortran/32784 ([win32] Using 'CONOUT$', 'CONIN$', or 'CONERR$' as assigned...
Jerry DeLisle [Fri, 14 Aug 2009 21:10:06 +0000 (21:10 +0000)]
re PR libfortran/32784 ([win32] Using 'CONOUT$', 'CONIN$', or 'CONERR$' as assigned file generates Fortran runtime error: Bad file descriptor)

2009-08-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/32784
io/unix.c (regular_file): Add support for CONIO on mingw.

From-SVN: r150779

15 years agofde-vms.c: New file.
Douglas B Rupp [Fri, 14 Aug 2009 20:56:31 +0000 (20:56 +0000)]
fde-vms.c: New file.

2009-08-14  Douglas B Rupp  <rupp@gnat.com>

* config/ia64/fde-vms.c: New file.
* config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
* config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
(MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
(uw_frame_state_for): Only register a personality routine if it is
known to be compatible with our expectations.
(_Unwind_FindEnclosingFunction, uw_frame_state_for):
Declare unw_table_entry stack variable and
mod all calls to _Unwind_FindTableEntry to add arg.
* config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
(_Unwind_FindTableEntry): Add arg to prototype.

From-SVN: r150778

15 years agounwind-ia64.c (struct _Unwind_Context): Add new field 'signal_pfs_loc'.
Eric Botcazou [Fri, 14 Aug 2009 20:49:40 +0000 (20:49 +0000)]
unwind-ia64.c (struct _Unwind_Context): Add new field 'signal_pfs_loc'.

* config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
field 'signal_pfs_loc'.
(uw_frame_state_for): Remove duplicate code dealing with leaf
procedures without unwind info.
If in the frame after unwinding through a signal handler, restore
the AR.PFS register instead of the CFM if AR.PFS has not been saved.
* config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
'pfs_loc' to the AR.PFS location in the signal context; instead
set 'signal_pfs_loc'.
Manually generate the unwind info for the AR.PFS register.
(ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
(ia64_handle_unwabi): Test 'fs->unwabi' against them.
Do not set 'pfs_loc' to the AR.PFS location in the signal context;
instead set 'signal_pfs_loc'.
Remove code preventing the AR.PFS register from being restored
from the signal context.

From-SVN: r150777

15 years agoconfig.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
Douglas B Rupp [Fri, 14 Aug 2009 20:38:36 +0000 (20:38 +0000)]
config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.

* config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
* config/ia64/t-vms: New file.
* config/ia64/vms64.h: New file.
* config/ia64/vms.h: New file.
* config/ia64/vms-crtinit.asm: New file.
* config/ia64/vms_symvec_libgcc_s.opt: New file.
* config/ia64/vms-unwind.h: New file.

Co-Authored-By: Tristan Gingold <gingold@adacore.com>
From-SVN: r150776

15 years agostring_intrinsics_inc.c (string_len_trim): Use __INTPTR_TYPE__ to cast from pointer...
Kai Tietz [Fri, 14 Aug 2009 19:30:13 +0000 (19:30 +0000)]
string_intrinsics_inc.c (string_len_trim): Use __INTPTR_TYPE__ to cast from pointer to scalar integer...

2009-08-15  Kai Tietz  <kai.tietz@onevision.com>

        * intrinsics/string_intrinsics_inc.c (string_len_trim): Use
        __INTPTR_TYPE__ to cast from pointer to scalar integer, if
        __INTPTR_TYPE is defined.

From-SVN: r150774

15 years agoalpha.c (alpha_emit_conditional_move): Handle TFmode compares.
Uros Bizjak [Fri, 14 Aug 2009 18:54:48 +0000 (20:54 +0200)]
alpha.c (alpha_emit_conditional_move): Handle TFmode compares.

* config/alpha/alpha.c (alpha_emit_conditional_move): Handle
TFmode compares.

From-SVN: r150773

15 years agostl_tree.h: Make erase return iterator as per DR 130.
Edward Smith-Rowland [Fri, 14 Aug 2009 17:54:44 +0000 (17:54 +0000)]
stl_tree.h: Make erase return iterator as per DR 130.

2009-08-14  Edward Smith-Rowland  <3dw4rd@verizon.net>

* include/bits/stl_tree.h: Make erase return iterator as per DR 130.
* include/bits/stl_set.h: Same.
* include/bits/stl_multiset.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_multimap.h: Same.
* doc/xml/manual/intro.xml: Document.
* testsuite/23_containers/set/dr130.cc: New.
* testsuite/23_containers/multiset/dr130.cc: New.
* testsuite/23_containers/map/dr130.cc: New.
* testsuite/23_containers/multimap/dr130.cc: New.

From-SVN: r150768

15 years agoAdd comment saying file is deprecated
Janne Blomqvist [Fri, 14 Aug 2009 17:54:27 +0000 (20:54 +0300)]
Add comment saying file is deprecated

From-SVN: r150767

15 years agonatVMSecureRandomWin32.cc: Add include of java/lang/UnsupportedOperationException...
Kai Tietz [Fri, 14 Aug 2009 17:49:21 +0000 (17:49 +0000)]
natVMSecureRandomWin32.cc: Add include of java/lang/UnsupportedOperationException.h file.

2009-08-14  Kai Tietz  <kai.tietz@onevision.com>

        * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc: Add include of
        java/lang/UnsupportedOperationException.h file.

From-SVN: r150766

15 years agoPR libfortran/40863 Fix r150107 moving new symbols to C99_1.1 node
Janne Blomqvist [Fri, 14 Aug 2009 17:44:50 +0000 (20:44 +0300)]
PR libfortran/40863 Fix r150107 moving new symbols to C99_1.1 node

From-SVN: r150765

15 years agoinclhack.def (hpux_imaginary_i): New fix.
Steve Ellcey [Fri, 14 Aug 2009 17:20:30 +0000 (17:20 +0000)]
inclhack.def (hpux_imaginary_i): New fix.

2009-08-14  Steve Ellcey  <sje@cup.hp.com>

* inclhack.def (hpux_imaginary_i): New fix.
* fixincl.x: Regenerate.
* tests/base/complex.h: New file.

From-SVN: r150764

15 years agopointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.
Benjamin Kosnik [Fri, 14 Aug 2009 16:54:48 +0000 (16:54 +0000)]
pointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.

2009-08-14  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pointer.h: Add pragma system_header, use
_GLIBCXX_USE_LONG_LONG, macro cleanup.

From-SVN: r150763

15 years agopointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.
Benjamin Kosnik [Fri, 14 Aug 2009 16:51:01 +0000 (16:51 +0000)]
pointer.h: Add pragma system_header, use _GLIBCXX_USE_LONG_LONG, macro cleanup.

2009-08-14  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pointer.h: Add pragma system_header, use
_GLIBCXX_USE_LONG_LONG, macro cleanup.

From-SVN: r150762

15 years agore PR middle-end/30789 (complex folding inexact)
Kaveh R. Ghazi [Fri, 14 Aug 2009 16:44:36 +0000 (16:44 +0000)]
re PR middle-end/30789 (complex folding inexact)

PR middle-end/30789

* builtins.c (do_mpc_arg2): Make extern, define for any MPC
version.  Move declaration...
* real.h (do_mpc_arg2): ... here.
* fold-const.c (const_binop): Use MPC for complex MULT_EXPR
and RDIV_EXPR.

testsuite:
* gcc.dg/torture/builtin-math-7.c: New.

From-SVN: r150760

15 years agofinal.c (add_debug_prefix_map): Don't use GC memory for old_prefix and new_prefix.
Rafael Avila de Espindola [Fri, 14 Aug 2009 15:39:15 +0000 (15:39 +0000)]
final.c (add_debug_prefix_map): Don't use GC memory for old_prefix and new_prefix.

2009-08-14  Rafael Avila de Espindola  <espindola@google.com>

        * final.c (add_debug_prefix_map): Don't use GC memory for
        old_prefix and new_prefix.

From-SVN: r150759

15 years agoipa-prop.c (compute_complex_pass_through): If we cannot compute a non-varying offset...
Richard Guenther [Fri, 14 Aug 2009 15:07:43 +0000 (15:07 +0000)]
ipa-prop.c (compute_complex_pass_through): If we cannot compute a non-varying offset for IPA_JF_ANCESTOR punt.

2009-08-14  Richard Guenther  <rguenther@suse.de>

* ipa-prop.c (compute_complex_pass_through): If we cannot
compute a non-varying offset for IPA_JF_ANCESTOR punt.

* gcc.c-torture/execute/20090814-1.c: New testcase.

From-SVN: r150757

15 years agoc-lex.c (c_lex_with_flags): Increase size of local variable to avoid memory clobber.
Ulrich Weigand [Fri, 14 Aug 2009 14:38:24 +0000 (14:38 +0000)]
c-lex.c (c_lex_with_flags): Increase size of local variable to avoid memory clobber.

* c-lex.c (c_lex_with_flags): Increase size of local variable
to avoid memory clobber.

From-SVN: r150756

15 years agographite_autopar: Move to libgomp testsuite.
David Edelsohn [Fri, 14 Aug 2009 14:02:43 +0000 (14:02 +0000)]
graphite_autopar: Move to libgomp testsuite.

gcc/testsuite/
        * gcc.dg/graphite/graphite_autopar: Move to libgomp testsuite.

libgomp/
        * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
        * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
        * testsuite/libgomp.graphite/graphite.exp: New.

From-SVN: r150755

15 years agore PR target/40934 (ICE in get_hard_regnum, at reg-stack.c:741)
Paolo Bonzini [Fri, 14 Aug 2009 12:14:04 +0000 (12:14 +0000)]
re PR target/40934 (ICE in get_hard_regnum, at reg-stack.c:741)

2009-08-14  Paolo Bonzini  <bonzini@gnu.org>

PR target/40934
* config/i386/i386.c (ix86_fp_comparison_strategy):
Only enable/disable sahf at function granularity.

gcc/testsuite:
2009-08-14  Paolo Bonzini  <bonzini@gnu.org>

PR target/40934
* gcc.target/i386/pr40934.c: New.

From-SVN: r150754

15 years agore PR rtl-optimization/41064 (build breakage for cris-elf building newlib, ICE in...
Hans-Peter Nilsson [Fri, 14 Aug 2009 11:36:45 +0000 (11:36 +0000)]
re PR rtl-optimization/41064 (build breakage for cris-elf building newlib, ICE in extract_insn, from r150726)

PR rtl-optimization/41064
* reload1.c (reload_as_needed): Don't call extract_insn
for known invalid replacements after calling
validate_replace_rtx_group and verify_changes.

From-SVN: r150751

15 years agore PR target/41019 (Vector conditional move produces wrong code with -O3.)
Uros Bizjak [Fri, 14 Aug 2009 10:31:09 +0000 (12:31 +0200)]
re PR target/41019 (Vector conditional move produces wrong code with -O3.)

PR target/41019
* config/i386/sse.md (SSEMODE124C8): New mode iterator.
(vcond<SSEMODEF2P:mode>): Assert that operation is supported by
ix86_expand_fp_vcond.
(vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
Assert that operation is supported by ix86_expand_int_vcond.
(vcondu<SSEMODE124C8:mode>): Ditto.

testsuite/ChangeLog:

PR target/41019
* gcc.target/i386/pr41019.c: New test.

From-SVN: r150738

15 years agocompatibility-ldbl.cc: Include cmath.
Uros Bizjak [Fri, 14 Aug 2009 08:35:55 +0000 (10:35 +0200)]
compatibility-ldbl.cc: Include cmath.

* src/compatibility-ldbl.cc: Include cmath.

From-SVN: r150736

15 years agodecl.c (gfc_match_type_spec): Whitespace.
Steven G. Kargl [Fri, 14 Aug 2009 05:10:34 +0000 (05:10 +0000)]
decl.c (gfc_match_type_spec): Whitespace.

2009-08-13  Steven G. Kargl  <kargl@gcc.gnu.org>

    * decl.c (gfc_match_type_spec): Whitespace.

From-SVN: r150734

15 years agore PR fortran/40955 (STDCALL attributes are not saved in the .MOD files)
Jerry DeLisle [Fri, 14 Aug 2009 02:35:32 +0000 (02:35 +0000)]
re PR fortran/40955 (STDCALL attributes are not saved in the .MOD files)

2009-08-13  Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/40955
* gfortran.dg/winapi.f90: New test.

From-SVN: r150733

15 years agodjgpp-stdint.h: New.
DJ Delorie [Fri, 14 Aug 2009 02:26:33 +0000 (22:26 -0400)]
djgpp-stdint.h: New.

* config/i386/djgpp-stdint.h: New.
* config.gcc (djgpp): Use it.

From-SVN: r150732

15 years agocompatibility-ldbl.cc: Include tr1/functional.
Benjamin Kosnik [Fri, 14 Aug 2009 01:45:36 +0000 (01:45 +0000)]
compatibility-ldbl.cc: Include tr1/functional.

2009-08-13  Benjamin Kosnik  <bkoz@redhat.com>

* src/compatibility-ldbl.cc: Include tr1/functional.

From-SVN: r150731

15 years agoDaily bump.
GCC Administrator [Fri, 14 Aug 2009 00:17:14 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r150730

15 years agosh.c (sh_override_options): When flag_exceptions or flag_unwind_tables is on...
Kaz Kojima [Thu, 13 Aug 2009 22:16:07 +0000 (22:16 +0000)]
sh.c (sh_override_options): When flag_exceptions or flag_unwind_tables is on...

* config/sh/sh.c (sh_override_options): When flag_exceptions or
flag_unwind_tables is on, turn flag_reorder_blocks_and_partition
off.

From-SVN: r150727

15 years ago2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
Ghassan Shobaki [Thu, 13 Aug 2009 21:37:24 +0000 (21:37 +0000)]
2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>

* tree-ssa-loop-prefetch.c
(prune_ref_by_group_reuse): Enhance probabilistic analysis
for long-stride pruning.
(compute_miss_rate): New function to compute the probability
that two memory references access different cache lines.

From-SVN: r150726

15 years agore PR fortran/40941 (gfc_typespec: put derived and cl into union)
Janus Weil [Thu, 13 Aug 2009 19:46:46 +0000 (21:46 +0200)]
re PR fortran/40941 (gfc_typespec: put derived and cl into union)

2009-08-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40941
* gfortran.h (gfc_typespec): Put 'derived' and 'cl' into union.
* decl.c (build_struct): Make sure 'cl' is only used
if type is BT_CHARACTER.
* symbol.c (gfc_set_default_type): Ditto.
* resolve.c (resolve_symbol, resolve_fl_derived): Ditto.
(resolve_equivalence,resolve_equivalence_derived): Make sure 'derived'
is only used if type is BT_DERIVED.
* trans-io.c (transfer_expr): Make sure 'derived' is only used if type
is BT_DERIVED or BT_INTEGER (special case: C_PTR/C_FUNPTR).
* array.c: Mechanical replacements to accomodate union in gfc_typespec.
* check.c: Ditto.
* data.c: Ditto.
* decl.c: Ditto.
* dump-parse-tree.c: Ditto.
* expr.c: Ditto.
* interface.c: Ditto.
* iresolve.c: Ditto.
* match.c: Ditto.
* misc.c: Ditto.
* module.c: Ditto.
* openmp.c: Ditto.
* parse.c: Ditto.
* primary.c: Ditto.
* resolve.c: Ditto.
* simplify.c: Ditto.
* symbol.c: Ditto.
* target-memory.c: Ditto.
* trans-array.c: Ditto.
* trans-common.c: Ditto.
* trans-const.c: Ditto.
* trans-decl.c: Ditto.
* trans-expr.c: Ditto.
* trans-intrinsic.c: Ditto.
* trans-io.c: Ditto.
* trans-stmt.c: Ditto.
* trans-types.c: Ditto.

From-SVN: r150725

15 years agoChangeLog: Fix whitespace.
Uros Bizjak [Thu, 13 Aug 2009 19:14:20 +0000 (21:14 +0200)]
ChangeLog: Fix whitespace.

* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

From-SVN: r150724

15 years agore PR c/41046 (decNumber leaves printf call in libgcc)
Janis Johnson [Thu, 13 Aug 2009 16:54:28 +0000 (16:54 +0000)]
re PR c/41046 (decNumber leaves printf call in libgcc)

PR c/41046
* decContext.c (decContextTestEndian): Call printf only if DECCHECK.
* decCommon.c ( decFloatShow): Define function only for DECCHECK
or DECTRACE.

From-SVN: r150720

15 years agocygwin.h (LINK_SPEC): Add --enable-auto-image-base.
Dave Korn [Thu, 13 Aug 2009 15:00:42 +0000 (15:00 +0000)]
cygwin.h (LINK_SPEC): Add --enable-auto-image-base.

* gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.

From-SVN: r150717

15 years agore PR fortran/40995 (Spurious "Type specified for intrinsic function...ignored" message)
Janus Weil [Thu, 13 Aug 2009 11:16:16 +0000 (13:16 +0200)]
re PR fortran/40995 (Spurious "Type specified for intrinsic function...ignored" message)

2009-08-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40995
* resolve.c (resolve_symbol): Move some checking code to
resolve_intrinsic, and call this from here.
(resolve_intrinsic): Some checking code moved here from resolve_symbol.
Make sure each intrinsic is only resolved once.

2009-08-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40995
* gfortran.dg/intrinsic_4.f90: New.
* gfortran.dg/intrinsic_subroutine.f90: An error message moved to a
different line.

From-SVN: r150716

15 years agore PR middle-end/41047 (gcc.target/mips/memcpy-1.c failing)
Richard Guenther [Thu, 13 Aug 2009 08:19:10 +0000 (08:19 +0000)]
re PR middle-end/41047 (gcc.target/mips/memcpy-1.c failing)

2009-08-13  Richard Guenther  <rguenther@suse.de>

PR middle-end/41047
* tree-ssa-ccp.c (ccp_fold): When folding pointer additions
use the constant pointer type.
* gimplify.c (canonicalize_addr_expr): Canonicalize independent
of CV qualifiers on the target pointer type.
* tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
conversion check before restrict check.

* gcc.dg/tree-ssa/ssa-ccp-27.c: New testcase.

From-SVN: r150715

15 years agoDaily bump.
GCC Administrator [Thu, 13 Aug 2009 00:17:20 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r150712

15 years agore PR target/41029 (ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno...
Kaz Kojima [Wed, 12 Aug 2009 22:26:13 +0000 (22:26 +0000)]
re PR target/41029 (ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008)

PR target/41029
* config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.

From-SVN: r150709

15 years agosh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
Kaz Kojima [Wed, 12 Aug 2009 22:23:49 +0000 (22:23 +0000)]
sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.

* config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.

From-SVN: r150708

15 years agocompatibility-ldbl.cc: Add explicit namespace scope.
Benjamin Kosnik [Wed, 12 Aug 2009 22:05:50 +0000 (22:05 +0000)]
compatibility-ldbl.cc: Add explicit namespace scope.

2009-08-12  Benjamin Kosnik  <bkoz@redhat.com>

* src/compatibility-ldbl.cc: Add explicit namespace scope.

From-SVN: r150707

15 years agore PR tree-optimization/41011 (ICE in ipcp_lattice_from_jfunc, at ipa-cp.c:328)
Richard Guenther [Wed, 12 Aug 2009 17:55:40 +0000 (17:55 +0000)]
re PR tree-optimization/41011 (ICE in ipcp_lattice_from_jfunc, at ipa-cp.c:328)

2009-08-12  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/41011
* ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
and reference constructing.

* gfortran.dg/pr41011.f: New testcase.

From-SVN: r150705

15 years agoinclhack.def (aix_complex): New fix.
David Edelsohn [Wed, 12 Aug 2009 17:33:41 +0000 (17:33 +0000)]
inclhack.def (aix_complex): New fix.

        * inclhack.def (aix_complex): New fix.
        * fixincl.x: Regenerate.

From-SVN: r150704

15 years agoFix to PR41012
Xinliang David Li [Wed, 12 Aug 2009 16:51:41 +0000 (16:51 +0000)]
Fix to PR41012

From-SVN: r150703

15 years agolocks.h: Use atomic builtins For Linux EABI.
Andrew Haley [Wed, 12 Aug 2009 16:34:00 +0000 (16:34 +0000)]
locks.h: Use atomic builtins For Linux EABI.

2009-08-12  Andrew Haley  <aph@redhat.com>

* sysdep/arm/locks.h: Use atomic builtins For Linux EABI.
* configure.ac: Add ATOMICSPEC.
* libgcj.spec.in: Likewise.
* configure.host (arm*-linux*): Add -Wno-abi to cxxflags.
(testsuite/libjava.jvmti/jvmti-interp.exp): Likewise.
(testsuite/libjava.jvmti/jvmti.exp): Likewise.
(testsuite/libjava.jni/jni.exp): Likewise.
Set ATOMICSPEC.
Set LDFLAGS to work around libtool feature.

From-SVN: r150702

15 years agore PR bootstrap/41031 (ICE in insert_value_copy_on_edge preventing bootstrap on sparc...
Richard Sandiford [Wed, 12 Aug 2009 16:28:36 +0000 (16:28 +0000)]
re PR bootstrap/41031 (ICE in insert_value_copy_on_edge preventing bootstrap on sparc64 and s390x, testcase on cris-elf)

2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>

PR tree-optimization/41031
* tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
on the partition variable rather than promote_mode on the source
type.  Assert that the partition variable's type has the same
mode as the source value's.

From-SVN: r150701

15 years agotm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation for for_return == 2.
Paolo Bonzini [Wed, 12 Aug 2009 16:23:12 +0000 (16:23 +0000)]
tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation for for_return == 2.

2009-08-12  Paolo Bonzini  <bonzini@gnu.org>

* doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
for for_return == 2.
* function.c (assign_parm_setup_reg): Use for_return == 2, improve
comments.
* calls.c (expand_call): Fix typo.
* explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
and PARM_DECL.
* stmt.c (expand_value_return): Use promote_function_mode to copy out
of pseudo.
* targhooks.c (default_promote_function_mode): Handle for_return == 2.
* config/cris/cris.c (cris_promote_function_mode): Likewise.
* config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
* config/pa/pa.c (pa_promote_function_mode): Likewise.

From-SVN: r150700

15 years agobuiltins.c (compareAndSwapInt_builtin): Use flag_use_atomic_builtins.
Andrew Haley [Wed, 12 Aug 2009 16:10:12 +0000 (16:10 +0000)]
builtins.c (compareAndSwapInt_builtin): Use flag_use_atomic_builtins.

2009-08-12  Andrew Haley  <aph@redhat.com>

* builtins.c (compareAndSwapInt_builtin): Use
flag_use_atomic_builtins.
(compareAndSwapLong_builtin): Likewise.
(compareAndSwapObject_builtin): Likewise.
* jvspec.c: Add flag_use_atomic_builtins.
* gcj.texi: Likewise.
* java-tree.h: Likewise.
* lang.opt: Likewise.

From-SVN: r150699

15 years agosynchronize.c: New file.
Andrew Haley [Wed, 12 Aug 2009 15:55:19 +0000 (15:55 +0000)]
synchronize.c: New file.

2009-08-11  Andrew Haley  <aph@redhat.com>

* gcc.target/arm/synchronize.c: New file.

From-SVN: r150698

15 years agoarm.c (arm_init_libfuncs): Add __sync_synchronize.
Andrew Haley [Wed, 12 Aug 2009 15:54:37 +0000 (15:54 +0000)]
arm.c (arm_init_libfuncs): Add __sync_synchronize.

2009-08-11  Andrew Haley  <aph@redhat.com>

* config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.

From-SVN: r150697

15 years agoRemove pragma GCC diagnostic warning "-Wc++-compat".
Sebastian Pop [Wed, 12 Aug 2009 15:13:52 +0000 (15:13 +0000)]
Remove pragma GCC diagnostic warning "-Wc++-compat".

2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>

PR bootstrap/40103
* graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".

From-SVN: r150696

15 years agoalias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
Richard Guenther [Wed, 12 Aug 2009 15:10:47 +0000 (15:10 +0000)]
alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.

2009-08-12  Richard Guenther  <rguenther@suse.de>

* alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
* gimplify.c (gimplify_modify_expr): Do not use
lang_hooks.types_compatible_p.
* tree-ssa.c (useless_type_conversion_p): For aggregates
just return false if the canonical types differ.

From-SVN: r150695

15 years agoPrepare expressions to be good phi arguments.
Sebastian Pop [Wed, 12 Aug 2009 14:32:31 +0000 (14:32 +0000)]
Prepare expressions to be good phi arguments.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

PR middle-end/40980
* sese.c (convert_for_phi_arg): New.
(add_guard_exit_phis): Use convert_for_phi_arg.

* testsuite/gfortran.dg/graphite/id-17.f: New.

From-SVN: r150694

15 years agoDont add unknown subscript upper bounds.
Sebastian Pop [Wed, 12 Aug 2009 14:31:21 +0000 (14:31 +0000)]
Dont add unknown subscript upper bounds.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
unknown subscript upper bounds.

* testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.

From-SVN: r150693

15 years agoReimplement interchange heuristic.
Sebastian Pop [Wed, 12 Aug 2009 14:30:06 +0000 (14:30 +0000)]
Reimplement interchange heuristic.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
    Pranav Garg  <pranav.garg2107@gmail.com>

* graphite-interchange.c (gather_access_strides): Removed.
(ppl_max_for_le): New.
(build_linearized_memory_access): New.
(memory_stride_in_loop): New.
(pbb_interchange_profitable_p): Reimplemented.
* graphite-ppl.h (ppl_new_id_map): New.
(ppl_interchange): New.

* testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.

Co-Authored-By: Pranav Garg <pranav.garg2107@gmail.com>
From-SVN: r150692

15 years agoRemove interchange heuristic.
Sebastian Pop [Wed, 12 Aug 2009 14:28:15 +0000 (14:28 +0000)]
Remove interchange heuristic.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-interchange.c (compute_subscript): Removed.
(compute_array_size_cstr): Removed.
(compute_array_size_poly): Removed.
(compute_array_size): Removed.
(gather_access_strides_poly): Removed.
(gather_access_strides): Empty.

From-SVN: r150691

15 years agoAdd PDR->nb_subscripts.
Sebastian Pop [Wed, 12 Aug 2009 14:27:33 +0000 (14:27 +0000)]
Add PDR->nb_subscripts.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-dependences.c (dependence_polyhedron_1): Replace
pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
(graphite_legal_transform_dr): Same.
(graphite_carried_dependence_level_k): Same.
* graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
Initialize PDR_NB_SUBSCRIPTS.
(print_pdr_access_layout): Replace pdr_nb_subscripts with
PDR_NB_SUBSCRIPTS.
* graphite-poly.h (struct poly_dr): Add nb_subscripts field.
(PDR_NB_SUBSCRIPTS): New.
(pdr_nb_subscripts): Removed.
(pdr_dim): Simplified.
* graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
with PDR_NB_SUBSCRIPTS.

From-SVN: r150690

15 years agoUndo changes to the PDR representation.
Sebastian Pop [Wed, 12 Aug 2009 14:26:42 +0000 (14:26 +0000)]
Undo changes to the PDR representation.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-interchange.c (compute_array_size): Remove use of
PDR_DATA_CONTAINER.
* graphite-poly.c (new_poly_dr): Remove argument data_container.
Do not initialize PDR_DATA_CONTAINER.
(print_pdr): Do not print PDR_DATA_CONTAINER.
* graphite-poly.h (struct poly_dr): Remove data_container field.
(PDR_DATA_CONTAINER): Removed.
* graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
PDR_DATA_CONTAINER.
(build_poly_dr): Same.

From-SVN: r150689

15 years agoAdd interchange testcase.
Sebastian Pop [Wed, 12 Aug 2009 14:25:32 +0000 (14:25 +0000)]
Add interchange testcase.

2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

* testsuite/gcc.dg/graphite/interchange-9.c: New.

From-SVN: r150688

15 years agoFix memory leak in DD XFAILs some interchange testcases.
Konrad Trifunovic [Wed, 12 Aug 2009 14:24:01 +0000 (14:24 +0000)]
Fix memory leak in DD XFAILs some interchange testcases.

2009-08-05  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
    Sebastian Pop  <sebastian.pop@amd.com>

* graphite-dependences.c (graphite_legal_transform_dr): Work on a
copy of the dependence polyhedron.  Free the temporary objects.
(graphite_carried_dependence_level_k): Free unused objects before
returning.

* testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
* testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
* testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
* testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
* testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.

Co-Authored-By: Sebastian Pop <sebastian.pop@amd.com>
From-SVN: r150687

15 years agoRestore original scattering when the transform is not legal.
Sebastian Pop [Wed, 12 Aug 2009 14:23:01 +0000 (14:23 +0000)]
Restore original scattering when the transform is not legal.

2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
Early return without analyzing the data dependences if no
transform has been done.  Call restore_scattering if the transform
is not legal.
(graphite-interchange.c): Same.
* graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
(graphite_read_transforms): Initialize PBB_TRANSFORMED.
(apply_poly_transforms): Do not gcc_assert that
the transform is legal.
(new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
(free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
* graphite-poly.h (struct poly_scattering): New.
(struct poly_bb): Add original, transformed, and saved fields.
Remove transformed_scattering, original_scattering, nb_local_variables,
and nb_scattering_transform fields.
(PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
(poly_scattering_new): New.
(poly_scattering_free): New.
(poly_scattering_copy): New.
(store_scattering_pbb): New.
(store_scattering): New.
(restore_scattering_pbb): New.
(restore_scattering): New.
* graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
Initialize PBB_TRANSFORMED and PBB_ORIGINAL.

From-SVN: r150686

15 years agoCorrectly parenthesize pretty print structures.
Sebastian Pop [Wed, 12 Aug 2009 14:20:22 +0000 (14:20 +0000)]
Correctly parenthesize pretty print structures.

2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-poly.c (print_pbb): Add parentheses in the pretty print.
(print_scop): Same.

From-SVN: r150685

15 years agoRecompute profile after Graphite.
Sebastian Pop [Wed, 12 Aug 2009 14:19:33 +0000 (14:19 +0000)]
Recompute profile after Graphite.

2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>

* Makefile.in (graphite.o): Depends on PREDICT_H.
* graphite.c: Include predict.h.
(graphite_finalize): Call tree_estimate_probability.
* predict.c (predict_loops): Do not call scev_initialize and
scev_finalize.
(tree_estimate_probability_bb): New.
(tree_estimate_probability): Do not initialize loops: move that
code to the driver.  Call tree_estimate_probability_bb.
(tree_estimate_probability_driver): New.
(pass_profile): Use tree_estimate_probability_driver.
* predict.h (tree_estimate_probability): Declared.

From-SVN: r150684

15 years agoMeasure time spent in DD analysis and in code gen.
Sebastian Pop [Wed, 12 Aug 2009 14:18:17 +0000 (14:18 +0000)]
Measure time spent in DD analysis and in code gen.

2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
* graphite-dependences.c (graphite_legal_transform): Add time to
TV_GRAPHITE_DATA_DEPS.
(dependency_between_pbbs_p): Same.
* timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.

From-SVN: r150683

15 years ago[multiple changes]
Andrey Belevantsev [Wed, 12 Aug 2009 11:50:22 +0000 (15:50 +0400)]
[multiple changes]

2009-08-12  Andrey Belevantsev  <abel@ispras.ru>

    PR rtl-optimization/41033
    * alias.c (nonoverlapping_component_refs_p): Punt if strict aliasing is disabled.

2009-08-12  Richard Guenther  <rguenther@suse.de>

    PR rtl-optimization/41033
    * gcc.dg/pr41033.c: New test.

From-SVN: r150680

15 years agore PR fortran/41034 (Wrongly rejected proc pointer assignment with CDECL (compiler...
Tobias Burnus [Wed, 12 Aug 2009 09:03:38 +0000 (11:03 +0200)]
re PR fortran/41034 (Wrongly rejected proc pointer assignment with CDECL (compiler-directive_1.f90))

2009-08-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41034
        * symbol.c (gfc_copy_attr): Merge bits instead of replace
        bits in gfc_copy_attr.
        * gfc_check_pointer_assign (gfc_check_pointer_assign):
        Initialize ext_attr bits by zero.

From-SVN: r150678

15 years agotrans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.
Richard Guenther [Wed, 12 Aug 2009 08:33:15 +0000 (08:33 +0000)]
trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.

2009-08-12  Richard Guenther  <rguenther@suse.de>

* trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.

From-SVN: r150676

15 years agoextc++.h: Don't include TR1 if C++0x.
Benjamin Kosnik [Wed, 12 Aug 2009 00:56:12 +0000 (00:56 +0000)]
extc++.h: Don't include TR1 if C++0x.

2009-08-11  Benjamin Kosnik  <bkoz@redhat.com>

* include/precompiled/extc++.h: Don't include TR1 if C++0x.
* include/precompiled/stdc++.h: Don't include cassert if
_GLIBCXX_NO_ASSERT defined.
* include/ext/cast.h (_GLIBCXX_BEGIN_NAMESPACE): Remove extra
semi-colon.
* include/ext/pointer.h (_GCC_CXX_POINTER_COMPARISON_OPERATION_SET):
Same.

* testsuite/17_intro/headers/all.cc: Move into dialect-specific
directory.
* testsuite/17_intro/headers/all_pedantic_errors.cc: Same.
* testsuite/17_intro/headers/all_assert_neg.cc: Same.
* testsuite/17_intro/headers/all_c++200x_compatibility.cc: Same.

* testsuite/17_intro/headers/c++1998/all.cc: Use extc++.h include.
* testsuite/17_intro/headers/c++1998/stdc++.cc: Converted all.cc,
use stdc++.h include.
* testsuite/17_intro/headers/c++1998/all_pedantic_errors.cc: Same.
* testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Same.
* testsuite/17_intro/headers/c++1998/all_c++200x_compatibility.cc: Same.
* testsuite/17_intro/headers/c++1998/all_no_exceptions.cc: New.
* testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc: To...
* testsuite/17_intro/headers/c++1998/stdc++_multiple_inclusion.cc
...this.
* testsuite/17_intro/headers/c++200x/all.cc: To...
* testsuite/17_intro/headers/c++200x/stdc++.cc: ..this.
* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: To...
* testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
...this.
* testsuite/17_intro/headers/c++200x/all_no_exceptions.cc: New.
* testsuite/17_intro/headers/c++200x/all_pedantic_errors.cc: New.

From-SVN: r150672

15 years agoDaily bump.
GCC Administrator [Wed, 12 Aug 2009 00:17:07 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r150671

15 years agore PR fortran/41022 ([F03] procedure pointer components as actual arguments)
Janus Weil [Tue, 11 Aug 2009 20:08:35 +0000 (22:08 +0200)]
re PR fortran/41022 ([F03] procedure pointer components as actual arguments)

2009-08-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41022
* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer
components as actual arguments.

2009-08-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41022
* gfortran.dg/proc_ptr_comp_14.f90: New.

From-SVN: r150665

15 years agore PR debug/40990 (bad .debug_pubnames entry from gcj)
Dodji Seketeli [Tue, 11 Aug 2009 18:39:54 +0000 (18:39 +0000)]
re PR debug/40990 (bad .debug_pubnames entry from gcj)

Fix PR debug/40990

PR debug/40990
* lang.c (put_decl_node): Outputs different level of information
depending on the verbosity level.

From-SVN: r150659

15 years agopredicates.md (qi_mask_operand, [...]): New predicates.
Adam Nemet [Tue, 11 Aug 2009 17:41:09 +0000 (17:41 +0000)]
predicates.md (qi_mask_operand, [...]): New predicates.

* config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
si_mask_operand, and_load_operand, low_bitmask_operand,
and_reg_operand, and_operand): New predicates.
* config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
* config/mips/mips.c (and_operands_ok): New function.
* config/mips/mips-protos.h (and_operands_ok): Declare it.
* config/mips/mips.md (move_type): Add ext_ins and logical.
(type): Handle them.
(and<mode>3): Use and_reg_operand as the second operand's
predicate.
(*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
shift_shift.  Remove commutative constraint modifier.
(*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
shift_shift.
(*clear_upper32_dext): Remove define_insn_and_split.
(*clear_upper32): Turn this define_insn_and_split ...
(splitter for ANDing register with 0xffff_ffff): .. into this.

testsuite/
* gcc.target/mips/ext-5.c: New test.
* gcc.target/mips/ext-6.c: New test.
* gcc.target/mips/ext-7.c: New test.
* gcc.target/mips/ext-8.c: New test.
* gcc.target/mips/extend-2.c: New test.

From-SVN: r150657

15 years agocombine.c (try_widen_shift_mode): Factor out code to check if an integer constant...
Adam Nemet [Tue, 11 Aug 2009 17:31:09 +0000 (17:31 +0000)]
combine.c (try_widen_shift_mode): Factor out code to check if an integer constant is a low-order bitmask from here ...

* combine.c (try_widen_shift_mode): Factor out code to check if an
        integer constant is a low-order bitmask from here ...
* rtlanal.c (low_bitmask_len): ... to here.
* rtl.h (low_bitmask_len): Declare.

From-SVN: r150656

15 years agore PR target/8603 ([Alpha] s?addl pattern doesn't work)
Uros Bizjak [Tue, 11 Aug 2009 17:05:38 +0000 (19:05 +0200)]
re PR target/8603 ([Alpha] s?addl pattern doesn't work)

PR target/8603
* config/alpha/alpha.md (addsi3): Remove expander.
(addsi3): Rename from *addsi3_internal insn pattern.
(subsi3): Remove expander.
(subsi3): Rename from *subsi3_internal insn pattern.

From-SVN: r150654

15 years agoalpha.c (alpha_init_builtins): Nullify FWRITE and FWRITE_UNLOCKED.
Douglas B Rupp [Tue, 11 Aug 2009 16:41:41 +0000 (16:41 +0000)]
alpha.c (alpha_init_builtins): Nullify FWRITE and FWRITE_UNLOCKED.

* config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
FWRITE_UNLOCKED.

From-SVN: r150653

15 years agoalpha.c (alpha_return_in_memory): On VMS...
Vasiliy Fofanov [Tue, 11 Aug 2009 16:33:41 +0000 (16:33 +0000)]
alpha.c (alpha_return_in_memory): On VMS...

* config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
that records that fit in 64 bits are returned by immediate value,
as required by OpenVMS Calling Standard.
(function_value): Adjust for above modification.
(alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
virtual_incoming_args_rtx as base object, not next_arg.
* config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.

Co-Authored-By: Douglas B Rupp <rupp@gnat.com>
Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r150652

15 years agoreload.c (find_reloads_subreg_address): Check the original req_equiv_mem address...
Ulrich Weigand [Tue, 11 Aug 2009 13:56:52 +0000 (13:56 +0000)]
reload.c (find_reloads_subreg_address): Check the original req_equiv_mem address to detect the case where an address is...

* reload.c (find_reloads_subreg_address): Check the original
req_equiv_mem address to detect the case where an address is
not valid in the outer mode.

From-SVN: r150649

15 years agore PR bootstrap/40788 (ICE on sparc: tree check: expected class 'expression', have...
Richard Guenther [Tue, 11 Aug 2009 11:39:43 +0000 (11:39 +0000)]
re PR bootstrap/40788 (ICE on sparc: tree check: expected class 'expression', have 'declaration' (var_decl) in gimplify_va_arg_expr, at builtins.c:5107)

2009-08-11  Richard Guenther  <rguenther@suse.de>

        PR bootstrap/40788
        * builtins.c (gimplify_va_arg_expr): Do not call
        SET_EXPR_LOCATION.

From-SVN: r150648